(function(){if(window.chi)window.C=window.chi;if(!window.console)window.console={yY:$('<ul></ul>').attr('id','console.log').css({'zIndex':'10000','height':'200px','width':'980px','margin':'auto','overflow':'auto','padding':'5px','border':'1px solid #999','backgroundColor':'#eee','font':'12px normal \"Courier New\"'}),show:function(){$('body').append(this.yY);this.yY.show()},hide:function(){this.yY.hide()},log:function(Kp){this.yY.append('<li><pre>'+Kp+'</pre></li>')}};window.chi={ko:'Choice Hotels International Base Javascript',gbl:{},scriptsLoc:'/assets/javascript',mod:{'header':{},'search':{},'search-results-listing':{},'search-map':{},'search-micro-map':{},'search-route-map':{},'compare-hotels':{},'create-profile-form':{},'my-stays-view-statements':{},'user-login-flyout':{},'my-account-flyout':{},'random-module':{},'my-status':{},'priviledges-sign-your-account':{},'myaccount-stay-history-current-activity':{},'forgot-user-name':{},'forgot-password':{},'customer-support-ask-faq-list':{},'create-privacy-preferences-form':{},'create-edirectory-order-form':{},'cp-member-form':{},'comment-about-stay-form':{},'choice-joinnow-profile-1':{},'choice-joinnow-profile-2':{},'choice-joinnow-cp-1':{},'choice-joinnow-cp-2':{},'ask-query':{},'user-login':{},'travel-agent-sign-in':{},'stand-alone-login':{},'sign-in':{},'sign-in-flyout':{},'sign-in-timeout':{},'report-missing-record-form':{},'content-tools':{},'promo':{},'customer-support-faq-details':{},'brand-landing-custom-content-1':{},'gallery-popup':{},'chi-ebrochure-space-calculator':{},'chi-ebrochure-gallery':{},'forecast-weather':{},'chi-ebrochure-meteric-calculator':{},'chi-ebrochure-currency-converter':{},'ebrochure-photo-gallery-thumbnails':{},'chi-ebrochure-hotel-room-configuration':{},'new-hotel-openings-country-list':{},'table-data':{},'travel-agent-search':{},'refer-a-friend-pt2-form':{},'refer-a-friend-pt3-form':{},'chi-regional-co-op-contnet':{},'chi-regional-co-op-map':{},'cp-us-residence-search':{},'rfp-contact-info':{},'chi-group-reservation':{},'ebrochure-map':{},'ebrochure-small-map':{},'meetings-events-RFP-requirement-form':{},'meetings-events-RFP-select-hotel':{},'chi-edirectory-registration-form':{},'my-favorites-search-results':{},'my-favorites':{},'chi-things-to-do-search':{},'chi-ebrochure-package-promo':{},'chi-ebrochure-package-listings':{},'chi-ebrochure-rp-rates-popup':{},'chi-package-search-results':{},'hotel-lookup':{},'change-reservation':{},'cancel-reservation':{},'view-reservation':{},'rsm-rates':{},'rsm-rates-multi':{},'reservation-form':{},'chi-search-hotel-deals-vertical':{},'chi-search-hotel-deals-horizontal':{},'chi-ebrochure-no-dates':{},'chi-find-reservation-confirmation-number':{},'chi-find-reservation-hotelcode-number':{},'chi-e-newsletter-form':{},'chi-cancel-reservation-form':{},'chi-reservation-actions':{},'chi-contact-us-email-support':{},'chi-best-internet-rate-claim-form':{},'email-folio':{},'social-bookmark':{},'award-redemption':{},'extended-stay':{},'chi-promotion-registration-form':{},'client-alerts':{},'leader-bios':{},'hotel-local-event-details':{}},Al:[],init:function(){$.each(chi.mod,function(bR,uR){$.extend(chi.mod[bR],{className:'.mod-'+bR,load:function(){if($.inArray(bR,chi.Al)<0){$.ajaxSetup({cache:true});$.getScript(chi.scriptsLoc+'/chi/chi.mod.'+bR+'.js',function(){try{chi.mod[bR].init()}catch(uV){}});chi.Al.push(bR)}}})});$("button").live('mouseover',function(){if(!$(this).hasClass('btn-disabled')){$(this).addClass('btn-hover')}});$("a.button").live('mouseover',function(){if(!$(this).hasClass('btn-disabled')){$(this).addClass('btn-hover')}});$("button, a.button").live('mouseout',function(){$(this).removeClass('btn-hover')});$(document).ready(function(){chi.Yo($('body'))})},gJ:function(wp){if(jQuery.browser.msie){$('button',wp?wp:document).each(function(){var SR=$('.btn-wrp-1',this);if(SR.length>0&&SR.outerWidth()>0){$(this).css('width',(SR.outerWidth(true)+6)+'px')}})}},map:{},time:{log:[],split:function(){this.log.push((new Date()).getTime())},output:function(pp,Qp){var Mp="Timing Log ["+pp+"]\n";var Vp=0;for(var ip=1;ip<this.log.length;ip++){var tp=this.log[ip]-this.log[ip-1];Mp+=' - Split ['+ip+']: '+tp+"\n";Vp+=tp}Mp+=' - Total Time: '+Vp;if(Qp)alert(Mp);else console.log(Mp);this.log=[]}},dialog:{cY:function(Wp){$('<div class=\"mod-dialog mod-dialog-ok\"></div>').html(Wp).dialog({bgiframe:true,modal:true,buttons:{'Ok':function(){$(this).dialog('close')}}})},confirm:function(Ap){},error:function(zp){}},Yo:function(Tp){$('.has-dfn',Tp).each(function(){if($(this).data('hasQtip'))return; var eR=$(this).next('.dfn');if($(this).attr('rel')||(eR.size()>0)){var JR=$(this).attr('rel')?{'url':$(this).attr('rel')}:eR.html();if($(this).is('a'))$(this).bind('click',function(){return false});$(this).find('span').css({'cursor':'help','text-decoration':'underline'});$(this).qtip({content:JR,position:{corner:{target:'bottomMiddle',tooltip:'topMiddle'}},style:{width:$(this).attr('rev')?parseInt($(this).attr('rev'),10)+20:200,tip:{corner:'topMiddle',color:false,size:{x:30,y:10}},border:{width:2,radius:5,color:'#eee'}},show:{delay:1000},hide:{fixed:true,delay:1000}})}$(this).data('hasQtip',true)})},popWindow:function(Hp,Np,Pp,yp){var Fp;var _p;var Up;var ap;if(document.all){if(document.body){Fp=screenLeft;_p=screenTop;Up=document.body.clientWidth;ap=document.body.clientHeight}else {Fp=0;_p=0;Up=screen.width;ap=screen.height}}else {Fp=screenX;_p=screenY;Up=outerWidth;ap=outerHeight}var qp=parseInt(Pp);var mp=parseInt(yp);Fp=Fp+((Up-qp)/2);_p=_p+((ap-mp)/2);if((Fp+qp)>screen.width)Fp=screen.width-Pp-10;if((_p+mp)>screen.height)_p=screen.height-yp-10;CGA=window.open(Hp,Np,"toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width="+Pp+",height="+yp+",top="+_p+",left="+Fp);try{CGA.moveTo(Fp,_p)}catch(np){}try{CGA.resizeTo(Pp,yp)}catch(np){}CGA.focus();return CGA},printPage:function(op){$(op.document).find('.print-body').html($('.printme:first').html());op.document.title=window.document.title;$(op.document).find('.print-body').bind('click',function(){return (false)});$(op.document).find('.print-page-link').bind('click',function(){op.print();return (false)});$(op.document).find('.close-page-link').bind('click',function(){op.close();return (false)});$(op.document).find('.print-orig-url').text(window.location.href)}};chi.init()})();$(document).ready(function(){});jQuery.cookie=function(cp,bf,Ef){if(typeof bf!='undefined'){Ef=Ef||{};if(bf===null){bf='';Ef.$o=-1}var Bp='';if(Ef.$o&&(typeof Ef.$o=='number'||Ef.$o.toUTCString)){var ef;if(typeof Ef.$o=='number'){ef=new Date();ef.setTime(ef.getTime()+(Ef.$o*24*60*60*1000))}else {ef=Ef.$o}Bp='; expires='+ef.toUTCString()}var uf=Ef.path?'; path='+(Ef.path):'';var jp=Ef.domain?'; domain='+(Ef.domain):'';var Dp=Ef.Oo?'; secure':'';document.cookie=[cp,'=',encodeURIComponent(bf),Bp,uf,jp,Dp].join('')}else {var Jf=null;if(document.cookie&&document.cookie!=''){var Sf=document.cookie.split(';');for(var Yf=0;Yf<Sf.length;Yf++){var vp=jQuery.trim(Sf[Yf]);if(vp.substring(0,cp.length+1)==(cp+'=')){Jf=decodeURIComponent(vp.substring(cp.length+1));break}}}return Jf}};