// JavaScript Document

function fecha() {
if ( parent.frames.length != 0 ) { parent.location.href=self.location; }

if ( top.frames.length != 0 ) { top.location=self.location; }

today = new Date()
day = today.getDay()
if ( day == 0 ) { document.write("Domingo, ") }
if ( day == 1 ) { document.write("Lunes, ") }
if ( day == 2 ) { document.write("Martes, ") }
if ( day == 3 ) { document.write("Mi&eacute;rcoles, ") }
if ( day == 4 ) { document.write("Jueves, ") }
if ( day == 5 ) { document.write("Viernes, ") }
if ( day == 6 ) { document.write("S&aacute;bado, ") }

today = new Date()
hours = today.getHours()
minutes = today.getMinutes()
year = parseInt(today.getYear(),10)

zerom = ''
zeroh = ''
if ( minutes < 10 ) { zerom = 0 }
if ( hours < 10 ) { zeroh = 0 }

if ( today.getMonth() == 0 ) { month = "Enero" }
if ( today.getMonth() == 1 ) { month = "Febrero" }
if ( today.getMonth() == 2 ) { month = "Marzo" }
if ( today.getMonth() == 3 ) { month = "Abril" }
if ( today.getMonth() == 4 ) { month = "Mayo" }
if ( today.getMonth() == 5 ) { month = "Junio" }
if ( today.getMonth() == 6 ) { month = "Julio" }
if ( today.getMonth() == 7 ) { month = "Agosto" }
if ( today.getMonth() == 8 ) { month = "Septiembre" }
if ( today.getMonth() == 9 ) { month = "Octubre" }
if ( today.getMonth() == 10 ) { month = "Noviembre" }
if ( today.getMonth() == 11 ) { month = "Diciembre" }
if ( today.getYear() < 200) { year = today.getYear()+1900 } else { year = today.getYear() }

document.write( today.getDate()," de ",month," de ",year);
}


function agregar(){
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
	var url="http://www.lapaloma.net/";
	var titulo="LaPaloma.net - Turismo - Reservas Online - Información";
	window.external.AddFavorite(url,titulo);
} else if (navigator.appName == "Netscape") {
	alert ("Presione Crtl+D para agregar este sitio en sus Marcadores");
}
}

function nofunc(){
	alert ("Esta función aún no está habilitada. Estamos actualizando y mejorando nuestro contenido. Ante cualquier duda o sugerencia contáctenos vía contacto@lapaloma.net");
	return false;
}

function pop_pup(theURL,winName,features) {
  window.open(theURL,winName,features);
}