<!-- 

function findBrowser()
{
	var agt = navigator.userAgent.toLowerCase();
	if(((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)))
		return "IE";
	else if(((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer') == -1)
			&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera') == -1)
			&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)))
		return "Netscape";
	else
		return "unknown";
}

function playMedia (mediaURL,rpt,height,width)
{
	var mediaURL,rpt,height,width;

	if (findBrowser() == "Netscape") 
		embedMPlayer(mediaURL,rpt,height,width);  
	else if (findBrowser() == "IE")
		embedIEobject(mediaURL,rpt,height,width);
}

function embedMPlayer (mediaURL,rpt,height,width){	CodeGen = "" 
	var mediaURL,rpt,height,width

	CodeGen = '<embed type="application/x-mplayer2" ' + '\n' ;
	CodeGen = CodeGen + ' pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ' + '\n' ;
	CodeGen = CodeGen + 'Name="MediaPlayer" ' + 'src="' + mediaURL + '" ' + '\n' ;
	CodeGen = CodeGen + 'autoStart=0 ' ;
	CodeGen = CodeGen + 'ShowStatusBar=1 '; 
	CodeGen = CodeGen + 'playCount=' + rpt + ' ' ;
	CodeGen = CodeGen + 'volume=-1 ' ;
	CodeGen = CodeGen + 'HEIGHT=' + (height + 70) + ' WIDTH=' + width + '>'

	document.write(CodeGen)
}

function embedIEobject (mediaURL,rpt,height,width){	CodeGen = "" 
	var mediaURL,rpt,height,width

	CodeGen = '<object id="mediaplayer"' + '\n' ;
	CodeGen += 'codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902' + '\n' ;
	CodeGen += 'type=application/x-oleobject height=' + (height + 70) + ' 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="ShowStatusBar" VALUE= "true">';
	CodeGen += '<param NAME="autoStart" VALUE="false"><param NAME="Volume" VALUE="-1">' + '\n' ;
	CodeGen += '<param NAME="playCount" VALUE=' + rpt + '></object>'

	document.write(CodeGen)
}

//-->
