<!-- Flash Detection Code -->
<!-- Author : Sudheer Sajja -->


function checkflashinstalled()
{
	result = false;

	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	{
		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	}
	else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
	{
		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
	}
	return result;
}

function writeflashcode(url,width,height)
{
	//document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	//document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
	//document.write('WIDTH=' + width + ' HEIGHT=' + height + '>\n');
	//document.write('<PARAM NAME=movie VALUE="' + url + '">\n<PARAM NAME=quality VALUE=high>\n<PARAM NAME=bgcolor VALUE=white>\n'); 
	//document.write('<EMBED src="' + url + '" quality=high bgcolor=white ');
	//document.write('swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
	//document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	//document.write('</EMBED></OBJECT>');	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"')
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" id="intro" width=' + width + ' height=' + height + ' style="z-index:-100;">')
document.write('<param name="movie" value="header.swf">')
document.write('<param name="bgcolor" value="#FFFFFF">')
document.write('<param name="quality" value="high">')
document.write('<PARAM NAME="WMODE" VALUE="transparent"> ')
document.write('<param name="allowscriptaccess" value="samedomain">')
document.write('<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" WIDTH=' + width + ' HEIGHT=' + height + ' style="z-index:-100;" WMODE="transparent" name="intro" src="intro.swf" bgcolor="#FFFFFF" quality="high" swLiveConnect="true" allowScriptAccess="samedomain">')
document.write('</embed></object> ')

}

