/* custom rewrite of the function to use animation for all browsers except for IE6 win */

function mainmenu3(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		if($.browser.msie){
			if($.browser.version.substr(0, 1) == "6"){
				$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(0);
				$(this).find('ul:first').css("background", "#f6f5f5");
			}
			else {
				$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(0);
			}
		}
		else {
			$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		}
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}
 
 $(document).ready(function(){					
    var n = 0; 
    if($.browser.msie){
	    if($.browser.version.substr(0, 1) < "7"){
            $('#nav li').each(function(i) {
	            $(this).attr("id", "navli"+n.toString());
	            n++;
	
            });
        }    	
    } else {
        $('#nav li').each(function(i) {
            $(this).attr("id", "navli"+n.toString());
            n++;
        });
    }    
 	mainmenu3();
});
