function toggleLayer(whichLayer) {
	if (document.getElementById) {
		var style2 = document.getElementById(whichLayer).style;
	} else if (document.all) {
		var style2 = document.all[whichLayer].style;
	} else if (document.layers) {
		var style2 = document.layers[whichLayer].style;
	}
	style2.display = style2.display == "none" ? "block" : "none";
	return(false);
}


function displaySubs(the_sub){

	if (document.getElementById(the_sub).style.display==""){

	document.getElementById(the_sub).style.display = "none";return

  }

  document.getElementById(the_sub).style.display = "";

  }
   
  
var whichdiv;
var home = 'http://www.sonpeygamber.info/kuran/';
cuz1='cuz1/cuz1.m3u';
cuz2='cuz2/cuz2.m3u';
cuz3='cuz3/cuz3.m3u';
cuz4='cuz4/cuz4.m3u';
cuz5='cuz5/cuz5.m3u';
cuz6='cuz6/cuz6.m3u';
cuz7='cuz7/cuz7.m3u';
cuz8='cuz8/cuz8.m3u';
cuz9='cuz9/cuz9.m3u';
cuz10='cuz10/cuz10.m3u';
cuz11='cuz11/cuz11.m3u';
cuz12='cuz12/cuz12.m3u';
cuz13='cuz13/cuz13.m3u';
cuz14='cuz14/cuz14.m3u';
cuz15='cuz15/cuz15.m3u';
cuz16='cuz16/cuz16.m3u';
cuz17='cuz17/cuz17.m3u';
cuz18='cuz18/cuz18.m3u';
cuz19='cuz19/cuz19.m3u';
cuz20='cuz20/cuz20.m3u';
cuz21='cuz21/cuz21.m3u';
cuz22='cuz22/cuz22.m3u';
cuz23='cuz23/cuz23.m3u';
cuz24='cuz24/cuz24.m3u';
cuz25='cuz25/cuz25.m3u';
cuz26='cuz26/cuz26.m3u';
cuz27='cuz27/cuz27.m3u';
cuz28='cuz28/cuz28.m3u';
cuz29='cuz29/cuz29.m3u';
cuz30='cuz30/cuz30.m3u';

function MediaHazirla(cuz){

var path = home + eval(cuz);

var mp = '<OBJECT style="border:0px ;FILTER:Xray; " name="mplayer" width="354" height="46" ' +
         'CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" ' +
         'type="application/x-oleobject"> ' +

         '<PARAM NAME="URL" VALUE="' + path + '"> ' +
         '<PARAM NAME="AutoStart" VALUE="True"> ' +
         '<PARAM name="uiMode" value="full"> ' +
         '<PARAM name="PlayCount" value="9999"> ' +

        '<EMBED style="border:0px ;FILTER:Xray; " name="mplayer" ' + 
         'pluginspage=http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/ ' +
         'src="' + path + '" ' + 'width=354 height=45 ' +
         'type=application/x-mplayer2 ' +
         'autoplay="1" ' +
         'ShowControls="1" ' +
         'ShowStatusBar="0" ' +
         'AutoSize="true" ' +
         'loop="true" ' +
         'TransparentAtStart="0" ' +
         'EnableFullScreenControls="1" ' +
         'EnableContextMenu="0"> ' +
         
         '</OBJECT> ';
      
         return mp;
}

function MuzikHazirla(sarki){

var path = 'http://www.sonpeygamber.info/muzik/' + sarki;

var mp = '<OBJECT style="border:0px ;FILTER:Xray; " name="mplayer" width="354" height="46" ' +
         'CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" ' +
         'type="application/x-oleobject"> ' +

         '<PARAM NAME="URL" VALUE="' + path + '"> ' +
         '<PARAM NAME="AutoStart" VALUE="True"> ' +
         '<PARAM name="uiMode" value="full"> ' +
         '<PARAM name="PlayCount" value="9999"> ' +

        '<EMBED style="border:0px ;FILTER:Xray; " name="mplayer" ' + 
         'pluginspage=http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/ ' +
         'src="' + path + '" ' + 'width=354 height=45 ' +
         'type=application/x-mplayer2 ' +
         'autoplay="1" ' +
         'ShowControls="1" ' +
         'ShowStatusBar="0" ' +
         'AutoSize="true" ' +
         'loop="true" ' +
         'TransparentAtStart="0" ' +
         'EnableFullScreenControls="1" ' +
         'EnableContextMenu="0"> ' +
         
         '</OBJECT> ';
      
         return mp;
}



           
function displaydiv(the_sub,ht){
  
	if (document.getElementById(the_sub).style.display == ""){
		
		document.getElementById(the_sub).innerHTML = "";
		document.getElementById(the_sub).style.display = "none";
		whichdiv =null;
		return;
		
		
	}
	
	
	if (whichdiv !=null){
	   document.getElementById(whichdiv).innerHTML="";

	   document.getElementById(whichdiv).style.display = "none";
	   }

	
  document.getElementById(the_sub).innerHTML= ht;
  document.getElementById(the_sub).style.display = "";
  whichdiv=the_sub;

  }
