/* menu dropdown list fix for ie*/
window.onload = function() {
	if (document.all&&document.getElementById) {
	navRoot = document.getElementById("menu");
	for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="li") {
	node.onmouseover=function() {
	this.className+=" over";
	  }
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
	   }
	   }
	  }
	 }
	}

/* for image hover bahavior for MENU */
function menuOver(img){
	img.src = img.src.replace('_off', '_on');
	var childs = img.parentNode.parentNode.parentNode.getElementsByTagName("ul");
	if(childs != null && childs.length > 0)
	childs[0].onmouseover = function () { img.src = img.src.replace('_off', '_on') };
}

function menuOut(img){
	if(img.title == 'Selected') {
	return;
	}
	img.src = img.src.replace('_on', '_off');
	var childs = img.parentNode.parentNode.parentNode.getElementsByTagName("ul");
	if(childs != null && childs.length > 0)
	childs[0].onmouseout = function () { img.src = img.src.replace('_on', '_off') };
}

/* for donate button */
function donateOver(img){
	img.src = '../images/layout/donateButton_hover.gif';
}

function donateOut(img){
	img.src = '../images/layout/donateButton.gif';
}

/* for image hover bahavior */
function onImgOver(img){
	img.src = img.src.replace('_off', '_on');
}

function onImgOut(img){
	if(img.title == 'Selected'){
		return;
	}
	img.src = img.src.replace('_on', '_off');
}