jQuery.autocomplete=function(aK,ap){var ax=this;var W=1.5;var al=$(aK).attr("autocomplete","off");var Y=1;var ar=65000;if(ap.inputClass){al.addClass(ap.inputClass)}var aw=document.createElement("div");var aE=$(aw).hide().addClass(ap.resultsClass).css("position","absolute");if(ap.width>0){aE.css("width",ap.width)}$("body").append(aw);aK.autocompleter=ax;var ac=null;var am="";var ab=-1;var aD={};var ai=false;var aB=false;var aO=null;var aC=false;var aG=false;function aA(){aD={};aD.data={};aD.length=0}aA();if(ap.data!=null){var at="",i={},az=[];if(typeof ap.url!="string"){ap.cacheLength=1}for(var X=0;X<ap.data.length;X++){az=((typeof ap.data[X]=="string")?[ap.data[X]]:ap.data[X]);if(az[0].length>0){at=az[0].substring(0,1).toLowerCase();if(!i[at]){i[at]=[]}i[at].push(az)}}for(var Z in i){ap.cacheLength++;aJ(Z,i[Z])}}al.keydown(function(a){aO=a.keyCode;switch(a.keyCode){case 38:a.preventDefault();ag(-1);break;case 40:a.preventDefault();ag(1);break;case 9:case 13:if(ae()){al.get(0).blur();a.preventDefault()}break;case 16:case 17:case 18:break;default:ab=-1;if(ac){clearTimeout(ac)}ac=setTimeout(function(){aq()},ap.delay);break}}).focus(function(){aB=true}).blur(function(){aB=false;if(!aC){aM()}});ao();function aq(){if(aO==46||(aO>8&&aO<32)){aF()}var a=al.val();if(a==am){return}am=a;if(a.length>=ap.minChars){al.addClass(ap.loadingClass);ah(a)}else{al.removeClass(ap.loadingClass);aF()}}function ag(a){var b=$("li",aw);if(!b){return}ab+=a;if(ab<0){ab=0}else{if(ab>=b.size()){ab=b.size()-1}}b.removeClass("ac_over");$(b[ab]).addClass("ac_over")}function ae(){var b=$("li.ac_over",aw)[0];if(!b){var a=$("li",aw);if(ap.selectOnly){if(a.length==1){b=a[0]}}else{if(ap.selectFirst){b=a[0]}}}if(b){av(b);return true}else{return false}}function av(b){if(!b){b=document.createElement("li");b.extra=[];b.selectValue=""}var a=$.trim(b.selectValue?b.selectValue:b.innerHTML);aK.lastSelected=a;am=a;aE.html("");al.val(a);ao();if(ap.onItemSelect){setTimeout(function(){ap.onItemSelect(b)},1)}}function aN(d,b){var a=al.get(0);if(a.createTextRange){var c=a.createTextRange();c.collapse(true);c.moveStart("character",d);c.moveEnd("character",b);c.select()}else{if(a.setSelectionRange){a.setSelectionRange(d,b)}else{if(a.selectionStart){a.selectionStart=d;a.selectionEnd=b}}}a.focus()}function an(a){if(aO!=8){al.val(al.val()+a.substring(am.length));aN(am.length,a.length)}}function af(){var a=ak(ap.popupParent||al);var b;if(ap.width>0){b=ap.width}else{if(ap.popupParent){b=ap.popupParent.innerWidth()}else{b=al.innerWidth()}}var c;if(ap.popupParent){c=ap.popupParent.innerHeight()}else{c=al.outerHeight()}aE.css({width:parseInt(b)+"px",top:(a.y+c)+"px",left:a.x+"px"});aL()}function aM(){if(ac){clearTimeout(ac)}ac=setTimeout(ao,200)}function ao(){if(aG){return}aG=true;if(ac){clearTimeout(ac)}var a=al.removeClass(ap.loadingClass).val();if(aE.is(":visible")){aF()}if(ap.mustMatch){if(!aK.lastSelected||aK.lastSelected!=a){av(null)}}aG=false}function aL(){if(ap.resultsId){aE.attr("id",ap.resultsId)}aE.show();if(typeof ap.onResultsShow==="function"){ap.onResultsShow(aE[0])}}function aF(){aE.hide();if(typeof ap.onResultsHide==="function"){ap.onResultsHide(aE[0])}if(ap.resultsId){aE.removeAttr("id")}}function aH(a,b){if(b){al.removeClass(ap.loadingClass);aw.innerHTML="";if(!aB||b.length==0){return ao()}if($.browser.msie){aE.append(document.createElement("iframe"))}aw.appendChild(aa(b));if(ap.autoFill&&(al.val().toLowerCase()==a.toLowerCase())){an(b[0][0])}else{if(ap.selectFirst){$("li:first",aw).addClass("ac_over")}}af()}else{ao()}}function aI(d){if(!d){return null}var b=[];var e=d.split(ap.lineSeparator);for(var a=0;a<e.length;a++){var c=$.trim(e[a]);if(c){b[b.length]=c.split(ap.cellSeparator)}}return b}function aa(d){var f=document.createElement("ul");var g=d.length;if((ap.maxItemsToShow>0)&&(ap.maxItemsToShow<g)){g=ap.maxItemsToShow}for(var e=0;e<g;e++){var c=d[e];if(!c){continue}var a=document.createElement("li");if(ap.formatItem){a.innerHTML=ap.formatItem(c,e,g);a.selectValue=c[0]}else{a.innerHTML=c[0];a.selectValue=c[0]}var b=null;if(c.length>1){b=[];for(var h=1;h<c.length;h++){b[b.length]=c[h]}}a.extra=b;f.appendChild(a);$(a).hover(function(){$("li",f).removeClass("ac_over");$(this).addClass("ac_over");ab=$("li",f).indexOf($(this).get(0))},function(){$(this).removeClass("ac_over")}).click(function(j){j.preventDefault();j.stopPropagation();av(this)})}$(f).mousedown(function(){aC=true}).mouseup(function(){aC=false});return f}function ah(b){if(!ap.matchCase){b=b.toLowerCase()}var c=ap.cacheLength?k(b):null;if(c){aH(b,c)}else{if((typeof ap.url=="string")&&(ap.url.length>0)){Y+=1;if(Y>=ar){Y=0}var a=Y;$.get(ay(b),function(d){au(b,d,a)})}else{al.removeClass(ap.loadingClass)}}}function au(b,c,a){c=aI(c);aJ(b,c);if(a==Y){aH(b,c)}}function ay(c){var a=ap.url.indexOf("?")==-1?"?":"&";var b=ap.url+a+"q="+encodeURI(c);for(var d in ap.extraParams){b+="&"+d+"="+encodeURI(ap.extraParams[d])}return b}function k(d){if(!d){return null}if(aD.data[d]){return aD.data[d]}if(ap.matchSubset){for(var f=d.length-1;f>=ap.minChars;f--){var a=d.substr(0,f);var c=aD.data[a];if(c){var e=[];for(var h=0;h<c.length;h++){var b=c[h];var g=b[0];if(aj(g,d)){e[e.length]=b}}return e}}}return null}function aj(c,a){if(!ap.matchCase){c=c.toLowerCase()}var b=c.indexOf(a);if(b==-1){return false}return b==0||ap.matchContains}this.flushCache=function(){aA()};this.setExtraParams=function(a){ap.extraParams=a};this.findValue=function(){var a=al.val();if(!ap.matchCase){a=a.toLowerCase()}var b=ap.cacheLength?k(a):null;if(b){ad(a,b)}else{if((typeof ap.url=="string")&&(ap.url.length>0)){$.get(ay(a),function(c){c=aI(c);aJ(a,c);ad(a,c)})}else{ad(a,null)}}};function ad(d,f){if(f){al.removeClass(ap.loadingClass)}var g=(f)?f.length:0;var a=null;for(var e=0;e<g;e++){var c=f[e];if(c[0].toLowerCase()==d.toLowerCase()){a=document.createElement("li");if(ap.formatItem){a.innerHTML=ap.formatItem(c,e,g);a.selectValue=c[0]}else{a.innerHTML=c[0];a.selectValue=c[0]}var b=null;if(c.length>1){b=[];for(var h=1;h<c.length;h++){b[b.length]=c[h]}}a.extra=b}}if(ap.onFindValue){setTimeout(function(){ap.onFindValue(a)},1)}}function aJ(a,b){if(!b||!a||!ap.cacheLength){return}if(!aD.length||aD.length>ap.cacheLength){aA();aD.length++}else{if(!aD[a]){aD.length++}}aD.data[a]=b}function ak(b){var a=b.offset();return{x:Math.ceil(a.left),y:Math.ceil(a.top)}}};jQuery.fn.autocomplete=function(d,e,f){e=e||{};e.url=d;e.data=((typeof f=="object")&&(f.constructor==Array))?f:null;e=$.extend({inputClass:"ac_input",resultsClass:"ac_results",resultsId:null,lineSeparator:"\n",cellSeparator:"|",minChars:1,delay:400,matchCase:0,matchSubset:1,matchContains:0,cacheLength:1,mustMatch:0,extraParams:{},loadingClass:"ac_loading",selectFirst:false,selectOnly:false,maxItemsToShow:-1,autoFill:false,width:0,popupParent:null,onResultsShow:null,onResultsHide:null},e);e.width=parseInt(e.width,10);if(e.popupParent){e.popupParent=$(e.popupParent);if(e.popupParent.length==0){e.popupParent=null}}this.each(function(){var a=this;new jQuery.autocomplete(a,e)});return this};jQuery.fn.autocompleteArray=function(c,d){return this.autocomplete(null,d,c)};jQuery.fn.indexOf=function(c){for(var d=0;d<this.length;d++){if(this[d]==c){return d}}return -1};(function(h){var g=[];h.tools=h.tools||{};h.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(c,a,b){e[c]=[a,b]}};var e={toggle:[function(d){var c=this.getConf(),b=this.getTip(),a=c.opacity;if(a<1){b.css({opacity:a})}b.show();d.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){this.getTip().fadeIn(this.getConf().fadeInSpeed,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};function f(w,v){var a=this,r=h(this);w.data("tooltip",a);var q=w.next();if(v.tip){q=h(v.tip);if(q.length>1){q=w.nextAll(v.tip).eq(0);if(!q.length){q=w.parent().nextAll(v.tip).eq(0)}}}function b(j){var k=v.relative?w.position().top:w.offset().top,l=v.relative?w.position().left:w.offset().left,i=v.position[0];k-=q.outerHeight()-v.offset[0];l+=w.outerWidth()+v.offset[1];var n=q.outerHeight()+w.outerHeight();if(i=="center"){k+=n/2}if(i=="bottom"){k+=n}i=v.position[1];var m=q.outerWidth()+w.outerWidth();if(i=="center"){l-=m/2}if(i=="left"){l-=m}return{top:k,left:l}}var t=w.is(":input"),x=t&&w.is(":checkbox, :radio, select, :button"),u=w.attr("type"),c=v.events[u]||v.events[t?(x?"widget":"input"):"def"];c=c.split(/,\s*/);if(c.length!=2){throw"Tooltip: bad events configuration for "+u}w.bind(c[0],function(i){if(v.oneInstance){h.each(g,function(){this.hide()})}var j=q.data("trigger");if(j&&j[0]!=this){q.hide().stop(true,true)}i.target=this;a.show(i);c=v.events.tooltip.split(/,\s*/);q.bind(c[0],function(){a.show(i)});if(c[1]){q.bind(c[1],function(){a.hide(i)})}});w.bind(c[1],function(i){a.hide(i)});if(!h.browser.msie&&!t&&!v.predelay){w.mousemove(function(){if(!a.isShown()){w.triggerHandler("mouseover")}})}if(v.opacity<1){q.css("opacity",v.opacity)}var d=0,s=w.attr("title");if(s&&v.cancelDefault){w.removeAttr("title");w.data("title",s)}h.extend(a,{show:function(i){if(i){w=h(i.target)}clearTimeout(q.data("timer"));if(q.is(":animated")||q.is(":visible")){return a}function j(){q.data("trigger",w);var k=b(i);if(v.tip&&s){q.html(w.data("title"))}i=i||h.Event();i.type="onBeforeShow";r.trigger(i,[k]);if(i.isDefaultPrevented()){return a}k=b(i);q.css({position:"absolute",top:k.top,left:k.left});var l=e[v.effect];if(!l){throw'Nonexistent effect "'+v.effect+'"'}l[0].call(a,function(){i.type="onShow";r.trigger(i)})}if(v.predelay){clearTimeout(d);d=setTimeout(j,v.predelay)}else{j()}return a},hide:function(i){clearTimeout(q.data("timer"));clearTimeout(d);if(!q.is(":visible")){return}function j(){i=i||h.Event();i.type="onBeforeHide";r.trigger(i);if(i.isDefaultPrevented()){return}e[v.effect][1].call(a,function(){i.type="onHide";r.trigger(i)})}if(v.delay&&i){q.data("timer",setTimeout(j,v.delay))}else{j()}return a},isShown:function(){return q.is(":visible, :animated")},getConf:function(){return v},getTip:function(){return q},getTrigger:function(){return w},bind:function(j,i){r.bind(j,i);return a},onHide:function(i){return this.bind("onHide",i)},onBeforeShow:function(i){return this.bind("onBeforeShow",i)},onShow:function(i){return this.bind("onShow",i)},onBeforeHide:function(i){return this.bind("onBeforeHide",i)},unbind:function(i){r.unbind(i);return a}});h.each(v,function(j,i){if(h.isFunction(i)){a.bind(j,i)}})}h.prototype.tooltip=function(c){var b=this.eq(typeof c=="number"?c:0).data("tooltip");if(b){return b}var a=h.extend(true,{},h.tools.tooltip.conf);if(h.isFunction(c)){c={onBeforeShow:c}}else{if(typeof c=="string"){c={tip:c}}}c=h.extend(true,a,c);if(typeof c.position=="string"){c.position=c.position.split(/,?\s/)}if(c.lazy!==false&&(c.lazy===true||this.length>20)){this.one("mouseover",function(d){b=new f(h(this),c);b.show(d);g.push(b)})}else{this.each(function(){b=new f(h(this),c);g.push(b)})}return c.api?b:this}})(jQuery);(function(h){h.tools=h.tools||{};h.tools.overlay={version:"1.1.2",addEffect:function(c,b,a){e[c]=[b,a]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var e={};h.tools.overlay.addEffect("default",function(a){this.getOverlay().fadeIn(this.getConf().speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});var g=[];function f(t,p){var a=this,c=h(this),b=h(window),q,r,s,v=p.expose&&h.tools.expose.version;var u=p.target||t.attr("rel");r=u?h(u):null||t;if(!r.length){throw"Could not find Overlay: "+u}if(t&&t.index(r)==-1){t.click(function(i){a.load(i);return i.preventDefault()})}h.each(p,function(j,i){if(h.isFunction(i)){c.bind(j,i)}});h.extend(a,{load:function(i){if(a.isOpened()){return a}var l=e[p.effect];if(!l){throw'Overlay: cannot find effect : "'+p.effect+'"'}if(p.oneInstance){h.each(g,function(){this.close(i)})}i=i||h.Event();i.type="onBeforeLoad";c.trigger(i);if(i.isDefaultPrevented()){return a}s=true;if(v){r.expose().load(i)}var j=p.top;var k=p.left;var n=r.outerWidth({margin:true});var m=r.outerHeight({margin:true});if(typeof j=="string"){j=j=="center"?Math.max((b.height()-m)/2,0):parseInt(j,10)/100*b.height()}if(k=="center"){k=Math.max((b.width()-n)/2,0)}if(!p.absolute){j+=b.scrollTop();k+=b.scrollLeft()}r.css({top:j,left:k,position:"absolute"});i.type="onStart";c.trigger(i);l[0].call(a,function(){if(s){i.type="onLoad";c.trigger(i)}});if(p.closeOnClick){h(document).bind("click.overlay",function(o){if(!a.isOpened()){return}var x=h(o.target);if(x.parents(r).length>1){return}h.each(g,function(){this.close(o)})})}if(p.closeOnEsc){h(document).unbind("keydown.overlay").bind("keydown.overlay",function(o){if(o.keyCode==27){h.each(g,function(){this.close(o)})}})}return a},close:function(i){if(!a.isOpened()){return a}i=i||h.Event();i.type="onBeforeClose";c.trigger(i);if(i.isDefaultPrevented()){return}s=false;e[p.effect][1].call(a,function(){i.type="onClose";c.trigger(i)});var j=true;h.each(g,function(){if(this.isOpened()){j=false}});if(j){h(document).unbind("click.overlay").unbind("keydown.overlay")}return a},getContent:function(){return r},getOverlay:function(){return r},getTrigger:function(){return t},getClosers:function(){return q},isOpened:function(){return s},getConf:function(){return p},bind:function(j,i){c.bind(j,i);return a},unbind:function(i){c.unbind(i);return a}});h.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(j,i){a[i]=function(k){return a.bind(i,k)}});if(v){if(typeof p.expose=="string"){p.expose={color:p.expose}}h.extend(p.expose,{api:true,closeOnClick:p.closeOnClick,closeOnEsc:false});var d=r.expose(p.expose);d.onBeforeClose(function(i){a.close(i)});a.onClose(function(i){d.close(i)})}q=r.find(p.close||".close");if(!q.length&&!p.close){q=h('<div class="close"></div>');r.prepend(q)}q.click(function(i){a.close(i)})}h.fn.overlay=function(c){var b=this.eq(typeof c=="number"?c:0).data("overlay");if(b){return b}if(h.isFunction(c)){c={onBeforeLoad:c}}var a=h.extend({},h.tools.overlay.conf);c=h.extend(true,a,c);this.each(function(){b=new f(h(this),c);g.push(b);h(this).data("overlay",b)});return c.api?b:this}})(jQuery);(function(i){var f=i.tools.overlay;f.effects=f.effects||{};f.effects.apple={version:"1.0.1"};i.extend(f.conf,{start:{absolute:true,top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function j(b){var a=b.offset();return[a.top+b.height()/2,a.left+b.width()/2]}var h=function(d){var s=this.getOverlay(),x=this.getConf(),u=this.getTrigger(),b=this,a=s.outerWidth({margin:true}),e=s.data("img");if(!e){var p=s.css("backgroundImage");if(!p){throw"background-image CSS property not set for overlay"}p=p.substring(p.indexOf("(")+1,p.indexOf(")")).replace(/\"/g,"");s.css("backgroundImage","none");e=i('<img src="'+p+'"/>');e.css({border:0,position:"absolute",display:"none"}).width(a);i("body").append(e);s.data("img",e)}var c=i(window),t=x.start.top||Math.round(c.height()/2),v=x.start.left||Math.round(c.width()/2);if(u){var w=j(u);t=w[0];v=w[1]}if(!x.start.absolute){t+=c.scrollTop();v+=c.scrollLeft()}e.css({top:t,left:v,width:0,zIndex:x.zIndex}).show();e.animate({top:s.css("top"),left:s.css("left"),width:a},x.speed,function(){s.css("zIndex",x.zIndex+1).fadeIn(x.fadeInSpeed,function(){if(b.isOpened()&&!i(this).index(s)){d.call()}else{s.hide()}})})};var g=function(n){var e=this.getOverlay(),d=this.getConf(),m=this.getTrigger(),a=d.start.top,b=d.start.left;e.hide();if(m){var c=j(m);a=c[0];b=c[1]}e.data("img").animate({top:a,left:b,width:0},d.closeSpeed,n)};f.addEffect("apple",h,g)})(jQuery);(function(d){d.tools=d.tools||{};d.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function e(){if(d.browser.msie){var a=d(document).height(),b=d(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-b<20?b:a]}return[d(window).width(),d(document).height()]}function f(c,k){var m=this,a=d(this),n=null,l=false,b=0;d.each(k,function(h,g){if(d.isFunction(g)){a.bind(h,g)}});d(window).resize(function(){m.fit()});d.extend(this,{getMask:function(){return n},getExposed:function(){return c},getConf:function(){return k},isLoaded:function(){return l},load:function(j){if(l){return m}b=c.eq(0).css("zIndex");if(k.maskId){n=d("#"+k.maskId)}if(!n||!n.length){var h=e();n=d("<div/>").css({position:"absolute",top:0,left:0,width:h[0],height:h[1],display:"none",opacity:0,zIndex:k.zIndex});if(k.maskId){n.attr("id",k.maskId)}d("body").append(n);var i=n.css("backgroundColor");if(!i||i=="transparent"||i=="rgba(0, 0, 0, 0)"){n.css("backgroundColor",k.color)}if(k.closeOnEsc){d(document).bind("keydown.unexpose",function(p){if(p.keyCode==27){m.close()}})}if(k.closeOnClick){n.bind("click.unexpose",function(p){m.close(p)})}}j=j||d.Event();j.type="onBeforeLoad";a.trigger(j);if(j.isDefaultPrevented()){return m}d.each(c,function(){var p=d(this);if(!/relative|absolute|fixed/i.test(p.css("position"))){p.css("position","relative")}});c.css({zIndex:Math.max(k.zIndex+1,b=="auto"?0:b)});var g=n.height();if(!this.isLoaded()){n.css({opacity:0,display:"block"}).fadeTo(k.loadSpeed,k.opacity,function(){if(n.height()!=g){n.css("height",g)}j.type="onLoad";a.trigger(j)})}l=true;return m},close:function(g){if(!l){return m}g=g||d.Event();g.type="onBeforeClose";a.trigger(g);if(g.isDefaultPrevented()){return m}n.fadeOut(k.closeSpeed,function(){g.type="onClose";a.trigger(g);c.css({zIndex:d.browser.msie?b:null})});l=false;return m},fit:function(){if(n){var g=e();n.css({width:g[0],height:g[1]})}},bind:function(h,g){a.bind(h,g);return m},unbind:function(g){a.unbind(g);return m}});d.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(h,g){m[g]=function(i){return m.bind(g,i)}})}d.fn.expose=function(c){var b=this.eq(typeof c=="number"?c:0).data("expose");if(b){return b}if(typeof c=="string"){c={color:c}}var a=d.extend({},d.tools.expose.conf);c=d.extend(a,c);this.each(function(){b=new f(d(this),c);d(this).data("expose",b)});return c.api?b:this}})(jQuery);var filters={requerido:function(a){return($(a).val()!="")}};$.extend({stop:function(a){if(a.preventDefault){a.preventDefault()}if(a.stopPropagation){a.stopPropagation()}}});$(document).ready(function(){$("form.validable").bind("submit",function(d){if(typeof filters=="undefined"){return}$(this).find("input, textarea, select").each(function(e,f){if($(f).attr("className")!="undefined"){$(f).removeClass("error");$.each(new String($(f).attr("className")).split(" "),function(h,g){if($.isFunction(filters[g])){if(!filters[g](f)){$(f).addClass("error")}}})}});if($(this).find(".error").size()>0){$.stop(d||window.event);return false}return true});$("#NoHotel").click(function(){if($("#NoHotel:checked").val()!==undefined){$("#formHotel").val("Not Available");alert("Lo sentimos!\nSi su hotel no esta en la lista, Por favor llame USA/CAN: 1-877-319-2863, Mexico 01-800-837-1358\nO use nuestro Chat!")}else{$("#formHotel").val("")}});$("#aDate, #aDate2, #dDate, #date").datepicker({minDate:"0d",showAnim:"slideDown",dateFormat:"MM d, yy"});$("#termsbox").click(function(){if($(this).is(":checked")){$("#AceptTerm").val("Continue").attr("disabled",false)}else{$("#AceptTerm").val("Please accept the Legal Terms & Policies").attr("disabled",true)}});$("#Rsame").click(function(){if($("#Rsame").attr("checked")){$("#roomName").val($("#rName").val())}else{$("#roomName").val("")}});$("#cSame").click(function(){if($("#cSame").attr("checked")){$("#cName").val($("#rName").val())}else{$("#cName").val("")}});$("#pax").autocompleteArray(["1 Pasajero","2 pasajeros","3 pasajeros","4 pasajeros","5 pasajeros","6 pasajeros","7 pasajeros","8 pasajeros","9 pasajeros","10 pasajeros"],{delay:100,autoFill:true,selectFirst:true});$("#formHotel").autocomplete("http://es.cancun-transfers.net/ajax.php",{delay:100,minChars:2,cacheLength:15,matchContains:true,extraParams:{app:"hlist"},selectFirst:true,onItemSelect:a,onFindValue:b,formatItem:c});function b(e){if(e==null){var d="noID"}if(!!e.extra){var d=e.extra[0]}else{var d=e.selectValue}document.getElementById("hotID").value=d}function a(d){b(d)}function c(d){var e=document.getElementById("formHotel").value;return d[0].replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+e.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),'<strong class="ac_strong">$1</strong>')}});
