sfHover = function() {
    var sfEl = document.getElementById("savemenu");
   	
	if(sfEl) {
	    var t;
	
	    sfEl.onclick=function() {
            if(this.className == "sfhover")
		        this.className = "";
		    else
		        this.className = "sfhover";
	    }
    	
	    hideSaveMenu = function() {	 
                sfEl.className = "";                          
        }

	    sfEl.onmouseout=function() {			
	        t = window.setTimeout("hideSaveMenu()", 500);	    
	    }	
    	
	    sfEl.onmouseover=function() {	
	        window.clearTimeout(t);	    
	    }
	}
}

if (window.addEventListener)  {
    //DOM method for binding an event
    window.addEventListener("load", sfHover, false); 
}
else if (window.attachEvent) {
    //IE exclusive method for binding an event
    window.attachEvent("onload", sfHover)
}
else if (document.getElementById) {
    //support older modern browsers
    window.onload = sfHover
}