    var obj;
	var fadeW = 450;
	var fadeH = 150;
	var tempX = 0;
	var tempY = 0;
	var tempPX = 20;
	var tempPY = -80;
	var theitem = 0;
	var xmlitemreq = null;
	var xmlitemreq2 = null;
	var xmlitemreq3=null;
	var ftimer = null;
	var current_doc = '';
	var npurl = '/liverectxt.php';
	var onurl = '/on-now-home.php';
	var HnpTime = 600;
	var HonTime = 900;
	var Hnptmr = null;
    var Hontmr = null;

function sFa(qqqq) {
		 theitem = qqqq;
		obj = document.getElementById("fa");
		if((tempY - document.body.scrollTop)  < 190) {tempPY = 10;} else {tempPY = -145;}
		if((tempX - document.body.scrollLeft) > (fadeW + 100)) {tempPX = -45 - fadeW;} else {tempPX = 45;}

		obj.style.left = tempX + tempPX;
	    obj.style.top = tempY + tempPY;
	    obj.style.visibility = "visible";
	t = 0;
	current_doc = ("/daypage/schedgridinner.php?item=" + qqqq);
	ftimer = setTimeout("loadXMLDoc(current_doc)", 350);
}

function hFa() {
	clearTimeout(ftimer);
	obj = document.getElementById('fa');
	obj.innerHTML='<h1><font color="#000000"><i>Loading<img src="/images/loading.gif" width="100" height="10"></i></font></h1>';
	obj.style.visibility = "hidden";
}




function getMouseXY(e) {
if (dozeIE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
return true;
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function loadXMLDoc(url)
{
xmlitemreq=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
  {
  xmlitemreq=new XMLHttpRequest()
  }
// code for IE
else if (window.ActiveXObject)
  {
  xmlitemreq=new ActiveXObject("Microsoft.XMLHTTP")
  }
if (xmlitemreq!=null)
  {
  xmlitemreq.onreadystatechange=state_Change
  xmlitemreq.open("GET",url,true)
  xmlitemreq.send(null)
  }
}

function state_Change()
{
// if xmlhttp shows "loaded"
if (xmlitemreq.readyState==4)
  {
  // if "OK"
  if (xmlitemreq.status==200)
  {
  
  document.getElementById("fa").innerHTML= xmlitemreq.responseText;
  }
  }
}


function loadXMLDoc2(url)
{
//alert(url);
xmlitemreq2=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
  {
  xmlitemreq2=new XMLHttpRequest()
  }
// code for IE
else if (window.ActiveXObject)
  {
  xmlitemreq2=new ActiveXObject("Microsoft.XMLHTTP")
  }
if (xmlitemreq2 != null)
  {
  xmlitemreq2.onreadystatechange=state_Change2
  xmlitemreq2.open("GET",url,true)
  xmlitemreq2.send(null)
  }
}

function state_Change2()
{
// if xmlhttp shows "loaded"
if (xmlitemreq2.readyState==4)
  {
  // if "OK"
  if (xmlitemreq2.status==200)
  {
  
  document.getElementById("A3").innerHTML= xmlitemreq2.responseText;
   HnpTime = 120000;
  Hnptmr = setTimeout("loadXMLDoc2(npurl)", HnpTime); 
  }
  }
}

function loadXMLDoc3(url)
{
xmlitemreq3=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
  {
  xmlitemreq3=new XMLHttpRequest()
  }
// code for IE
else if (window.ActiveXObject)
  {
  xmlitemreq3=new ActiveXObject("Microsoft.XMLHTTP")
  }
if (xmlitemreq3 != null)
  {
  xmlitemreq3.onreadystatechange=state_Change3
  xmlitemreq3.open("GET",url,true)
  xmlitemreq3.send(null)
  }
}

function state_Change3()
{
// if xmlhttp shows "loaded"
if (xmlitemreq3.readyState==4)
  {
  // if "OK"
  if (xmlitemreq3.status==200)
  {
  
  document.getElementById("A4").innerHTML= xmlitemreq3.responseText;
  HonTime = 121000;
  Hontmr = setTimeout("loadXMLDoc3(onurl)", HonTime);
  }
  }
}


function startnp()
{
Hnptmr = setTimeout("loadXMLDoc2(npurl)", HnpTime);
Hontmr = setTimeout("loadXMLDoc3(onurl)", HonTime);

}
function xyz()
{
clearTimeout(Hnptmr);
clearTimeout(Hontmr);
HnpTime = 600;
HonTime = 900;
startnp();
	}


