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

$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$("a[rel='galleria']").colorbox();
	$("a[rel='galleria2']").colorbox();
	$("a[rel='volantino']").colorbox();
	$(".single").colorbox({}, function(){
		alert('Howdy, this is an example callback.');
	});
	$(".colorbox").colorbox();
	$(".scheda1").colorbox({iframe:true, width:980, height:600});
	$(".scheda2").colorbox({iframe:true, width:980, height:600});
	$(".scheda3").colorbox({iframe:true, width:980, height:600});
	$(".scheda4").colorbox({iframe:true, width:980, height:600});
	$(".scheda5").colorbox({iframe:true, width:980, height:600});
	$(".scheda6").colorbox({iframe:true, width:980, height:600});
	$(".scheda7").colorbox({iframe:true, width:980, height:460});
	$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
	$(".videoPresentazione").colorbox({iframe:true, width:430, height:430});
	$(".workspace").colorbox({iframe:true, width:820, height:540});
	$(".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;
	});
});

