var videofile;
function loader()
{
var app;
app = navigator.appName.indexOf("Microsoft",0);
if(app>=0){
  document.MediaPlayer.height=240;
  document.MediaPlayer.width=320;
return true;
}else{
//location.replace(adurl);
return false; }
}
function play(){
	//ptd.background = load_img;
	document.MediaPlayer.fileName = videofile;
	document.MediaPlayer.Play();
	window.setTimeout("changepic()",1000); 
	}
function stop(){ 
	//ptd.background = stop_img;
	document.MediaPlayer.Stop();  }
function mute(){
 if (document.MediaPlayer.Mute==0) {
   document.MediaPlayer.Mute = 1;
 } else if (document.MediaPlayer.Mute==1) {
   document.MediaPlayer.Mute = 0;
}
 document.MediaPlayer.Play();
}
function go(speed){
document.MediaPlayer.Stop();
if(speed==0) {
document.MediaPlayer.height=240;
document.MediaPlayer.width=320;
document.MediaPlayer.fileName =videofile;
} else {
document.MediaPlayer.height=144;
document.MediaPlayer.width=176;
document.MediaPlayer.fileName = videofile;
}
document.MediaPlayer.Play();
window.setTimeout("changepic()",1000); 
}

function changepic()
{
   if (document.MediaPlayer.playState !=0 )
      {window.setTimeout("changepic()",500); }
	  else
	  {
	  	//ptd.background = stop_img;
	  	}
}
