document.write('<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width="'+width+'" height="'+height+'" standby="Loading Microsoft® Windows® Media Player components..." id="vPlayer">');
document.write('<PARAM NAME="FileName" VALUE="/play.php?id='+id+'&code='+code+'">');
document.write('<PARAM NAME="ShowControls" VALUE="'+showControls+'">');
document.write('<PARAM NAME="ShowStatusBar" VALUE="True">');
document.write('<PARAM NAME="TransparentAtStart" Value="True">');
document.write('<PARAM NAME="ClickToPlay" Value="True">');
document.write('<PARAM NAME="AutoStart" Value="'+autostart+'">');
document.write('<PARAM NAME="AnimationatStart" Value="True">');
document.write('<PARAM NAME="autoSize" Value="false">');
document.write('<PARAM NAME="displaySize" Value="False">');
document.write('<PARAM NAME="loop" Value="'+loop+'">');
document.write('<EMBED type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="/play.php?id='+id+'&code='+code+'" Name="vPlayer" Width="'+width+'" Height="'+height+'" autoStart="0" transparentAtStart="1" clickToPlay="1" animationAtStart="1" autoSize="0" ShowStatusBar="1" ShowControls="'+showControls2+'" displaySize="0" align="center">');
document.write('</EMBED>');
document.write('</object>');

var player;
try {
 if(window.ActiveXObject)  {
  player = new ActiveXObject("WMPlayer.OCX.7");
 }else if (window.GeckoActiveXObject)  {
  player = new GeckoActiveXObject("WMPlayer.OCX.7");
 }
}
catch(e){
 document.getElementById('videoStartLink').style.display='none';
}
if(player){
 var versionString = player.versionInfo;
}

function vPlay(){
 document.vPlayer.play();
 document.getElementById('videoStartLink').style.display='none';
}
