/* 
JavaScript for drop-down menu (IE fix)
...another son of suckerfish.
http://www.htmldog.com/articles/suckerfish/dropdowns/
*/

sfHover = function() {
	var sfEls = document.getElementById("tabs").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 tabOn(id){
	tab = document.getElementById("tab-"+id);
	span = document.getElementById("span-"+id);
	tab.style.backgroundPosition = '0 -35px';
	span.style.backgroundPosition = '100% -35px';
}

function tabOff(id){
	tab = document.getElementById("tab-"+id);
	span = document.getElementById("span-"+id);
	tab.style.backgroundPosition = '0 0';
	span.style.backgroundPosition = '100% 0';
}
