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};