/**************************
*			FLASH OBJECT            *
***************************/
var MM_contentVersion = 6;
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');
}

function insertFlashObj(fileName,w,h,params,bgc,flashContainer){
	if (bgc == ""){
		bgc = "ffffff";
	}
	var  flashSource = "";
	if ( MM_FlashCanPlay ) {
		flashSource += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" ";
		flashSource += "id=\"flashItem\" width=\""+w+"\" height=\""+h+"\" border=\"0\">";
		flashSource += "<param name=\"movie\" value=\""+fileName+"\" /><param name=\"loop\" value=\"false\" /><param name=\"menu\" value=\"false\">";
		flashSource += "<param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param name=\"salign\" value=\"lt\" /><param name=\"bgcolor\" value=\"#"+bgc+"\" />";
		if (params != "") flashSource += "<param name=\"flashvars\" value=\""+params+"\" />";
		flashSource += "<embed src=\""+fileName+"\" loop=\"false\" menu=\"false\" quality=\"high\" bgcolor=\"#"+bgc+"\"";
		flashSource += " swLiveConnect=\"false\" width=\""+w+"\" height=\""+h+"\" name=\"flashItem\"";
		flashSource += " type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"";
		if (params!="") flashSource += " flashvars=\""+params+"\"";
		flashSource += ">";
		flashSource += "</embed>";
		flashSource += "</object>";
		document.getElementById(flashContainer).innerHTML = flashSource;
	}
}

/**************************
*			MAIL PARSE               *
***************************/
function mail_parse(email)
{
	e = new String(email);
	e = e.replace("[at]","@").replace("[dot]",".");
	window.location = "mailto:"+e;
}

function showReference(url){
		w = 780;
		h = 450;
		sw=screen.availWidth;
		sh=screen.availHeight;
		xpos=(sw-w)/2;
		ypos=(sh-h)/2;
		params = "location=no,menubar=yes,directories=no,toolbar=no,status=yes,personalbar=no,titlebar=no,resizable=yes,scrollbars=yes";
		props = "width="+w+",height="+h+",top="+ypos+",left="+xpos+","+params;
		win = window.open(url,"reference",props);
		//"refDetail.aspx?rId="+rId
		win.focus();
}

