// JavaScript Document

//Macromedia's Packaged Javascript Flash Detect (detects for Flash v6 or greater) !-->
var MM_contentVersion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i)
		{
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
		}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
&& (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}


var arrUrl = document.URL.split("http://!/");
var strFlashURL = document.URL.replace(arrUrl[arrUrl.length - 1], "");

function GetFlashContent(p_strMovie, p_intWidth, p_intHeight, p_strNoFlashImage) {
	if ( MM_FlashCanPlay ) {
		strFlash = "<OBJECT classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' WIDTH=" + p_intWidth + " HEIGHT=" + p_intHeight + "><PARAM NAME=movie VALUE='" +  strFlashURL + p_strMovie + "'><param name='bgcolor' value='686868'><PARAM NAME=quality VALUE=high><EM" + "BED src='" +  strFlashURL + p_strMovie + "' bgcolor='686868' quality=high WIDTH=" + p_intWidth + " HEIGHT=" + p_intHeight + " allowScriptAccess='sameDomain' TYPE='application/x-shockwave-flash' PLUGINSPAGE='https://download.macromedia.com'></EM" + "BED></OBJECT>";
	} 
	else {
		strFlash = "<img src='" + p_strNoFlashImage + "' border='0' alt=''>";
	}
	return (strFlash);
}

