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 gotoSermon() {
  var x=document.getElementById("sermonLists")
  if(x.selectedIndex==0) y=1;
  if(x.selectedIndex==1) window.location="/resources/messages/series/";
  if(x.selectedIndex==2) window.location="/resources/messages/category/";
  if(x.selectedIndex==3) window.location="/resources/messages/date/";
  if(x.selectedIndex==4) window.location="/resources/messages/speaker/";
}
function doSomething(x) {
	if (x=="nav_contact") c="current_contact";
	else if (x=="nav_home") c="current_home";
	else c="current";
	var y=document.getElementById('nav').className;
	if (y) document.getElementById(y).className="nav";
	document.getElementById(x).className=c;
	document.getElementById('nav').className=x;
}
function showBranch(branch,button,n) {
	var objBranch = document.getElementById(branch).style;
	var objButton = document.getElementById('tab_topper');
	n++;
	/* for (x=1;n>x;x++) {
		var z = "link"+x;
		document.getElementById(z).parentNode.className="back";
	} */
	objButton.className = button;
	for (x=1;n>x;x++) {
		var z = "branch"+x;
		document.getElementById(z).style.display="none";
	}
	objBranch.display="block";
}