$(document).ready(function() {
	if ($("a[rel='cantiere1']").length){
		$("a[rel='cantiere1']").colorbox();
	}
	if ($('.modArchivioFoto').length){
		$("a[rel='galleriaFoto']").colorbox();
	}
	if ($('.modArchivioVideo').length){
		$(".ico-play").colorbox();
	}
	if ($('.blqPaese .blq-content').length || $('.blqLavoro .blq-content').length || $('modVideoList').length || $('modFotoList').length || $('pg-content').length || $('.modImpresa').length || $('.bk-a .iframe').length){
        $('.iframe').jScrollPane({ showArrows: true });
    }
	if ($('.p1').length){
        $('.p1').jScrollPane({ showArrows: true });
		/*
		if ($('.p3').height() > 300){
			$('.p3').css("height","300px").jScrollPane({ showArrows: true });
		}
		*/
    }

});
