var VL={util:{},currentDate:new Date,keys:{ENTER:13,UP:38,DOWN:40,LEFT:37,RIGHT:39,PAGEUP:33,PAGEDOWN:34}};VL.util.isLeapYear=function(a){return 0===a%4&&(0!==a%100||0===a%400)};VL.util.html5Video=function(){return!!document.createElement("video").canPlayType};VL.util.html5VideoMP4=function(){return!VL.util.html5Video()?!1:document.createElement("video").canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')};VL.util.html5VideoOgg=function(){return!VL.util.html5Video()?!1:document.createElement("video").canPlayType('video/ogg; codecs="theora, vorbis"')};
VL.util.html5VideoWebm=function(){return!VL.util.html5Video()?!1:document.createElement("video").canPlayType('video/webm; codecs="vp8, vorbis"')};VL.util.parseBreaks=function(a){return a.replace(/[\r\n]+/g,"<br/><br/>")};VL.util.isNumber=function(a){return"number"===typeof a&&isFinite(a)};VL.util.getMaxDay=function(a,b){return"4"===a||"6"===a||"9"===a||"11"===a?30:"2"===a?VL.util.isLeapYear(b)?29:28:31};
VL.util.getMinDay=function(a,b){return a===VL.currentDate.getMonth()+1&&b===VL.currentDate.getFullYear()?VL.currentDate.getDate():1};VL.util.toggleOptions=function(a,b){1===a.length&&1===b.length&&(a.hide().removeClass("current-option"),a.find(".adv").attr("disabled","disabled"),b.show().addClass("current-option"),b.find(".adv").removeAttr("disabled"),0<b.find(".fTrg").size()&&b.find(".fTrg").get(0).focus())};
VL.setVideoColour=function(){switch(location.pathname.split("/")[1]){case "accommodation":this.colour="purplestay";break;case "attractions":this.colour="blueplaces";break;case "travel":this.colour="bluetravel";break;case "events":this.colour="yellow";break;case "areas":this.colour="orange";break;case "maps":this.colour="purplemap";break;case "people":this.colour="green";break;case "offers":this.colour="pink";break;default:this.colour="grey"}-1!==location.hostname.indexOf("traveltrade")&&(this.colour=
"bluetravel");-1!==location.hostname.indexOf("awards")&&(this.colour="purplemap")};
(function(a){a.fn.vlVideo=function(){return this.each(function(){var b,c,d,e;b=VL.setVideoColour();c=a(this).attr("data-videotranscript")?!0:!1;d=a(this).attr("data-videoid");e={play:"true",wmode:"transparent",allowFullScreen:"true",version:[8,0]};if("video"===this.id)e.width=a.browser.msie||a.browser.safari?"540":"240",e.height=a.browser.msie||a.browser.safari?"352":"184",e.src="http://static.visitlondon.com/assets/video/vl-video-player-small-metatrace.swf?xmltouse="+d+".xml&PageColour="+b,e.scale=
"noscale",e.salign="rt",b=188;else if("videolarge"===this.id)e.width="540",e.height="353",e.src="http://static.visitlondon.com/assets/video/vl-video-player-large-metatrace.swf?playerSize=SL&xmltouse="+d+".xml&PageColour="+b,b=360;else return;a(this).flashembed(e);c&&(a(this).height(b+30).append('<a id="transcriptLink" href="http://vlstatic.com/assets/video/transcripts/'+d+'.html"><img src="http://vlstatic.com/images/icons/transcript.gif" alt="" width="16" height="13"/>'+VL.copy.tltext+"</a>"),a("#transcriptLink").click(function(){window.open(this.href,
"transcript","width=600, height=550, location=no, scrollbars=yes");return!1}));a.browser.safari&&"video"===this.id&&a("#video object, #video embed").css("clip",function(){return"rect(0,540px,184px,300px)"})})}})(jQuery);function goBig(){$.browser.msie||($("#video object, #video embed").width(540).height(352),$.browser.safari&&$("#video object, #video embed").css("clip","auto"))}
function goSmall(){$.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")}}VL.setupHidden=function(){$("#content .hidden").hide();$("#content .foot-extend a").attr("tabindex","0").append("<i></i>").bind("click keypress",function(a){if("keypress"===a.type&&a.which!==VL.keys.ENTER)return!1;$(this).toggleClass("pm");$("div.hidden",$(this).parents("div.secondary")).slideToggle(1E3,function(){$(this).find("a:first").focus()})})};
VL.setupUserReviews=function(){$("#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("keypress"===a.type&&a.which!==VL.keys.ENTER)return!1;$(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("keypress"===a.type&&a.which!==VL.keys.ENTER)return!1;$(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)):($(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))}))};
VL.tripAdvisor={taExpectTypes:"Rooms,Service,Value,Cleanliness,Pool,Dining".split(","),taRecommendedTypes:"Older travelers,Young singles,Families with teenagers,Families with young children,An amazing honeymoon,Business travelers".split(","),fetchReviews:function(a){var b="http://"+window.location.host+"/api/json/venuereviews/"+a.venueId,c={},d=$("h1").text(),e="",f="",h='<div class="ta-bp"><p class="ta-rep">'+VL.copy.ta.owner+" "+d+'?<br /><a href="http://visitlondon.tripadvisor.com/OwnerResponse-m11109-g186338-d'+
a.taId+'" class="ext noicon">'+VL.copy.ta.respond+'</a></p><a class="ext noicon button" href="http://visitlondon.tripadvisor.com/UserReview-g186338-d'+a.taId+'?partnerReturnTo=[RETURNTO]">'+VL.copy.ta.writereview+'</a><p><a class="ext noicon" href="http://visitlondon.tripadvisor.com/Hotel_Review-g186338-d'+a.taId+'">'+VL.copy.ta.readmore+'</a></p><p><a href="'+VL.copy.ta.aboutlink+'">'+VL.copy.ta.about+'</a></p><p class="ta-disclaimer">'+VL.copy.ta.legal+"</p></div>";a.lang&&(c.language=a.lang);$.getJSON(b,
c,function(b){var c,g,i,l,j,m,k;if(!b.reviews.tripadvisor||0===b.reviews.tripadvisor.reviewCount)f='<div class="ta-reviews"><p><a class="ext noicon" href="http://visitlondon.tripadvisor.com/UserReview-g186338-d'+a.taId+'?partnerReturnTo=[RETURNTO]">Be the first to write a review.</a></p></div>',$("#taContainer").empty().append('<h2><img src="http://www.tripadvisor.com/img/cdsi/partner/ta-large-11109-0.gif" width="158" height="29" alt="TripAdvisor"/></h2>'+f+h);else{e='<div class="ta-meta"><h3>'+VL.copy.ta.travellerRating+
'</h3><img width="118" height="20" src="http://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/'+b.reviews.tripadvisor.medianRating;0===10*b.reviews.tripadvisor.medianRating%10&&(e+=".0");e+='-11109-1.gif" alt="'+b.reviews.tripadvisor.medianRating+'" title="'+b.reviews.tripadvisor.medianRating+" "+VL.copy.ta.outof5+'"/><br/>'+VL.copy.ta.basedon(b.reviews.tripadvisor.totalReviewCount)+'</div><span class="ta-rank">'+VL.copy.ta.ranking(b.reviews.tripadvisor.rank)+"</span>";k=[];for(i=0;i<b.reviews.tripadvisor.reviews.length;i++)c=
b.reviews.tripadvisor.reviews[i],c.parentSourceId&&k.push(c);f='<div class="ta-reviews"><h3><span id="expand-all">&#160;</span>'+VL.copy.ta.latest(b.reviews.tripadvisor.reviewCount-k.length)+" "+d+"</h3>";for(i=0;i<b.reviews.tripadvisor.reviews.length;i++)if(c=b.reviews.tripadvisor.reviews[i],!c.parentSourceId){j=i+1;g=0!==j%2?"hreview ta-alt":"hreview";g='<div id="ta-review-'+j+'" class="'+g+'"><div class="ta-review-main"><h4 class="summary">'+c.title+'</h4><div id="ta-summary-'+j+'" class="ta-summary">'+
c.summary+'</div><div id="ta-full-'+j+'" class="ta-full description"><p>'+VL.util.parseBreaks(c.body)+"</p>";for(l=0;l<k.length;l++)m=k[l],m.parentSourceId===c.sourceId&&(g+='<div class="response"><h5>'+m.title+" from "+d+"</h5>"+VL.util.parseBreaks(m.body)+"</div>");g+='</div><span id="expand-this-'+j+'" class="expand-this">&nbsp;</span></div>';g+='<div class="ta-review-meta"><img width="69" height="14" src="http://cdn.tripadvisor.com/img2/ratings/traveler/s'+c.rating+'.0.gif" alt="'+c.rating+'" title="'+
c.rating+' out of 5" /><span style="display: none" class="rating">'+VL.copy.ta.rating+" "+c.rating+'</span><br/><b><abbr class="dtreviewed">'+c.created.substr(0,10)+'</abbr></b><div class="reviewer vcard">by <span class="fn">'+c.authorName+"</span></div></div>";g+='<div class="clear-both"></div>';g+="</div>";f+=g}f+="</div>";$("#taContainer").empty().append('<h2><img src="http://www.tripadvisor.com/img/cdsi/partner/ta-large-11109-0.gif" width="158" height="29" alt="TripAdvisor"/></h2>'+e+f+h);VL.setupUserReviews()}})}};
VL.externalLinks=function(){var a=/^https?\:\/\/([a-z0-9\-]+\.)?visitlondon\.com/,b=/(localhost|web[12345]|preview|vl\-(dev|test|stage)\-web\d)/,c=/\.(mp3|pdf|doc|docx|wmv|gif|jpg|xls)$/,d=$("a[href^='http']").not(".gallery, .map-pop").filter(function(){return!a.test($(this).attr("href"))}).filter(function(){return!b.test($(this).attr("href"))}).add("a[rel=external], a.ext").add(function(){return c.test($(this).attr("href"))});d.attr("title",function(){var a=$(this).attr("title");return a&&0<a.length?
a+" (Link will open in a new window)":"Link will open in a new window"}).attr("target","_blank");d.filter("#content a").not(".advert a, .button, .noicon, .pp a").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!1})};
VL.explorerMap={showHoverBox:function(a,b){var c=$(".popBox:eq("+a+")"),d=b.split(","),e;386<d[0]?(e=547-parseInt(d[0],10),c.css("right",e+"px")):(e=parseInt(d[0],10)+11,c.css("left",e+"px"));120>d[1]?(d=parseInt(d[1],10)-11,c.css("top",d+"px")):(d=525-parseInt(d[1],10),c.css("bottom",d+"px"));c.show("slow")},closeHoverBox:function(a){$(".popBox:eq("+a+")").hide("slow")},setup:function(){var a=this;$(".explorer .results li").each(function(){$('<div class="popBox"/>').append("<b>"+$("h3 a",this).text()+
"</b><br/>");$(".category",this).length&&$('<div class="popBox"/>').append($(".category",this).text()+"<br />");$('<div class="popBox"/>').append($(".resPic",this).html());$("#mapInner").append('<div class="popBox"/>')});$("#mapInner area").hover(function(){a.showHoverBox(this.tabIndex,this.coords)},function(){a.closeHoverBox(this.tabIndex)})}};
VL.tabs={hide:function(){$("#content .tabcnt").hide().attr("aria-hidden","true");$("#content .tablnk").attr("tabindex","-1");$("#header .current").removeClass("current");$("#header .before-current").removeClass("before-current")},show:function(a){VL.util.isNumber(a)?(this.hide(),$("#header li:eq("+a+")").addClass("current").prev().addClass("before-current")):a&&""!==a&&(this.hide(),$("#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");"prod-user"===a?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):"prod-map"===a&&$("#productMap").length&&!$("#productMap").hasClass("googlemap")&&(VL.map.drawMap($("#productMap")),$("#productMap").addClass("googlemap"))},keysdown:function(a){var b=
$("#header .current").index(),c=$("#header li").length,d=a.which,e=!0,f=!0,a=a.altKey,h=0;(d===VL.keys.LEFT||d===VL.keys.RIGHT)&&!a?(e=!1,d===VL.keys.RIGHT?h=1:d===VL.keys.LEFT&&(h=-1)):f=!1;if(!0===f){b=+b+h;if(b===c||0>b)f=!1;!0===f&&this.show(b)}return e},setup:function(){var a=this,b=$("#header .tablnk"),c=$("#content .tabcnt");b.length&&c.length&&($("#header ul").attr("role","tablist").keydown(function(b){a.keysdown(b)}),b.filter(":last").addClass("last"),c.hide().attr("role","tabpanel").attr("aria-hidden",
"true"),b.attr("tabindex","-1"),b.attr("role","tab").css("cursor","pointer").click(function(){a.hide();$(this).parent().addClass("current").prev().addClass("before-current");a.show();return!1}),this.show(),$(".tab-link").click(function(){VL.tabs.show($(this).attr("href").substr(1));return!1}))}};
VL.multiPanel={isSetup:!1,change:function(a){var b=$("#selector-window > div"),c=$("#selector-window > div:eq("+a+")"),d=c.find("a");c.attr("id");c.attr("title");c.is(":visible")?window.location=d.attr("href"):($("#selector-controls .current").removeClass("current"),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),$("#selector-controls li:eq("+a+")").addClass("current").attr("tabindex",
"0").focus())},keysdown:function(a){var b=$("#selector-controls .current").index(),c=$("#selector-controls li").length,d=a.which,e=!0,f=!0,a=a.altKey,h=0;(d===VL.keys.LEFT||d===VL.keys.RIGHT)&&!a?(e=!1,d===VL.keys.RIGHT?h=1:d===VL.keys.LEFT&&(h=-1)):f=!1;if(!0===f){b=+b+h;if(b===c||0>b)f=!1;!0===f&&VL.multiPanel.change(b)}return e},setup:function(){var a=this,b=$("#selector-panel"),c=$("#selector-window > div"),d,e;this.isSetup||0===b.length||(2>c.length?b.css("height","auto"):(b.append('<ul id="selector-controls"></ul>'),
e=$("#selector-controls"),e.attr("role","tablist").keydown(function(b){a.keysdown(b)}),c.hide().attr("role","tabpanel").css({position:"absolute",top:"0px",left:"0px"}).each(function(){e.append("<li>"+$("a strong",this).text()+"</li>")}),d=$("#selector-controls li"),d.attr("tabindex","-1").attr("role","tab").bind("click keypress",function(b){if("keypress"===b.type&&b.which!==VL.keys.ENTER)return!1;a.change(d.index(this))}),$.browser.msie&&9>$.browser.version&&d.append('<i class="br"></i><i class="bl"></i>'),
this.isSetup=!0,b.hasClass("rotate-true")?$("#selector-controls li:eq("+VL.currentDate.getDate()%4+")").click():(0===VL.currentDate.getDay()||6===VL.currentDate.getDay())&&!$("#selector-window>div:eq(0)").hasClass("vlSnTeaserSuperheroSweeps")?$("#selector-controls li:eq(1)").click():$("#selector-controls li:eq(0)").click()))}};VL.topmenuClear=function(){$("#topmenu .over").removeClass("over");VL.$tier1Nav.removeClass("fade")};
VL.getDatePeriod=function(a){var b=new Date,c=new Date,d,e=$("input[name='from']",a),f=$("input[name='to']",a);b.setTime(VL.currentDate.getTime());c.setTime(VL.currentDate.getTime());$(".d6nDD",a).length?d=$(".d6nDD",a).val():$("input[name=d6nRB]",a).length&&(d=$("input[name=d6nRB]:checked",a).val());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 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;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;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}null!==b?e.val(b.getDate()+"-"+(b.getMonth()+1)+"-"+b.getFullYear()):e.val("");null!==c?f.val(c.getDate()+"-"+(c.getMonth()+1)+"-"+c.getFullYear()):f.val("")};
(function(a){a.fn.dynamicSelect=function(){return this.filter("select").each(function(){var b=this.id,c=b+"-s1",d=b+"-s2",e=a(this),f,h;e.parent().append('<select id="'+c+'" class="'+this.className+'"></select><br/><select id="'+d+'" name="'+this.name+'" class="'+this.className+'"></select>');f=a("#"+c);h=a("#"+d);e.children("option:first").clone().appendTo(f);e.children("optgroup").each(function(){var a="";e.find("option:selected").parent("optgroup").attr("id")===this.id&&(a='selected="selected"');
f.append('<option value="'+this.id+'" '+a+">"+this.label+"</option>")});f.change(function(){var d=a("#"+c+" option:selected").val(),e="#"+b+" optgroup#"+d;h.empty().attr("disabled","disabled");""===d||0===a(e).size()?h.append('<option value="">'+VL.copy.pleaseChoose+"</option>"):(a(e+" option").clone().appendTo(h),h.children("option:first").text(function(){return VL.copy.all+h.children("option:first").text()}),h.removeAttr("disabled"))});f.change();e.hide().removeAttr("name").removeClass("adv").find("option:selected").removeAttr("selected")})}})(jQuery);
(function(a){a.fn.configureSearch=function(){"simple"===VL.sb.searchToggle?(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"):(VL.sb.$as.show(),VL.sb.$asf.removeAttr("disabled"),VL.sb.$GL.hasClass("current-option")?VL.util.toggleOptions(VL.sb.$GA,VL.sb.$GL):VL.util.toggleOptions(VL.sb.$GL,VL.sb.$GA),VL.sb.$DP.hasClass("current-option")?VL.util.toggleOptions(VL.sb.$DS,VL.sb.$DP):VL.util.toggleOptions(VL.sb.$DP,
VL.sb.$DS),VL.sb.$asl.text(VL.copy.fewerOptions).addClass("minus").removeClass("plus"),VL.sb.searchToggle="simple")}})(jQuery);
(function(a){a.fn.setupSearch=function(){return this.each(function(){var b=this,c;if("undefined"!==typeof b.id&&1<b.id.length){c=b.id;a(".d6nDD option:eq(1)").after('<option value="This Weekend">'+VL.copy.thisWeekend+'</option><option value="Next Weekend">'+VL.copy.nextWeekend+"</option>").before('<option value="Today">'+VL.copy.today+"</option>");a(".d6nDD").removeAttr("name").change(function(){VL.getDatePeriod(a(b))});if("search"===c||"assearch"===c)VL.sb.$DS=a("#sbDateSpecific"),VL.sb.$DP=a("#sbDatePeriod"),
VL.sb.$DP.append('<span class="note"><a class="toggle-link">'+VL.copy.orDates+"</a></span>"),a("#sbDatePeriod a.toggle-link").click(function(){VL.util.toggleOptions(VL.sb.$DP,VL.sb.$DS)}),VL.sb.$DS.append('<span class="note"><a class="toggle-link">'+VL.copy.orPeriod+"</a></span>"),a("#sbDateSpecific a.toggle-link").click(function(){VL.util.toggleOptions(VL.sb.$DS,VL.sb.$DP)});"assearch"===c&&VL.util.toggleOptions(VL.sb.$DS,VL.sb.$DP);"search"===c&&(VL.sb.$GL=a("#sbGeoLocation"),VL.sb.$GA=a("#sbGeoArea"),
VL.sb.$as=a("#search div.advanced-search fieldset").addClass("advanced"),VL.sb.$as=a("#search div.advanced-search fieldset.advanced"),a("#search div.advanced-search").append('<fieldset><a id="advanced-search-link" class="plus"></a></fieldset>'),VL.sb.$asl=a("#advanced-search-link"),VL.sb.$asf=a("#search .adv"),VL.sb.$asl.click(function(){a("#search").configureSearch()}),VL.sb.$GL.append('<span class="note"><a class="toggle-link">'+VL.copy.orArea+"</a></span>"),a("#sbGeoLocation a.toggle-link").click(function(){VL.util.toggleOptions(VL.sb.$GL,
VL.sb.$GA)}),VL.sb.$GA.append('<span class="note"><a class="toggle-link">'+VL.copy.orPostcode+"</a></span>"),a("#sbGeoArea a.toggle-link").click(function(){VL.util.toggleOptions(VL.sb.$GA,VL.sb.$GL)}),a("#search").configureSearch())}})}})(jQuery);
VL.expediaSearch={roomTemplate:function(a){return'<div class="room">Room '+(a+1)+': <select name="rooms['+a+'].adultsCount"><option value="1">1</option><option value="2" selected>2</option><option value="3">3</option><option value="4">4</option></select> <select name="rooms['+a+'].childrenCount"><option value="0" selected>0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option></select><div class="children cf"></div></div>'},childTemplate:function(a,b){return(0===
b?"<span>Age of children</span>":"")+'<div class="child"><select name="rooms['+a+"].children["+b+'].age"><option value="0">&lt;1</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option></select>'},
changeRooms:function(a){var a=$(a).val(),b=$("#expediaRooms .room").length;if(a<b)a--,$("#expediaRooms .room:gt("+a+")").remove();else if(a>b)for(;b<a;b++)$("#expediaRooms").append(VL.expediaSearch.roomTemplate(b))},changeKids:function(a){var b=$(a).attr("name").substr(6,1),c=$(a).val(),a=$(a).siblings(".children"),d=$(".child",a).length;if(0===c)a.empty();else if(c<d)c--,$(".child:gt("+c+")",a).remove();else if(c>d)for(;d<c;d++)a.append(VL.expediaSearch.childTemplate(b,d))}};
VL.trips={tripIndex:0,checkDeleteTrip:function(a){return confirm(VL.copy.removeTrip(a))},numberTrips:function(){var a;$("#trips fieldset").each(function(b){a=b+1;$(this).children("h3").text(VL.copy.trip+" "+a)});$("#trips-count").val(a);10===$("#trips fieldset").length?$("#addButton, #tripsControls span").hide():$("#addButton, #tripsControls span").show();1===$("#trips fieldset").length?$("#trips div.remove").hide():$("#trips div.remove").show()},trackTrips:function(){var a=[],b,c;$("#trips fieldset").each(function(){b=
$("select:eq(1)",this).val().toPrecision(2).toString();c=$("select:eq(4)",this).val().toPrecision(2).toString();dcsMultiTrack("DCS.dcsuri","/TripInfo/AddTripInfo","WT.ti","Trip Info Added","WT.cg_n","SC_AddTripCount","WT.cg_s","","DCSext.AddTripCount",a.length,"DCSext.TripStart",$("select:eq(0)",this).val()+b+$("select:eq(2)",this).val(),"DCSext.TripEnd",$("select:eq(3)",this).val()+c+$("select:eq(5)",this).val())})},validateTrips:function(){var a="";$("#trips fieldset").each(function(b){var b=b+
1,c;$("input.textbox",this).val()||(a+=VL.copy.errorTripNoName(b)+"\n");if(!$("select:eq(0)",this).val()||!$("select:eq(1)",this).val()||!$("select:eq(2)",this).val())a+=VL.copy.errorTripNoArrival(b)+"\n";if(!$("select:eq(3)",this).val()||!$("select:eq(4)",this).val()||!$("select:eq(5)",this).val())a+=VL.copy.errorTripNoDeparture(b)+"\n";c=new Date($("select:eq(2)",this).val(),$("select:eq(1)",this).val()-1,$("select:eq(0)",this).val());(new Date($("select:eq(5)",this).val(),$("select:eq(4)",this).val()-
1,$("select:eq(3)",this).val())).getTime()<c.getTime()&&(a+=VL.copy.errorTripNoAfter(b)+"\n");$("input:checkbox:checked",this).length||(a+=VL.copy.errorTripNoReason(b)+"\n")});return a?(alert(a),!1):!0},validateTrip:function(a){var b="",c;""===$(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());(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");return b?(alert(b),!1):!0}};
VL.trips.setup=function(){var a=$("#trips fieldset").clone().end().remove();$("#tripsControls").append('<span class="right"> '+VL.copy.or+' </span><input class="button right" value="'+VL.copy.tripsAdd+'" type="button" id="addButton"/>');$("#addButton").click(function(){VL.trips.tripIndex++;a.clone().insertBefore("#tripsControls").find("input, select").attr("name",function(){if(this.name&&""!==this.name)return"t"+VL.trips.tripIndex+"."+this.name}).attr("title",function(){if("departure.date"===this.title||
"arrival.date"===this.title)return"t"+VL.trips.tripIndex+"."+this.title}).end().children("div.remove").html("<span>"+VL.copy.remove+"</span>").children("span").addClass("removeLink").click(function(){$(this).parents("fieldset").remove();VL.trips.numberTrips()}).end().end().find("input[type=hidden]").datepicker({beforeShow:function(){$(this).val($('select[name="'+this.title+'.day"]').val()+"-"+$('select[name="'+this.title+'.month"]').val()+"-"+$('select[name="'+this.title+'.year"]').val());return{}},
onSelect:function(a){a=a.split("-");$('select[name="'+this.title+'.day"]').val(a[0]);$('select[name="'+this.title+'.month"]').val(a[1]);$('select[name="'+this.title+'.year"]').val(a[2])}});VL.trips.numberTrips()}).click();$(".currentTrip .tripColN, .futureTrip .tripColN").append(' <span class="editLink">('+VL.copy.edit+")</span>");$(".tripColF form").hide();$(".editLink").toggle(function(){$(this).parents("table.tripRow").find(".tripColF form").slideDown("slow");$(this).text("(hide)")},function(){$(this).parents("table.tripRow").find(".tripColF form").slideUp("slow");
$(this).text("("+VL.copy.hide+")")});$(".tripColF form table input[type=hidden]").datepicker({beforeShow:function(){$(this).val($(this).parents("form").find('select[name="'+this.title+'.day"]').val()+"-"+$(this).parents("form").find('select[name="'+this.title+'.month"]').val()+"-"+$(this).parents("form").find('select[name="'+this.title+'.year"]').val());return{}},onSelect:function(a){a=a.split("-");$(this).parents("form").find('select[name="'+this.title+'.day"]').val(a[0]);$(this).parents("form").find('select[name="'+
this.title+'.month"]').val(a[1]);$(this).parents("form").find('select[name="'+this.title+'.year"]').val(a[2])}});$("input[name=create]").live("click",function(){VL.trips.trackTrips()});$("form.add-trip").live("submit",VL.trips.validateTrips);$("form.update-trip").live("submit",function(){return VL.trips.validateTrip(this)})};
VL.oldMap={zoom:function(a){var b,c,d,e="http://maps.visitlondon.com/?",f=$("#venueMap").attr("src").split(/[\?\&]/),h=[1,0.711,0.5,0.356,0.237,0.178,0.119];for(b=0;b<f.length;b++)0===f[b].indexOf("scale=")&&(c=f[b].substring(6));for(b=0;b<h.length;b++)if(h[b]===c){d=b;break}if("up"===a&&0!==d)a=+d-1;else if("down"===a&&6!==d)a=+d+1;else return!1;for(b=1;b<f.length;b++)-1===f[b].indexOf("scale=")&&(e+=f[b]+"&");e+="scale="+h[a];$("#venueMap").attr("src",e)},pan:function(a){var b,c=0,d=0,e="http://maps.visitlondon.com/?",
f=$("#venueMap").attr("src").split(/[\?\&]/);for(b=0;b<f.length;b++)-1!==f[b].indexOf("offset-x")?c=f[b].substring(9):-1!==f[b].indexOf("offset-y")&&(d=f[b].substring(9));switch(a){case "n":a=c;d=+d+500;break;case "e":a=+c+500;break;case "w":a=+c-500;break;case "s":a=c;d=+d-500;break;case "ne":a=+c+500;d=+d+500;break;case "nw":a=+c-500;d=+d+500;break;case "se":a=+c+500;d=+d-500;break;case "sw":a=+c-500;d=+d-500;break;default:a=c}for(b=1;b<f.length;b++)-1===f[b].indexOf("offset-x")&&-1===f[b].indexOf("offset-y")&&
(e+=f[b]+"&");$("#venueMap").attr("src",e+("offset-x="+a+"&offset-y="+d))},reposition:function(a){var b,c=$("#venueMap").offset(),d="http://maps.visitlondon.com/?",e,f,h,n,o,g=$("#venueMap").attr("src").split(/[\?\&]/);for(b=1;b<g.length;b++)-1===g[b].indexOf("x=")&&-1===g[b].indexOf("y=")&&-1===g[b].indexOf("arrow=")&&(d+=g[b]+"&");for(b=0;b<g.length;b++)0===g[b].indexOf("x=")&&(e=g[b].substring(2)),0===g[b].indexOf("y=")&&(f=g[b].substring(2)),0===g[b].indexOf("scale=")&&(h=g[b].substring(6)),0===
g[b].indexOf("w=")&&(n=g[b].substring(2)),0===g[b].indexOf("h=")&&(o=g[b].substring(2));b=1.333/+h;d+="x="+(+e+Math.floor(Math.floor(a.pageX-Math.floor(c.left)-+n/2)*b))+"&y="+(+f+Math.floor(Math.floor(+o/2-(a.pageY-Math.floor(c.top)))*b));$("#venueMap").attr("src",d)},setup:function(){if($("#productMap").length){var a=$("#productMap"),b=this;a.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"/>');a.children("img").css("cursor","pointer").click(function(){b.pan(this.className)});$("#venueMap").css("cursor","pointer").click(function(a){b.reposition(a)}).attr("title","Click to reposition the map. \nUse the + and - keys or the mouse wheel to zoom the map.").mousewheel(function(a){0<
a?b.zoom("up"):0>a&&b.zoom("down");return!1});$(document).keypress(function(a){43===a.which||64===a.which?b.zoom("up"):45===a.which&&b.zoom("down")})}}};VL.map={};VL.map.points=[];
VL.map.drawMap=function(a){var b=a.attr("data-latlng").split(","),c=a.attr("data-zoom"),b=new google.maps.LatLng(b[0],b[1]),c={zoom:+c,center:b,mapTypeId:google.maps.MapTypeId.ROADMAP};VL.map.theMap=new google.maps.Map(document.getElementById(a.attr("id")),c);a.attr("data-markers")&&(a=a.attr("data-markers").split(","),a=new google.maps.LatLng(a[0],a[1]),new google.maps.Marker({position:a,clickable:!1,map:VL.map.theMap}))};
VL.map.addMarker=function(a){if(a.latitude&&a.longitude){var b=new google.maps.LatLng(a.latitude,a.longitude);VL.map.bounds.extend(b);VL.map.theMap.fitBounds(VL.map.bounds);var c=new google.maps.InfoWindow({content:'<div class="infoWindowContent">'+a.content+"</div>"}),b={map:VL.map.theMap,position:b};a.icon&&(b.icon=a.icon);var d=new google.maps.Marker(b);google.maps.event.addListener(d,"click",function(){c.open(VL.map.theMap,d)})}};
VL.map.drawBoundsMap=function(a){var b={zoom:11,center:new google.maps.LatLng(51.481625,-0.103883),mapTypeId:google.maps.MapTypeId.ROADMAP};VL.map.theMap=new google.maps.Map(document.getElementById(a.attr("id")),b);VL.map.bounds=new google.maps.LatLngBounds;for(a=0;a<VL.map.points.length;a++)VL.map.addMarker(VL.map.points[a]);window.setTimeout(function(){15<VL.map.theMap.getZoom()&&VL.map.theMap.setZoom(15)},100)};
VL.map.makePoints=function(a){var b,c,d="";$("div[data-venueid]").each(function(){VL.map.points.push({id:$(this).attr("data-venueid"),content:$(this).html(),latitude:"",longitude:""});d+=$(this).attr("data-venueid")+","});$.getJSON("http://"+window.location.host+"/api/json/venuelist?ids="+d,"",function(d){if(d.venues){for(b=0;b<VL.map.points.length;b++)c=VL.map.points[b],d.venues[c.id]&&(c.latitude=d.venues[c.id].defaultLocation.latitude,c.longitude=d.venues[c.id].defaultLocation.longitude);VL.map.drawBoundsMap(a)}})};
VL.map.checkDuplicates=function(a,b){var c,d=null;for(c=0;c<VL.map.points.length;c++)VL.map.points[c].latitude===a&&VL.map.points[c].longitude===b&&(d=c);return d};
VL.map.makeResultsMap=function(a){var b,c,d,e;$(".results li[data-ll]").each(function(a){b=$(this).attr("data-ll").split(",");c=b[0];d=b[1];e=VL.map.checkDuplicates(c,d);null===e?VL.map.points.push({content:a+1+". "+$(this).find("a:first").outerHTML(),icon:$(this).attr("data-icon"),latitude:c,longitude:d}):(VL.map.points[e].content+="<br/>",VL.map.points[e].content+=a+1+". "+$(this).find("a:first").outerHTML())});VL.map.points.reverse();VL.map.drawBoundsMap(a)};
$(document).ready(function(){$.browser.msie&&9>$.browser.version&&$("body").addClass("isIE");VL.pageTitle=$("h1:first").text();VL.$tier1Nav=$("#topmenu .current");VL.$tier1NavID=VL.$tier1Nav.attr("id");VL.sb={};VL.sb.searchToggle=-1!==location.pathname.indexOf("/search")||-1!==location.pathname.indexOf("/area/")||-1!==location.pathname.indexOf("/tag/")||-1!==location.pathname.indexOf("/category/")?"advanced":"simple";$("#topmenu > li").hover(function(){clearTimeout(VL.navTimer);VL.topmenuClear();
$(this).addClass("over");$(this).find(":first").addClass("over");$(this).attr("id")!==VL.$tier1NavID&&VL.$tier1Nav.addClass("fade")},function(){VL.navTimer=setTimeout(VL.topmenuClear,2E3)});$("#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(a){a.stopPropagation()});$("#head .flag").toggle(function(){a.show()},
function(){a.hide()});$("#takeover").click(function(){a.hide()});VL.multiPanel.setup();VL.tabs.setup();VL.setupHidden();VL.setupUserReviews();VL.externalLinks();$("img.rollover, a.rollover img").hover(function(){var a=$(this).attr("src");$(this).attr("src",a.replace("-off.","-on."))},function(){var a=$(this).attr("src");$(this).attr("src",a.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"});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>");
0<$(".news-ticker").size()&&$().newsTicker({newsList:".news-ticker ul:first",controls:!1});$("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")});
VL.oldMap.setup();VL.explorerMap.setup();$("#gmap").length&&!$("#gmap-venues").length?VL.map.drawMap($("#gmap")):$("#gmap").length&&$("div[data-venueid]").length?VL.map.makePoints($("#gmap")):$("#gmap-results").length&&$(".results li").length&&VL.map.makeResultsMap($("#gmap-results"));$("#addToList").after('<div id="list-dialogue"/>');if(jQuery.ui&&jQuery.ui.dialog&&($("#list-dialogue").dialog({modal:!0,autoOpen:!1}),$("#addToList").click(function(){if(VL.currentUser&&VL.currentUser.id)$.getJSON("http://"+
window.location.host+"/api/json/user-lists","",function(a){if(a.lists.length){var b,c="";for(b=0;b<a.lists.length;b++)c+='<li data-list-id="'+a.lists[b].id+'" data>'+a.lists[b].name+"</li>";$("#list-dialogue").dialog("option","title","Choose a List").html('<ul id="addToThisList">'+c+"</ul>")}else a='<form action="/preferences/create-list" method="post" id="createList">',a=VL.currentUser.alias?a+('<input type="hidden" name="alias" value="'+VL.currentUser.alias+'"/>'):a+'<label>Username: <input type="text" name="alias" class="textbox"/></label><br/>',
a+='<input type="hidden" name="product" value="'+VL.product.id+'"/>',$("#list-dialogue").dialog("option","title","Create a List").html(a+'<label>Itinerary name: <input type="text" name="name" class="textbox"/></label><br/><label><input type="checkbox" name="public" value="true"/> Publish my list</label><br/><input type="submit" class="button right" name="submit" value="Create your itinerary"/></form>')});else{var a=VL.product.id+","+VL.product.name+";",b=$.cookie("vl_list");b?-1!==b.indexOf(VL.product.id)?
$("#list-dialogue").dialog("option","title",VL.product.name+" already added to list").html('You can\'t add the same thing to the same list more than once. If you want to create multiple lists you need to <a href="/login">login</a> or <a href="/register">register</a>.'):10===b.split(";").length?$("#list-dialogue").dialog("option","title","Your default list is full").html('You can\'t add any more items to list list, to continue you need to <a href="/login">login</a> or <a href="/register">register</a>.'):
($.cookie("vl_list",b+a,{expires:30,path:"/"}),$("#list-dialogue").dialog("option","title",VL.product.name+" added to list").html('Remember, that if you want to publish the list, create multiple lists, or save your list for more than one month you need to <a href="/login">login</a> or <a href="/register">register</a>.')):($.cookie("vl_list",a,{expires:30,path:"/"}),$("#list-dialogue").dialog("option","title",VL.product.name+" added to list").html('Welcome to VisitLondon.com\'s Itinerary builder. We\'ve created your first list for you but if you want to publish the list, create multiple lists, or save your list for more than one month you need to <a href="/login">login</a> or <a href="/register">register</a>.'))}$("#list-dialogue").dialog("open")}),
$("#addToThisList li").css("cursor","pointer").live("click",function(){var a=$(this).attr("data-list-id"),b=$(this).text();$.getJSON("http://"+window.location.host+"/api/json/add-to-list",{product:VL.product.id,listId:a},function(c){c.list?$("#list-dialogue").dialog("option","title",VL.product.name+" added to list").html("We've added "+VL.product.name+" to "+b+'. <a href="/itineraries/list/'+a+'">View your list</a> or <a href="/preferences/list/'+a+'">edit it</a>.'):$("#list-dialogue").dialog("option",
"title","Sorry").html("Something went wrong and we can't add "+VL.product.name+" to "+b+" right now. Please try again.")})}),VL.currentUser&&$.cookie("vl_list"))){$("#list-dialogue").length||($("body").append('<div id="list-dialogue"/>'),$("#list-dialogue").dialog({modal:!0,autoOpen:!1}));var b,c=$.cookie("vl_list").split(";"),d=c.length,e='<form action="/preferences/create-list" method="post" id="createList">',e=VL.currentUser.alias?e+('<input type="hidden" name="alias" value="'+VL.currentUser.alias+
'"/>'):e+'<label>Username: <input type="text" name="alias" class="textbox"/></label><br/>';for(b=0;b<d;b++)e+='<input type="hidden" name="product" value="'+c[b].split(",")[0]+'"/>';e+='<label>Itinerary name: <input type="text" name="name" class="textbox"/></label><br/><label><input type="checkbox" name="public" value="true"/> Publish my list</label><br/><input type="submit" class="button right" name="submit" value="Create your itinerary"/></form>';$("#list-dialogue").dialog("option","title","Save your list").html("<p>Save your list of London favourites and share it with friends.</p>"+
e).dialog("open");$.cookie("vl_list",null,{expires:30,path:"/"})}$("#video,#videolarge").vlVideo();$("#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");$(".youtubevideo").each(function(){var a="http://www.youtube.com/v/"+$(this).attr("data-youtubeid")+"?rel=0",b="16x9"===$(this).attr("data-youtubeformat")?
"295":"385";$(this).flashembed({src:a,width:"480",height:b,play:"true",wmode:"transparent",version:[8,0]})});$(".vimeovideo").each(function(){var a="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:a,width:"480",height:"270",play:"true",wmode:"transparent",version:[8,0]})});$("#film-trailer").each(function(){var a=$(this).attr("data-trailer-mp4"),
b=$(this).attr("data-trailer-image"),c=$(this).attr("data-trailer-flv");a&&VL.util.html5VideoMP4()?$(this).html('<video width="539" height="303" poster="'+b+'" controls preload><source src="'+a+'" type="video/mp4; codecs=\'avc1.42E01E, mp4a.40.2\'" /></video>'):c&&$(this).flashembed({src:"http://vlstatic.com/common/swf/flowplayer-3.2.7.swf",width:"539",height:"303",play:"true",wmode:"transparent",version:[8,0]},{config:'{"playlist":["'+b+'", {"url": "'+a+'", "autoPlay":false,"autoBuffering":true}]}'})});
$.browser.msie&&9>$.browser.version&&($("#sidebar .tools li").append("<i/>"),$("#login-reg, .tabs .panel-head, #acc-res .panel-head, .fwCols .results h3").append('<i class="tr"></i><i class="tl"></i>'),$("#sidebar fieldset, #sidebar .sidenav, #sidebar .dates .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 .results .commerce").append('<b class="tr"></b><b class="tl"></b><b class="br"></b><b class="bl"></b>'),
$("#body .headlineSearch fieldset").append('<b class="br"></b><b class="bl"></b>'),$(".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>'),"6.0"===$.browser.version&&$("input.button").siblings("i.tr, i.br").addClass("ie6RHS"))});
