/* ":hover" fuer IE6 */

sfHover = function() {
//	var sfEls = document.getElementById("mainNav").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"), "");
//		}
//	}
	
	
//	jQuery('#mainNav > *').each(function() {
//		jQuery(this).mouseover(function() {
//			jQuery(this).addClass('sfhover');
//			jQuery(this).show();
//		});
//		jQuery(this).mouseout(function() {
//			jQuery(this).removeClass('sfhover');
//			jQuery(this).hide();
//		});
//	});

}

//if (window.attachEvent) {
//	window.attachEvent("onload", sfHover);
//}


jQuery.fn.dropdownMenu = function() {  
	    $('#mainNavWrapper').css('z-index', 5);
//    if ($.browser.msie && $.browser.version*1 < 7){  
        this.find("li").hover(function(){  
            $(this).addClass('tmg_sfHover');
            $('ul', this).show();

        },  
        function(){  
            $(this).removeClass('tmg_sfHover');  
            $('ul', this).hide();
        });  
//    }  
} 

$(document).ready(function() {  
	$("#mainNav").dropdownMenu();  
});
