
function MR_ImageFade(strImageName, strNewImage, strNewAlt)
  {
  var objField

  objField = document.images[strImageName]

  if (document.all)
    {
    objField.style.filter="blendTrans(duration=2)"
    objField.style.filter="blendTrans(duration=1.5)" // Tiempo del fade en segundos
    objField.filters.blendTrans.Apply()      
    }
  objField.src = strNewImage
  objField.alt = strNewAlt
  if (document.all)
    {
    objField.filters.blendTrans.Play()
    }
  }


function MR_CreateFoot()
  {
  var strBuffer = '';

  strBuffer += '<div class="pie"><a href="termscond.html"><MARQUEE bgcolor="#D3CEC1" loop="-1" scrollamount="2" width="565px"><strong>Four Seasons Blackpool has been awarded Guest Accommodation of the Year 2009</strong>......<strong> Special Summer Offer!!!</strong>, for a limited period only, <strong>10% OFF </strong>, contact us and book your room now to avoid dissapointment!!!.....<strong>Special Winter Offer !!!</strong>, 3 nights for the price of 2... Clik this <em>banner</em> to see our <em>Terms & Conditions</em> for more information...</MARQUEE></a><a> |</a><a href="mailto:info@fourseasonsblackpool.co.uk">Contact us |</a><a href="findus.html">Location</a></div>'

  document.write( strBuffer );
  }


function MR_CreateHeader(intMenu)
  {
  var strBuffer= '';

  strBuffer += '<div class="izquierda">';
  strBuffer += '  <div class="logo"><img src="imagenes/logo.gif" alt="Luxury Bed And Breakfast In Blackpool"></div>';
  strBuffer += '  <div class="fecha">' + CreateDate() + '</div>';
  strBuffer += '  <ul>';
  strBuffer += '    <li><a ' + ((intMenu==1)?'class="actual"':'""') + ' href="welcome.html">Welcome</a></li>';
  strBuffer += '    <li><a ' + ((intMenu==2)?'class="actual"':'""') + ' href="oursuites.html">Our suites</a></li>';
  strBuffer += '    <li><a ' + ((intMenu==3)?'class="actual"':'""') + ' href="services.html">Services</a></li>';
  strBuffer += '    <li><a ' + ((intMenu==4)?'class="actual"':'""') + ' href="reservations.html">Reservations</a></li>';
  strBuffer += '    <li><a ' + ((intMenu==5)?'class="actual"':'""') + ' href="testimonials.html">Testimonials</a></li>';
  strBuffer += '    <li><a ' + ((intMenu==6)?'class="actual"':'""') + ' href="blackpool.html">Blackpool</a></li>';
  strBuffer += '  </ul>';
  strBuffer += '  <div class="logq"><img src="imagenes/Awards.jpg" alt="5 Stars Silver Award, Breakfast Award & Guest Accommodation of the Year 2009"></div>';
  strBuffer += '</div>';
  
  document.write( strBuffer );
  }


function CreateDate()

  {
  
  var strText='';
  
  var mydate=new Date();

  var year=mydate.getYear();

  var day=mydate.getDay();

  var month=mydate.getMonth();

  var daym=mydate.getDate();

  var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

  var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

  if (year < 1000)
    
    year+=1900;
  
  if (daym<10)
    
    daym="0"+daym;
  
  strText = dayarray[day]+", "+montharray[month]+ " " +daym+", "+year;

 
  
  return(strText); 
  }

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();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { 
        p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n';                else if (test.indexOf('isEmail')==1) errors += '- '+nm+' is required.\n';}
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MR_ShClick()
  {
	window.location.href = "web/welcome.html";
	return true;
  }
