dojo.addOnLoad(function(){
initializeSteps();
});
var step1,step2,step3,step4,step5,step6,step7,step8,step9,step10,step11,showAnimation,showControl,stepBox;
function initializeSteps(){
stepBox=dojo.byId("stepBox");
var _1=[{stepNode:"step1",boxNode:"userBox",dm1:0,dm2:0,di1:0,x:0,y:0},{stepNode:"step2",boxNode:"webBox",dm1:1000,dm2:2000,di1:1000,x:1,y:0},{stepNode:"step3",boxNode:"webBox2",dm1:1000,dm2:3000,di1:1000,x:2,y:0},{stepNode:"step4",boxNode:"seoBox",dm1:1000,dm2:3000,di1:1000,x:0,y:1},{stepNode:"step5",boxNode:"analyticBox",dm1:1000,dm2:3000,di1:1000,x:0,y:1},{stepNode:"step6",boxNode:"",dm1:300,dm2:6000,di1:1000,x:0,y:1},{stepNode:"step7",boxNode:"designBox",dm1:1000,dm2:2000,di1:1000,x:1,y:1},{stepNode:"step8",boxNode:"",dm1:300,dm2:6000,di1:1000,x:1,y:1},{stepNode:"step9",boxNode:"hostingBox",dm1:1000,dm2:2000,di1:1000,x:2,y:1},{stepNode:"step10",boxNode:"",dm1:300,dm2:6000,di1:1000,x:2,y:1},{stepNode:"step11",boxNode:"",dm1:300,dm2:3000,di1:1000,x:2,y:1}];
var _2=[];
dojo.forEach(_1,function(_3,nb){
var _5=(dojo.byId(_3.stepNode).innerHTML!="")?true:false;
var _6=(_3.boxNode!="")?true:false;
var _7=new Array();
if(_5){
dojo.style(_3.stepNode,"opacity",0);
dojo.style(_3.stepNode,"display","block");
var _8=dojo.animateProperty({node:_3.stepNode,duration:500,delay:_3.dm1,onBegin:function(){
stepBox.setAttribute("style","background-position:-"+(_3.x*435)+"px -"+(_3.y*460)+"px");
},properties:{opacity:{start:0,end:1}},easing:dojo.fx.easing.circOut});
_7.push(_8);
}
if(_6){
dojo.style(_3.boxNode,"opacity",0);
dojo.style(_3.boxNode,"display","block");
var _9=dojo.animateProperty({node:_3.boxNode,duration:500,delay:_3.di1,properties:{opacity:{start:0,end:1}},easing:dojo.fx.easing.quartOut});
_7.push(_9);
}
if(_5){
var _a=dojo.animateProperty({node:_3.stepNode,duration:1500,delay:_3.dm2,properties:{opacity:{start:1,end:0}},easing:dojo.fx.easing.expoIn});
_7.push(_a);
}
_2[nb]=dojo.fx.combine(_7);
});
showAnimation=dojo.fx.chain(_2);
showAnimation.onEnd=function(){
showControl.setAttribute("style","background-position:0px 0px");
};
showAnimation.play(2);
showControl=dojo.byId("showControl");
showControl.setAttribute("style","background-position:0px -30px");
};
function showControlAction(){
if(showAnimation.status()=="playing"){
showAnimation.pause();
showControl.setAttribute("style","background-position:0px 0px");
}else{
if(showAnimation.status()=="stopped"){
stepBox.setAttribute("style","background-position:-0px -0px");
initializeSteps();
}else{
showAnimation.play();
showControl.setAttribute("style","background-position:0px -30px");
}
}
};


