var VL={videoColor:"grey"},whichVid,playlistURL,tl=false,navTimer;function leapYear(a){if(a%4===0&&(a%100!==0||a%400===0))return true}function isNumber(a){return typeof a==="number"&&isFinite(a)}function cleanNum(a){a.value=a.value.replace(/[^0-9]/g,"")}
(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;a.browser.mozilla&&a(this).bind("mousemove.mousewheel",function(f){a.data(this,"mwcursorposdata",{pageX:f.pageX,pageY:f.pageY,clientX:f.clientX,clientY:f.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 f=Array.prototype.slice.call(arguments,1);b=a.event.fix(b||window.event);a.extend(b,a.data(this,"mwcursorposdata")||{});var g=0;if(b.wheelDelta)g=b.wheelDelta/120;if(b.detail)g=-b.detail/3;if(a.browser.opera)g=-b.wheelDelta;b.data=b.data||{};b.type="mousewheel";f.unshift(g);f.unshift(b);return a.event.handle.apply(this,f)}};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(d,c){if(c)for(var e in c)if(c.hasOwnProperty(e))d[e]=c[e];return d}function b(d){switch(f(d)){case "string":d=d.replace(new RegExp('(["\\\\])',"g"),"\\$1");d=d.replace(/^\s?(\d+)%/,"$1pct");return'"'+d+'"';case "array":return"["+g(d,function(k){return b(k)}).join(",")+"]";case "function":return'"function ()"';case "object":var c=[];for(var e in d)d.hasOwnProperty(e)&&c.push('"'+e+'":'+b(d[e]));return"{"+c.join(",")+"}"}return String(d).replace(/\s/g," ").replace(/\'/g,'"')}
function f(d){if(d===null||d===undefined)return false;var c=typeof d;return c=="object"&&d.push?"array":c}function g(d,c){var e=[];for(var k in d)if(d.hasOwnProperty(k))e[k]=c(d[k]);return e}function h(d,c){var e=a({},d),k=document.all,l='<object width="'+e.width+'" height="'+e.height+'"';if(k&&!e.id)e.id="_"+(""+Math.random()).substring(9);if(e.id)l+=' id="'+e.id+'"';if(e.cachebusting)e.src+=(e.src.indexOf("?")!=-1?"&":"?")+Math.random();l+=e.w3c||!k?' data="'+e.src+'" type="application/x-shockwave-flash"':
' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';l+=">";if(e.w3c||k)l+='<param name="movie" value="'+e.src+'" />';e.width=e.height=e.id=e.w3c=e.src=null;for(var n in e)if(e[n]!==null)l+='<param name="'+n+'" value="'+e[n]+'" />';e="";if(c){for(var m in c)if(c[m]!==null)e+=m+"="+(typeof c[m]=="object"?b(c[m]):c[m])+"&";e=e.substring(0,e.length-1);l+='<param name="flashvars" value=\''+e+"' />"}l+="</object>";return l}function i(d,c,e){var k=flashembed.getVersion();a(this,{getContainer:function(){return d},
getConf:function(){return c},getVersion:function(){return k},getFlashvars:function(){return e},getApi:function(){return d.firstChild},getHTML:function(){return h(c,e)}});var l=c.version,n=c.expressInstall,m=!l||flashembed.isSupported(l);if(m){c.onFail=c.version=c.expressInstall=null;d.innerHTML=h(c,e)}else if(l&&n&&flashembed.isSupported([6,65])){a(c,{src:n});e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};d.innerHTML=h(c,e)}else if(d.innerHTML.replace(/\s/g,"")===
""){d.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>"+(d.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(d.tagName=="A")d.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}if(!m&&c.onFail){l=c.onFail.call(this);if(typeof l=="string")d.innerHTML=l}if(document.all)window[c.id]=
document.getElementById(c.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(d,c,e){if(typeof d=="string"){var k=document.getElementById(d);
if(k)d=k;else{jQuery(function(){flashembed(d,c,e)});return}}if(d){if(typeof c=="string")c={src:c};k=a({},j);a(k,c);return new i(d,k,e)}};a(window.flashembed,{getVersion:function(){var d=[0,0],c;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){c=navigator.plugins["Shockwave Flash"].description;if(typeof c!="undefined"){c=c.replace(/^.*\s+(\S+\s+\S+$)/,"$1");d=parseInt(c.replace(/^(.*)\..*$/,"$1"),10);c=/r/.test(c)?parseInt(c.replace(/^.*r(.*)$/,"$1"),10):0;d=[d,c]}}else if(window.ActiveXObject){try{c=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");d=[6,0];c.AllowScriptAccess="always"}catch(k){if(d[0]==6)return d}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(l){}}if(typeof c=="object"){c=c.GetVariable("$version");if(typeof c!="undefined"){c=c.replace(/^\S+\s+(.*)$/,"$1").split(",");d=[parseInt(c[0],10),parseInt(c[2],10)]}}}return d},isSupported:function(d){var c=flashembed.getVersion();return c[0]>d[0]||c[0]==
d[0]&&c[1]>=d[1]},asString:b,getHTML:h});jQuery.fn.flashembed=function(d,c){var e=null;this.each(function(){e=flashembed(this,d,c)});return d.api===false?this:e}})();function drawMovie(a,b,f,g,h){$("#"+a).flashembed({src:b,width:f,height:g,play:"true",wmode:"transparent",version:[8,0]})}
function drawTV(){var a,b,f=whichVid+".xml";if(playlistURL&&playlistURL!=="")if($("#playlist").size!==0){$("#playlist").flashembed({src:"http://static.visitlondon.com/assets/video/vl-video-player-large.swf?playerSize=PL&xmltouse="+playlistURL+".xml&PageColour="+VL.videoColor,width:"540",height:"353",play:"true",wmode:"transparent",allowFullScreen:"true",version:[8,0]});$("#playlist").height(360)}if(whichVid&&whichVid!==""){if($("#video").size!==0){if($.browser.msie||$.browser.safari){a="540";b="352"}else{a=
"240";b="184"}$("#video").flashembed({src:"http://static.visitlondon.com/assets/video/vl-video-player.swf?xmltouse="+f+"&PageColour="+VL.videoColor,width:a,height:b,play:"true",wmode:"transparent",allowFullScreen:"true",scale:"noscale",salign:"rt",version:[8,0]});if(tl===true){$("#video").append('<a id="transcriptLink" href="http://static.visitlondon.com/assets/video/transcripts/'+whichVid+'.html"><img src="http://static.visitlondon.com/images/icons/transcript.gif" alt="" />'+VL.copy.tltext+"</a>");
$("#transcriptLink").css("cursor","pointer").css("display","block").css("margin-top","188px").css("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});$("#video").height(200)}else $("#video").height(188);$.browser.safari&&$("#video object, #video embed").css("clip","rect(0,540px,184px,300px)")}if($("#videolarge").size!==0){$("#videolarge").flashembed({src:"http://static.visitlondon.com/assets/video/vl-video-player-large.swf?playerSize=SL&xmltouse="+
f+"&PageColour="+VL.videoColor,width:"540",height:"353",play:"true",wmode:"transparent",allowFullScreen:"true",version:[8,0]});if(tl===true){$("#videolarge").append('<a id="transcriptLink" href="http://static.visitlondon.com/assets/video/transcripts/'+whichVid+'.html"><img src="http://static.visitlondon.com/images/icons/transcript.gif" alt="" />'+VL.copy.tltext+"</a>");$("#transcriptLink").css("cursor","pointer").css("display","block").css("margin-top","360px").css("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});$("#videolarge").height(375)}else $("#videolarge").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,f){switch(f){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","","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","","WT.z_ltvPlay","1","WT.z_ltvFinished",
"");break;case "WT.z_ltvFinished":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","","WT.z_ltvPlay","","WT.z_ltvFinished","1");break}}
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'], a[href$='docx'], a[href$='wmv'], a[href$='gif'], a[href$='jpg'], a[href$='ppt'], a[href$='xls']").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'], #content a[href$='docx'], #content a[href$='wmv'], #content a[href$='gif'], #content a[href$='jpg'], #content a[href$='xls']").not(".advert a").not(".yedda a").not(".button").not(".gallery").not(".map-pop").not(".noicon").append('<img src="http://static.visitlondon.com/images/icons/external-links.gif" alt=""\twidth="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 trackSwitchTabs(a){var b,f=$("h1:first").text;switch(a){case "prod-desc":a="Description";b="Desc";break;case "prod-map":b=a="Map";break;case "prod-contact":b=a="Contact";break;case "prod-rooms":a="Room Layouts";b="Layout";break;default:a="Unknown"}dcsMultiTrack("DCS.dcsuri","/js/showTab/"+a,"WT.ti","Show Tab: "+a,"WT.z_ltvName","Tabs: "+f,"WT.z_ltv"+b,"1","WT.cg_n","","WT.cg_s","","WT.mc_id","","WT.si_n","","WT.si_p","","WT.z_vlSupplier")}
function showtab(a){if(a&&a!==""){$("#content .tabcnt").hide();$("#header .current").removeClass("current");$("#header .before-current").removeClass("before-current");$("#header #"+a+"-tab").addClass("current").prev().addClass("before-current")}a="#"+$("#header .current").attr("id").replace("-tab","");$(a).show()}
function setupTabs(){if($("#header .tablnk").size()===0||$(".tabcnt").size()===0)return false;$("#header .tablnk:last").addClass("last");$("#content .tabcnt").hide();$("#header .tablnk").css("cursor","pointer").click(function(){$("#content .tabcnt").hide();$("#header .current").removeClass("current");$("#header .before-current").removeClass("before-current");$(this).parent().addClass("current").prev().addClass("before-current");$(this).blur();showtab();return false});showtab()}
function topmenuClear(){$("#topmenu *").removeClass("over");$("#topmenu .current").removeClass("fade")}function goToPage(a){var b=document.getElementById("to");switch(a){case "One":b.value="rfpContactView";break;case "Two":b.value="rfpEventView";break;case "Three":b.value="rfpVenueView";break;case "Four":b.value="rfpAccommodationView";break;case "Five":b.value="rfpAdditionalView";break}$("#rfpForm").submit()}function leapYear(a){if(a%4===0&&(a%100!==0||a%400===0))return true}
function getMaxDay(a,b){return a=="2"?leapYear(b)?29:28:a=="4"||a=="6"||a=="9"||a=="11"?30:31}function getMinDay(a,b){var f=new Date;return a==f.getMonth()+1&&b==f.getYear()?f.getDate():1}
function checkMonths(a,b,f,g){if(!b||b==="")b=0;if(!f||f==="")f="theForm";g=g&&g!=""?"."+g:"";var h=document.forms[f];f=h.elements[a+".year"+g];var i=h.elements[a+".month"+g];a=h.elements[a+".day"+g];g=a.options[a.selectedIndex].value;i=i.options[i.selectedIndex].value;h=f.options[f.selectedIndex].value;f=getMaxDay(i,h);for(i=getMinDay(i,h);a.length>b;)a.remove(b);for(h=i;h<=f;h++){var j=h-i+b,d=false;if(h==g)d=true;a.options[j]=new Option(h,h,false,d)}}
function setDate(a,b,f,g,h,i){var j=document.forms[a],d,c,e;e=j.elements[b+"-date"+(i&&i!=""?"-"+i:"")].value.split(".");for(d=0;d<j.elements[g].options.length;d++){c=j.elements[g].options[d].value<10?"0"+j.elements[g].options[d].value:j.elements[g].options[d].value;if(c==e[1])j.elements[g].options[d].selected=true}checkMonths(b,1,a,i);for(a=0;a<j.elements[f].options.length;a++){b=j.elements[f].options[a].value;if(b==e[0])j.elements[f].options[a].selected=true}for(f=0;f<j.elements[h].options.length;f++){a=
j.elements[h].options[f].value;if(a==e[2])j.elements[h].options[f].selected=true}}function setDropDownDate(a){var b;b=a.params.suffix?"."+a.params.suffix:"";var f=a.params.inputField.name.split("-");setDate(a.params.formName,f[0],f[0]+".day"+b,f[0]+".month"+b,f[0]+".year"+b,a.params.suffix)}function dateStatusFrom(a){var b=new Date;b.setDate(b.getDate()-1);return a.getTime()<b.getTime()?true:false}
function setupMultiPanel(){var a=$("#selector-panel"),b=$("#selector-window > div"),f,g,h;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>');h=$("#selector-controls");b.hide().css({position:"absolute",top:"0px",left:"0px"}).each(function(){f=$(this).find("a strong").text();h.append("<li>"+f+"</li>")});g=$("#selector-controls li");g.click(function(){var i=g.index(this),j=$("#selector-window > div:eq("+
i+")"),d=j.find("a"),c=j.find(".hasFlash"),e=j.attr("id"),k=j.attr("title");if(j.is(":visible"))window.location=d.attr("href");else{b.find("object").remove();g.removeClass("current");b.hide();j.fadeIn(500);d.css("bottom",function(){return"-"+($(this).height()+22)+"px"}).animate({bottom:0},500);$("#selector-controls li:eq("+i+")").addClass("current");if(c.length)var l=c.attr("title").split(",").flashembed({src:l[0],width:l[1],height:l[2],version:[8,0]});dcsMultiTrack("WT.cg_n","","WT.cg_s","","WT.mc_id",
"","DCS.dcsuri","/js/msclick/"+e,"WT.z_ltvName","MultiSelector: "+k,"WT.z_ltvView","1","WT.ti","MultiSelector: "+k)}});if($.browser.msie||$.browser.opera)g.append('<i class="br"></i><i class="bl"></i>');VL.hasSetupMultiPanel=true;$("#selector-panel").hasClass("rotate-true")?$("#selector-controls li:eq("+VL.currentDate.getDate()%4+")").click():$("#selector-controls li:eq(0)").click()}}
function repoMap(a){var b,f,g=$("#venueMap").offset(),h="http://maps.visitlondon.com/?",i,j,d,c,e=$("#venueMap").attr("src").split(/[\?\&]/);$("h1:first").text();for(b=1;b<e.length;b++)if(e[b].indexOf("x=")==-1&&e[b].indexOf("y=")==-1&&e[b].indexOf("arrow=")==-1)h+=e[b]+"&";for(b=0;b<e.length;b++){if(e[b].indexOf("x=")===0)i=e[b].substring(2);if(e[b].indexOf("y=")===0)j=e[b].substring(2);if(e[b].indexOf("scale=")===0)d=e[b].substring(6);if(e[b].indexOf("w=")===0)f=e[b].substring(2);if(e[b].indexOf("h=")===
0)c=e[b].substring(2)}b=1.333/+d;f=Math.floor(a.pageX-Math.floor(g.left)-+f/2);a=Math.floor(+c/2-(a.pageY-Math.floor(g.top)));h+="x="+(+i+Math.floor(f*b))+"&y="+(+j+Math.floor(a*b));$("#venueMap").attr("src",h)}
function zoomMap(a){var b,f,g,h="http://maps.visitlondon.com/?",i=$("#venueMap").attr("src").split(/[\?\&]/),j=[1,0.711,0.5,0.356,0.237,0.178,0.119];$("h1:first").text();for(b=0;b<i.length;b++)if(i[b].indexOf("scale=")===0)f=i[b].substring(6);for(b=0;b<j.length;b++)if(j[b]==f){g=b;break}if(a=="up"&&g!==0)a=+g-1;else if(a=="down"&&g!=6)a=+g+1;else return false;for(b=1;b<i.length;b++)if(i[b].indexOf("scale=")==-1)h+=i[b]+"&";h+="scale="+j[a];$("#venueMap").attr("src",h)}
function scrollMap(a){var b,f=0,g=0,h="http://maps.visitlondon.com/?",i=$("#venueMap").attr("src").split(/[\?\&]/);$("h1:first").text();for(b=0;b<i.length;b++)if(i[b].indexOf("offset-x")!=-1)f=i[b].substring(9);else if(i[b].indexOf("offset-y")!=-1)g=i[b].substring(9);switch(a){case "n":a=f;g=+g+500;break;case "e":a=+f+500;g=g;break;case "w":a=+f-500;g=g;break;case "s":a=f;g=+g-500;break;case "ne":a=+f+500;g=+g+500;break;case "nw":a=+f-500;g=+g+500;break;case "se":a=+f+500;g=+g-500;break;case "sw":a=
+f-500;g=+g-500;break;default:a=f;g=g}for(b=1;b<i.length;b++)if(i[b].indexOf("offset-x")==-1&&i[b].indexOf("offset-y")==-1)h+=i[b]+"&";h+="offset-x="+a+"&offset-y="+g;$("#venueMap").attr("src",h)}
function setupMap(){if($("#productMap").size()===0)return false;$("#productMap").append('<img class="nw" src="http://static.visitlondon.com/images/explorer-map/map-arrow-nw.gif" alt="'+VL.copy.mapNW+'" width="15" height="16" /><img class="n" src="http://static.visitlondon.com/images/explorer-map/map-arrow-n.gif"  alt="'+VL.copy.mapN+'" width="21" height="11" /><img class="ne" src="http://static.visitlondon.com/images/explorer-map/map-arrow-ne.gif"  alt="'+VL.copy.mapNE+'" width="15" height="16" /><img class="w" src="http://static.visitlondon.com/images/explorer-map/map-arrow-w.gif" alt="'+
VL.copy.mapW+'" width="18" height="21" /><img class="e" src="http://static.visitlondon.com/images/explorer-map/map-arrow-e.gif"  alt="'+VL.copy.mapE+'" width="18" height="21" /><img class="sw" src="http://static.visitlondon.com/images/explorer-map/map-arrow-sw.gif" alt="'+VL.copy.mapSW+'" width="15" height="16" /><img class="s" src="http://static.visitlondon.com/images/explorer-map/map-arrow-s.gif" alt="'+VL.copy.mapS+'"   width="21" height="11"  /><img class="se" src="http://static.visitlondon.com/images/explorer-map/map-arrow-se.gif" alt="'+
VL.copy.mapSE+'" width="15" height="16" />');$("#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.");$("#productMap > img").css("cursor","pointer").click(function(){scrollMap(this.className)});$(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})}function convertArea(){var a="";if($("#area-widget input[name=units]:checked").val()=="m"){a=$("#area-widget input[name=area]").val()*3.28;a=a.toFixed(2);a+="ft\u00b2"}else{a=$("#area-widget input[name=area]").val()/3.28;a=a.toFixed(2);a+="m\u00b2"}return a}function getWelcomeMessage(){var a=new Date;return a.getHours()>17?"Good evening":a.getHours()>11?"Good afternoon":a.getHours()>5?"Good morning":"Hello"}
$(document).ready(function(){setupMultiPanel();$("#selector-window .vlSnTeaserSuperhero span+br").remove();setupTabs();externalLinks();drawTV();$("#topmenu > li").hover(function(){clearTimeout(navTimer);topmenuClear();$(this).addClass("over");$(this).find(":first").addClass("over");$(this).attr("id")!=$("#topmenu .current").attr("id")&&$("#topmenu .current").addClass("fade")},function(){navTimer=setTimeout(topmenuClear,2E3)});$("img.rollover, input.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."))});$("#message").text(getWelcomeMessage());$("#area-widget").append('Convert: <input type="number" name="area" size="6"/> <input type="radio" value="m" name="units" checked="checked">m&sup2; <input type="radio" value="ft" name="units">ft&sup2; <input type="button" value="Convert" class="button"/> <strong>&nbsp;</strong>');$("#area-widget input:button").click(function(){$("#area-widget strong").text(convertArea())});
$("a.gallery, .gallery-icon a").lightBox();$("a.map-pop").lightBox({overlayClassName:"mapOverlay",overlayBgColor:"#FFF"});window.print&&$("#pageMeta #BreadCrumbs").after('<span class="printer"><a href="#" onclick="window.print(); return false;">Print</a></span>');setupMap();$("#content .fwZebra tr:even").addClass("alt");if($.browser.msie||$.browser.opera){$("#login-reg").append('<i class="tr"></i><i class="tl"></i>');$(".dcform fieldset, .dcform .addition, .dcform .function, div.detail").append('<b class="tr"></b><b class="tl"></b><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");$("span.button").append('<i class="tl"></i><i class="tr"></i><i class="bl"></i><i class="br"></i>');$.browser.msie&&$.browser.version=="6.0"&&$("input.button").siblings("i.tr, i.br").addClass("ie6RHS")}});