var Rollover={init:function(a){this.anchors=[];$A($$("a")).each(function(b){if(b.rel&&b.href&&b.rel.test("rollover","i")){b.addEvent("mouseover",function(c){c=new Event(c);c.stop();this.mouseover(b)}.bind(this));b.addEvent("mouseout",function(c){c=new Event(c);c.stop();this.mouseout(b)}.bind(this));this.preloadImage(b);this.anchors.push(b)}},this)},preloadImage:function(b){if(b&&b.childNodes&&b.childNodes[0]&&b.childNodes[0].src){var a=new Image;a.src=b.childNodes[0].src.replace("init","over")}},mouseover:function(a){if(a&&a.childNodes&&a.childNodes[0]&&a.childNodes[0].src){a.childNodes[0].src=a.childNodes[0].src.replace("init","over")}},mouseout:function(a){if(a&&a.childNodes&&a.childNodes[0]&&a.childNodes[0].src){a.childNodes[0].src=a.childNodes[0].src.replace("over","init")}}};window.addEvent("domready",Rollover.init.bind(Rollover));
