function showLoader() {
	var alerttext = "sorry about this crawl! CLICK some BANNER ADS to make this site more snappish.";
	
	var pageShade = document.createElement("div");
	
	if(document.documentElement.clientHeight && document.all){
		pageShade.style.height = document.documentElement.clientHeight;
		pageShade.style.width = document.documentElement.clientWidth;
	}
	pageShade.id = "loaderStatusShade";
	
	if(document.all) { // special treatment for ie
		pageShade.onclick = function() { alert(alerttext); this.style.display="none"; }
		pageShade.style.filter = "alpha(opacity=20)";
	} else {
		pageShade.setAttribute("onclick", "alert('" + alerttext + "'); this.style.display='none'");
	}
	
	document.body.insertBefore(pageShade, document.body.childNodes[0]);
	
	var pageLoader = pageShade.appendChild(document.createElement("div"));
	pageLoader.id = "loaderStatusDiv";
	pageLoader.setAttribute("onclick", "alert('" + alerttext + "')");
	pageLoader.appendChild(document.createTextNode("loading "));
	
	var animation = document.createElement("img");
	pageLoader.appendChild(animation);
	animation.src = "../img/loading.gif";
	
	
	if(window.innerHeight){
		iHeight = window.innerHeight;
		iWidth = window.innerWidth;
	}
	else if(document.documentElement.clientHeight){
		iHeight = document.documentElement.clientHeight;
		iWidth = document.documentElement.clientWidth;
	}
	else{
		iHeight = document.body.clientHeight;
		iWidth = document.body.clientWidth
	}
	if(document.documentElement.scrollTop) {
		iScrollTop = document.documentElement.scrollTop;
	} else if(document.body.scrollTop) {
		iScrollTop = document.body.scrollTop;
	} else {
		iScrollTop = 0;
	}
	
	pageLoader.style.top = (iHeight - 100) / 2 +  + iScrollTop + "px";
	pageLoader.style.left = (iWidth - 150) / 2 + "px";
	
	document.body.insertBefore(pageLoader, document.body.childNodes[0]);
	
	var pageShade = null;
	var pageLoader = null;
}

function hideLoader() {
	var pageLoader = document.getElementById("loaderStatusDiv")
	if(pageLoader) document.body.removeChild(pageLoader);
	var pageShade = document.getElementById("loaderStatusShade")
	if(pageShade) document.body.removeChild(pageShade);
	
	var pageLoader = null;
	var pageShade = null;
}