	function imgSwap(oImg){
	   var strOver  = ".out"    // image to be used with mouse over
	   var strOff = ".over"     // normal image
	   var strImg = oImg.src
	   if (strImg.indexOf(strOver) != -1) 
	      oImg.src = strImg.replace(strOver,strOff)
	   else
	      oImg.src = strImg.replace(strOff,strOver)
	}
	
	function ajaxToolTip(post_id) { 
		var url = 'inc/getdateinfo.php';
		var pars = { post_id: post_id };
		var ajax = new Ajax.Updater({success: 'events'},url,{method: 'post', parameters: pars, onFailure: reportError});
		Effect.BlindDown('events', { duration:1.5 });
	}
	
	function reportError(request) {
		$F('events') = "Error";
	}
	
function SwitchMenu(obj, menu){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById(menu).getElementsByTagName("dd"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}


var xmlhttp;
var timerId = 0;
var op = 1;
function getPageFx() {
url = "index.php?pagename=home";
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest()
xmlhttp.onreadystatechange=xmlhttpChange
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
}
else
getPageIE();
}

function xmlhttpChange() {
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4) {
// if "OK"
if (xmlhttp.status==200) {
if(timerId!=0)
window.clearTimeout(timerId);
timerId = window.setTimeout("trans();",100);
}
else
{
alert(xmlhttp.status)
}
}
}

function trans(){
op -= .1;
document.body.style.opacity = op;
if(op<.4){ 
	window.clearTimeout(timerId); timerId = 0; 
		document.body.style.opacity = 1; 
			document.open(); 
			document.write(xmlhttp.responseText); 
			document.close(); return; 
			} 
			timerId = window.setTimeout("trans();",100); 
			} 
			function getPageIE(){ 
			window.location.href = "index.php?pagename=home"; 
			}