window.addEvent("domready",function(){var J=new Tips($$("#theul li a"),{initialize:function(){this.fx=new Fx.Styles(this.toolTip,{duration:250,wait:false,transition:Fx.Transitions.Back.easeOut}).set({opacity:0})},onShow:function(R){this.fx.start({"margin-left":[-15,0],"margin-top":-50,opacity:1})},onHide:function(R){this.fx.start({"margin-top":0,opacity:0})},showDelay:600,hideDelay:0});var D=[];var P=[];var H=[];var O=[];var E=[];$$("#theul li a img").each(function(S,R){D[R]=S;P[R]=S.getProperty("src");O[R]=S.getCoordinates();S.setStyles({position:"absolute"});H[R]=new Fx.Styles(S,{duration:300,wait:false,transition:Fx.Transitions.Back.easeOut}).set({opacity:0})});D.reverse();P.reverse();H.reverse();O.reverse();var C=(function(){D.each(function(S,R){S.addEvent("mouseenter",function(T){H[R].start({opacity:0.6})});S.addEvent("mouseleave",function(T){H[R].start({opacity:1});$clear(E)})})});var N=0;new Asset.images(P,{onProgress:function(R){$("counter").setHTML(R+1+" Photos")},onComplete:function(){G.delay(1200)}});function G(){var R=0;D.each(function(T,S){R+=80;var U=(function(){H[S].start({top:[(O[S].top.toInt()-50),O[S].top.toInt()],opacity:1})});U.delay(R)});C.delay(R)}if(!$("photosets")){return }var M=[];var B=[];var L=[];var F=[];var A=[];var Q=[];var I="";var K="";$$("#photosets li a").each(function(S,R){L[R]=S.getStyle("width").toInt()-20;F[R]=S.getStyle("height").toInt()-20;B[R]=new Element("div",{styles:{overflow:"hidden","font-size":0,"background-color":"#455660",color:"#fff",opacity:0,"margin-top":(S.getStyle("height").toInt()*-1)+10,padding:"0px",overflow:"hidden",width:(S.getStyle("width").toInt())-20,height:(S.getStyle("height").toInt())-20}}).injectInside(S);M[R]=new Fx.Styles(B[R],{duration:400,wait:false,transition:Fx.Transitions.Quart.easeOut}).set({"margin-left":S.getStyle("width").toInt()});A[R]=new Element("p",{styles:{overflow:"hidden",opacity:1,"margin-top":-100}}).inject(S,"inside").setHTML(S.getProperty("title"));Q[R]=new Fx.Styles(A[R],{duration:400,wait:false,transition:Fx.Transitions.Quart.easeOut}).set({"margin-top":S.getStyle("height").toInt()});S.setProperties({title:""});S.addEvent("mouseenter",function(T){I=(function(){Q[R].start({"margin-top":[-60,-120],opacity:1})}).delay(400);M[R].start({height:[0,F[R]],width:[0,L[R]],"margin-top":[((F[R]/2)*-1),((F[R]+10)*-1)],"margin-left":[L[R]/2,10],opacity:0.4}).chain(function(){})});S.addEvent("mouseleave",function(T){$clear(I);Q[R].start({"margin-top":-42,opacity:0});M[R].start({width:0,height:0,"margin-top":((F[R]/2)*-1),"margin-left":(L[R]/2),opacity:0})})})});
