/**
 * Notas.js
 *
 * Autor: Jaime Rangel
 * Fecha: 2007/01/22
 * Descripción: función de javascript encargada de hacer la rotación de las noticias
 */

function mostrarNota(idLayer){
	whichLayer = "nota" + idLayer;
	var style2 = document.getElementById(whichLayer).style;
	style2.display = "block";
}
function seleccionFotoNota(idLayer){
	whichLayer = "fotoNota" + idLayer;
	var style2 = document.getElementById(whichLayer).style;
	style2.backgroundColor="#E3E5EE";
}
function ocultarNota(idLayer){
	whichLayer = "nota" + idLayer;
	var style2 = document.getElementById(whichLayer).style;
	style2.display = "none";
}
function deseleccionFotoNota(idLayer){
	whichLayer = "fotoNota" + idLayer;
	var style2 = document.getElementById(whichLayer).style;
	style2.backgroundColor="#FFFFFF";
}	
function overNota(idLayer){

	var style2;
	actual = idLayer;
	for(var i=1; i<=4; i++){
	
		ocultarNota(i);
		deseleccionFotoNota(i);		
	
	}
	mostrarNota(idLayer);
	seleccionFotoNota(idLayer);

}
function SeleccionNota(idLayer){

	seleccionFotoNota(idLayer);

}
function DeSeleccionNota(idLayer){
	
	if (actual != idLayer){
	deseleccionFotoNota(idLayer);
	}

}
var actual = 1;
SeleccionNota(1);
mostrarNota(1);