var ireallyhaveflash = false;
if (((navigator.appName == "Netscape") && (parseFloat(navigator.appVersion) >= 4) && navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)) {
	if (navigator.plugins['Shockwave Flash'].description.indexOf("8.") != -1) ireallyhaveflash = true;
	if (navigator.plugins['Shockwave Flash'].description.indexOf("9.") != -1) ireallyhaveflash = true;
	if (navigator.plugins['Shockwave Flash'].description.indexOf("10.") != -1) ireallyhaveflash = true;
}
else if ( (navigator.userAgent) && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.appVersion.toLowerCase().indexOf("win") != -1) ) {
	document.write('<script language=VBScript>');
	document.write('on error resume next \n');
	document.write('ireallyhaveflash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
	document.write('ireallyhaveflash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9"))) \n');
	document.write('ireallyhaveflash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10"))) \n');
	document.write('<\/script>');
}
//ireallyhaveflash = false;
if (!ireallyhaveflash) document.location = "noflash.aspx";

function femswap(movie, width, height, quality, bgcolor, div) {
	var fv = "";
	if (movie.indexOf("?") != -1) {
		fv = movie.substring(movie.indexOf("?") + 1);
		movie = movie.substring(0, movie.indexOf("?"));
	}
	document.getElementById(div).innerHTML = "<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 width=" + width + " height=" + height + "><param name=FlashVars value=" + fv + "><param name=allowScriptAccess value=always><param name=movie value=" + movie + "><param name=quality value=" + quality + "><param name=bgcolor value=" + bgcolor + "><embed src=" + movie + " quality=" + quality + " bgcolor=" + bgcolor + " width=" + width + " height=" + height + " FlashVars=" + fv + " allowScriptAccess=always type=application/x-shockwave-flash></object><br>";
}
