//  Activate Clock
// Today's Date
// modified to display date in day month, year format by Nabil Sakati
var a;
var now = new Date();
var yrnow = now.getYear();
a=new Date(document.lastModified);
var yr = a.getYear();
var mName = a.getMonth() + 1;
var dName = a.getDay() + 1;
var dayNr = ((a.getDate()<10) ? "0" : "")+ a.getDate();
var lm_hour=a.getHours();lm_hour=((lm_hour<10)?"0":"")+lm_hour;
var lm_minute=a.getMinutes();lm_minute=((lm_minute<10)?"0":"")+lm_minute;
var lm_second=a.getSeconds();lm_second=((lm_second<10)?"0":"")+lm_second;
// Find the day name
if(dName==1) Day = "Sunday";
if(dName==2) Day = "Monday";
if(dName==3) Day = "Tuesday";
if(dName==4) Day = "Wednesday";
if(dName==5) Day = "Thursday";
if(dName==6) Day = "Friday";
if(dName==7) Day = "Saturday";
// Find the month name
if(mName==1) Month="January";
if(mName==2) Month="February";
if(mName==3) Month="March";
if(mName==4) Month="April";
if(mName==5) Month="May";
if(mName==6) Month="June";
if(mName==7) Month="July";
if(mName==8) Month="August";
if(mName==9) Month="September";
if(mName==10) Month="October";
if(mName==11) Month="November";
if(mName==12) Month="December";
// String to build current date.
   var todaysDate =(" " + Day + " " + dayNr + " " + Month + ", " + yr + " at  " + lm_hour +":" + lm_minute + ":" + lm_second);
document.open();
document.write('<div align="center" class="bodytext">');
document.write('<hr style="color: Purple;">');
document.write('<table><tr align="center"><td>');
document.write("Copyright &copy; 1997-" + yrnow + " Sakati Associates");
document.write('</td></tr><tr align="center"><td>All Rights Reserved. No part of this document may be</td></tr><tr align="center"><td>reproduced without the written consent of Sakati Associates.</td></tr></table>');
document.write('<table><tr align="center"><td>This Web publication is a work-in-progress.<p></p><A HREF="http://www.walking-holidays-andalucia.com/pages/contact-us/contact.html" target="_self">Click here to send a message/enquiry to <br>Webmaster at Walking Holidays in Andalucia</A><p></p></td></tr></table>');
document.write('<p>');
// Write date to page.
document.write("Last updated on " + todaysDate +" by Webmaster");
document.write('</p>');
document.write('<p>');
document.write('You have been visiting<br>');
document.write(document.location);
document.write('</p>');
document.write('<hr style="color: Purple;">');
document.write('</div>');
// Deactivate Clock
