sfHover = function() {
	if (!document.getElementById && !document.getElementsByTagName) {return;}
	
	writeCss();
	
	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"), "");
		}
	}
}

writeCss = function() {
	if (!document.getElementById && !document.getElementsByTagName) {return;}
	
	var css = document.createElement('link');
	var head = document.getElementsByTagName('head');
	css.href = '_suckerfish.css';
	css.rel = 'stylesheet';
	css.type = 'text/css';
	head[0].appendChild(css);
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
if (window.addEventListener) window.addEventListener("load", writeCss, false);