if(!jordi)var jordi={};
jordi.photoreel=function(){function m(b){c=false;var d=f(a,"li");b=b?g:1;for(var e=1;e<=b;e++)a.appendChild(d[0]);a.style.left="0px";n()}function s(){if(!c){c=true;window.clearTimeout(h);for(var b=f(a,"li"),d=b.length-1,e=1;e<=g+1;e++)a.insertBefore(b[d],a.firstChild);a.style.left=i-j+"px";k.reset();k.start()}}function o(){if(!c){c=true;window.clearTimeout(h);l.reset();l.start()}}function n(){h=window.setTimeout(o,t)}function f(b,d){return b.getElementsByTagName(d)}function p(){if($("body")){a=f($("photoreelwindow"),
"ul")[0];q.add($("photoreelprev"),"click",s);q.add($("photoreelnext"),"click",o);k=new r.tween({el:a,css:"left",finish:function(){m()}},i-j,-1*j,0.8,"backout");l=new r.tween({el:a,css:"left",finish:function(){m(true)}},0,i,0.8,"backout");n()}else window.setTimeout(p,20)}var q=global.event,r=global.dom.animation,a,k,l,c,g=7,j=126,i=126*g*-1,h,t=1E4;p();global.addhtmlclass("js")}();
