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"), "");
		}
	}
}
boltHover = function() {
	var bolt = document.getElementsByTagName("IMG");
	for (var i=0; i<bolt.length; i++) {
		if (bolt[i].className == 'disk') {
			bolt[i].onmouseover=function() {
				this.src = "/images/disk-hover.gif";
			}
			bolt[i].onmouseout=function() {
				this.src = "/images/disk.gif";
			}
		}
	}
}

function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}
addLoadEvent(boltHover);

if (window.attachEvent) window.attachEvent("onload", sfHover);
