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

$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$("a[rel='galleria']").colorbox();
	$("a[rel='realizzazioni']").colorbox();
	$("a[rel='volantino']").colorbox();
	$(".single").colorbox({}, function(){
		alert('Howdy, this is an example callback.');
	});
	$(".colorbox").colorbox();
	$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
	$(".cartina").colorbox({iframe:true, width:670, height:560});
	$(".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"});
	
	$("#area_franciacorta_strade").colorbox({iframe:true, width:728, height:560});
	$("#area_asfalti_bosco").colorbox({iframe:true, width:728, height:560});
	$("#area_san_giorgio").colorbox({iframe:true, width:728, height:560});
	$("#area_or").colorbox({iframe:true, width:850, height:560});
	$("#area_general").colorbox({iframe:true, width:850, height:560});
	$("#area_invest").colorbox({iframe:true, width:728, height:560});
	
	//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;
	});
});

