var LIid = 'r1';

$(function(){
	// to fix menu in IE6
	if(jQuery.browser.msie)
	{
		if(parseInt(jQuery.browser.version) <= 6)
		{
			$("#nav li").hover(
				function(){
					$(this).addClass("sfhover");
				},
				function(){
					$(this).removeClass("sfhover");
				}
			)
		}

		if(parseInt(jQuery.browser.version) >= 7)
		{
			// to fix menu in IE7
			$("#nav>li").hover(
				function(){
					if(LIid != $(this).attr("id"))
					{
						$("#"+LIid+">ul").css("left","-999em");
					}
					LIid = $(this).attr("id");
					$("#"+LIid+">ul").css("left","auto");
				},
				function(){
				}
			);

			$("#content").hover(
				function(){
					$("#"+LIid+">ul").css("left","-999em");
				},
				function(){
				}
			)
		}
	}

});

