// suckerfish dropdowns from http://www.htmldog.com/articles/suckerfish/dropdowns/
// and alistapart.com
sfHover = function() { 
	var sfEls = document.getElementById("nav").getElementsByTagName("LI"); 
	for (var i=0; i<sfEls.length; i++) { 
		
		sfEls[i].onmouseover=function() { 
			hideSelect();
			this.className+=" sfhover";
		} 
		
		sfEls[i].onmouseout=function() { 
			showSelect();
			this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); 
		}
	}
} 
if (window.attachEvent) window.attachEvent("onload", sfHover);

// hide select form
// this will hide any bannerhead select forms
hideSelect = function() { 
	if (document.getElementById("bannerHead") != null) {
		var bannerhead = document.getElementById("bannerHead");
		if (bannerhead.getElementsByTagName("select") != null) {
			var selectBox = bannerhead.getElementsByTagName("select"); 
				for (var i=0; i < selectBox.length; i++) {
					selectBox[i].className+=" hide"; 
			}
		}
	}
}

// show select form
showSelect = function() { 
	if (document.getElementById("bannerHead") != null) {
		var bannerhead = document.getElementById("bannerHead");
		if (bannerhead.getElementsByTagName("select") != null) {
			var selectBox = bannerhead.getElementsByTagName("select"); 
				for (var i=0; i < selectBox.length; i++) { 
					selectBox[i].className = selectBox[i].className.replace(new RegExp(" hide\\b"), " floatRight"); 
				}
		}
	}
}
// simple jump menu
function jump(form) {
	var order=form.jumpMenu.selectedIndex
	if (form.jumpMenu.options[order].value != 0) {
		location=form.jumpMenu.options[order].value;
	}	
}
// simple mm window opener
function popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
