function fondo(numero){
numero.bgColor="orange";
numero.color="white";
}
function inicio(identity){
identity.bgColor="teal";
}
function visibilidad(numero,evento){
numero.bgColor="orange";
numero.color="white";
evento.style.visibility="visible";
}
function esconder(identity,evento){
identity.bgColor="teal";
evento.style.visibility="hidden";
}

function popup(pag, hres, vres){
opciones = "width=" + hres + ", height=" + vres + ", toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, title='Fotos'";
window.open(pag, "", opciones);
}

function popuppatro(pag, hres, vres){
opciones = "width=" + hres + ", height=" + vres + ", toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=no, title='Patrocinadores'";
window.open(pag, "", opciones);
}


function ChangeUrl(formulaire)
	{
	if (formulaire.ListeUrl.selectedIndex != 0)
		{
		location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
	 	}
	else 
		{
		alert('Tienes que elegir un destino.');
		}
	}

var speed=700;

function color1(name){
document.getElementById(name).style.color="teal";
color="color2('"+name+"')";
setTimeout(color, speed);
}

function color2(name){
document.getElementById(name).style.color="yellow";
color="color3('"+name+"')";
setTimeout(color, speed);
}

function color3(name){
document.getElementById(name).style.color="orange";
color="color4('"+name+"')";
setTimeout(color, speed);
}

function color4(name){
document.getElementById(name).style.color="white";
color="color1('"+name+"')";
setTimeout(color, speed);
}

function imgover(elemento){
document.getElementById(elemento).style.borderTopColor = "black";
document.getElementById(elemento).style.borderLeftColor = "black";
document.getElementById(elemento).style.borderBottomColor = "white";
document.getElementById(elemento).style.borderRightColor = "white";
}

function imgout(elemento){
document.getElementById(elemento).style.borderTopColor = "white";
document.getElementById(elemento).style.borderLeftColor = "white";
document.getElementById(elemento).style.borderBottomColor = "black";
document.getElementById(elemento).style.borderRightColor = "black";
}