function shover(f,e){var h=this;var d=h.getbyclass(document,f);for(var c=0;c0?(11-this.slidespeed):1;var b=30;var g=this;clearinterval(f.movetimer);f.movetimer=setinterval(function(){var k=true;for(var j in c){var m=g.getstyle(f,j);var l=c[j];if(j=="opacity"){h=parseint(parsefloat(m)*100,10)}else{h=parseint(m,10)}if(h!=l){k=false}if(k){clearinterval(f.movetimer);d&&d()}else{e=(l-h)/a;e=l>h?math.ceil(e):math.floor(e);if(j=="opacity"){f.style[j]=(h+e)/100;f.style.filter="alpha(opacity="+(h+e)+")"}else{f.style[j]=(h+e)+"px"}}}},b)};shover.prototype.myaddevent=function(c,a,b){if(c.attachevent){c.attachevent("on"+a,function(){b.call(this)})}else{c.addeventlistener(a,b,false)}};shover.prototype.getbyclass=function(e,d){var f=[];var a=e.getelementsbytagname("*");var c=new regexp("\\b"+d+"\\b",b);for(var b=0;bd?(d/b):1),k=(j.clienty-this.getpos(f).top+this.getscroll().top-(d/2))*(d>b?(b/d):1),g=math.round((((math.atan2(k,a)*(180/math.pi))+180)/90)+3)%4,c=j.type;return g};