// JavaScript Document code for martinabeldesign animation on the index page of www.martinabeldesign.com
// Hide all the animation images on page load

function init(){

var manager = new jsAnimManager(30);


shroom = document.getElementById("arrow");
manager.registerPosition("arrow");   
shroom.setPosition(48,1644);  
var anim1 = manager.createAnimObject("arrow");

anim1.add({property: Prop.wait, duration: 0});
anim1.add({property: Prop.dimension, to: new Dim(0,0), duration: 0});
anim1.add({property: Prop.wait, duration: 500});
anim1.add({property: Prop.position, to: new Pos(48,644), duration: 0, ease: jsAnimEase.linear});
anim1.add({property: Prop.wait, duration: 500});
anim1.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim1.add({property: Prop.wait, duration: 1500});
anim1.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim1.add({property: Prop.wait, duration: 2100});
anim1.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim1.add({property: Prop.wait, duration: 2700});
anim1.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});

shroom = document.getElementById("arrow1");
manager.registerPosition("arrow1");   
shroom.setPosition(48,1652);  
var anim2 = manager.createAnimObject("arrow1");

anim2.add({property: Prop.wait, duration: 0});
anim2.add({property: Prop.dimension, to: new Dim(0,0), duration: 0});
anim2.add({property: Prop.wait, duration: 500});
anim2.add({property: Prop.position, to: new Pos(48,652), duration: 0, ease: jsAnimEase.linear});
anim2.add({property: Prop.wait, duration: 700});
anim2.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim2.add({property: Prop.wait, duration: 1600});
anim2.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim2.add({property: Prop.wait, duration: 2200});
anim2.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim2.add({property: Prop.wait, duration: 2800});
anim2.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});

shroom = document.getElementById("arrow2");
manager.registerPosition("arrow2");   
shroom.setPosition(48,1660);  
var anim3 = manager.createAnimObject("arrow2");

anim3.add({property: Prop.wait, duration: 0});
anim3.add({property: Prop.dimension, to: new Dim(0,0), duration: 0});
anim3.add({property: Prop.wait, duration: 500});
anim3.add({property: Prop.position, to: new Pos(48,660), duration: 0, ease: jsAnimEase.linear});
anim3.add({property: Prop.wait, duration: 900});
anim3.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim3.add({property: Prop.wait, duration: 1700});
anim3.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim3.add({property: Prop.wait, duration: 2300});
anim3.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim3.add({property: Prop.wait, duration: 2900});
anim3.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});

shroom = document.getElementById("arrow3");
manager.registerPosition("arrow3");   
shroom.setPosition(48,1668);  
var anim4 = manager.createAnimObject("arrow3");

anim4.add({property: Prop.wait, duration: 0});
anim4.add({property: Prop.dimension, to: new Dim(0,0), duration: 0});
anim4.add({property: Prop.wait, duration: 500});
anim4.add({property: Prop.position, to: new Pos(48,668), duration: 0, ease: jsAnimEase.linear});
anim4.add({property: Prop.wait, duration: 1100});
anim4.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim4.add({property: Prop.wait, duration: 1800});
anim4.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim4.add({property: Prop.wait, duration: 2400});
anim4.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim4.add({property: Prop.wait, duration: 3000});
anim4.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});

shroom = document.getElementById("arrow4");
manager.registerPosition("arrow4");   
shroom.setPosition(48,1676);  
var anim5 = manager.createAnimObject("arrow4");

anim5.add({property: Prop.wait, duration: 0});
anim5.add({property: Prop.dimension, to: new Dim(0,0), duration: 0});
anim5.add({property: Prop.wait, duration: 500});
anim5.add({property: Prop.position, to: new Pos(48,676), duration: 0, ease: jsAnimEase.linear});
anim5.add({property: Prop.wait, duration: 1300});
anim5.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim5.add({property: Prop.wait, duration: 1900});
anim5.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim5.add({property: Prop.wait, duration: 2500});
anim5.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});
anim5.add({property: Prop.wait, duration: 3100});
anim5.add({property: Prop.dimension, to: new Dim(30,10), duration: 500, ease: jsAnimEase.bounceSmooth});


shroom = document.getElementById("promo_box");
manager.registerPosition("promo_box");   
shroom.setPosition(-470,-240);  
var anim6 = manager.createAnimObject("promo_box");

anim6.add({property: Prop.wait, duration: 0});
anim6.add({property: Prop.position, to: new Pos(-470,100), duration: 2000, ease: jsAnimEase.backout(0.6)});
/*
anim6.add({property: Prop.wait, duration: 1300});
anim6.add({property: Prop.dimension, to: new Dim(300,240), duration: 500, ease: jsAnimEase.linear});
/*
anim6.add({property: Prop.wait, duration: 4000});
anim6.add({property: Prop.position, to: new Pos(-300,0), duration: 3000, ease: jsAnimEase.linear});

/*
anim1.add({property: Prop.wait, duration: 500});
anim1.add({property: Prop.dimension, to: new Dim(0,0), duration: 500});
*/
/*
anim2.add({property: Prop.wait, duration: 4000});
anim2.add({property: Prop.positionSemicircle(false), to: new Pos(-200,100), duration: 1500, ease: jsAnimEase.linear});
anim3.add({property: Prop.wait, duration: 4000});
anim3.add({property: Prop.dimension, to: new Dim(120,40), duration: 1000})
anim4.add({property: Prop.wait, duration: 5000});
anim4.add({property: Prop.dimension, to: new Dim(140,100), duration: 1000})
anim5.add({property: Prop.wait, duration: 5500});
anim5.add({property: Prop.positionSemicircle(true), to: new Pos(-460,200), duration: 2000, ease: jsAnimEase.linear});
anim6.add({property: Prop.wait, duration: 5500});
anim6.add({property: Prop.dimension, to: new Dim(140,50), duration: 1000})
anim7.add({property: Prop.wait, duration: 6500});
anim7.add({property: Prop.dimension, to: new Dim(140,100), duration: 1000})
anim8.add({property: Prop.wait, duration: 7500});
anim8.add({property: Prop.positionSemicircle(false), to: new Pos(-200,400), duration: 2000, ease: jsAnimEase.linear});
anim9.add({property: Prop.wait, duration: 9500});
anim9.add({property: Prop.positionSemicircle(false), to: new Pos(-460,500), duration: 2000, ease: jsAnimEase.linear});
anim10.add({property: Prop.wait, duration: 9500});
anim10.add({property: Prop.dimension, to: new Dim(100,70), duration: 1000})
anim11.add({property: Prop.wait, duration: 10500});
anim11.add({property: Prop.dimension, to: new Dim(140,100), duration: 1000})
anim12.add({property: Prop.wait, duration: 11500});
anim12.add({property: Prop.positionSemicircle(false), to: new Pos(-240,650), duration: 2000, ease: jsAnimEase.linear});
anim13.add({property: Prop.wait, duration: 13500});
anim13.add({property: Prop.positionSemicircle(true), to: new Pos(-370,750), duration: 2000, ease: jsAnimEase.linear});
*/

}

