function getXmlhttp(){var http_request;if(window.XMLHttpRequest) { http_request = new XMLHttpRequest();if (http_request.overrideMimeType) {http_request.overrideMimeType("text/xml");}}else if (window.ActiveXObject) { try {http_request = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {try {http_request = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {}}}if (!http_request) { return null;}	return http_request;}
function sendCommand(cmd,dat,evt){var xhttp = getXmlhttp();var method="get";var url="/!/api.aspx?c="+escape(cmd)+"&d="+escape(dat)+"&x="+Math.round(Math.random()*10000).toString();xhttp.open(method,url,true);xhttp.send(null);xhttp.onreadystatechange=function(){;if(xhttp.readyState == 4 && xhttp.status == 200){eval(evt+"('"+xhttp.responseText+"')");}}}
function doHot(str){this.sendCommand("Hot",str,"doHotCB");}
function doHotCB(str){if(str=="1"){var i=parseInt(document.getElementById("spanHot").innerHTML);document.getElementById("spanHot").innerHTML=(i+1).toString();}else{alert("您貌似已经顶过好几次了，请休息一下。-_-!");}}
function setHomepage(){if   (document.all)   
  { 
   document.body.style.behavior= 'url(#default#homepage) '; 
   document.body.setHomePage( 'http://www.yyplay.com/ '); 
  } 
}
