// JavaScript Document
var sfHover;
if (sfHover === undefined) {
	sfHover = function() {
		setHover('navbar');
		setHover('sidebar');
		setHover('header');
	}
}
function setHover(menuid) {
	if (document.getElementById(menuid)) {
		var sfEls = document.getElementById(menuid).getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
				this.style.zIndex=200;
				var id = this.id.replace(/link/,"menu");
				if(xGetElementById(id)) {
					xWidth('menuFrame',xWidth(id));
					xHeight('menuFrame',xHeight(id));
					xMoveTo('menuFrame', xPageX(id), xPageY(id));
					xShow('menuFrame');
				}
	
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				this.style.zIndex=100;
				xHide('menuFrame');
			}
		}
	
		sfEls = document.getElementById(menuid).getElementsByTagName("H1");
		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);
document.write('<IFRAME id="menuFrame" style="position:absolute;left:10;top:10;width:140;height:auto;visibility:hidden;z-index:99" src="javascript:false;" frameBorder="0" scrolling="no"></IFRAME>');
