$(document).ready(function(){

	$(".thumbnail-div .info-button").click(function(){
	  $(this).prev(".info").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$(".thumbnail-div").mouseenter(
      function () {
        $(this).find('.info').stop().show();
   }
);

	$(".thumbnail-div").mouseleave(
      function () {
        $(this).find('.info').stop().hide();
   }
);
	
	$(".infos").mouseout(
      function () {
        $(this).fadeOut(500);
   }
);


$(".lightboxclick").click(function(){
		var pid = $(this).attr("title");
	  $("."+pid).fadeIn("slow");
		$(this).toggleClass("active"); return false;
	});


	$(".lightbox").click(function(){
	  $(this).fadeOut("slow");
	});



	$(".btn-slide").click(function(){
		var panel = $(this).attr("name");
	  $("#"+panel).slideToggle("slow").siblings(".panel").slideUp("fast");;
	  $(this).toggleClass("active");
	  return false;
	});

});

$(window).load(function() {
	jQuery('#loading').fadeOut();
});


