// JavaScript Document
function xPlay(){
	document.WMPlay.Play();
}

function xStop(){
	document.WMPlay.stop();
}

function xVolmenos(){
	if(document.WMPlay.Volume >= -8000){
		document.WMPlay.Volume = document.WMPlay.Volume - 300;
	}
}

function xVolmais(){
	if(document.WMPlay.Volume <= -300){
		document.WMPlay.Volume = document.WMPlay.Volume + 300;
	}
}

function popUp(P,W,H,R){
	window.open(P,"POPUP","toolbar=0,location=0,directories=0,scrollbars="+R+",width="+W+",height="+H+",left=10,top=10");
}

///////////////////

function NoAR() {
   var ajaxObj;

   try {
      // Firefox, Opera 8.0+, Safari...
      ajaxObj=new XMLHttpRequest();
   } catch (e) {
      // Internet Explorer
      try {
         ajaxObj=new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
         try {
            ajaxObj=new ActiveXObject("Microsoft.XMLHTTP");
         } catch (e) {
            alert("Seu navegador não possui suporte ao AJAX!");
            return false;
         }
      }
   }
   ajaxObj.onreadystatechange=function() {
      if(ajaxObj.readyState==4) {
         MarqueeNoAr.innerHTML = ajaxObj.responseText;
      }
   }
   ajaxObj.open("GET","noar.php",true);
   ajaxObj.send(null);
   
   setTimeout(NoAR,5000);
}
