function MM_openBrWindow(theURL,winName,features) {
	smallWin=window.open(theURL,winName,features);
}

function tellAFriend () {
	var href = document.location.href;
	var baseRef = href.substring(href.lastIndexOf("/") + 1);
	baseRef = baseRef.substring(0, baseRef.lastIndexOf("."));
	var URL = "/tellafriend.html?item=" + baseRef;
	MM_openBrWindow(URL,'tellAFriend','scrollbars=no,resizable=yes,width=453,height=447,left=200,top=50');
}

sfHover = function() {
	var sfEls = document.getElementById("nav").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);
