//jQuery.noConflict();

jQuery(document).ready(function($) {

/*
	css shortcomings
*/

	$("#nav_main > li > div.nav_main_sub_outer").hide();
     
	if (ISIE6) {
	}
	
	var allNavItems = $("#nav_main > li");
	jQuery.each(allNavItems, function(i) {
		$(this).hover(
			function() {
				//hasSub
				$(this).children("div.nav_main_sub_outer").show().parent().addClass("hasSub");
				$(this).addClass("hover");
			}, function() {
				$(this).children("div.nav_main_sub_outer").hide().parent().removeClass("hasSub");
				$(this).removeClass("hover");
			}
		);
	});
	/*var allSubNavItems = $("ul.nav_main_sub > li > div.nav_main_sub_outer");
	jQuery.each(allSubNavItems, function(i) {
		$(this).hover(
			function() { 
				$(this).show();
			}, function() {
				$(this).parent().removeClass("hover")
				$(this).parent().hide().removeClass("hasSub")
			}
		);
	});*/

});