/* ======== funzioni color bo x=========*/

$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$("a[rel='galleria']").colorbox();
	$("a[rel='galleria1']").colorbox();
	$("a[rel='galleria2']").colorbox();
	$("a[rel='galleria3']").colorbox();
	$("a[rel='galleria4']").colorbox();
	$("a[rel='galleria5']").colorbox();
	$("a[rel='galleria6']").colorbox();
	$("a[rel='galleria7']").colorbox();
	$("a[rel='CustomsA']").colorbox();
	$("a[rel='CustomsB']").colorbox();
	$("a[rel='CustomsC']").colorbox();
	$("a[rel='CustomsD']").colorbox();
	$("[rel='mainfutures']").colorbox();
	$("a[rel='example2']").colorbox({transition:"fade"});
	$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
	$("a[rel='example4']").colorbox({slideshow:true});
	$(".single").colorbox({}, function(){
		alert('Howdy, this is an example callback.');
	});
	$(".colorbox").colorbox();
	$(".recensione").colorbox({iframe:true, width:790, height:470});
	$(".flashVideo").colorbox({iframe:true, width:510, height:430});
	$(".flashVideo1").colorbox({iframe:true, width:510, height:480});
	$(".flashVideo2").colorbox({iframe:true, width:510, height:505});
	$(".flashVideo3").colorbox({iframe:true, width:510, height:350});
	$(".musica").colorbox({iframe:true, width:350, height:115});
	$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
	$(".inline").colorbox({width:"70%", height:"500px", inline:true, href:"#inline_example1"});
	$(".inline2").colorbox({width:"70%", inline:true, href:"#inline_example2"});
	$(".inline3").colorbox({width:"70%", height:"500px", inline:true, href:"#inline_example3"});
	
	//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
});

