var th;(function(b){var c={},a={};th={blocks:function(){return c},data:function(){return a},radio:function(){if(navigator.userAgent.toLowerCase().indexOf("chrome")>=0){window.open("/mplayer/index.html","mywindow",",width=484,height=267,resizable=yes,scrollbars=no,menubar=no,location=no")}else{window.open("/mplayer/index.html","mywindow",",width=479,height=262,resizable=yes,scrollbars=no,menubar=no,location=no")}return true},date:{calcJulian:function(d){gregDate=new Date(d);year=gregDate.getFullYear();month=gregDate.getMonth()+1;day=gregDate.getDate();A=Math.floor((7*(year+Math.floor((month+9)/12)))/4);B=day+Math.floor((275*month)/9);isJulian=(367*year)-A+B+1721014;return isJulian},dayDiff:function(h,g){var j=1000*60*60*24;var f=h.getTime();var e=g.getTime();var d=Math.abs(f-e);return Math.round(d/j)},dayDiff2:function(h,g){var j=1000*60*60*24;var f=h.getTime();var e=g.getTime();var d=e-f;return Math.round(d/j)}},setBkgdHotelImage:function(g){var f=a.winHeight;var e=a.winWidth;var d;var h;var k;var j;if(!f){f=b(window).height();f=(f>a.minHeight?f:a.minHeight)}if(!e){e=b(window).width();e=(e>a.minWidth?e:a.minWidth)}g.height("auto");g.width("80%");d=g.height();if(d!==0){if(d<f){g.height("100%");g.width("auto");k=((e*0.8)-g.width())*0.5;g.css("left",k+"px").css("top","")}else{j=(f-g.height())*0.5;g.css("top",j+"px").css("left","")}}else{setTimeout(function(){th.setBkgdHotelImage(g)},100)}},setBkgdImage:function(f){var e=a.winHeight;var d;if(!e){e=b(window).height();e=(e>a.minHeight?e:a.minHeight)}f.height("auto");f.width("100%");d=f.height();if(d<e){f.height("100%");f.width("auto")}},setPage:function(){var m=c.window;var l=c.body;var e=c.bodyNav;var f=c.bodyNavTr,h,k=0,p;l.css("overflow","hidden");h=m.width();if(h<a.minWidth){h=a.minWidth;l.css("overflow","auto").data("scroll","width")}else{if(a.ie7){if(l.data("scroll")=="width"){k+=15}l.data("scroll","")}}k+=m.height();if(k<a.minHeight){k=a.minHeight;l.css("overflow","auto");if(h!=a.minWidth){h=m.width();h=(h<a.minWidth?a.minWidth:h)}}if(a.ie7){l.css("overflow","hidden")}p=k-a.headerHeight-a.footerHeight;a.winHeight=k;a.winWidth=h;var o=h/a.initial.width;var d=p/a.initial.height;var j=Math.min(1.75,o,d);c.container.width(h).height(k);c.mainNav.width(h-a.logoWidth);c.divMain.height(p);if(e.length){var g=(a.qbWidth+6+h*0.37-a.bodyNavWidth)*0.5;var n=37*d-(a.bodyNavBack?20:0);e.add(f).css({top:n,left:(g>a.qbWidth+10?g:a.qbWidth+10)});f.width(e.outerWidth()).height(e.outerHeight())}if(c.bkgdImage){th.setBkgdImage(c.bkgdImage)}return{winWidth:h,winHeight:k,bodyHeight:p,scale:j}},init:function(){var e,d;c.window=b(window);c.body=b("body");c.bkgdImage=b("#divBackground img:first");c.container=b("#container");c.header=b("#header");e=c.header;c.footer=b("#footer");d=c.footer;c.mainNav=c.header.find("div.mainNav");c.divMain=b("#divMain div.container");c.bodyNav=b("div.bodyNav");c.bodyNavTr=b("div.bodyNavTr");a.minWidth=960;a.minHeight=600;a.initial={width:960,height:550};a.logoWidth=e.find("div.logo").outerWidth(true);a.headerHeight=e.outerHeight(true);a.footerHeight=d.outerHeight(true);a.qbWidth=b("#qbBooker").outerWidth(true);a.bodyNavWidth=c.bodyNav.outerWidth(true);a.bodyNavBack=c.bodyNav.find("div.back").length;a.ie7=b.browser.msie&&parseInt(b.browser.version,10)<=8;th.cleanup()},cleanup:function(){var f=c.header.find("ul.sf-menu");var d=c.bodyNav.find("div.back");Cufon.replace("div.bodyNav a");f.superfish();f.find("ul").bgIframe({opacity:false});var e=c.footer;c.mainNav.show();c.bodyNav.show();c.bodyNavTr.show();e.show();e.find("#secondary_menu li").bind("mouseenter mouseleave",function(h){var g=b(this).find("ul.sub_menu");if(g.length){if(h.type=="mouseenter"){g.show()}else{g.hide()}}});b(window).load(function(){c.bkgdImage.show();if(!b("#hotel").length){th.setBkgdImage(c.bkgdImage)}});if(d.length){d.bind({mouseenter:function(){var h=d[0];if(h.transition){h.transition=clearTimeout(h.transition)}if(!h.animating){var g=b(this).find("div.rotatingLinks");g.stop().animate({top:-22},300,"easeOutQuad");h.animating=true}},mouseleave:function(){var h=d[0],g=b(this);if(h.transition){clearTimeout(h.transition)}h.transition=setTimeout(function(){var j=g.find("div.rotatingLinks");j.stop().animate({top:0},300,"easeOutQuad");h.animating=false},100)}})}}};b(function(){th.init()})}(jQuery));(function(b){var d={},a={},c={};th.quickBooker={getQuickBooker:function(){return d.qb},submit:function(){var m="";var j=th.date.calcJulian;var h=th.quickBooker;var g=h.selectedHotel;var f=d.checkIn.val();var l=d.checkOut.val();var n=d.qbAdults.find("#qbAdultsValue").html().split(" ")[0];var o=d.promo.val();var k=j(new Date(f));var e=j(new Date(l));if(g){if(k==k){if(k<e){if(k>=j(new Date())){f=f.split("/");l=l.split("/");n=(n==c.adults?"1":n);o=(o==c.promo?"":o);window.location.href="/reserve?showPop=1&propCode="+g+"&startDate="+f[0]+f[1]+f[2]+"&endDate="+l[0]+l[1]+l[2]+"&adults="+n+"&RatePlan="+o+"&DCSext.EventType=QuickRez&DCSext.EventPlace="+document.title}else{m+="- The check in date needs to be for the current date or a date in the future.\r\n"}}else{m+="- The check out date needs to be at least 1 day after the check in date.\r\n"}}else{m+="- Please enter a check in date.\r\n"}}else{m+="- Please choose a hotel.\r\n"}if(m!=""){alert(m)}},setHotel:function(f){var e=d.qbHotel;e.find("#qbHotelOptions li").each(function(g,h){var k=b(h),j;j=k.html();if(j.toLowerCase()==f.replace(/-/g," ").toLowerCase()){e.find("#qbHotelValue").html(j);th.quickBooker.selectedHotel=k.attr("id").split("-")[0];return}})},calcDay:function(f,h){f.setDate(f.getDate()+h);var g=""+(f.getMonth()+1),e=""+f.getDate();if(g.length<2){g="0"+g}if(e.length<2){e="0"+e}return g+"/"+e+"/"+f.getFullYear()},nextMonth:function(g){var f=g.split(" ");var e=["January","February","March","April","May","June","July","August","September","October","November","December"];if(f[0]=="December"){f[0]="January";f[1]+=1}else{f[0]=e[b.inArray(f[0],e)+1]}return f[0]+" "+f[1]},setCalendars:function(){var j=th.quickBooker;var k=th.date.calcJulian;var f=d.checkIn;var l=d.checkOut;var h=new Date();var g=f.val();var n=l.val();var q=k(h);var m=k(new Date(g));var e=k(new Date(n));if(j.lastAction!="qbNights"){d.qbNightsValue.html("0 NIGHTS")}if(g==c.checkIn||m!=m||q>m){f.DatePickerSetDate(h,true);nextDate=j.calcDay(new Date(h),1)}else{f.DatePickerSetDate(g,true);nextDate=j.calcDay(new Date(g),1)}if((n==c.checkOut||e!=e||q>e)&&j.lastAction!="qbNights"){l.DatePickerSetDate(nextDate,true)}else{if(j.lastAction=="qbNights"){var o=+d.qbNightsValue.html().split(" ")[0];var p=j.calcDay(new Date(g),o);l.DatePickerSetDate(p,true);l.val(p)}else{var o=th.date.dayDiff2(new Date(g),new Date(n));l.DatePickerSetDate(n,true);d.qbNightsValue.html((o>0?o:"0")+" NIGHT"+(o!=1?"S":""))}}},init:function(){var e=b("#qbBooker");if(e.length){d.qb=e;d.checkIn=b("#in");d.checkOut=b("#out");d.promo=b("#txtPromCode");d.qbHotel=b("#qbHotel");d.qbNights=b("#qbNights");d.qbNightsValue=b("#qbNightsValue");d.qbAdults=b("#qbAdults");d.checkAvailBut=b("#bookingBut");c.hotel="CHOOSE HOTEL";c.checkIn="CHECK IN";c.checkOut="CHECK OUT";c.adults="1 ADULT";c.promo="PROMO (optional)";th.quickBooker.cleanup()}},cleanup:function(){var h=th.quickBooker;var g=d.checkIn;var j=d.checkOut;var n=d.promo;var k=d.qbHotel;var e=d.qbNights;var f=d.qbNightsValue;var m=d.qbAdults;var l=d.checkAvailBut;k.bind("click",function(o){k.find("ul.qbDropDownOptions").toggle();e.find("ul.qbDropDownOptions").hide();m.find("ul.qbDropDownOptions").hide();o.stopPropagation()});k.find("ul.qbDropDownOptions li").bind("click",function(p){var o=b(this),q;var q=o.attr("id");if(q!=""){value=o.html();o.parent().hide().siblings("span").html(value);th.quickBooker.selectedHotel=q.split("-")[0]}p.stopPropagation()});e.bind("click",function(o){k.find("ul.qbDropDownOptions").hide();e.find("ul.qbDropDownOptions").toggle();m.find("ul.qbDropDownOptions").hide();o.stopPropagation()});e.find("ul.qbDropDownOptions li").bind("click",function(q){var o=b(this),p,r;p=o.html();f.html(p+" NIGHT"+(p!="1"?"S":""));if(g.val()!=c.checkIn){var r=h.calcDay(new Date(g.val()),+p);j.DatePickerSetDate(r,true);j.val(r)}h.lastAction="qbNights"});m.bind("click",function(o){k.find("ul.qbDropDownOptions").hide();e.find("ul.qbDropDownOptions").hide();m.find("ul.qbDropDownOptions").toggle();o.stopPropagation()});m.find("ul.qbDropDownOptions li").bind("click",function(q){var o=b(this),p;p=o.html();o.parent().siblings("span").html(p+" ADULT"+(p!="1"?"S":""))});n.bind("focusin focusout",function(p){var o=b(this);if(p.type==="focusin"){if(o.val()==c.promo){o.val("")}}else{if(p.type==="focusout"){if(o.val()==""){o.val(c.promo)}}}});g.DatePicker({format:"m/d/Y",date:[],current:"",calendars:1,starts:1,onRender:function(o){return{disabled:(o.valueOf()<a.today)}},onChange:function(q,r){var o=j.val();var s,p=0;g.val(q);g.DatePickerHide();if(h.lastAction=="checkOut"){p=th.date.dayDiff2(new Date(q),new Date(o))}else{if(h.lastAction=="qbNights"){p=+f.html().split(" ")[0]}}if(p<=0){s=h.calcDay(new Date(q),1);j.DatePickerSetDate(s,true);j.val(s);f.html("1 NIGHT")}else{if(h.lastAction=="qbNights"){s=h.calcDay(new Date(q),p);j.DatePickerSetDate(s,true);j.val(s)}else{f.html((p>0?p:"0")+" NIGHT"+(p!=1?"S":""))}}}}).bind({focusin:function(){var o=b(this),p;if(o.val()==c.checkIn){o.val("")}p=d.qbMonth.eq(0);if(p.html()==a.currMonth){p.parent().prev().css("visibility","hidden")}else{p.parent().prev().css("visibility","")}},focusout:function(){var o=b(this);if(o.val()==""){o.val(c.checkIn)}},change:function(){h.setCalendars()}});j.DatePicker({format:"m/d/Y",date:[],current:"",calendars:1,starts:1,onRender:function(o){return{disabled:(o.valueOf()<a.today)}},onChange:function(q,r){var p,o;j.val(q);j.DatePickerHide();p=g.val();if(p!=c.checkIn){o=th.date.dayDiff2(new Date(p),new Date(q));f.html((o>0?o:"0")+" NIGHT"+(o!=1?"S":""))}h.lastAction="checkOut"}}).bind({focusin:function(){var o=b(this);var p=d.qbMonth.eq(1);if(o.val()==c.checkOut){o.val("");if(p.html()==a.currMonth){p.parent().prev().css("visibility","hidden")}}else{if(+o.val().split("/")[0]==((new Date()).getMonth()+1)){p.parent().prev().css("visibility","hidden");j.DatePickerSetDate(o.val(),true)}else{p.parent().prev().css("visibility","");j.DatePickerSetDate(o.val(),true)}}},focusout:function(){var o=b(this);if(o.val()==""){o.val(c.checkOut)}},change:function(){h.lastAction="checkOut";h.setCalendars()}});g.next().bind("click",function(){b(this).prev().trigger("click")});j.next().bind("click",function(){b(this).prev().trigger("click")});h.setCalendars();l.click(h.submit);k.find("#qbHotelValue").html(c.hotel);g.val(c.checkIn);j.val(c.checkOut);m.find("#qbAdultsValue").html(c.adults);n.val(c.promo);d.qbMonth=b("div.datepicker th.datepickerMonth span");a.currMonth=d.qbMonth.html();a.nextMonth=h.nextMonth(a.currMonth);a.today=(new Date(h.calcDay(new Date(),0))).valueOf();b("th.datepickerGoPrev a").click(function(){var o=b(this).parent();if(o.next().find("span").html()==a.nextMonth){o.css("visibility","hidden")}});b("th.datepickerGoNext a").click(function(){b(this).parent().siblings(".datepickerGoPrev").css("visibility","")});b(document).click(function(){k.find("ul.qbDropDownOptions").hide();e.find("ul.qbDropDownOptions").hide();m.find("ul.qbDropDownOptions").hide()})}};b(function(){th.quickBooker.init()})}(jQuery));(function(b){var c={},a={};th.home={setImage:function(e){var d=c.imageContainer.width();e.width("");e.height("");imgWidth=a.imgWidth;imgHeight=a.imgHeight;if(imgWidth<d){e.width(d);imgHeight=imgHeight*d/imgWidth;imgWidth=d}if(imgHeight<a.bodyHeight){e.height(a.bodyHeight);e.width("");imgWidth=imgWidth*a.bodyHeight/imgHeight;imgHeight=a.bodyHeight}c.homeLogos.css({right:imgWidth-d+37,bottom:imgHeight-a.bodyHeight})},setPage:function(){var e=th.setPage();var j=a.initial;var l=c.bodyContents;var k=c.title;var h,d;a.bodyHeight=e.bodyHeight;var g=a.initial.titleSize*e.scale;k.css({fontSize:g});Cufon.replace(k);var f=(a.initial.contentHeight-a.bodyContentHeight)*0.5-20;l.css("top",a.bodyHeight*j.contentTop/j.height+f);l.css("left",e.winWidth*0.37-220);if(a.imgWidth){th.home.setImage(c.homeImages)}},nextImage:function(){var d=c.homeImages.parent().parent(),f,e;f=d.filter(".active");e=f.index();f.fadeOut(1500,function(){b(this).removeClass("active")});d.eq((e+1==d.length?0:e+1)).fadeIn(1500,function(){b(this).addClass("active").next().find("img").lazyload();setTimeout(th.home.nextImage,4000)})},init:function(){var d=b("#homePage");if(d.length){c.homePage=d;c.imageContainer=d.find("div.imageContainer");c.bodyContents=d.find("div.bodyContents");c.title=c.bodyContents.find("h1");c.homeImages=c.imageContainer.find("img.full");c.homeLogos=c.imageContainer.find("img.logo");a.initial={height:553,contentTop:292,contentHeight:233,titleSize:66};a.bodyContentHeight=c.bodyContents.outerHeight(true)-20;th.home.cleanup()}},cleanup:function(){var e=th.home;var f=c.homeImages;var d=c.homeLogos;c.bodyContents.show();e.setPage();b(window).resize(e.setPage).data("resize",true);b(window).load(function(){var g=f.eq(0);g.parent().parent().addClass("active");a.imgWidth=g.width();a.imgHeight=g.height();e.setImage(f);f.eq(1).lazyload();d.eq(1).lazyload();setTimeout(e.nextImage,4000)})}};b(function(){th.home.init()})}(jQuery));(function(b){var c={},a={};th.city={nyc:{setPage:function(){var d=th.setPage();var f=c.sixty;var j=c.columbus;var h=c.smyth;var g=c.les;var e=c.gild;var k={};var l=d.scale;k.x=(d.winWidth-960*l)*0.5;k.y=(d.bodyHeight-550*l)*0.5;c.welcome.css({top:a.welcome.top*l+k.y-20,left:a.welcome.left*l+k.x}).find("h1").css({fontSize:a.welcome.size*l});c.to.css({top:a.to.top*l+k.y-15,left:a.to.left*l+k.x}).find("h1").css({fontSize:a.to.size*l});c.newYork.css({top:a.newYork.top*l+k.y-15,left:a.newYork.left*l+k.x}).find("h1").css({fontSize:a.newYork.size*l});Cufon.replace(c.titles);f.parent().parent().css({top:a.sixty.top*l+k.y,left:a.sixty.left*l+k.x});j.parent().parent().css({top:a.columbus.top*l+k.y,left:a.columbus.left*l+k.x});h.parent().parent().css({top:a.smyth.top*l+k.y,left:a.smyth.left*l+k.x});g.parent().parent().css({top:a.les.top*l+k.y,left:a.les.left*l+k.x});e.parent().parent().css({top:a.gild.top*l+k.y,left:a.gild.left*l+k.x});f.width(a.sixty.width*l);j.width(a.columbus.width*l);h.width(a.smyth.width*l);g.width(a.les.width*l);e.width(a.gild.width*l)},init:function(d){c.welcome=d.find("#cityWelcome");c.to=d.find("#cityTo");c.newYork=d.find("#cityNewYork");c.sixty=d.find("#city-1296 img");c.columbus=d.find("#city-1313 img");c.smyth=d.find("#city-1091 img");c.les=d.find("#city-1281 img");c.gild=d.find("#city-1089 img");c.titles=d.find("h1");a.welcome={top:248,left:47,size:72};a.to={top:213,left:371,size:56};a.newYork={top:311,left:466,size:65};a.sixty={top:290,left:15,width:259,height:195};a.columbus={top:335,left:318,width:371,height:152};a.smyth={top:310,left:740,width:171,height:209};a.les={top:43,left:405,width:179,height:239};a.gild={top:30,left:640,width:308,height:231};th.city.nyc.cleanup()},cleanup:function(){var d=th.city.nyc;c.welcome.show();c.to.show();c.newYork.show();c.sixty.parent().parent().show();c.columbus.parent().parent().show();c.smyth.parent().parent().show();c.les.parent().parent().show();c.gild.parent().parent().show();d.setPage();b(window).resize(d.setPage).data("resize",true)}},la:{setPage:function(){var d=th.setPage();var f=c.roos;var e=c.bhills;var g={};var h=d.scale;g.x=(d.winWidth-960*h)*0.5;g.y=(d.bodyHeight-550*h)*0.5;c.welcome.css({top:a.welcome.top*h+g.y-20,left:a.welcome.left*h+g.x}).find("h1").css({fontSize:a.welcome.size*h});c.la.css({top:a.la.top*h+g.y-15,left:a.la.left*h+g.x,fontSize:a.la.size*h}).find("h1").css({fontSize:a.la.size*h});Cufon.replace(c.titles);f.parent().parent().css({top:a.roos.top*h+g.y,left:a.roos.left*h+g.x});e.parent().parent().css({top:a.bhills.top*h+g.y,left:a.bhills.left*h+g.x});f.width(a.roos.width*h);e.width(a.bhills.width*h)},init:function(d){c.welcome=d.find("#cityWelcome");c.la=d.find("#cityLA");c.roos=d.find("#city-1093 img");c.bhills=d.find("#city-1092 img");c.titles=d.find("h1");a.welcome={top:248,left:47,size:72};a.la={top:200,left:462,size:64};a.roos={top:40,left:623,width:302,height:395};a.bhills={top:292,left:87,width:461,height:222};th.city.la.cleanup()},cleanup:function(){var d=th.city.la;c.welcome.show();c.la.show();c.roos.parent().parent().show();c.bhills.parent().parent().show();d.setPage();b(window).resize(d.setPage).data("resize",true)}},init:function(){var d=b("div.city");if(d.length){if(d.attr("id")=="NYC"){th.city.nyc.init(d)}else{if(d.attr("id")=="LA"){th.city.la.init(d)}}}}};b(function(){th.city.init()})}(jQuery));(function(b){var c={},a={};th.hotelLanding={setImage:function(f){var g,e,d;g=c.rightContainer.width();f.width("");f.height("");e=a.imgWidth;d=a.imgHeight;if(e<g){f.width(g);d=d*g/e}if(d<a.bodyHeight){f.height(a.bodyHeight);f.width("")}},setPage:function(){var d=th.setPage();var f=a.initial;var l=c.bodyContents;var k=l.filter(":visible").find("h1, h2");var e=c.hotelImage;a.bodyHeight=d.bodyHeight;c.header.css({fontSize:a.initial.headerSize*d.scale});c.title.css({fontSize:a.initial.titleSize*d.scale});Cufon.replace(k);var j=k.eq(0).height()+k.eq(1).outerHeight()+a.quoteHeight-20;var g=a.bodyHeight*f.contentTop/a.initial.height+(f.contentHeight-j)*0.5-20;var h=a.bodyHeight-j-30;l.css("top",(g>h?h:g));l.css("left",d.winWidth*0.37-225);if(e.length&&a.imgWidth){th.hotelLanding.setImage(e)}},init:function(){var e=b("#hotelLandingPage"),d=0;if(e.length){c.hotelLandingPage=e;c.rightContainer=e.find("div.imageContainer, #mapContainer");c.bodyContents=e.find("div.bodyContents");c.header=c.bodyContents.find("h2");c.title=c.bodyContents.find("h1");c.cufonObjs=[c.header[0],c.title[0]];c.hotelImage=c.rightContainer.find("img").eq(0);a.initial={height:553,contentTop:280,contentHeight:227,titleSize:66,headerSize:44};c.bodyContents.each(function(g,h){var j=b(h),f;f=j.show().find("div.quote").outerHeight(true)+(g!=0?20:0);d=(f>d?f:d);if(g!=0){j.hide()}});a.quoteHeight=d;th.hotelLanding.cleanup()}},cleanup:function(){var g=th.hotelLanding;var f=c.hotelImage;g.setPage();b(window).resize(g.setPage).data("resize",true);if(f.length){b(window).load(function(){var j=f.show().next().show();a.imgWidth=f.width();a.imgHeight=f.height();g.setImage(f)})}var e=window.location.href.split("/");if(e.length>=6){th.quickBooker.setHotel(e[5])}var h=c.bodyContents.attr("id"),d;if(h=="hotel2533"||h=="hotel1458"||h=="hotel2762"||h=="hotel7540"||h=="hotel7952"){d=b("div.bodyNav div.rotatingLinks").eq(0)}else{d=b("div.bodyNav div.rotatingLinks").eq(1)}if(d.length){d.remove()}}};b(function(){th.hotelLanding.init()})}(jQuery));(function(a){var b={};th.hotel={rotateQuote:function(d){var e=b.quoteTransparency;var c=b.quotes;var f=c.find("div.singleQuote");if(f.length>1){if(f.length<=d){d=0}setTimeout(function(){e.animate({opacity:0.01},800);c.fadeOut(800,function(){var g=f.eq(d).show().css("opacity",0.01);g.siblings().hide();c.show();e.height(c.outerHeight()).width(c.outerWidth()).stop().css("opacity",0.75);setTimeout(function(){g.animate({opacity:1},600,function(){th.hotel.rotateQuote(d+1)})},400)})},4500)}},loadNextImage:function(d){var c=a(d).next();if(c){c.lazyload({callback:function(){var e=this;setTimeout(function(){th.setBkgdHotelImage(a(e));th.hotel.loadNextImage(e)},10)}})}},deepLink:function(e){var c=window.location.href.replace("#",""),d;d=c.split("/");if(e=="back"){c="http://"+d[2]+"/"+d[3]+"/"+d[4]}else{c="http://"+d[2]+"/"+d[3]+"/"+d[4]+"/"+d[5]+(e!=""?"/"+e:"")}if(e=="reserve"){c+="?DCSext.EventType=BookNow&DCSext.EventPlace="+document.title}window.location.href=c},setPage:function(){var d=th.setPage();var e=b.bkgdImages;var c=b.scrollPane;b.scrollPane.jScrollPaneRemove();c.height(d.bodyHeight-c.position().top);b.scrollPane.jScrollPane();if(e){e.each(function(f,g){th.setBkgdHotelImage(a(g))})}},init:function(){var c=a("#hotel");if(c.length){b.quoteTransparency=c.find("#quoteTransparency");b.quotes=c.find("#quotes");b.scrollPane=c.find("#scroll-pane");b.bkgdImages=a("#divBackground img.extraBackground");th.hotel.cleanup()}},cleanup:function(){var e=th.hotel,c;e.setPage();a(window).resize(e.setPage).data("resize",true);a(window).load(function(){var f=b.bkgdImages.eq(0);th.setBkgdHotelImage(f);e.loadNextImage(f[0])});var d=window.location.href.split("/");if(d.length>=6){th.quickBooker.setHotel(d[5])}c=a.trim(b.quotes.html());if(c!=""){c=c.split("|");b.quotes.empty();for(i=0;i<c.length;i++){b.quotes.append('<div class="singleQuote">'+a.trim(c[i])+"</div>")}b.quotes.fadeIn(800,function(){e.rotateQuote(1)}).find("div.singleQuote").eq(0).show().siblings().hide();b.quoteTransparency.height(b.quotes.outerHeight()).width(b.quotes.outerWidth()).show().css("opacity",0.01).animate({opacity:0.75},800)}else{b.quotes.hide()}a("ul.dtlslist li:first").addClass("active")}};a(function(){th.hotel.init()})}(jQuery));(function(b){var c={},a={};th.collab={setPage:function(){var f=th.setPage();var e=c.scroll;var h=c.rightPanel;var d=c.blogScroll;var g=f.winWidth-a.rightPanelWidth-220;if(g>=a.minWidth){c.tdScroll.width(g)}else{c.tdScroll.width(a.minWidth);g=a.rightPanelWidth+g-a.minWidth;h.width(g).find("div.video-details").width(g-20).find("div.video-text").width(g-20)}e.jScrollPaneRemove();e.jScrollPane();if(d.length){d.jScrollPaneRemove();d.height(f.bodyHeight-d.position().top-50);d.jScrollPane()}},init:function(){var d=b("#collaborations");if(d.length){c.tdScroll=b("#td-scroll");c.scroll=b("#scroll");c.rightPanel=b("#rightPanel");c.blogScroll=b("#blogScroll");a.minWidth=0;a.rightPanelWidth=c.rightPanel.outerWidth(true);if(b("#artistHome").length){a.minWidth=640}th.collab.cleanup()}},cleanup:function(){var d=th.collab;c.tdScroll.show();d.setPage();b(window).resize(d.setPage).data("resize",true);b(window).load(function(){c.scroll.jScrollPaneRemove();c.scroll.jScrollPane();c.blogScroll.jScrollPaneRemove();c.blogScroll.jScrollPane()})}};b(function(){th.collab.init()})}(jQuery));(function(b){var c={},a={};th.existing={init:function(){var d=b("#existingReservations");if(d.length){c.existing=d;c.hotels=d.find("#ddHotels");c.hotelsList=d.find("#ddHotelsoptions");c.email=d.find("#emailAddress");c.reserveNumber=d.find("#reserveNumber");c.reserveBut=d.find("#existingReservationBut");c.iFrame=d.parent().find("#netBookerDiv");c.qbBooker=b("#qbBooker");c.hotelsError=d.find("#hotelsError");c.emailError=d.find("#emailAddressError");c.reserveError=d.find("#reserveNumberError");th.existing.cleanup()}},cleanup:function(){b(document).bind("click.closeHotelList",function(){c.hotelsList.hide()});c.hotels.bind("click",function(d){c.hotelsList.toggle();d.stopPropagation()});c.hotelsList.find("li").bind("click",function(g){var d=b(this),j;var f=d.attr("id"),h;if(f!=""){value=d.html();d.parent().hide().siblings("span").html(value);a.selectedHotel=f.split("-")[0]}g.stopPropagation()});c.reserveBut.bind("click",function(){var k=a.selectedHotel,f=c.email.val(),j=c.reserveNumber.val(),e=false,h,d;if(j==""){c.reserveError.html("* Required");e=true}else{c.reserveError.html("")}if(f==""){c.emailError.html("* Required");e=true}else{h=new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$","i");if(!h.test(f)){c.emailError.html("* Incorrect Format");e=true}else{c.emailError.html("")}}if(typeof k=="undefined"){c.hotelsError.html("* Required");e=true}else{c.hotelsError.html("")}if(!e){d="https://secure.netbookerng.com/singleShopper.jsp?acctid=";switch(k){case"061319":d+="5849760";break;case"061121":d+="5849761";break;case"061781":d+="5849763";break;case"061831":d+="5849777";break;case"061793":d+="5849766";break;case"061632":d+="5849768";break;case"061650":d+="5849767";break;case"061791":d+="5849765";break;case"061860":d+="5849764";break;case"061848":d+="5849762";break;case"046355":d+="12509505";break;case"20609507":d+="20609507";break}d+="&usestyle=partner&hassearch=false&mode=frame&processor=EXTERNAL&confno="+j+"&email="+f;try{_gaq.push(function(){var m=_gat._getTrackerByName();var l=document.getElementById("netBookerIFrame");l.src=m._getLinkerUrl(d)});c.qbBooker.hide();c.existing.hide();c.iFrame.show()}catch(g){c.iFrame.hide();c.qbBooker.show();c.existing.show()}}})}};b(function(){th.existing.init()})}(jQuery));$(function(){if(!$(window).data("resize")){th.setPage();$(window).resize(th.setPage)}});var isRoomStripOn=false;function hideToolTipChoose(){isRoomStripOn=true;setTimeout("hideToolTipChooseTimed()",100)}function hideToolTipChooseTimed(){if(isRoomStripOn){document.getElementById("toolTipChooseRoom").style.display="none"}}function showToolTipChoose(){isRoomStripOn=false;setTimeout("showToolTipChooseTimed()",100)}function showToolTipChooseTimed(){if(!isRoomStripOn){document.getElementById("toolTipChooseRoom").style.display="block"}}function setBackGround(a){a=((a.indexOf("ImageGen")>=0)?a:"/ImageGen.ashx?image="+a+"&width=1440");$("<img />").bind("load",function(){var b=$("#imgBackground").attr("src",a);if($("#hotel").length){b.hide();setTimeout(function(){th.setBkgdHotelImage(b);b.fadeIn(300)},10)}}).attr("src",a)}function showFeatureTabs(a){showFeatureTabs(a,"")}function showFeatureTabs(c,g){var e=document.getElementById("tabs-1");var d=document.getElementById("tabs-2");var b=document.getElementById("tabs-3");var a=document.getElementById("tabs-4");var f=document.getElementById(c);if(e){e.style.display="none"}if(d){d.style.display="none"}if(b){b.style.display="none"}if(a){a.style.display="none"}if(f){f.style.display="block"}if(g!=""){$("#"+g).jScrollPane()}$("ul.dtlslist li").eq($("#"+c).index()).addClass("active").siblings().removeClass("active")}var orgBGImage="";function showMoreDetails(e){var c=e.parentNode.parentNode.getElementsByTagName("img")[1];var f=e.parentNode.parentNode.getElementsByTagName("p")[0];var b=e.parentNode.parentNode.getElementsByTagName("p")[1];var a=document.getElementById("imgBackground");var d=e.parentNode.parentNode.getElementsByTagName("input")[0];if(orgBGImage==""){orgBGImage=a.src}if(b.style.display=="none"){b.style.display="inline";c.style.display="inline";e.innerHTML="BACK";if(d.value!=""){a.src=d.value}}else{f.style.display="inline";b.style.display="none";c.style.display="none";e.innerHTML="MORE DETAILS";a.src=orgBGImage}$("#scroll-pane").jScrollPane()}function showMagazineCover(a,b){var d=document.getElementById("aMagazineCover");var c=document.getElementById("imgMagazineCover");d.href=a;c.src=b}function showBlogArchive(a){var b=$(a.parentNode.parentNode).children("ul");if(b.css("display")=="none"){b.css("display","inline");a.innerHTML="-"+a.innerHTML.substring(1)}else{b.css("display","none");a.innerHTML="+"+a.innerHTML.substring(1)}$("#blogScroll").jScrollPane()}function shareIt(k,l,j){var a=null;var e=null;var n="Thompson Hotels - Blog";var g="";var m=true;var d="images/th-logohome.gif";if(l==null){l=n}if(j==null){j=g}if(k!=null){var h="";var c=location.href;var f=escape(l);var b=escape(j);switch(k.toLowerCase()){case"linkedin":h="http://www.linkedin.com/shareArticle?mini=true&url="+c+"&title="+f+"&summary="+b+"&source="+BookmarkRoot;window.open(h);break;case"digg":h="http://digg.com/remote-submit?phase=2&url="+c+"&title="+f+"&bodytext="+b;window.open(h);break;case"delicious":h="http://del.icio.us/post?url="+c+"&title="+f+"&description="+b;window.open(h);break;case"myspace":h="http://www.myspace.com/index.cfm?fuseaction=postto&u="+c+"&t="+f+"&c=";h+="<img src='"+d+"' /><br />";h+=b;window.open(h);break;case"twitter":if(m){b=c+" "+f+"-"+b}h="http://twitter.com/home?status="+b;window.open(h);break;case"facebook":h="http://www.facebook.com/sharer.php?u="+c+"&t="+f;window.open(h);break;case"blogger":h="http://www.blogger.com/blog_this.pyra?t="+b+"&u="+c+"&n="+f;window.open(h);break}}};
