// JavaScript Document


$(document).ready(
	function() {
		
		$(".navigation .head").hover(function(){
			$(this).addClass("head_hover");									  
			$(this).children(".body").show();
		},function(){
			$(this).removeClass("head_hover");
			$(this).children(".body").hide();
		});
		
		$(".navigation .first").hover(function(){
			$(this).addClass("first_hover");									  
			$(this).children(".body").show();
		},function(){
			$(this).removeClass("first_hover");
			$(this).children(".body").hide();
		});
		
		$(".navigation .link").hover(function(){
			$(this).addClass("link_hover");									  
		},function(){
			$(this).removeClass("link_hover");
		});
		
		
		$('.select').sSelect();
		
		
		$(".thumbs a").hover(function(){
			$(this).children("span").addClass("hover");		
			//$("#main_auto").attr("src", "/media/autos/large-"+$(this).attr("rel"));
			showSlider($(this).attr("rel"), 1);
		},function(){
			$(this).children("span").removeClass("hover");
			if (typeof(timeId) != "undefined") {
				clearTimeout(timeId);
			}
		});
		
		$(".book_link").hover(function(){
			$(".book").addClass("book_hover");									  
		},function(){
			$(".book").removeClass("book_hover");
		});
		
		$(".darker").height($(document).height());
		
		$(".sidenav li").hover(function(){
			$(this).css('z-index', '999');								
			$(this).children("img").show();	
			$(this).children("a").addClass("hover");		
		},function(){
			$(this).css('z-index', '0');
			$(this).children("img").hide();	
			$(this).children("a").removeClass("hover");
		});
		
				
	});
