document.observe("dom:loaded",function(){var a=0,b=$$(".animate");b.each(function(b){b.setOpacity(0),new Effect.Parallel([new Effect.Move(b,{sync:!0,x:5,y:5,mode:"relative"}),new Effect.Opacity(b,{sync:!0,from:0,to:1})],{duration:.2,delay:a}),a+=.05}),$$("#navigation ul a").each(function(c){$(c).observe("click",function(c){c.preventDefault(),a=0,b.reverse().each(function(b){$(b).fade({duration:.1,from:1,to:0,delay:a}),a+=.025}),setTimeout(function(){window.location=$(c.target).readAttribute("data-location")},(a+.1)*1e3)})})})
