
function forNetscape(value2,value3,value0,fHasWMP64)
{
var objFrmName =  'window.document.forms[0]';
	var objFrm = eval(objFrmName);	
	var ImgVersion = objFrm.hidImageVersion.value  	 
	if (!fHasWMP64)
	{
		document.write("You must have a Windows Media player 7.1.x or above installed to view this clip. click the following link to download a free Windows Media player right now.<BR>");
		document.write("<a href='http://www.microsoft.com/windows/windowsmedia/download/default.asp' onmouseover='return onText('Download Windows Media Player')' onmouseout='StatusOff()' target='_blank'>Download Windows Media Player</a>");
		document.write("</td></tr>");
		document.write("<tr><td valign='top' class='topDash'><img src='../Images/" + ImgVersion + "spacer.gif' width='1' height='" + (value2 - 110) + "' alt=''/>");
	}
	else												
	{	
		document.write("<OBJECT ID='MediaPlayer' WIDTH='" + value3 + "' HEIGHT='" + (parseInt(value2) + 14) + "' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' STANDBY='Loading Windows Media Player components...'  TYPE='application/x-oleobject'>")
		document.write("<PARAM NAME='FileName' VALUE='" + value0 + "'>");
		document.write("<PARAM NAME='SHOWSTATUSBAR' VALUE='1'>");
		document.write("<EMBED TYPE='application/x-mplayer2' SRC='" + value0 + "' NAME='MediaPlayer' WIDTH='" + value3 + "' HEIGHT='" + (value2 - 14) + "' SHOWSTATUSBAR='1' SHOWCONTROLS='1' AUTOPLAY='true' CACHE='false' LOOP='false'>");
		document.write("</OBJECT>");
	}
}

	function forIE(value2,value3,value0)
	{
		if(pluginlist.indexOf("Windows Media Player")!=-1)
		{
			var WMP7;
			if ( navigator.appName != "Netscape" )
			{
				try
				{
					objMediaPlayer = new ActiveXObject("WMPlayer.OCX");
					WMP7 = true;
				}
				catch(objError)
				{
					WMP7 = false;
				}
			}

			// Windows Media Player 7 Code
			if ( WMP7 )
			{
				//alert("Version-7" + " " + value0)
				document.write ('<OBJECT ID=MediaPlayer ');
				document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
				document.write (' standby="Loading Microsoft Windows Media Player components..."');
				document.write (' TYPE="application/x-oleobject" width="286" height="225">');
				document.write ('<PARAM NAME="url" VALUE="' + value0 + '"');
				document.write ('<PARAM NAME="FileName" VALUE="' + value0 + '"');
				document.write ('<PARAM NAME="ShowStatusBar" VALUE="1">');
				document.write ('<PARAM NAME="AutoStart" VALUE="true">');
				document.write ('<PARAM NAME="ShowControls" VALUE="1">');
				document.write ('<PARAM NAME="uiMode" VALUE="full">');
				document.write ('<PARAM NAME="HEIGHT" VALUE="' + (value2 - 14) + '">');
				document.write ('<PARAM NAME="WIDTH" VALUE="' + value3 + '">');
				document.write ('<PARAM NAME="CACHE" VALUE="false">');
				document.write ('<PARAM NAME="LOOP" VALUE="false">');
				document.write ('</OBJECT>');
			}
			// Windows Media Player 6.4 Code
			else
			{
	/*
			document.write("<OBJECT ID='MediaPlayer' WIDTH='" + value3 + "' HEIGHT='" + (value2 - 14) + "' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' STANDBY='Loading Windows Media Player components...'  TYPE='application/x-oleobject'>")
			document.write("<PARAM NAME='FileName' VALUE='" + value0 + "'>");
			document.write("<PARAM NAME='SHOWSTATUSBAR' VALUE='1'>");
			document.write("<EMBED TYPE='application/x-mplayer2' SRC='" + value0 + "' NAME='MediaPlayer' WIDTH='" + value3 + "' HEIGHT='" + (value2 - 14) + "' SHOWSTATUSBAR='1' SHOWCONTROLS='1' AUTOPLAY='true' CACHE='false' LOOP='false'></EMBED>");
			document.write("</OBJECT>");
	*/
				 //IE Code
				document.write ('<OBJECT ID=MediaPlayer ');
				document.write ('CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ');
				document.write ('CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ');
				document.write ('standby="Loading Microsoft Windows Media Player components..." ');
				document.write ('TYPE="application/x-oleobject" width="' + value3 + '" height="' + (value2 - 14) + '">');
				document.write ('<PARAM NAME="FileName" VALUE="' + value0 + '">');
				document.write ('<PARAM NAME="AutoStart" VALUE="true">');
				document.write ('<PARAM NAME="ShowControls" VALUE="1">');
				document.write ('<PARAM NAME="ShowStatusBar" VALUE="1">');
				//Netscape code
				document.write ('    <Embed type="application/x-mplayer2"');
				document.write ('        pluginspage="http://www.microsoft.com/windows/windowsmedia/"');
				document.write ('        filename="' + value0 + '"');
				document.write ('        src="' + value0 + '"');
				document.write ('        Name=MediaPlayer');
				document.write ('        ShowControls=1');
				document.write ('        ShowDisplay=1');
				document.write ('        ShowStatusBar=1');
				document.write ('        CACHE=false');
				document.write ('        LOOP=false');
				document.write ('        AUTOPLAY=true');
				document.write ('        width=' + value3);
				document.write ('        height=' + (value2 - 14) + '>');
				document.write ('    </embed>');
				document.write ('</OBJECT>');
			}
		}
		else
		{
			document.write("You must have a Windows Media player installed to view this clip. click the following link to download a free Windows Media player right now.<BR>");
			document.write("<a href='http://www.microsoft.com/windows/windowsmedia/download/default.asp' onmouseover='return onText('Download Windows Media Player')' onmouseout='StatusOff()' target='_blank'>Download Windows Media Player</a>");
			document.write("</td></tr>");
			document.write("<tr><td valign='top' class='topDash'><img src='/FrontEndImages/spacer.gif' width='1' height='" + (value2 - 110) + "' alt=''/>");
		}
	}
