var scrolling_img={target_url:null,init:function(A,B){this.target_url=B;this.create_img(A);this.set_listeners()},create_img:function(A){div=new Ext.XTemplate('<div id="scrolling_img" style="position:absolute; right:0; bottom:0; cursor: pointer;"><img src="{src}" border="0"></div>');div.append(document.body,{src:A})},set_listeners:function(){yue=YAHOO.util.Event;yue.on("scrolling_img","click",function(){document.location=scrolling_img.target_url});yue.on(window,"scroll",scrolling_img.move_img);yue.on(window,"resize",scrolling_img.move_img)},move_img:function(A){yud=YAHOO.util.Dom;img=yud.get("scrolling_img");if(img.firstChild.width>0){img_current_pos=yud.getXY(img);img_new_pos=[(yud.getViewportWidth()+yud.getDocumentScrollLeft())-img.firstChild.width,(yud.getViewportHeight()+yud.getDocumentScrollTop())-img.firstChild.height];anim=new YAHOO.util.Motion(img,{points:{to:img_new_pos}},0);anim.animate()}}};