function suckerfish(type, tag, parentId) {
	if (window.attachEvent) {
		window.attachEvent("onload", function() {
			var sfEls = (parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);
			type(sfEls);
			
		});
	}
}

sfHover = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		
			sfEls[i].onmouseover=function() {
				if (this.className != "test"){	
				//alert(this.className);
				this.className+=" sfhover";
				//alert(this.className);
				}else{
				//alert(this.className);
				this.className+=" tallhover";
				//alert(this.className);
				}
			}
		sfEls[i].onmouseout=function() {
			if(this.className !="test tallhover"){
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				//alert(this.className);
			}else{
				this.className=this.className.replace(new RegExp(" tallhover\\b"), "");
				//alert(this.className);
			}
		}
	}
}

suckerfish(sfHover, "li", "menu");

