/* ------------------------------
 smartRollover
------------------------------ */


function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

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

/* ------------------------------
 CurrentOverSet()
------------------------------ */

function CurrentOverSet() {

	var mnum=arguments.length;
	arg = new Array(mnum);

	for (i=0;i<mnum;i++){
		arg[i]=arguments[i]
	}


function CurrentOver() {
	for (i=0;i<mnum;i++){
		var	ovimg=document.getElementById(arg[i]);

		if(ovimg!=undefined){
			ovimg.src=ovimg.src.replace("_off.", "_on.");
			ovimg.onmouseout = function(){
				return false;
			}
		}
	}
}

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

}
