window.onload = rolloverInit;
function rolloverInit() {
	for (var i=0; i<document.images.length; i++){
		if (document.images[i].className == 'imgover') {
			setupRollover(document.images[i]);
		}
	}

}



function setupRollover(thisImage) {
	thisImage.outImage = new Image();
	thisImage.outImage.src = thisImage.src;
	thisImage.onmouseout = rollOut;
	
	thisImage.overImage = new Image();
	thisImage.overImage.src = "promoter/images/" + thisImage.id + "_on.jpg";
	thisImage.onmouseover = rollOver;
}

function rollOut() {
	this.src = this.outImage.src;
}

function rollOver() {
	this.src = this.overImage.src;
}
