/*
Content-Type: text/javascript
*/

sfHover = function() {
	if (document.getElementById("navbar") == null)
	    return;
	var sfEls = document.getElementById("navbar").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function closePopup(id) {
	var popupUL = document.getElementById(id);	
	popupUL.style.left = '-999em';
}

function resetPopup(id) {
	var popupUL = document.getElementById(id);	
	popupUL.style.left = '';
}

sfHover2 = function() {
	if (document.getElementById("sideToolbar") == null)
	    return;
	var sfEls = document.getElementById("sideToolbar").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover2);


sfHover3 = function() {
	if (document.getElementById("toolbar") == null)
	    return;
	var sfEls = document.getElementById("toolbar").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover3);
