var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function GetBanner()
{
	totalBodywidth=document.body.clientWidth
	docStyle="";
	styleDoc=".style";
	x=250
	xx=150
	totalBodywidth= totalBodywidth - 779
	
	if (totalBodywidth>= 0)
		x = x + (totalBodywidth/2)
	
	y= x+13
	yy= 292

document.write("<div id=\"LayerName\" style=\"position:absolute; width:350px; height:241px; z-index:1; left: "+x+"px; top: "+xx+"px; visibility: visible\">"+
		"<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+
		"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\""+
		"ID=\"ball\" WIDTH=\"350\" HEIGHT=\"241\">"+
		"<PARAM NAME=movie VALUE=\"/swf/character.swf\">"+
		"<PARAM NAME=loop VALUE=\"false\">"+
		"<param name=\"WMode\" value=\"Transparent\">"+
		"<PARAM NAME=\"scale\" VALUE=\"exactfit\">"+ 
		"<PARAM NAME=\"salign\" VALUE=\"LT\">"+
		"<PARAM NAME=\"quality\" VALUE=\"high\">"+
		"<PARAM NAME=\"bgcolor\" VALUE=\"#000000\">"+
		"<EMBED src=\"/swf/character.swf\" quality=high bgcolor=#000000 WIDTH=350 HEIGHT=241 swLiveConnect=true NAME=ball TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>"+
		"</OBJECT>"+
	   	"</div>")
}

function showHideoptimum(id, NNtype, IEtype, W3Ctype)
{
	if (document.getElementById) 
	{
		eval("document.getElementById(id).style.visibility = \"" + W3Ctype + "\"");
	} 
	else 
	{
		if (document.layers)
		{
			document.layers[id].visibility = NNtype;
		} 
		else 
		{
			if (document.all) 
			{
				eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
			}
		}
	}
}

function RunCommand(command, args)
{
	var ballObj = InternetExplorer ? ball : document.ball;
	if(command == "killme")
	{
		showHideoptimum('LayerName','hidden','hidden','hidden');
		showHideoptimum('layernametwo','visible','visible;','visible'); 
	}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1)
{
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub ball_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call RunCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}