// JavaScript Document
var xmlHttp = createXmlHttpRequestObject(); 
function createXmlHttpRequestObject() 
{	  
  var xmlHttp;
    if(window.ActiveXObject)
  {
    try
    {
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (e) 
    {
      xmlHttp = false;
    }
  }
  
  else
  {
    try 
    {
      xmlHttp = new XMLHttpRequest();
    }
    catch (e) 
    {
      xmlHttp = false;
    }
  }
  
  if (!xmlHttp)
 
    alert("Error creating the XMLHttpRequest object.");
  else 
    return xmlHttp;
}
//-------------------------------------
function loadscroller(){
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)
{ 
		xmlHttp.open("GET","news/scroller.php ", true);  
        xmlHttp.onreadystatechange =loadscrollerresponse;
        xmlHttp.send(null);
	
}else setTimeout('loaddefaultprocess()', 1000);
	
	
}
function loadscrollerresponse(){
	if (xmlHttp.readyState == 4) 
  {
       if (xmlHttp.status == 200) 
    {
       		 document.getElementById('scrolliglayer').innerHTML=xmlHttp.responseText;
			 document.getElementById('scrollingtext').start();
     } 
      else 
    {
      alert("There was a problem accessing the server: " + xmlHttp.statusText);
    }
  }
}
//---------------------------------------