var onImage = new Array();
var offImage = new Array();

function loadImage(){
	if(document.images){
		var a = loadImage.arguments;
		for(var i=0; i<a.length; i++){
			onImage[i] = new Image();
			onImage[i].src = "../img/" + a[i] + "_on.gif";
			offImage[i] = new Image();
			offImage[i].src = "../img/" + a[i] + "_off.gif";
		}
	}
}

function loadPerImage(){
	if(document.images){
		var a = loadPerImage.arguments;
		for(var i=0; i<a.length; i++){
			onImage[i] = new Image();
			onImage[i].src = "img/" + a[i] + "_on.gif";
			offImage[i] = new Image();
			offImage[i].src = "img/" + a[i] + "_off.gif";
		}
	}
}

function rolloverOff(imgId,No){
	if(offImage[No]){
		if(document.getElementById){
			document.getElementById(imgId).src = eval("offImage" + "[" + No + "]" + ".src");
		}
	}
}

function rolloverOn(imgId,No){
	if(onImage[No]){
		if(document.getElementById){
			document.getElementById(imgId).src = eval("onImage" + "[" + No + "]" + ".src");
		}
	}
}