$(document).ready(function(){
mainmenu();
$(".details_drop").hide();
thumbmenu();

	var lightW = $(window).width();
	var lightH = $(window).height();
	

	$(".lightbox").width(lightW)
	$(".lightbox").height(lightH)
	$(".lightbox").hide();
	
	
	$(".thumb_light").width(lightW)
	$(".thumb_light").height(lightH)
	$(".thumb_light").hide();	
	
	$(".details").click(function(){
		$(this).toggleClass("more").next().slideToggle();								 
		//$(this).next().slideDown()	
	//	$(".details").addClass('more');
				  })

});

function mainmenu(){
	$("#nav ul").css({display: "none"}); // Opera Fix
	$("#nav li").hover(function(){
	$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
	$(this).find(".sub_menu").parent().addClass('active');
	$(this).find(".drop_menu").parent().addClass('active1');
	$(".lightbox").show();

	},function(){
	$(this).find('ul:first').css({visibility: "hidden"});
	$(this).find(".sub_menu").parent().removeClass('active');
	$(this).find(".drop_menu").parent().removeClass('active1');
	
	$(".lightbox").hide();
	$(".details_drop").hide();
	$(".details").removeClass('more');
	
	
});
}


function thumbmenu(){
	$("#thumb ul").css({display: "none"}); // Opera Fix
	$("#thumb").hover(function(){
	$(this).find('.thumb_drop').css({visibility: "visible",display: "none"}).show(400);
	$(this).find(".thumb_drop").parent().addClass('active');
	$(".thumb_light").show();
	
	},function(){
	$(this).find('.thumb_drop').css({visibility: "hidden"});
	$(this).find(".thumb_drop").parent().removeClass('active');
	$(".thumb_light").hide();
	
});
}
