
//<![CDATA[
<!--
function fyagori(url) {
    windowHandle = window.open(url,'deskTop','status=no,width=1015,height=740,top=0,left=0,scrollbars=no,scrolling=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no');
}
//-->
//]]>


//<![CDATA[
window.defaultStatus = "UR@Kings0n0ne.com"
//]]>


<!-- Original:  Gilbert Davis -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function loadImages() {
if (document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) {  // Netscape 4
document.hidepage.visibility = 'hidden';
}
else {  // IE 4
document.all.hidepage.style.visibility = 'hidden';
      }
   }
}
//  End -->


//The setEmbed function calls the getMimeType function, which returns the proper MIME type:

function getMimeType(){
var mimeType = "application/x-mplayer2"; //default
var agt=navigator.userAgent.toLowerCase();
if (navigator.mimeTypes && agt.indexOf("windows")==-1) {
//non-IE, no-Windows
  var plugin=navigator.mimeTypes["audio/mpeg"].enabledPlugin;
  if (plugin) mimeType="audio/mpeg" //Mac/Safari & Linux/FFox
}//end no-Windows
return mimeType
}

//end function getMimeType

//The following function finds the SPAN with a given id and inserts the EMBED tag into the SPAN, by replacing the "Finding plugin..." text:

function setEmbed(ID, dir) {
    var element = document.getElementById(ID); element.innerHTML = '<embed src="'+dir+ID+'.m3u" autostart="1" loop="4" height="0" width="0" type="'+getMimeType()+'" volume="300"></embed>';
}

// end function setEmbed
