﻿function setOferta(){
// Título de la oferta entre las comillas
document.getElementById('contentEmpresasTitle').innerHTML="Oferta de verano - 2010";
// Contenido de la oferta entre las comillas
document.getElementById('contentEmpresasParagraph1').innerHTML="A partir del 1 de Junio y durante todo el verano consulta nuestras ofertas con precios especiales para largas estancias.";
document.getElementById('contentEmpresasParagraph2').innerHTML="<strong>Información y reservas:</strong> <a href='mailto:paradadelrey@paradadelrey.com' title='paradadelrey@paradadelrey.com'>paradadelrey@paradadelrey.com</a> <br/> (+ 34) 91 844 90 06";
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function setDate(){
	if(document.getElementById('date')){
		var dia = new Array(" ", " ", " ", " ", " ", " ", " ");
		var mes = new Array("enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre");
		var fecha = new Date();
		var wd = fecha.getDay();
		var m = fecha.getMonth();
		var dt = fecha.getDate();
		var y = fecha.getFullYear();
		
		strDt = dia[wd]+'  '+dt +' de '+mes[m]+' de '+y;
		var txt = document.createTextNode(strDt);
		document.getElementById('date').appendChild(txt);
	}
}

function setCopyRight(){
		if(document.getElementById('footer')){
		strCR = '(+ 34) 91 844 90 06 I paradadelrey@paradadelrey.com I Avenida de Madrid, 16 - Miraflores de la Sierra - 28792 Madrid.';
		var txt = document.createTextNode(strCR);
		document.getElementById('footer').appendChild(txt);	
		}
}

function init(){
	setDate();
	setCopyRight();
	setOferta();
}
window.onload = init;


