function colorOpciones(obj, clase)
{	
	obj.className = clase;
}

/* para mostrar la fecha
inicio: */
function Dia_de_Semana (d1,d2,d3,d4,d5,d6,d7) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
	}

function Mes_del_Anio (d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
this[7]=d8;
this[8]=d9;
this[9]=d10;
this[10]=d11;
this[11]=d12;
	}

Semana = new Dia_de_Semana ("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");

Mes = new Mes_del_Anio ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

var today= new Date;
diahoy = today.getDay();
fechahoy = today.getDate();
meshoy = today.getMonth();
anio = today.getYear();

function dia () {
document.write ("<font color='navy' size='1' face='Arial'>"+Semana[diahoy]+" "+fechahoy+" de "+Mes[meshoy]+" de "+anio+"</font>");
}
/* fin */

/* reloj */
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds;
	
function writeclock() {
	i_clock++
	if (document.all || document.getElementById || document.layers) {
		clockid[i_clock]="clock"+i_clock
		document.write("<font color='navy' size='1' face='Arial'><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>")
	}
}

function clockon() {
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	thistime = hours+":"+minutes+":"+seconds
		
	if (document.all) {
		for (i=0;i<=clockid.length-1;i++) {
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById) {
		for (i=0;i<=clockid.length-1;i++) {
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
window.onload=clockon

/* fin reloj */

/* rollover */
 if (document.images) {
      var activado=new Image();
      activado.src="IMAGENES/encendido.gif";
      var desactivado= new Image();
      desactivado.src="IMAGENES/apagado.gif";
	  
	  var activadoPeque=new Image();
      activadoPeque.src="IMAGENES/encendido_peque.gif";
      var desactivadoPeque= new Image();
      desactivadoPeque.src="IMAGENES/apagado_peque.gif";
	  
	  var activadoSigue=new Image();
      activadoSigue.src="IMAGENES/sigue_over.gif";
      var desactivadoSigue= new Image();
      desactivadoSigue.src="IMAGENES/sigue.gif";
	  
	  var activadoNoticias=new Image();
      activadoNoticias.src="IMAGENES/noticias_over.gif";
      var desactivadoNoticias= new Image();
      desactivadoNoticias.src="IMAGENES/mas_noticias.gif";
    }
    function activar(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=activado.src; }
    }
    function desactivar(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=desactivado.src; }
    }
	
	function activarPeque(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=activadoPeque.src; }
    }
    function desactivarPeque(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=desactivadoPeque.src; }
    }
	
	function activarSigue(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=activadoSigue.src; }
    }
    function desactivarSigue(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=desactivadoSigue.src; }
    }
	
	function activarNoticias(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=activadoNoticias.src; }
    }
    function desactivarNoticias(nombreImagen) {
      if (document.images) {
        document[nombreImagen].src=desactivadoNoticias.src; }
    }
	

