/*!
 * jQuery JavaScript Library v1.5
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Jan 31 08:31:29 2011 -0500
 */

function apriFinestra() {
$(".boxContent").animate({opacity: "0", height: "0"}, 0)
        .animate({opacity: "0.5", height: "+=200"}, 800)
        .animate({opacity: "0.7", height: "+=200"}, 800)
        .animate({opacity: "1", height: "+=100%"}, 800)
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80"}, "fast")
		//.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		//.animate({opacity: "1", left: "0", height: "30", width: "-=280"}, 700)
		//.animate({top: "0", width: "138"}, "fast")
		//.slideUp()
		//.slideDown("slow");
		setTimeout("apriFinestra1()", 1100);
		return false;
}
/*
function apriFinestra1() {
$(".box2").animate({opacity: "0.9", left: "+=400", width: "+=380", height: "+=200"}, 800)
        .animate({opacity: "0.8", top: "+=250", width: "+=80"}, "slow")
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80"}, "fast")
		//.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		.animate({opacity: "1", left: "0", height: "30", width: "-=280"}, 700)
		.animate({top: "0", width: "138"}, "fast")
		.slideUp()
		.slideDown("slow");
		setTimeout("apriFinestra2()", 3000);
		return false;
}

function apriFinestra2() {
$(".box3").animate({opacity: "0.1", left: "-=200", top: "+=250", width: "+=280", height: "+=200"}, 800)
        //.animate({opacity: "0.8", top: "+=250", width: "+=80"}, "fast")
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80"}, "fast")
		//.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		.animate({opacity: "1", left: "0", height: "30", width: "-=280"}, "slow")
		.animate({top: "0", width: "138"}, "fast")
		.slideUp()
		.slideDown("slow");
		setTimeout("apriFinestra3()", 2000);
		return false;
}
function apriFinestra3() {
$(".box4").animate({opacity: "0.1", left: "+=400", width: "+=280", height: "+=200"}, 700)
        .animate({opacity: "0.8", top: "+=250", width: "+=80", left: "-=180"}, "fast")
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80", left: "-=80"}, "fast")
		.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		//.animate({opacity: "1", left: "0", height: "100", width: "-=280"}, "fast")
		.animate({opacity: "1", top: "0", left: "0", width: "138", height: "30"}, "fast")
		.slideUp()
		.slideDown("slow");
		setTimeout("AddBox5()", 1000);
		return false;
}
function AddBox5() {
$(".box5").animate({opacity: "0.1", left: "-=400", width: "+=280", height: "+=200"}, 700)
        .animate({opacity: "0.8", top: "+=250", width: "+=80", left: "-=180"}, "fast")
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80", left: "-=80"}, "fast")
		.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		//.animate({opacity: "1", left: "0", height: "100", width: "-=280"}, "fast")
		.animate({opacity: "1", top: "0", left: "0", width: "138", height: "30"}, "fast")
		.slideUp()
		.slideDown("slow");
		setTimeout("AddBox6()", 1000);
		return false;
}
function AddBox6() {
$(".box6").animate({opacity: "0.1", left: "-=400", width: "+=180", height: "+=200"}, 700)
        .animate({opacity: "0.8", top: "+=250", width: "+=80", left: "-=180"}, "fast")
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80", left: "-=80"}, "fast")
		.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		//.animate({opacity: "1", left: "0", height: "100", width: "-=280"}, "fast")
		.animate({opacity: "1", top: "0", left: "0", width: "138", height: "30"}, "fast")
		.slideUp()
		.slideDown("slow");
		setTimeout("AddBox7()", 1000);
		return false;
}*/

function apriFinestra1() {
$(".box2").animate({opacity: "0", top: "+=500", left: "+=500"}, 0)
    .animate({opacity: "1", top: "0", left: "0", width: "138", height: "28"}, 900);
		setTimeout("apriFinestra2()", 600);
		return false;
}

function apriFinestra2() {
$(".box3").animate({opacity: "0", top: "+=200", left: "+=500"}, 0)
    .animate({opacity: "1", top: "0", left: "0", width: "138", height: "28"}, 900);
		setTimeout("apriFinestra3()", 500);
		return false;
}
function apriFinestra3() {
$(".box4").animate({opacity: "0", top: "+=500", left: "-=200"}, 0)
    .animate({opacity: "1", top: "0", left: "0", width: "138", height: "28"}, 900);
		setTimeout("AddBox5()", 500);
		return false;
}
function AddBox5() {
$(".box5").animate({opacity: "0", top: "+=600", left: "+=100"}, 0)
    .animate({opacity: "1", top: "0", left: "0", width: "138", height: "28"}, 900);
		setTimeout("AddBox6()", 400);
		return false;
}
function AddBox6() {
$(".box6").animate({opacity: "0", top: "+=400", left: "-=300"}, 0)
    .animate({opacity: "1", top: "0", left: "0", width: "138", height: "28"}, 900);
		setTimeout("AddBox7()", 300);
		return false;
}


function AddBox7() {
$(".box7").animate({opacity: "0", top: "+=300", left: "-=500"}, 0)
    //.animate({opacity: "0.1", left: "+=400", width: "+=280", height: "+=200"}, 700)
        //.animate({opacity: "0.8", top: "+=250", width: "+=80", left: "-=180"}, "fast")
        //.animate({opacity: "0.1", top: "-=200", left: "-=200", width: "+=80", left: "-=80"}, "fast")
		//.animate({opacity: "0.5", top: "+=160", left: "-=200", height: "80", width: "+=50"}, "slow")
		//.animate({opacity: "1", left: "0", height: "100", width: "-=280"}, "fast")
		.animate({opacity: "1", top: "0", left: "0", width: "138", height: "28"}, 900)
		//.slideUp()
		//.slideDown("slow");
		setTimeout("AddBanner()", 800);
		return false;
}
function AddBanner() {
$(".boxBanner").animate({opacity: "1", width: "+=900", height: "+=210"}, 600)
		//setTimeout("apriFinestra()", 3000);
		setTimeout("AddOmbraBanner()", 700);
		return false;
}
function AddOmbraBanner() {
$(".ombraBanner").animate({opacity: "1", height: "+=20"}, 600)
		//setTimeout("apriFinestra()", 3000);
		return false;
}

