<!-- 

// -----------------------------------------------------------------------
// Funciones JavaScript GENERALES
// -----------------------------------------------------------------------
		
//  APERTURA DE VENTANA
// Galeria fotografica
	function abreVentana(pagina)
	{
		win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=700,height=550,top=10,left=150");
	}
     function abreVentana1(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=550,height=480,top=50,left=250");
	}

     function abreVentana11(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=550,height=680,top=50,left=250");
	}


     
     function abreVentana2(pagina)
	{
		win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=630,height=480,top=100,left=250");
	}
      function abreVentana3(pagina)
	{
		win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=630,height=350,top=5,left=50");
	}
// Menu de 450
    function abreVentana5(pagina)
	{
		win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=470,height=400,top=30,left=200");
	}

   function abreVentana55(pagina)
	{
		win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=0,width=475,height=575,top=50,left=300");
	}		

// Menu multimedia de video
    function abreVentana6(pagina)
	{
		win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=290,height=290,top=100,left=250");
	}	
   function abreVentana7(pagina)
                  {
	win=window.open(pagina,"CAMARA","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=0,width=460,height=420,top=10,left=150");
                 }		





//	CERRAR VENTANA
	function cerrarVentana()
	{
		self.close();
	}



//  APERTURA DE VENTANA GRANDE

        function abreVentanaGrande(pagina)
	{
                winG = window.open(pagina,"EFEN","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=788,height=480,top=20,left=0");
        }


//	CERRAR VENTANA 2
	function cerrarVentana1()
	{
		self.close();
	}

//	CERRAR VENTANA PADRE
	function cerrarVentanaPadre()
	{
		parent.close();
	}
//	DA EL FOCO A LA NUEVA VENTANA
	self.focus();


function VisualizarFecha()
{
	date = new Date();
	var day_of_week_number = date.getDay();
	var day_of_month = date.getDate();
	var month_number = date.getMonth();
	var year = date.getYear();
	if (year<200) year+=1900;
	var day_of_week = '';
	var month = '' 

	var hours = date.getHours();
	var message = '';

	if (hours >= 6) { time_of_day = 'Buenos Días'; message='Morning Message';}
	if ((hours >= 14) && (hours < 21)) { time_of_day = 'Buenas Tardes'; message='Afternoon Message'}
	if (hours >= 21) { time_of_day = 'Buenas Noches'; message='Evening Message';}
	if ((hours >= 0) && (hours < 6)){ time_of_day = 'Buenas Noches'; message='Night Message';}

	if(month_number == 0){month = 'Enero';}
	if(month_number == 1){month = 'Febrero';}
	if(month_number == 2){month = 'Marzo';}
	if(month_number == 3){month = 'Abril';}
	if(month_number == 4){month = 'Mayo';}
	if(month_number == 5){month = 'Junio';}
	if(month_number == 6){month = 'Julio';}
	if(month_number == 7){month = 'Agosto';}
	if(month_number == 8){month = 'Septiembre';}
	if(month_number == 9){month = 'Octubre';}
	if(month_number == 10){month = 'Noviembre';}
	if(month_number == 11){month ='Diciembre';}
	
	if(day_of_week_number == 0){day_of_week = 'Domingo';}
	if(day_of_week_number == 1){day_of_week = 'Lunes';}
	if(day_of_week_number == 2){day_of_week = 'Martes';}
	if(day_of_week_number == 3){day_of_week = 'Miercoles';}
	if(day_of_week_number == 4){day_of_week = 'Jueves';}
	if(day_of_week_number == 5){day_of_week = 'Viernes';}
	if(day_of_week_number == 6){day_of_week = 'Sábado';} 

	var date_to_show='&nbsp;'+day_of_week+', '+day_of_month+' '+month+' '+year+'. '+time_of_day;
	document.write(date_to_show);
}






