1/*JTools*/function setCities(e,t,n){var o=document.getElementById(t),a=0,l=Array(e),r=Array(e);$(xmlData).find("Country").each(function(){var e=($(this).find("countrySelectText").text(),$(this).find("countrySelectVal").text());o.value==e&&($(this).find("City").each(function(){var e=$(this).find("cityNameSelectText").text(),t=$(this).find("cityNameSelectVal").text();t&&(l.push(e),r.push(t))}),a++)}),changeSelect(n,l,r),citySelectField=document.getElementById(n),sortSelect(citySelectField,1)}function setCountries(e,t){if(selectField=document.getElementById(t),null==selectField||void 0==selectField)return!1;selectField.options.length=0;var n=0;for(country in e)selectField.options[n]=new Option(e[country][0],country),n++}function changeSelect(e,t,n){for(selectField=document.getElementById(e),o=selectField.options.length-1;o>=0;o--)selectField.removeChild(selectField.options[o]);for(var o=0;o<t.length;o++)selectField.options[o]=new Option(t[o],n[o])}function sortCountrySelect(e,t,n){selectField=document.getElementById(e);var o=new Array;for(i=t;i<selectField.options.length;i++)o[i]=selectField.options[i].text;for(o.sort(),i=0;i<selectField.options.length-t;i++)selectField.options[t+i].text=o[i],selectField.options[t+i].value=getCitiesArrayIndex(o[i],n)}function removeAccent(e){var t=e.toLowerCase();return t=t.replace(new RegExp("\\s","g"),""),t=t.replace(new RegExp("[à áâãäå]","g"),"a"),t=t.replace(new RegExp("æ","g"),"ae"),t=t.replace(new RegExp("ç","g"),"c"),t=t.replace(new RegExp("[èéêë]","g"),"e"),t=t.replace(new RegExp("[ìÃîï]","g"),"i"),t=t.replace(new RegExp("ñ","g"),"n"),t=t.replace(new RegExp("[òóôõö]","g"),"o"),t=t.replace(new RegExp("Å","g"),"oe"),t=t.replace(new RegExp("[ùúûü]","g"),"u"),t=t.replace(new RegExp("[ýÿ]","g"),"y"),t=t.replace(new RegExp("\\W","g"),"")}function sortSelect(e,t){for(var n=new Array,o=0;o<e.options.length-t;o++)n[o]=new Array,n[o][0]=removeAccent(e.options[o+t].text),n[o][1]=e.options[o+t].text,n[o][2]=e.options[o+t].value;for(n.sort();e.options.length>t;)e.options[t]=null;for(var o=0;o<n.length;o++){var a=new Option(n[o][1],n[o][2]);e.options[o+t]=a}}function getCitiesArrayIndex(e,t){for(var n in t)if(t[n][0]===e)return n;return""}function triggerWarning(e){document.getElementById("warning").innerHTML="<p>"+e+"</p>",document.getElementById("warning").style.display="block"}function closeWarning(){document.getElementById("warning").style.display="none"}function cardchange(e){var t=document.getElementById("cctype").value,n=t.indexOf("-"),o=(t.substring(0,n),t.substring(n+1)),a=document.getElementById("book-settle-currency");if("all"!=o.toLowerCase()&&o.toLowerCase()!=a.value.toLowerCase()){for(var l=0;l<a.options.length&&a.options[l].value.toLowerCase()!=o.toLowerCase();)l++;l<a.options.length&&(a.selectedIndex=l),booking_confirm(e,!0)}}function booking_confirm(e,t,n){var o=document.getElementById("firstname").value,a=document.getElementById("lastname").value,l=document.getElementById("Nationality").value,r=document.getElementById("gender").value,u=document.getElementById("arrival_time").value,m=document.getElementById("EmailAddress").value,c=document.getElementById("sms").value,d=document.getElementById("phone_number").value,i=document.getElementById("sign_me_up").value,s=document.getElementById("mail_subscribe").checked,g=document.getElementById("bsid").value,y=document.getElementById("ccname").value,v=document.getElementById("ccnumber").value.replace(/ /g,""),p=document.getElementById("cctype").value,_=p.indexOf("-"),f=p.substring(0,_),h=document.getElementById("ccexpiry_m").value,E=document.getElementById("ccexpiry_y").value,B=document.getElementById("cvv").value,I=document.getElementsByName("book-roomNumber[]"),b=document.getElementsByName("book-roomTypeDescription[]"),k=document.getElementsByName("book-roomTypeDescriptionTranslated[]"),w=document.getElementById("secure-final").value,x="",C="",A="",N="",S="",T="",F=document.getElementById("analytic-value").value;1==w&&(x=document.getElementById("secure-cookie").value,C=document.getElementById("secure-pares").value,A=document.getElementById("secure-transid").value,N=document.getElementById("secure-newsessionid").value,S=document.getElementById("secure-ip").value,T=document.getElementById("secure-usersessionid").value);var D=null;null!=document.getElementById("ccvalidfrom_m")&&(D=document.getElementById("ccvalidfrom_m").value);var P=null;null!=document.getElementById("ccvalidfrom_y")&&(P=document.getElementById("ccvalidfrom_y").value);var O=null;null!=document.getElementById("issueno")&&(O=document.getElementById("issueno").value);var R=document.getElementById("book-currency").value;switch(n.toLowerCase()){case"eur":n="EUR";break;case"usd":n="USD";break;case"gbp":n="GBP";break;default:n="EUR"}var L=document.getElementsByName("book-roomPreferences[]"),M=document.getElementsByName("book-nbPersons[]"),U=document.getElementById("book-propertyName").value,
1j=document.getElementById("propertyNumber").value,H=document.getElementById("book-dateStart").value,V=document.getElementById("book-numNights").value;1!=t&&(t=!1);for(var W=new Array,q=new Array,G=0;G<L.length;G++)W.push(L[G].value),q.push(M[G].value);for(var Y=new Array,J=new Array,z=new Array,G=0;G<b.length;G++)J.push(b[G].value),Y.push(I[G].value),z.push(k[G].value);$("#submit-payment").hide(),$(".api_error").hide(),0==t&&($("#ssl-img").hide(),$(".help_button_booking").hide(),$("#loading_message").show()),1==t&&$("#loading_message_cur").show(),$.ajax({type:"POST",url:e+"chostel/booking_check/",data:{firstname:o,lastname:a,nationality:l,gender:r,arrival_time:u,email_address:m,phone_number:d,sms:c,sign_me_up:i,mail_subscribe:s,bsid:g,ccname:y,ccnumber:v,cctype:f,ccexpiry_m:h,ccexpiry_y:E,cvv:B,ccvalidfrom_m:D,ccvalidfrom_y:P,issueno:O,roomPreferences:W.toString(),roomNumber:Y.toString(),roomTypeDescription:J.toString(),roomTypeDescriptionTranslated:z.toString(),nbPersons:q.toString(),propertyName:U,propertyNumber:j,dateStart:H,numNights:V,bookCurrency:R,settleCurrency:n,secure_final:w,secure_cookie:x,secure_pares:C,secure_transid:A,secure_newsession:N,secure_ip:S,secure_usersession:T,refresh:t,CADDepositAmount:F,csrf_token:csrf_value},success:function(e){if($("#loading_message").hide(),$("#loading_message_cur").hide(),$("#main").html(e),0==t){$(".booking_widget").hide();var n=$("#wrapper"),o=n.offset().top;$("html,body").animate({scrollTop:o},1e3)}}})}function booking_confirm2(e,t,n){var o=document.getElementById("firstname").value,a=document.getElementById("lastname").value,l=document.getElementById("Nationality").value,r=document.getElementById("arrival_time").value,u=document.getElementById("EmailAddress").value,m=document.getElementById("phone_number").value,c=document.getElementById("sms").value,d=document.getElementById("sign_me_up").value,i=document.getElementById("mail_subscribe").checked,s=document.getElementById("analytic-value").value,g=document.getElementById("female_count").value,y=document.getElementById("male_count").value,v=document.getElementById("propertyCardTypes").value,p=document.getElementById("ccname").value,_=document.getElementById("ccnumber").value.replace(/ /g,""),f=document.getElementById("cctype").value,h=document.getElementById("ccexpiry_m").value,E=document.getElementById("ccexpiry_y").value,B=document.getElementById("cvv").value,I=null;null!=document.getElementById("card_store_agree")&&(I=document.getElementById("card_store_agree").checked);var b=null;null!=document.getElementById("ccvalidfrom_m")&&(b=document.getElementById("ccvalidfrom_m").value);var k=null;null!=document.getElementById("ccvalidfrom_y")&&(k=document.getElementById("ccvalidfrom_y").value);var w=null;null!=document.getElementById("issueno")&&(w=document.getElementById("issueno").value);var x=document.getElementById("book-currency").value,C=document.getElementById("book-amount").value,A=document.getElementsByName("book-roomPreferences[]"),N=document.getElementsByName("book-nbPersons[]"),S=document.getElementById("book-propertyName").value,T=document.getElementById("propertyNumber").value,F=document.getElementById("book-dateStart").value,D=document.getElementById("book-numNights").value,P=(document.getElementById("book-deposit_percent").value,document.getElementById("book-group_book_id").value),O=document.getElementById("book-web_quotation").value,R=document.getElementById("book-booking_fee").value,L=document.getElementById("book-booking_fee_amount").value,M=document.getElementById("book-country_by_ip_iso").value;1!=t&&(t=!1);for(var U=new Array,j=new Array,H=0;H<A.length;H++)U.push(A[H].value),j.push(N[H].value);$("#submit-payment").hide(),$(".api_error").hide(),0==t&&($("#ssl-img").hide(),$(".help_button_booking").hide(),$("#loading_message").show()),1==t&&$("#loading_message_cur").show();var V=get_list_additional_names();$.ajax({type:"POST",url:e+"chostelbk/booking_check/",timeout:1e5,dataType:"html",data:{firstname:o,lastname:a,nationality:l,female_count:g,male_count:y,arrival_time:r,email_address:u,phone_number:m,sms:c,sign_me_up:d,mail_subscribe:i,ccname:p,ccnumber:_,cctype:f,ccexpiry_m:h,ccexpiry_y:E,cvv:B,ccvalidfrom_m:b,ccvalidfrom_y:k,issueno:w,roomPreferences:U.toString(),nbPersons:j.toString(),propertyName:S,propertyNumber:T,dateStart:F,numNights:D,bookCurrency:x,bookAmount:C,settleCurrency:n,propertyCardTypes:v,refresh:t,CADDepositAmount:s,additional_names_tags:JSON.stringify(V),group_book_id:P,web_quotation:O,booking_fee:R,booking_fee_amount:L,country_by_ip_iso:M,card_store_agree:I,csrf_token:csrf_value},success:function(e){if($("#loading_message").hide(),$("#loading_message_cur").hide(),$("#main").html(e),$("#wrapper").addClass("booking_check_complete"),0==t){$(".booking_widget").hide();var n=$("#wrapper"),o=n.offset().top;$("html,body").animate({scrollTop:o},1e3)}}})}function booking_confirm3(e,t,n){var o=document.getElementById("firstname").value,a=document.getElementById("lastname").value,l=document.getElementById("Nationality").value,r=document.getElementById("arrival_time").value,u=document.getElementById("EmailAddress").value,m=document.getElementById("phone_number").value,c=document.getElementById("sms").value,d=document.getElementById("sign_me_up").value,i=document.getElementById("mail_subscribe").checked,s=document.getElementById("analytic-value").value,g=document.getElementById("female_count").value,y=document.getElementById("male_count").value,v=document.getElementById("total_amount").value,p=document.getElementById("propertyCardTypes").value,_=document.getElementById("ccname").value,f=document.getElementById("ccnumber").value.replace(/ /g,""),h=document.getElementById("ccexpiry_m").value,E=document.getElementById("ccexpiry_y").value,B=document.getElementById("cvv").value,I=document.getElementById("str
1ipeToken").value,b=null;null!=document.getElementById("ccvalidfrom_m")&&(b=document.getElementById("ccvalidfrom_m").value);var k=null;null!=document.getElementById("ccvalidfrom_y")&&(k=document.getElementById("ccvalidfrom_y").value);var w=null;null!=document.getElementById("issueno")&&(w=document.getElementById("issueno").value);var x=document.getElementById("book-currency").value,C=document.getElementById("book-amount").value,A=document.getElementsByName("book-roomPreferences[]"),N=document.getElementsByName("book-nbPersons[]"),S=document.getElementById("book-propertyName").value,T=document.getElementById("propertyNumber").value,F=document.getElementById("book-dateStart").value,D=document.getElementById("book-numNights").value;1!=t&&(t=!1);for(var P=new Array,O=new Array,R=0;R<A.length;R++)P.push(A[R].value),O.push(N[R].value);$("#submit-payment").hide(),$(".api_error").hide(),0==t&&($("#ssl-img").hide(),$(".help_button_booking").hide(),$("#loading_message").show()),1==t&&$("#loading_message_cur").show();for(var L=document.getElementsByName("additional_firstname[]"),M=document.getElementsByName("additional_lastname[]"),U=new Array,j=new Array,R=0;R<L.length;R++)L[R].value&&M[R].value&&(U.push(L[R].value),j.push(M[R].value));$.ajax({type:"POST",url:e+"/whostel/checkout/",data:{firstname:o,lastname:a,nationality:l,female_count:g,male_count:y,arrival_time:r,email_address:u,phone_number:m,sms:c,sign_me_up:d,mail_subscribe:i,ccname:_,ccnumber:f,total_amount:v,ccexpiry_m:h,ccexpiry_y:E,cvv:B,ccvalidfrom_m:b,ccvalidfrom_y:k,issueno:w,roomPreferences:P.toString(),nbPersons:O.toString(),propertyName:S,propertyNumber:T,dateStart:F,numNights:D,bookCurrency:x,bookAmount:C,settleCurrency:n,propertyCardTypes:p,refresh:t,CADDepositAmount:s,additional_firstnames:U.toString(),additional_lastnames:j.toString(),stripeToken:I,csrf_token:csrf_value},success:function(e){if($("#loading_message").hide(),$("#loading_message_cur").hide(),$("#main").html(e),0==t){$(".booking_widget").hide();var n=$("#wrapper"),o=n.offset().top;$("html,body").animate({scrollTop:o},1e3)}}})}function showissueno(){$(".issue_no").show()}function hideissueno(){$(".issue_no").hide()}
1function showvalidfrom(){$(".valid_from").show()}function hidevalidfrom(){$(".valid_from").hide()}function pweb_setCookie(e,t,n,o){var a=new Date;a.setHours(a.getHours()+n);var l=escape(t)+(null==n?"":"; expires="+a.toUTCString());o?document.cookie=e+"="+l+"; path="+o:document.cookie=e+"="+l+"; path=/"}function getCookie(e){return document.cookie.length>0&&(c_start=document.cookie.indexOf(e+"="),-1!=c_start)?(c_start=c_start+e.length+1,c_end=document.cookie.indexOf(";",c_start),-1==c_end&&(c_end=document.cookie.length),unescape(document.cookie.substring(c_start,c_end))):""}function customurlencode(e){return"undefined"==typeof e?"":(e=e.replace("/","-2F-"),e=e.replace(/'/g,"-27-"),e=e.replace(/ /g,"+"))}function isInteger(e){var t;for(t=0;t<e.length;t++){var n=e.charAt(t);if("0">n||n>"9")return!1}return!0}function stripCharsInBag(e,t){var n,o="";for(n=0;n<e.length;n++){var a=e.charAt(n);-1==t.indexOf(a)&&(o+=a)}return o}function daysInFebruary(e){return e%4!=0||e%100==0&&e%400!=0?28:29}function DaysArray(e){for(var t=new Array,n=1;e>=n;n++)this[n]=31,(4==n||6==n||9==n||11==n)&&(t[n]=30),2==n&&(t[n]=29);return t}function isValidDate(e){var t=DaysArray(12),n=e.indexOf(dtCh),o=e.indexOf(dtCh,n+1),a=e.substring(0,n),l=e.substring(n+1,o),r=e.substring(o+1),u=a;"0"==r.charAt(0)&&r.length>1&&(r=r.substring(1)),"0"==l.charAt(0)&&l.length>1&&(l=l.substring(1));for(var m=1;3>=m;m++)"0"==u.charAt(0)&&u.length>1&&(u=u.substring(1));var c=parseInt(l),d=parseInt(r),i=parseInt(u);return-1==n||-1==o?!1:l.length<1||1>c||c>12?!1:r.length<1||1>d||d>31||2==c&&d>daysInFebruary(i)||d>t[c]?!1:4!=a.length||0==i||minYear>i?!1:-1!=e.indexOf(dtCh,o+1)||0==isInteger(stripCharsInBag(e,dtCh))?!1:!0}function auto_persons_count(e,t,n){for(var o=n-document.getElementById(e).value,a=document.getElementById(t),l=0;l<a.options.length&&a.options[l].value!=o;)l++;l<a.options.length&&(a.selectedIndex=l)}function checkForMaxGuests(e,t){}function capitalise(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function add_newinput(){}function close_additional_names(){return $("#additional_names_popup").hide(),!1}function get_list_additional_names(){var e=[];return $("div.name_lastname").each(function(){var t=[],n=$(this).find(".additional_firstname_one").val(),o=$(this).find(".additional_lastname_two").val();t.push(n,o),""!==n&&""!==o&&e.push(t)}),e}function get_diff_days(e,t){var n=new Date(e),o=new Date(t),a=864e5,l=
vendor: 4,245 bytes, lines 1-2
1Math.round(Math.abs((n.getTime()-o.getTime())/a));return l}function get_diff_days_signed(e,t){var n=new Date(e),o=new Date(t),a=864e5,l=-Math.round((n.getTime()-o.getTime())/a);return l}var xmlData=null,dtCh="-",minYear=1900; 2/*! fancyBox v2.1.4 */ (function(C,z,f,r){var q=f(C),n=f(z),b=f.fancybox=function(){b.open.apply(this,arguments)},H=navigator.userAgent.match(/msie/),w=null,s=z.createTouch!==r,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},p=function(a){return a&&"string"===f.type(a)},F=function(a){return p(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&F(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},x=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.4",defaults:{padding:15,margin:20,width:800, height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left", 34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+ (H?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1, isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k, c.metadata())):k=c);g=d.href||k.href||(p(c)?c:null);h=d.title!==r?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));p(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":p(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(p(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&& k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==r&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;
2a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current|| b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer= setTimeout(b.next,b.current.playSpeed))},c=function(){d();f("body").unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,f("body").bind({"afterShow.player onUpdate.player":e,"onCancel.player beforeClose.player":c,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(p(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))}, prev:function(a){var d=b.current;d&&(p(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==r&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({}, e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(w),w=null);b.isOpen&&!w&&(w=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),w=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"), b.trigger("onUpdate")),b.update())},hideLoading:function(){n.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");n.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked|| !1,d={x:q.scrollLeft(),y:q.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&C.innerWidth?C.innerWidth:q.width(),d.h=s&&C.innerHeight?C.innerHeight:q.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");n.unbind(".fb");q.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(q.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&n.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k= e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==r)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&& "hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1
vendor: 4,234 bytes, line 2
2)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d, e){e&&(b.helpers[d]&&f.isFunction(b.helpers[d][a]))&&(e=f.extend(!0,{},b.helpers[d].defaults,e),b.helpers[d][a](e,c))});f.event.trigger(a+".fb")}},isImage:function(a){return p(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(a){return p(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&& (d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive= !0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))});b.trigger("onReady"); if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width= this.width;b.coming.height=this.height;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g, (new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a= b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents(); e=a.content;c=a.type;k=a.scrolling;
2f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder", !1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow"); a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth, v=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,y=h.margin,p=l(y[1]+y[3]),r=l(y[0]+y[2]),z,A,t,D,B,G,C,E,w;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");y=l(k.outerWidth(!0)-k.width());z=l(k.outerHeight(!0)-k.height());A=p+y;t=r+z;D=F(c)?(a.w-A)*l(c)/100:c;B=F(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(w=h.content,h.autoHeight&&1===w.data("ready"))try{w[0].contentWindow.document.location&&(g.width(D).height(9999),G=w.contents().find("body"),q&&G.css("overflow-x", "hidden"),B=G.height())}catch(H){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(D),h.autoHeight||g.height(B),h.autoWidth&&(D=g.width()),h.autoHeight&&(B=g.height()),g.removeClass("fancybox-tmp");c=l(D);j=l(B);E=D/B;m=l(F(m)?l(m,"w")-A:m);n=l(F(n)?l(n,"w")-A:n);u=l(F(u)?l(u,"h")-t:u);v=l(F(v)?l(v,"h")-t:v);G=n;C=v;
2h.fitToView&&(n=Math.min(a.w-A,n),v=Math.min(a.h-t,v));A=a.w-p;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/E)),j>v&&(j=v,c=l(j*E)),c<m&&(c=m,j=l(c/E)),j<u&& (j=u,c=l(j*E))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,v)));if(h.fitToView)if(g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height(),h.aspectRatio)for(;(a>A||p>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(v,j-10)),c=l(j*E),c<m&&(c=m,j=l(c/E)),c>n&&(c=n,j=l(c/E)),g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height();else c=Math.max(m,Math.min(c,c-(a-A))),j=Math.max(u,Math.min(j,j-(p-r)));q&&("auto"===s&&j<B&&c+y+ q<A)&&(c+=q);g.width(c).height(j);e.width(c+y);a=e.width();p=e.height();e=(a>A||p>r)&&c>m&&j>u;c=h.aspectRatio?c<G&&j<C&&c<D&&j<B:(c<G||j<C)&&(c<D||j<B);f.extend(h,{dim:{width:x(a),height:x(p)},origWidth:D,origHeight:B,canShrink:e,canExpand:c,wPadding:y,hPadding:z,wrapSpace:p-k.outerHeight(!0),skinSpace:k.height()-j});!w&&(h.autoHeight&&j>u&&j<v&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute", top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=x(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=x(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&& (d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a= a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())): (c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:x(c.top-h*a.topRatio),left:x(c.left-j*a.leftRatio),width:x(f+j),height:x(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"=== f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c, {duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=x(l(e[g])-200),c[g]="+=200px"):(e[g]=x(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a= b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo("body"); this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){f(a.target).hasClass("fancybox-overlay")&&(b.isActive?b.close():d.close())});this.overlay.css(a.css).show()}, close:function(){f(".fancybox-overlay").remove();q.unbind("resize.overlay");this.overlay=null;!1!==this.margin&&(f("body").css("margin-right",this.margin),this.margin=!1);this.el&&this.el.removeClass("fancybox-lock")},update:function(){var a="100%",b;this.overlay.width(a).height("100%");H?(b=Math.max(z.documentElement.offsetWidth,z.body.offsetWidth),n.width()>b&&(a=n.width())):n.width()>q.width()&&(a=n.width());this.overlay.width(a).height(n.height())},onReady:function(a,b){f(".fancybox-overlay").stop(!0, !0);this.overlay||(this.margin=n.height()>q.height()||"scroll"===f("body").css("overflow-y")?f("body").css("margin-right"):!1,this.el=z.all&&!z.querySelector?f("html"):f("body"),this.create(a));a.locked&&this.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&(this.el.addClass("fancybox-lock"),!1!==this.margin&&f("body").css("margin-right",l(this.margin)+b.scrollbarWidth));this.open(a)},onUpdate:function(){this.fixed|| this.update()},afterClose:function(a){this.overlay&&!b.isActive&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(p(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"), H&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}
2d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+ '"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):n.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};n.ready(function(){f.scrollbarWidth===r&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(), b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===r){var a=f.support,d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body"),e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")})})})(window,document,jQuery); 3/*bootstrap-tagsinput v0.4.2 by Tim Schlechter */ !function(a){"use strict";function b(b,c){this.itemsArray=[],this.$element=a(b),this.$element.hide(),this.isSelect="SELECT"===b.tagName,this.multiple=this.isSelect&&b.hasAttribute("multiple"),this.objectItems=c&&c.itemValue,this.placeholderText=b.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=a('<div class="bootstrap-tagsinput"></div>'),this.$input=a('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.after(this.$container);var d=(this.inputSize<3?3:this.inputSize)+"em";this.$input.get(0).style.cssText="width: "+d+" !important;",this.build(c)}function c(a,b){if("function"!=typeof a[b]){var c=a[b];a[b]=function(a){return a[c]}}}function d(a,b){if("function"!=typeof a[b]){var c=a[b];a[b]=function(){return c}}}function e(a){return a?i.text(a).html():""}function f(a){var b=0;if(document.selection){a.focus();var c=document.selection.createRange();c.moveStart("character",-a.value.length),b=c.text.length}else(a.selectionStart||"0"==a.selectionStart)&&(b=a.selectionStart);return b}function g(b,c){var d=!1;return a.each(c,function(a,c){if("number"==typeof c&&b.which===c)return d=!0,!1;if(b.which===c.which){var e=!c.hasOwnProperty("altKey")||b.altKey===c.altKey,f=!c.hasOwnProperty("shiftKey")||b.shiftKey===c.shiftKey,g=!c.hasOwnProperty("ctrlKey")||b.ctrlKey===c.ctrlKey;if(e&&f&&g)return d=!0,!1}}),d}var h={tagClass:function(){return"label label-info"},itemValue:function(a){return a?a.toString():a},itemText:function(a){return this.itemValue(a)},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],onTagExists:function(a,b){b.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};b.prototype={constructor:b,add:function(b,c){var d=this;if(!(d.options.maxTags&&d.itemsArray.length>=d.options.maxTags||b!==!1&&!b)){if("string"==typeof b&&d.options.trimValue&&(b=a.trim(b)),"object"==typeof b&&!d.objectItems)throw"Can't add objects when itemValue option is not set";if(!b.toString().match(/^\s*$/)){if(d.isSelect&&!d.multiple&&d.itemsArray.length>0&&d.remove(d.itemsArray[0]),"string"==typeof b&&"INPUT"===this.$element[0].tagName){var f=b.split(",");if(f.length>1){for(var g=0;g<f.length;g++)this.add(f[g],!0);return void(c||d.pushVal())}}var h=d.options.itemValue(b),i=d.options.itemText(b),j=d.options.tagClass(b),k=a.grep(d.itemsArray,function(a){return d.options.itemValue(a)===h})[0];if(!k||d.options.allowDuplicates){if(!(d.items().toString().length+b.length+1>d.options.maxInputLength)){var l=a.Event("beforeItemAdd",{item:b,cancel:!1});if(d.$element.trigger(l),!l.cancel){d.itemsArray.push(b);var m=a('<span class="tag '+e(j)+'">'+e(i)+'<span data-role="remove"></span></span>');if(m.data("item",b),d.findInputWrapper().before(m),m.after(" "),d.isSelect&&!
3a('option[value="'+encodeURIComponent(h)+'"]',d.$element)[0]){var n=a("<option selected>"+e(i)+"</option>");n.data("item",b),n.attr("value",h),d.$element.append(n)}c||d.pushVal(),(d.options.maxTags===d.itemsArray.length||d.items().toString().length===d.options.maxInputLength)&&d.$container.addClass("bootstrap-tagsinput-max"),d.$element.trigger(a.Event("itemAdded",{item:b}))}}}else if(d.options.onTagExists){var o=a(".tag",d.$container).filter(function(){return a(this).data("item")===k});d.options.onTagExists(b,o)}}}},remove:function(b,c){var d=this;if(d.objectItems&&(b="object"==typeof b?a.grep(d.itemsArray,function(a){return d.options.itemValue(a)==d.options.itemValue(b)}):a.grep(d.itemsArray,function(a){return d.options.itemValue(a)==b}),b=b[b.length-1]),b){var e=a.Event("beforeItemRemove",{item:b,cancel:!1});if(d.$element.trigger(e),e.cancel)return;a(".tag",d.$container).filter(function(){return a(this).data("item")===b}).remove(),a("option",d.$element).filter(function(){return a(this).data("item")===b}).remove(),-1!==a.inArray(b,d.itemsArray)&&d.itemsArray.splice(a.inArray(b,d.itemsArray),1)}c||d.pushVal(),d.options.maxTags>d.itemsArray.length&&d.$container.removeClass("bootstrap-tagsinput-max"),d.$element.trigger(a.Event("itemRemoved",{item:b}))},removeAll:function(){var b=this;for(a(".tag",b.$container).remove(),a("option",b.$element).remove();b.itemsArray.length>0;)b.itemsArray.pop();b.pushVal()},refresh:function(){var b=this;a(".tag",b.$container).each(function(){var c=a(this),d=c.data("item"),f=b.options.itemValue(d),g=b.options.itemText(d),h=b.options.tagClass(d);if(c.attr("class",null),c.addClass("tag "+e(h)),c.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=e(g),b.isSelect){var i=a("option",b.$element).filter(function(){return a(this).data("item")===d});i.attr("value",f)}})},items:function(){return this.itemsArray},pushVal:function(){var b=this,c=a.map(b.items(),function(a){return b.options.itemValue(a).toString()});b.$element.val(c,!0).trigger("change")},build:function(b){var e=this;if(e.options=a.extend({},h,b),e.objectItems&&(e.options.freeInput=!1),c(e.options,"itemValue"),c(e.options,"itemText"),d(e.options,"tagClass"),e.options.typeahead){var i=e.options.typeahead||{};d(i,"source"),e.$input.typeahead(a.extend({},i,{source:function(b,c){function d(a){for(var b=[],d=0;d<a.length;d++){var g=e.options.itemText(a[d]);f[g]=a[d],b.push(g)}c(b)}this.map={};var f=this.map,g=i.source(b);a.isFunction(g.success)?g.success(d):a.isFunction(g.then)?g.then(d):a.when(g).then(d)},updater:function(a){e.add(this.map[a])},matcher:function(a){return-1!==a.toLowerCase().indexOf(this.query.trim().toLowerCase())},sorter:function(a){return a.sort()},highlighter:function(a){var b=new RegExp("("+this.query+")","gi");return a.replace(b,"<strong>$1</strong>")}}))}if(e.options.typeaheadjs){var j=e.options.typeaheadjs||{};e.$input.typeahead(null,j).on("typeahead:selected",a.proxy(function(a,b){e.add(j.valueKey?b[j.valueKey]:b),e.$input.typeahead("val","")},e))}e.$container.on("click",a.proxy(function(){e.$element.attr("disabled")||e.$input.removeAttr("disabled"),e.$input.focus()},e)),e.options.addOnBlur&&e.options.freeInput&&e.$input.on("focusout",a.proxy(function(){0===a(".typeahead, .twitter-typeahead",e.$container).length&&(e.add(e.$input.val()),e.$input.val(""))},e)),e.$container.on("keydown","input",a.proxy(function(b){var c=a(b.target),d=e.findInputWrapper();if(e.$element.attr("disabled"))return void e.$input.attr("disabled","disabled");switch(b.which){case 8:if(0===f(c[0])){var g=d.prev();g&&e.remove(g.data("item"))}break;case 46:if(0===f(c[0])){var h=d.next();h&&e.remove(h.data("item"))}break;case 37:var i=d.prev();0===c.val().length&&i[0]&&(i.before(d),c.focus());break;case 39:var j=d.next();0===c.val().length&&j[0]&&(j.after(d),c.focus())}{var k=c.val().length;Math.ceil(k/5)}c.attr("size",Math.max(this.inputSize,c.val().length))},e)),e.$container.on("keypress","input",a.proxy(function(b){var c=a(b.target);if(e.$element.attr("disabled"))return void e.$input.attr("disabled","disabled");var d=c.val(),f=e.options.maxChars&&d.length>=e.options.maxChars;e.options.freeInput&&(g(b,e.options.confirmKeys)||f)&&(e.add(f?d.substr(0,e.options.maxChars):d),c.val(""),b.preventDefault());{var h=c.val().length;Math.ceil(h/5)}c.attr("size",Math.max(this.inputSize,c.val().length))},e)),e.$container.on("click","[data-role=remove]",a.proxy(function(b){e.$element.attr("disabled")||e.remove(a(b.target).closest(".tag").data("item"))}
3,e)),e.options.itemValue===h.itemValue&&("INPUT"===e.$element[0].tagName?e.add(e.$element.val()):a("option",e.$element).each(function(){e.add(a(this).attr("value"),!0)}))},destroy:function(){var a=this;a.$container.off("keypress","input"),a.$container.off("click","[role=remove]"),a.$container.remove(),a.$element.removeData("tagsinput"),a.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var b=this.$input[0],c=this.$container[0];b&&b.parentNode!==c;)b=b.parentNode;return a(b)}},a.fn.tagsinput=function(c,d){var e=[];return this.each(function(){var f=a(this).data("tagsinput");if(f)if(c||d){if(void 0!==f[c]){var g=f[c](d);void 0!==g&&e.push(g)}}else e.push(f);else f=new b(this,c),a(this).data("tagsinput",f),e.push(f),"SELECT"===this.tagName&&a("option",a(this)).attr("selected","selected"),a(this).val(a(this).val())}),"string"==typeof c?e.length>1?e:e[0]:e},a.fn.tagsinput.Constructor=b;var i=a("<div />");a(function(){a("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery); 4/*Bootstrap Slider*/!function(t){var i=function(i,e){this.element=t(i),this.picker=t('<div class="slider"><div class="slider-track"><div class="slider-selection"></div><div class="slider-handle"></div><div class="slider-handle"></div></div><div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div></div>').insertBefore(this.element).append(this.element),this.id=this.element.data("slider-id")||e.id,this.id&&(this.picker[0].id=this.id),"undefined"!=typeof Modernizr&&Modernizr.touch&&(this.touchCapable=!0);var s=this.element.data("slider-tooltip")||e.tooltip;switch(this.tooltip=this.picker.find(".tooltip"),this.tooltipInner=this.tooltip.find("div.tooltip-inner"),this.orientation=this.element.data("slider-orientation")||e.orientation,this.orientation){case"vertical":this.picker.addClass("slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight",this.tooltip.addClass("right")[0].style.left="100%";break;default:this.picker.addClass("slider-horizontal").css("width",this.element.outerWidth()),this.orientation="horizontal",this.stylePos="left",this.mousePos="pageX",this.sizePos="offsetWidth",this.tooltip.addClass("top")[0].style.top=-this.tooltip.outerHeight()-14+"px"}this.min=this.element.data("slider-min")||e.min,this.max=this.element.data("slider-max")||e.max,this.step=this.element.data("slider-step")||e.step,this.value=this.element.data("slider-value")||e.value,this.value[1]&&(this.range=!0),this.selection=this.element.data("slider-selection")||e.selection,this.selectionEl=this.picker.find(".slider-selection"),"none"===this.selection&&this.selectionEl.addClass("hide"),this.selectionElStyle=this.selectionEl[0].style,this.handle1=this.picker.find(".slider-handle:first"),this.handle1Stype=this.handle1[0].style,this.handle2=this.picker.find(".slider-handle:last"),this.handle2Stype=this.handle2[0].style;var h=this.element.data("slider-handle")||e.handle;switch(h){case"round":this.handle1.addClass("round"),this.handle2.addClass("round");break;case"triangle":this.handle1.addClass("triangle"),this.handle2.addClass("triangle")}this.range?(this.value[0]=Math.max(this.min,Math.min(this.max,this.value[0])),this.value[1]=Math.max(this.min,Math.min(this.max,this.value[1]))):(this.value=[Math.max(this.min,Math.min(this.max,this.value))],this.handle2.addClass("hide"),"after"==this.selection?this.value[1]=this.max:this.value[1]=this.min),this.diff=this.max-this.min,this.percentage=[100*(this.value[0]-this.min)/this.diff,100*(this.value[1]-this.min)/this.diff,100*this.step/this.diff],this.offset=this.picker.offset(),this.size=this.picker[0][this.sizePos],this.formater=e.formater,this.layout(),this.touchCapable?this.picker.on({touchstart:t.proxy(this.mousedown,this)}):this.picker.on({mousedown:t.proxy(this.mousedown,this)}),"show"===s?this.picker.on({mouseenter:t.proxy(this.showTooltip,this),mouseleave:t.proxy(this.hideTooltip,this)}):this.tooltip.addClass("hide")};i.prototype={constructor:i,over:!1,inDrag:!1,showTooltip:function(){this.tooltip.addClass("in"),this.over=!0},hideTooltip:function(){this.inDrag===!1&&this.tooltip.removeClass("in"),this.over=!1},layout:function(){this.handle1Stype[this.stylePos]=this.percentage[0]+"%",this.handle2Stype[this.stylePos]=this.percentage[1]+"%","vertical"==this.orientation?(this.selectionElStyle.top=Math.min(this.percentage[0],this.percentage[1])+"%",this.selectionElStyle.height=Math.abs(this.percentage[0]-this.percentage[1])+"%"):(this.selectionElStyle.left=Math.min(this.percentage[0],this.percentage[1])+"%",this.selectionElStyle.width=Math.abs(this.percentage[0]-this.percentage[1])+"%"),this.range?(this.tooltipInner.text(this.formater(this.value[0])+" : "+this.formater(this.value[1])),this.tooltip[0].style[this.stylePos]=this.size*(this.percentage[0]+(this.percentage[1]-this.percentage[0])/2)/100-("vertical"===this.orientation?this.tooltip.outerHeight()/2:this.tooltip.outerWidth()/2)+"px"):(this.tooltipInner.text(this.formater(this.value[0])),this.tooltip[0].style[this.stylePos]=this.size*this.percentage[0]/100-("vertical"===this.orientation?this.tooltip.outerHeight()/2:this.tooltip.outerWidth()/2)+"px")},mousedown:function(i){this.touchCapable&&"touchstart"===i.type&&(i=i.originalEvent),this.offset=this.picker.offset(),this.size=this.picker[0][this.sizePos];var e=this.getPercentage(i);if(this.range){var s=Math.abs(this.percentage[0]-e),h=Math.abs(this.percentage[1]-e);this.dragged=h>s?0:1}else this.dragged=0;this.percentage[this.dragged]=e,this.layout(),this.touchCapable?t(document).on({touchmove:t.proxy(this.mousemove,this),touchend:t.proxy(this.mouseup,this)}):t(document).on({mousemove:t.proxy(this.mousemove,this),mouseup:t.proxy(this.mouseup,this)}),this.inDrag=!0;var a=this.calculateValue();return this.element.trigger({type:"slideStart",value:a}).trigger({type:"slide",value:a}),!1},mousemove:function(t){this.touchCapable&&"touchmove"===t.type&&(t=t.originalEvent);var i=this.getPercentage(t);this.range&&(0===this.dragged&&this.percentage[1]<i?(this.percentage[0]=this.percentage[1],this.dragged=1):1===this.dragged&&this.percentage[0]>i&&(this.percentage[1]=this.percentage[0],this.dragged=0)),this.percentage[this.dragged]=i,this.layout();var e=this.calculateValue();return this.element.trigger({type:"slide",value:e}).data("value",e).prop("value",e),!1},mouseup:function(i){this.touchCapable?t(document).off({touchmove:this.mousemove,touchend:this.mouseup}):t(document).off({mousemove:this.mousemove,mouseup:this.mouseup}),this.inDrag=!1,0==this.over&&this.hideTooltip(),this.element;var e=this.calculateValue();return this.element.trigger({type:"slideStop",value:e}).data("value",e).prop("value",e),!1},calculateValue:function(){var t;return this.range?(t=[this.min+Math.round(this.diff*this.percentage[0]/100/this.step)*this.step,this.min+Math.round(this.diff*this.percentage[1]/100/this.step)*this.step],this.value=t):(t=this.min+Math.round(this.diff*this.percentage[0]/100/this.step)*this.step,this.value=[t,this.value[1]]),t},getPercentage:function(t){this.touchCapable&&(t=t.touches[0]);var i=100*(t[this.mousePos]-this.offset[this.stylePos])/this.size;return i=Math.round(i/this.percentage[2])*this.percentage[2],Math.max(0,Math.min(100,i))},getValue:function(){return this.range?this.value:this.value[0]},setValue:function(t){this.value=t,this.range?(this.value[0]=Math.max(this.min,Math.min(this.max,this.value[0])),this.value[1]=Math.max(this.min,Math.min(this.max,this.value[1]))):(this.value=[Math.max(this.min,Math.min(this.max,this.value))],this.handle2.addClass("hide"),"after"==this.selection?this.value[1]=this.max:this.value[1]=this.min),this.diff=this.max-this.min,this.percentage=[100*(this.value[0]-this.min)/this.diff,100*(this.value[1]-this.min)/this.diff,100*this.step/this.diff],this.layout()}},t.fn.slider=function(e,s){return this.each(function(){var h=t(this),a=h.data("slider"),o="object"==typeof e&&e;a||h.data("slider",a=new i(this,t.extend({},t.fn.slider.defaults,o))),"string"==typeof e&&a[e](s)})},t.fn.slider.defaults={min:0,max:10,step:1,orientation:"horizontal",value:5,selection:"before",tooltip:"show",handle:"round",formater:function(t){return t}},t.fn.slider.Constructor=i}(window.jQuery); 5/*plugins.js*/function tamingselect(){if(document.getElementById||document.createTextNode){for(var e=0,t=new Array,n=document.getElementsByTagName("select"),o=0;o<n.length;o++)if(h(n[o],"turnintodropdown_demo2")){var r=document.createElement("input");r.name=n[o].name,r.type="hidden",r.id=n[o].id,r.value=n[o].options[0].value,n[o].parentNode.insertBefore(r,n[o]);var a=document.createElement("a");v(a,"trigger_demo2"),a.href="#",a.onclick=function(){return f(this,"trigger_demo2","activetrigger_demo2"),f(this.parentNode.getElementsByTagName("ul")[0],"dropdownhidden_demo2","dropdownvisible_demo2"),!1},a.appendChild(document.createTextNode(n[o].options[0].text)),n[o].parentNode.insertBefore(a,n[o]);for(var d=document.createElement("ul"),i=0;i<n[o].getElementsByTagName("option").length;i++){var l=document.createElement("li"),m=document.createElement("a");l.v=n[o].getElementsByTagName("option")[i].value,l.elm=r,l.istrigger=a,m.href="#",m.appendChild(document.createTextNode(n[o].getElementsByTagName("option")[i].text)),l.onclick=function(){return this.elm.value=this.v,f(this.istrigger,"activetrigger_demo2","trigger_demo2"),f(this.parentNode,"dropdownvisible_demo2","dropdownhidden_demo2"),this.istrigger.firstChild.nodeValue=this.firstChild.firstChild.nodeValue,!1},l.appendChild(m),d.appendChild(l)}v(d,"dropdownhidden_demo2");var c=document.createElement("div");c.appendChild(d),v(c,"dropcontainer_demo2"),n[o].parentNode.insertBefore(c,n[o]),t[e]=n[o],e++}var s=document.getElementsByTagName("ul");for(o=0;o<s.length;o++)if(h(s[o],"turnintoselect_demo2")){var p=document.createElement("form"),g=document.createElement("select");for(i=0;i<s[o].getElementsByTagName("a").length;i++){var u=document.createElement("option");u.value=s[o].getElementsByTagName("a")[i].href,u.appendChild(document.createTextNode(s[o].getElementsByTagName("a")[i].innerHTML)),g.appendChild(u)}g.onchange=function(){window.location=this.options[this.selectedIndex].value},p.appendChild(g),s[o].parentNode.insertBefore(p,s[o]),t[e]=s[o],e++}for(o=0;o<e;o++)t[o].parentNode.removeChild(t[o])}function h(e,t){return new RegExp("\\b"+t+"\\b").test(e.className)}function f(e,t,n){var o=e.className;e.className=h(e,t)?o.replace(t,n):o.replace(n,t)}function v(e,t){h(e,t)||(e.className+=""==e.className?t:" "+t)}}!function(){for(var e,t=function(){},n=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","t
5ime","timeEnd","timeStamp","trace","warn"],o=n.length,r=window.console=window.console||{};o--;)r[e=n[o]]||(r[e]=t)}(),$(function(){$('[data-toggle="tooltip"]').tooltip()}),window.onload=function(){tamingselect()}; 6/*Jquery Cookie*/ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(n){}}function t(n,o){var i=u.raw?n:r(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(r,c,f){if(void 0!==c&&!e.isFunction(c)){if(f=e.extend({},u.defaults,f),"number"==typeof f.expires){var a=f.expires,d=f.expires=new Date;d.setTime(+d+864e5*a)}return document.cookie=[n(r),"=",i(c),f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}for(var p=r?void 0:{},s=document.cookie?document.cookie.split("; "):[],m=0,x=s.length;x>m;m++){var v=s[m].split("="),k=o(v.shift()),l=v.join("=");if(r&&r===k){p=t(l,c);break}r||void 0===(l=t(l))||(p[k]=l)}return p};u.defaults={},e.removeCookie=function(n,o){return void 0===e.cookie(n)?!1:(e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n))}}); 7/*Jstorage*/(function(){function D(){var a="{}";if("userDataBehavior"==k){d.load("jStorage");try{a=d.getAttribute("jStorage")}catch(b){}try{r=d.getAttribute("jStorage_update")}catch(c){}h.jStorage=a}E();x();F()}function u(){var a;clearTimeout(G);G=setTimeout(function(){if("localStorage"==k||"globalStorage"==k)a=h.jStorage_update;else if("userDataBehavior"==k){d.load("jStorage");try{a=d.getAttribute("jStorage_update")}catch(b){}}if(a&&a!=r){r=a;var l=m.parse(m.stringify(c.__jstorage_meta.CRC32)),p;D();p=m.parse(m.stringify(c.__jstorage_meta.CRC32)); var e,z=[],f=[];for(e in l)l.hasOwnProperty(e)&&(p[e]?l[e]!=p[e]&&"2."==String(l[e]).substr(0,2)&&z.push(e):f.push(e));for(e in p)p.hasOwnProperty(e)&&(l[e]||z.push(e));s(z,"updated");s(f,"deleted")}},25)}function s(a,b){a=[].concat(a||[]);if("flushed"==b){a=[];for(var c in g)g.hasOwnProperty(c)&&a.push(c);b="deleted"}c=0;for(var p=a.length;c<p;c++){if(g[a[c]])for(var e=0,d=g[a[c]].length;e<d;e++)g[a[c]][e](a[c],b);if(g["*"])for(e=0,d=g["*"].length;e<d;e++)g["*"][e](a[c],b)}}function v(){var a=(+new Date).toString(); if("localStorage"==k||"globalStorage"==k)try{h.jStorage_update=a}catch(b){k=!1}else"userDataBehavior"==k&&(d.setAttribute("jStorage_update",a),d.save("jStorage"));u()}function E(){if(h.jStorage)try{c=m.parse(String(h.jStorage))}catch(a){h.jStorage="{}"}else h.jStorage="{}";A=h.jStorage?String(h.jStorage).length:0;c.__jstorage_meta||(c.__jstorage_meta={});c.__jstorage_meta.CRC32||(c.__jstorage_meta.CRC32={})}function w(){if(c.__jstorage_meta.PubSub){for(var a=+new Date-2E3,b=0,l=c.__jstorage_meta.PubSub.length;b<l;b++)if(c.__jstorage_meta.PubSub[b][0]<=a){c.__jstorage_meta.PubSub.splice(b,c.__jstorage_meta.PubSub.length-b);break}c.__jstorage_meta.PubSub.length||delete c.__jstorage_meta.PubSub}try{h.jStorage=m.stringify(c),d&&(d.setAttribute("jStorage",h.jStorage),d.save("jStorage")),A=h.jStorage?String(h.jStorage).length:0}catch(p){}}function q(a){if("string"!=typeof a&&"number"!=typeof a)throw new TypeError("Ke
7y name must be string or numeric");if("__jstorage_meta"==a)throw new TypeError("Reserved key name"); return!0}function x(){var a,b,l,d,e=Infinity,h=!1,f=[];clearTimeout(H);if(c.__jstorage_meta&&"object"==typeof c.__jstorage_meta.TTL){a=+new Date;l=c.__jstorage_meta.TTL;d=c.__jstorage_meta.CRC32;for(b in l)l.hasOwnProperty(b)&&(l[b]<=a?(delete l[b],delete d[b],delete c[b],h=!0,f.push(b)):l[b]<e&&(e=l[b]));Infinity!=e&&(H=setTimeout(x,e-a));h&&(w(),v(),s(f,"deleted"))}}function F(){var a;if(c.__jstorage_meta.PubSub){var b,l=B;for(a=c.__jstorage_meta.PubSub.length-1;0<=a;a--)if(b=c.__jstorage_meta.PubSub[a], b[0]>B){var l=b[0],d=b[1];b=b[2];if(t[d])for(var e=0,h=t[d].length;e<h;e++)try{t[d][e](d,m.parse(m.stringify(b)))}catch(f){}}B=l}}var y=window.jQuery||window.$||(window.$={}),m={parse:window.JSON&&(window.JSON.parse||window.JSON.decode)||String.prototype.evalJSON&&function(a){return String(a).evalJSON()}||y.parseJSON||y.evalJSON,stringify:Object.toJSON||window.JSON&&(window.JSON.stringify||window.JSON.encode)||y.toJSON};if(!("parse"in m&&"stringify"in m))throw Error("No JSON support found, include //cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js to page"); var c={__jstorage_meta:{CRC32:{}}},h={jStorage:"{}"},d=null,A=0,k=!1,g={},G=!1,r=0,t={},B=+new Date,H,C={isXML:function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1},encode:function(a){if(!this.isXML(a))return!1;try{return(new XMLSerializer).serializeToString(a)}catch(b){try{return a.xml}catch(c){}}return!1},decode:function(a){var b="DOMParser"in window&&(new DOMParser).parseFromString||window.ActiveXObject&&function(a){var b=new ActiveXObject("Microsoft.XMLDOM");b.async= "false";b.loadXML(a);return b};if(!b)return!1;a=b.call("DOMParser"in window&&new DOMParser||window,a,"text/xml");return this.isXML(a)?a:!1}};y.jStorage={version:"0.4.8",set:function(a,b,d){q(a);d=d||{};if("undefined"==typeof b)return this.deleteKey(a),b;if(C.isXML(b))b={_is_xml:!0,xml:C.encode(b)};else{if("function"==typeof b)return;b&&"object"==typeof b&&(b=m.parse(m.stringify(b)))}c[a]=b;for(var h=c.__jstorage_meta.CRC32,e=m.stringify(b),k=e.length,f=2538058380^k,g=0,n;4<=k;)n=e.charCodeAt(g)&255| (e.charCodeAt(++g)&255)<<8|(e.charCodeAt(++g)&255)<<16|(e.charCodeAt(++g)&255)<<24,n=1540483477*(n&65535)+((1540483477*(n>>>16)&65535)<<16),n^=n>>>24,n=1540483477*(n&65535)+((1540483477*(n>>>16)&65535)<<16),f=1540483477*(f&65535)+((1540483477*(f>>>16)&65535)<<16)^n,k-=4,++g;switch(k){case 3:f^=(e.charCodeAt(g+2)&255)<<16;case 2:f^=(e.charCodeAt(g+1)&255)<<8;case 1:f^=e.charCodeAt(g)&255,f=1540483477*(f&65535)+((1540483477*(f>>>16)&65535)<<16)}f^=f>>>13;f=1540483477*(f&65535)+((1540483477*(f>>>16)& 65535)<<16);h[a]="2."+((f^f>>>15)>>>0);this.setTTL(a,d.TTL||0);s(a,"updated");return b},get:function(a,b){q(a);return a in c?c[a]&&"object"==typeof c[a]&&c[a]._is_xml?C.decode(c[a].xml):c[a]:"undefined"==typeof b?null:b},deleteKey:function(a){q(a);return a in c?(delete c[a],"object"==typeof c.__jstorage_meta.TTL&&a in c.__jstorage_meta.TTL&&delete c.__jstorage_meta.TTL[a],delete c.__jstorage_meta.CRC32[a],w(),v(),s(a,"deleted"),!0):!1},setTTL:function(a,b){var d=+new Date;q(a);b=Number(b)||0;return a in c?(c.__jstorage_meta.TTL||(c.__jstorage_meta.TTL={}),0<b?c.__jstorage_meta.TTL[a]=d+b:delete c.__jstorage_meta.TTL[a],w(),x(),v(),!0):!1},getTTL:function(a){var b=+new Date;q(a);return a in c&&c.__jstorage_meta.TTL&&c.__jstorage_meta.TTL[a]?(a=c.__jstorage_meta.TTL[a]-b)||0:0},flush:function(){c={__jstorage_meta:{CRC32:{}}};w();v();s(null,"flushed");return!0},storageObj:function(){function a(){}a.prototype=c;return new a},index:function(){var a=[],b;for(b in c)c.hasOwnProperty(b)&&"__jstorage_meta"!= b&&a.push(b);return a},storageSize:function(){return A},currentBackend:function(){return k},storageAvailable:function(){return!!k},listenKeyChange:function(a,b){q(a);g[a]||(g[a]=[]);g[a].push(b)},stopListening:function(a,b){q(a);if(g[a])if(b)for(var c=g[a].length-1;0<=c;c--)g[a][c]==b&&g[a].splice(c,1);else delete g[a]},subscribe:function(a,b){a=(a||"").toString();if(!a)throw new TypeError("Channel not defined");t[a]||(t[a]=[]);t[a].push(b)},publish:function(a,b){a=(a||"").toString();if(!a)throw new TypeError("Channel not defined"); c.__jstorage_meta||(c.__jstorage_meta={});c.__jstorage_meta.PubSub||(c.__jstorage_meta.PubSub=[]);c.__jstorage_meta.PubSub.unshift([+new Date,a,b]);w();v()},reInit:function(){D()},noConflict:function(a){delete window.$.jStorage;a&&(window.jStorage=this);return this}};(function(){var a=!1;if("localStorage"in window)try{window.localStorage.setItem("_tmptest","tmpval"),a=!0,window.localStorage.removeItem("_tmptest")}catch(b){}if(a)try{window.localStorage&&(h=window.localStorage,k="localStorage",r=h.jStorage_update)}catch(c){}else if("globalStorage"in window)try{window.globalStorage&&(h="localhost"==window.location.hostname?window.globalStorage["localhost.localdomain"]:window.globalStorage[window.location.hostname],k="globalStorage",r=h.jStorage_update)}catch(g){}else if(d=document.createElement("link"),d.addBehavior){d.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(d);try{d.load("jStorage")}catch(e){d.setAttribute("jStorage","{}"),d.save("jStorage"),d.load("jStorage")}a="{}";try{a=d.getAttribute("jStorage")}catch(m){}try{r= d.getAttribute("jStorage_update")}catch(f){}h.jStorage=a;k="userDataBehavior"}else{d=null;return}E();x();"localStorage"==k||"globalStorage"==k?"addEventListener"in window?window.addEventListener("storage",u,!1):document.attachEvent("onstorage",u):"userDataBehavior"==k&&setInterval(u,1E3);F();"addEventListener"in window&&window.addEventListener("pageshow",function(a){a.persisted&&u()},!1)})()})(); 8/*! jQuery Lazy 1.6.5 */ !function(t,e,r,n){"use strict";function a(r,n,a,o){function i(){p=e.devicePixelRatio>1,l(a),n("delay")>=0&&setTimeout(function(){u(!0)},n("delay")),(n("delay")<0||n("combined"))&&(o.e=m(n("throttle"),function(t){"resize"===t.type&&(b=v=-1),u(t.all)}),o.a=function(t){l(t),a.push.apply(a,t)},o.g=function(){return a},u(),t(n("appendScroll")).on("scroll."+r.name+" resize."+r.name,o.e))}function l(e){if(e=t(e).filter(function(){return!t(this).data(n("handledName"))&&(t(this).attr(n("attribute"))||t(this).attr(n("loaderAttribute")))}).data("plugin_"+r.name,r),n("defaultImage")||n("placeholder"))for(var a=0;a<e.length;a++){var o=t(e[a]),i=e[a].tagName.toLowerCase(),l="background-image";"img"==i&&n("defaultImage")&&!o.attr("src")?o.attr("src",n("defaultImage")):"img"==i||!n("placeholder")||o.css(l)&&"none"!=o.css(l)||o.css(l,"url("+n("placeholder")+")")}}function u(e){if(!a.length)return void(n("autoDestroy")&&r.destroy());for(var o=!1,i=n("imageBase")?n("imageBase"):"",l=0;l<a.length;l++)(function(r){if(d(r)||e){var a,l=t(r),u=r.tagName.toLowerCase(),f=l.attr(n("attribute"));l.data(n("handledName"))||n("visibleOnly")&&!l.is(":visible")||!(f&&("img"==u&&i+f!=l.attr("src")||"img"!=u&&i+f!=l.css("background-image"))||(a=l.attr(n("loaderAttribute")))
8)||(o=!0,l.data(n("handledName"),!0),c(l,u,i,a))}})(a[l]);o&&(a=t(a).filter(function(){return!t(this).data(n("handledName"))}))}function c(e,r,a,o){++h;var i=function(){g("onError",e),A()};if(g("beforeLoad",e),o)e.off("error").one("error",i),e.one("load",function(){n("removeAttribute")&&e.removeAttr(n("loaderAttribute")),g("afterLoad",e),A()}),g(o,e,function(t){t?e.load():e.error()})||e.error();else{var l=t(new Image);l.one("error",i),l.one("load",function(){e.hide(),"img"==r?e.attr("src",l.attr("src")):e.css("background-image","url("+l.attr("src")+")"),e[n("effect")](n("effectTime")),n("removeAttribute")&&e.removeAttr(n("attribute")+" "+n("retinaAttribute")),g("afterLoad",e),l.remove(),A()}),l.attr("src",a+e.attr(n(p&&e.attr(n("retinaAttribute"))?"retinaAttribute":"attribute"))),l.complete&&l.load()}}function d(t){var e=t.getBoundingClientRect(),r=n("scrollDirection"),a=n("threshold"),o=s()+a>e.top&&-a<e.bottom,i=f()+a>e.left&&-a<e.right;return"vertical"==r?o:"horizontal"==r?i:o&&i}function f(){return b>=0?b:b=t(e).width()}function s(){return v>=0?v:v=t(e).height()}function m(t,e){var a,o=0;return function(i,l){function u(){o=+new Date,e.call(r,i)}var c=+new Date-o;a&&clearTimeout(a),c>t||!n("enableThrottle")||l?u():a=setTimeout(u,t-c)}}function A(){--h,a.size()||h||g("onFinishedAll")}function g(t,e,a){return(t=n(t))?(t.apply(r,[].slice.call(arguments,1)),!0):!1}var h=0,b=-1,v=-1,p=!1;!function(){"event"==n("bind")?i():t(e).load(i)}()}function o(e,r){var o=this,i=t.extend({},o.configuration,r),l={};return o.config=function(t,e){return e===n?i[t]:(i[t]=e,o)},o.addItems=function(e){return l.a&&l.a("string"===t.type(e)?t(e):e),o},o.getItems=function(){return l.g?l.g():{}},o.update=function(t){return l.e&&l.e({},!t),o},o.loadAll=function(){return l.e&&l.e({all:!0},!0),o},o.destroy=function(){return t(o.config("appendScroll")).off("."+o.name,l.e),l={},n},a(o,o.config,e,l),o.config("chainable")?e:o}t.fn.Lazy=t.fn.lazy=function(t){return new o(this,t)},t.extend(o.prototype,{name:"lazy",configuration:{chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:e,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",retinaAttribute:"data-retina",loaderAttribute:"data-loader",removeAttribute:!0,handledName:"handled",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:null,afterLoad:null,onError:null,onFinishedAll:null}})}(jQuery,window,document); 9/*Google Maps*/var map,directionsDisplay;function draw_map(){var e,o,a,l=new google.maps.LatLngBounds;directionsDisplay=new google.maps.DirectionsRenderer,map=new google.maps.Map(document.getElementById(globals.map.map_container),{zoom:globals.map.zoom,center:new google.maps.LatLng(globals.map.center.lat,globals.map.center.lon),mapTypeId:google.maps.MapTypeId.ROADMAP});var n=globals.map.pins;for(o=0;o<n.length;o++){var t=globals.map.pin_icon;void 0!==n[o].icon&&(t=n[o].icon),a=new google.maps.LatLng(n[o].lat,n[o].lon),l.extend(a),e=new google.maps.Marker({position:a,map:map,title:n[o].name,icon:t}),google.maps.event.addListener(e,"click",function(e,o){return function(){window.location.href=n[o].link}}(0,o))}if(void 0!==globals.map.layer&&null!==globals.map.layer){switch(globals.map.layer){case"bicycle":var s=new google.maps.BicyclingLayer;break;case"transit":s=new google.maps.TransitLayer}s.setMap(map)}if(void 0!==globals.map.polygon&&null!==globals.map.polygon){var g=[];for(o=0;o<globals.map.polygon.length;o++)g[o]=new google.maps.LatLng(globals.map.polygon[o][1],globals.map.polygon[o][0]),l.extend(g[o]);new google.maps.Polygon({paths:g,strokeColor:"Black",strokeOpacity:.8,strokeWeight:2,fillColor:"#feba02",fillOpacity:.35}).setMap(map)}1===globals.map.fit_to_bounds&&(map.fitBounds(l),map.panToBounds(l)),directionsDisplay.setMap(map)}function is_street_view_available(e,o){if(o==google.maps.StreetViewStatus.OK){$("#street_panel-wrap").show();var a={position:new google.maps.LatLng(globals.map.center.lat,globals.map.center.lon),pov:{heading:34,pitch:10}},l=new google.maps.StreetViewPanorama(document.getElementById("street_panel"),a);map.setStreetView(l)}else $("#street_panel-wrap").hide()}function get_street_view_status(){return status==google.maps.StreetViewStatus.OK}function draw_directions(e,o,a){var l=new google.maps.DirectionsService,n={origin:new google.maps.LatLng(globals.map.center.lat,globals.map.center.lon),destination:e,travelMode:google.maps.TravelMode[o]};l.route(n,function(e,o){o==google.maps.DirectionsStatus.OK&&directionsDisplay.setDirections(e),void 0!==a&&a(o)})}function get_google_coordinates(e){geocoder=new google.maps.Geocoder,geocoder.geocode({address:e},function(e,o){o==google.maps.GeocoderStatus.OK?draw_directions(e[0].geometry.location):console.log("Geocode was not successful for the following reason: "+o)})} 10/*Landing_pages.js*/$(document).ready(function(){$(".datepick").datepicker({format:globals.date_format,startDate:"today",language:globals.lang,autoclose:!0,endDate:"+365d",maxViewMode:0,orientation:"top auto",custom_class:"start_date_picker"}).on("hide",function(e){var t=$(".datepick").datepicker("getDate"),a=$(".departure_datepick").datepicker("getDate"),i=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1);$(".departure_datepick").each(function(){$(this).datepicker("setStartDate",i)}),a<i&&(i.setDate(i.getDate()),$(".departure_datepick").each(function(){$(this).datepicker("update",i)})),$(".departure_datepick").datepicker("show"),$("#side_search .mainAct").css({"background-color":"#f7c951",border:"1px solid #ed7c20",color:"#091e35"})}).on("changeDate",function(e){$(".datepick").each(function(){$(this).datepicker("update",new Date(e.date.valueOf()))})}).on("show",function(e){!$(".datepicker-dropdown.start_date_picker").find(".arrival_date_green").length>=1&&$(".arrival_datepicker_header").html()?$(".datepicker-dropdown.start_date_picker").prepend($(".arrival_datepicker_header").html()):$(".datepicker-dropdown.start_date_picker").find(".arrival_date_green").show(),$("div.startHere").fadeOut("medium")}),$(".departure_datepick").datepicker({format:globals.date_format,startDate:"today",language:globals.lang,maxViewMode:0,autoclose:!0,orientation:"top auto",custom_class:"end_date_picker"}).on("show",function(e){$("div.startHere").fadeOut("medium"),!$(".datepicker-dropdown.end_date_picker").find(".departure_date_green").length>=1&&$(".departure_datepicker_header").html()?$(".datepicker-dropdown.end_date_picker").prepend($(".departure_datepicker_header").html()):$(".datepicker-dropdown.end_date_picker").find(".departure_date_green").show();var t=$(".datepick").datepicker("getDate"),a=$(".departure_datepick").datepicker("getDate"),i=a-t,r=Math.round(i/864e5);$(".datepicker-dropdown.end_date_picker .nights").html('<i class="fa fa-moon-o"></i> '+r),t.setDate(t.getDate()+1);for(var d=[],s=t;s<=a;s.setDate(s.getDate()+1))d.push(new Date(s));$(".departure_datepick").datepicker("setRange",d)}).on("hide",function(e){$("#side_search .mainAct").css({"background-color":"#f7c951",border:"1px solid #ed7c20",color:"#091e35"})}).on("changeDate",function(e){$(".departure_datepick").each(function(){$(this).datepicker("update",new Date(e.date.valueOf()))});var t=$(".datepick").datepicker("getDate"),a=$(".departure_datepick").datepicker("getDate"),i=a-t,r=Math.round(i/864e5);$(".datepicker-dropdown.end_date_picker .nights").html('<i class="fa fa-moon-o"></i> '+r),t.setDate(t.getDate()+1);for(var d=[],s=t;s<=a;s.setDate(s.getDate()+1))d.push(new Date(s));$(".departure_datepick").datepicker("setRange",d)}),$(".datepick").each(function(){$(this).datepicker(),!0!==$(this).data("dontpreselect")&&$(this).datepicker("update",globals.date_checkin),!0===$(this).data("openbydefault")&&$(this).datepicker("show")}),$(".departure_datepick").each(function(){$(this).datepicker(),!0!==$(this).data("dontpreselect")&&(min_depart=new Date(globals.date_checkin),min_depart.setDate(min_depart.getDate(globals.date_checkin)+1),$(this).datepicker("setStartDate",min_depart),$(this).datepicker("update",globals.date_depart))}),$(".search_suggestions, #txtSearch").on("click",function(){$("#txtSearch").prop("checked","checked"),$("#search_suggestions").removeClass("disabled")}),$(".search_city, .search_country, #normalSearch").on("click",function(){$("#normalSearch").prop("checked","checked"),$("#search_suggestions").addClass("disabled")}),$("body").on("change","#side_search .search_num_guests_select",function(){$("#side_search .mainAct").css({"background-color":"#f7c951",border:"1px solid #ed7c20",color:"#091e35"})});var e=null,t=null;$(".search_suggestions").on("keyup paste",function(){$("#select_city_error").hide();var a=$(this),i=$(this).val();if(i.length<3)return!1;$(".suggestion_loader").show(),null!=e&&e.abort(),clearTimeout(t),t=setTimeout(function(){e&&e.abort(),e=$.ajax({type:"GET",url:"/cmain/search_suggest/"+i+"?time="+Date.now(),success:function(e){$("#custom-url").val(null),$("#custom-type").val(1),$("#district_id").val(null),$("#landmark_id").val(null),$("#pinned_pid").val(null);$(".search_suggestions").parent().find(".advSearch .advSearch-container");
10var t=Date.now(),i=setInterval(function(){var e=$(".search_suggestions").parent().find(".advSearch .advSearch-container");if(!e.is(":visible")&&!$(".search_suggestions").is(":focus")&&""==$("#custom-url").val()&&Date.now()-t>200){if(e.find("li a").length){var a=e.find("li a").first(),r=a.contents().not(a.find("small.searchGroupTitle")).text();0==this.rel&&(r=(r=r.split(","))[0]),1==this.rel&&(r=(r=r.split("("))[0]),$(".search_suggestions").val(r),$("#custom-url").val(a.attr("href")),$("#custom-type").val(a.attr("rel"))}else $(".search_suggestions").parent().find(".advSearch .advSearch-container").show();clearInterval(i)}},100);$(".suggestion_loader").hide(),$(".advSearch_properties").empty(),a.parent().find(".advSearch").html(e),a.parent().find(".advSearch .advSearch-container").show(),$("#adv_search_container .panel-default .panel-collapse").first().collapse("show"),$(".advSearch-container li a").click(function(){if("moreresults"==this.rel)return!0;var e=$(this).contents().not($(this).find("small.searchGroupTitle")).text();return 0==this.rel&&(e=(e=e.split(","))[0]),1==this.rel&&(e=(e=e.split("("))[0]),$(".search_suggestions").val(e),$("#custom-url").val(this.href),$("#custom-type").val(this.rel),$("#district_id").val($(this).data("districtid")),$("#landmark_id").val($(this).data("landmarkid")),$("#pinned_pid").val($(this).data("pinnedpid")),$(".advSearch .advSearch-container").hide(),$("#select_city_error").hide(),$(".datepick").datepicker("show"),!1})}})},1e3)}).on("click",function(){$(".advSearch .advSearch-container").hide(),$("#select_city_error").hide()}
10).on("focus",function(){var e=$(".search_suggestions").val();$(".search_suggestions").data("oldval",e),$(".search_suggestions").val("")}).on("blur",function(){if(""==$(".search_suggestions").val()){var e=$(".search_suggestions").data("oldval");$(".search_suggestions").val(e)}}),$(".search_suggestions_properties").on("keyup",function(){$("#select_city_error").hide();var e=$(this).val();if(e.length<3)return!1;$.ajax({type:"GET",url:"/cmain/search_suggest/"+e+"/properties/?time="+Date.now(),beforeSend:function(){$(".suggestion_loader").show()},success:function(e){$(".suggestion_loader").hide(),$(".advSearch").empty(),$(".advSearch_properties").html(e),$(".advSearch_properties .advSearch-container").show(),$("#advSearch-collapseTwo").collapse("show"),$(".advSearch-container li a").click(function(){if("moreresults"==this.rel)return!0;var e=$(this).text();return 0==this.rel&&(e=(e=e.split(","))[0]),$(".search_suggestions_properties").val(e),$("#custom-url").val(this.href),$("#custom-type").val(this.rel),$("#district_id").val($(this).data("districtid")),$("#landmark_id").val($(this).data("landmarkid")),$("#pinned_pid").val($(this).data("pinnedpid")),$(".advSearch_properties .advSearch-container").hide(),!1})}})}).on("click",function(){$(".advSearch_properties .advSearch-container").hide()}),$(".find_user_location_preset").click(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){$.ajax({type:"GET",dataType:"JSON",url:"/cmain/location_address/"+e.coords.latitude+"/"+e.coords.longitude,beforeSend:function(){$(".suggestion_loader").show()},success:function(e){$(".suggestion_loader").hide();var t=e.city_translated+", "+e.country_translated;return $(".search_suggestions").val(t),$("#custom-url").val(e.link),$("#custom-type").val(e.rel),$("#district_id").val(""),$("#landmark_id").val(""),!1}})}):console.log("not supported")}),$(".search_options").change(function(){$("#search_suggestions").removeClass("disabled"),$("#custom-url").val($(this).data("customurl")),$("#txtSearch").prop("checked",!0)}),$(".property_date_search").click(function(){$(this).find("input[type='radio']").prop("checked","checked"),$(this).find("input[type='radio']").change(),$(".search_suggestions").prop("disabled","disabled"),$(".search_suggestions_properties").prop("disabled",!1),$("#search_suggestions_properties_mask").hide(),$("#search_suggestions_mask").show()}),$(".destination_date_search").click(function(){$(this).find("input[type='radio']").prop("checked","checked"),$(this).find("input[type='radio']").change(),$(".search_suggestions_properties").prop("disabled","disabled"),$(".search_suggestions").prop("disabled",!1),$("#search_suggestions_mask").hide(),$("#search_suggestions_properties_mask").show()}
10),$(".search_country").on("change",function(){var e=$(".search_country").val();$(".search_city").prop("disabled",!0),$(".search_city").addClass("disabled"),$.ajax({type:"GET",url:site_url("/hb/citylistdb/"),dataType:"JSON",data:{country:e,lang:globals.lang},success:function(e){var t='<option value="">'+nocityval+"</option>";$.each(e,function(e,a){t+='<option value="'+a.value+'">'+a.text+"</option>"}),$(".search_city").html(t),$(".search_city").prop("disabled",!1),$(".search_city").removeClass("disabled")}})}),$('#guide_tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){$("#guide_tabs").find("li").removeClass("active"),$(e.target).parent().addClass("active")}),$(".show-latest-reviews-trigger").on("click",function(){return 1==$(this).hasClass("collapsed")?$(this).addClass("active"):$(this).removeClass("active"),!0}),setTimeout(function(){$("#startHere").show()},2200),void 0!==globals.float_container&&float_fix_div(globals.float_container),$(".datepick_main").datepicker({format:globals.date_format,startDate:"today",language:globals.lang,autoclose:!0,endDate:"+365d",maxViewMode:0,orientation:"top auto",custom_class:"start_date_picker"}).on("hide",function(e){var t=$(".datepick_main").datepicker("getDate"),a=$(".departure_datepick_main").datepicker("getDate"),i=new Date(t.getFullYear(),t.getMonth(),t.getDate()+1);$(".departure_datepick_main").each(function(){$(this).datepicker("setStartDate",i)}),a<i&&(i.setDate(i.getDate()),$(".departure_datepick_main").each(function(){$(this).datepicker("update",i)})),$(".departure_datepick_main").datepicker("show")}).on("changeDate",function(e){$(".datepick_main").each(function(){$(this).datepicker("update",new Date(e.date.valueOf()))})}).on("show",function(e){!$(".datepicker-dropdown.start_date_picker").find(".arrival_date_green").length>=1&&$(".arrival_datepicker_header").html()?$(".datepicker-dropdown.start_date_picker").prepend($(".arrival_datepicker_header").html()):$(".datepicker-dropdown.start_date_picker").find(".arrival_date_green").show(),$("div.startHere").fadeOut("medium")}),$(".departure_datepick_main").datepicker({format:globals.date_format,startDate:"today",language:globals.lang,maxViewMode:0,orientation:"top auto",custom_class:"end_date_picker"}).on("show",function(e){$("div.startHere").fadeOut("medium"),!$(".datepicker-dropdown.end_date_picker").find(".departure_date_green").length>=1&&$(".departure_datepicker_header").html()?$(".datepicker-dropdown.end_date_picker").prepend($(".departure_datepicker_header").html()):$(".datepicker-dropdown.end_date_picker").find(".departure_date_green").show();var t=$(".datepick_main").datepicker("getDate"),a=$(".departure_datepick_main").datepicker("getDate"),i=a-t,r=Math.round(i/864e5);$(".datepicker-dropdown.end_date_picker .nights").html('<i class="fa fa-moon-o"></i> '+r),t.setDate(t.getDate()+1);for(var d=[],s=t;s<=a;s.setDate(s.getDate()+1))d.push(new Date(s));$(".departure_datepick_main").datepicker("setRange",d)}).on("hide",function(e){}).on("changeDate",function(e){$(".departure_datepick_main").each(function(){$(this).datepicker("update",new Date(e.date.valueOf()))});var t=$(".datepick_main").datepicker("getDate"),a=$(".departure_datepick_main").datepicker("getDate"),i=a-t,r=Math.round(i/864e5);$(".datepicker-dropdown.end_date_picker .nights").html('<i class="fa fa-moon-o"></i> '+r),t.setDate(t.getDate()+1);for(var d=[],s=t;s<=a;s.setDate(s.getDate()+1))d.push(new Date(s));$(".departure_datepick_main").datepicker("setRange",d)}),$(".datepick_main").each(function(){$(this).datepicker(),!0!==$(this).data("dontpreselect")&&$(this).datepicker("update",globals.date_checkin)}),$(".departure_datepick_main").each(function(){$(this).datepicker(),!0!==$(this).data("dontpreselect")&&(min_depart=new Date(globals.date_checkin),min_depart.setDate(min_depart.getDate(globals.date_checkin)+1),$(this).datepicker("setStartDate",min_depart),$(this).datepicker("update",globals.date_depart))})});var float_fix_div=function(e){$("#"+e).data("top",$("#"+e).offset().top),$(window).scroll(function(){var t=$("#"+e);$(window).scrollTop()>t.data("top")?$("#"+e).addClass("fixed_floating_container"):$("#"+e).removeClass("fixed_floating_container")})},init_autocollapse=function(){autocollapse(),$(window).on("resize",autocollapse)}
10,autocollapse=function(){var e=$("#guide_tabs"),t=e.innerHeight();if(t>=50)for(;t>50&&0!=e.children("li:not(:last-child)").size();){var a=e.children("li:not(:last-child)"),i=a.size();$(a[i-1]).prependTo("#collapsed"),t=e.innerHeight()}else{for(;t<50&&e.children("li").size()>0&&0!=$("#collapsed").children("li").size();){var r=$("#collapsed").children("li");i=r.size();$(r[0]).insertBefore(e.children("li:last-child")),t=e.innerHeight()}t>50&&autocollapse()}0==$("#collapsed").children("li").size()?$("#lastTab").hide():$("#lastTab").show()}; 11/*Socia.js*/var social_params={action:"",save_to_fav_id:0},social_facebook_login=function(o){social_params.action=o,FB.login(function(o){$("#ajax_modal_popup .modal-content").load("/auth_other/fb_signin/"+o.authResponse.accessToken)},{scope:"public_profile,email"})},google_login_trigger=!1,google_login_popup="",social_google_login=function(o,a){social_params.action=o,google_login_popup=window.open("/auth_other/google_plus_auth/"+a,"google_login","width=800, height=600");var e=window.setInterval(function(){try{-1!=google_login_popup.document.URL.indexOf("google_plus_signin")&&(window.clearInterval(e),google_login_popup.close(),$("#ajax_modal_popup .modal-content").load("/auth_other/google_plus_signin2"))}catch(o){}},500)};function onGoogleSignIn(o){if(0!=google_login_trigger){var a=o.getAuthResponse().id_token;social_params.action=$("#my-signin2").data("actiontype"),$.ajax({type:"POST",url:"/auth_other/google_plus_signin_new",cache:!1,data:{token:a,csrf_token:csrf_value},success:function(o){$("#ajax_modal_popup .modal-content").html(o),google_login_trigger=!1}})}}function onGoogleSignInFailure(o){console.log(o)}var social_complete_action=function(o,a){var e=social_params.action;return"homepage"===e?0==$("#success_login_message").length?window.location="/":($("#success_login_message").show(),setInterval(function(){window.location="/"},3e3)):"close"===e?$("#ajax_modal_popup").modal("close"):"booking_info"===e?($("#ajax_modal_popup").modal("hide"),$(".booking_social_login").hide(),social_booking_info(o)):"user_profile"===e?window.location=a:"save_to_favorite"===e?($("#ajax_modal_popup").modal("close"),social_params.save_to_fav_id?$("#"+social_params.save_to_fav_id).click():$(".save_to_favorites").click()):0==$("#success_login_message").length?window.location.reload():($("#success_login_message").show(),setInterval(function(){window.location.reload()},3e3)),!1},social_booking_info=function(o){$("#booking_social_login").hide(),$(".bookFaster").hide(),$(".book_with_sigin_in").unbind("click"),$(".book_with_sigin_in").text(""),$("#firstname").val(o.first_name),$("#lastname").val(o.last_name),$("#EmailAddress").val(o.email),$("#EmailAddress2").val(o.email),$("#phone_number").val(o.phone_number),$("#country_id").find("option[data-homecountry='"+o.home_country+"']").prop("selected",!0),$("#mail_subscribe").parent(".payment_info_block").hide(),$(".use-stored-card-div").show(),$("#card_store_agree").removeAttr("disabled"),$("#EmailAddress").prop("readonly","true"),$("#EmailAddress2").prop("readonly","true")},ajax_login=function(o){return $.ajax({type:"POST",url:"/auth/ajax_login",cache:!1,data:{login:$("#ajax_login_email").val(),password:$("#ajax_login_password").val(),remember:0,csrf_token:csrf_value},success:function(o){"1"==o.status?($("#top_bar_inner .account_login").html($("#logged_in_link").html()),$("#top_bar_inner .logout_register").html($("#log_out_link").html()),$(".use-stored-card-div").show(),social_booking_info(o.user)):($(".ajax_login_form_error").html(o.message),$(".ajax_login_form_error").show())}}),!1}; 12/*Search_box.js*/if("function"!=typeof site_url)function site_url(e){return"https:"===window.location.protocol?e.replace("http:","https:"):e}function goToSearchPage(e,t,a,i,o,s,l,n,r,c,d,u,g,v){var p=$("#"+u).val(),h=$("#custom-url").val(),_=$("#custom-type").val(),f=$(".search_suggestions").parent().find(".advSearch .advSearch-container");if(!h&&!f.is(":visible"))if(f.find("li a").length){var y=f.find("li a").first(),D=y.contents().not(y.find("small.searchGroupTitle")).text();0==this.rel&&(D=(D=D.split(","))[0]),1==this.rel&&(D=(D=D.split("("))[0]),$(".search_suggestions").val(D),h=y.attr("href"),_=y.attr("rel")}else $(".search_suggestions").parent().find(".advSearch .advSearch-container").show();if(void 0!==v&&!0===v){var m=$("#"+u).val(),k=$("#custom-url").val();if(""==m&&""==k)return $("#select_city_error").show(),!1;var w=$("#"+r).val(),S=$("#"+g).val();""!=w&&""!=S||($("#"+r).datepicker("update",globals.date_checkin),$("#"+g).datepicker("update",globals.date_depart))}$("#select_city_error").hide();var C=0,b=0,x="";window.name="Other View",document.getElementById("district_id")&&(C=document.getElementById("district_id").value),document.getElementById("landmark_id")&&(b=document.getElementById("landmark_id").value),document.getElementById("pinned_pid")&&(x=document.getElementById("pinned_pid").value),"function"==typeof clear_suggestions&&document.getElementById("search-suggest")&&clear_suggestions();var j=t,T=i,E=$("#"+r).datepicker("getDate"),I=siteDateString(E),B=$("#"+g).datepicker("getDate"),M=$("#"+c+" :selected").val();M=E&&0!==B.length?getDateDifference(E,B):$("#"+c+" :selected").val();var W=$(".search_num_guests_select").val(),L=$("#"+d+" :selected").val(),F="?";if("1"===$.cookie("url_params")&&"1"===_){var U=new Date(E.getFullYear(),0,0),Y=E-U,O=Math.floor(Y/864e5),A=$.cookie("last_review_property"),G=0;void 0!==A&&(G=A.split(",").length);var H="no";"1"===$.cookie("returning_visitor")&&(H="yes"),F+="year="+E.getFullYear().toString(),F+="&dayofyear="+O.toString(),F+="&nights="+M.toString(),F+="&recentprop="+G.toString(),F+="&rvisitor="+H.toString()+"&"}"1"!==$.cookie("url_params")||"2"!==_&&"5"!==_||(F+="arrival="+I,F+="&nights="+M,F+="&guests="+W+"&"),"1"===$.cookie("adv_v1")&&"1"===$.cookie("adw_v2")&&(F+="v1=adv&v2=adw&"),L&&(F=F+"currency="+L+"&"),0<C&&(F=F+"di="+C+"&"),0<b&&(F=F+"la="+b+"&"),""!=x&&(F=F+"pid="+x+"&"),F="?"===F?"":F.substring(0,F.length-1),j=customurlencode(j),T=customurlencode(T);var P;P=isValidDate(I);var V=new Date;if(V.setHours(0),V.setMinutes(0),V.setSeconds(0),E.setHours(23),E.setMinutes(59),E.setSeconds(59),document.getElementById(u)&&!$("#"+u).hasClass("disabled"))if(pweb_setCookie("date_selected",I,2),pweb_setCookie("numnights_selected",M,2),pweb_setCookie("numguests_selected",W,2),pweb_setCookie("search_input_terms",encodeURIComponent(p),2),0==P)triggerWarning(s);else if(E<V)triggerWarning(s);else if(h)switch($("#loading-search").show(),_){case"0":var J=h.split("?");h=J[0];var N="";void 0!==J[1]&&(N="?"+J[1]),window.location=h+"/"+I+"/"+M+"/"+W+N;break;case"1":window.location=h+"/"+I+"/"+M+"/"+W+F;break;case"2":window.location=h+F;break;case"3":case"4":window.location=h+"/"+I+"/"+M+"/"+W+F;break;case"5":window.location=h+F;break;case"moreresults":window.location=h;break;default:window.location=h+F}else"function"==typeof searchSuggest&&suggest_xhr&&2<p.length&&create_suggest_box(suggest_xhr.responseText);else $("#"+l+" :selected").val()==t||$("#"+l+" :selected").val()==nocountryval||""==$("#"+l+" :selected").val()?triggerWarning(a):$("#"+n+" :selected").val()==i||$("#"+n+" :selected").val()==nocityval||""==$("#"+n+" :selected").val()?triggerWarning(o):0==P?triggerWarning(s):E<V?triggerWarning(s):($("#loading-search").show(),window.location=e+j+"/"+T+"/"+I+"/"+M+F)}function goToUrlWithChangeDate(e,t,a,i,o){var s=$("#"+t).datepicker("getDate"),l=siteDateString(s),n=$("#"+i).datepicker("getDate");
12if(s&&0!==n.length)var r=getDateDifference(s,n);else r=$("#"+a+" :selected").val();var c=$("#"+o+" :selected").val();pweb_setCookie("date_selected",l,2),pweb_setCookie("numnights_selected",r,2);var d=$(location).attr("href").split("/",5).join("/"),u="";c&&(u="?currency="+c),window.location=d+"/"+l+"/"+r+u}function loadCitiesMenu(t,i,o,e,a,s,l,n,r){if(0<$("#modify_search a").length||0<$(".destination").length)if(null!=$.jStorage.get(location.href)){var c=$.jStorage.get(location.href),d="";$.each(c.cities_list,function(e,t){d+="<option "+(t.value==c.selected_city_val?'selected = "selected"':"")+' value="'+t.value+'">'+t.text+"</option>"}),$("#"+l).html(d),$("#search-country option:selected").prop("selected",!1),$('#search-country option[value="'+c.selected_country+'"]').prop("selected",!0)}else{var u=[];$("#search-city option").each(function(e,t){u.push({text:t.text,value:t.value})});var g=$("#"+s+" option:selected").val(),v=$("#"+l+" option:selected").val();$.jStorage.set(location.href,{cities_list:u,selected_country:g,selected_city_val:v}),$.jStorage.setTTL(location.href,2592e3)}else if(0<$("#lp_search").length)if(null!=$.jStorage.get(location.href)){c=$.jStorage.get(location.href),d="";$.each(c.cities_list,function(e,t){d+="<option "+(t.value==c.selected_city_val?'selected = "selected"':"")+' value="'+t.value+'">'+t.text+"</option>"}),$("#"+l).html(d),$("#search-country option:selected").prop("selected",!1),$('#search-country option[value="'+c.selected_country+'"]').prop("selected",!0)}else{u=[];$("#search-city option").each(function(e,t){u.push({text:t.text,value:t.value})});g=$("#"+s+" option:selected").val(),v=$("#"+l+" option:selected").val();$.jStorage.set(location.href,{cities_list:u,selected_country:g,selected_city_val:v}),$.jStorage.setTTL(location.href,2592e3),$.jStorage.set("lastCityCountries",{cities_list:u,countrySelected:g,selected_city_val:v}),$.jStorage.setTTL("lastCityCountries",2592e3)}else if(null!=$.jStorage.get("lastCityCountries")&&null!=$.jStorage.get("lastCityCountries").countrySelected&&null!=$.jStorage.get("lastCityCountries").cities_list&&0<$.jStorage.get("lastCityCountries").cities_list.length){if(null==n){c=$.jStorage.get("lastCityCountries"),d="";$.each(c.cities_list,function(e,t){d+="<option "+(t.value==c.selected_city_val?'selected = "selected"':"")+' value="'+t.value+'">'+t.text+"</option>"}),$("#"+l).html(d),$("#"+s+" option:selected").prop("selected",!1),$("#"+s+' option[value="'+c.countrySelected+'"]').prop("selected",!0)}}else{u=[];$("#search-city option").each(function(e,t){u.push({text:t.text,value:t.value})});g=$("#"+s+" option:selected").val(),v=$("#"+l+" option:selected").val();$.jStorage.set("lastCityCountries",{cities_list:u,countrySelected:g,selected_city_val:v}),$.jStorage.setTTL("lastCityCountries",2592e3)}$("#search-submit").click(function(){var a=[];$("#search-city option").each(function(e,t){a.push({text:t.text,value:t.value})});var e=$("#"+s+" option:selected").val(),t=$("#"+l+" option:selected").val();$.jStorage.set("lastCityCountries",{cities_list:a,countrySelected:e,selected_city_val:t})}
12),$("#"+s).change(function(){var e=$("#"+s).val();$("#"+l).css({background:'url("/images/city-ajax-load.gif")',"background-repeat":"no-repeat","background-position":"50% 8px"}),$("#"+l).prop("disabled",!0),$("#"+l).html("");var a=[];$("#search-city option").each(function(e,t){a.push({text:t.text,value:t.value})}),$.ajax({type:"GET",url:site_url(t+"/citylistdb/"),dataType:"JSON",data:{country:e,lang:i},success:function(e){var a='<option value="">'+o+"</option>";$.each(e,function(e,t){a+='<option value="'+t.value+'">'+t.text+"</option>"}),$("#"+l).append(a),$("#"+l).prop("disabled",!1),$("#"+l).css({"background-image":"none","background-color":"white"}),$("#"+l).prop("disabled",!1)}})})}function changeArrivalAndDepartureDateOnIds(e,t){var a=0,i=0,o=$("#"+t).datepicker("getDate");$("#"+e).val()&&(a=$("#"+e).datepicker("getDate"),i=$("#"+e).datepicker("getDate"),a.setDate(a.getDate()+1),i.setDate(i.getDate()+31),$("#"+t).datepicker("option","minDate",a),$("#"+t).datepicker("option","maxDate",i),$("#"+t).datepicker("setDate",o))}function addDays(e,t){var a=new Date(e);return a.setDate(a.getDate()+t),a}function setDateLimits(e,t){var a=0,i=0,o=$("#"+t).datepicker("getDate");if($("#"+e).val()){a=$("#"+e).datepicker("getDate"),i=$("#"+e).datepicker("getDate"),a.setDate(a.getDate()+1),i.setDate(i.getDate()+31),$("#"+t).datepicker("setStartDate",a),$("#"+t).datepicker("setEndDate",i);var s=new Date($("#"+e).datepicker("getDate"));if(new Date(o)<=s||i<o){var l=addDays(s,1);$("#"+t).datepicker("setDate",l)}
12}}function newDateFormat(e){date_avail_list=e.split("-");var t=date_avail_list[0],a=date_avail_list[1]-1,i=date_avail_list[2];return date_avail=new Date(t,a,i),date_avail}function getDateDifference(e,t){var a=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate());return Math.floor((a-i)/864e5)}$(document).ready(function(){$(".search_num_guests_select").change(function(){"groups"!=$(this).val()?$(".search_num_guests_select").val($(this).val()):window.location=groupPageLink})}); 13/*Main.js*/function render_second_recaptcha(e,a){grecaptcha.render(e,{sitekey:a,theme:"light"})}function property_image_error(e){$(e).closest(".property.previewOnly").hide()}function siteDateString(e){function a(e){return e<10?"0"+e:e}return e.getFullYear()+"-"+a(e.getMonth()+1)+"-"+a(e.getDate())}function sharing_dialog(e){var a=$(e).data("sharetext"),n=$(e).data("sharetype"),o=$(e).data("sharehref");o=o.split("?")[0];var t="https://www.facebook.com/share.php?u="+encodeURI(o);"google"==n?t="https://plus.google.com/share?url="+encodeURI(o):"twitter"==n&&(t="https://twitter.com/intent/tweet?url="+encodeURI(o)+"&text="+encodeURI(a));var r=($(window).width()-600)/2,i=t,c="status=1,width=600,height=600,top="+($(window).height()-600)/2+",left="+r;return window.open(i,n,c),!1}function header_ajax_login(){$(".ajax_login_form_error").html(""),$(".ajax_login_form_error").show(),$("#signin").find(".col-md-6").removeClass("has-error");var e=0;return $("#rememberme").is(":checked")&&(e=1),$.ajax({type:"POST",url:"/auth/ajax_login",cache:!1,data:{login:$("#ajax_login_email").val(),password:$("#ajax_login_password").val(),remember:e,csrf_token:csrf_value},success:function(e){"1"==e.status?void 0!==globals.login_action?0==$("#success_login_message").length?window.location=globals.login_action:($("#success_login_message").show(),setInterval(function(){window.location=globals.login_action},3e3)):0==$("#success_login_message").length?window.location.reload(!0):($("#success_login_message").show(),setInterval(function(){window.location.reload(!0)},3e3)):($("#signin").find(".col-md-6").addClass("has-error"),$(".ajax_login_form_error").html(e.message),$(".ajax_login_form_error").show())}}),!1}function close_login_message(){$("#success_login_message").hide(),void 0!==globals.login_action?window.location=globals.login_action:window.location.reload(!0)}function header_ajax_register(e){var a=$(e).closest("form");return""===a.find("[name='csrf_token']").val()&&a.find("[name='csrf_token']").val($.cookie("csrf_cookie")),$.ajax({type:"POST",url:"/auth/register_ajax/1",cache:!1,data:a.serialize(),dataType:"json",success:function(e){"1"==e.status?window.location.reload(!0):(a.find(".col-md-6.has-error").removeClass("has-error"),a.find(".help-block").hide(),grecaptcha.reset(),$.each(e.message,function(e,n){a.find("."+e+"_error.help-block").show(),a.find("."+e+"_error.help-block").html(n),a.find("."+e+"_error.help-block").closest(".col-md-6").addClass("has-error")}))}}),!1}$(".collapse").on("shown.bs.collapse",function(){$(this).parent().find(".fa-chevron-circle-right").removeClass("fa-chevron-circle-right").addClass("fa-chevron-circle-down")}).on("hidden.bs.collapse",function(){$(this).parent().find(".fa-chevron-circle-down").removeClass("fa-chevron-circle-down").addClass("fa-chevron-circle-right")}),$(document).on("click",".property .price .act .btn",function(){$(this).parents(".act").fadeOut()}),$(document).on("click",".property .rooms a.close",function(){$(this).parents(".property").find(".price").find(".act").addClass("animated fadeIn"),$(this).parents(".property").find(".price").find(".act").show()}),$(function(){var e,a,n;$(".hideSec .read-more").click(function(){return n=0,e=$(this),$p=e.parent(),a=$p.parent(),a.find(".showSec:not('.read-more')").each(function(){n+=$(this).outerHeight()}),a.css({height:a.height(),"max-height":9999}).animate({height:n}),$p.fadeOut(),!1})}),$(document).ready(function(){$(".dropdown.mega-dropdown a").on("click",function(e){var a=$(this).data("tabactive");$(this).parent().addClass("open"),"register"===a?$("#header_login_tabs li:eq(1) a").tab("show"):$("#header_login_tabs li:eq(0) a").tab("show")}),$("body").on("click",function(e){$(".dropdown.mega-dropdown").is(e.target)||0!==$(".dropdown.mega-dropdown").has(e.target).length||0!==$(".open").has(e.target).length||$(".dropdown.mega-dropdown").removeClass("open"),!$(".popup-visas-consulat").is(e.target)&&$(".popup-visas-consulat").length>0&&$(".popup-visas-consulat").popover("hide"),$(".advSearch-container").is(e.target)||0!==$(".advSearch-container").has(e.target).length||1!=$(".advSearch-container").is(":visible")||($(".advSearch-container .panel-default .panel-collapse.in ul li:first a").click(),$(".advSearch-container").hide())}),$("ul.dropdown-menu.curencyList >
13 li").click(function(){var e=$(this).parent().data("currenturl"),a=$(this).find("span.currency_change").data("targetcurrency");window.location=e+"?currency="+a}),$(".searchBox i.fa-calendar, #side_search i.fa-calendar, .searchWidget i.fa-calendar, .calendar-container").click(function(){$(this).parent().parent().find("input").datepicker("show")}),void 0!==globals.recaptcha&&setTimeout(function(){render_second_recaptcha(globals.recaptcha.container,globals.recaptcha.site_key)},1e3),$(function(){$("img.lazy").length>0&&$("img.lazy").Lazy({effect:"fadeIn",visibleOnly:!0,skip_invisible:!0})}),$('a[data-toggle="tab"]').on("shown.bs.tab",function(e){$(e.target.hash).find(".lazy").each(function(){var e=$(this).data("src");$(this).attr("src",e).removeAttr("data-scr")})}),$(".guide-carousel").on("click",function(e){$(e.target.hash).find(".lazy").each(function(){var e=$(this).data("src");$(this).attr("src",e).removeAttr("data-scr")})})}); 14/*date-lib.js*/function siteDateString(t){function e(t){return t<10?"0"+t:t}return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.