<!--
var bannerName = "/worms.swf";
var bannerSWFFile = "/worms.swf";
var bannerXPos = 0;
var bannerYPos = 300;

function detectBrowser() {
	var browserCheck;
	var browserVersionString = navigator.appVersion;
	var browserName = navigator.appName;
	var browserVersion = parseFloat(browserVersionString);
	if (browserName.indexOf("Microsoft") != -1 && browserVersion >= 4) {
		browserCheck = true;				
	} 
	else {
		browserCheck = false;
	}
	return(browserCheck);
}

function detectFlash() {
	var objName = "ShockwaveFlash.ShockwaveFlash.";
	var flashVersion = 5.0;
	var flashCheck = false;
		while ((flashCheck == false) && (flashVersion > 0)) {
			flashCheck = true;
			try {
				var obj = new ActiveXObject(objName + flashVersion);
			} 
			catch (e) {
				flashCheck = false;
				flashVersion --;
			}
		}
	return(flashVersion);
}

// page functions
function window.onresize() {
	document.all.bannerLayer.style.width = document.body.clientWidth;
	document.all.bannerLayer.style.height = document.body.clientWidth / 2;
	document.all.bannerLayer.style.left = 0;
	document.all.bannerLayer.style.top = document.body.clientHeight  - (document.body.clientWidth / 2);
}

function window.onscroll() {
	document.all.bannerLayer.style.width = document.body.clientWidth;
	document.all.bannerLayer.style.height = document.body.clientWidth / 2;
	document.all.bannerLayer.style.left = 0 + document.body.scrollLeft;
	document.all.bannerLayer.style.top = document.body.clientHeight  - (document.body.clientWidth / 2) + + document.body.scrollTop;
}

if (detectBrowser() == true) {
	if (detectFlash() >= 5) {
		document.writeln('<div id="bannerLayer" style="position:absolute; left:'+ bannerXPos +'; top:'+ bannerYPos +'; width:'+600+'; height:'+300+'; z-index:1; visibility: visible">');
		document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%">');
		document.writeln('<param name=movie value="' + bannerSWFFile + '">')
		document.writeln('<param name=quality value=high>')
		document.writeln('<param name=wmode value=transparent></object></div>');
	} 
}
//-->