var VL={util:{},currentDate:new Date},videoXML,whichVid,playlistURL,tl=false,KEY_ENTER=13,KEY_UP=38,KEY_DOWN=40,KEY_LEFT=37,KEY_RIGHT=39,KEY_PAGEUP=33,KEY_PAGEDOWN=34;VL.util.leapYear=function(a){if(a%4===0&&(a%100!==0||a%400===0))return true};VL.util.isNumber=function(a){return typeof a==="number"&&isFinite(a)};
jQuery.cookie=function(a,b,c){var d,f,g;if(typeof b!="undefined"){c=c||{};if(b===null){b="";c.expires=-1}f="";if(c.expires&&(typeof c.expires=="number"||c.expires.toUTCString)){if(typeof c.expires=="number"){d=new Date;d.setTime(d.getTime()+c.expires*24*60*60*1E3)}else d=c.expires;f="; expires="+d.toUTCString()}g=c.path?"; path="+c.path:"";d=c.domain?"; domain="+c.domain:"";c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),f,g,d,c].join("")}else{d=null;if(document.cookie&&document.cookie!=
""){c=document.cookie.split(";");for(f=0;f<c.length;f++){b=jQuery.trim(c[f]);if(b.substring(0,a.length+1)==a+"="){d=decodeURIComponent(b.substring(a.length+1));break}}}return d}};
(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;a.browser.mozilla&&a(this).bind("mousemove.mousewheel",function(c){a.data(this,"mwcursorposdata",{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY})});if(this.addEventListener)this.addEventListener(a.browser.mozilla?"DOMMouseScroll":"mousewheel",b,false);else this.onmousewheel=b},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener)this.removeEventListener(a.browser.mozilla?
"DOMMouseScroll":"mousewheel",b,false);else this.onmousewheel=function(){};a.removeData(this,"mwcursorposdata")},handler:function(b){var c=Array.prototype.slice.call(arguments,1),d=0;b=a.event.fix(b||window.event);a.extend(b,a.data(this,"mwcursorposdata")||{});if(b.wheelDelta)d=b.wheelDelta/120;if(b.detail)d=-b.detail/3;if(a.browser.opera)d=-b.wheelDelta;b.data=b.data||{};b.type="mousewheel";c.unshift(d);c.unshift(b);return a.event.handle.apply(this,c)}};a.fn.extend({mousewheel:function(b){return b?
this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);
(function(){function a(e,h){if(h)for(var i in h)if(h.hasOwnProperty(i))e[i]=h[i];return e}function b(e){switch(c(e)){case "string":e=e.replace(RegExp('(["\\\\])',"g"),"\\$1");e=e.replace(/^\s?(\d+)%/,"$1pct");return'"'+e+'"';case "array":return"["+d(e,function(k){return b(k)}).join(",")+"]";case "function":return'"function ()"';case "object":var h=[];for(var i in e)e.hasOwnProperty(i)&&h.push('"'+i+'":'+b(e[i]));return"{"+h.join(",")+"}"}return String(e).replace(/\s/g," ").replace(/\'/g,'"')}function c(e){if(e===
null||e===undefined)return false;var h=typeof e;return h=="object"&&e.push?"array":h}function d(e,h){var i=[];for(var k in e)if(e.hasOwnProperty(k))i[k]=h(e[k]);return i}function f(e,h){var i=a({},e),k=document.all,l='<object width="'+i.width+'" height="'+i.height+'"';if(k&&!i.id)i.id="_"+(""+Math.random()).substring(9);if(i.id)l+=' id="'+i.id+'"';if(i.cachebusting)i.src+=(i.src.indexOf("?")!=-1?"&":"?")+Math.random();l+=i.w3c||!k?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
l+=">";if(i.w3c||k)l+='<param name="movie" value="'+i.src+'" />';i.width=i.height=i.id=i.w3c=i.src=null;for(var n in i)if(i[n]!==null)l+='<param name="'+n+'" value="'+i[n]+'" />';i="";if(h){for(var m in h)if(h[m]!==null)i+=m+"="+(typeof h[m]=="object"?b(h[m]):h[m])+"&";i=i.substring(0,i.length-1);l+='<param name="flashvars" value=\''+i+"' />"}l+="</object>";return l}function g(e,h,i){var k=flashembed.getVersion();a(this,{getContainer:function(){return e},getConf:function(){return h},getVersion:function(){return k},
getFlashvars:function(){return i},getApi:function(){return e.firstChild},getHTML:function(){return f(h,i)}});var l=h.version,n=h.expressInstall,m=!l||flashembed.isSupported(l);if(m){h.onFail=h.version=h.expressInstall=null;e.innerHTML=f(h,i)}else if(l&&n&&flashembed.isSupported([6,65])){a(h,{src:n});i={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};e.innerHTML=f(h,i)}else if(e.innerHTML.replace(/\s/g,"")===""){e.innerHTML="<h2>Flash version "+l+" or greater is required</h2><h3>"+
(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(e.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(e.tagName=="A")e.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!m&&h.onFail){l=h.onFail.call(this);if(typeof l=="string")e.innerHTML=l}if(document.all)window[h.id]=document.getElementById(h.id)}var j={width:"100%",height:"100%",allowfullscreen:true,
allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:j};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(e,h,i){if(typeof e=="string"){var k=document.getElementById(e);if(k)e=k;else{jQuery(function(){flashembed(e,h,i)});return}}if(e){if(typeof h==
"string")h={src:h};k=a({},j);a(k,h);return new g(e,k,i)}};a(window.flashembed,{getVersion:function(){var e=[0,0],h;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){h=navigator.plugins["Shockwave Flash"].description;if(typeof h!="undefined"){h=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1");e=parseInt(h.replace(/^(.*)\..*$/,"$1"),10);h=/r/.test(h)?parseInt(h.replace(/^.*r(.*)$/,"$1"),10):0;e=[e,h]}}else if(window.ActiveXObject){try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(i){try{h=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");e=[6,0];h.AllowScriptAccess="always"}catch(k){if(e[0]==6)return e}try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(l){}}if(typeof h=="object"){h=h.GetVariable("$version");if(typeof h!="undefined"){h=h.replace(/^\S+\s+(.*)$/,"$1").split(",");e=[parseInt(h[0],10),parseInt(h[2],10)]}}}return e},isSupported:function(e){var h=flashembed.getVersion();return h[0]>e[0]||h[0]==e[0]&&h[1]>=e[1]},asString:b,getHTML:f});jQuery.fn.flashembed=function(e,
h){var i=null;this.each(function(){i=flashembed(this,e,h)});return e.api===false?this:i}})();function drawMovie(a,b,c,d){$("#"+a).flashembed({src:b,width:c,height:d,play:"true",wmode:"transparent",version:[8,0]})}
if(!VL.videoColor||VL.videoColor===""){switch(location.pathname.split("/")[1]){case "accommodation":VL.videoColor="purplestay";break;case "attractions":VL.videoColor="blueplaces";break;case "travel":VL.videoColor="bluetravel";break;case "events":VL.videoColor="yellow";break;case "areas":VL.videoColor="orange";break;case "maps":VL.videoColor="purplemap";break;case "people":VL.videoColor="green";break;case "offers":VL.videoColor="pink";break;default:VL.videoColor="grey";break}if(location.hostname.indexOf("traveltrade")!=
-1)VL.videoColor="bluetravel";if(location.hostname.indexOf("awards")!=-1)VL.videoColor="purplemap"}
function drawTV(){var a,b,c="",d=whichVid+".xml",f=$("#video"),g=$("#videolarge");a=$("#playlist");playlistURL&&playlistURL!==""&&a.length&&a.flashembed({src:"http://static.visitlondon.com/assets/video/vl-video-player-large-metatrace.swf?playerSize=PL&xmltouse="+playlistURL+".xml&PageColour="+VL.videoColor,width:"540",height:"353",play:"true",wmode:"transparent",allowFullScreen:"true",version:[8,0]}).height(360);if(videoXML&&videoXML!==""){whichVid=true;tl=false;d=videoXML;c="&external=1"}if(whichVid&&
whichVid!==""){if(f.length){if($.browser.msie||$.browser.safari){a="540";b="352"}else{a="240";b="184"}f.flashembed({src:"http://static.visitlondon.com/assets/video/vl-video-player-small-metatrace.swf?xmltouse="+d+"&PageColour="+VL.videoColor+c,width:a,height:b,play:"true",wmode:"transparent",allowFullScreen:"true",scale:"noscale",salign:"rt",version:[8,0]});if(tl===true){f.append('<a id="transcriptLink" href="http://static.visitlondon.com/assets/video/transcripts/'+whichVid+'.html"><img src="http://vlstatic.com/images/icons/transcript.gif" alt="" />'+
VL.copy.tltext+"</a>").height(200);$("#transcriptLink").css({cursor:"pointer",display:"block","margin-top":"188px","margin-bottom":"10px"}).click(function(){window.open("http://static.visitlondon.com/assets/video/transcripts/"+whichVid+".html","trans","width=600, height=550, location=no, scrollbars=yes");return false})}else f.height(188);$.browser.safari&&$("#video object, #video embed").css("clip","rect(0,540px,184px,300px)")}if(g.length){g.flashembed({src:"http://static.visitlondon.com/assets/video/vl-video-player-large-metatrace.swf?playerSize=SL&xmltouse="+
d+"&PageColour="+VL.videoColor+c,width:"540",height:"353",play:"true",wmode:"transparent",allowFullScreen:"true",version:[8,0]});if(tl===true){g.append('<a id="transcriptLink" href="http://static.visitlondon.com/assets/video/transcripts/'+whichVid+'.html"><img src="http://vlstatic.com/images/icons/transcript.gif" alt="" />'+VL.copy.tltext+"</a>").height(375);$("#transcriptLink").css({cursor:"pointer",display:"block","margin-top":"360px","margin-bottom":"10px"}).click(function(){window.open("http://static.visitlondon.com/assets/video/transcripts/"+
whichVid+".html","trans","width=600, height=550, location=no, scrollbars=yes");return false})}else g.height(360)}}}function goBig(){if(!$.browser.msie){$("#video object, #video embed").width(540).height(352);$.browser.safari&&$("#video object, #video embed").css("clip","auto")}}function goSmall(){if(!$.browser.msie){$("#video object, #video embed").width(240).height(184);$.browser.safari&&$("#video object, #video embed").css("clip","rect(0,540px,184px,300px)")}}
function videoMultiTrackWrapper(a,b,c,d){switch(c){case "WT.z_ltvView":dcsMultiTrack("WT.ti","","WT.cg_n","","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier","","DCS.dcsuri",a,"WT.z_ltvName","Video: "+b,"WT.z_ltvView","1","WT.z_ltvPlay","","WT.z_ltvFinished","");break;case "WT.z_ltvPlay":dcsMultiTrack("WT.ti",b,"WT.cg_n","SC_VideoPlay","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier","","DCS.dcsuri",a,"WT.z_ltvName","Video: "+b,"WT.z_ltvView","","WT.z_ltvPlay",
"1","WT.z_ltvFinished","","DCSext.VideoPlay",b);break;case "WT.z_ltvProgress":dcsMultiTrack("WT.ti",b,"WT.cg_n","SC_VideoDuration","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier","","DCS.dcsuri",a,"WT.z_ltvName","Video: "+b,"WT.z_ltvView","","WT.z_ltvPlay","","WT.z_ltvFinished","","DCSext.VideoProgress",d);break;case "WT.z_ltvFinished":dcsMultiTrack("WT.ti",b,"WT.cg_n","SC_VideoDuration","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier","","DCS.dcsuri",
a,"WT.z_ltvName","Video: "+b,"WT.z_ltvView","","WT.z_ltvPlay","","WT.z_ltvFinished","1","DCSext.VideoProgress","100");break}}function setupHidden(){$("#content .hidden").hide();$("#content .foot-extend a").attr("tabindex","0").append("<i></i>").bind("click keypress",function(a){if(a.type=="keypress"&&a.which!=KEY_ENTER)return false;$(this).toggleClass("pm");$("div.hidden",$(this).parents("div.secondary")).slideToggle(1E3,function(){$(this).find("a:first").focus()})})}
function setupUserReviews(){if($("#prod-user").length){$("#prod-user .ta-full").hide();$("#prod-user .ta-summary").show();$("#prod-user .expand-this").attr("tabindex","0").empty().append(VL.copy.readRev).addClass("plus").css("display","inline").bind("click keypress",function(a){if(a.type=="keypress"&&a.which!=KEY_ENTER)return false;$(this).text()==VL.copy.readRev?$(this).text(VL.copy.hideRev).removeClass("plus").addClass("minus").siblings(".ta-full").show().siblings(".ta-summary").hide():$(this).text(VL.copy.readRev).removeClass("minus").addClass("plus").siblings(".ta-full").hide().siblings(".ta-summary").show()});
$("#expand-all").attr("tabindex","0").empty().append(VL.copy.exAllRev).addClass("plus").bind("click keypress",function(a){if(a.type=="keypress"&&a.which!=KEY_ENTER)return false;if($(this).text()==VL.copy.exAllRev){$(this).text(VL.copy.hideAllRev).removeClass("plus").addClass("minus");$("#prod-user .ta-full").show();$("#prod-user .ta-summary").hide();$("#prod-user .expand-this").removeClass("plus").addClass("minus").text(VL.copy.hideRev)}else{$(this).text(VL.copy.exAllRev).removeClass("minus").addClass("plus");
$("#prod-user .ta-full").hide();$("#prod-user .ta-summary").show();$("#prod-user .expand-this").removeClass("minus").addClass("plus").text(VL.copy.readRev)}})}}
function externalLinks(){var a=/^https?\:\/\/[a-z0-9\-]*.?visitlondon\.com/,b=/(web[1234]|preview|vl\-dev\-web1)/;$("a[href^='http']").filter(function(){return!a.test($(this).attr("href"))}).filter(function(){return!b.test($(this).attr("href"))}).add("a.ext, a[href$='mp3'], a[href$='pdf'], a[href$='doc']").not(".gallery").not(".map-pop").attr("title","Link will open in a new window").not("a.pop").attr("target","_blank");$("#content a[href^='http']").filter(function(){return!a.test($(this).attr("href"))}).filter(function(){return!b.test($(this).attr("href"))}).add("#content a.ext, #content a[href$='mp3'], #content a[href$='pdf'], #content a[href$='doc']").not(".advert a").not(".yedda a").not(".button").not(".gallery").not(".map-pop").not(".noicon").append('<img src="http://vlstatic.com/images/icons/external-links.gif" alt=""  width="16" height="11" />');
$("#content a[href$='.mp3']").after(function(){return" (Right click to download) "});$("#content a.pop").click(function(){window.open($(this).attr("href"),"","width=350,height=400,location=no,scrollbars=yes");return false})}
function hoverBox(a,b){var c=b.split(","),d;if(c[0]>386){d=547-parseInt(c[0],10);$("#venPop"+a).css("right",d+"px")}else{d=parseInt(c[0],10)+11;$("#venPop"+a).css("left",d+"px")}if(c[1]<120){c=parseInt(c[1],10)-11;$("#venPop"+a).css("top",c+"px")}else{c=525-parseInt(c[1],10);$("#venPop"+a).css("bottom",c+"px")}$("#venPop"+a).show("slow")}function closeHoverBox(a){$("#venPop"+a).hide("slow")}
function hideTabs(){$("#content .tabcnt").hide().attr("aria-hidden","true");$("#content .tablnk").attr("tabindex","-1");$("#header .current").removeClass("current");$("#header .before-current").removeClass("before-current")}
function showtab(a){if(VL.util.isNumber(a)){hideTabs();$("#header li:eq("+a+")").addClass("current").prev().addClass("before-current")}else if(a&&a!==""){hideTabs();$("#header #"+a+"-tab").addClass("current").prev().addClass("before-current")}a=$("#header .current").attr("id").replace("-tab","");$("#header .current .tablnk").attr("tabindex","0");$("#"+a).show().removeAttr("aria-hidden");a=="prod-user"&&dcsMultiTrack("WT.cg_n","SC_ReviewRead","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier",
"","DCS.dcsuri","/reviews/"+VL.pageTitle,"WT.ti",VL.pageTitle,"WT.z_ltvQAA","","DCSext.ReviewRead",VL.pageTitle)}function tabKeys(a){var b=$("#header .current").index(),c=$("#header li").length,d=a.which,f=true,g=true;a=a.altKey;var j=0;if((d==KEY_LEFT||d==KEY_RIGHT)&&!a){f=false;if(d==KEY_RIGHT)j=1;else if(d==KEY_LEFT)j=-1}else g=false;if(g===true){b=+b+j;if(b==c||b<0)g=false;g===true&&showtab(b)}return f}
function setupTabs(){var a=$("#header .tablnk"),b=$("#content .tabcnt");if(a.length&&b.length){$("#header ul").attr("role","tablist").keydown(function(c){tabKeys(c)});a.filter(":last").addClass("last");b.hide().attr("role","tabpanel").attr("aria-hidden","true");a.attr("tabindex","-1");a.attr("role","tab").css("cursor","pointer").click(function(){hideTabs();$(this).parent().addClass("current").prev().addClass("before-current");showtab();return false});showtab()}}
function changeMultiPanel(a){var b=$("#selector-window > div"),c=$("#selector-window > div:eq("+a+")"),d=c.find("a"),f=c.attr("id"),g=c.attr("title");if(c.is(":visible"))window.location=d.attr("href");else{$("#selector-controls .current").removeClass("current");if($("#fwms").length){b.hide().attr("aria-hidden","true");c.fadeIn(500).removeAttr("aria-hidden");d.css("bottom",function(){return"-"+($(this).height()+22)+"px"}).animate({bottom:0},500)}else{b.fadeOut(1E3);c.fadeIn(1E3)}$("#selector-controls li:eq("+
a+")").addClass("current").attr("tabindex","0").focus();dcsMultiTrack("WT.cg_n","","WT.cg_s","","WT.mc_id","","DCS.dcsuri","/js/msclick/"+f,"WT.z_ltvName","MultiSelector: "+g,"WT.z_ltvView","1","WT.ti","MultiSelector: "+g)}}
function multiPanelKeys(a){var b=$("#selector-controls .current").index(),c=$("#selector-controls li").length,d=a.which,f=true,g=true;a=a.altKey;var j=0;if((d==KEY_LEFT||d==KEY_RIGHT)&&!a){f=false;if(d==KEY_RIGHT)j=1;else if(d==KEY_LEFT)j=-1}else g=false;if(g===true){b=+b+j;if(b==c||b<0)g=false;g===true&&changeMultiPanel(b)}return f}
function setupMultiPanel(){var a=$("#selector-panel"),b=$("#selector-window > div"),c=$("#fwms"),d,f,g;if(!(VL.hasSetupMultiPanel===true||a.length===0))if(b.length<2)$("#fwms #selector-panel").css("height","auto");else{a.append('<ul id="selector-controls"></ul>');g=$("#selector-controls");g.attr("role","tablist").keydown(function(j){multiPanelKeys(j)});b.hide().attr("role","tabpanel").css({position:"absolute",top:"0px",left:"0px"}).each(function(){d=c.length?$(this).find("a strong").text():this.title;
g.append("<li>"+d+"</li>")});f=$("#selector-controls li");f.attr("tabindex","-1").attr("role","tab").bind("click keypress",function(j){if(j.type=="keypress"&&j.which!=KEY_ENTER)return false;else{j=f.index(this);changeMultiPanel(j)}});if($.browser.msie||$.browser.opera)f.append('<i class="br"></i><i class="bl"></i>');VL.hasSetupMultiPanel=true;if($("#selector-panel").hasClass("rotate-true"))$("#selector-controls li:eq("+VL.currentDate.getDate()%4+")").click();else(VL.currentDate.getDay()===0||VL.currentDate.getDay()==
6)&&!$("#selector-window>div:eq(0)").hasClass("vlSnTeaserSuperheroSweeps")?$("#selector-controls li:eq(1)").click():$("#selector-controls li:eq(0)").click()}}function topmenuClear(){$("#topmenu .over").removeClass("over");VL.$tier1Nav.removeClass("fade")}function getMaxDay(a,b){if(a=="4"||a=="6"||a=="9"||a=="11")return 30;if(a=="2"){if(VL.util.leapYear(b))return 29;return 28}return 31}
function getMinDay(a,b){return a==VL.currentDate.getMonth()+1&&b==VL.currentDate.getFullYear()?VL.currentDate.getDate():1}
function checkMonths(a,b,c){if(!b||b==="")b=0;if(!c||c==="")c="search";var d=$("#"+c+" select[name="+a+".month-year]").get(0);a=$("#"+c+" select[name="+a+".day]").get(0);if(d.options[d.selectedIndex].value==="")return false;d=d.options[d.selectedIndex].value.split("-");var f=parseInt(d[0],10),g=parseInt(d[1],10);d=a.options[a.selectedIndex].value;c=getMaxDay(f,g);for(f=getMinDay(f,g);a.length>b;)a.remove(b);for(g=f;g<=c;g++){var j=g-f+b,e=false;if(g==d)e=true;a.options[j]=new Option(g,g,false,e)}}
function checkDates(a,b,c,d){if(!b||b==="")b=0;if(!c||c==="")c="search";var f=document.getElementById(c),g,j,e;if(f.elements["from.month-year"]&&f.elements["to.month-year"]){g=f.elements["to.month-year"];j=f.elements["from.month-year"];e=f.elements["to.day"];f=f.elements["from.day"];if(b==1&&(g.selectedIndex===0||j.selectedIndex===0))return false;if(g.selectedIndex<j.selectedIndex||g.selectedIndex==j.selectedIndex&&e.selectedIndex<=f.selectedIndex)if(d===0)if(a=="from"){g.selectedIndex=j.selectedIndex;
checkMonths("to",b,c);e.selectedIndex=f.selectedIndex}else{if(a=="to"){j.selectedIndex=g.selectedIndex;checkMonths("from",b,c);f.selectedIndex=e.selectedIndex}}else if(a=="from")if(f.selectedIndex==f.length-1){g.selectedIndex=j.selectedIndex+1;checkMonths("to",b,c);e.selectedIndex=0}else{g.selectedIndex=j.selectedIndex;checkMonths("to",b,c);e.selectedIndex=f.selectedIndex+1}else if(a=="to")if(e.selectedIndex===0)if(g.selectedIndex!==0){j.selectedIndex=g.selectedIndex-1;checkMonths("from",b,c);f.selectedIndex=
f.length-1}else{j.selectedIndex=g.selectedIndex;checkMonths("from",b,c);f.selectedIndex=0;e.selectedIndex=1}else{j.selectedIndex=g.selectedIndex;checkMonths("from",b,c);f.selectedIndex=e.selectedIndex-1}}}
function getDatePeriod(a){var b=new Date,c=new Date,d,f,g,j,e;b.setTime(VL.currentDate.getTime());c.setTime(VL.currentDate.getTime());if(a&&$("#"+a+" .d6nDD").length)d=$("#"+a+" .d6nDD").val();else if(a&&$("#"+a+" input[name=d6nRB]").length)d=$("#"+a+" input[name=d6nRB]:checked").val();else if($("#days-ahead").length)d=$("#days-ahead").val();if(a&&($("#"+a+" .d6nDD").length||$("#"+a+" input[name=d6nRB]").length)){f=$("#"+a+" input[name='from.day']");g=$("#"+a+" input[name='from.month-year']");j=$("#"+
a+" input[name='to.day']");e=$("#"+a+" input[name='to.month-year']")}else{f=$("#from-day-h");g=$("#from-month-year-h");j=$("#to-day-h");e=$("#to-month-year-h")}a=parseInt(d,10);if(VL.util.isNumber(a)){b.setDate(VL.currentDate.getDate()+1);c.setDate(VL.currentDate.getDate()+a)}else switch(d){case "Today":break;case "This Weekend":switch(VL.currentDate.getDay()){case 0:break;case 1:b.setDate(VL.currentDate.getDate()+5);c.setDate(VL.currentDate.getDate()+6);break;case 2:b.setDate(VL.currentDate.getDate()+
4);c.setDate(VL.currentDate.getDate()+5);break;case 3:b.setDate(VL.currentDate.getDate()+3);c.setDate(VL.currentDate.getDate()+4);break;case 4:b.setDate(VL.currentDate.getDate()+2);c.setDate(VL.currentDate.getDate()+3);break;case 5:b.setDate(VL.currentDate.getDate()+1);c.setDate(VL.currentDate.getDate()+2);break;case 6:c.setDate(VL.currentDate.getDate()+1);break}break;case "Next Weekend":switch(VL.currentDate.getDay()){case 0:b.setDate(VL.currentDate.getDate()+13);c.setDate(VL.currentDate.getDate()+
14);break;case 1:b.setDate(VL.currentDate.getDate()+12);c.setDate(VL.currentDate.getDate()+13);break;case 2:b.setDate(VL.currentDate.getDate()+11);c.setDate(VL.currentDate.getDate()+12);break;case 3:b.setDate(VL.currentDate.getDate()+10);c.setDate(VL.currentDate.getDate()+11);break;case 4:b.setDate(VL.currentDate.getDate()+9);c.setDate(VL.currentDate.getDate()+10);break;case 5:b.setDate(VL.currentDate.getDate()+8);c.setDate(VL.currentDate.getDate()+9);break;case 6:b.setDate(VL.currentDate.getDate()+
7);c.setDate(VL.currentDate.getDate()+8);break}break;case "Tomorrow":b.setDate(VL.currentDate.getDate()+1);c.setDate(VL.currentDate.getDate()+1);break;case "Next Month":b.setDate(VL.currentDate.getDate()+1);c.setMonth(VL.currentDate.getMonth()+6);break;case "Next 3 Months":b.setDate(VL.currentDate.getDate()+1);c.setMonth(VL.currentDate.getMonth()+3);break;case "Next 6 Months":b.setDate(VL.currentDate.getDate()+1);c.setMonth(VL.currentDate.getMonth()+6);break;case "Next Year":b.setDate(VL.currentDate.getDate()+
1);c.setFullYear(VL.currentDate.getFullYear()+1);break;default:c=b=null;break}if(b!==null){f.val(b.getDate());g.val(b.getMonth()+1+"-"+b.getFullYear())}else{f.val("");g.val("")}if(c!==null){j.val(c.getDate());e.val(c.getMonth()+1+"-"+c.getFullYear())}else{j.val("");e.val("")}}
function checkRooms(a){if(!a||a==="")a="search";var b=$("form.headlineSearch"),c=$("form.headlineSearch #roomsData-lp"),d=$("#"+a+" select[name=roomsNum]"),f,g,j,e,h;switch(a){case "lpsearch":f="lp";break;case "pdsearch":f="pd";break;case "assearch":f="as";break;case "search":f="sb";break}a=$("#r2-"+f);e=$("#r3-"+f);h=$("#r2-"+f+" select");f=$("#r3-"+f+" select");if(c.length){j=b.height();g=c.height()}switch(d.val()){case "1":a.hide();h.attr("disabled","disabled");e.hide();f.attr("disabled","disabled");
break;case "2":a.show();h.removeAttr("disabled");e.hide();f.attr("disabled","disabled");break;case "3":a.show();h.removeAttr("disabled");e.show();f.removeAttr("disabled");break}if(c.length){c=c.height();g=j-g+c;b.height(g)}}
function getTotal(a){var b=0;$("#"+a+" input:radio:checked").length>0&&$("#"+a+" tr.currentRoom").removeClass("currentRoom");$("#"+a+" input:radio:checked").each(function(){$(this).parents("tr").addClass("currentRoom");$(this).parent("td").hasClass("pc")&&$(this).parents("tr").prev().addClass("currentRoom");b+=+$(this).attr("class")});$("#partyprice-"+a+", .partyprice-"+a).html(VL.copy.totalPrice+" \u00a3"+b.toFixed(2))}
(function(a){a.fn.dynamicSelect=function(){return this.filter("select").each(function(){var b=this.id,c=b+"-s1",d=b+"-s2",f=a(this);a(this).parent().append('<select id="'+c+'" class="'+this.className+'"></select><br/><select id="'+d+'" name="'+this.name+'" class="'+this.className+'"></select>');var g=a("#"+c),j=a("#"+d);a(this).children("option:first").clone().appendTo(g);a(this).children("optgroup").each(function(){var e="";if(f.find("option:selected").parent("optgroup").attr("id")==this.id)e='selected="selected"';
g.append('<option value="'+this.id+'" '+e+">"+this.label+"</option>")});g.change(function(){var e=a("#"+c+" option:selected").val(),h="#"+b+" optgroup#"+e;j.empty().attr("disabled","disabled");if(e===""||a(h).size()===0)j.append('<option value="">'+VL.copy.pleaseChoose+"</option>");else{a(h+" option").clone().appendTo(j);e=VL.copy.all+j.children("option:first").text();j.children("option:first").text(e);h=a(h+" option:selected").val();j.children("option[value="+h+"]").attr("selected","selected");j.removeAttr("disabled")}}).trigger("change");
f.hide().removeAttr("name").removeClass("adv").find("option:selected").removeAttr("selected")})}})(jQuery);function toggleOptions(a,b){if(a.length==1&&b.length==1){a.hide().removeClass("current-option");a.find(".adv").attr("disabled","disabled");b.show().addClass("current-option");b.find(".adv").removeAttr("disabled");b.find(".fTrg").size()>0&&b.find(".fTrg").get(0).focus()}}
(function(a){a.fn.configureSearch=function(){if(VL.sb.searchToggle=="simple"){VL.sb.$as.hide();VL.sb.$asl.text(VL.copy.moreOptions).addClass("plus").removeClass("minus");VL.sb.$asf.attr("disabled","disabled");VL.sb.searchToggle="advanced"}else{VL.sb.$as.show();VL.sb.$asf.removeAttr("disabled");VL.sb.$GL.hasClass("current-option")?toggleOptions(VL.sb.$GA,VL.sb.$GL):toggleOptions(VL.sb.$GL,VL.sb.$GA);VL.sb.$DP.hasClass("current-option")?toggleOptions(VL.sb.$DS,VL.sb.$DP):toggleOptions(VL.sb.$DP,VL.sb.$DS);
VL.sb.$asl.text(VL.copy.fewerOptions).addClass("minus").removeClass("plus");VL.sb.searchToggle="simple"}}})(jQuery);
$.fn.setupSearch=function(){return this.each(function(){if(typeof this.id!="undefined"&&this.id.length>1){var a=this.id;if(location.pathname.indexOf("/accommodation/")!=-1&&a!="lpsearch"&&a!="assearch"){$("#"+a+" select[name='from.month-year']").length==1&&checkMonths("from",0,a);$("#"+a+" select[name='to.month-year']").length==1&&checkMonths("to",0,a)}else{if(a!="lpsearch"){$("#"+a+" select[name='from.month-year']").length==1&&checkMonths("from",0,a);$("#"+a+" select[name='to.month-year']").length==
1&&checkMonths("to",1,a)}$("#days-ahead").removeAttr("name").change(function(){getDatePeriod(a)});$("#days-ahead option:eq(1)").after('<option value="This Weekend">This Weekend</option><option value="Next Weekend">Next Weekend</option>').before('<option value="Today">Today</option>')}if(a=="search"||a=="assearch"){VL.sb.$DS=$("#sbDateSpecific");VL.sb.$DP=$("#sbDatePeriod");VL.sb.$DP.append('<span class="note"><a class="toggle-link">'+VL.copy.orDates+"</a></span>");$("#sbDatePeriod a.toggle-link").click(function(){toggleOptions(VL.sb.$DP,
VL.sb.$DS)});VL.sb.$DS.append('<span class="note"><a class="toggle-link">'+VL.copy.orPeriod+"</a></span>");$("#sbDateSpecific a.toggle-link").click(function(){toggleOptions(VL.sb.$DS,VL.sb.$DP)})}a=="assearch"&&toggleOptions(VL.sb.$DS,VL.sb.$DP);if(a=="search"){VL.sb.$GL=$("#sbGeoLocation");VL.sb.$GA=$("#sbGeoArea");VL.sb.$as=$("#search div.advanced-search fieldset").addClass("advanced");VL.sb.$as=$("#search div.advanced-search fieldset.advanced");$("#search div.advanced-search").append('<fieldset><a id="advanced-search-link" class="plus"></a></fieldset>');
VL.sb.$asl=$("#advanced-search-link");VL.sb.$asf=$("#search .adv");VL.sb.$asl.click(function(){$("#search").configureSearch()});VL.sb.$GL.append('<span class="note"><a class="toggle-link">'+VL.copy.orArea+"</a></span>");$("#sbGeoLocation a.toggle-link").click(function(){toggleOptions(VL.sb.$GL,VL.sb.$GA)});VL.sb.$GA.append('<span class="note"><a class="toggle-link">'+VL.copy.orPostcode+"</a></span>");$("#sbGeoArea a.toggle-link").click(function(){toggleOptions(VL.sb.$GA,VL.sb.$GL)});$("#search").configureSearch()}}})};
function setupAcc(a){if(!a||a==="")a="search";var b=new Image,c=new Image;b.src="http://vlstatic.com/images/explorer-map/white.png";c.src="http://vlstatic.com/assets/interstitial-2010-city-guide.png";$("select[name=roomsNum]").change(function(){checkRooms(a)});$("#"+a+" .room select[name=adults] option[value=0]").remove();checkRooms(a);a=="search"&&document.getElementById("search-summary")&&$("#search").hide()}
function searchOverlay(){$("body").append('<div id="search-overlay" class="search-overlay"><br/></div>').unload(function(){$.browser.msie&&$("applet","iframe","select","embed","object").css("visibility","visible");$("#search-overlay").remove()});if($.browser.mozilla)$("#search-overlay").empty().append('<img src="http://vlstatic.com/assets/interstitial-2010-city-guide.png" alt="" width="748" height="496"/>');else{$("#search-overlay").flashembed({src:"http://static.visitlondon.com/assets/interstitial-2010-city-guide.swf",
width:"754",height:"502",play:"true",wmode:"transparent",version:[8,0]});flashembed.isSupported([8,0])||$("#search-overlay").empty().append('<img src="http://vlstatic.com/assets/interstitial-2010-city-guide.png" alt="" width="748" height="496"/>');$.browser.msie&&$("applet","iframe","select","embed","object").css("visibility","hidden")}}
function smsOverlay(){$("body").append('<div id="sms-overlay" class="search-overlay"><br/></div>').unload(function(){$.browser.msie&&$("applet","iframe","select","embed","object").css("visibility","visible");$("#sms-overlay").remove()});$.browser.msie&&$("applet","iframe","select","embed","object").css("visibility","hidden");$("body").append('<div id="sms-panel" class="panel secondary"><div class="panel"><h2><img src="http://vlstatic.com/images/grey-close.png" alt="Close" id="sms-box-close"/>Send Details to my Mobile Phone</h2><div class="panel-middle"><iframe id="adiqRemoteFrame" scrolling="no" allowtransparency="true" width="100%" height="100%" src="'+
$("#pageMeta .sms a").attr("href")+'" frameborder="0"></iframe></div></div>');$("#sms-box-close").click(function(){$("#sms-panel, #sms-overlay").remove();return false})}
function validateAccSearch(a){var b="",c=new Date,d=new Date,f=$(a).find("select[name='from.day']").length==1?$(a).find("select[name='from.day']").val():$(a).find("input[name='from.day']").val(),g=$(a).find("select[name='from.month-year']").length==1?$(a).find("select[name='from.month-year']").val():$(a).find("input[name='from.month-year']").val(),j=parseInt(g.split("-")[0],10);g=parseInt(g.split("-")[1],10);var e=$(a).find("select[name='to.day']").length==1?$(a).find("select[name='to.day']").val():
$(a).find("input[name='to.day']").val(),h=$(a).find("select[name='to.month-year']").length==1?$(a).find("select[name='to.month-year']").val():$(a).find("input[name='to.month-year']").val();a=parseInt(h.split("-")[0],10);h=parseInt(h.split("-")[1],10);var i=getMaxDay(j,g),k=getMaxDay(a,h);c.setFullYear(g,j-1,f);d.setFullYear(h,a-1,e);if(i<f)b+="Your check-in date doesn't exist! \n";if(k<e)b+="Your check-out date doesn't exist! \n";if(c.getTime()<VL.currentDate.getTime())b+="Your check-in date must not be in the past \n";
if(d.getTime()<c.getTime())b+="Your check-out date must be after your check-in date \n";if(b!=""){alert(b);return false}else{searchOverlay();return true}}
function numberTrips(){var a;$("#trips fieldset").each(function(b){a=b+1;$(this).children("h3").text(VL.copy.trip+" "+a)});$("#trips-count").val(a);$("#trips fieldset").length==10?$("#addButton, #tripsControls span").hide():$("#addButton, #tripsControls span").show();$("#trips fieldset").length==1?$("#trips div.remove").hide():$("#trips div.remove").show()}
function trackTrips(){var a=[];$("#trips fieldset").each(function(){startMonth=$(this).find("select:eq(1)").val()<10?"0"+$(this).find("select:eq(1)").val():$(this).find("select:eq(1)").val();endMonth=$(this).find("select:eq(4)").val()<10?"0"+$(this).find("select:eq(4)").val():$(this).find("select:eq(4)").val();dcsMultiTrack("DCS.dcsuri","/TripInfo/AddTripInfo","WT.ti","Trip Info Added","WT.cg_n","SC_AddTripCount","WT.cg_s","","DCSext.AddTripCount",a.length,"DCSext.TripStart",$(this).find("select:eq(0)").val()+
""+startMonth+""+$(this).find("select:eq(2)").val(),"DCSext.TripEnd",$(this).find("select:eq(3)").val()+""+endMonth+""+$(this).find("select:eq(5)").val())})}
function validateTrips(){var a="";$("#trips fieldset").each(function(b){b=b+1;var c;if($(this).find("input.textbox").val()=="")a+=VL.copy.errorTripNoName(b)+"\n";if($(this).find("select:eq(0)").val()==""||$(this).find("select:eq(1)").val()==""||$(this).find("select:eq(2)").val()=="")a+=VL.copy.errorTripNoArrival(b)+"\n";if($(this).find("select:eq(3)").val()==""||$(this).find("select:eq(4)").val()==""||$(this).find("select:eq(5)").val()=="")a+=VL.copy.errorTripNoDeparture(b)+"\n";c=new Date($(this).find("select:eq(2)").val(),
$(this).find("select:eq(1)").val()-1,$(this).find("select:eq(0)").val());if((new Date($(this).find("select:eq(5)").val(),$(this).find("select:eq(4)").val()-1,$(this).find("select:eq(3)").val())).getTime()<c.getTime())a+=VL.copy.errorTripNoAfter(b)+"\n";if($(this).find("input:checkbox:checked").length===0)a+=VL.copy.errorTripNoReason(b)+"\n"});if(a!=""){alert(a);return false}else return true}
function validateTrip(a){var b="",c;if($(a).find("input.textbox").val()=="")b+=VL.copy.errorTripThisName+"\n";if($(a).find("select:eq(0)").val()==""||$(a).find("select:eq(1)").val()==""||$(a).find("select:eq(2)").val()=="")b+=VL.copy.errorTripThisArrival+"\n";if($(a).find("select:eq(3)").val()==""||$(a).find("select:eq(4)").val()==""||$(a).find("select:eq(5)").val()=="")b+=VL.copy.errorTripThisDeparture+"\n";c=new Date($(a).find("select:eq(2)").val(),$(a).find("select:eq(1)").val()-1,$(a).find("select:eq(0)").val());
if((new Date($(a).find("select:eq(5)").val(),$(a).find("select:eq(4)").val()-1,$(a).find("select:eq(3)").val())).getTime()<c.getTime())b+=VL.copy.errorTripThisAfter+"\n";if(b!=""){alert(b);return false}else return true}function checkDeleteTrip(a){return confirm(VL.copy.removeTrip(a))}
function changeTicMap(a){var b={mapSrc:"http://vlstatic.com/assets/maps/tourist_information/",mapAlt:"Map showing location of Tourist Information Centers and Community Wardens in ",mapMap:""};switch(a){case "north":b.mapSrc+="north-large.gif";b.mapAlt+="North London";b.mapMap="#ticMapNorth";break;case "south":b.mapSrc+="south-large.gif";b.mapAlt+="South London";b.mapMap="#ticMapSouth";break;case "east":b.mapSrc+="east-large.gif";b.mapAlt+="East London";b.mapMap="#ticMapEast";break;case "west":b.mapSrc+=
"west-large.gif";b.mapAlt+="West London";b.mapMap="#ticMapWest";break;case "central":b.mapSrc+="central-large.gif";b.mapAlt+="Central London";b.mapMap="#ticMapCentral";break;case "all":b.mapSrc+="overview-large.gif";b.mapAlt+="London";b.mapMap="#ticMapAll";break}$("#ticMap").attr({src:b.mapSrc,alt:b.mapAlt,useMap:b.mapMap})}
function repoMap(a){var b,c,d=$("#venueMap").offset(),f="http://maps.visitlondon.com/?",g,j,e,h,i=$("#venueMap").attr("src").split(/[\?\&]/);for(b=1;b<i.length;b++)if(i[b].indexOf("x=")==-1&&i[b].indexOf("y=")==-1&&i[b].indexOf("arrow=")==-1)f+=i[b]+"&";for(b=0;b<i.length;b++){if(i[b].indexOf("x=")===0)g=i[b].substring(2);if(i[b].indexOf("y=")===0)j=i[b].substring(2);if(i[b].indexOf("scale=")===0)e=i[b].substring(6);if(i[b].indexOf("w=")===0)c=i[b].substring(2);if(i[b].indexOf("h=")===0)h=i[b].substring(2)}b=
1.333/+e;c=Math.floor(a.pageX-Math.floor(d.left)-+c/2);a=Math.floor(+h/2-(a.pageY-Math.floor(d.top)));f+="x="+(+g+Math.floor(c*b))+"&y="+(+j+Math.floor(a*b));$("#venueMap").attr("src",f)}
function zoomMap(a){var b,c,d,f="http://maps.visitlondon.com/?",g=$("#venueMap").attr("src").split(/[\?\&]/),j=[1,0.711,0.5,0.356,0.237,0.178,0.119];for(b=0;b<g.length;b++)if(g[b].indexOf("scale=")===0)c=g[b].substring(6);for(b=0;b<j.length;b++)if(j[b]==c){d=b;break}if(a=="up"&&d!==0)a=+d-1;else if(a=="down"&&d!=6)a=+d+1;else return false;for(b=1;b<g.length;b++)if(g[b].indexOf("scale=")==-1)f+=g[b]+"&";f+="scale="+j[a];$("#venueMap").attr("src",f)}
function scrollMap(a){var b,c=0,d=0,f="http://maps.visitlondon.com/?",g=$("#venueMap").attr("src").split(/[\?\&]/);for(b=0;b<g.length;b++)if(g[b].indexOf("offset-x")!=-1)c=g[b].substring(9);else if(g[b].indexOf("offset-y")!=-1)d=g[b].substring(9);switch(a){case "n":c=c;d=+d+500;break;case "e":c=+c+500;d=d;break;case "w":c=+c-500;d=d;break;case "s":c=c;d=+d-500;break;case "ne":c=+c+500;d=+d+500;break;case "nw":c=+c-500;d=+d+500;break;case "se":c=+c+500;d=+d-500;break;case "sw":c=+c-500;d=+d-500;break;
default:c=c;d=d}for(b=1;b<g.length;b++)if(g[b].indexOf("offset-x")==-1&&g[b].indexOf("offset-y")==-1)f+=g[b]+"&";f+="offset-x="+c+"&offset-y="+d;$("#venueMap").attr("src",f);dcsMultiTrack("WT.cg_n","","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier","","DCS.dcsuri","/js/map/scroll/"+a,"WT.ti","Map: Scroll "+a,"WT.z_ltvName","Map: "+VL.pageTitle,"WT.z_ltvScrollMap","1","WT.z_ltvZoomIn","","WT.z_ltvZoomOut","")}
function setupMap(){if($("#productMap").length){$("#productMap").append('<img class="nw" src="http://vlstatic.com/images/explorer-map/map-arrow-nw.gif" alt="'+VL.copy.mapNW+'" width="15" height="16"/><img class="n" src="http://vlstatic.com/images/explorer-map/map-arrow-n.gif" alt="'+VL.copy.mapN+'" width="21" height="11"/><img class="ne" src="http://vlstatic.com/images/explorer-map/map-arrow-ne.gif"  alt="'+VL.copy.mapNE+'" width="15" height="16"/><img class="w" src="http://vlstatic.com/images/explorer-map/map-arrow-w.gif" alt="'+
VL.copy.mapW+'" width="18" height="21"/><img class="e" src="http://vlstatic.com/images/explorer-map/map-arrow-e.gif" alt="'+VL.copy.mapE+'" width="18" height="21"/><img class="sw" src="http://vlstatic.com/images/explorer-map/map-arrow-sw.gif" alt="'+VL.copy.mapSW+'" width="15" height="16"/><img class="s" src="http://vlstatic.com/images/explorer-map/map-arrow-s.gif" alt="'+VL.copy.mapS+'" width="21" height="11"/><img class="se" src="http://vlstatic.com/images/explorer-map/map-arrow-se.gif" alt="'+
VL.copy.mapSE+'" width="15" height="16"/>');$("#productMap > img").css("cursor","pointer").click(function(){scrollMap(this.className)});$("#venueMap").css("cursor","pointer").click(function(a){repoMap(a)}).attr("title","Click to reposition the map. \nUse the + and - keys or the mouse wheel to zoom the map.");$(document).keypress(function(a){if(a.which==43||a.which==64)zoomMap("up");else a.which==45&&zoomMap("down")});$("#venueMap").mousewheel(function(a,b){if(b>0)zoomMap("up");else b<0&&zoomMap("down");
return false})}}
$(document).ready(function(){$.browser.msie&&$("body").addClass("isIE");$.browser.opera&&$("body").addClass("isOp");$.browser.safari&&$("body").addClass("isWk");VL.pageTitle=$("h1:first").text();VL.$tier1Nav=$("#topmenu .current");VL.$tier1NavID=VL.$tier1Nav.attr("id");VL.hasSetupMultiPanel=false;VL.sb={};VL.sb.searchToggle=location.pathname.indexOf("/search")!=-1||location.pathname.indexOf("/area/")||location.pathname.indexOf("/tag/")||location.pathname.indexOf("/category/")?"advanced":"simple";
$("#topmenu > li").hover(function(){clearTimeout(VL.navTimer);topmenuClear();$(this).addClass("over");$(this).find(":first").addClass("over");$(this).attr("id")!=VL.$tier1NavID&&VL.$tier1Nav.addClass("fade")},function(){VL.navTimer=setTimeout(topmenuClear,2E3)});$("#foot ul#lang-list").clone().attr("id","headLangList").appendTo("#head").after("<img id='headLangPointer' alt='' width='8' height='4' src='http://vlstatic.com/images/head/lang-pointer.gif'/>");var a=$("#headLangList, #headLangPointer");
a.hide().click(function(b){b.stopPropagation()});$("#head .flag").toggle(function(){a.show()},function(){a.hide()});$("#takeover").click(function(){a.hide()});setupMultiPanel();setupTabs();setupHidden();setupUserReviews();externalLinks();$("img.rollover, input.rollover, a.rollover img").hover(function(){var b=$(this).attr("src");$(this).attr("src",b.replace("-off.","-on."))},function(){var b=$(this).attr("src");$(this).attr("src",b.replace("-on.","-off."))});$(".media img.pimage:odd").addClass("lcol");
$(".innerTopTable+.media").addClass("withTT");$("a.gallery, .gallery-icon a").lightBox();$("a.map-pop").lightBox({overlayClassName:"mapOverlay",overlayBgColor:"#FFF"});if(window.print){$("#addPrint").html('<a href="#" onclick="window.print(); return false;">'+VL.copy.printPage+"</a>");$("#pageMeta #BreadCrumbs").after('<span class="printer"><a href="#" onclick="window.print(); return false;">'+VL.copy.print+"</a></span>")}$.browser.msie&&$("#addBook").html('<a href="#" onclick="window.external.AddFavorite(window.location.href,document.title);return false;">'+
VL.copy.bookmarkPage+"</a>");$("#pageMeta .sms a, #sms-cta a.button").click(function(){smsOverlay();return false});$("form.acc-booking").each(function(){var b=this.id;getTotal(b);$("#"+b+" :radio").click(function(){getTotal(b)})});$("#book-offer-tac").hide();$("#book-offer-tacLink").click(function(){$("#book-offer-tac").show().addClass("dynamic");return false});$("#book-offer-tac h3").prepend('<a href="#book-offer-tacLink" id="book-offer-tacClose">close <img src="http://vlstatic.com/images/accommodation/close.png" alt="" /></a>');
$("#book-offer-tacClose").click(function(){$("#book-offer-tac").hide();return false});$("#dynForm").hide().after('<div id="dynLink"><a>Do you want to see the prices and availability for different dates or rooms?</a></div>');$("#dynLink a").css("pointer","cursor").toggle(function(){$("#dynForm").show();$(this).text("Hide search form")},function(){$("#dynForm").hide();$(this).text("Do you want to see the prices and availability for different dates or rooms?")});$("form.headlineSearch h2").css("cursor",
"pointer").click(function(){$(this).closest("form").submit()});$("#refine-regions").dynamicSelect();$("#regions").dynamicSelect();$("#sections").dynamicSelect();$("form[id*=search]").setupSearch();$(".headlineSearch input, .headlineSearch select").focus(function(){$(".headlineSearch fieldset").removeClass("highlight");$(this).closest("fieldset").addClass("highlight")});setupMap();$(".explorer .results li").each(function(b){var c=b+1;b="cat"+c;var d="pic"+c;c='<div id="venPop'+c+'" class="popBox"><b>'+
$(this).children("h3").children("a").text()+"</b><br />";if(document.getElementById(b))c+=document.getElementById(b).innerHTML+"<br />";if(document.getElementById(d))c+=document.getElementById(d).innerHTML;c+="</div>";$("#mapInner").append(c)});$("#mapInner area").hover(function(){hoverBox(this.tabIndex,this.coords)},function(){closeHoverBox(this.tabIndex)});drawTV();$("#mapVillages").flashembed({src:"http://static.visitlondon.com/assets/areas/villages/interactive-map.swf",width:$.browser.msie?"950":
"565",height:"564",play:"true",wmode:"transparent",version:[8,0]});$.browser.msie&&$("#mapVillages").css("left","-191px");$("#jpf").flashembed({src:"http://static.visitlondon.com/fl/flash/jp/japan-video-player.swf",width:"540",height:"353",play:"true",wmode:"transparent",version:[8,0]});$("#personaFlash").flashembed({src:"http://static.visitlondon.com/assets/people/persona-animation/persona-slot.swf",width:"174",height:"131",play:"true",wmode:"transparent",version:[8,0]});$(".ytvideo").each(function(){var b=
"http://www.youtube.com/v/"+$(this).find(".ytid").text()+"?rel=0",c;c=$(this).find(".ytformat").text()=="16x9"?"295":"385";$(this).flashembed({src:b,width:"480",height:c,play:"true",wmode:"transparent",version:[8,0]})});$(".vimeovideo").each(function(){var b="http://vimeo.com/moogaloop.swf?clip_id="+$(this).find(".vmid").text()+"&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1";$(this).flashembed({src:b,width:"480",height:"270",height:ytH,
play:"true",wmode:"transparent",version:[8,0]})});if($.browser.msie||$.browser.opera&&$.browser.version<10.5){$("#sidebar .tools li").append("<i></i>");$("#login-reg, .tabs .panel-head, #acc-res .panel-head, .fwCols .results h3").append('<i class="tr"></i><i class="tl"></i>');$("#sidebar fieldset, #acc-res #lpsearch, #sidebar ul.sidenav, #sidebar div.dates div.date, #body .headlineSearch, #hp-search-tabs, .result-summary-bar").append('<i class="tr"></i><i class="tl"></i><i class="br"></i><i class="bl"></i>');
$("#content ul.results div.commerce").append('<b class="tr"></b><b class="tl"></b><b class="br"></b><b class="bl"></b>');$("#sidebar .xmas-side-cal div, #body .headlineSearch fieldset").append('<b class="br"></b><b class="bl"></b>')}if($.browser.msie){$(".button").addClass("wrapped").wrap('<span class="button"></span>');$(".button.right").removeClass("right").parent("span").addClass("right");$(".button.left").removeClass("left").parent("span").addClass("left");$(".button.bbook").removeClass("bbook").parent("span").addClass("bbook");
$(".button.select").removeClass("select").parent("span").addClass("select");$(".button.smallButton").removeClass("smallButton").parent("span").addClass("smallButton");$("span.button").append('<i class="tl"></i><i class="tr"></i><i class="bl"></i><i class="br"></i>');$("#sidebar fieldset span.button").append('<b class="tl"></b><b class="tr"></b><b class="bl"></b><b class="br"></b>');$.browser.msie&&$.browser.version=="6.0"&&$("input.button").siblings("i.tr, i.br").addClass("ie6RHS")}});