function SwapImage(){
	if(document.getElementsByTagName){
		var images = document.getElementsByTagName("img");
		var inputs = document.getElementsByTagName("input");
		
		var target;
		for(var j=0; j<2; j++){
			if(j==0)
				target = images;
			else
				target = inputs;
			
			for(var i=0; i<target.length; i++){
				if(target[i].getAttribute("src") && target[i].getAttribute("src").match("_ro1.")){
					target[i].onmouseover = function(){
						this.setAttribute("src", this.getAttribute("src").replace("_ro1.", "_ro2."));
					}
					target[i].onmouseout = function(){
						this.setAttribute("src", this.getAttribute("src").replace("_ro2.", "_ro1."));
					}
				}
			}
		}
	}
}

if(window.addEventListener){
	window.addEventListener("load", SwapImage, false);
}
else if(window.attachEvent){
	window.attachEvent("onload", SwapImage);
}

