// definir imagenes

genar0 =  new Image;
genar1 = new Image;
genar2 = new Image;

// imagenes fuente (precargar)

genar0.src = "images/genar0.gif";
genar1.src = "images/genar1.gif";
genar2.src = "images/genar2.gif";

function rojo(imgLocation){
	document.images[imgLocation].src = genar1.src;
}

function negro(imgLocation){
	document.images[imgLocation].src = genar0.src;
}


function azul(imgLocation){
	document.images[imgLocation].src = genar2.src;
}