function fn_player_init_wm_audio_Anasheed(s_clip, i_height) {

    if (openByWinMedPlayer == 1) {
        window.open("http://www.marinafm.com/ASX/live_audio_Anasheed.asx", "mfm");
        return;
    }	 

    document.getElementById('playerarea2').innerHTML = fn_player_element_init_wm2(s_clip, i_height);
    document.getElementById("progimgarea").style.display = "none";
    document.getElementById("progimgarea_Anasheed").style.display = "block";
    document.getElementById("progimgarea_tarab").style.display = "none";
    document.getElementById("progimgarea_lite").style.display = "none";
    document.getElementById("progimgarea_jalsat").style.display = "none";
    document.getElementById("progimgarea_world").style.display = "none";
    document.getElementById("progimgarea_mix").style.display = "none";
}

function fn_player_init_wm_audio_tarab(s_clip,i_height)
 {

     if (openByWinMedPlayer == 1) {
         window.open("http://www.marinafm.com/ASX/live_audio_tarab.asx", "mfm");
         return;
     }
     
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="block";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
}
 
 function fn_player_init_wm_audio_lite(s_clip,i_height)
 {

     if (openByWinMedPlayer == 1) {
         window.open("http://www.marinafm.com/ASX/live_audio_lite.asx", "mfm");
         return;
     }	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="block";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
 }
 
 function fn_player_init_wm_audio_jalsat(s_clip,i_height)
 {

     if (openByWinMedPlayer == 1) {
         window.open("http://www.marinafm.com/ASX/live_audio_jalsat.asx", "mfm");
         return;
     }	
     	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="block";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
 }

function fn_player_init_wm_audio_world(s_clip,i_height)
 {


     if (openByWinMedPlayer == 1) {
         window.open("http://www.marinafm.com/ASX/live_audio_world.asx", "mfm");
         return;
     }	
     	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="block";
	document.getElementById("progimgarea_mix").style.display="none";
}
 
 function fn_player_init_wm_audio_mix(s_clip,i_height)
 {


     if (openByWinMedPlayer == 1) {
         window.open("http://www.marinafm.com/ASX/live_audio_mixfm.asx", "mfm");
         return;
     }	
	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="block";
 }

function fn_player_init_wm_audio(s_clip,i_height) {
    
    if (openByWinMedPlayer == 1) {
        window.open("http://www.marinafm.com/ASX/live_gadget.asx", "mfm");
        return;
    }	 
	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "block";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
 }

function fn_player_init_wm_audio_on_demand(s_clip,i_height, show)
 {
	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
//alert(show);
if(show == 1){
    //document.getElementById("progimgarea").style.background = "url(../../images/9412_OLD.jpg)";
}
else{
   // document.getElementById("progimgarea").style.background = "url(../../images/9412.jpg)";
}

//document.getElementById("progimgarea").style.display="block";
	




 }
 
 
function fn_player_init_wm(s_clip,i_height)
 {

     if (openByWinMedPlayer == 1) {
         window.open("http://www.marinafm.com/ASX/live_video.asx", "mfm");
         return;
     }	  
 
	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_wm2(s_clip,i_height);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
 }
 
 function fn_player_init_fl(fl_clip)
 {
	
	document.getElementById('playerarea2').innerHTML=fn_player_element_init_flv(fl_clip);
	document.getElementById("progimgarea").style.display = "none";
	document.getElementById("progimgarea_Anasheed").style.display = "none";
	document.getElementById("progimgarea_tarab").style.display="none";
	document.getElementById("progimgarea_lite").style.display="none";
	document.getElementById("progimgarea_jalsat").style.display="none";
	document.getElementById("progimgarea_world").style.display="none";
	document.getElementById("progimgarea_mix").style.display="none";
 }
 
function fn_player_element_init_wm2(s_clip,i_height) {
//alert([s_clip,i_height])
	s_player_html ='<OBJECT ID="mediaPlayer" Name="mediaPlayer" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" height='+i_height+' WIDTH="460" STANDBY="Loading components..." TYPE="application/x-oleobject">';
			s_player_html+='<PARAM NAME="FILENAME" value="'+s_clip+'">';
			s_player_html+='<param name="AnimationatStart" value="true">';
			s_player_html+='<param name="transparentatStart" value="true">';
			s_player_html+='<param name="ShowControls" value="TRUE">';
			s_player_html+='<PARAM NAME="AutoStart" VALUE="true">';
            s_player_html+='<PARAM NAME="ShowTracker" VALUE="true">';
			s_player_html+='<PARAM NAME="Autosize" VALUE="true">';
			s_player_html+='<PARAM NAME="ShowStatusBar" VALUE="true">';
			s_player_html+='<PARAM NAME="ShowDisplay" VALUE="false">';
			s_player_html+='<PARAM NAME="enableContextMenu" VALUE="false">';
			s_player_html+='<PARAM NAME="ShowPositionControls" VALUE="false">';
			s_player_html+='<EMBED TYPE="application/x-mplayer2" PLUGINSPAGE="https://microsoft.com/windows/mediaplayer/en/download" ID="mediaPlayer" Name="mediaPlayer" DISPLAYSIZE="3" AUTOSIZE="-1" SHOWCONTROLS="-1" SHOWTRACKER="0" SHOWDISPLAY="0" SHOWSTATUSBAR="1" ShowPositionControls="0" WIDTH="460" height='+i_height+' src="'+s_clip+'" AUTOSTART="true">';
			s_player_html+='</EMBED>';
			s_player_html+='</OBJECT>';
			//s_player_html += 'Your browser does not support the ActiveX Windows Media Player';	
		return s_player_html;
		
}

function fn_player_element_init_flv(fl_clip) {
	
	fl_player_html ='<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="460" height="310">';
	fl_player_html+='<param name="movie" value="'+fl_clip+'">';
	fl_player_html+='<param name="wmode" value="transparent">';
	fl_player_html+='<param name="scale" value="exactfit">';
	fl_player_html+='<embed src="'+fl_clip+'" PLUGINSPAGE="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" width="460" height="310">';
	fl_player_html+='</embed>';
	fl_player_html+='</object>';
	
return fl_player_html;
		
}


 // document.getElementById("progimgarea").style.display="block";
//document.getElementById("progimgarea").style.display="none";
