	// AJAX ----------------------------------------

var xmlHttp;

function GetXmlHttpObject(){

var xmlHttp = null;

	try {
	  // Firefox, Opera 8.0+, Safari
	  xmlHttp = new XMLHttpRequest();
	  }
	catch (e) {
	  // Internet Explorer
	  try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
	  catch (e){
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	  }
	  
	return xmlHttp;

};

//Load Random Scream
function doPlayingNow(){
 

	xmlHttpdoPlayingNow = GetXmlHttpObject()
	
	if(xmlHttpdoPlayingNow  == null){
		alert ("Your browser does not support AJAX!");
		return;
	  }

	xmlHttpdoPlayingNow.onreadystatechange = function(){
		
	var loader = document.getElementById("mycarousel");
	
 		if (xmlHttpdoPlayingNow.readyState == 4){ 
			
			var res = xmlHttpdoPlayingNow.responseText;
			
			loader.innerHTML = res ;
					
		}
		
	
	}
	var url = "playingNow_ajax.php";
	 // if (window.XMLHttpRequest) {
        
	     //  netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
	      // netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
	//} 
	//var params = "id="+id+"&rating="+rating;
	xmlHttpdoPlayingNow.open("POST",url,true);
	xmlHttpdoPlayingNow.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttpdoPlayingNow.setRequestHeader('Content-Access-Control', 'allow *.music2enjoy.com *.m2eTV.com *.cybernetgateway.com');
//	xmlHttpdoPlayingNow..setRequestHeader("Content-length", params.length);
	xmlHttpdoPlayingNow.setRequestHeader("Connection", "close");
	xmlHttpdoPlayingNow.send();

} ;
  