try {
	window.addEventListener("load", rollOverFunc, false);
} catch(e) {
	window.attachEvent("onload", rollOverFunc);
}

function rollOverFunc() {
	var elm = document.getElementsByTagName("img");
	for (var i=0; i<elm.length; i++) {
		if (elm[i].className.indexOf("roll_over") >= 0) {
			elm[i].onmouseover = mouse_over_image;
			elm[i].onmouseout = mouse_out_image;
		}
	}
	elm = document.getElementsByTagName("input");
	for (var i=0; i<elm.length; i++) {
		if (elm[i].className.indexOf("roll_over") >= 0) {
			elm[i].onmouseover = mouse_over_image;
			elm[i].onmouseout = mouse_out_image;
		}
	}
}

function mouse_over_image() {
	if (this.src.indexOf(".jpg") > 0)
		this.src = this.src.replace(".jpg", "_o.jpg");
	else if (this.src.indexOf(".gif") > 0)
		this.src = this.src.replace(".gif", "_o.gif");
}

function mouse_out_image() {
	if (this.src.indexOf(".jpg") > 0)
		this.src = this.src.replace("_o.jpg", ".jpg");
	else if (this.src.indexOf(".gif") > 0)
		this.src = this.src.replace("_o.gif", ".gif");
}


