//Page switcher
var xmlhttp2;


function doit() {
	//alert('here');
	xmlhttp2=GetXmlHttpObject();
		if (xmlhttp2==null)
 		 {
  			alert ("Browser does not support HTTP Request");
 			return;
 		 }

	var theurl = 'jump2.php';
	if(!xmlhttp2) alert('not working');
	//alert(theurl);
	xmlhttp2.open('GET', theurl, true);
	//xmlhttp2.onreadystatechange = printTime;
	xmlhttp2.send(null);
	//alert('ed');
	var newele = document.createElement('div');
	
	newele.setAttribute('id','jump2');
	//alert('works');

	var ele = document.getElementById("jump");
	//alert(ele);
	var parloads = ele.parentNode;
	//alert('removed');
	new Effect.Fade(ele,{
	afterFinish : function() {
		ele.setAttribute('id','jump2');
		appEle(ele);
		//alert('clever');
		//parloads.removeChild(ele);
	/*var newele = document.createElement('div');
		newele.innerHTML = '<img src="../images/loader.gif" />';
		newele.setAttribute('id','loader');
		parent.appendChild(newele);
		//alert('ed');//parent.removeChild(ele);
		
		xmlhttp2.onreadystatechange = printTime();*/
}
});

}

function appEle(ele) {
	new Effect.Appear(ele,{
afterFinish : function() {
	//formFun();
	}
});//effect
}

function Pause() {
//alert('ed');
setTimeout("endpause()",6000); // 3 secs
//endpause();
return false;
}

function endpause() {
//alert('here');
doit();
return false;
}

function GetXmlHttpObject() {
	//var xmlHttpObl;
	if(window.XMLHttpRequest){
		//alert("FF");
		return new XMLHttpRequest();
} else {
	try 
	{
		//alert("msxml2");
		return new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			//alert("msxml");
			return new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e)
		{
			//alert("FALSE1");
			return false;
		}
	}
}
//alert("FALSE2");
return false;
}//end function

//window.onload = Pause();
