function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenu2(selObj,restore){ //v3.0
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}

function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
        xmlhttp = false;
        }
      }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
      } catch (e) {
      xmlhttp = false;
      }
    }
	if (xmlhttp){
		xmlhttp.onreadystatechange=function(){
			if (xmlhttp.readyState == 4){
				if (xmlhttp.status == 200){
					alert(xmlhttp.responseText);
				}
			}
		}
	}
  return xmlhttp;
}

function chargeson(track){
	var http = getHTTPObject();
	http.open("GET", "/themes/meioz/player.php?track="+track+"", true);
	http.onreadystatechange = function(){
		if (http.readyState == 4) {
			results = http.responseText;
			document.getElementById("player").innerHTML = results;
		}
	}
	http.send(null);
}

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=300,height=200,screenX=150,screenY=150,top=150,left=150')
}

function popupWindowPlayer(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=200,screenX=0,screenY=0,top=300,left=450')

}
