function showHide(id)
{
		if( document.getElementById(id).style.display == 'none' )
			document.getElementById(id).style.display = 'block';
		else
			document.getElementById(id).style.display = 'none';
}
function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function bookmark(url,titulo){//alert(url);
   if ((navigator.appName=="Microsoft Internet Explorer") && 
        (parseInt(navigator.appVersion)>=4)) {
		url = 'http://' + url;
      window.external.AddFavorite(url,titulo);
   } else { 
      alert("Presione Crtl+D para agregar este sitio en sus favoritos"); 
   }
}

function mueveReloj(){ 
    momentoActual = new Date(); 
    hora = momentoActual.getHours(); 
    minuto = momentoActual.getMinutes(); 
    segundo = momentoActual.getSeconds();
	dia = (momentoActual.getDate() < 10 ? "0" + momentoActual.getDate() : momentoActual.getDate());
	diasem = momentoActual.getDay();
	var nomsem = new Array(
      'Domingo','Lunes','Martes',
      'Miércoles','Jueves','Viernes','Sábado');
	mes = momentoActual.getMonth();
	anio = momentoActual.getYear(); 
	
	var nommes = new Array(
			"enero",
			"febrero",
			"marzo",
			"abril",
			"mayo",
			"junio",
			"julio",
			"agosto",
			"septiembre",
			"octubre",
			"noviembre",
			"diciembre");
	
	if( anio < 2000 )
		anio = eval(1900+anio);
		
    str_segundo = new String (segundo) 
    if (str_segundo.length == 1) 
       segundo = "0" + segundo; 

    str_minuto = new String (minuto) 
    if (str_minuto.length == 1) 
       minuto = "0" + minuto; 

    str_hora = new String (hora) 
    if (str_hora.length == 1) 
       hora = "0" + hora; 

    horaImprimible = hora + ":" + minuto + ":" + segundo; 
	horaImprimible = nomsem[diasem] + ", " + dia + " de " + nommes[mes] + " de " + anio + " " + horaImprimible;
	if( document.getElementById('cl') != null )
	    document.getElementById('cl').innerHTML = horaImprimible; 

    setTimeout("mueveReloj()",1000); 
} 


function mueveRelojLng(lng){ 
    momentoActual = new Date(); 
    hora = momentoActual.getHours(); 
    minuto = momentoActual.getMinutes(); 
    segundo = momentoActual.getSeconds();
	dia = (momentoActual.getDate() < 10 ? "0" + momentoActual.getDate() : momentoActual.getDate());
	diasem = momentoActual.getDay();
	mes = momentoActual.getMonth();
	anio = momentoActual.getYear(); 
	if( anio < 2000 )
		anio = eval(1900+anio);
		
    str_segundo = new String (segundo) 
    if (str_segundo.length == 1) 
       segundo = "0" + segundo; 

    str_minuto = new String (minuto) 
    if (str_minuto.length == 1) 
       minuto = "0" + minuto; 

    str_hora = new String (hora) 
    if (str_hora.length == 1) 
       hora = "0" + hora; 

    horaImprimible = hora + ":" + minuto + ":" + segundo; 
	if( dia == 1 )
		strColetilla = 'st.';
	else if( dia == 2 )
		strColetilla = 'nd.';
	else
		strColetilla = 'th.';
		
	if( lng == 'en' )
	{
		var nomsem = new Array(
		  'Sunday','Monday','Thuesday',
		  'Wednesday','Thursday','Friday','Saturday');
	
		var nommes = new Array(
				"january",
				"february",
				"march",
				"april",
				"may",
				"june",
				"july",
				"august",
				"september",
				"october",
				"november",
				"december");
		
		horaImprimible = nomsem[diasem] + ", " + nommes[mes] + " " + dia + strColetilla + ", " + anio + " " + horaImprimible;	
	}
	else if( lng == 'fr' )
	{
		var nomsem = new Array(
		  'Sunday','Monday','Thuesday',
		  'Wednesday','Thursday','Friday','Saturday');
	
		var nommes = new Array(
				"january",
				"february",
				"march",
				"april",
				"may",
				"june",
				"july",
				"august",
				"september",
				"october",
				"november",
				"december");
		horaImprimible = nomsem[diasem] + ", " + nommes[mes] + " " + dia + strColetilla + ", " + anio + " " + horaImprimible;
	}
	if( document.getElementById('cl') != null )
	    document.getElementById('cl').innerHTML = horaImprimible; 

    setTimeout("mueveRelojLng('"+lng+"')",1000); 
} 
