$(function() { 
	var page;
	$(".corner, .thumb-corner").append('<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>');
   
	$('.caratteristiche-immobile').easyListSplitter({ colNumber: 2 });
	if(page == 6){
		initialize();
	}
	
	$('#thumbnail div:nth-child(8)').addClass('last');

    $("a[rel^='prettyPhoto[gal1]']").prettyPhoto({theme:'light_rounded', social_tools:false});
	
	$(".thumb-img").each(function() {
		imageWidth = $(this).width();
		imageHeight = $(this).height();
		if(imageWidth > imageHeight){
			$(this).height(48);
		}else{
			$(this).width(48);
		}
	});
	 
	$(".first-img img").each(function(){
		imageWidth = $(this).width();
		imageHeight = $(this).height();
		if(imageWidth < imageHeight){
			$(this).height(425);
		}else{
			$(this).width(425);
		}
	});
	
	/*$(".first-img", ".first-img-a").each(function(){
		imageWidth = $(".first-img img").width();
		imageHeight = $(".first-img img").height();
		$(this).width(imageWidth);
		$(this).height(imageHeight);
	});*/
	

});
