function dropdown_selectParents(obj)
{
	if(event.shiftKey)
	{
		getParentUls(obj)
	}
}

var ulParents = [];
function getParentUls(obj)
{
	var par = obj.parentNode;
	if(par.tagName.toLowerCase() == "li")
	{
		par = par.parentNode;
	}
	if(par.tagName.toLowerCase() == "ul")
	{
		ulParents.push(par);
		getParentUls(par);
		var parLi = par.childNodes[0];
		var parAs = parLi.getElementsByTagName("a");
		parAs[0].className = "AltHoverClass";
	}
	
	return ulParents;
}


function initSiteCredit(ID1, ID2){
	new Effect.Fade(ID2, { duration: 0.3 });
	new Effect.Move(ID1, { x: 275, y: 0, mode: 'absolute', afterFinish:function(obj){ revertSiteCredit.delay(6, ID1, ID2); }});
}

function revertSiteCredit(ID1, ID2){
	new Effect.Move(ID1, { x: 599, y: 0, mode: 'absolute', afterFinish:function(obj){ new Effect.Appear(ID2, { duration: 0.5 }); }});
}

function showDropDownNav(ID1, ID2, Img){
	if(ID1 != ''){
		document.getElementById(ID1).style.display = 'block';
	}
	if(ID2 != ''){
		//alert(document.getElementById(ID2).style.backgroundColor);
		//alert(ID2);
		document.getElementById(ID2).style.backgroundImage = 'url(/graphics/MainMenuBg_on.gif)';
		//document.getElementById(ID2).style.backgroundColor = '#FBB03F';
	}
}

function hideDropDownNav(ID1, ID2, Img){
	if(ID1 != ''){
		document.getElementById(ID1).style.display = 'none';
	}
	if(ID2 != ''){
		document.getElementById(ID2).style.backgroundImage = 'url(/graphics/MainMenuBg.gif)';
		//document.getElementById(ID2).style.backgroundColor = '#E0E68A';
	}
}


function ExpandCategory(catObj)
{
	showmenu(catObj, catObj.getAttribute("CategoryID") + "_children");
}

var zxcLst;


function showmenu(elmnt, dd_name){
if (zxcLst){ zxcLst.style.display="none"; }
var menobj=document.getElementById(dd_name);
menobj.data=true;
elmnt.data=true;
menobj.style.display="";
menobj.style.left=(zxcPos(elmnt)[0] + 15)+"px";
menobj.style.top=(zxcPos(elmnt)[1]+elmnt.offsetHeight)+"px";
zxcLst=menobj;
}

function zxcPos(zxc){
zxcObjLeft = zxc.offsetLeft;
zxcObjTop = zxc.offsetTop;
while(zxc.offsetParent!=null){
zxcObjParent=zxc.offsetParent;
zxcObjLeft+=zxcObjParent.offsetLeft;
zxcObjTop+=zxcObjParent.offsetTop;
zxc=zxcObjParent;
}
return [zxcObjLeft,zxcObjTop];
}

function zxcSMHAE(zxce){
var zxcto;
if (!zxce) var zxce = window.event;
if (zxce.relatedTarget) zxcto=zxce.relatedTarget;
else if (zxce.toElement) zxcto=zxce.toElement;
if (!zxcto){ return; }
while (zxcto.tagName!='HTML'){
if (zxcto.tagName=='BODY'){ break; }
if (zxcto.data){ return; }
zxcto=zxcto.parentNode;
}
if (zxcLst){ zxcLst.style.display="none"; }

}





//rgb(180, 188, 72) | #E0E68A
//rgb(246, 172, 63) | #FBB03F