/*function menuFix() {
    var sfEls = document.getElementById("t_nav").getElementsByTagName("li");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
        this.className+=(this.className.length>0? " ": "") + "sfhover";
        }
        sfEls[i].onMouseDown=function() {
        this.className+=(this.className.length>0? " ": "") + "sfhover";
        }
        sfEls[i].onMouseUp=function() {
        this.className+=(this.className.length>0? " ": "") + "sfhover";
        }
        sfEls[i].onmouseout=function() {
        this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
"");
        }
    }
}
window.onload=menuFix;*/
$(document).ready(function(){
	$("#nav .sub_menu:last").css("background","none");
	
	$("#nav li.sub_menu").hover(function(){	
		  $(this).find("a.ok").css("color","#ff3c00");
		 $(this).addClass("sub_menu2");		
		 $(this).find("ul").show();
    },
	function(){		
		 $(this).removeClass("sub_menu2");
		 $(this).find("a.ok").css("color","#444");
		// $(this).find(".sub_menu").css("background","url(../images/hover.gif) no-repeat");
		 $(this)	.find("ul").hide()	;		
    }
	,
   function(){$(this)	.css("background","none");	})
						   
})

