var hitsuRollover = {
	
	main : function() {
		var img = document.images;
		for (var i = 0; i <img.length; i++) {
			if ((img[i].src.match(/_n\./))||(img[i].style.filter)){
				img[i].onmouseover = hitsuRollover.over;
				img[i].onmouseout  = hitsuRollover.out;
			}
		}
		
		var input = document.getElementsByTagName("input");
		for (var i = 0; i <input.length; i++) {
			if ((input[i].getAttribute("src"))&&input[i].getAttribute("src").match(/_n\./)){
				input[i].onmouseover = hitsuRollover.over;
				input[i].onmouseout  = hitsuRollover.out;
			}
		}
	},

	over : function() {
		if((this.style.filter)&&(this.style.filter.match(/_n\.png/))){//(IE5.5-6 && png)
			this.style.filter = this.style.filter.replace('_n.png', '_r.png');
		}
		else{
			this.setAttribute("src",this.getAttribute("src").replace('_n.', '_r.'));
		}
	},

	out : function(){
		if((this.style.filter)&&(this.style.filter.match(/_r\.png/))){//(IE5.5-6 && png)
			this.style.filter = this.style.filter.replace('_r.png', '_n.png');
		}
		else{
			this.setAttribute("src",this.getAttribute("src").replace('_r.', '_n.'));
		}
	},

	addEvent : function(){
		try {
			window.addEventListener('load', hitsuRollover.main, false);
		} catch (e) {
			window.attachEvent('onload', hitsuRollover.main);
		}
	}
}

hitsuRollover.addEvent();