$(document).ready(function(){
$('a[rel="lytebox"]').colorbox({rel:'nofollow'});
$(".fadeover").fadeTo(0, 0.3);
$(".fadeover").hover(function(){
$(this).fadeTo("slow", 1.0);
},function(){
$(this).fadeTo("slow", 0.3);
});

$(".fade70").fadeTo("slow", 0.5);
$(".fade70").hover(function(){
$(this).fadeTo("slow", 1.0);
},function(){
$(this).fadeTo("slow", 0.5);
});

$(".immaginine").fadeTo("slow", 1.0);
$(".immaginine").hover(function(){
$(this).fadeTo("slow", 0.6);
},function(){
$(this).fadeTo("slow", 1.0);
});

$(".scala").hover(function () {
$(".scaletta").hide("puff", {}, 1000);
});

// transition effect
style = 'easeOutQuart';
// if the mouse hover the image
$('.menu').hover(
	function() {
	//display heading and caption
	$(this).children('.caption').stop(false,true).animate({bottom:0},{duration:200, easing: style});
},

function() {
	//hide heading and caption
	$(this).children('.caption').stop(false,true).animate({bottom:-25},{duration:200, easing: style});
});
});

$(window).load(function () {
$("#sotto").fadeIn(1500, function () {
$("#sopra").fadeIn(7000);
});
});