<!-- 
// This script determines correct code required to embed MEDIA files 
// for a large number of browsers, including AOL and WebTV
// Windows Media Player is required and always used, except for WebTV
// Written by Les Gorven
// Ver. 3.0  Last Updated: January 17, 2006


function playMedia(mediaURL,rpt,height,width,autoPlay) {

	var mediaURL,rpt,height,width,autoPlay

	//Embed for IE
	embedIEobject(mediaURL,rpt,height,width,autoPlay);
}

function embedIEobject(mediaURL,rpt,height,width,autoPlay){	CodeGen = "" 
    	var mediaURL,rpt,height,width,autoPlay

		CodeGen = '<object id=Player' + '\n' ;
		CodeGen += 'codeBase=https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902' + '\n' ;
		CodeGen += 'type=application/x-oleobject height=' + height + ' width=' + width + '\n' ;
		CodeGen += ' standby="Loading Microsoft® Windows® Media Player components..." ' + '\n' ;
		CodeGen += 'classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> ' + '\n' ;
		CodeGen += '<PARAM NAME="Filename" VALUE="' + mediaURL + '">' + '\n' ;
		CodeGen += '<PARAM name="ShowControls" VALUE="true">' + '\n' ;
		CodeGen += '<PARAM name="ShowStatusBar" value="false">' + '\n' ;
		CodeGen += '<PARAM name="ShowDisplay" VALUE="false">' + '\n' ;
		CodeGen += '<PARAM NAME="autoStart" VALUE="' + autoPlay + '"><PARAM NAME="Volume" VALUE="-1">' + '\n' ;
		CodeGen += '</object>' + '\n';
		document.write(CodeGen);
}

//-->
