    
function isFlashInstalled() 
{
	var shock = false;
	for (i=0; i < navigator.plugins.length; i++) 
	{
		if (navigator.plugins[i].name.indexOf("Shockwave Flash") != -1)
			shock = true;
	}
	alert(shock);
	return shock;
}

function flashBanner() 
{
	if (isFlashInstalled)
	{	
	    document.write("<object id=wegu title=\"wegu\" codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 height=320 width=501 align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 VIEWASTEXT>");
		document.write("<param NAME=\"_cx\" VALUE=\"13256\">");
		document.write("<param NAME=\"_cy\" VALUE=\"8467\">");
		document.write("<param NAME=\"Movie\" VALUE=\"flash/wegu.swf\">");
		document.write("<param NAME=\"Src\" VALUE=\"flash/wegu.swf\">");
		document.write("<param NAME=\"WMode\" VALUE=\"transparent\">");
		document.write("<param NAME=\"Play\" VALUE=\"-1\">");
		document.write("<param NAME=\"Loop\" VALUE=\"-1\">");
		document.write("<param NAME=\"Quality\" VALUE=\"High\">");
		document.write("<param NAME=\"SAlign\" VALUE=\"\">");
		document.write("<param NAME=\"Menu\" VALUE=\"-1\">");
		document.write("<param NAME=\"Base\" VALUE=\"\">");
		document.write("<param NAME=\"Scale\" VALUE=\"ShowAll\">");
		document.write("<param NAME=\"AllowScriptAccess\" VALUE=\"sameDomain\">");
		document.write("<param NAME=\"BGColor\" VALUE=\"5977B3\">");
		document.write("<param NAME=\"SWRemote\" VALUE=\"\">");
		document.write("<param NAME=\"MovieData\" VALUE=\"\">");
		document.write("<param NAME=\"SeamlessTabbing\" VALUE=\"1\">");
		document.write("<embed src=\"flash/wegu.swf\" wmode=\"transparent\" quality=\"high\" width=\"501\" height=\"320\" name=\"wegu\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
		document.write("</embed>");
		document.write("</object>");
	}
    else
	{
		imagesArr=new Array();
		imagesArr[0]="images/img1.jpg";
		imagesArr[1]="images/img2.jpg";
		imagesArr[1]="images/img3.jpg";
		document.write("<img src="+imagesArr[Math.floor(Math.random()*imagesArr.length)]+" width=\"501\" height=\"320\" style=\"display: block;\">");
	}
}