function loadXMLDoc(url)
{
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for Firefox, Opera, IE7, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=state_Change;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function state_Change()
{
if (xmlhttp.readyState==4)
  {// 4 = "loaded"
  if (xmlhttp.status==200)
    {// 200 = "OK"
    document.getElementById('content').innerHTML=xmlhttp.responseText;
    }
  else
    {
    alert("Problem retrieving data:" + xmlhttp.statusText);
    }
  }
}

function PlayIt(thesong){
document.getElementById("music1").innerHTML='<object id="mediaPlayer" width="400" height="400" '
      +'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
      +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
      +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
      +'<param name="fileName" value="'+thesong+'">'
      +'<param name="autoStart" value="true">'
      +'<param name="showControls" value="true">'
	  +'<param name="showstatusbar" value="true">'
      +'<param name="loop" value="false">'
      +'<embed type="application/x-mplayer2" '
      +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
      +'showcontrols="true" width="400" height="400" '
      +'src="'+thesong+'" autostart="true" loop="false">'
      +'</embed>'
+'</object>'
}

var isDOM=document.getElementById?1:0;
var isIE=document.all?1:0;
function showBlock(winBlocks){
if(isDOM) {document.getElementById(winBlocks).style.display="";}
else if(isIE){ winBlocks.style.display = "";}
closemusic1();
}
function closeBlock(winBlocks){
if(isDOM) {document.getElementById(winBlocks).style.display="none";}
else if(isIE){ winBlocks.style.display = "none";}
showmusic1();
}

function showmusic1(){
if(isDOM) {document.getElementById("music1").style.display="";}
else if(isIE){ winBlock.style.display = "";}
}
function closemusic1(){
if(isDOM) {document.getElementById("music1").style.display="none";}
else if(isIE){ winBlock.style.display = "none";}
}

function showAd(winAd){
if(isDOM) {document.getElementById(winAd).style.display="";}
else if(isIE){ winAd.style.display = "";}
}
function closeAd(winAd){
if(isDOM) {document.getElementById(winAd).style.display="none";}
else if(isIE){ winAd.style.display = "none";}
}
