$(document).ready(function(){
	
	/*/костыль для ИЕ
	$("#menu div span").hover(function(){
	
		var size = 0;
		
		$(this).parent().find("a").each(function(index, domEle){
			if(size < $(this).width()) size = $(this).width();
			//alert($(this).width());	
		});
		
		$(this).parent().find("span").css("width", size);
		//$(this).find("div a").css("color", "blue");
	},
	function(){
	
	});*/
	if ($.browser.msie) {
		$("#menu div span").hover(function(){

				$(".gallery").css("z-index", "-1");

			$(this).css("background-color", "#ffffff");
		},
		function(){

			$(this).css("background-color", "#c9c9c9");

		});
	}
	
	$("#menu td span").click(function(){
		document.location.href = $(this).find("a").attr("href");
	});
	
	$("#menu td").hover(function(){
		
		$("#menu td span").css("cursor", "pointer");
		
		$(this).find("div").slideDown(500, function(){
				
		});

	},
	function(){
		
		$("#menu div").slideUp(0, function(){
			
		});
	
	});

});
//Узнать id Элемент
