var myRollover = {
main : function() {
var img = document.images, i, loadImg = [];
for (i = 0; i <img.length; i++) {
if ((img[i].src.match(/.*_n\./))||(img[i].style.filter)){
loadImg[loadImg.length] = new Image;
loadImg[loadImg.length-1].src = img[i].src.replace('_n.', '_r.');
img[i].onmouseover = myRollover.over;
img[i].onmouseout  = myRollover.out;
try {img[i].addEventListener('click', myRollover.click, false);}
catch(e){img[i].attachEvent('onclick', (function(el){return function(){myRollover.click.call(el);};})(img[i]));}
}}},
over : function() {
this.src = this.src.replace('_n.', '_r.');
},
out : function(){ this.src = this.src.replace('_r.', '_n.'); },
click : function(){ this.src = this.src.replace('_r.', '_n.');},
addEvent : function(){
try { window.addEventListener('load', this.main, false);} 
catch (e) {window.attachEvent('onload', this.main);}
}}
myRollover.addEvent();