/*(C) Andrea Giammarchi*/(function(d,e){function h(m){function q(){k.removeChild(s);s=i=null;m.interval=0;m.callee=m.pause=m.play=null;if(m.callback){m.callback(m)}}var k=m.target.appendChild(m.document.createElement("div")),j=k.cloneNode(true),l=this.width,v=this.height,s=this,w=k.style,t=j.style,i=s.style,p=m.scale||2000,o=m.speed||10,n,u,r;g(w,t,i);f(w,t);a(t,i);w.position="relative";w.width=l+"px";w.height=v+"px";w.overflow="hidden";i.zIndex=1;t.zIndex=2;p/=100;switch(m.direction){case"top":t.height=0+"px";t.width=l+"px";i.top=(u=v)+"px";s.setAttribute("width",l);s.setAttribute("height",d(p*v));n=0;p=o/p;m.interval=setTimeout(m.callee=function(){if(n