// JavaScript Document
// Replace div content with content from script (var content)
var http=false;
if(navigator.appName=="Microsoft Internet Explorer"){http=new ActiveXObject("Microsoft.XMLHTTP");}else{http=new XMLHttpRequest();}

function getPageContent(div,content){
	showDiv("pageLoading");	
	http.abort();
	http.open("GET", content, true);
    http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById(div).innerHTML = http.responseText;
	  setTimeout("hideDiv('pageLoading')",2000);
    }
  }
  http.send(null);
}

function hideDiv(divID){
	if (document.getElementById) { // DOM3 = IE5, NS6
	document.getElementById(divID).style.visibility='hidden';
}else{
	if(document.layers){ // Netscape 4
	document.divID.visibility='hidden';
}else{ // IE 4
	document.all.divID.style.visibility='hidden';}
}
}

function showDiv(divID){
	if(document.getElementById){ // DOM3 = IE5, NS6
	document.getElementById(divID).style.visibility='visible';
}else{
	if(document.layers){ // Netscape 4
	document.divID.visibility='visible';
}else{ // IE 4
	document.all.divID.style.visibility='visible';}
}
}
