(function ($) {
	 $().ready(function(){
	
		$('.view-display-id-entity_view_2 div.view-content').hide();
	    $('a.collapse-table').click(function() {
		    $('.view-display-id-entity_view_2 div.view-content').toggle(800);
		    return false;
		  });
		
		$("#main-wrapper img").css('max-height', $(window).height());
		
		$(window).load(function(){
		  	$('#content .view-display-id-entity_view_1').imagesLoaded( function(){
			  $(this).isotope({
			    itemSelector : '.image-row',
				layoutMode : 'fitRows',
			  });
			});
		});
	
	 });	
})(jQuery);;

