function menuFix(menuObj) {
	var sfEls = document.getElementById(menuObj).getElementsByTagName("li");
	//alert(sfEls.length);
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "sfhover";				
		}
		sfEls[i].onMouseDown=function() {
			this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		sfEls[i].onMouseUp=function() {
			this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
		}
	}
}

var qlObj,qlListObj
var qlListVisible = false;
function showQuickLink() {
	qlObj = document.getElementById("quickLink-text");
	qlListObj = document.getElementById("quickLink-list");
	if (!qlListVisible)
	{
		qlListObj.style.display = "block";
		qlListVisible = true;
	} else {
		qlListObj.style.display = "none";
		qlListVisible = false;
	}
	
}

function changeQuickLink(text,url) {
	qlObj.innerHTML = text;
	qlListObj.style.display = "none";
	qlListVisible = false;
	document.getElementById("quickLink-hidden").value = url;
	document.getElementById("quickLink-url").href = url;
}


var hpLeftCurrent,hpLeftSection;
function showHpLeft() {
	hpLeftSection = document.getElementById("hpLeftSection").getElementsByTagName("div");
	for (var i=0; i<hpLeftSection.length ; i++ )
	{
		if (hpLeftSection[i].firstChild.nodeType == 3)
		{
			sectionHeader = hpLeftSection[i].firstChild.nextSibling;
		} else {
			sectionHeader = hpLeftSection[i].firstChild;
		}
		sectionHeader.onmouseover = function () {
			restore();
			this.parentNode.className+= " current";
			hpLeftCurrent = this.parentNode;
		}
	}
	hpLeftCurrent = hpLeftSection[0];
	hpLeftCurrent.className+=" current";
}
function restore() {
	hpLeftCurrent.className = hpLeftCurrent.className.replace(new RegExp("( ?|^)current\\b"),"");
}

