var MASTHEAD_COOKIE_NAME = "masthead"; var MASTHEAD_TIL = "til"; var MASTHEAD_ES = "es"; function resetStars() { for (var i=1; i <= 5; i++) { doStar(i, 'http://i.thisislondon.co.uk/i/std/siteimages/stars/starOff.gif'); } } function resetAll() { resetStars(); } function lightStars(rating) { resetStars(); for (var i=1; i<= rating; i++) { doStar(i, 'http://i.thisislondon.co.uk/i/std/siteimages/stars/starOn.gif'); document.forms.addRating.rating.value='' + i; } } function doStar(elId, image) { elId = 's' + elId; document.getElementById(elId).src='' + image; } function submitRatingForm() { document.forms.addRating.submit(); } function setItemRating(itemType,itemId) { var cookie = getCookie(itemType+"UScores"); userRating = 0; if (cookie!=null) { var split = cookie.split("~"); for (var i=1;i function PopUp(win_name,URL,width,height,scrollbars,menubar){ if (scrollbars==null){ scrollbars=0; } if (menubar==null){ menubar="no" } open( URL,win_name, "width="+width+",height="+height+",status=0,toolbar=0,menubar="+menubar+",resizable=no,location=0,scrollbars="+scrollbars+""); } // Script Source: CodeLifter.com // Copyright 2003 // Do not remove this notice. // SETUPS: // =============================== // Set autoclose true to have the window close automatically // Set autoclose false to allow multiple popup windows var AutoClose = true; // Do not edit below this line... // ================================ if (parseInt(navigator.appVersion.charAt(0))>=4){ var isNN=(navigator.appName=="Netscape")?1:0; var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;} var optNN='scrollbars=no,width=500,height=500,left=0,top=0'; // Set these value approximately 20 pixels greater than the size of the largest image to be used (needed for Netscape) var optIE='scrollbars=no,width=150,height=100,left=0,top=0'; function popImage(imageURL,imageTitle){ if (isNN){imgWin=window.open('about:blank','',optNN);} if (isIE){imgWin=window.open('about:blank','',optIE);} with (imgWin.document){ writeln('Loading...');writeln(''); writeln('var isNN,isIE,isSafari,width,height;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){'); writeln('isNN=(navigator.appName=="Netscape")?1:0;'); writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}'); writeln('function reSizeToImage(){'); writeln('if (isIE){'); writeln('window.resizeTo(300,300);'); writeln('width=300-(document.body.clientWidth-document.images[0].width);'); writeln('height=300-(document.body.clientHeight-document.images[0].height);'); writeln('window.resizeTo(width,height);'); writeln('}'); writeln('if (isNN){'); writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;'); writeln('width = window.outerWidth;'); writeln('height = window.outerHeight;'); writeln('}'); writeln('window.moveTo((screen.width-width)/2,(screen.height-height)/2);'); writeln('}'); writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln(''); if (!AutoClose) writeln('') else writeln(''); writeln(''); close(); }} //lucky seven functions function luckySeven(ti, te, im, ur) { var title = ti; var bookingUrl = ur; var text = te; var image = im; this.DisplayAdvert = DisplayAdvert; this.DisplayHolidayAdvert = DisplayHolidayAdvert; function DisplayAdvert(i) { document.write('
'); var str = ''+ title.replace('\\\'','\'') +''; str += '\"'+'; str += '
'; if(bookingUrl!='#') { str += ''; } str += '\"\"'; if(bookingUrl!='#') { str += ''; } str += '
'; str += '
 
'; str += ''; if(bookingUrl!='#') { str+='Bookings / reviews'; } else { str+=' '; } str+=''; document.getElementById('lucky'+i).innerHTML = str; } function DisplayHolidayAdvert(i) { var str = '
  • \"'
  • '; //alert(str); document.write(str); } } function writeAds() { for(var i = 0; i < totalAds; i++) { ads[i].DisplayAdvert(i); } } function writeHolidayAds() { var str = '
    \"Travel\"from

    '; //alert(str); document.write(str); } function randOrd(){ return (Math.round(Math.random())-0.5); } var haveAds=false; function refresh(milliseconds) { document.location.reload(true); self.setTimeout('refresh('+milliseconds+')', milliseconds); } function utcDate(year,month,day) { var date = new Date(); if (year!=null&&month!=null&&day!=null) { date.setUTCFullYear(year); date.setUTCMonth(month-1); date.setUTCDate(day); } date.setUTCHours(0); date.setUTCMinutes(0); date.setUTCSeconds(0); date.setUTCMilliseconds(0); return date; } function dayRemain(year,month,day) { var tRef = utcDate(year,month,day); var tNow = utcDate(); var diff = (tRef - tNow)/86400000; return (diff<0)?0:diff; } function formatDigitRecursive(n, format, digitCount) { var strN=n.toString(); if (digitCount!=null && digitCount>strN.length) strN=(n+Math.pow(10,digitCount)).toString().substr(1); var out = ''; for (var i=0; i