// JavaScript Document
function Ajax2(){
var xmlHttp;
	try{	
		xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
	}
	catch (e){
		try{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
		}
		catch (e){
		    try{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e){
				alert("No AJAX!?");
				return false;
			}
		}
	}

xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		var repl=xmlHttp.responseText;
		var temp = new Array();
		//alert(repl);
		temp=repl.split("?");
		document.getElementById('psponsors').innerHTML=temp[1];
		document.getElementById('msponsors').innerHTML=temp[0];
		document.getElementById('esponsors').innerHTML=temp[2];		
		//alert(xmlHttp.responseText);
		setTimeout('Ajax2()',5000);
	}
}
var randomnumber=Math.floor(Math.random()*11)
xmlHttp.open("GET","b.php?a="+randomnumber,true);
xmlHttp.send(null);
//alert("here");
}

window.onload=function(){
	setTimeout('Ajax2()',5000);
}

