var tempImg = [];

for(var x=0;x<12;x++) {

	show = x+1;

    tempImg['r'+x] = new Image();
    tempImg['r'+x].src = "/pub/local/img/loga/on/"+show+".png";
}

function switchimg() {
	this.src = tempImg[this.getAttribute("id")].src;
}

function unswitchimg() {
	
	show = parseFloat(this.getAttribute("id").substr(1,this.getAttribute("id").length-1));
	show++;

	this.src = '/pub/local/img/loga/off/'+show+".png";
}

window.onload = function() {

	for(var x=0;x<12;x++) {
		document.getElementById('r'+x).onmouseover = switchimg;
		document.getElementById('r'+x).onmouseout = unswitchimg;
	}
};
