var q1;
var q2;
var q3;
var whynotImgNode;
var a1;
var a2;
var a3;
var cabaretBox;
var cafeBox;
var agendaStoreBox;
var animNode;
var infoBox;
dojo.addOnLoad(function(){
animNode=dojo.byId("introBox");
dojo.style(animNode,"left","290px");
q1=dojo.byId("q1");
dojo.style(q1,"display","none");
q2=dojo.byId("q2");
dojo.style(q2,"display","none");
q3=dojo.byId("q3");
dojo.style(q3,"display","none");
whynotImgNode=dojo.byId("whynot");
dojo.style(whynotImgNode,"display","none");
a1=dojo.byId("a1");
dojo.style(a1,"top","40px");
dojo.style(a1,"left","35px");
dojo.style(a1,"display","none");
a2=dojo.byId("a2");
dojo.style(a2,"top","250px");
dojo.style(a2,"left","290px");
dojo.style(a2,"display","none");
a3=dojo.byId("a3");
dojo.style(a3,"display","none");
dojo.style(q3,"display","none");
cabaretBox=dojo.byId("cabaretBox");
dojo.style(cabaretBox,"opacity","0");
cafeBox=dojo.byId("cafeBox");
dojo.style(cafeBox,"opacity","0");
agendaStoreBox=dojo.byId("agendaStoreBox");
dojo.style(agendaStoreBox,"opacity","0");
infoBox=dojo.byId("agendaInfo");
dojo.style(infoBox,"opacity","0");
sequence1();
});
function sequence1(){
qAnim1(q1,100,30,80,false);
qAnim1(q2,700,110,40,false);
qAnim1(q3,1200,200,180,true);
};
function sequence2(){
setTimeout(function(){
logoAnim();
aAnim1(a1);
setTimeout(function(){
aAnim1(a2);
},1000);
setTimeout(function(){
aAnim1(a3);
},2000);
},1000);
qAnim2(q1);
qAnim2(q2);
qAnim2(q3);
setTimeout(function(){
intro2anim();
},2200);
};
function qAnim1(_1,_2,_3,_4,_5){
setTimeout(function(){
dojo.style(_1,"display","block");
dojo.animateProperty({node:_1,duration:1000,properties:{fontSize:{start:0,end:24},opacity:{start:0,end:1},top:{end:_3},left:{end:_4}},easing:dojo.fx.easing.elasticInOut,onEnd:function(){
if(_5){
sequence2();
}
}}).play();
},_2);
};
function qAnim2(_6){
var a1=dojo.animateProperty({node:_6,duration:1000,properties:{opacity:{end:0}}});
var a2=dojox.fx.text.explode({node:_6,random:true,duration:1200,onEnd:function(){
dojo.style(_6,"display","none");
dojo.style(animNode,"left","0px");
}});
a2.play();
};
function logoAnim(){
dojo.style(whynotImgNode,"width","0px");
dojo.style(whynotImgNode,"height","0px");
dojo.style(whynotImgNode,"left","190px");
dojo.style(whynotImgNode,"top","153px");
dojo.style(whynotImgNode,"display","block");
dojo.animateProperty({node:whynotImgNode,duration:800,properties:{width:{end:385},height:{end:300},left:{end:0},top:{end:0}},easing:dojo.fx.easing.expoIn}).play();
};
function aAnim1(_9){
setTimeout(function(){
dojo.style(_9,"display","block");
dojo.animateProperty({node:_9,duration:300,properties:{opacity:{start:0,end:1}},onEnd:function(){
setTimeout(function(){
aAnim2(_9);
},3000);
}}).play();
},200);
};
function aAnim2(_a){
var a1=dojo.animateProperty({node:_a,duration:2000,properties:{opacity:{end:0.2}},easing:dojo.fx.easing.backOut});
var a2=dojo.animateProperty({node:_a,duration:2000,properties:{opacity:{end:1}},onEnd:function(){
aAnim2(_a);
},easing:dojo.fx.easing.backIn});
dojo.fx.chain([a1,a2]).play();
};
function intro2anim(){
var _d=[cabaretBox,cafeBox,agendaStoreBox,infoBox];
dojo.forEach(_d,function(_e){
dojo.animateProperty({node:_e,duration:500,properties:{opacity:{end:1}},easing:dojo.fx.easing.backOut}).play();
});
};

