sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			var IfrRef = document.getElementById('DivShim');
			this.className+=" sfhover";
   
			
			if (this.lastChild.offsetHeight == null) {
				if (IfrRef != null) {	
				    IfrRef.style.display = "none";
				}
				return;
			}

			if (IfrRef != null) {
				IfrRef.style.width = this.lastChild.offsetWidth;
				IfrRef.style.height = this.lastChild.offsetHeight;
				IfrRef.style.top = getTopOffset(this.lastChild) - this.offsetHeight / 2;
				IfrRef.style.left = getLeftOffset(this.lastChild);

				IfrRef.style.zIndex = 9;
				IfrRef.style.display = "block";
			}
		}
		
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			var IfrRef = document.getElementById('DivShim');
			if (IfrRef != null) {
				IfrRef.style.display = "none";
			}
		}
	}
}

function getTopOffset(element) {
	return (element == null) ? 0 : element.offsetTop + getTopOffset(element.offsetParent);
}

function getLeftOffset(element) {
	return (element == null) ? 0 : element.offsetLeft + getLeftOffset(element.offsetParent);
}

if (document.all) { //MS IE
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	else { //IE 5.2 Mac does not support attachEvent
		var old = window.onload;
		window.onload = function() { if (old) old(); sfHover(); }
	}
}


function navPage(objLink)
{
    location.href=objLink;
}