// JavaScript Document


$(document).ready(
	function() {
		
		$(".navigation li").hover(function(){
		$(this).children("ul").show();
		},function(){
		$(this).children("ul").hide();
		});
		
		$(".info .head a").toggle(function(){
			$(this).addClass("open");
			$(".info .body").slideDown();
			},function(){
			$(this).removeClass("open");
			$(".info .body").slideUp();
		});
		
		
		
		
		
		$(".darker").height($(document).height());
		
		$(".nav_head").hover(function(){
		$(this).children(".nav_body").show();
		},function(){
		$(this).children(".nav_body").hide();
		});
		
		
		$(".arrows").click( function() { 
			$(".center_big").hide("slow");
			$(".center").show("slow");
		} );
		
		$(".basket .close").click(function(){
			$(this).parents(".item").animate({ opacity: 'hide' }, "slow");
		});
		
		$("tr:nth-child(even)").addClass("chet");
		
		$(".expanded_link").toggle(function(){
			$(this).text("Свернуть");
			$(this).addClass("close");
			$(".expanded_search").slideDown();
			},function(){
			$(this).text("Расширенный поиск");
			$(this).removeClass("close");
			$(".expanded_search").slideUp();
		});
		
		
		
				
	});
