var fecha=new Date(); 
var ano=fecha.getYear(); if (ano < 1000) ano+=1900; 
var dia=fecha.getDay(); var mes=fecha.getMonth(); 
var diam=fecha.getDate(); if (diam<10) diam="0"+diam; 
var TablaDia=new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");
var TablaMes=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

var nroImagen = 1;

function adelante()
{
		//antes pongo la imagen actual en display none
		var imgprevia = document.getElementById("img"+nroImagen);
		imgprevia.style.display='none';
		
		imgprevia.src='img'+1+'.jpg'
		
		nroImagen = nroImagen + 1;
		if (nroImagen==36)
		    nroImagen=1;
			
		//despues pongo la imagen nueva en display
		var imgprevia=document.getElementById("img"+nroImagen);
		imgprevia.style.display='';
}


function atras()
{
		//antes pongo la imagen actual en display none
		var imgprevia = document.getElementById("img"+nroImagen);
		imgprevia.style.display='none';
		
		nroImagen = nroImagen - 1;
		if (nroImagen==0)
		    nroImagen=36;
			
		//despues pongo la imagen nueva en display
		var imgprevia=document.getElementById("img"+nroImagen);
		imgprevia.style.display='';
}






function Foto(variable)
{
var Foto = ["Foto 1 de 36", 
            "Foto 2 de 36", 
	     	"Foto 3 de 36", 
			"Foto 4 de 36", 
			"Foto 5 de 36", 
            ];

if (parseInt(variable) && parseInt(variable) >0 && parseInt(variable) < 5)
System.out.println("a")
/*(Foto[parseInt(variable)-1]);*/
else
alert('mal formato');
}


function Segunda_muestra_oculta(Ancho_Pantalla)
{
	if (navigator.appName == "Netscape") 
	{
		Ancho_Pantalla=window.innerWidth;
		Alto_Pantalla=window.innerHeight;
	}
	else
	{
		Ancho_Pantalla=document.body.clientWidth;
		Alto_Pantalla=document.body.clientHeight;  
	}
}




function muestra_oculta(id)
{
   if (navigator.appName=="Netscape")
   {
	   Ancho_Pantalla=window.innerWidth;
       Alto_Pantalla=window.innerHeight;
	   if (Ancho_Pantalla<1000)
	   {
         contenido_a_mostrar.style.display = (contenido_a_mostrar.style.display == 'none') ? 'block' : 'none';
  		 window.onload = function()
		{ 
         muestra_oculta('contenido_a_mostrar');
 	    }
       }
   }
   if (navigator.appName=="Microsoft Internet Explorer")
   {
	   Ancho_Pantalla=document.body.clientWidth;
	   Alto_Pantalla=document.body.clientHeight;  
	   if (Ancho_Pantalla<1120)
	   {
         contenido_a_mostrar.style.display = (contenido_a_mostrar.style.display == 'none') ? 'block' : 'none';
    	 window.onload = function()
		 { 
         muestra_oculta('contenido_a_mostrar');
		 }
       }
   }
}
{
}
