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);

function showPopup (id) {
	document.getElementById(id).style.visibility="visible";
	document.getElementById(id).style.display="block";
	document.getElementById("shade").style.visibility="visible";
	document.getElementById("shade").style.height="1300px";
	document.getElementById("shade").style.display="block";	
	}

function featureView (num) {
	document.getElementById("articles").style.marginTop = -135*(num-1) + 'px';
	}
	
function hide (id) {
	document.getElementById(id).style.visibility="hidden";
	document.getElementById(id).style.display="none";
	document.getElementById("shade").style.visibility="hidden";
	document.getElementById("shade").style.height="0";
	document.getElementById("shade").style.display="none";	
	}
