$(document).ready(function(){
	
 jQuery(function(){
		jQuery('ul.sf-menu').superfish();
		if((/MSIE 6\.0/).test(navigator.userAgent))
		{
			jQuery('ul.sf-menu > li').hover(function(){ $(this).addClass("sfHover")},function(){ $(this).removeClass("sfHover")});
			jQuery('ul.sf-menu ul li').hover(function(){$(this).addClass("subSfHover");},function(){$(this).removeClass("subSfHover");}).click(function(){window.location=$(this).children("a").attr("href");});
			$(".sf-menu > li").mouseover(function(){
					if($(this).next().hasClass("Active"))
						$(this).find(".leftNavBtn").removeClass("bgNoneIE");
					$(this).prev().not(".Active").find(".leftNavBtn").addClass("bgNoneIE");
				});
				$(".sf-menu > li").mouseout(function(){
					//$(this).prev().find(".bgNoneIE").removeClass("bgNoneIE");
					if($(this).next().hasClass("Active"))
						$(this).find(".leftNavBtn").addClass("bgNoneIE");
					$(this).not(".Active").prev().not(".Active").find(".bgNoneIE").removeClass("bgNoneIE");
				});		
		}
		else
			jQuery(".shadow_Btm").remove();
		if((/Macintos/).test(navigator.userAgent)){
			jQuery('ul.sf-menu').find(".nav").addClass("mac");
		}
	});
	$(".sf-menu .Active").prev().find(".leftNavBtn").addClass("bgNone");
	$(".sf-menu > li").mouseover(function(){
		if($(this).next().hasClass("Active"))
			$(this).find(".leftNavBtn").removeClass("bgNone");
		$(this).prev().not(".Active").find(".leftNavBtn").addClass("bgNone");
	});
	$(".sf-menu > li").mouseout(function(){
		if($(this).next().hasClass("Active"))
			$(this).find(".leftNavBtn").addClass("bgNone");
		$(this).not(".Active").prev().not(".Active").find(".bgNone").removeClass("bgNone");
	});
	
});
