var Template={evaluate:function(object,template,pattern){this.template=template.toString();this.pattern=pattern||this._pattern;return this.gsub(this.template,this.pattern,function(match){if(object==null)return(match[1]+'');var before=match[1]||'';if(before=='\\')return match[2];var ctx=object,expr=match[3],pattern=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;match=pattern.exec(expr);if(match==null)return before;while(match!=null){var comp=Template.startsWith(match[1],'[')?match[2].replace(/\\\\]/g,']'):match[1];ctx=ctx[comp];if(null==ctx||''==match[3])break;expr=expr.substring('['==match[3]?match[1].length:match[0].length);match=pattern.exec(expr);} return before+Template.interpret(ctx);});},interpret:function(value){return value==null?'':String(value);},lastIndexOf:function(item,i){i=isNaN(i)?this.length:(i<0?this.length+i:i)+1;var n=this.slice(0,i).reverse().indexOf(item);return(n<0)?n:i-n-1;},startsWith:function(string,pattern){return string.lastIndexOf(pattern,0)===0;},prepareReplacement:function(replacement){if(jQuery.isFunction(replacement))return replacement;return function(match){return Template.evaluate(match,replacement)};},gsub:function(source,pattern,replacement){var result='',match;replacement=this.prepareReplacement(replacement);if(typeof pattern=='string') pattern=RegExp.escape(pattern);if(!(pattern.length||pattern.source)){replacement=replacement('');return replacement+source.split('').join(replacement)+replacement;} while(source.length>0){if(match=source.match(pattern)){result+=source.slice(0,match.index);result+=Template.interpret(replacement(match));source=source.slice(match.index+match[0].length);}else{result+=source,source='';}} return result;},_pattern:/(^|.|\r|\n)(#\{(.*?)\})/};var d={htmlTemplate:"<#{tag} id='#{id}' class='#{className}'>#{inner}",simpleHtmlTemplate:"<#{tag}>#{inner}",maxNumber:Number.MAX_VALUE,minNumber:Number.MIN_VALUE,template:function(object,template){return Template.evaluate(object,template);},html:function(object){return Template.evaluate(object,this.htmlTemplate);},dom:function(object){return $(this.html(object));},simpleDom:function(object){return $(Template.evaluate(object,this.simpleHtmlTemplate));},rand:function(magnitude){if(!magnitude)magnitude=100;return Math.floor(Math.random()*magnitude);},randNeg:function(magnitude){return this.rand(magnitude)*this.bin();},bin:function(){return((this.time()%2==0)?1:-1);},id:function(id){return $('#'+id);},time:function(){return(new Date()).getTime();},px:function(pixels){return pixels+"px";},mpx:function(pixels){return'-'+pixels+"px";},rpx:function(value){return value.replace('px','');},tag:function(element){return $(element).get(0).tagName.toLowerCase();},isCheckbox:function(element){return(this.tag(element)==='input'&&$(element).attr('type')==='checkbox');},isCombo:function(element){return(this.tag(element)==='select');},noCache:function(file){return file+'?t='+this.time();}};;(function(){var initializing=false,fnTest=/xyz/.test(function(){xyz;})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(prop){var _super=this.prototype;initializing=true;var prototype=new this();initializing=false;for(var name in prop){prototype[name]=typeof prop[name]=="function"&&typeof _super[name]=="function"&&fnTest.test(prop[name])?(function(name,fn){return function(){var tmp=this._super;this._super=_super[name];var ret=fn.apply(this,arguments);this._super=tmp;return ret;};})(name,prop[name]):prop[name];} function Class(){if(!initializing&&this.init) this.init.apply(this,arguments);} Class.prototype=prototype;Class.constructor=Class;Class.extend=arguments.callee;return Class;};})();;var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0;}} else if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7");} catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always";} catch(e){if(playerVersion[0]==6){fp6Crash=true;}} if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX);} catch(e){}}} if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)];}} catch(e){}}} var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);/*@cc_on ie = true; @if (@_win32) windows = true; @elif (@_mac) mac = true; @end @*/return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac};}();var onDomLoad=function(){if(!ua.w3cdom){return;} addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState);}} catch(e){}} if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions();}},10);} if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null);} addLoadEvent(callDomLoadFunctions);}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions();}} function callDomLoadFunctions(){if(isDomLoaded){return;} if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t);} catch(e){return;}} isDomLoaded=true;if(timer){clearInterval(timer);timer=null;} var dl=domLoadFnArr.length;for(var i=0;i0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj);} setVisibility(id,true);} else if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i]);} else{displayAltContent(obj);}}} else{setVisibility(id,true);}}} function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i';}} el.outerHTML=''+par+'';objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id);} else if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k]);} else if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k]);} else if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k]);}}} for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l]);}}} el.parentNode.replaceChild(e,el);r=e;} else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m]);} else if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m]);}}} for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n]);}} el.parentNode.replaceChild(o,el);r=o;}} return r;} function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p);} function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id);} else{win.attachEvent("onload",function(){removeObjectInIE(id);});}} else{obj.parentNode.removeChild(obj);}}} function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null;}} obj.parentNode.removeChild(obj);}} function getElementById(id){var el=null;try{el=doc.getElementById(id);} catch(e){} return el;} function createElement(el){return doc.createElement(el);} function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn];} function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false;} function createCSS(sel,decl){if(ua.ie&&ua.mac){return;} var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"));} h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl);}}} function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v;} else{createCSS("#"+id,"visibility:"+v);}} function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s;} var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;idate)?1:(this=start.getTime()&&t<=end.getTime();};Date.prototype.addMilliseconds=function(value){this.setMilliseconds(this.getMilliseconds()+value);return this;};Date.prototype.addSeconds=function(value){return this.addMilliseconds(value*1000);};Date.prototype.addMinutes=function(value){return this.addMilliseconds(value*60000);};Date.prototype.addHours=function(value){return this.addMilliseconds(value*3600000);};Date.prototype.addDays=function(value){return this.addMilliseconds(value*86400000);};Date.prototype.addWeeks=function(value){return this.addMilliseconds(value*604800000);};Date.prototype.addMonths=function(value){var n=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+value);this.setDate(Math.min(n,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(value){return this.addMonths(value*12);};Date.prototype.add=function(config){if(typeof config=="number"){this._orient=config;return this;} var x=config;if(x.millisecond||x.milliseconds){this.addMilliseconds(x.millisecond||x.milliseconds);} if(x.second||x.seconds){this.addSeconds(x.second||x.seconds);} if(x.minute||x.minutes){this.addMinutes(x.minute||x.minutes);} if(x.hour||x.hours){this.addHours(x.hour||x.hours);} if(x.month||x.months){this.addMonths(x.month||x.months);} if(x.year||x.years){this.addYears(x.year||x.years);} if(x.day||x.days){this.addDays(x.day||x.days);} return this;};Date._validate=function(value,min,max,name){if(typeof value!="number"){throw new TypeError(value+" is not a Number.");}else if(valuemax){throw new RangeError(value+" is not a valid value for "+name+".");} return true;};Date.validateMillisecond=function(n){return Date._validate(n,0,999,"milliseconds");};Date.validateSecond=function(n){return Date._validate(n,0,59,"seconds");};Date.validateMinute=function(n){return Date._validate(n,0,59,"minutes");};Date.validateHour=function(n){return Date._validate(n,0,23,"hours");};Date.validateDay=function(n,year,month){return Date._validate(n,1,Date.getDaysInMonth(year,month),"days");};Date.validateMonth=function(n){return Date._validate(n,0,11,"months");};Date.validateYear=function(n){return Date._validate(n,1,9999,"seconds");};Date.prototype.set=function(config){var x=config;if(!x.millisecond&&x.millisecond!==0){x.millisecond=-1;} if(!x.second&&x.second!==0){x.second=-1;} if(!x.minute&&x.minute!==0){x.minute=-1;} if(!x.hour&&x.hour!==0){x.hour=-1;} if(!x.day&&x.day!==0){x.day=-1;} if(!x.month&&x.month!==0){x.month=-1;} if(!x.year&&x.year!==0){x.year=-1;} if(x.millisecond!=-1&&Date.validateMillisecond(x.millisecond)){this.addMilliseconds(x.millisecond-this.getMilliseconds());} if(x.second!=-1&&Date.validateSecond(x.second)){this.addSeconds(x.second-this.getSeconds());} if(x.minute!=-1&&Date.validateMinute(x.minute)){this.addMinutes(x.minute-this.getMinutes());} if(x.hour!=-1&&Date.validateHour(x.hour)){this.addHours(x.hour-this.getHours());} if(x.month!==-1&&Date.validateMonth(x.month)){this.addMonths(x.month-this.getMonth());} if(x.year!=-1&&Date.validateYear(x.year)){this.addYears(x.year-this.getFullYear());} if(x.day!=-1&&Date.validateDay(x.day,this.getFullYear(),this.getMonth())){this.addDays(x.day-this.getDate());} if(x.timezone){this.setTimezone(x.timezone);} if(x.timezoneOffset){this.setTimezoneOffset(x.timezoneOffset);} return this;};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this;};Date.prototype.isLeapYear=function(){var y=this.getFullYear();return(((y%4===0)&&(y%100!==0))||(y%400===0));};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun());};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth());};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1});};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()});};Date.prototype.moveToDayOfWeek=function(day,orient){var diff=(day-this.getDay()+7*(orient||+1))%7;return this.addDays((diff===0)?diff+=7*(orient||+1):diff);};Date.prototype.moveToMonth=function(month,orient){var diff=(month-this.getMonth()+12*(orient||+1))%12;return this.addMonths((diff===0)?diff+=12*(orient||+1):diff);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);};Date.prototype.getWeekOfYear=function(firstDayOfWeek){var y=this.getFullYear(),m=this.getMonth(),d=this.getDate();var dow=firstDayOfWeek||Date.CultureInfo.firstDayOfWeek;var offset=7+1-new Date(y,0,1).getDay();if(offset==8){offset=1;} var daynum=((Date.UTC(y,m,d,0,0,0)-Date.UTC(y,0,1,0,0,0))/86400000)+1;var w=Math.floor((daynum-offset+7)/7);if(w===dow){y--;var prevOffset=7+1-new Date(y,0,1).getDay();if(prevOffset==2||prevOffset==8){w=53;}else{w=52;}} return w;};Date.prototype.isDST=function(){console.log('isDST');return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D";};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST());};Date.prototype.setTimezoneOffset=function(s){var here=this.getTimezoneOffset(),there=Number(s)*-6/10;this.addMinutes(there-here);return this;};Date.prototype.setTimezone=function(s){return this.setTimezoneOffset(Date.getTimezoneOffset(s));};Date.prototype.getUTCOffset=function(){var n=this.getTimezoneOffset()*-10/6,r;if(n<0){r=(n-10000).toString();return r[0]+r.substr(2);}else{r=(n+10000).toString();return"+"+r.substr(1);}};Date.prototype.getDayName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()];};Date.prototype.getMonthName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()];};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(format){var self=this;var p=function p(s){return(s.toString().length==1)?"0"+s:s;};return format?format.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(format){switch(format){case"hh":return p(self.getHours()<13?self.getHours():(self.getHours()-12));case"h":return self.getHours()<13?self.getHours():(self.getHours()-12);case"HH":return p(self.getHours());case"H":return self.getHours();case"mm":return p(self.getMinutes());case"m":return self.getMinutes();case"ss":return p(self.getSeconds());case"s":return self.getSeconds();case"yyyy":return self.getFullYear();case"yy":return self.getFullYear().toString().substring(2,4);case"dddd":return self.getDayName();case"ddd":return self.getDayName(true);case"dd":return p(self.getDate());case"d":return self.getDate().toString();case"MMMM":return self.getMonthName();case"MMM":return self.getMonthName(true);case"MM":return p((self.getMonth()+1));case"M":return self.getMonth()+1;case"t":return self.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return self.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return"";}}):this._toString();};Date.now=function(){return new Date();};Date.today=function(){return Date.now().clearTime();};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this;};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var c={};c[this._dateElement]=this;return Date.now().add(c);};Number.prototype.ago=function(){var c={};c[this._dateElement]=this*-1;return Date.now().add(c);};(function(){var $D=Date.prototype,$N=Number.prototype;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;} return this.moveToDayOfWeek(n,this._orient);};};for(var i=0;i0&&!last){try{q=d.call(this,r[1]);}catch(ex){last=true;}}else{last=true;} if(!last&&q[1].length===0){last=true;} if(!last){var qx=[];for(var j=0;j0){rx[0]=rx[0].concat(p[0]);rx[1]=p[1];}} if(rx[1].length1){args=Array.prototype.slice.call(arguments);}else if(arguments[0]instanceof Array){args=arguments[0];} if(args){for(var i=0,px=args.shift();i2)?n:(n+(((n+2000)Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.");} var r=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){r.set({timezone:this.timezone});}else if(this.timezoneOffset){r.set({timezoneOffset:this.timezoneOffset});} return r;},finish:function(x){x=(x instanceof Array)?flattenAndCompact(x):[x];if(x.length===0){return null;} for(var i=0;i0&&(g.splice(m-1,2),m-=2);m=q.pkgs[g=b[0]];b=b.join("/");m&&b===g+"/"+m.main&&(b=g)}else b.indexOf("./")===0&&(b=b.substring(2));return b}function l(b,f){var g=b?b.indexOf("!"):-1,m=null,a=f?f.name:null,h=b,e,d;g!==-1&&(m=b.substring(0,g),b=b.substring(g+1,b.length));m&&(m=c(m,a));b&&(m?e=(g=n[m])&&g.normalize?g.normalize(b,function(b){return c(b,a)}):c(b,a):(e=c(b,a),d=G[e],d||(d=i.nameToUrl(b,null,f),G[e]=d)));return{prefix:m,name:e,parentMap:f,url:d,originalName:h,fullName:m?m+"!"+(e||""):e}}function j(){var b=!0,f=q.priorityWait,g,a;if(f){for(a=0;g=f[a];a++)if(!s[g]){b=!1;break}b&&delete q.priorityWait}return b} function k(b,f,g){return function(){var a=ha.call(arguments,0),c;if(g&&K(c=a[a.length-1]))c.__requireJsBuild=!0;a.push(f);return b.apply(null,a)}}function t(b,f,g){f=k(g||i.require,b,f);$(f,{nameToUrl:k(i.nameToUrl,b),toUrl:k(i.toUrl,b),defined:k(i.requireDefined,b),specified:k(i.requireSpecified,b),isBrowser:d.isBrowser});return f}function p(b){var f,g,a,c=b.callback,h=b.map,e=h.fullName,ca=b.deps;a=b.listeners;var j=q.requireExecCb||d.execCb;if(c&&K(c)){if(q.catchError.define)try{g=j(e,b.callback,ca,n[e])}catch(k){f=k}else g=j(e,b.callback,ca,n[e]);if(e)(c=b.cjsModule)&&c.exports!==r&&c.exports!==n[e]?g=n[e]=b.cjsModule.exports:g===r&&b.usingExports?g=n[e]:(n[e]=g,H[e]&&(T[e]=!0))}else e&&(g=n[e]=c,H[e]&&(T[e]=!0));if(x[b.id])delete x[b.id],b.isDone=!0,i.waitCount-=1,i.waitCount===0&&(J=[]);delete M[e];if(d.onResourceLoad&&!b.placeholder)d.onResourceLoad(i,h,b.depArray);if(f)return g=(e?l(e).url:"")||f.fileName||f.sourceURL,a=f.moduleTree,f=P("defineerror",'Error evaluating module "'+e+'" at location "'+ g+'":\n'+f+"\nfileName:"+g+"\nlineNumber: "+(f.lineNumber||f.line),f),f.moduleName=e,f.moduleTree=a,d.onError(f);for(f=0;c=a[f];f++)c(g);return r}function u(b,f){return function(g){b.depDone[f]||(b.depDone[f]=!0,b.deps[f]=g,b.depCount-=1,b.depCount||p(b))}}function o(b,f){var g=f.map,a=g.fullName,c=g.name,h=N[b]||(N[b]=n[b]),e;if(!f.loading)f.loading=!0,e=function(b){f.callback=function(){return b};p(f);s[f.id]=!0;A()},e.fromText=function(b,f){var g=Q;s[b]=!1;i.scriptCount+=1;i.fake[b]=!0;g&&(Q=!1);d.exec(f);g&&(Q=!0);i.completeLoad(b)},a in n?e(n[a]):h.load(c,t(g.parentMap,!0,function(b,a){var c=[],e,m;for(e=0;m=b[e];e++)m=l(m,g.parentMap),b[e]=m.fullName,m.prefix||c.push(b[e]);f.moduleDeps=(f.moduleDeps||[]).concat(c);return i.require(b,a)}),e,q)}function y(b){x[b.id]||(x[b.id]=b,J.push(b),i.waitCount+=1)}function D(b){this.listeners.push(b)}function v(b,f){var g=b.fullName,a=b.prefix,c=a?N[a]||(N[a]=n[a]):null,h,e;g&&(h=M[g]);if(!h&&(e=!0,h={id:(a&&!c?O++ +"__p@:":"")+(g||"__r@"+O++),map:b,depCount:0,depDone:[],depCallbacks:[],deps:[],listeners:[],add:D},B[h.id]=!0,g&&(!a||N[a])))M[g]=h;a&&!c?(g=l(a),a in n&&!n[a]&&(delete n[a],delete R[g.url]),a=v(g,!0),a.add(function(){var f=l(b.originalName,b.parentMap),f=v(f,!0);h.placeholder=!0;f.add(function(b){h.callback=function(){return b};p(h)})})):e&&f&&(s[h.id]=!1,i.paused.push(h),y(h));return h}function C(b,f,a,c){var b=l(b,c),d=b.name,h=b.fullName,e=v(b),j=e.id,k=e.deps,o;if(h){if(h in n||s[j]===!0||h==="jquery"&&q.jQuery&&q.jQuery!==a().fn.jquery)return;B[j]=!0;s[j]=!0;h==="jquery"&&a&&W(a())}e.depArray=f;e.callback=a;for(a=0;a0)return r;if(q.priorityWait)if(j())A();else return r;for(h in s)if(!(h in L)&&(c=!0,!s[h]))if(b)a+=h+" ";else if(l=!0,h.indexOf("!")===-1){k=[];break}else(e=M[h]&&M[h].moduleDeps)&&k.push.apply(k,e);if(!c&&!i.waitCount)return r;if(b&&a)return b=P("timeout","Load timeout for modules: "+a),b.requireType="timeout",b.requireModules=a,b.contextName=i.contextName,d.onError(b);if(l&&k.length)for(a=0;h=x[k[a]];a++)if(h=F(h,{})){z(h,{});break}if(!b&&(l||i.scriptCount)){if((I||da)&&!X)X=setTimeout(function(){X=0;E()},50);return r}if(i.waitCount){for(a=0;h=J[a];a++)z(h,{});i.paused.length&&A();Y<5&&(Y+=1,E())}Y=0;d.checkReadyState();return r}var i,A,q={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},catchError:{}},S=[],B={require:!0,exports:!0,module:!0},G={},n={},s={},x={},J=[],R={},O=0,M={},N={},H={},T={},Z=0;W=function(b){if(!i.jQuery&&(b=b||(typeof jQuery!=="undefined"?jQuery:null))&&!(q.jQuery&&b.fn.jquery!==q.jQuery)&&("holdReady"in b||"readyWait"in b))if(i.jQuery=b,w(["jquery",[],function(){return jQuery}]),i.scriptCount)V(b,!0),i.jQueryIncremented=!0};A=function(){var b,a,c,l,k,h;i.takeGlobalQueue();Z+=1;if(i.scriptCount<=0)i.scriptCount=0;for(;S.length;)if(b=S.shift(),b[0]===null)return d.onError(P("mismatch","Mismatched anonymous define() module: "+b[b.length-1]));else w(b);if(!q.priorityWait||j())for(;i.paused.length;){k=i.paused;i.pausedCount+=k.length;i.paused=[];for(l=0;b=k[l];l++)a=b.map,c=a.url,h=a.fullName,a.prefix?o(a.prefix,b):!R[c]&&!s[h]&&((q.requireLoad||d.load)(i,h,c),c.indexOf("empty:")!==0&&(R[c]=!0));i.startTime=(new Date).getTime();i.pausedCount-=k.length}Z===1&&E();Z-=1;return r};i={contextName:a,config:q,defQueue:S,waiting:x,waitCount:0,specified:B,loaded:s,urlMap:G,urlFetched:R,scriptCount:0,defined:n,paused:[],pausedCount:0,plugins:N,needFullExec:H,fake:{},fullExec:T,managerCallbacks:M,makeModuleMap:l,normalize:c,configure:function(b){var a,c,d;b.baseUrl&&b.baseUrl.charAt(b.baseUrl.length-1)!=="/"&&(b.baseUrl+="/");a=q.paths;d=q.pkgs;$(q,b,!0);if(b.paths){for(c in b.paths)c in L||(a[c]=b.paths[c]);q.paths=a}if((a=b.packagePaths)||b.packages){if(a)for(c in a)c in L||aa(d,a[c],c);b.packages&&aa(d,b.packages);q.pkgs=d}if(b.priority)c=i.requireWait,i.requireWait=!1,A(),i.require(b.priority),A(),i.requireWait=c,q.priorityWait=b.priority;if(b.deps||b.callback)i.require(b.deps||[],b.callback)},requireDefined:function(b,a){return l(b,a).fullName in n},requireSpecified:function(b,a){return l(b,a).fullName in B},require:function(b,c,g){if(typeof b==="string"){if(K(c))return d.onError(P("requireargs","Invalid require call"));if(d.get)return d.get(i,b,c);c=l(b,c);b=c.fullName;return!(b in n)?d.onError(P("notloaded","Module name '"+c.fullName+"' has not been loaded yet for context: "+a)):n[b]}(b&&b.length||c)&&C(null,b,c,g);if(!i.requireWait)for(;!i.scriptCount&&i.paused.length;)A();return i.require},takeGlobalQueue:function(){U.length&&(ja.apply(i.defQueue,[i.defQueue.length-1,0].concat(U)),U=[])},completeLoad:function(b){var a;for(i.takeGlobalQueue();S.length;)if(a=S.shift(),a[0]===null){a[0]=b;break}else if(a[0]===b)break;else w(a),a=null;a?w(a):w([b,[],b==="jquery"&&typeof jQuery!=="undefined"?function(){return jQuery}:null]);d.isAsync&&(i.scriptCount-=1);A();d.isAsync||(i.scriptCount-=1)},toUrl:function(b,a){var c=b.lastIndexOf("."),d=null;c!==-1&&(d=b.substring(c,b.length),b=b.substring(0,c));return i.nameToUrl(b,d,a)},nameToUrl:function(b,a,g){var l,k,h,e,j=i.config,b=c(b,g&&g.fullName);if(d.jsExtRegExp.test(b))a=b+(a?a:"");else{l=j.paths;k=j.pkgs;g=b.split("/");for(e=g.length;e>0;e--)if(h=g.slice(0,e).join("/"),l[h]){g.splice(0,e,l[h]);break}else if(h=k[h]){b=b===h.name?h.location+"/"+h.main:h.location;g.splice(0,e,b);break}a=g.join("/")+(a||".js");a=(a.charAt(0)==="/"||a.match(/^[\w\+\.\-]+:/)?"":j.baseUrl)+a}return j.urlArgs?a+((a.indexOf("?")===-1?"?":"&")+j.urlArgs):a}};i.jQueryCheck=W;i.resume=A;return i}function ka(){var a,c,d;if(C&&C.readyState==="interactive")return C;a=document.getElementsByTagName("script");for(c=a.length-1;c>-1&&(d=a[c]);c--)if(d.readyState==="interactive")return C=d;return null}var la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/require\(\s*["']([^'"\s]+)["']\s*\)/g,fa=/^\.\//,ba=/\.js$/,O=Object.prototype.toString,u=Array.prototype,ha=u.slice,ja=u.splice,I=!!(typeof window!=="undefined"&&navigator&&document),da=!I&&typeof importScripts!=="undefined",na=I&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,ea=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",L={},D={},U=[],C=null,Y=0,Q=!1,ia={require:!0,module:!0,exports:!0},d,u={},J,y,v,E,o,w,F,B,z,W,X;if(typeof define==="undefined"){if(typeof requirejs!=="undefined")if(K(requirejs))return;else u=requirejs,requirejs=r;typeof require!=="undefined"&&!K(require)&&(u=require,require=r);d=requirejs=function(a,c,d){var j="_",k;!G(a)&&typeof a!=="string"&&(k=a,G(c)?(a=c,c=d):a=[]);if(k&&k.context)j=k.context;d=D[j]||(D[j]=ga(j));k&&d.configure(k);return d.require(a,c)};d.config=function(a){return d(a)};require||(require=d);d.toUrl=function(a){return D._.toUrl(a)};d.version="1.0.8";d.jsExtRegExp=/^\/|:|\?|\.js$/;y=d.s={contexts:D,skipAsync:{}};if(d.isAsync=d.isBrowser=I)if(v=y.head=document.getElementsByTagName("head")[0],E=document.getElementsByTagName("base")[0])v=y.head=E.parentNode;d.onError=function(a){throw a;};d.load=function(a,c,l){d.resourcesReady(!1);a.scriptCount+=1;d.attach(l,a,c);if(a.jQuery&&!a.jQueryIncremented)V(a.jQuery,!0),a.jQueryIncremented=!0};define=function(a,c,d){var j,k;typeof a!=="string"&&(d=c,c=a,a=null);G(c)||(d=c,c=[]);!c.length&&K(d)&&d.length&&(d.toString().replace(la,"").replace(ma,function(a,d){c.push(d)}),c=(d.length===1?["require"]:["require","exports","module"]).concat(c));if(Q&&(j=J||ka()))a||(a=j.getAttribute("data-requiremodule")),k=D[j.getAttribute("data-requirecontext")];(k?k.defQueue:U).push([a,c,d]);return r};define.amd={multiversion:!0,plugins:!0,jQuery:!0};d.exec=function(a){return eval(a)};d.execCb=function(a,c,d,j){return c.apply(j,d)};d.addScriptToDom=function(a){J=a;E?v.insertBefore(a,E):v.appendChild(a);J=null};d.onScriptLoad=function(a){var c=a.currentTarget||a.srcElement,l;if(a.type==="load"||c&&na.test(c.readyState))C=null,a=c.getAttribute("data-requirecontext"),l=c.getAttribute("data-requiremodule"),D[a].completeLoad(l),c.detachEvent&&!ea?c.detachEvent("onreadystatechange",d.onScriptLoad):c.removeEventListener("load",d.onScriptLoad,!1)};d.attach=function(a,c,l,j,k,o){var p;if(I)return j=j||d.onScriptLoad,p=c&&c.config&&c.config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),p.type=k||c&&c.config.scriptType||"text/javascript",p.charset="utf-8",p.async=!y.skipAsync[a],c&&p.setAttribute("data-requirecontext",c.contextName),p.setAttribute("data-requiremodule",l),p.attachEvent&&!(p.attachEvent.toString&&p.attachEvent.toString().indexOf("[native code]")<0)&&!ea?(Q=!0,o?p.onreadystatechange=function(){if(p.readyState==="loaded")p.onreadystatechange=null,p.attachEvent("onreadystatechange",j),o(p)}:p.attachEvent("onreadystatechange",j)):p.addEventListener("load",j,!1),p.src=a,o||d.addScriptToDom(p),p;else da&&(importScripts(a),c.completeLoad(l));return null};if(I){o=document.getElementsByTagName("script");for(B=o.length-1;B>-1&&(w=o[B]);B--){if(!v)v=w.parentNode;if(F=w.getAttribute("data-main")){if(!u.baseUrl)o=F.split("/"),w=o.pop(),o=o.length?o.join("/")+"/":"./",u.baseUrl=o,F=w.replace(ba,"");u.deps=u.deps?u.deps.concat(F):[F];break}}}d.checkReadyState=function(){var a=y.contexts,c;for(c in a)if(!(c in L)&&a[c].waitCount)return;d.resourcesReady(!0)};d.resourcesReady=function(a){var c,l;d.resourcesDone=a;if(d.resourcesDone)for(l in a=y.contexts,a)if(!(l in L)&&(c=a[l],c.jQueryIncremented))V(c.jQuery,!1),c.jQueryIncremented=!1};d.pageLoaded=function(){if(document.readyState!=="complete")document.readyState="complete"};if(I&&document.addEventListener&&!document.readyState)document.readyState="loading",window.addEventListener("load",d.pageLoaded,!1);d(u);if(d.isAsync&&typeof setTimeout!=="undefined")z=y.contexts[u.context||"_"],z.requireWait=!0,setTimeout(function(){z.requireWait=!1;z.scriptCount||z.resume();d.checkReadyState()},0)}})(); ;(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,h=e.reduce,v=e.reduceRight,d=e.filter,g=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,_=Object.keys,j=i.bind,w=function(n){return n instanceof w?n:this instanceof w?(this._wrapped=n,void 0):new w(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):n._=w,w.VERSION="1.4.4";var A=w.each=w.forEach=function(n,t,e){if(null!=n)if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var a in n)if(w.has(n,a)&&t.call(e,n[a],a,n)===r)return};w.map=w.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e[e.length]=t.call(r,n,u,i)}),e)};var O="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=w.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(A(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError(O);return r},w.reduceRight=w.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduceRight===v)return e&&(t=w.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(i!==+i){var a=w.keys(n);i=a.length}if(A(n,function(o,c,l){c=a?a[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(O);return r},w.find=w.detect=function(n,t,r){var e;return E(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},w.filter=w.select=function(n,t,r){var e=[];return null==n?e:d&&n.filter===d?n.filter(t,r):(A(n,function(n,u,i){t.call(r,n,u,i)&&(e[e.length]=n)}),e)},w.reject=function(n,t,r){return w.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},w.every=w.all=function(n,t,e){t||(t=w.identity);var u=!0;return null==n?u:g&&n.every===g?n.every(t,e):(A(n,function(n,i,a){return(u=u&&t.call(e,n,i,a))?void 0:r}),!!u)};var E=w.some=w.any=function(n,t,e){t||(t=w.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,e):(A(n,function(n,i,a){return u||(u=t.call(e,n,i,a))?r:void 0}),!!u)};w.contains=w.include=function(n,t){return null==n?!1:y&&n.indexOf===y?n.indexOf(t)!=-1:E(n,function(n){return n===t})},w.invoke=function(n,t){var r=o.call(arguments,2),e=w.isFunction(t);return w.map(n,function(n){return(e?t:n[t]).apply(n,r)})},w.pluck=function(n,t){return w.map(n,function(n){return n[t]})},w.where=function(n,t,r){return w.isEmpty(t)?r?null:[]:w[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},w.findWhere=function(n,t){return w.where(n,t,!0)},w.max=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.max.apply(Math,n);if(!t&&w.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;a>=e.computed&&(e={value:n,computed:a})}),e.value},w.min=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.min.apply(Math,n);if(!t&&w.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return A(n,function(n,u,i){var a=t?t.call(r,n,u,i):n;e.computed>a&&(e={value:n,computed:a})}),e.value},w.shuffle=function(n){var t,r=0,e=[];return A(n,function(n){t=w.random(r++),e[r-1]=e[t],e[t]=n}),e};var k=function(n){return w.isFunction(n)?n:function(t){return t[n]}};w.sortBy=function(n,t,r){var e=k(t);return w.pluck(w.map(n,function(n,t,u){return{value:n,index:t,criteria:e.call(r,n,t,u)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.indexi;){var o=i+a>>>1;u>r.call(e,n[o])?i=o+1:a=o}return i},w.toArray=function(n){return n?w.isArray(n)?o.call(n):n.length===+n.length?w.map(n,w.identity):w.values(n):[]},w.size=function(n){return null==n?0:n.length===+n.length?n.length:w.keys(n).length},w.first=w.head=w.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:o.call(n,0,t)},w.initial=function(n,t,r){return o.call(n,0,n.length-(null==t||r?1:t))},w.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:o.call(n,Math.max(n.length-t,0))},w.rest=w.tail=w.drop=function(n,t,r){return o.call(n,null==t||r?1:t)},w.compact=function(n){return w.filter(n,w.identity)};var R=function(n,t,r){return A(n,function(n){w.isArray(n)?t?a.apply(r,n):R(n,t,r):r.push(n)}),r};w.flatten=function(n,t){return R(n,t,[])},w.without=function(n){return w.difference(n,o.call(arguments,1))},w.uniq=w.unique=function(n,t,r,e){w.isFunction(t)&&(e=r,r=t,t=!1);var u=r?w.map(n,r,e):n,i=[],a=[];return A(u,function(r,e){(t?e&&a[a.length-1]===r:w.contains(a,r))||(a.push(r),i.push(n[e]))}),i},w.union=function(){return w.uniq(c.apply(e,arguments))},w.intersection=function(n){var t=o.call(arguments,1);return w.filter(w.uniq(n),function(n){return w.every(t,function(t){return w.indexOf(t,n)>=0})})},w.difference=function(n){var t=c.apply(e,o.call(arguments,1));return w.filter(n,function(n){return!w.contains(t,n)})},w.zip=function(){for(var n=o.call(arguments),t=w.max(w.pluck(n,"length")),r=Array(t),e=0;t>e;e++)r[e]=w.pluck(n,""+e);return r},w.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},w.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=w.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}if(y&&n.indexOf===y)return n.indexOf(t,r);for(;u>e;e++)if(n[e]===t)return e;return-1},w.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=null!=r;if(b&&n.lastIndexOf===b)return e?n.lastIndexOf(t,r):n.lastIndexOf(t);for(var u=e?r:n.length;u--;)if(n[u]===t)return u;return-1},w.range=function(n,t,r){1>=arguments.length&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=0,i=Array(e);e>u;)i[u++]=n,n+=r;return i},w.bind=function(n,t){if(n.bind===j&&j)return j.apply(n,o.call(arguments,1));var r=o.call(arguments,2);return function(){return n.apply(t,r.concat(o.call(arguments)))}},w.partial=function(n){var t=o.call(arguments,1);return function(){return n.apply(this,t.concat(o.call(arguments)))}},w.bindAll=function(n){var t=o.call(arguments,1);return 0===t.length&&(t=w.functions(n)),A(t,function(t){n[t]=w.bind(n[t],n)}),n},w.memoize=function(n,t){var r={};return t||(t=w.identity),function(){var e=t.apply(this,arguments);return w.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},w.delay=function(n,t){var r=o.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},w.defer=function(n){return w.delay.apply(w,[n,1].concat(o.call(arguments,1)))},w.throttle=function(n,t){var r,e,u,i,a=0,o=function(){a=new Date,u=null,i=n.apply(r,e)};return function(){var c=new Date,l=t-(c-a);return r=this,e=arguments,0>=l?(clearTimeout(u),u=null,a=c,i=n.apply(r,e)):u||(u=setTimeout(o,l)),i}},w.debounce=function(n,t,r){var e,u;return function(){var i=this,a=arguments,o=function(){e=null,r||(u=n.apply(i,a))},c=r&&!e;return clearTimeout(e),e=setTimeout(o,t),c&&(u=n.apply(i,a)),u}},w.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},w.wrap=function(n,t){return function(){var r=[n];return a.apply(r,arguments),t.apply(this,r)}},w.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},w.after=function(n,t){return 0>=n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},w.keys=_||function(n){if(n!==Object(n))throw new TypeError("Invalid object");var t=[];for(var r in n)w.has(n,r)&&(t[t.length]=r);return t},w.values=function(n){var t=[];for(var r in n)w.has(n,r)&&t.push(n[r]);return t},w.pairs=function(n){var t=[];for(var r in n)w.has(n,r)&&t.push([r,n[r]]);return t},w.invert=function(n){var t={};for(var r in n)w.has(n,r)&&(t[n[r]]=r);return t},w.functions=w.methods=function(n){var t=[];for(var r in n)w.isFunction(n[r])&&t.push(r);return t.sort()},w.extend=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]=t[r]}),n},w.pick=function(n){var t={},r=c.apply(e,o.call(arguments,1));return A(r,function(r){r in n&&(t[r]=n[r])}),t},w.omit=function(n){var t={},r=c.apply(e,o.call(arguments,1));for(var u in n)w.contains(r,u)||(t[u]=n[u]);return t},w.defaults=function(n){return A(o.call(arguments,1),function(t){if(t)for(var r in t)null==n[r]&&(n[r]=t[r])}),n},w.clone=function(n){return w.isObject(n)?w.isArray(n)?n.slice():w.extend({},n):n},w.tap=function(n,t){return t(n),n};var I=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof w&&(n=n._wrapped),t instanceof w&&(t=t._wrapped);var u=l.call(n);if(u!=l.call(t))return!1;switch(u){case"[object String]":return n==t+"";case"[object Number]":return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object RegExp]":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]==n)return e[i]==t;r.push(n),e.push(t);var a=0,o=!0;if("[object Array]"==u){if(a=n.length,o=a==t.length)for(;a--&&(o=I(n[a],t[a],r,e)););}else{var c=n.constructor,f=t.constructor;if(c!==f&&!(w.isFunction(c)&&c instanceof c&&w.isFunction(f)&&f instanceof f))return!1;for(var s in n)if(w.has(n,s)&&(a++,!(o=w.has(t,s)&&I(n[s],t[s],r,e))))break;if(o){for(s in t)if(w.has(t,s)&&!a--)break;o=!a}}return r.pop(),e.pop(),o};w.isEqual=function(n,t){return I(n,t,[],[])},w.isEmpty=function(n){if(null==n)return!0;if(w.isArray(n)||w.isString(n))return 0===n.length;for(var t in n)if(w.has(n,t))return!1;return!0},w.isElement=function(n){return!(!n||1!==n.nodeType)},w.isArray=x||function(n){return"[object Array]"==l.call(n)},w.isObject=function(n){return n===Object(n)},A(["Arguments","Function","String","Number","Date","RegExp"],function(n){w["is"+n]=function(t){return l.call(t)=="[object "+n+"]"}}),w.isArguments(arguments)||(w.isArguments=function(n){return!(!n||!w.has(n,"callee"))}),"function"!=typeof/./&&(w.isFunction=function(n){return"function"==typeof n}),w.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},w.isNaN=function(n){return w.isNumber(n)&&n!=+n},w.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==l.call(n)},w.isNull=function(n){return null===n},w.isUndefined=function(n){return n===void 0},w.has=function(n,t){return f.call(n,t)},w.noConflict=function(){return n._=t,this},w.identity=function(n){return n},w.times=function(n,t,r){for(var e=Array(n),u=0;n>u;u++)e[u]=t.call(r,u);return e},w.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};var M={escape:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}};M.unescape=w.invert(M.escape);var S={escape:RegExp("["+w.keys(M.escape).join("")+"]","g"),unescape:RegExp("("+w.keys(M.unescape).join("|")+")","g")};w.each(["escape","unescape"],function(n){w[n]=function(t){return null==t?"":(""+t).replace(S[n],function(t){return M[n][t]})}}),w.result=function(n,t){if(null==n)return null;var r=n[t];return w.isFunction(r)?r.call(n):r},w.mixin=function(n){A(w.functions(n),function(t){var r=w[t]=n[t];w.prototype[t]=function(){var n=[this._wrapped];return a.apply(n,arguments),D.call(this,r.apply(w,n))}})};var N=0;w.uniqueId=function(n){var t=++N+"";return n?n+t:t},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},B=/\\|'|\r|\n|\t|\u2028|\u2029/g;w.template=function(n,t,r){var e;r=w.defaults({},r,w.templateSettings);var u=RegExp([(r.escape||T).source,(r.interpolate||T).source,(r.evaluate||T).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(u,function(t,r,e,u,o){return a+=n.slice(i,o).replace(B,function(n){return"\\"+q[n]}),r&&(a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"),e&&(a+="'+\n((__t=("+e+"))==null?'':__t)+\n'"),u&&(a+="';\n"+u+"\n__p+='"),i=o+t.length,t}),a+="';\n",r.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{e=Function(r.variable||"obj","_",a)}catch(o){throw o.source=a,o}if(t)return e(t,w);var c=function(n){return e.call(this,n,w)};return c.source="function("+(r.variable||"obj")+"){\n"+a+"}",c},w.chain=function(n){return w(n).chain()};var D=function(n){return this._chain?w(n).chain():n};w.mixin(w),A(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=e[n];w.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!=n&&"splice"!=n||0!==r.length||delete r[0],D.call(this,r)}}),A(["concat","join","slice"],function(n){var t=e[n];w.prototype[n]=function(){return D.call(this,t.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this); ;/* Copyright 2014 Igor Vaynberg Version: 3.5.1 Timestamp: Tue Jul 22 18:58:56 EDT 2014 This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the condition that you accept all of the terms of either the Apache License or the GPL License. You may obtain a copy of the Apache License and the GPL License at: http://www.apache.org/licenses/LICENSE-2.0 http://www.gnu.org/licenses/gpl-2.0.html Unless required by applicable law or agreed to in writing, software distributed under the Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for the specific language governing permissions and limitations under the Apache License and the GPL License. */ !function(a){"undefined"==typeof a.fn.each2&&a.extend(a.fn,{each2:function(b){for(var c=a([0]),d=-1,e=this.length;++dc;c+=1)if(r(a,b[c]))return c;return-1}function q(){var b=a(l);b.appendTo("body");var c={width:b.width()-b[0].clientWidth,height:b.height()-b[0].clientHeight};return b.remove(),c}function r(a,c){return a===c?!0:a===b||c===b?!1:null===a||null===c?!1:a.constructor===String?a+""==c+"":c.constructor===String?c+""==a+"":!1}function s(b,c){var d,e,f;if(null===b||b.length<1)return[];for(d=b.split(c),e=0,f=d.length;f>e;e+=1)d[e]=a.trim(d[e]);return d}function t(a){return a.outerWidth(!1)-a.width()}function u(c){var d="keyup-change-value";c.on("keydown",function(){a.data(c,d)===b&&a.data(c,d,c.val())}),c.on("keyup",function(){var e=a.data(c,d);e!==b&&c.val()!==e&&(a.removeData(c,d),c.trigger("keyup-change"))})}function v(c){c.on("mousemove",function(c){var d=i;(d===b||d.x!==c.pageX||d.y!==c.pageY)&&a(c.target).trigger("mousemove-filtered",c)})}function w(a,c,d){d=d||b;var e;return function(){var b=arguments;window.clearTimeout(e),e=window.setTimeout(function(){c.apply(d,b)},a)}}function x(a,b){var c=w(a,function(a){b.trigger("scroll-debounced",a)});b.on("scroll",function(a){p(a.target,b.get())>=0&&c(a)})}function y(a){a[0]!==document.activeElement&&window.setTimeout(function(){var d,b=a[0],c=a.val().length;a.focus();var e=b.offsetWidth>0||b.offsetHeight>0;e&&b===document.activeElement&&(b.setSelectionRange?b.setSelectionRange(c,c):b.createTextRange&&(d=b.createTextRange(),d.collapse(!1),d.select()))},0)}function z(b){b=a(b)[0];var c=0,d=0;if("selectionStart"in b)c=b.selectionStart,d=b.selectionEnd-c;else if("selection"in document){b.focus();var e=document.selection.createRange();d=document.selection.createRange().text.length,e.moveStart("character",-b.value.length),c=e.text.length-d}return{offset:c,length:d}}function A(a){a.preventDefault(),a.stopPropagation()}function B(a){a.preventDefault(),a.stopImmediatePropagation()}function C(b){if(!h){var c=b[0].currentStyle||window.getComputedStyle(b[0],null);h=a(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),h.attr("class","select2-sizer"),a("body").append(h)}return h.text(b.val()),h.width()}function D(b,c,d){var e,g,f=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&f.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(g=d(this),g&&f.push(g))})),b.attr("class",f.join(" "))}function E(a,b,c,d){var e=o(a.toUpperCase()).indexOf(o(b.toUpperCase())),f=b.length;return 0>e?(c.push(d(a)),void 0):(c.push(d(a.substring(0,e))),c.push(""),c.push(d(a.substring(e,e+f))),c.push(""),c.push(d(a.substring(e+f,a.length))),void 0)}function F(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})}function G(c){var d,e=null,f=c.quietMillis||100,g=c.url,h=this;return function(i){window.clearTimeout(d),d=window.setTimeout(function(){var d=c.data,f=g,j=c.transport||a.fn.select2.ajaxDefaults.transport,k={type:c.type||"GET",cache:c.cache||!1,jsonpCallback:c.jsonpCallback||b,dataType:c.dataType||"json"},l=a.extend({},a.fn.select2.ajaxDefaults.params,k);d=d?d.call(h,i.term,i.page,i.context):null,f="function"==typeof f?f.call(h,i.term,i.page,i.context):f,e&&"function"==typeof e.abort&&e.abort(),c.params&&(a.isFunction(c.params)?a.extend(l,c.params.call(h)):a.extend(l,c.params)),a.extend(l,{url:f,dataType:c.dataType,data:d,success:function(a){var b=c.results(a,i.page,i);i.callback(b)},error:function(a,b,c){var d={hasError:!0,jqXHR:a,textStatus:b,errorThrown:c};i.callback(d)}}),e=j.call(h,l)},f)}}function H(b){var d,e,c=b,f=function(a){return""+a.text};a.isArray(c)&&(e=c,c={results:e}),a.isFunction(c)===!1&&(e=c,c=function(){return e});var g=c();return g.text&&(f=g.text,a.isFunction(f)||(d=g.text,f=function(a){return a[d]})),function(b){var g,d=b.term,e={results:[]};return""===d?(b.callback(c()),void 0):(g=function(c,e){var h,i;if(c=c[0],c.children){h={};for(i in c)c.hasOwnProperty(i)&&(h[i]=c[i]);h.children=[],a(c.children).each2(function(a,b){g(b,h.children)}),(h.children.length||b.matcher(d,f(h),c))&&e.push(h)}else b.matcher(d,f(c),c)&&e.push(c)},a(c().results).each2(function(a,b){g(b,e.results)}),b.callback(e),void 0)}}function I(c){var d=a.isFunction(c);return function(e){var f=e.term,g={results:[]},h=d?c(e):c;a.isArray(h)&&(a(h).each(function(){var a=this.text!==b,c=a?this.text:this;(""===f||e.matcher(f,c))&&g.results.push(a?this:{id:this,text:this})}),e.callback(g))}}function J(b,c){if(a.isFunction(b))return!0;if(!b)return!1;if("string"==typeof b)return!0;throw new Error(c+" must be a string, function, or falsy value")}function K(b,c){if(a.isFunction(b)){var d=Array.prototype.slice.call(arguments,2);return b.apply(c,d)}return b}function L(b){var c=0;return a.each(b,function(a,b){b.children?c+=L(b.children):c++}),c}function M(a,c,d,e){var h,i,j,k,l,f=a,g=!1;if(!e.createSearchChoice||!e.tokenSeparators||e.tokenSeparators.length<1)return b;for(;;){for(i=-1,j=0,k=e.tokenSeparators.length;k>j&&(l=e.tokenSeparators[j],i=a.indexOf(l),!(i>=0));j++);if(0>i)break;if(h=a.substring(0,i),a=a.substring(i+l.length),h.length>0&&(h=e.createSearchChoice.call(this,h,c),h!==b&&null!==h&&e.id(h)!==b&&null!==e.id(h))){for(g=!1,j=0,k=c.length;k>j;j++)if(r(e.id(h),e.id(c[j]))){g=!0;break}g||d(h)}}return f!==a?a:void 0}function N(){var b=this;a.each(arguments,function(a,c){b[c].remove(),b[c]=null})}function O(b,c){var d=function(){};return d.prototype=new b,d.prototype.constructor=d,d.prototype.parent=b.prototype,d.prototype=a.extend(d.prototype,c),d}if(window.Select2===b){var c,d,e,f,g,h,j,k,i={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(a){switch(a=a.which?a.which:a){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(a){var b=a.which;switch(b){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return a.metaKey?!0:!1},isFunctionKey:function(a){return a=a.which?a.which:a,a>=112&&123>=a}},l="
",m={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};j=a(document),g=function(){var a=1;return function(){return a++}}(),d=O(Object,{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(c){var d,e,f=".select2-results";this.opts=c=this.prepareOpts(c),this.id=c.id,c.element.data("select2")!==b&&null!==c.element.data("select2")&&c.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=a("",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(c.element.attr("id")||"autogen"+g()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",c.element.attr("title")),this.body=a("body"),D(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",c.element.attr("style")),this.container.css(K(c.containerCss,this.opts.element)),this.container.addClass(K(c.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",A),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),D(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(K(c.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",A),this.results=d=this.container.find(f),this.search=e=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",A),v(this.results),this.dropdown.on("mousemove-filtered",f,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",f,this.bind(function(a){this._touchEvent=!0,this.highlightUnderEvent(a)})),this.dropdown.on("touchmove",f,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",f,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),x(80,this.results),this.dropdown.on("scroll-debounced",f,this.bind(this.loadMoreIfNeeded)),a(this.container).on("change",".select2-input",function(a){a.stopPropagation()}),a(this.dropdown).on("change",".select2-input",function(a){a.stopPropagation()}),a.fn.mousewheel&&d.mousewheel(function(a,b,c,e){var f=d.scrollTop();e>0&&0>=f-e?(d.scrollTop(0),A(a)):0>e&&d.get(0).scrollHeight-d.scrollTop()+e<=d.height()&&(d.scrollTop(d.get(0).scrollHeight-d.height()),A(a))}),u(e),e.on("keyup-change input paste",this.bind(this.updateResults)),e.on("focus",function(){e.addClass("select2-focused")}),e.on("blur",function(){e.removeClass("select2-focused")}),this.dropdown.on("mouseup",f,this.bind(function(b){a(b.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(b),this.selectHighlighted(b))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(a){a.stopPropagation()}),this.nextSearchTerm=b,a.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==c.maximumInputLength&&this.search.attr("maxlength",c.maximumInputLength);var h=c.element.prop("disabled");h===b&&(h=!1),this.enable(!h);var i=c.element.prop("readonly");i===b&&(i=!1),this.readonly(i),k=k||q(),this.autofocus=c.element.prop("autofocus"),c.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",c.searchInputPlaceholder)},destroy:function(){var a=this.opts.element,c=a.data("select2"),d=this;this.close(),a.length&&a[0].detachEvent&&a.each(function(){this.detachEvent("onpropertychange",d._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,c!==b&&(c.container.remove(),c.liveRegion.remove(),c.dropdown.remove(),a.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?a.attr({tabindex:this.elementTabIndex}):a.removeAttr("tabindex"),a.show()),N.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(a){return a.is("option")?{id:a.prop("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:a.prop("disabled"),locked:r(a.attr("locked"),"locked")||r(a.data("locked"),!0)}:a.is("optgroup")?{text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")}:void 0},prepareOpts:function(c){var d,e,f,h,i=this;if(d=c.element,"select"===d.get(0).tagName.toLowerCase()&&(this.select=e=c.element),e&&a.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in c)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a ","
"," ","
    ","
","
"].join(""));return b},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var c,d,e;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),c=this.search.get(0),c.createTextRange?(d=c.createTextRange(),d.collapse(!1),d.select()):c.setSelectionRange&&(e=this.search.val().length,c.setSelectionRange(e,e))),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){a("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),N.call(this,"selection","focusser")},initContainer:function(){var b,h,d=this.container,e=this.dropdown,f=g();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=b=d.find(".select2-choice"),this.focusser=d.find(".select2-focusser"),b.find(".select2-chosen").attr("id","select2-chosen-"+f),this.focusser.attr("aria-labelledby","select2-chosen-"+f),this.results.attr("id","select2-results-"+f),this.search.attr("aria-owns","select2-results-"+f),this.focusser.attr("id","s2id_autogen"+f),h=a("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(h.text()).attr("for",this.focusser.attr("id"));var i=this.opts.element.attr("title");this.opts.element.attr("title",i||h.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(a("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&229!=a.keyCode){if(a.which===c.PAGE_UP||a.which===c.PAGE_DOWN)return A(a),void 0;switch(a.which){case c.UP:case c.DOWN:return this.moveHighlight(a.which===c.UP?-1:1),A(a),void 0;case c.ENTER:return this.selectHighlighted(),A(a),void 0;case c.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case c.ESC:return this.cancel(a),A(a),void 0}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&a.which!==c.TAB&&!c.isControl(a)&&!c.isFunctionKey(a)&&a.which!==c.ESC){if(this.opts.openOnEnter===!1&&a.which===c.ENTER)return A(a),void 0;if(a.which==c.DOWN||a.which==c.UP||a.which==c.ENTER&&this.opts.openOnEnter){if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return;return this.open(),A(a),void 0}return a.which==c.DELETE||a.which==c.BACKSPACE?(this.opts.allowClear&&this.clear(),A(a),void 0):void 0}})),u(this.focusser),this.focusser.on("keyup-change input",this.bind(function(a){if(this.opts.minimumResultsForSearch>=0){if(a.stopPropagation(),this.opened())return;this.open()}})),b.on("mousedown touchstart","abbr",this.bind(function(a){this.isInterfaceEnabled()&&(this.clear(),B(a),this.close(),this.selection.focus())})),b.on("mousedown touchstart",this.bind(function(c){n(b),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),A(c)})),e.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),b.on("focus",this.bind(function(a){A(a)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(a.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(b){var c=this.selection.data("select2-data");if(c){var d=a.Event("select2-clearing");if(this.opts.element.trigger(d),d.isDefaultPrevented())return;var e=this.getPlaceholderOption();this.opts.element.val(e?e.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),b!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.setPlaceholder(),c.nextSearchTerm=c.opts.nextSearchTerm(a,c.search.val()))})}},isPlaceholderOptionSelected:function(){var a;return this.getPlaceholder()===b?!1:(a=this.getPlaceholderOption())!==b&&a.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val()},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=a.find("option").filter(function(){return this.selected&&!this.disabled});b(c.optionToData(d))}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=c.val(),f=null;b.query({matcher:function(a,c,d){var g=r(e,b.id(d));return g&&(f=d),g},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&a!==b){if(this.select&&this.getPlaceholderOption()===b)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(a,b,c){var d=0,e=this;if(this.findHighlightableChoices().each2(function(a,b){return r(e.id(b.data("select2-data")),e.opts.element.val())?(d=a,!1):void 0}),c!==!1&&(b===!0&&d>=0?this.highlight(d):this.highlight(0)),b===!0){var g=this.opts.minimumResultsForSearch;g>=0&&this.showSearch(L(a.results)>=g)}},showSearch:function(b){this.showSearchInput!==b&&(this.showSearchInput=b,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!b),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!b),a(this.dropdown,this.container).toggleClass("select2-with-searchbox",b))},onSelect:function(a,b){if(this.triggerSelect(a)){var c=this.opts.element.val(),d=this.data();this.opts.element.val(this.id(a)),this.updateSelection(a),this.opts.element.trigger({type:"select2-selected",val:this.id(a),choice:a}),this.nextSearchTerm=this.opts.nextSearchTerm(a,this.search.val()),this.close(),b&&b.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),r(c,this.id(a))||this.triggerChange({added:a,removed:d})}},updateSelection:function(a){var d,e,c=this.selection.find(".select2-chosen");this.selection.data("select2-data",a),c.empty(),null!==a&&(d=this.opts.formatSelection(a,c,this.opts.escapeMarkup)),d!==b&&c.append(d),e=this.opts.formatSelectionCssClass(a,c),e!==b&&c.addClass(e),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var a,c=!1,d=null,e=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(a=arguments[0],arguments.length>1&&(c=arguments[1]),this.select)this.select.val(a).find("option").filter(function(){return this.selected}).each2(function(a,b){return d=e.optionToData(b),!1}),this.updateSelection(d),this.setPlaceholder(),c&&this.triggerChange({added:d,removed:f});else{if(!a&&0!==a)return this.clear(c),void 0;if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(a),this.opts.initSelection(this.opts.element,function(a){e.opts.element.val(a?e.id(a):""),e.updateSelection(a),e.setPlaceholder(),c&&e.triggerChange({added:a,removed:f})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(a){var c,d=!1;return 0===arguments.length?(c=this.selection.data("select2-data"),c==b&&(c=null),c):(arguments.length>1&&(d=arguments[1]),a?(c=this.data(),this.opts.element.val(a?this.id(a):""),this.updateSelection(a),d&&this.triggerChange({added:a,removed:c})):this.clear(d),void 0)}}),f=O(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(["
    ","
  • "," "," ","
  • ","
","
","
    ","
","
"].join(""));return b},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=[];a.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(a,b){d.push(c.optionToData(b))}),b(d)}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=s(c.val(),b.separator),f=[];b.query({matcher:function(c,d,g){var h=a.grep(e,function(a){return r(a,b.id(g))}).length;return h&&f.push(g),h},callback:a.isFunction(d)?function(){for(var a=[],c=0;c0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.open(),this.focusSearch(),b.preventDefault()))})),this.container.on("focus",b,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder(),c=this.getMaxSearchWidth();a!==b&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(a).addClass("select2-default"),this.search.width(c>0?c:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(b){var c=[],d=[],e=this;a(b).each(function(){p(e.id(this),c)<0&&(c.push(e.id(this)),d.push(this))}),b=d,this.selection.find(".select2-search-choice").remove(),a(b).each(function(){e.addSelectedChoice(this)}),e.postprocessResults()},tokenize:function(){var a=this.search.val();a=this.opts.tokenizer.call(this,a,this.data(),this.bind(this.onSelect),this.opts),null!=a&&a!=b&&(this.search.val(a),a.length>0&&this.open())},onSelect:function(a,c){this.triggerSelect(a)&&""!==a.text&&(this.addSelectedChoice(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),this.nextSearchTerm=this.opts.nextSearchTerm(a,this.search.val()),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(a,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:a}),c&&c.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(c){var j,k,d=!c.locked,e=a("
  • "),f=a("
  • "),g=d?e:f,h=this.id(c),i=this.getVal();j=this.opts.formatSelection(c,g.find("div"),this.opts.escapeMarkup),j!=b&&g.find("div").replaceWith("
    "+j+"
    "),k=this.opts.formatSelectionCssClass(c,g.find("div")),k!=b&&g.addClass(k),d&&g.find(".select2-search-choice-close").on("mousedown",A).on("click dblclick",this.bind(function(b){this.isInterfaceEnabled()&&(this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),A(b),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),g.data("select2-data",c),g.insertBefore(this.searchContainer),i.push(h),this.setVal(i)},unselect:function(b){var d,e,c=this.getVal();if(b=b.closest(".select2-search-choice"),0===b.length)throw"Invalid argument: "+b+". Must be .select2-search-choice";if(d=b.data("select2-data")){var f=a.Event("select2-removing");if(f.val=this.id(d),f.choice=d,this.opts.element.trigger(f),f.isDefaultPrevented())return!1;for(;(e=p(this.id(d),c))>=0;)c.splice(e,1),this.setVal(c),this.select&&this.postprocessResults();return b.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(d),choice:d}),this.triggerChange({removed:d}),!0}},postprocessResults:function(a,b,c){var d=this.getVal(),e=this.results.find(".select2-result"),f=this.results.find(".select2-result-with-children"),g=this;e.each2(function(a,b){var c=g.id(b.data("select2-data"));p(c,d)>=0&&(b.addClass("select2-selected"),b.find(".select2-result-selectable").addClass("select2-selected"))}),f.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),-1==this.highlight()&&c!==!1&&g.highlight(0),!this.opts.createSearchChoice&&!e.filter(".select2-result:not(.select2-selected)").length>0&&(!a||a&&!a.more&&0===this.results.find(".select2-no-results").length)&&J(g.opts.formatNoMatches,"formatNoMatches")&&this.results.append("
  • "+K(g.opts.formatNoMatches,g.opts.element,g.search.val())+"
  • ")},getMaxSearchWidth:function(){return this.selection.width()-t(this.search)},resizeSearch:function(){var a,b,c,d,e,f=t(this.search);a=C(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,a>e&&(e=c-f),40>e&&(e=c-f),0>=e&&(e=a),this.search.width(Math.floor(e))},getVal:function(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),s(a,this.opts.separator))},setVal:function(b){var c;this.select?this.select.val(b):(c=[],a(b).each(function(){p(this,c)<0&&c.push(this)}),this.opts.element.val(0===c.length?"":c.join(this.opts.separator)))},buildChangeDetails:function(a,b){for(var b=b.slice(0),a=a.slice(0),c=0;c0&&c--,a.splice(d,1),d--);return{added:b,removed:a}},val:function(c,d){var e,f=this;if(0===arguments.length)return this.getVal();if(e=this.data(),e.length||(e=[]),!c&&0!==c)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),d&&this.triggerChange({added:this.data(),removed:e}),void 0;if(this.setVal(c),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),d&&this.triggerChange(this.buildChangeDetails(e,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(b){var c=a.map(b,f.id);f.setVal(c),f.updateSelection(b),f.clearSearch(),d&&f.triggerChange(f.buildChangeDetails(e,f.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(b,c){var e,f,d=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(f=this.data(),b||(b=[]),e=a.map(b,function(a){return d.opts.id(a)}),this.setVal(e),this.updateSelection(b),this.clearSearch(),c&&this.triggerChange(this.buildChangeDetails(f,this.data())),void 0)}}),a.fn.select2=function(){var d,e,f,g,h,c=Array.prototype.slice.call(arguments,0),i=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],j=["opened","isFocused","container","dropdown"],k=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===c.length||"object"==typeof c[0])d=0===c.length?{}:a.extend({},c[0]),d.element=a(this),"select"===d.element.get(0).tagName.toLowerCase()?h=d.element.prop("multiple"):(h=d.multiple||!1,"tags"in d&&(d.multiple=h=!0)),e=h?new window.Select2["class"].multi:new window.Select2["class"].single,e.init(d);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(p(c[0],i)<0)throw"Unknown method: "+c[0];if(g=b,e=a(this).data("select2"),e===b)return;if(f=c[0],"container"===f?g=e.container:"dropdown"===f?g=e.dropdown:(l[f]&&(f=l[f]),g=e[f].apply(e,c.slice(1))),p(c[0],j)>=0||p(c[0],k)>=0&&1==c.length)return!1}}),g===b?this:g},a.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return E(a.text,c.term,e,d),e.join("")},formatSelection:function(a,c,d){return a?d(a.text):b},sortResults:function(a){return a},formatResultCssClass:function(a){return a.css},formatSelectionCssClass:function(){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a==b?null:a.id},matcher:function(a,b){return o(""+b).toUpperCase().indexOf(o(""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:M,escapeMarkup:F,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(a){var b="ontouchstart"in window||navigator.msMaxTouchPoints>0;return b?a.opts.minimumResultsForSearch<0?!1:!0:!0}},a.fn.select2.locales=[],a.fn.select2.locales.en={formatMatches:function(a){return 1===a?"One result is available, press enter to select it.":a+" results are available, use up and down arrow keys to navigate." },formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" or more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results\u2026"},formatSearching:function(){return"Searching\u2026"}},a.extend(a.fn.select2.defaults,a.fn.select2.locales.en),a.fn.select2.ajaxDefaults={transport:a.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:G,local:H,tags:I},util:{debounce:w,markMatch:E,escapeMarkup:F,stripDiacritics:o},"class":{"abstract":d,single:e,multi:f}}}}(jQuery); ;jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;} var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;} expires='; expires='+date.toUTCString();} var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i-1){qString=window.location.search.substr(1,window.location.search.length).split("&");}}else if($(this).attr("src")!="undefined"){var strHref=$(this).attr("src") if(strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?")+1);qString=strQueryString.split("&");}}else if($(this).attr("href")!="undefined"){var strHref=$(this).attr("href") if(strHref.indexOf("?")>-1){var strQueryString=strHref.substr(strHref.indexOf("?")+1);qString=strQueryString.split("&");}}else{return null;} if(qString==null)return null;for(var i=0;i').css({outline:"none"}).attr("id",settings.idPrefix+input.id).focus(function(){if(settings.tokenLimit===null||settings.tokenLimit!==token_count){show_dropdown_hint();}}).blur(function(){hide_dropdown();$(this).val("");}).bind("keyup keydown blur update",resize_input).keydown(function(event){var previous_token;var next_token;switch(event.keyCode){case KEY.LEFT:case KEY.RIGHT:case KEY.UP:case KEY.DOWN:if(!$(this).val()){previous_token=input_token.prev();next_token=input_token.next();if((previous_token.length&&previous_token.get(0)===selected_token)||(next_token.length&&next_token.get(0)===selected_token)){if(event.keyCode===KEY.LEFT||event.keyCode===KEY.UP){deselect_token($(selected_token),POSITION.BEFORE);}else{deselect_token($(selected_token),POSITION.AFTER);}}else{if((event.keyCode===KEY.LEFT||event.keyCode===KEY.UP)&&previous_token.length){select_token($(previous_token.get(0)));}else{if((event.keyCode===KEY.RIGHT||event.keyCode===KEY.DOWN)&&next_token.length){select_token($(next_token.get(0)));}}}}else{var dropdown_item=null;if(event.keyCode===KEY.DOWN||event.keyCode===KEY.RIGHT){dropdown_item=$(selected_dropdown_item).next();}else{dropdown_item=$(selected_dropdown_item).prev();}if(dropdown_item.length){select_dropdown_item(dropdown_item);}return false;}break;case KEY.BACKSPACE:previous_token=input_token.prev();if(!$(this).val().length){if(selected_token){delete_token($(selected_token));}else{if(previous_token.length){select_token($(previous_token.get(0)));}}return false;}else{if($(this).val().length===1){hide_dropdown();}else{setTimeout(function(){do_search();},5);}}break;case KEY.TAB:case KEY.ENTER:case KEY.NUMPAD_ENTER:case KEY.COMMA:if(selected_dropdown_item){add_token($(selected_dropdown_item).data("tokeninput"));return false;}break;case KEY.ESCAPE:hide_dropdown();return true;default:if(String.fromCharCode(event.which)){setTimeout(function(){do_search();},5);}break;}});var hidden_input=$(input).hide().val("").focus(function(){input_box.focus();}).blur(function(){input_box.blur();});var selected_token=null;var selected_token_index=0;var selected_dropdown_item=null;var token_list=$("
      ").addClass(settings.classes.tokenList).click(function(event){var li=$(event.target).closest("li");if(li&&li.get(0)&&$.data(li.get(0),"tokeninput")){toggle_select_token(li);}else{if(selected_token){deselect_token($(selected_token),POSITION.END);}input_box.focus();}}).mouseover(function(event){var li=$(event.target).closest("li");if(li&&selected_token!==this){li.addClass(settings.classes.highlightedToken);}}).mouseout(function(event){var li=$(event.target).closest("li");if(li&&selected_token!==this){li.removeClass(settings.classes.highlightedToken);}}).insertBefore(hidden_input);var input_token=$("
    • ").addClass(settings.classes.inputToken).appendTo(token_list).append(input_box);var dropdown=$("
      ").addClass(settings.classes.dropdown).appendTo("body").hide();var input_resizer=$("").insertAfter(input_box).css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:input_box.css("fontSize"),fontFamily:input_box.css("fontFamily"),fontWeight:input_box.css("fontWeight"),letterSpacing:input_box.css("letterSpacing"),whiteSpace:"nowrap"});hidden_input.val("");var li_data=settings.prePopulate||hidden_input.data("pre");if(settings.processPrePopulate&&$.isFunction(settings.onResult)){li_data=settings.onResult.call(hidden_input,li_data);}if(li_data&&li_data.length){$.each(li_data,function(index,value){insert_token(value);checkTokenLimit();});}this.clear=function(){token_list.children("li").each(function(){if($(this).children("input").length===0){delete_token($(this));}});};this.add=function(item){add_token(item);};this.remove=function(item){token_list.children("li").each(function(){if($(this).children("input").length===0){var currToken=$(this).data("tokeninput");var match=true;for(var prop in item){if(item[prop]!==currToken[prop]){match=false;break;}}if(match){delete_token($(this));}}});};function checkTokenLimit(){if(settings.tokenLimit!==null&&token_count>=settings.tokenLimit){input_box.hide();hide_dropdown();return;}else{input_box.focus();}}function resize_input(){if(input_val===(input_val=input_box.val())){return;}var escaped=input_val.replace(/&/g,"&").replace(/\s/g," ").replace(//g,">");input_resizer.html(escaped);input_box.width(input_resizer.width()+30);}function is_printable_character(keycode){return((keycode>=48&&keycode<=90)||(keycode>=96&&keycode<=111)||(keycode>=186&&keycode<=192)||(keycode>=219&&keycode<=222));}function insert_token(item){var this_token=$("
    • "+item.name+"

    • ").addClass(settings.classes.token).insertBefore(input_token);$(""+settings.deleteText+"").addClass(settings.classes.tokenDelete).appendTo(this_token).click(function(){delete_token($(this).parent());return false;});var token_data={id:item.id,name:item.name};$.data(this_token.get(0),"tokeninput",item);saved_tokens=saved_tokens.slice(0,selected_token_index).concat([token_data]).concat(saved_tokens.slice(selected_token_index));selected_token_index++;var token_ids=$.map(saved_tokens,function(el){return el.id;});hidden_input.val(token_ids.join(settings.tokenDelimiter));token_count+=1;return this_token;}function add_token(item){var callback=settings.onAdd;if(token_count>0&&settings.preventDuplicates){var found_existing_token=null;token_list.children().each(function(){var existing_token=$(this);var existing_data=$.data(existing_token.get(0),"tokeninput");if(existing_data&&existing_data.id===item.id){found_existing_token=existing_token;return false;}});if(found_existing_token){select_token(found_existing_token);input_token.insertAfter(found_existing_token);input_box.focus();return;}}insert_token(item);checkTokenLimit();input_box.val("");hide_dropdown();if($.isFunction(callback)){callback.call(hidden_input,item);}}function select_token(token){token.addClass(settings.classes.selectedToken);selected_token=token.get(0);input_box.val("");hide_dropdown();}function deselect_token(token,position){token.removeClass(settings.classes.selectedToken);selected_token=null;if(position===POSITION.BEFORE){input_token.insertBefore(token);selected_token_index--;}else{if(position===POSITION.AFTER){input_token.insertAfter(token);selected_token_index++;}else{input_token.appendTo(token_list);selected_token_index=token_count;}}input_box.focus();}function toggle_select_token(token){var previous_selected_token=selected_token;if(selected_token){deselect_token($(selected_token),POSITION.END);}if(previous_selected_token===token.get(0)){deselect_token(token,POSITION.END);}else{select_token(token);}}function delete_token(token){var token_data=$.data(token.get(0),"tokeninput");var callback=settings.onDelete;var index=token.prevAll().length;if(index>selected_token_index){index--;}token.remove();selected_token=null;input_box.focus();saved_tokens=saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));if(index"+settings.searchingText+"

      ");show_dropdown();}}function show_dropdown_hint(){if(settings.hintText){dropdown.html("

      "+settings.hintText+"

      ");show_dropdown();}}function highlight_term(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1");}function populate_dropdown(query,results){if(results&&results.length){dropdown.empty();var dropdown_ul=$("
        ").appendTo(dropdown).mouseover(function(event){select_dropdown_item($(event.target).closest("li"));}).mousedown(function(event){add_token($(event.target).closest("li").data("tokeninput"));return false;}).hide();$.each(results,function(index,value){var this_li=$("
      • "+highlight_term(value.name,query)+"
      • ").appendTo(dropdown_ul);if(index%2){this_li.addClass(settings.classes.dropdownItem);}else{this_li.addClass(settings.classes.dropdownItem2);}if(index===0){select_dropdown_item(this_li);}$.data(this_li.get(0),"tokeninput",value);});show_dropdown();if(settings.animateDropdown){dropdown_ul.slideDown("fast");}else{dropdown_ul.show();}}else{if(settings.noResultsText){dropdown.html("

        "+settings.noResultsText+"

        ");show_dropdown();}}}function select_dropdown_item(item){if(item){if(selected_dropdown_item){deselect_dropdown_item($(selected_dropdown_item));}item.addClass(settings.classes.selectedDropdownItem);selected_dropdown_item=item.get(0);}}function deselect_dropdown_item(item){item.removeClass(settings.classes.selectedDropdownItem);selected_dropdown_item=null;}function do_search(){var query=input_box.val().toLowerCase();if(query&&query.length){if(selected_token){deselect_token($(selected_token),POSITION.AFTER);}if(query.length>=settings.minChars){show_dropdown_searching();clearTimeout(timeout);timeout=setTimeout(function(){run_search(query);},settings.searchDelay);}else{hide_dropdown();}}}function run_search(query){var cached_results=cache.get(query);if(cached_results){populate_dropdown(query,cached_results);}else{if(settings.url){var ajax_params={};ajax_params.data={};if(settings.url.indexOf("?")>-1){var parts=settings.url.split("?");ajax_params.url=parts[0];var param_array=parts[1].split("&");$.each(param_array,function(index,value){var kv=value.split("=");ajax_params.data[kv[0]]=kv[1];});}else{ajax_params.url=settings.url;}ajax_params.data[settings.queryParam]=query;ajax_params.type=settings.method;ajax_params.dataType=settings.contentType;if(settings.crossDomain){ajax_params.dataType="jsonp";}ajax_params.success=function(results){if($.isFunction(settings.onResult)){results=settings.onResult.call(hidden_input,results);}cache.add(query,settings.jsonContainer?results[settings.jsonContainer]:results);if(input_box.val().toLowerCase()===query){populate_dropdown(query,settings.jsonContainer?results[settings.jsonContainer]:results);}};$.ajax(ajax_params);}else{if(settings.local_data){var results=$.grep(settings.local_data,function(row){return row.name.toLowerCase().indexOf(query.toLowerCase())>-1;});if($.isFunction(settings.onResult)){results=settings.onResult.call(hidden_input,results);}cache.add(query,results);populate_dropdown(query,results);}}}}};$.TokenList.Cache=function(options){var settings=$.extend({max_size:500},options);var data={};var size=0;var flush=function(){data={};size=0;};this.add=function(query,results){if(size>settings.max_size){flush();}if(!data[query]){size+=1;}data[query]=results;};this.get=function(query){return data[query];};};}(jQuery)); ;(function(a){a.fn.vTicker=function(b){var c={speed:700,pause:4000,showItems:3,animation:"",mousePause:true,isPaused:false,direction:"up",height:0};var b=a.extend(c,b);moveUp=function(g,d,e){if(e.isPaused){return}var f=g.children("ul");var h=f.children("li:first").clone(true);if(e.height>0){d=f.children("li:first").height()}f.animate({top:"-="+d+"px"},e.speed,function(){a(this).children("li:first").remove();a(this).css("top","0px")});if(e.animation=="fade"){f.children("li:first").fadeOut(e.speed);if(e.height==0){f.children("li:eq("+e.showItems+")").hide().fadeIn(e.speed)}}h.appendTo(f)};moveDown=function(g,d,e){if(e.isPaused){return}var f=g.children("ul");var h=f.children("li:last").clone(true);if(e.height>0){d=f.children("li:first").height()}f.css("top","-"+d+"px").prepend(h);f.animate({top:0},e.speed,function(){a(this).children("li:last").remove()});if(e.animation=="fade"){if(e.height==0){f.children("li:eq("+e.showItems+")").fadeOut(e.speed)}f.children("li:first").hide().fadeIn(e.speed)}};return this.each(function(){var f=a(this);var e=0;f.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:0,padding:0});if(b.height==0){f.children("ul").children("li").each(function(){if(a(this).height()>e){e=a(this).height()}});f.children("ul").children("li").each(function(){a(this).height(e)});f.height(e*b.showItems)}else{f.height(b.height)}var d=setInterval(function(){if(b.direction=="up"){moveUp(f,e,b)}else{moveDown(f,e,b)}},b.pause);if(b.mousePause){f.bind("mouseenter",function(){b.isPaused=true}).bind("mouseleave",function(){b.isPaused=false})}})}})(jQuery); ;/* * jQuery Autocompleter */ function remove_accent(str) { var map={ 'Ύ':'Υ', 'Ά':'Α', 'Ί':'Ι', 'Ή':'Η', 'Ό':'Ο', 'Έ':'Ε', 'Ώ':'Ω', 'ύ':'υ', 'ά':'α', 'ί':'ι', 'ή':'η', 'ό':'ο', 'έ':'ε', 'ώ':'ω' }; var res=''; for (var i=0;i 1 && !select.visible() ) { onChange(0, true); } }).bind("search", function() { // TODO why not just specifying both arguments? var fn = (arguments.length > 1) ? arguments[1] : null; function findValueCallback(q, data) { var result; if( data && data.length ) { for (var i=0; i < data.length; i++) { if( data[i].result.toLowerCase() == q.toLowerCase() ) { result = data[i]; break; } } } if( typeof fn == "function" ) fn(result); else $input.trigger("result", result && [result.data, result.value]); } $.each(trimWords($input.val()), function(i, value) { request(value, findValueCallback, findValueCallback); }); }).bind("flushCache", function() { cache.flush(); }).bind("setOptions", function() { $.extend(options, arguments[1]); // if we've updated the data, repopulate if ( "data" in arguments[1] ) cache.populate(); }).bind("unautocomplete", function() { select.unbind(); $input.unbind(); $(input.form).unbind(".autocomplete"); }); function selectCurrent() { var selected = select.selected(); if( !selected ) return false; var v = selected.result; previousValue = v; if ( options.multiple ) { var words = trimWords($input.val()); if ( words.length > 1 ) { var seperator = options.multipleSeparator.length; var cursorAt = $(input).selection().start; var wordAt, progress = 0; $.each(words, function(i, word) { progress += word.length; if (cursorAt <= progress) { wordAt = i; return false; } progress += seperator; }); words[wordAt] = v; // TODO this should set the cursor to the right position, but it gets overriden somewhere //$.Autocompleter.Selection(input, progress + seperator, progress + seperator); v = words.join( options.multipleSeparator ); } v += options.multipleSeparator; } $input.val(v); hideResultsNow(); $input.trigger("result", [selected.data, selected.value]); return true; } function onChange(crap, skipPrevCheck) { if( lastKeyPressCode == KEY.DEL ) { select.hide(); return; } var currentValue = $input.val(); if ( !skipPrevCheck && currentValue == previousValue ) return; previousValue = currentValue; currentValue = lastWord(currentValue); if ( currentValue.length >= options.minChars) { $input.addClass(options.loadingClass); if (!options.matchCase) currentValue = currentValue.toLowerCase(); request(currentValue, receiveData, hideResultsNow); } else { stopLoading(); select.hide(); } }; function trimWords(value) { if (!value) return [""]; if (!options.multiple) return [$.trim(value)]; return $.map(value.split(options.multipleSeparator), function(word) { return $.trim(value).length ? $.trim(word) : null; }); } function lastWord(value) { if ( !options.multiple ) return value; var words = trimWords(value); if (words.length == 1) return words[0]; var cursorAt = $(input).selection().start; if (cursorAt == value.length) { words = trimWords(value); } else { words = trimWords(value.replace(value.substring(cursorAt), "")); } return words[words.length - 1]; } // fills in the input box w/the first match (assumed to be the best match) // q: the term entered // sValue: the first matching result function autoFill(q, sValue){ // autofill in the complete box w/the first match as long as the user hasn't entered in more data // if the last user key pressed was backspace, don't autofill if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) { // fill in the value (keep the case the user has typed) $input.val($input.val() + sValue.substring(lastWord(previousValue).length)); // select the portion of the value not typed by the user (so the next character will erase) $(input).selection(previousValue.length, previousValue.length + sValue.length); } }; function hideResults() { clearTimeout(timeout); timeout = setTimeout(hideResultsNow, 200); }; function hideResultsNow() { var wasVisible = select.visible(); select.hide(); clearTimeout(timeout); stopLoading(); if (options.mustMatch) { // call search and run callback $input.search( function (result){ // if no value found, clear the input box if( !result ) { if (options.multiple) { var words = trimWords($input.val()).slice(0, -1); $input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") ); } else { $input.val( "" ); $input.trigger("result", null); } } } ); } }; function receiveData(q, data) { if ( data && data.length && hasFocus ) { stopLoading(); select.display(data, q); autoFill(q, data[0].value); select.show(); } else { hideResultsNow(); } }; function request(term, success, failure) { if (!options.matchCase) term = term.toLowerCase(); var data = cache.load(term); // recieve the cached data if (data && data.length) { success(term, data); // if an AJAX url has been supplied, try loading the data now } else if( (typeof options.url == "string") && (options.url.length > 0) ){ var extraParams = { timestamp: +new Date() }; $.each(options.extraParams, function(key, param) { extraParams[key] = typeof param == "function" ? param() : param; }); $.ajax({ // try to leverage ajaxQueue plugin to abort previous requests mode: "abort", // limit abortion to this input port: "autocomplete" + input.name, dataType: options.dataType, url: options.url, data: $.extend({ q: lastWord(term), limit: options.max }, extraParams), success: function(data) { var parsed = options.parse && options.parse(data) || parse(data); cache.add(term, parsed); success(term, parsed); } }); } else { // if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match select.emptyList(); failure(term); } }; function parse(data) { var parsed = []; var rows = data.split("\n"); for (var i=0; i < rows.length; i++) { var row = $.trim(rows[i]); if (row) { row = row.split("|"); parsed[parsed.length] = { data: row, value: row[0], result: options.formatResult && options.formatResult(row, row[0]) || row[0] }; } } return parsed; }; function stopLoading() { $input.removeClass(options.loadingClass); }; }; $.Autocompleter.defaults = { inputClass: "ac_input", resultsClass: "ac_results", loadingClass: "ac_loading", minChars: 1, delay: 400, matchCase: false, matchSubset: true, matchContains: false, cacheLength: 10, max: 100, mustMatch: false, extraParams: {}, selectFirst: true, formatItem: function(row) {return row[0];}, formatMatch: null, autoFill: false, width: 0, multiple: false, multipleSeparator: ", ", highlight: function(value, term) { // ACCENT FIX var p,l=term.length,res='',_value=remove_accent(value).toLowerCase(),_term=remove_accent(term).toLowerCase();while((p=_value.indexOf(_term))!=-1){res+=value.substr(0,p)+''+value.substr(p,l)+'';value=value.substr(p+l);_value=_value.substr(p+l);}return res+value; }, scroll: true, scrollHeight: 180 }; $.Autocompleter.Cache = function(options) { var data = {}; var length = 0; function matchSubset(s, sub) { // ACCENT FIX if(options.searchCodes) { var subLength = sub.length; if(window['TP24_Flight_Airports_Codes'] && subLength == 3) { if(TP24_Flight_Airports_Codes[sub.toLowerCase()]) { sub = '(' + sub; } } } var firstCharCode = s.charCodeAt(0); if(!(firstCharCode >= 65 && firstCharCode <= 90) && !(firstCharCode >= 97 && firstCharCode <= 122)) { s=remove_accent(s); sub=remove_accent(sub); } if (!options.matchCase) s = s.toLowerCase(); var i = s.indexOf(sub); if (options.matchContains == "word"){ i = s.toLowerCase().search("\\b" + sub.toLowerCase()); } if (i == -1) return false; var found = { isFound: i == 0 || options.matchContains, starts: i == 0 }; return found; } function add(q, value) { if (length > options.cacheLength){ flush(); } if (!data[q]){ length++; } data[q] = value; } function populate(){ if( !options.data ) return false; // track the matches var stMatchSets = {}, nullData = 0; // no url was specified, we need to adjust the cache length to make sure it fits the local data store if( !options.url ) options.cacheLength = 1; // track all options for minChars = 0 stMatchSets[""] = []; // loop through the array and create a lookup structure for ( var i = 0, ol = options.data.length; i < ol; i++ ) { var rawValue = options.data[i]; // if rawValue is a string, make an array otherwise just reference the array rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue; var value = options.formatMatch(rawValue, i+1, options.data.length); if ( value === false ) continue; var firstChar = value.charAt(0).toLowerCase(); // if no lookup array for this character exists, look it up now if( !stMatchSets[firstChar] ) stMatchSets[firstChar] = []; // if the match is a string var row = { value: value, data: rawValue, result: options.formatResult && options.formatResult(rawValue) || value }; // push the current match into the set list stMatchSets[firstChar].push(row); // keep track of minChars zero items if ( nullData++ < options.max ) { stMatchSets[""].push(row); } }; // add the data items to the cache $.each(stMatchSets, function(i, value) { // increase the cache size options.cacheLength++; // add to the cache add(i, value); }); } // populate any existing data setTimeout(populate, 25); function flush(){ data = {}; length = 0; } return { flush: flush, add: add, populate: populate, load: function(q) { if (!options.cacheLength || !length) return null; /* * if dealing w/local data and matchContains than we must make sure * to loop through all the data collections looking for matches */ if( !options.url && options.matchContains ){ // track all matches var csub = []; var cstart = []; var cend = []; // loop through all the data grids for matches for( var k in data ){ // don't search through the stMatchSets[""] (minChars: 0) cache // this prevents duplicates if( k.length > 0 ){ var c = data[k]; $.each(c, function(i, x) { // if we've got a match, add it to the array var result = matchSubset(x.value, q); if (result.isFound) { if(result.starts) cstart.push(x); else cend.push(x); } }); } } csub = $.merge(cstart, cend); return csub; } else // if the exact item exists, use it if (data[q]){ return data[q]; } else if (options.matchSubset) { for (var i = q.length - 1; i >= options.minChars; i--) { var c = data[q.substr(0, i)]; if (c) { var csub = []; $.each(c, function(i, x) { var result = matchSubset(x.value, q); if (result.isFound) { csub[csub.length] = x; } }); return csub; } } } return null; } }; }; $.Autocompleter.Select = function (options, input, select, config) { var CLASSES = { ACTIVE: "ac_over" }; var listItems, active = -1, data, term = "", needsInit = true, element, list; // Create results function init() { if (!needsInit) return; element = $("
        ") .hide() .addClass(options.resultsClass) .css("position", "absolute") .appendTo(document.body); list = $("
          ").appendTo(element).mouseover( function(event) { if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') { active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event)); $(target(event)).addClass(CLASSES.ACTIVE); } }).click(function(event) { $(target(event)).addClass(CLASSES.ACTIVE); select(); // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus input.focus(); return false; }).mousedown(function() { config.mouseDownOnSelect = true; }).mouseup(function() { config.mouseDownOnSelect = false; }); if( options.width > 0 ) element.css("width", options.width); needsInit = false; } function target(event) { var element = event.target; while(element && element.tagName != "LI") element = element.parentNode; // more fun with IE, sometimes event.target is empty, just ignore it then if(!element) return []; return element; } function moveSelect(step) { listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE); movePosition(step); var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE); if(options.scroll) { var offset = 0; listItems.slice(0, active).each(function() { offset += this.offsetHeight; }); if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) { list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight()); } else if(offset < list.scrollTop()) { list.scrollTop(offset); } } }; function movePosition(step) { active += step; if (active < 0) { active = listItems.size() - 1; } else if (active >= listItems.size()) { active = 0; } } function limitNumberOfItems(available) { return options.max && options.max < available ? options.max : available; } function fillList() { list.empty(); var max = limitNumberOfItems(data.length); for (var i=0; i < max; i++) { if (!data[i]) continue; var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term); if ( formatted === false ) continue; var li = $("
        • ").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ac_even" : "ac_odd").appendTo(list)[0]; $.data(li, "ac_data", data[i]); } listItems = list.find("li"); if ( options.selectFirst ) { listItems.slice(0, 1).addClass(CLASSES.ACTIVE); active = 0; } // apply bgiframe if available if ( $.fn.bgiframe ) list.bgiframe(); } return { display: function(d, q) { init(); data = d; term = q; fillList(); }, next: function() { moveSelect(1); }, prev: function() { moveSelect(-1); }, pageUp: function() { if (active != 0 && active - 8 < 0) { moveSelect( -active ); } else { moveSelect(-8); } }, pageDown: function() { if (active != listItems.size() - 1 && active + 8 > listItems.size()) { moveSelect( listItems.size() - 1 - active ); } else { moveSelect(8); } }, hide: function() { element && element.hide(); listItems && listItems.removeClass(CLASSES.ACTIVE); active = -1; }, visible : function() { return element && element.is(":visible"); }, current: function() { return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]); }, show: function() { var offset = $(input).offset(); element.css({ width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(), top: offset.top + input.offsetHeight, left: offset.left }).show(); if(options.scroll) { list.scrollTop(0); list.css({ maxHeight: options.scrollHeight, overflow: 'auto' }); if($.browser.msie && typeof document.body.style.maxHeight === "undefined") { var listHeight = 0; listItems.each(function() { listHeight += this.offsetHeight; }); var scrollbarsVisible = listHeight > options.scrollHeight; list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight ); if (!scrollbarsVisible) { // IE doesn't recalculate width when scrollbar disappears listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) ); } } } }, selected: function() { var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE); return selected && selected.length && $.data(selected[0], "ac_data"); }, emptyList: function (){ list && list.empty(); }, unbind: function() { element && element.remove(); } }; }; $.fn.selection = function(start, end) { if (start !== undefined) { return this.each(function() { if( this.createTextRange ){ var selRange = this.createTextRange(); if (end === undefined || start == end) { selRange.move("character", start); selRange.select(); } else { selRange.collapse(true); selRange.moveStart("character", start); selRange.moveEnd("character", end); selRange.select(); } } else if( this.setSelectionRange ){ this.setSelectionRange(start, end); } else if( this.selectionStart ){ this.selectionStart = start; this.selectionEnd = end; } }); } var field = this[0]; if ( field.createTextRange ) { var range = document.selection.createRange(), orig = field.value, teststring = "<->", textLength = range.text.length; range.text = teststring; var caretAt = field.value.indexOf(teststring); field.value = orig; this.selection(caretAt, caretAt + textLength); return { start: caretAt, end: caretAt + textLength }; } else if( field.selectionStart !== undefined ){ return { start: field.selectionStart, end: field.selectionEnd }; } }; })(jQuery); ;/*! * jQuery Form Plugin * version: 2.47 (04-SEP-2010) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;} if(typeof options=='function'){options={success:options};} var url=$.trim(this.attr('action'));if(url){url=(url.match(/^([^#]+)/)||[])[1];} url=url||window.location.href||'';options=$.extend(true,{url:url,type:this.attr('method')||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;} if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;} var n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(n in options.data){if(options.data[n]instanceof Array){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]});}} else{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v});}}} if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;} this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;} var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;} else{options.data=q;} var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});} if(options.clearForm){callbacks.push(function(){$form.clearForm();});} if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(oldSuccess,arguments);});} else if(options.success){callbacks.push(options.success);} options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i0;var mp='multipart/form-data';var multipart=($form.attr('enctype')==mp||$form.attr('encoding')==mp);if(options.iframe!==false&&(fileInputs||options.iframe||multipart)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload);} else{fileUpload();}} else{$.ajax(options);} this.trigger('form-submit-notify',[this,options]);return this;function fileUpload(){var form=$form[0];if($(':input[name=submit],:input[id=submit]',form).length){alert('Error: Form elements must not have name or id of "submit".');return;} var s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;var id='jqFormIO'+(new Date().getTime()),fn='_'+id;window[fn]=function(){var f=$io.data('form-plugin-onload');if(f){f();window[fn]=undefined;try{delete window[fn];}catch(e){}}} var $io=$('
        ');} var modalBg=$("#modal-bg");var modalWindow=$("#modal-window");var modalClose=$(".modal-close");var target=$('#target');$('.tpModal').click(function(){var array=links.toArray();current_link=jQuery.inArray(this,array)+1;});$('#modalNext').click(function(){$('#target').attr('src',$(links[current_link]).attr('href'));if(current_link==(links.length-1)) {current_link=0;}else{current_link++;} return false;});$('#modalPrevious').click(function(){$('#target').attr('src',$(links[current_link]).attr('href'));if(current_link==0) {current_link=links.length-1;}else{current_link--;} return false;});$('.tpModal, .tpModal-stack a, .tpModal-stack img').click(function(){var target=$('#target');var target_src=$(this).attr('href');var loaded_src=$(target).attr('src');if(target_src!=loaded_src){$(target).attr('src',target_src);} var maskHeight=$(document).height();var maskWidth=$(window).width();$(modalBg).css({'width':maskWidth,'height':maskHeight});$(modalBg).show().css('opacity',0);$(modalBg).fadeTo("slow",0.8);$(modalWindow).fadeIn(300,function(){$(modalClose).fadeIn(300);});var winH=$(window).height();var winW=$(window).width();$(modalWindow).css('top',winH/2-$(modalWindow).height()/2);$(modalWindow).css('left',winW/2-$(modalWindow).width()/2);return false;});$(modalClose).click(function(){$('#target').attr('src','');$(modalWindow).fadeOut(100,function(){$(modalBg).fadeOut('fast');});});$(".btn-submit input").live('click',function(event){$(this).parent().addClass('busy','slow');});$(".btn").live('click',function(event){$(this).addClass('busy');});});;(function(global,undefined){console.log("tp24 amd",this);var namespace={},TP24_LOCALE={GR:{MONTHS:["\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2"],SHORT_MONTHS:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03b1\u03c1","\u0391\u03c0\u03c1","\u039c\u03b1\u03b9","\u0399\u03bf\u03c5\u03bd","\u0399\u03bf\u03c5\u03bb","\u0391\u03c5\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03b5","\u0394\u03b5\u03ba"],DAYS:["\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae","\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1","\u03a4\u03c1\u03af\u03c4\u03b7","\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7","\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7","\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae","\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf"],SHORT_DAYS:["\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03b9","\u03a4\u03b5\u03c4","\u03a0\u03b5\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03b1\u03b2"],MIN_DAYS:["\u039a\u03c5","\u0394\u03b5","\u03a4\u03c1","\u03a4\u03b5","\u03a0\u03b5","\u03a0\u03b1","\u03a3\u03b1"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"el",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"\u039a\u03bb\u03b5\u03af\u03c3\u03b9\u03bc\u03bf",PREV_TEXT:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c2",NEXT_TEXT:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf\u03c2",CURRENT_TEXT:"\u03a4\u03c1\u03ad\u03c7\u03c9\u03bd \u039c\u03ae\u03bd\u03b1\u03c2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["el_GR","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"GR","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03c0\u03b5\u03c1\u03b9\u03bc\u03ad\u03bd\u03b5\u03c4\u03b5...",FORM_VALIDATION:{"*":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b4\u03b9\u03bf\u03c1\u03b8\u03ce\u03c3\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03c0\u03b5\u03b4\u03af\u03bf",":email":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03bc\u03b9\u03b1 \u03ad\u03b3\u03ba\u03c5\u03c1\u03b7 \u03b4\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7 \u03b7\u03bb\u03b5\u03ba\u03c4\u03c1\u03bf\u03bd\u03b9\u03ba\u03bf\u03cd \u03c4\u03b1\u03c7\u03c5\u03b4\u03c1\u03bf\u03bc\u03b5\u03af\u03bf\u03c5",":number":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03ad\u03bd\u03b1\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc",":url":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03ad\u03bd\u03b1 \u03ad\u03b3\u03ba\u03c5\u03c1\u03bf URL","[max]":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03bc\u03af\u03b1 \u03c4\u03b9\u03bc\u03ae \u03bc\u03b9\u03ba\u03c1\u03cc\u03c4\u03b5\u03c1\u03b7 \u03b1\u03c0\u03cc $1","[min]":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03bc\u03af\u03b1 \u03c4\u03b9\u03bc\u03ae \u03bc\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03b7 \u03b1\u03c0\u03cc $1","[required]":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03c3\u03c5\u03bc\u03c0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03c5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03cc \u03c0\u03b5\u03b4\u03af\u03bf"}},PL:{MONTHS:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017adziernik","Listopad","Grudzie\u0144"],SHORT_MONTHS:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017a","Lis","Gru"],DAYS:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015aroda","Czwartek","Pi\u0105tek","Sobota"],SHORT_DAYS:["Nie","Pon","Wto","\u015aro","Czw","Pi\u0105","Sob"],MIN_DAYS:["Nd","Pn","Wt","\u015ar","Cz","Pt","Sb"],DATE_FORMAT:"dd-mm-yy",FIRST_DAY_OF_WEEK:1,LANG:"pl",CURRENCY:"PLN",DECIMALS:"2",CLOSE_TEXT:"Zamknij",PREV_TEXT:"Poprzedni",NEXT_TEXT:"Nast\u0119pny",CURRENT_TEXT:"Dzisiaj",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["pl_PL"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"PL","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Prosz\u0119 czeka\u0107...",FORM_VALIDATION:{"*":"Prosz\u0119 poprawi\u0107 to pole",":email":"Prosz\u0119 poda\u0107 poprawny adres e-mail",":number":"Prosz\u0119 poda\u0107 liczb\u0119",":url":"Prosz\u0119 poda\u0107 poprawny adres URL","[max]":"Prosz\u0119 poda\u0107 liczb\u0119 mniejsz\u0105 ni\u017c $1","[min]":"Prosz\u0119 poda\u0107 liczb\u0119 wi\u0119ksz\u0105 ni\u017c $1","[required]":"To pole jest wymagane"}},UK:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"\u00a3",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_GB"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},IE:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"\u20ac",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_IE","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},DE:{MONTHS:["Januar","Februar","M\u00e4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],SHORT_MONTHS:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],DAYS:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],SHORT_DAYS:["Son","Mon","Die","Mit","Don","Fre","Sam"],MIN_DAYS:["So","Mo","Di","Mi","Do","Fr","Sa"],DATE_FORMAT:"dd.mm.yy",FIRST_DAY_OF_WEEK:1,LANG:"de",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"Schlie\u00dfen",PREV_TEXT:"Zur\u00fcck",NEXT_TEXT:"N\u00e4chste",CURRENT_TEXT:"Heute",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["de_DE"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"DE","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Warten Sie bitte...",FORM_VALIDATION:{"*":"Bitte korrigieren Sie den Wert",":email":"Bitte geben Sie eine g\u00fcltige E-Mail Adresse an",":number":"Bitte verwenden Sie nur Zahlen",":url":"Bitte geben Sie ein g\u00fcltige URL an","[max]":"Bitte geben Sie einen Wert kleiner als $1 an","[min]":"Bitte geben Sie einen Wert gr\u00f6\u00dfer als $1 an","[required]":"Bitte vervollst\u00e4ndigen Sie die notwendigen Felder"}},RO:{MONTHS:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],SHORT_MONTHS:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],DAYS:["Duminic\u0103","Luni","Mar\u0163i","Miercuri","Joi","Vineri","S\u00e2mb\u0103t\u0103"],SHORT_DAYS:["Dum","Lun","Mar","Mie","Joi","Vin","S\u00e2m"],MIN_DAYS:["Du","Lu","Ma","Mi","Jo","Vi","S\u00e2"],DATE_FORMAT:"dd.mm.yy",FIRST_DAY_OF_WEEK:1,LANG:"ro",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"\u00cenchide",PREV_TEXT:"Luna precedent\u0103",NEXT_TEXT:"Luna urm\u0103toare",CURRENT_TEXT:"Azi",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["ro_RO"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"RO","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"V\u0103 rug\u0103m a\u015ftepta\u0163i...",FORM_VALIDATION:{"*":"V\u0103 rug\u0103m s\u0103 completa\u0163i c\u00e2mpul de mai jos",":email":"V\u0103 rug\u0103m s\u0103 introduce\u0163i o adres\u0103 valid\u0103 de e-mail",":number":"Va rug\u0103m s\u0103 introduce\u0163i un num\u0103r...",":url":"Va rug\u0103m s\u0103 introduce\u0163i un URL valid...","[max]":"V\u0103 rug\u0103m s\u0103 introduce\u0163i un pre\u0163 mai mic dec\u00e2t 1 $","[min]":"V\u0103 rug\u0103m s\u0103 introduce\u0163i un pre\u0163 mai mare dec\u00e2t 1 $","[required]":"V\u0103 rug\u0103m s\u0103 completa\u0163i c\u00e2mpurile obligatorii"}},IT:{MONTHS:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],SHORT_MONTHS:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],DAYS:["Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato"],SHORT_DAYS:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],MIN_DAYS:["Do","Lu","Ma","Me","Gi","Ve","Sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"it",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"Chiusura",PREV_TEXT:"Precedente",NEXT_TEXT:"Dopo",CURRENT_TEXT:"Mese Corrente",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["it_IT"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"GR","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Attenda Prego...",FORM_VALIDATION:{"*":"Corregga prego questo valore",":email":"Entri prego in un email address valido",":number":"Entri prego in un valore numerico",":url":"Entri prego in un URL valido","[max]":"Entri prego in un valore pi\u00f9 piccolo di $1","[min]":"Entri prego in un valore pi\u00f9 grande di $1","[required]":"Completi prego questo campo obbligatorio"}},RU:{MONTHS:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],SHORT_MONTHS:["\u042f\u043d\u0432","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440"," \u041c\u0430\u0439 ","\u0418\u044e\u043d","\u0418\u044e\u043b","\u0410\u0432\u0433","\u0421\u0435\u043d","\u041e\u043a\u0442","\u041d\u043e\u044f","\u0414\u0435\u043a"],DAYS:["\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0412\u0442\u043e\u0440\u043d\u0438\u043a","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041f\u044f\u0442\u043d\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043e\u0442\u0430"],SHORT_DAYS:["\u0412\u043e\u0441","\u041f\u043e\u043d","\u0412\u0442\u043e","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041f\u044f\u0442","\u0421\u0443\u0431"],MIN_DAYS:["\u0412\u043e","\u041f\u043e","\u0412\u0442","\u0421\u0440","\u0427\u0435","\u041f\u044f","\u0421\u0443"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"ru",CURRENCY:"\u0440\u0443\u0431",DECIMALS:"2",CLOSE_TEXT:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",PREV_TEXT:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439",NEXT_TEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439",CURRENT_TEXT:"\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u041c\u0435\u0441\u044f\u0446",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["ru_RU","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",":email":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441",":number":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435",":url":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 URL","[max]":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 $1","[min]":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 $1","[required]":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u044d\u0442\u043e \u043e\u0431\u044f\u0437\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435"}},TR:{MONTHS:["Ocak","\u015eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011fustos","Eyl\u00fcl","Ekim","Kas\u0131m","Aral\u0131k"],SHORT_MONTHS:["Ocak","\u015eub","Mart","Nis","May","Haz","Tem","A\u011fu","Eyl","Ekim","Kas","Ara"],DAYS:["Pazar","Pazartesi","Sal\u0131","\u00c7ar\u015famba","Per\u015fembe","Cuma","Cumartesi"],SHORT_DAYS:["Pzr","Pzt","Sal\u0131","\u00c7r\u015f","Pr\u015f","Cum","Cmt"],MIN_DAYS:["Pz","Pt","Sa","\u00c7a","Pe","Cu","Cmt"],DATE_FORMAT:"dd.mm.yy",FIRST_DAY_OF_WEEK:1,LANG:"tr",CURRENCY:"TL",DECIMALS:"2",CLOSE_TEXT:"Kapat",PREV_TEXT:"Geri",NEXT_TEXT:"\u0130leri",CURRENT_TEXT:"G\u00fcncel Ay",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["tr_TR","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"L\u00fctfen bu de\u011feri d\u00fczeltiniz",":email":"L\u00fctfen ge\u00e7erli bir email adresi giriniz",":number":"L\u00fctfen rakamsal bir de\u011fer giriniz",":url":"L\u00fctfen ge\u00e7erli bir URL giriniz","[max]":"L\u00fctfen $1 dan daha d\u00fc\u015f\u00fck bir de\u011fer giriniz","[min]":"L\u00fctfen $1 dan daha d\u00fc\u015f\u00fck bir de\u011fer giriniz","[required]":"L\u00fctfen bu zorunlu alan\u0131 doldurunuz"}},UA:{MONTHS:["\u0421\u0456\u0447\u0435\u043d\u044c","\u041b\u044e\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c","\u041a\u0432\u0456\u0442\u0435\u043d\u044c","\u0422\u0440\u0430\u0432\u0435\u043d\u044c","\u0427\u0435\u0440\u0432\u0435\u043d\u044c","\u041b\u0438\u043f\u0435\u043d\u044c","\u0421\u0435\u0440\u043f\u0435\u043d\u044c","\u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c","\u0416\u043e\u0432\u0442\u0435\u043d\u044c","\u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043d\u044c"],SHORT_MONTHS:["\u0421\u0456\u0447","\u041b\u044e\u0442","\u0411\u0435\u0440","\u041a\u0432\u0456\u0442","\u0422\u0440\u0430\u0432","\u0427\u0435\u0440\u0432","\u041b\u0438\u043f","\u0421\u0435\u0440\u043f","\u0412\u0435\u0440","\u0416\u043e\u0432\u0442","\u041b\u0438\u0441\u0442","\u0413\u0440\u0443\u0434"],DAYS:["\u041d\u0435\u0434\u0456\u043b\u044f","\u041f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a","\u0412\u0456\u0432\u0442\u043e\u0440\u043e\u043a","\u0421\u0435\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440","\u041f'\u044f\u0442\u043d\u0438\u0446\u044f","\u0421\u0443\u0431\u043e\u0442\u0430"],SHORT_DAYS:["\u041d\u0435\u0434","\u041f\u043e\u043d","\u0412\u0456\u0442","\u0421\u0435\u0440","\u0427\u0435\u0442","\u041f\u0442","\u0421\u0431"],MIN_DAYS:["\u041d\u0434","\u041f\u043d","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041f\u0442","\u0421\u0431"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"ua",CURRENCY:"\u0433\u0440\u043d",DECIMALS:"2",CLOSE_TEXT:"\u0437\u0430\u043a\u0440\u0438\u0442\u0438",PREV_TEXT:"\u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439",NEXT_TEXT:"\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439",CURRENT_TEXT:"\u041f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u043c\u0456\u0441\u044f\u0446\u044c",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["uk_UA","en_US","ru_RU"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043f\u043e\u0447\u0435\u043a\u0430\u0439\u0442\u0435 ...",FORM_VALIDATION:{"*":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0438\u043f\u0440\u0430\u0432\u0442\u0435 \u0446\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f",":email":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044c \u0434\u0456\u0439\u0441\u043d\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0457 \u043f\u043e\u0448\u0442\u0438",":number":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044c \u0447\u0438\u0441\u043b\u043e\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f",":url":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044c URL","[max]":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043c\u0435\u043d\u0448\u0435, \u043d\u0456\u0436 $1","[min]":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0432\u0435\u0434\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u0449\u043e \u043f\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 $1","[required]":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0437\u0430\u043f\u043e\u0432\u043d\u0456\u0442\u044c \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0456 \u043f\u043e\u043b\u044f"}},RS:{MONTHS:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],SHORT_MONTHS:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],DAYS:["nedelja","ponedeljak","utorak","sreda","\u010detvrtak","petak","subota"],SHORT_DAYS:["ned","pon","uto","sre","\u010det","pet","sub"],MIN_DAYS:["ne","po","ut","sr","\u010de","pe","su"],DATE_FORMAT:"d.m.yy.",FIRST_DAY_OF_WEEK:1,LANG:"sr",CURRENCY:"RSD",DECIMALS:"2",CLOSE_TEXT:"zatvaranje",PREV_TEXT:"prethodni",NEXT_TEXT:"slede\u0107i",CURRENT_TEXT:"teku\u0107i mesec",DECIMALS_SEPARATOR:".",HUNDREDS_SEPARATOR:",",AUTOCOMPLETION_LANGS:["sr_RS","en_US"],FORCE_AUTOCOMPLETION_MATCH_CONTAINS:!0,ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"GR","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Molimo sa\u010dekajte...",FORM_VALIDATION:{"*":"Molimo vas da ispravite ovo polje",":email":"Molimo vas unesite va\u017ee\u0107u adresu elektrosnke po\u0161te - email",":number":"Molimo vas unestie jedan broj",":url":"Molimo vas unesite va\u017ee\u0107i URL","[max]":"Molimo vas unesite cenu manju od $1","[min]":"Molimo vas unesite cenu ve\u0107u od $1","[required]":"Molimo vas popunite ovo obavezno polje"}},HU:{MONTHS:["Janu\u00e1r","Febru\u00e1r","M\u00e1rcius","\u00c1prilis","M\u00e1jus","J\u00fanius","J\u00falius","Ausztus","Szeptember","Okt\u00f3ber","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","\u0391pr","\u039caj","J\u00fan","J\u00fal","\u0391ug","Sze","\u039fkt","\u039dov","Dec"],DAYS:["Vas\u00e1rnap","H\u00e9tf\u0151","Kedd","Szerda","Cs\u00fct\u00f6rt\u00f6k","P\u00e9ntek","Szombat"],SHORT_DAYS:["Vas","H\u00e9t","Ked","Sze","Cs\u00fc","P\u00e9n","Szom"],MIN_DAYS:["Va","H\u00e9","Ke","Sz","Cs","P\u00e9","Sz"],DATE_FORMAT:"yy.mm.dd.",FIRST_DAY_OF_WEEK:1,LANG:"hu",CURRENCY:"Ft",DECIMALS:"3",CLOSE_TEXT:"Bez\u00e1r",PREV_TEXT:"El\u0151z\u0151",NEXT_TEXT:"K\u00f6vetkez\u0151",CURRENT_TEXT:"Jelenlegi H\u00f3nap",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["hu_HU","en_US"],FORCE_AUTOCOMPLETION_MATCH_CONTAINS:!0,ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"HU","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"K\u00e9rem jav\u00edtsa ki ezt az \u00e9rt\u00e9ket",":email":"K\u00e9rem adjon meg \u00e9rv\u00e9nyes email c\u00edmet",":number":"K\u00e9rem adjoin meg \u00e9rv\u00e9nyes sz\u00e1mot",":url":"K\u00e9rem adjon meg \u00e9rv\u00e9nyes URL","[max]":"K\u00e9rem adjon meg egy \u00f6sszeget ami kissebb mint $1","[min]":"K\u00e9rem adjon meg egy \u00f6sszeget ami nagyobb mint $1","[required]":"K\u00e9rem t\u00f6ltse ki a k\u00f6telez\u0151 mez\u0151ket!"}},CZ:{MONTHS:["Leden","\u00danor","B\u0159ezen","Duben","Kv\u011bten","\u010cerven","\u010cervenec","Srpen","Z\u00e1\u0159\u00ed","\u0158\u00edjen","Listopad","Prosinec"],SHORT_MONTHS:["Led","\u00dan","B\u0159e","Dub","Kv\u011b","\u010cer","\u010cer-ec","Srp","Z\u00e1","\u0158\u00edj","Lis","Pro"],DAYS:["Ned\u011ble","Pond\u011bl\u00ed","\u00dater\u00fd","St\u0159eda","\u010ctvrtek","P\u00e1tek","Sobota"],SHORT_DAYS:["Ne","Po","\u00dat","St","\u010ct","P\u00e1","So"],MIN_DAYS:["Ne","Po","\u00dat","St","\u010ct","P\u00e1","So"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"cs",CURRENCY:"K\u010d",DECIMALS:"0",CLOSE_TEXT:"Zav\u0159\u00edt",PREV_TEXT:"P\u0159edchoz\u00ed",NEXT_TEXT:"Dal\u0161\u00ed",CURRENT_TEXT:"Sou\u010dasn\u00fd",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["cs_CZ","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"GR","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Pros\u00edm ekejte...",FORM_VALIDATION:{"*":"Opravte pros\u00edm tuto hodnotu",":email":"Zadejte pros\u00edm platnou emailovou adresu",":number":"Zadejte pros\u00edm \u010d\u00edselnou hodnotu",":url":"Zadejte pros\u00edm platnou URL","[max]":"Zadejte pros\u00edm hodnotu men\u0161\u00ed ne\u017e $1","[min]":"Zadejte pros\u00edm hodnotu v\u011bt\u0161\u00ed ne\u017e $1","[required]":"Vypl\u0148te pros\u00edm toto povinn\u00e9 pole"}},BG:{MONTHS:["\u042f\u043d\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0438\u043b","\u041c\u0430\u0439","\u042e\u043d\u0438","\u042e\u043b\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u041e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u041d\u043e\u0435\u043c\u0432\u0440\u0438","\u0414\u0435\u043a\u0435\u043c\u0432\u0440\u0438"],SHORT_MONTHS:["\u042f\u043d\u0443","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440","\u041c\u0430\u0439","\u042e\u043d\u0438","\u042e\u043b\u0438","\u0410\u0432\u0433","\u0421\u0435\u043f","\u041e\u043a\u0442","\u041d\u043e\u0435\u043c","\u0414\u0435\u043a"],DAYS:["\u041d\u0435\u0434\u0435\u043b\u044f","\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0412\u0442\u043e\u0440\u043d\u0438\u043a","\u0421\u0440\u044f\u0434\u0430","\u0427\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a","\u041f\u0435\u0442\u044a\u043a","\u0421\u044a\u0431\u043e\u0442\u0430"],SHORT_DAYS:["\u041d\u0435\u0434","\u041f\u043e\u043d","\u0412\u0442\u043e","\u0421\u0440\u044f","\u0427\u0435\u0442","\u041f\u0435\u0442","\u0421\u044a\u0431"],MIN_DAYS:["\u041d\u0434","\u041f\u043e","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041f\u0442","\u0421\u0431"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"bg",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"\u0411\u043b\u0438\u0437\u043e",PREV_TEXT:"\u041f\u0440\u0435\u0434\u0438\u0448\u0435\u043d",NEXT_TEXT:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449",CURRENT_TEXT:"\u0422\u0435\u043a\u0443\u0449 \u043c\u0435\u0441\u0435\u0446",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["bg_BG","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"GR","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"\u041c\u043e\u043b\u044f \u0438\u0437\u0447\u0430\u043a\u0430\u0439\u0442\u0435...",FORM_VALIDATION:{"*":"\u041c\u043e\u043b\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u0435\u0442\u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0442\u0430",":email":"\u041c\u043e\u043b\u044f \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d \u0438\u043c\u0435\u0439\u043b \u0430\u0434\u0440\u0435\u0441",":number":"\u041c\u043e\u043b\u044f \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u0430 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442",":url":"\u041c\u043e\u043b\u044f \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d \u0423\u0420\u041b","[max]":"\u041c\u043e\u043b\u044f \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043f\u043e-\u043c\u0430\u043b\u043a\u0430 \u043e\u0442 $1","[min]":"\u041c\u043e\u043b\u044f \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442 \u043f\u043e-\u0433\u043e\u043b\u044f\u043c\u0430 \u043e\u0442 $1","[required]":"\u041c\u043e\u043b\u044f \u043f\u043e\u043f\u044a\u043b\u043d\u0435\u0442\u0435 \u0442\u043e\u0432\u0430 \u0437\u0430\u0434\u044a\u043b\u0436\u0438\u0442\u0435\u043b\u043d\u043e \u043f\u043e\u043b\u0435"}},IL:{MONTHS:["\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2"],SHORT_MONTHS:["\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03b1\u03c1","\u0391\u03c0\u03c1","\u039c\u03b1\u03b9","\u0399\u03bf\u03c5\u03bd","\u0399\u03bf\u03c5\u03bb","\u0391\u03c5\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03b5","\u0394\u03b5\u03ba"],DAYS:["\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae","\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1","\u03a4\u03c1\u03af\u03c4\u03b7","\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7","\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7","\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae","\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf"],SHORT_DAYS:["\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03b9","\u03a4\u03b5\u03c4","\u03a0\u03b5\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03b1\u03b2"],MIN_DAYS:["\u039a\u03c5","\u0394\u03b5","\u03a4\u03c1","\u03a4\u03b5","\u03a0\u03b5","\u03a0\u03b1","\u03a3\u03b1"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"he",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"\u039a\u03bb\u03b5\u03af\u03c3\u03b9\u03bc\u03bf",PREV_TEXT:"\u03a0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c2",NEXT_TEXT:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf\u03c2",CURRENT_TEXT:"\u03a4\u03c1\u03ad\u03c7\u03c9\u03bd \u039c\u03ae\u03bd\u03b1\u03c2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["he_IL","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"GR","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03c0\u03b5\u03c1\u03b9\u03bc\u03ad\u03bd\u03b5\u03c4\u03b5...",FORM_VALIDATION:{"*":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b4\u03b9\u03bf\u03c1\u03b8\u03ce\u03c3\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03c0\u03b5\u03b4\u03af\u03bf",":email":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03bc\u03b9\u03b1 \u03ad\u03b3\u03ba\u03c5\u03c1\u03b7 \u03b4\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7 \u03b7\u03bb\u03b5\u03ba\u03c4\u03c1\u03bf\u03bd\u03b9\u03ba\u03bf\u03cd \u03c4\u03b1\u03c7\u03c5\u03b4\u03c1\u03bf\u03bc\u03b5\u03af\u03bf\u03c5",":number":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03ad\u03bd\u03b1\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc",":url":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03ad\u03bd\u03b1 \u03ad\u03b3\u03ba\u03c5\u03c1\u03bf URL","[max]":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03bc\u03af\u03b1 \u03c4\u03b9\u03bc\u03ae \u03bc\u03b9\u03ba\u03c1\u03cc\u03c4\u03b5\u03c1\u03b7 \u03b1\u03c0\u03cc $1","[min]":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03b5\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03bc\u03af\u03b1 \u03c4\u03b9\u03bc\u03ae \u03bc\u03b5\u03b3\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03b7 \u03b1\u03c0\u03cc $1","[required]":"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03ce \u03c3\u03c5\u03bc\u03c0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03c5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03cc \u03c0\u03b5\u03b4\u03af\u03bf"}},FR:{MONTHS:["Janvier","F\u00e9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\u00fbt","Septembre","Octobre","Novembre","D\u00e9cembre"],SHORT_MONTHS:["Jan","F\u00e9v","Mar","Avr","Mai","Jui","Juil","Ao\u00fbt","Sep","Oct","Nov","D\u00e9c"],DAYS:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],SHORT_DAYS:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],MIN_DAYS:["Di","Lu","Ma","Me","Je","Ve","Sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"fr",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"Fermez",PREV_TEXT:"Pr\u00e9c\u00e9dent",NEXT_TEXT:"Suivant",CURRENT_TEXT:"Mois courant",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["fr_FR"],FORCE_AUTOCOMPLETION_MATCH_CONTAINS:!0,ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"FR","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Veuillez corriger cette valeur",":email":"Veuillez rentrer une adresse email valide",":number":"veuillez rentrer une valeur num\u00e9rique",":url":"Veuillez rentrer un lien valide","[max]":"Veuillez rentrer une valeur inferieure \u00e0 $1","[min]":"Veuillez rentrer une valeur sup\u00e9rieure \u00e0 $1","[required]":"Veuillez remplir ce champ est obligatoire"}},AL:{MONTHS:["Janar","Shkurt","Mars","Prill","Maj","Qeshor","Korrik","Gusht","Shtator","Tetor","N\u00ebntor","Dhjetor"],SHORT_MONTHS:["Jan","Shk","Mar","Pri","Maj","Qes","Kor","Gus","Sht","Tet","N\u00ebn","Dhj"],DAYS:["E Diel","E H\u00ebn\u00eb","E Mart\u00eb","E M\u00ebrkur\u00eb","E Enjte","E Premte","E Shtun\u00eb"],SHORT_DAYS:["Dje","H\u00ebn","Mar","M\u00ebr","Enj","Pre","Sht"],MIN_DAYS:["Di","H\u00eb","Ma","M\u00eb","Enj","Pr","Sht"],DATE_FORMAT:"yy-mm-dd",FIRST_DAY_OF_WEEK:1,LANG:"al",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"Mbyll",PREV_TEXT:"E m\u00ebparshme",NEXT_TEXT:"E ardhshme",CURRENT_TEXT:"Muaji i tash\u00ebm",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["sq_AL"],FORCE_AUTOCOMPLETION_MATCH_CONTAINS:!0,ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"AL","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Ju lutem korrigjoni k\u00ebt\u00eb vler\u00eb",":email":"Ju lutemshkruani nje adres\u00eb email te vlefshme",":number":"Ju lutem shkruani nj\u00eb vler\u00eb numerike",":url":"Ju lutem shkruani nje Url t\u00eb vlefshme","[max]":"Ju lutem shkruani nj\u00eb vler\u00eb m\u00eb t\u00eb vog\u00ebl se $1","[min]":"Ju lutem shkruani nj\u00eb vler\u00eb me t\u00eb madhe se $1","[required]":"Ju lutem plot\u00ebesoni k\u00ebt\u00eb fush\u00eb t\u00eb detyruesh\u00ebm"}},ES:{MONTHS:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],SHORT_MONTHS:["Ene","Feb","Mzo","Abr","May","Jun","Jul","Ago","Set","Oct","Nov","Dec"],DAYS:["Domingo","Lunes","Martes","Mi\u00e9rcoles","Jueves","Viernes","S\u00e1bado"],SHORT_DAYS:["Dom","Lun","Mar","Mi\u00e9","Jue","Vie","S\u00e1b"],MIN_DAYS:["Do","Lu","Ma","Mi","Ju","Vi","S\u00e1"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"es",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"Cerrar",PREV_TEXT:"Previo",NEXT_TEXT:"Siguiente",CURRENT_TEXT:"Mes corriente",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["es_ES"],FORCE_AUTOCOMPLETION_MATCH_CONTAINS:!0,ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"ES","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Por favor corija este valor",":email":"Por favor escriba una direcci\u00f3n v\u00e1lida de correo",":number":"Por favor escriba un valor num\u00e9rico",":url":"Por favor escriba una URL valida","[max]":"Por favor escriba un valor que sea menor que $1","[min]":"Por favor escriba un valor que sea mayor que $1","[required]":"Por favor rellene este campo obligatorio"}},PT:{MONTHS:["Janeiro","Fevereiro","Mar\u00e7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],SHORT_MONTHS:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],DAYS:["Domingo","Segunda-feira","Ter\u00e7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\u00e1bado"],SHORT_DAYS:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],MIN_DAYS:["D","S","T","Q","Q","S","S"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:1,LANG:"pt",CURRENCY:"\u20ac",DECIMALS:"2",CLOSE_TEXT:"close",PREV_TEXT:"previous",NEXT_TEXT:"next",CURRENT_TEXT:"current",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:".",AUTOCOMPLETION_LANGS:["pt_PT","en_US"],FORCE_AUTOCOMPLETION_MATCH_CONTAINS:!0,ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"PT","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},US:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],DAYS:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],SHORT_DAYS:["sun","mon","tue","wed","thu","fri","sat"],MIN_DAYS:["su","mo","tu","we","th","fr","sa"],DATE_FORMAT:"mm/dd/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},CA:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],DAYS:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],SHORT_DAYS:["sun","mon","tue","wed","thu","fri","sat"],MIN_DAYS:["su","mo","tu","we","th","fr","sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_CA","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},NL:{MONTHS:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],SHORT_MONTHS:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],DAYS:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],SHORT_DAYS:["zo","ma","di","wo","do","vr","za"],MIN_DAYS:["zo","ma","di","wo","do","vr","za"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"nl",CURRENCY:"\u20ac",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["nl_NL"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},NZ:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],DAYS:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],SHORT_DAYS:["sun","mon","tue","wed","thu","fri","sat"],MIN_DAYS:["su","mo","tu","we","th","fr","sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"NZ$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_NZ"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},ZA:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],DAYS:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],SHORT_DAYS:["sun","mon","tue","wed","thu","fri","sat"],MIN_DAYS:["su","mo","tu","we","th","fr","sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"R",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_ZA"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},TP:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],DAYS:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],SHORT_DAYS:["sun","mon","tue","wed","thu","fri","sat"],MIN_DAYS:["su","mo","tu","we","th","fr","sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"\u20ac",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_TP","en_US","en_IE"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},BR:{MONTHS:["Janeiro","Fevereiro","Mar\u00e7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],SHORT_MONTHS:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],DAYS:["Domingo","Segunda-feira","Ter\u00e7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\u00e1bado"],SHORT_DAYS:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],MIN_DAYS:["D","S","T","Q","Q","S","S"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"br",CURRENCY:"R$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["pt_BR","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},AU:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_AU","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},DK:{MONTHS:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],DAYS:["S\u00f8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\u00f8rdag"],SHORT_DAYS:["S\u00f8n","Man","Tir","Ons","Tor","Fre","L\u00f8r"],MIN_DAYS:["S\u00f8","Ma","Ti","On","To","Fr","L\u00f8"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"dk",CURRENCY:"DKK",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["da_DK","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},FI:{MONTHS:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kes\u00e4kuu","Hein\u00e4kuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],SHORT_MONTHS:["Tam","Hel","Maa","Huh","Tou","Kes","Hei","Elo","Syy","Lok","Mar","Jou"],DAYS:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],SHORT_DAYS:["Su","Ma","Ti","Ke","To","Pe","La"],MIN_DAYS:["Su","Ma","Ti","Ke","To","Pe","La"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"fi",CURRENCY:"\u20ac",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["fi_FI","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},NO:{MONTHS:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],DAYS:["S\u00f8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\u00f8rdag"],SHORT_DAYS:["S\u00f8n","Man","Tir","Ons","Tor","Fre","L\u00f8r"],MIN_DAYS:["S\u00f8","Ma","Ti","On","To","Fr","L\u00f8"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"no",CURRENCY:"NOK",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["nb_NO","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},SE:{MONTHS:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],DAYS:["S\u00f6ndag","M\u00e5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\u00f6rdag"],SHORT_DAYS:["S\u00f6n","M\u00e5n","Tis","Ons","Tor","Fre","L\u00f6r"],MIN_DAYS:["S\u00f6","M\u00e5","Ti","On","To","Fr","L\u00f6"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"se",CURRENCY:"SEK",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["sv_SE","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},AE:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"ae",CURRENCY:"AED",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["ar_AE","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},IN:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"in",CURRENCY:"INR",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_IN","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},HK:{MONTHS:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],SHORT_MONTHS:["1 \u6708","2 \u6708","3 \u6708","4 \u6708","5 \u6708","6 \u6708","7 \u6708","8 \u6708","9\u6708","10 \u6708","11 \u6708","12 \u6708"],DAYS:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],SHORT_DAYS:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],MIN_DAYS:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"hk",CURRENCY:"HKD",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_HK","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},SG:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"sg",CURRENCY:"SGD",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_SG","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},PH:{MONTHS:["Enero","Pebrero","Marso","Abril","Mayo","Hunyo","Hulyo","Agosto","Setyembre","Oktubre","Nobyembre","Disyembre"],SHORT_MONTHS:["Ene","Peb","Mar","Abr","May","Hun","Hul","Ago","Set","Okt","Nob","Dis"],DAYS:["Linggo","Lunes","Martes","Miyerkules","Huwebes","Biyernes","Sabado"],SHORT_DAYS:["Lin","Lun","Mar","Miy","Huw","Biy","Sab"],MIN_DAYS:["Li","Lu","Ma","Mi","Hu","Bi","Sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"ph",CURRENCY:"PHP",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["en_PH","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},KR:{MONTHS:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],SHORT_MONTHS:["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4"],DAYS:["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],SHORT_DAYS:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],MIN_DAYS:["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"kr",CURRENCY:"KRW",DECIMALS:"0",DECIMALS_SEPARATOR:".",HUNDREDS_SEPARATOR:",",AUTOCOMPLETION_LANGS:["ko_KR","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},JP:{MONTHS:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],SHORT_MONTHS:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],DAYS:["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],SHORT_DAYS:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],MIN_DAYS:["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"jp",CURRENCY:"JPY",DECIMALS:"0",DECIMALS_SEPARATOR:".",HUNDREDS_SEPARATOR:",",AUTOCOMPLETION_LANGS:["ja_JP","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},CN:{MONTHS:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],SHORT_MONTHS:["1 \u6708","2 \u6708","3 \u6708","4 \u6708","5 \u6708","6 \u6708","7 \u6708","8 \u6708","9\u6708","10 \u6708","11 \u6708","12 \u6708"],DAYS:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],SHORT_DAYS:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],MIN_DAYS:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"cn",CURRENCY:"CNY",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["zh_CN","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},ID:{MONTHS:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],DAYS:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],SHORT_DAYS:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],MIN_DAYS:["Mi","Se","Se","Ra","Ka","Ju","Sa"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"Rp",DECIMALS:"0",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["id_ID","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},TW:{MONTHS:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],SHORT_MONTHS:["1 \u6708","2 \u6708","3 \u6708","4 \u6708","5 \u6708","6 \u6708","7 \u6708","8 \u6708","9\u6708","10 \u6708","11 \u6708","12 \u6708"],DAYS:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],SHORT_DAYS:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],MIN_DAYS:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"en",CURRENCY:"NT$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["zh_TW","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!1,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},MX:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"MXN",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_MX","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},AR:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"ARS",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_AR","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},CL:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"CLP",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_CL","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},CO:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_CO","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},CR:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"\u20a1",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_CR","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},VE:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"Bs",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_VE","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},BO:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"$b",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_BO","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},EC:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_EC","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},SV:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_SV","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},GT:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"Q",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_GT","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},HN:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"L",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_HN","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},NI:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"C$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_NI","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}},PA:{MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTHS:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DAYS:["Sunday","Monday","Tuesday","Wednesday","Thurday","Friday","Saturday"],SHORT_DAYS:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DATE_FORMAT:"dd/mm/yy",FIRST_DAY_OF_WEEK:0,LANG:"es",CURRENCY:"$",DECIMALS:"2",DECIMALS_SEPARATOR:",",HUNDREDS_SEPARATOR:" ",AUTOCOMPLETION_LANGS:["es_PA","en_US"],ROUND_PRICE:!1,APPEND_CURRENCY_SYMBOL:!0,DEFAULT_COUNTRIES_PER_CONTINENT:{Africa:"EG",Asia:"CN",Caribbean:"BS","Central America":"MX",Europe:"UK","North America":"US",Oceania:"AU","South America":"BR"},PLEASE_WAIT_MESSAGE:"Please wait...",FORM_VALIDATION:{"*":"Please correct this value",":email":"Please enter a valid email address",":number":"Please enter a numeric value",":url":"Please enter a valid URL","[max]":"Please enter a value smaller than $1","[min]":"Please enter a value larger than $1","[required]":"Please complete this mandatory field"}}},TP24={body:$("body"),CONFIG:{LOCALE:null,IDS:"_",DEFAULT:{LOCALE:"GR"},AUTOCOMPLETER:{DELAY:0,WIDTH:260,SCROLL:!1,MATCHCONTAINS:!0,SEARCHCODES:!0},CALENDAR:{NUMBER_OF_MONTHS:2,SHOW_BUTTONS:!0,BUTTON_IMAGE:"/img/icon_calendar.gif",BUTTON_IMAGE_ONLY:!0,DURATION:"fast",MAX_DATE:"1y",MIN_DATE:new Date,SHOW_ON:"both"},TABS:{SELECTOR:"ul.tabs",PANELS_SELECTOR:"div.panes > div"},MODAL:{WINDOW:"#tp24-overlay",WRAPPER:"#tp24-overlay-content",SELECTOR:".modal",EMODAL_SELECTOR:".modal-external",EMODAL_URL:"href",IFMODAL_SELECTOR:".modal-iframe",IFMODAL_URL:"href",EFFECT:"apple"},ACCORDION:{SELECTOR:"div.accordion",PANELS_SELECTOR:"div.accordion div.panes",TABS_SELECTOR:"h2",EFFECT:"slide",INDEX:null},RADIO_ACCORDION:{SELECTOR:".accordion-radio",DEFAULT_OPTION_TAG:"label",DEFAULT_EFFECT:"slide"},RADIO_TABS:{SELECTOR:".radio-tabs",DEFAULT_OPTION_TAG:"label",DEFAULT_EFFECT:"slide",DEFAULT_CONTENT_ATTR:"content"},TOOLTIP:{SELECTOR:".tp24-tooltip",EFFECT:"slide"},TOGGLE:{HEADER_SELECTOR:".tp-toggle",CONTENT_SELECTOR:".tp-toggle-content",ACTIVE:"active"},TOGGLEIT:{SELECTOR:"[data-toggle]",ATTR:"data-toggle"},CHECKBOX_TOGGLE:{TRIGGER_SELECTOR:".checkboxToggle",CONTENT_SELECTOR:".checkboxToggle-content",ACTIVE:"active"},HIDEABLE:{SELECTOR:".hideable",ATTR:"rel",ENABLED_TEXT_ATTR:"data-enabled-text",DISABLED_TEXT_ATTR:"data-disabled-text",AVOID:".hideable-notoggle",STATE_ATTR:"data-state",ENABLED_STATE:"ENABLED",DISABLED_STATE:"DISABLED",EVENT:"hideable-"},CONFIRMABLE:{SELECTOR:"[data-confirm]",DATA:"confirm"},SLIDER:{SELECTOR:".slider-links",PANELS_SELECTOR:".slider-tabs > div.slider-tab",EFFECT:"default",SPEED:800,ROTATE:!0},RANGE:{SELECTOR:"span.range",EVENT:"TP24-SLIDE-${id}"},TRACKER:{CATEGORIES:{FLIGHT:"Flight",HOTEL:"Hotel",CAR:"Car",FERRY:"Ferry"}}},OBJECTS:{},ELEMENTS:{},SUPPORT:{},AUTORUN:["initLocalization","initDirectAccess","initCalendar","initOverlay","initSupport","initButtons","slider","tabs","emodal","ifmodal","modal","hideable","confirmable","accordion","radioAccordion","radioTabs","toggle","checkboxToggle","tooltip","formValidation","chosen","toggleIt","criteoTrack"],TINY_AUTORUN:["initLocalization","initDirectAccess","initSupport"],MOBILE_AUTORUN:["initLocalization","initDirectAccess","initCalendar","initSupport","initButtons","confirmable","radioAccordion","radioTabs","toggle","checkboxToggle","formValidation"],LATIN_MAP:{"\u00c1":"A","\u0102":"A","\u1eae":"A","\u1eb6":"A","\u1eb0":"A","\u1eb2":"A","\u1eb4":"A","\u01cd":"A","\u00c2":"A","\u1ea4":"A","\u1eac":"A","\u1ea6":"A","\u1ea8":"A","\u1eaa":"A","\u00c4":"A","\u01de":"A","\u0226":"A","\u01e0":"A","\u1ea0":"A","\u0200":"A","\u00c0":"A","\u1ea2":"A","\u0202":"A","\u0100":"A","\u0104":"A","\u00c5":"A","\u01fa":"A","\u1e00":"A","\u023a":"A","\u00c3":"A","\u0386":"A","\u0391":"A","\ua732":"AA","\u00c6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u1e02":"B","\u1e04":"B","\u0392":"B","\u0181":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0106":"C","\u010c":"C","\u00c7":"C","\u1e08":"C","\u0108":"C","\u010a":"C","\u0187":"C","\u023b":"C","\u010e":"D","\u1e10":"D","\u1e12":"D","\u1e0a":"D","\u1e0c":"D","\u018a":"D","\u0394":"D","\u1e0e":"D","\u01f2":"D","\u01c5":"D","\u0110":"D","\u018b":"D","\u01f1":"DZ","\u01c4":"DZ","\u00c9":"E","\u0114":"E","\u011a":"E","\u0395":"E","\u0228":"E","\u1e1c":"E","\u00ca":"E","\u1ebe":"E","\u1ec6":"E","\u1ec0":"E","\u1ec2":"E","\u1ec4":"E","\u1e18":"E","\u00cb":"E","\u0116":"E","\u1eb8":"E","\u0204":"E","\u00c8":"E","\u1eba":"E","\u0206":"E","\u0112":"E","\u1e16":"E","\u1e14":"E","\u0118":"E","\u0246":"E","\u1ebc":"E","\u1e1a":"E","\u0388":"E","\ua76a":"ET","\u1e1e":"F","\u0191":"F","\u03a6":"F","\u01f4":"G","\u011e":"G","\u01e6":"G","\u0122":"G","\u011c":"G","\u0120":"G","\u0193":"G","\u0393":"G","\u1e20":"G","\u01e4":"G","\u1e2a":"H","\u021e":"H","\u1e28":"H","\u0124":"H","\u2c67":"H","\u1e26":"H","\u1e22":"H","\u1e24":"H","\u0126":"H","\u0398":"TH","\u0389":"I","\u0397":"I","\u038a":"I","\u00cd":"I","\u012c":"I","\u01cf":"I","\u00ce":"I","\u00cf":"I","\u1e2e":"I","\u0130":"I","\u1eca":"I","\u0208":"I","\u00cc":"I","\u1ec8":"I","\u020a":"I","\u012a":"I","\u012e":"I","\u0197":"I","\u0128":"I","\u1e2c":"I","\u0399":"I","\u03aa":"I","\ua779":"D","\ua77b":"F","\ua77d":"G","\ua782":"R","\ua784":"S","\ua786":"T","\ua76c":"IS","\u0134":"J","\u0248":"J","\u1e30":"K","\u01e8":"K","\u0136":"K","\u2c69":"K","\ua742":"K","\u1e32":"K","\u0198":"K","\u1e34":"K","\u039a":"K","\ua740":"K","\ua744":"K","\u0139":"L","\u023d":"L","\u013d":"L","\u013b":"L","\u1e3c":"L","\u1e36":"L","\u1e38":"L","\u2c60":"L","\ua748":"L","\u039b":"L","\u1e3a":"L","\u013f":"L","\u2c62":"L","\u01c8":"L","\u0141":"L","\u01c7":"LJ","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u039c":"M","\u2c6e":"M","\u0143":"N","\u0147":"N","\u0145":"N","\u1e4a":"N","\u1e44":"N","\u039d":"N","\u1e46":"N","\u01f8":"N","\u019d":"N","\u1e48":"N","\u0220":"N","\u01cb":"N","\u00d1":"N","\u01ca":"NJ","\u039e":"KS","\u00d3":"O","\u014e":"O","\u01d1":"O","\u00d4":"O","\u1ed0":"O","\u039f":"O","\u1ed8":"O","\u1ed2":"O","\u1ed4":"O","\u1ed6":"O","\u00d6":"O","\u022a":"O","\u022e":"O","\u0230":"O","\u1ecc":"O","\u0150":"O","\u020c":"O","\u00d2":"O","\u1ece":"O","\u01a0":"O","\u1eda":"O","\u1ee2":"O","\u1edc":"O","\u1ede":"O","\u1ee0":"O","\u020e":"O","\ua74a":"O","\ua74c":"O","\u014c":"O","\u1e52":"O","\u1e50":"O","\u019f":"O","\u01ea":"O","\u01ec":"O","\u00d8":"O","\u01fe":"O","\u00d5":"O","\u1e4c":"O","\u1e4e":"O","\u038c":"O","\u022c":"O","\u01a2":"OI","\ua74e":"OO","\u0190":"E","\u0186":"O","\u0222":"OU","\u1e54":"P","\u1e56":"P","\u03a0":"P","\ua752":"P","\u01a4":"P","\ua754":"P","\u2c63":"P","\ua750":"P","\ua758":"Q","\ua756":"Q","\u0154":"R","\u0158":"R","\u0156":"R","\u1e58":"R","\u1e5a":"R","\u03a1":"R","\u1e5c":"R","\u0210":"R","\u0212":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua73e":"C","\u018e":"E","\u015a":"S","\u1e64":"S","\u0160":"S","\u1e66":"S","\u015e":"S","\u015c":"S","\u0218":"S","\u03a3":"S","\u1e60":"S","\u1e62":"S","\u1e68":"S","\u0164":"T","\u0162":"T","\u1e70":"T","\u021a":"T","\u023e":"T","\u1e6a":"T","\u1e6c":"T","\u01ac":"T","\u1e6e":"T","\u01ae":"T","\u03a4":"T","\u0166":"T","\u2c6f":"A","\ua780":"L","\u019c":"M","\u0245":"V","\ua728":"TZ","\u00da":"U","\u016c":"U","\u01d3":"U","\u00db":"U","\u1e76":"U","\u00dc":"U","\u01d7":"U","\u01d9":"U","\u01db":"U","\u01d5":"U","\u1e72":"U","\u1ee4":"U","\u0170":"U","\u0214":"U","\u00d9":"U","\u1ee6":"U","\u01af":"U","\u1ee8":"U","\u1ef0":"U","\u1eea":"U","\u1eec":"U","\u1eee":"U","\u0216":"U","\u016a":"U","\u1e7a":"U","\u0172":"U","\u016e":"U","\u0168":"U","\u1e78":"U","\u1e74":"U","\ua75e":"V","\u1e7e":"V","\u01b2":"V","\u1e7c":"V","\ua760":"VY","\u038f":"W","\u03a9":"W","\u1e82":"W","\u0174":"W","\u1e84":"W","\u1e86":"W","\u1e88":"W","\u1e80":"W","\u2c72":"W","\u03a8":"PS","\u1e8c":"X","\u1e8a":"X","\u03a7":"X","\u00dd":"Y","\u0176":"Y","\u0178":"Y","\u1e8e":"Y","\u1ef4":"Y","\u1ef2":"Y","\u01b3":"Y","\u038e":"Y","\u1ef6":"Y","\u03a5":"Y","\u03ab":"Y","\u1efe":"Y","\u0232":"Y","\u024e":"Y","\u1ef8":"Y","\u0179":"Z","\u017d":"Z","\u1e90":"Z","\u2c6b":"Z","\u017b":"Z","\u0396":"Z","\u1e92":"Z","\u0224":"Z","\u1e94":"Z","\u01b5":"Z","\u0132":"IJ","\u0152":"OE","\u1d00":"A","\u1d01":"AE","\u0299":"B","\u1d03":"B","\u1d04":"C","\u1d05":"D","\u1d07":"E","\ua730":"F","\u0262":"G","\u029b":"G","\u029c":"H","\u026a":"I","\u0281":"R","\u1d0a":"J","\u1d0b":"K","\u029f":"L","\u1d0c":"L","\u1d0d":"M","\u0274":"N","\u1d0f":"O","\u0276":"OE","\u1d10":"O","\u1d15":"OU","\u1d18":"P","\u0280":"R","\u1d0e":"N","\u1d19":"R","\ua731":"S","\u1d1b":"T","\u2c7b":"E","\u1d1a":"R","\u1d1c":"U","\u1d20":"V","\u1d21":"W","\u028f":"Y","\u1d22":"Z","\u00e1":"a","\u0103":"a","\u1eaf":"a","\u1eb7":"a","\u1eb1":"a","\u1eb3":"a","\u1eb5":"a","\u01ce":"a","\u00e2":"a","\u1ea5":"a","\u1ead":"a","\u1ea7":"a","\u1ea9":"a","\u1eab":"a","\u00e4":"a","\u01df":"a","\u0227":"a","\u01e1":"a","\u1ea1":"a","\u0201":"a","\u00e0":"a","\u1ea3":"a","\u0203":"a","\u0101":"a","\u03ac":"a","\u03b1":"a","\u0105":"a","\u1d8f":"a","\u1e9a":"a","\u00e5":"a","\u01fb":"a","\u1e01":"a","\u2c65":"a","\u00e3":"a","\ua733":"aa","\u00e6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u1e03":"b","\u1e05":"b","\u0253":"b","\u03b2":"b","\u1e07":"b","\u1d6c":"b","\u1d80":"b","\u0180":"b","\u0183":"b","\u0275":"o","\u0107":"c","\u010d":"c","\u00e7":"c","\u1e09":"c","\u0109":"c","\u0255":"c","\u010b":"c","\u0188":"c","\u023c":"c","\u010f":"d","\u1e11":"d","\u1e13":"d","\u0221":"d","\u1e0b":"d","\u1e0d":"d","\u0257":"d","\u1d91":"d","\u03b4":"d","\u1e0f":"d","\u1d6d":"d","\u1d81":"d","\u0111":"d","\u0256":"d","\u018c":"d","\u0131":"i","\u0237":"j","\u025f":"j","\u0284":"j","\u01f3":"dz","\u01c6":"dz","\u00e9":"e","\u0115":"e","\u011b":"e","\u0229":"e","\u1e1d":"e","\u00ea":"e","\u1ebf":"e","\u1ec7":"e","\u1ec1":"e","\u1ec3":"e","\u1ec5":"e","\u1e19":"e","\u00eb":"e","\u0117":"e","\u1eb9":"e","\u0205":"e","\u00e8":"e","\u1ebb":"e","\u0207":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u2c78":"e","\u0119":"e","\u1d92":"e","\u0247":"e","\u1ebd":"e","\u1e1b":"e","\u03ad":"e","\u03b5":"e","\ua76b":"et","\u03c6":"f","\u1e1f":"f","\u0192":"f","\u1d6e":"f","\u1d82":"f","\u01f5":"g","\u011f":"g","\u01e7":"g","\u0123":"g","\u011d":"g","\u03b3":"g","\u0121":"g","\u0260":"g","\u1e21":"g","\u1d83":"g","\u01e5":"g","\u1e2b":"h","\u021f":"h","\u1e29":"h","\u0125":"h","\u2c68":"h","\u1e27":"h","\u1e23":"h","\u1e25":"h","\u0266":"h","\u1e96":"h","\u0127":"h","\u0195":"hv","\u03b8":"th","\u03ae":"i","\u03b7":"i","\u00ed":"i","\u012d":"i","\u01d0":"i","\u00ee":"i","\u03af":"i","\u03b9":"i","\u0390":"i","\u03ca":"i","\u00ef":"i","\u1e2f":"i","\u1ecb":"i","\u0209":"i","\u00ec":"i","\u1ec9":"i","\u020b":"i","\u012b":"i","\u012f":"i","\u1d96":"i","\u0268":"i","\u0129":"i","\u1e2d":"i","\ua77a":"d","\ua77c":"f","\u1d79":"g","\ua783":"r","\ua785":"s","\ua787":"t","\ua76d":"is","\u01f0":"j","\u0135":"j","\u029d":"j","\u0249":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\u2c6a":"k","\u03ba":"k","\ua743":"k","\u1e33":"k","\u0199":"k","\u1e35":"k","\u1d84":"k","\ua741":"k","\ua745":"k","\u013a":"l","\u019a":"l","\u03bb":"l","\u026c":"l","\u013e":"l","\u013c":"l","\u1e3d":"l","\u0234":"l","\u1e37":"l","\u1e39":"l","\u2c61":"l","\ua749":"l","\u1e3b":"l","\u0140":"l","\u026b":"l","\u1d85":"l","\u026d":"l","\u0142":"l","\u01c9":"lj","\u017f":"s","\u1e9c":"s","\u1e9b":"s","\u1e9d":"s","\u1e3f":"m","\u1e41":"m","\u03bc":"m","\u1e43":"m","\u0271":"m","\u1d6f":"m","\u1d86":"m","\u0144":"n","\u0148":"n","\u0146":"n","\u1e4b":"n","\u0235":"n","\u1e45":"n","\u1e47":"n","\u01f9":"n","\u03bd":"n","\u0272":"n","\u1e49":"n","\u019e":"n","\u1d70":"n","\u1d87":"n","\u0273":"n","\u00f1":"n","\u01cc":"nj","\u03be":"ks","\u00f3":"o","\u014f":"o","\u01d2":"o","\u00f4":"o","\u1ed1":"o","\u1ed9":"o","\u1ed3":"o","\u1ed5":"o","\u1ed7":"o","\u00f6":"o","\u022b":"o","\u022f":"o","\u0231":"o","\u03bf":"o","\u03cc":"o","\u1ecd":"o","\u0151":"o","\u020d":"o","\u00f2":"o","\u1ecf":"o","\u01a1":"o","\u1edb":"o","\u1ee3":"o","\u1edd":"o","\u1edf":"o","\u1ee1":"o","\u020f":"o","\ua74b":"o","\ua74d":"o","\u2c7a":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u01eb":"o","\u01ed":"o","\u00f8":"o","\u01ff":"o","\u00f5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u01a3":"oi","\ua74f":"oo","\u025b":"e","\u1d93":"e","\u0254":"o","\u1d97":"o","\u0223":"ou","\u1e55":"p","\u1e57":"p","\ua753":"p","\u03c0":"p","\u01a5":"p","\u1d71":"p","\u1d88":"p","\ua755":"p","\u1d7d":"p","\ua751":"p","\ua759":"q","\u02a0":"q","\u024b":"q","\ua757":"q","\u0155":"r","\u03c1":"r","\u0159":"r","\u0157":"r","\u1e59":"r","\u1e5b":"r","\u1e5d":"r","\u0211":"r","\u027e":"r","\u1d73":"r","\u0213":"r","\u1e5f":"r","\u027c":"r","\u1d72":"r","\u1d89":"r","\u024d":"r","\u027d":"r","\u2184":"c","\ua73f":"c","\u0258":"e","\u027f":"r","\u015b":"s","\u1e65":"s","\u0161":"s","\u1e67":"s","\u015f":"s","\u015d":"s","\u0219":"s","\u1e61":"s","\u1e63":"s","\u03c3":"s","\u1e69":"s","\u0282":"s","\u1d74":"s","\u1d8a":"s","\u023f":"s","\u0261":"g","\u1d11":"o","\u1d13":"o","\u1d1d":"u","\u0165":"t","\u0163":"t","\u03c4":"t","\u1e71":"t","\u021b":"t","\u0236":"t","\u1e97":"t","\u2c66":"t","\u1e6b":"t","\u1e6d":"t","\u01ad":"t","\u1e6f":"t","\u1d75":"t","\u01ab":"t","\u0288":"t","\u0167":"t","\u1d7a":"th","\u0250":"a","\u1d02":"ae","\u01dd":"e","\u1d77":"g","\u0265":"h","\u02ae":"h","\u02af":"h","\u1d09":"i","\u029e":"k","\ua781":"l","\u026f":"m","\u0270":"m","\u1d14":"oe","\u0279":"r","\u027b":"r","\u027a":"r","\u2c79":"r","\u0287":"t","\u028c":"v","\u028d":"w","\u028e":"y","\ua729":"tz","\u00fa":"u","\u016d":"u","\u01d4":"u","\u00fb":"u","\u1e77":"u","\u00fc":"u","\u01d8":"u","\u01da":"u","\u01dc":"u","\u01d6":"u","\u03cd":"u","\u03c5":"u","\u03cb":"u","\u03b0":"u","\u1e73":"u","\u1ee5":"u","\u0171":"u","\u0215":"u","\u00f9":"u","\u1ee7":"u","\u01b0":"u","\u1ee9":"u","\u1ef1":"u","\u1eeb":"u","\u1eed":"u","\u1eef":"u","\u0217":"u","\u016b":"u","\u1e7b":"u","\u0173":"u","\u1d99":"u","\u016f":"u","\u0169":"u","\u1e79":"u","\u1e75":"u","\u1d6b":"ue","\ua778":"um","\u2c74":"v","\ua75f":"v","\u1e7f":"v","\u028b":"v","\u1d8c":"v","\u2c71":"v","\u1e7d":"v","\ua761":"vy","\u03ce":"w","\u03c9":"w","\u1e83":"w","\u0175":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e81":"w","\u2c73":"w","\u1e98":"w","\u03c7":"x","\u1e8d":"x","\u1e8b":"x","\u1d8d":"x","\u03c8":"ps","\u00fd":"y","\u0177":"y","\u00ff":"y","\u1e8f":"y","\u1ef5":"y","\u1ef3":"y","\u01b4":"y","\u1ef7":"y","\u1eff":"y","\u0233":"y","\u1e99":"y","\u024f":"y","\u1ef9":"y","\u017a":"z","\u017e":"z","\u1e91":"z","\u0291":"z","\u2c6c":"z","\u017c":"z","\u1e93":"z","\u0225":"z","\u1e95":"z","\u1d76":"z","\u1d8e":"z","\u0290":"z","\u01b6":"z","\u0240":"z","\u03b6":"z","\ufb00":"ff","\ufb03":"ffi","\ufb04":"ffl","\ufb01":"fi","\ufb02":"fl","\u0133":"ij","\u0153":"oe","\ufb06":"st","\u2090":"a","\u2091":"e","\u1d62":"i","\u2c7c":"j","\u2092":"o","\u1d63":"r","\u1d64":"u","\u1d65":"v","\u2093":"x"},latinise:function(term){var that=this;return term.replace(/[^A-Za-z0-9\[\] ]/g,function(a){return that.LATIN_MAP[a]||a})},init:function(modules,tinyMode){var whatToInit="TP24_MOBILE"in window?this.MOBILE_AUTORUN:this.AUTORUN;tinyMode&&(whatToInit=this.TINY_AUTORUN),$.each(whatToInit,function(index,value){TP24[value]()}),modules&&$.each(modules,function(key){new window[key](key)})},initOverlay:function(){this.isKept=!0,this.overlay=$("#tp24-overlay").css({opacity:"0.7"}),this.overlayContent=$("#tp24-overlay-content"),this.overlayWrapper=$("#tp24-overlay-wrapper"),this.overlay.add($("#tp24-overlay-close")).click(TP24.proxy(function(){this.overlayContent.is(":visible")&&this.overlayHide()},this))},initLocalization:function(){this.CONFIG.LOCALE="TP24_BACKEND_LOCALE"in window&&window.TP24_BACKEND_LOCALE?TP24_LOCALE[TP24_BACKEND_LOCALE]:TP24_LOCALE[this.CONFIG.DEFAULT.LOCALE]},initTranslations:function(translations){this.translations=translations||{}},t:function(key){return this.translations[key]||key},initDirectAccess:function(){$.each($(document).find("[id^="+this.CONFIG.IDS+"]"),function(){var _this=$(this);TP24.ELEMENTS[_this.attr("id")]=_this})},initSupport:function(){this.SUPPORT.workers=!!window.Worker&&!$.browser.webkit&&(!$.browser.msie||$.browser.version!=10)},initButtons:function(){$("button").one("click",function(){$(this).addClass("active")}),$(".wait").one("click",function(){$(this).find("i").hide(),$(this).append('').addClass("active")}),$("form").submit(function(){var thisForm=$(this);$(".lock",thisForm).attr("disabled","disabled")})},autocompleter:function(inputHtmlElement,collection,options){var defaultOptions={delay:this.CONFIG.AUTOCOMPLETER.DELAY,width:this.CONFIG.AUTOCOMPLETER.WIDTH,scroll:this.CONFIG.AUTOCOMPLETER.SCROLL,matchContains:this.CONFIG.AUTOCOMPLETER.MATCHCONTAINS,searchCodes:this.CONFIG.AUTOCOMPLETER.SEARCHCODES};this.mixOptions (defaultOptions,options),inputHtmlElement.autocomplete(collection,defaultOptions)},initCalendar:function(){$.datepicker.regional[this.CONFIG.LOCALE.LANG]={closeText:this.CONFIG.LOCALE.CLOSE_TEXT,prevText:this.CONFIG.LOCALE.PREV_TEXT,nextText:this.CONFIG.LOCALE.NEXT_TEXT,currentText:this.CONFIG.LOCALE.CURRENT_TEXT,monthNames:this.CONFIG.LOCALE.MONTHS,monthNamesShort:this.CONFIG.LOCALE.SHORT_MONTHS,dayNames:this.CONFIG.LOCALE.DAYS,dayNamesShort:this.CONFIG.LOCALE.SHORT_DAYS,dayNamesMin:this.CONFIG.LOCALE.MIN_DAYS,dateFormat:this.CONFIG.LOCALE.DATE_FORMAT,firstDay:this.CONFIG.LOCALE.FIRST_DAY_OF_WEEK,isRTL:!1};var defaults=$.extend({buttonImage:this.CONFIG.CALENDAR.BUTTON_IMAGE,buttonImageOnly:this.CONFIG.CALENDAR.BUTTON_IMAGE_ONLY,duration:this.CONFIG.CALENDAR.DURATION,maxDate:this.CONFIG.CALENDAR.MAX_DATE,minDate:this.CONFIG.CALENDAR.MIN_DATE,numberOfMonths:this.CONFIG.CALENDAR.NUMBER_OF_MONTHS,showOn:this.CONFIG.CALENDAR.SHOW_ON},$.datepicker.regional[this.CONFIG.LOCALE.LANG]);$.datepicker.setDefaults(defaults)},calendar:function(input,options){var defaultOptions={};defaultOptions.showButtonPanel=this.CONFIG.CALENDAR.SHOW_BUTTONS,this.mixOptions(defaultOptions,options),input.datepicker(defaultOptions)},changeMonthPositionAccordingToOutboundDate:function(obDateInput,ibDateInput){var outboundDate=obDateInput.datepicker("getDate"),inboundDate=ibDateInput.datepicker("getDate");inboundDate.getMonth()-outboundDate.getMonth()==1?monthPositionOfInbound=1:monthPositionOfInbound=0,ibDateInput.datepicker("option","showCurrentAtPos",monthPositionOfInbound)},maskCalendar:function(obDateInput,ibDateInput,options){var defaultOptions={showButtonPanel:this.CONFIG.CALENDAR.SHOW_BUTTONS,onSelect:function(){var outboundDate=obDateInput.datepicker("getDate"),inboundDate=ibDateInput.datepicker("getDate");outboundDate>inboundDate&&(outboundDate.setDate(outboundDate.getDate()+2),ibDateInput.datepicker("setDate",outboundDate)),TP24.changeMonthPositionAccordingToOutboundDate(obDateInput,ibDateInput)}};this.mixOptions(defaultOptions,options),obDateInput.datepicker(defaultOptions),defaultOptions={showButtonPanel:this.CONFIG.CALENDAR.SHOW_BUTTONS,beforeShowDay:function(date){return""+date==""+obDateInput.datepicker("getDate")?[!0,"ob-date"]:[!0,""]},onSelect:function(){var outboundDate=obDateInput.datepicker("getDate"),inboundDate=ibDateInput.datepicker("getDate");outboundDate>inboundDate&&(inboundDate.setDate(inboundDate.getDate()-2),obDateInput.datepicker("setDate",inboundDate)),TP24.changeMonthPositionAccordingToOutboundDate(obDateInput,ibDateInput)}},this.mixOptions(defaultOptions,options),ibDateInput.datepicker(defaultOptions),this.changeMonthPositionAccordingToOutboundDate(obDateInput,ibDateInput)},linkCalendar:function(obDateInput,ibDateInput){obDateInput.datepicker("option",{onSelect:function(){var outboundDate=obDateInput.datepicker("getDate"),inboundDate=ibDateInput.datepicker("getDate");outboundDate>inboundDate&&(outboundDate.setDate(outboundDate.getDate()+2),ibDateInput.datepicker("setDate",outboundDate))}}),ibDateInput.datepicker("option",{beforeShowDay:function(date){return""+date==""+obDateInput.datepicker("getDate")?[!0,"ob-date"]:[!0,""]},onSelect:function(){var outboundDate=obDateInput.datepicker("getDate"),inboundDate=ibDateInput.datepicker("getDate");outboundDate>inboundDate&&(inboundDate.setDate(inboundDate.getDate()-2),obDateInput.datepicker("setDate",inboundDate))}})},tabs:function(){var tabs=$(this.CONFIG.TABS.SELECTOR).tabs(this.CONFIG.TABS.PANELS_SELECTOR);tabs.data("tabs")&&tabs.data("tabs").onBeforeClick(function(){$(".validation-error").hide()})},refreshModalDimensions:function(){var getDimension=function(limit,outer){return!outer||outer>limit?d.px(limit):"auto"},win=$(window),winHeight=win.height(),winWidth=win.width(),content=this.overlayWrapper.css({height:d.px(winHeight),width:d.px(winWidth)}).children().eq(0),limitH=winHeight-100,outerHeight=content.outerHeight(!0),limitW=winWidth-400,outerWidth=content.outerWidth(!0),height=getDimension (limitH,outerHeight),width=getDimension(limitW,outerWidth);this.overlayWrapper.css({height:height,width:width})},setModalDimensions:function(){this.overlayContent.css({"margin-left":d.mpx(0),"margin-top":d.mpx(0)}).show(),this.refreshModalDimensions(),this.overlayContent.css({display:"none","margin-left":d.mpx(this.overlayContent.outerWidth(!0)/2),"margin-top":d.mpx(this.overlayContent.outerHeight(!0)/2)}),setTimeout(TP24.proxy(function(){this.overlayContent.fadeIn("fast")},this),0)},emodal:function(){$(this.CONFIG.MODAL.EMODAL_SELECTOR).live("click",TP24.proxy(function(event){var runner=$(event.target).closest("[data-href], a"),target=runner.attr("href")||runner.data("href");this.overlay.show();if(!/(\.gif|\.png|\.jpg|\.jpeg)/.exec(target))target=target.replace("#"," #"),this.overlayWrapper.load(target,TP24.proxy(function(){if(arguments[1]==="error"){this.overlayHide();return}setTimeout(this.proxy(this.setModalDimensions,this),0)},this));else{var image=$('');image.load(TP24.proxy(function(){this.setModalDimensions()},this)),this.overlayWrapper.html(image)}return!1},this))},ifmodal:function(){$(this.CONFIG.MODAL.IFMODAL_SELECTOR).live("click",TP24.proxy(function(event){var runner=$(event.target).closest("[data-href], a"),target=runner.attr("href")||runner.data("href");this.isKept=!1,this.overlay.show(),target=target.replace("#"," #");var iframe=$('');return this.overlayWrapper.html(iframe),iframe.ready(this.proxy(function(){setTimeout(this.proxy(this.setModalDimensions,this),600)},this)),!1},this))},modal:function(){$(this.CONFIG.MODAL.SELECTOR).live("click",TP24.proxy(function(event){var runner=$(event.target).closest("[data-href], a");if(!!runner.length){var target=runner.attr("href")||runner.data("href");this.overlay.show(),this.overlayWrapper.html($(target)),this.setModalDimensions()}return!1},this))},xmodal:function(target){var element=$(target);!element.length||(this.overlay.show(),this.overlayWrapper.html(element.show()),this.setModalDimensions())},accordion:function(){var config={};config.tabs=this.CONFIG.ACCORDION.TABS_SELECTOR,config.effect=this.CONFIG.ACCORDION.EFFECT,config.initialIndex=this.CONFIG.ACCORDION.INDEX,$(this.CONFIG.ACCORDION.SELECTOR).tabs(this.CONFIG.ACCORDION.PANELS_SELECTOR,config)},radioAccordion:function(){$(this.CONFIG.RADIO_ACCORDION.SELECTOR).each(function(){var container=$(this),optionTag=container.data("option-tag");optionTag||(optionTag=TP24.CONFIG.RADIO_ACCORDION.DEFAULT_OPTION_TAG);var options=container.children(optionTag);options.not(container.find("[type=radio]").filter(":checked").parents(optionTag).addClass("active")).next().hide(),options.add(options.find("[type=radio]")).click(function(){var selected=$(this).closest(optionTag).addClass("active"),toBeHidden=options.not(selected).removeClass("active");toBeHidden.next().stop(!0,!0).hide(),selected.next().slideDown (300,"easeInCirc")})})},radioTabs:function(){$(this.CONFIG.RADIO_TABS.SELECTOR).each(function(){var container=$(this),optionTag=container.data("option-tag"),effect=container.data("effect");optionTag||(optionTag=TP24.CONFIG.RADIO_TABS.DEFAULT_OPTION_TAG),effect||(effect=TP24.CONFIG.RADIO_TABS.DEFAULT_EFFECT);var options=container.children(optionTag),notChecked=options.not(container.find("[type=radio]").filter(":checked").parents(optionTag).addClass("active"));notChecked.each(function(){$($(this).data(TP24.CONFIG.RADIO_TABS.DEFAULT_CONTENT_ATTR)).hide()}),options.add(options.find("[type=radio]")).click(function(){var selected=$(this).closest(optionTag).addClass("active");$(selected.data(TP24.CONFIG.RADIO_TABS.DEFAULT_CONTENT_ATTR)).show();var toBeHidden=options.not(selected).removeClass("active");toBeHidden.each(function(){$($(this).data(TP24.CONFIG.RADIO_TABS.DEFAULT_CONTENT_ATTR)).hide()})})})},tooltip:function(){this.isTooltipLoaded||($(this.CONFIG.TOOLTIP.SELECTOR).tooltip({effect:this.CONFIG.TOOLTIP.EFFECT}).dynamic(),this.isTooltipLoaded=!0)},toggle:function(){$(this.CONFIG.TOGGLE.HEADER_SELECTOR).each(function(){var _this=$(this),content=_this.nextAll(TP24.CONFIG.TOGGLE.CONTENT_SELECTOR).first();content.is(":visible")&&_this.addClass(TP24.CONFIG.TOGGLE.ACTIVE),_this.click(function(){return _this.toggleClass(TP24.CONFIG.TOGGLE.ACTIVE),content.slideToggle("fast"),!1})})},toggleIt:function(){$(this.CONFIG.TOGGLEIT.SELECTOR).live("click",function(){var _this=$(this),selector=_this.attr(TP24.CONFIG.TOGGLEIT.ATTR);return $(selector).slideToggle("fast").toggleClass("active"),_this.toggleClass("active"),!1})},checkboxToggle:function(){$(this.CONFIG.CHECKBOX_TOGGLE.TRIGGER_SELECTOR).each(function(){var _this=$(this),content=_this.parents().find(TP24.CONFIG.CHECKBOX_TOGGLE.CONTENT_SELECTOR).first();_this.change(function(){_this.toggleClass(TP24.CONFIG.CHECKBOX_TOGGLE.ACTIVE),content.slideToggle("fast")})})},hideable:function(){$(this.CONFIG.HIDEABLE.SELECTOR).live("click",function(){var _this=$(this),state=_this.attr(TP24.CONFIG.HIDEABLE.STATE_ATTR),selectors=_this.attr(TP24.CONFIG.HIDEABLE.ATTR);$(selectors).not(TP24.CONFIG.HIDEABLE.AVOID).slideToggle("fast"),_this.attr(TP24.CONFIG.HIDEABLE.DISABLED_TEXT_ATTR)||_this.attr(TP24.CONFIG.HIDEABLE.DISABLED_TEXT_ATTR,_this.html()),!state||state!==TP24.CONFIG.HIDEABLE.ENABLED_STATE?(_this.attr(TP24.CONFIG.HIDEABLE.STATE_ATTR,TP24.CONFIG.HIDEABLE.ENABLED_STATE),_this.html(_this.attr(TP24.CONFIG.HIDEABLE.ENABLED_TEXT_ATTR)),_this.toggleClass("active")):(_this.attr(TP24.CONFIG.HIDEABLE.STATE_ATTR,TP24.CONFIG.HIDEABLE.DISABLED_STATE),_this.html(_this.attr(TP24.CONFIG.HIDEABLE.DISABLED_TEXT_ATTR)),_this.toggleClass("active"));var id=_this.attr("id")||(new Date).getTime();return TP24.fire(TP24.CONFIG.HIDEABLE.EVENT+id,_this.attr(TP24.CONFIG.HIDEABLE.STATE_ATTR)),!1})},confirmable:function(){$(this.CONFIG.CONFIRMABLE.SELECTOR).live("click",TP24.proxy(function(event){return confirm($(event.target).data(this.CONFIG.CONFIRMABLE.DATA))},this))},slider:function(){var config={};config.effect=this.CONFIG.SLIDER.EFFECT,config.fadeInSpeed=1e3,config.fadeOutSpeed=this.CONFIG.SLIDER.SPEED,config.rotate=this.CONFIG.SLIDER.ROTATE,config.initialIndex=1;var sliders=$(this.CONFIG.SLIDER.SELECTOR);sliders.tabs(this.CONFIG.SLIDER.PANELS_SELECTOR,config).slideshow({autoplay:!0,autopause:!1})},range:function(){$.each($(this.CONFIG.RANGE.SELECTOR),function(){var _this=$(this),config={};config.range=!0,config.min=_this.attr("data-min"),config.max=_this.attr("data-max"),config.values=[parseInt(config.min,10),parseInt(config.max,10)];var slide=function(){TP24.fire(Template.evaluate({id:this.attr("id")},TP24.CONFIG.RANGE.EVENT))};config.slide=this.proxy(slide,_this),_this.slider(config)})},formValidation:function(){$.tools.validator.localize("tp24",TP24.CONFIG.LOCALE.FORM_VALIDATION)},overlayShow:function(){this.overlay.show(),this.overlayContent.show()},overlayHide:function(){this.overlay.hide(),this.overlayContent.hide(),this.isKept&&this.body.append(this.overlayWrapper.children().hide()),this.isKept=!0},numberFormat:function(a,b,c,d){a=Math.round(a*Math.pow(10,b))/Math.pow(10,b),e=a+"",f=e.split("."),f[0]||(f[0]="0"),f[1]||(f[1]="");if(f[1].length3){h=f[0],f[0]="";for(j=3;j1){for(var radioID in this.paymentDivs)this.paymentDivs[radioID].hide(),d.id(radioID).click(TP24.proxy(function(event){this.enablePaymentRadio(event.target),this.hidePaymentDivs(),this.showPaymentDiv($(event.target).attr("id"))},this));this.enablePaymentRadio(this.paymentCurrentType),this.showPaymentDiv(this.paymentCurrentType.attr("id"))}},disableCVC:function(){var cvcLabel=$('label[for="payment-creditCardControlCode"]');this.creditCardVendor.val()==="4"||this.creditCardVendor.val()==="7"&&window.MaestroCVV===!0?(this.creditCardControlCode.removeAttr("required"),cvcLabel.removeClass("mandatory").addClass("optional")):(this.creditCardControlCode.attr("required","required"),cvcLabel.removeClass("optional").addClass("mandatory"))},enablePaymentRadio:function(_this){return $(_this).parents("p").addClass("active-radio").siblings().removeClass("active-radio")},showPaymentDiv:function(id){this.paymentDivs[id].show(),TP24.fire("TP24:PaymentTypeEnabled",{id:id})},hidePaymentDivs:function(){for(var radioID in this.paymentDivs)this.paymentDivs[radioID].hide(),TP24.fire("TP24:PaymentTypeDisabled",{id:radioID})},initProfileGlobals:function(){this.profileTypeRadios=this.form.find("input[type=radio][name^=profile]"),this.profileCurrentType=this.profileTypeRadios.filter(":checked").attr("id")||this.form.find("#profile-isCompanyActive").attr("id"),this.profileDivsParent=this.form.find("#is-person").parent(),this.profileDivs={"profile-isCompanyActive-0":this.profileDivsParent.children("#is-person"),"profile-isCompanyActive-1":this.profileDivsParent.children("#is-company"),"profile-isCompanyActive":this.profileDivsParent.children("#is-person")}},initProfile:function(){this.profileCurrentType&&(this.showProfile(this.profileCurrentType),this.profileTypeRadios.click(TP24.proxy(function(event){this.showProfile($(event.target).attr("id"))},this)))},showProfile:function(radioID){for(var id in this.profileDivs)id!=radioID&&this.profileDivs[id].detach();var div=this.profileDivs[radioID];$(div.attr("id")).length||this.profileDivsParent.append(div),TP24.fire("TP24:ProfileChanged")},initDropdownBoxes:function(){function format(item){var originalText=item.text,array=originalText.split(" ");return array[array.length-1]}$(".select2box").select2({width:"resolve",dropdownAutoWidth:1,formatNoMatches:function(term){return'
      • '+Globalize.localize("NO_MATCHES_FOUND")+"
      • "},formatSelection:format,escapeMarkup:function(m){return m}})},changeNotificationDialingCodeOnProfileDialingCodeChange:function(){$("[id$='obileCountryDialingCode']").on("change",function(){var countryCode=$("[id$='obileCountryDialingCode']").find("option:selected").val();$('#notification-countryCode option[value="'+countryCode+'"]').prop("selected",!0).trigger("change")})},creditCardNumberIsCopied:function(){var _this=this;this.creditCardNumber.bind("paste",function(){_this.get("#payment-q").val("y")})}}),Voucher=Parent.extend({RUN:["initGlobals","initForm"],selector:"_voucher-form",button:null,errorMessage:null,successMessage:null,input:null,initGlobals:function(){this.button=this.get("#payment-voucherButton"),this.errorMessage=this.get("#voucher-error-message"),this.successMessage=this.get("#voucher-success-message"),this.input=this.get("#payment-voucherCode"),this.bookingID=this.get("#js-booking-id")},initForm:function(){this.button.click(TP24.proxy(function(){return this.root.addClass("in-progress"),$.post("/verify-voucher",{format:"json",code:this.input.val(),bookingID:this.bookingID.val()},TP24.proxy(this.showVerifiedVoucher,this)),!1},this))},showVerifiedVoucher:function(data){var discount=0;this.root.removeClass("in-progress"),!$.isArray(data)&&"discount"in data?(discount=-parseFloat(data.discount),this.errorMessage.addClass("hide"),this.successMessage.removeClass("hide"),this.input.removeClass("error")):(this.successMessage.addClass("hide"),this.input.addClass("error"),this.showSpecificationError(data),this.errorMessage.removeClass("hide")),TP24.fire("PAYMENT:addon-update-price",{group:"other",name:"voucher",price:discount})},showSpecificationError:function(data){if(!$.isArray(data)&&"specificationNotSatisfied"in data){var specificationNotSatisfied=data.specificationNotSatisfied;$(this.errorMessage).removeClass("error").addClass("warning"),$("#payment-voucherCode").removeClass("error").addClass("warning"),$("#voucher-error-message span").removeClass("icon-error").addClass("icon-warning"),$("#voucher-error-message").children(".translatable").html(specificationNotSatisfied)}else $(this.errorMessage).removeClass("warning").addClass("error"),$("#voucher-error-message span").removeClass("icon-warning").addClass("icon-error"),$("#voucher-error-message").children(".translatable").html(data.invalidVoucherError)}}),LiveTranslation=Parent.extend({RUN:["initGlobals","initStartTranslating","initStopTranslating","initTranslateRaw","initTranslatables","initTranslateForm","initTranslateRawForm"],initGlobals:function(){this.stopTranslatingAction=$("#stop-translating"),this.startTranslatingAction=$("#start-translating"),this.rawTranslationDialog=$("#raw-translations-dialog"),this.translateRawAction=$("#start-raw-translating"),this.translatables=$(".translatable"),this.translatablesSize=$(".translatable").size(),this.translateForm=$("#translate-live"),this.translateRawForm=$("#translate-raw"),this.translateFormSubmitButton=this.translateForm.find("input[type=submit]"),this.translateRawFormSubmitButton=this.translateRawForm.find("input[type=submit]"),this.translationsMessage=$(".translations-dialog-message"),this.translateFormKey=this.translateForm.find("input.key"),this.translateFormTranslation=this.translateForm.find("input.translation")},initStartTranslating:function(){this.startTranslatingAction.click(TP24.proxy(function(event){return this.checkAndUpdateTranslatables(),this.startTranslatingAction.hide(),this.stopTranslatingAction.show(),this.translatables.addClass("enabled"),!1},this))},initStopTranslating:function(){this.stopTranslatingAction.click(TP24.proxy(function(event){return this.stopTranslatingAction.hide(),this.startTranslatingAction.show(),this.translatables.removeClass("enabled"),!1},this))},initTranslateRaw:function(){this.translateRawAction.click(TP24.proxy(function(){this.translationsMessage.hide(),this.translateRawForm.add(this.rawTranslationDialog).show()},this))},initTranslatables:function(){this.translatables.click(TP24.proxy(function(event){var target=$(event.target);return target.hasClass("enabled")?(this.showTranslationDialog(target),!1):!0},this))},initTranslateForm:function(){this.translateForm.ajaxForm({target:".translations-dialog-message",beforeSubmit:TP24.proxy(function(){this.translateFormSubmitButton.attr("disabled",!0)},this),success:TP24.proxy(function(){this.translateForm.hide("slow");var key=this.translateFormKey.val(),translation=this.translateFormTranslation.val();this.translatables.filter('[title="'+key+'"]').html(translation),setTimeout(function(){TP24.overlayHide()},1e3)},this),complete:TP24.proxy(function(){this.translationsMessage.show("slow"),this.translateFormSubmitButton.removeAttr("disabled")},this)})},initTranslateRawForm:function(){this.translateRawForm.ajaxForm({target:".translations-dialog-message",beforeSubmit:TP24.proxy(function(){this.translateRawFormSubmitButton.attr("disabled",!0)},this),success:TP24.proxy(function(){this.translateRawForm.hide(),setTimeout(function(){TP24.overlayHide(),window.location.reload()},1e3)},this),complete:TP24.proxy(function(){this.translateRawFormSubmitButton.removeAttr("disabled"),this.translationsMessage.show("slow")},this)})},showTranslationDialog:function(translatable){this.translationsMessage.hide(),this.translateForm.show(),$("#translations-dialog dd.key").text(translatable.attr("title")),this.translateFormKey.val(translatable.attr("title")),this.translateFormTranslation.val(translatable.attr("data-translation")),TP24.xmodal("#translations-dialog")},checkAndUpdateTranslatables:function(){var newTranslatablesSize=$(".translatable").size();newTranslatablesSize!==this.translatablesSize&&(this.translatables=$(".translatable"),this.translatablesSize=newTranslatablesSize,this.initTranslatables())}}),StaticPageSidebar=Parent.extend({RUN:["initGlobals","initMenuItems","initHeaders"],menuItems:null,currentMenuItems:null,headers:null,initGlobals:function(){this.menuItems=$("#sidebar ul li ul"),this.currentMenuItems=$("#sidebar li.current"),this.headers=$("#sidebar h2")},initMenuItems:function(){this.menuItems.hide(),this.currentMenuItems.add(this.currentMenuItems.siblings()).add(this.currentMenuItems.parents()).show()},initHeaders:function(){this.headers.addClass ("cursor_hand"),this.headers.click(function(){var href=$(this).next().find("a").eq(0).attr("href");document.location=href})}}),PaymentSms=Parent.extend({smsText:null,selector:"_payment-form",RUN:["initGlobals"],initGlobals:function(){this.smsText=this.get("#sms-will-be-sent-to"),this.initSms()},initSms:function(){TP24.observe("TP24:ProfileChanged",this.reset,this),$("[id$='obile']").live("keyup change",TP24.proxy(function(event){this.set($(event.target))},this)),$(".notification-option").change(function(){$("#notification-sms-input").toggle({duration:500})})},set:function(mobileInput){this.smsText.val(mobileInput.val())},reset:function(){this.set($("#_payment-form [id*=obile]").filter("[type=text]"))}}),WorldMap=Class.extend({defaultLocale:"el_GR",relations:null,config:null,paths:null,codes:null,defaultCountryPerContinent:null,pathsPerContinent:{},pathsPerCountry:{},countriesCache:{},globalCache:null,defaultGlobalCache:"TP24_AIRPORT_LIST_CACHE",defaultNoResultsText:"No results found",currentCountry:null,currentContinent:null,countryNames:{},continentsSelectionMenu:null,continentSelectedClass:"destination-list-continent-selected",defaultContinent:"Europe",pizarra:null,container:null,listLoading:null,layout:{normal:{fill:"#dae5ea",stroke:"#FFF"},selected:{fill:"#81A1CF",stroke:"#FFF"},current:{fill:"#81A1CF",stroke:"#FFF"}},state:{continentsInserted:{}},paper:null,RUN:["start"],start:function(){this.initGlobals()},init:function(locale,routes,selectionEvent,globalCache,noResultsText){this.globalCache=globalCache||this.defaultGlobalCache,this.noResultsText=noResultsText||this.defaultNoResultsText,this.locale=locale||this.defaultLocale,this.countriesRoute=routes.countriesRoute,this.byCountryRoute=routes.byCountryRoute,this.mapRoute=routes.mapRoute,this.parentWindow=window.parent||window,this.selectionEvent=selectionEvent},isCached:function(key){return this.globalCache in this.parentWindow&&key in this.parentWindow[this.globalCache]},initGlobals:function(){this.locales=$("li.locale-item"),this.currentSelectedEntity=$("#destination-list-current-title"),this.pizarra=$("#destination-list-pizarra"),this.listLoading=$("#destination-list-airports-loading"),this.list=$("#destination-list-airports"),this.container=$("#destination-list-map"),this.autocompletionInput=$("#destination-list-autocompletion-input"),this.continentsSelectionMenu=$("#destination-list-continents li"),this.defaultCountryPerContinent=TP24.CONFIG.LOCALE.DEFAULT_COUNTRIES_PER_CONTINENT,this.config=window.TP24_CONTINENTS_CONFIG,this.paths=window.TP24_WORLD,this.codes=window.TP24_COUNTRY_CODES,this.paper=Raphael(document.getElementById("destination-list-map"),5e3,2e3),this.isCached(this.locale)?this.initMap(this.parentWindow[this.globalCache][this.locale]):$.getJSON(this.countriesRoute,{locale:this.locale},TP24.proxy(function(data){this.initMap(data),this.parentWindow[this.globalCache]||(this.parentWindow[this.globalCache]={}),this.parentWindow[this.globalCache][this.locale]=data},this))},initMap:function(data){eval("this.relations = "+data),this.initEvents(),this.initPaths(),this.setDefaultContinent(),this.initAutocompletion()},initEvents:function(){$(document).mousemove(TP24.proxy(this.followMouse,this)),this.continentsSelectionMenu.click(TP24.proxy(function(event){var _this=$(event.target);this.continentsSelectionMenu.not(_this.addClass(this.continentSelectedClass)).removeClass(this.continentSelectedClass),this.renderContinent(_this.data("continent-code"))},this)),this.locales.click(TP24.proxy(function(event){var locale=$(event.target).closest("li").data("locale");window.location=this.mapRoute+"?locale="+locale},this))},setDefaultContinent:function(){this.renderContinent(this.defaultContinent),this.continentsSelectionMenu.filter('[data-continent-code="'+this.defaultContinent+'"]').addClass(this.continentSelectedClass)},followMouse:function(event){this.pizarra.css({top:d.px(parseInt(event.pageY,10)-$(window).scrollTop()+17),left:d.px(parseInt(event.pageX,10)+12)})},showPizarra:function(countryCode){this.pizarra.show().html(this.countryNames[countryCode])},hidePizarra:function(){this.pizarra.hide()},isIn:function(continent){return continent in this.state.continentsInserted},initCountry:function(country,countryCode){country.attr(this.layout.normal),country[0].style.cursor="pointer",country[0].onmouseover=TP24.proxy(function(){this.showPizarra(countryCode),countryCode!=this.currentCountry&&this.pathsPerCountry[countryCode].attr(this.layout.selected)},this),country[0].onmouseout=TP24.proxy(function(){this.hidePizarra(),countryCode!=this.currentCountry&&this.pathsPerCountry[countryCode].attr(this.layout.normal)},this),country[0].onclick=TP24.proxy(function(){countryCode!=this.currentCountry&&this.selectCountry(countryCode)},this)},selectCountry:function(countryCode){if(this.pathsPerCountry[countryCode]){var previous=this.currentCountry;this.pathsPerCountry[countryCode].attr(this.layout.current),this.currentCountry=countryCode,previous&&this.pathsPerCountry[previous].attr(this.layout.normal),this.renderCountryList(countryCode),this.currentSelectedEntity.html(this.relations[this.currentContinent][countryCode])}},clearSelectedCountry:function(){this.currentCountry&&this.pathsPerCountry[this.currentCountry].attr(this.layout.normal)},scaleContinent:function(continent,factor){this.pathsPerContinent[continent].attr({scale:factor})},renderContinent:function(continent){this.config[continent].scale&&$("#destination-list-loading").show(),setTimeout(TP24.proxy(function(){continent in this.state.continentsInserted||this.insertContinent(continent),this.selectContinent(continent),this.renderContinentList(continent),this.autocompletionInput.focus().val("")},this),1)},order:function(obj,continent){this.orderedCountries||(this.orderedCountries={});if(this.orderedCountries[continent])return this.orderedCountries[continent];var array=[],i=0;for(var attr in obj)array[i++]=attr;return this.orderedCountries[continent]=Array.prototype.sort?array.sort():array,this.orderedCountries[continent]},renderContinentList:function(continent){this.clearSelectedCountry();var target=this.list.empty(),countries=this.order(this.relations.translation[continent],continent);for(var countryTranslationIndex in countries){var countryCode=this.relations.translation[continent][countries[countryTranslationIndex]];if(this.pathsPerCountry[countryCode]){var countryName=this.relations[continent][countryCode],country=$('
      • '+countryName+"
      • ");country.click(TP24.proxy(function(event){var code=$(event.target).data("country-code");this.selectCountry(code)},this)),target.append(country)}}},showListLoading:function(){this.listLoading.show()},hideListLoading:function(){this.listLoading.hide()},showCountryList:function(data){var parentContainers={},target=this.list.empty();for(var airportCode in data){var parent=data[airportCode].parent,countryName=this.relations[this.currentContinent][data [airportCode].country],full=data[airportCode].full+countryName,fullFormatted=data[airportCode].fullFormatted+countryName,airport=$('
      • '+fullFormatted+"
      • ");airport.click(TP24.proxy(function(event){if(window.parent){var li=$(event.target).closest("li");window.parent.TP24.fire(this.selectionEvent,{text:li.data("full-name")}),window.parent.TP24.overlayHide()}},this)),parent?(parentContainers[parent]||(parentContainers[parent]=document.createDocumentFragment()),parentContainers[parent].appendChild(airport.addClass("child-airport")[0])):target.append(airport)}for(var fragment in parentContainers)target.find("#destination-list-airport-"+fragment).addClass("parent-airport").after(parentContainers[fragment]);target.children().length||target.append("

        "+this.noResultsText+"

        "),this.hideListLoading()},renderCountryList:function(country){this.showListLoading();var cacheKey=country+this.local;cacheKey in this.countriesCache?(this.showCountryList(this.countriesCache[cacheKey]),this.autocompletionInput.focus().val("")):$.getJSON(this.byCountryRoute,{country:country,locale:this.locale},TP24.proxy(function(data){this.showCountryList(data),this.countriesCache[cacheKey]=data,this.autocompletionInput.focus().val("")},this))},insertContinent:function(continent){var paths=this.paper.set(),continentCountriesLength=this.pathsPerContinent[continent].length;for(var i=0;i
        '),this.list=this.root.find(".mega-select-list"),this.trigger=this.root.find(".mega-select-trigger"),this.result=this.root.find(".mega-select-result"),this.board=this.root.find(".mega-select-board")},defaultFormat:function(value,text){return'
        '+text+"
        "},defaultSelectedFormat:function(value,text){return"+"+value},mutate:function(){this.cloneCSS(),this.cloneOptions(),this.initEvents(),this.root.insertBefore(this.target.hide()),this.selectedOption&&this.selectedOption.click()},cloneCSS:function(){var length=this.properties.length;for(var i=0;i()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return content!=""&®exp.test(email)?(this.submitButton.attr("disabled","disabled"),!0):(content==""?(this.contentTextarea.addClass("error").fadeIn(100),$("#error-message-empty-fileds").removeClass("hidden"),regexp.test(email)||(this.emailField.addClass("error").fadeIn(100),$("#error-message-empty-fileds").fadeIn(100))):(this.emailField.addClass("error").fadeIn(100),$("#error-message-email").removeClass("hidden"),$("#error-message-email").fadeIn(100)),setTimeout(TP24.proxy(function(){this.contentTextarea.removeClass("error"),this.emailField.removeClass("error"),$("#error-message-empty-fileds").fadeOut(300),$("#error-message-email").fadeOut(300)},this),1500),!1)},this),success:TP24.proxy(function(){this.form.slideUp("fast"),this.successMessageTarget.text(this.successMessageTarget.data("success-message")),this.contentTextarea.removeClass("error"),this.emailField.removeClass("error"),$("#error-message-empty-fileds").hide(),$("#error-message-email").hide(),setTimeout(TP24.proxy(function(){this.successMessageTarget.text(this.originalPromptContent)},this),5e3)},this)})},initScoreRadios:function(){this.scoreRadios.change(TP24.proxy(function(){this.scoreLabels.removeClass("checked"),this.scoreRadios.filter(":checked").parent("label").addClass("checked")},this))}}),FancyFeedbackForm=Parent.extend({RUN:["initGlobals","initForm","initScoreRadios"],selector:"_feedback",prompt:null,form:null,contentTextarea:null,container:null,submitButton:null,scoreRadios:null,scoreLabels:null,initGlobals:function(){$("#error-message").hide(),this.container=$("#feedback"),this.button=$("#feedback-button"),this.form=$("#feedback-form"),this.successMessage=$("#success-message"),this.contentTextarea=this.form.find("textarea"),this.emailField=this.form.find("input"),this.submitButton=this.form.find(":submit"),this.scoreRadios=this.form.find(":radio"),this.scoreLabels=this.scoreRadios.parent("label")},initForm:function(){this.form.ajaxForm({beforeSubmit:TP24.proxy(function(){var email=$.trim(this.form[0]["feedback[email]"].value),content=$.trim(this.form[0]["feedback[content]"].value),regexp=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return content!=""&®exp.test(email)?(this.submitButton.attr("disabled","disabled"),$("#feedback-form").trigger("fancy-feedback-form:submit"),!0):(content==""?(this.contentTextarea.addClass("error").fadeIn(100),$("#error-message-empty-fileds").removeClass("hidden"),regexp.test(email)||(this.emailField.addClass("error").fadeIn(100),$("#error-message-empty-fileds").fadeIn(100))):(this.emailField.addClass("error").fadeIn(100),$("#error-message-email").removeClass("hidden"),$("#error-message-email").fadeIn(100)),setTimeout(TP24.proxy(function(){this.contentTextarea.removeClass("error"),this.emailField.removeClass("error"),$("#error-message-empty-fileds").fadeOut(300),$("#error-message-email").fadeOut(300)},this),1500),!1)},this),success:TP24.proxy(function(){this.form.slideUp("fast"),$.fancybox&&$.fancybox.close(),this.contentTextarea.removeClass("error"),this.emailField.removeClass("error"),this.successMessage.fadeIn(),setTimeout(TP24.proxy(function(){this.successMessage.fadeOut(),this.container.remove()},this),3e3),$("#error-message-empty-fileds").hide(),$("#error-message-email").hide(),this.button.addClass("green")},this)})},initScoreRadios:function(){this.scoreRadios.change(TP24.proxy(function(){this.scoreLabels.removeClass("checked"),this.scoreRadios.filter(":checked").parent("label").addClass("checked")},this))}}),Billboard=Parent.extend({RUN:["initGlobals"],selector:"_billboard",initGlobals:function(){this.root.advancedSlider({xmlSource:TP24_Billboard_Url,width:620,height:300,skin:"minimal-small",shuffle:!1,fadeSlideshowControls:!1,pauseSlideshowOnHover:!0,timerAnimation:!1,effectType:"fade",simpleSlideEasing:"easeInOutExpo",fadeNavigationArrows:!1,navigationButtonsNumbers:!0,shadow:!1,fadeSlideshowControls:!0,fadeNavigationArrows:!0,fadeNavigationButtons:!0})}}),EventTimer=function(){this.hasStarted=!1,this.timeStarted=null,this.start=function(){this.hasStarted!==!0&&(this.timeStarted=new Date,this.hasStarted=!0)},this.stop=function(){if(this.hasStarted===!0){var timeNow=new Date,secondsElapsed=(timeNow.getTime()-this.timeStarted.getTime())/1e3;return this._resetTimers(),secondsElapsed}return 0},this._resetTimers=function(){this.hasStarted=!1,this.timeStarted=null}},UserAddress={initProfileGlobals:function(){this.form=$("form#userAddress"),this.profileTypeRadios=this.form.find("input[type=radio][name^=userAddress]"),this.profileCurrentType=this.profileTypeRadios.filter(":checked").attr("id")||this.form.find("#userAddress-isCompanyActive").attr("id"),this.profileDivsParent=this.form.find("#is-person").parent(),this.profileDivs={"userAddress-isCompanyActive-0":this.profileDivsParent.children("#is-person"),"userAddress-isCompanyActive-1":this.profileDivsParent.children("#is-company"),"userAddress-isCompanyActive":this.profileDivsParent.children("#is-person")}},showProfile:function(radioID){for(var id in this.profileDivs)id!=radioID&&this.profileDivs[id].detach();var div=this.profileDivs[radioID];$(div.attr("id")).length||this.profileDivsParent.append(div)},initProfile:function(){this.initProfileGlobals(),this.profileCurrentType&&(this.showProfile(this.profileCurrentType),_this=this,this.profileTypeRadios.click(function(event){_this.showProfile($(event.target).attr("id"))}))}},Newsletter=Parent.extend({RUN:["initGlobals","initAutocomplete"],selector:"_newsletter-additional-data",initGlobals:function(){$("#_newsletter-additional-data .datepicker:first").datepicker({dateFormat:"yy-mm-dd",minDate:null,changeMonth:!0,changeYear:!0,defaultDate:new Date(1984,0,1),yearRange:"1920:2014"}),this.ibInput=this.get("#dep")},initAutocomplete:function(){this.list=TP24_Flight_Airports_File,TP24.include(this.list,TP24.proxy(function(event){var singleTranslation=TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS.length==1,forceMatchContains=TP24.CONFIG.LOCALE.FORCE_AUTOCOMPLETION_MATCH_CONTAINS;TP24.SUPPORT.workers?(window.TP24_Flight_Airports_Codes=event.data.TP24_Flight_Airports_Codes,this.airports=event.data.TP24_Flight_Airports):this.airports=window.TP24_Flight_Airports,$.each(TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS,TP24.proxy(function(index,locale){locale in this.airports&&TP24.autocompleter(this.ibInput,this.airports[locale],{matchContains:!!index||singleTranslation||forceMatchContains})},this))},this))}});$(".enableWaitScr").click(function(event){var message=$(this).data("message")||TP24.CONFIG.LOCALE.PLEASE_WAIT_MESSAGE;$("body").append('

        '+ message+'

        X
        '),$("#waitScr").fadeIn("fast")}),$(".switchToggle").click(function(event){var hideDiv=$(this).attr("data-hide"),showDiv=$(this).attr("data-show");return $(hideDiv).toggle(),$(showDiv).toggle(),!1}),"TP24_MOBILE"in window||$("input[placeholder], textarea[placeholder]").placeholder(),$(".acceptTerms").hover(function(event){$("#terms:has(input[type=checkbox]:not(':checked'))").addClass("error")}),$("#terms input[type=checkbox]:not(':checked')").change(function(event){$("#terms").removeClass("error").toggleClass("success")}),$(document).ready(function(){var $slideBox=$(".sliding-box"),$slideTrack=$(".sliding-track"),jsContentSlidingTrackHeight=$(".js-content-sliding-track-height").height()||$("#main").height()-50,slidingBoxHeight,slidingTrackOffset,slidingTrackHeight,slidingBoxTop,scrollSliderController,widthController,runControllers;if($slideBox.length>0&&$slideTrack.length>0){$slideTrack.css("height",jsContentSlidingTrackHeight),slidingBoxTop=$slideBox.offset().top-parseFloat($slideBox.css("marginTop").replace(/auto/,0))-20,widthController=function(){slidingBoxHeight=$slideBox.height(),slidingTrackOffset=$slideTrack.offset(),slidingTrackHeight=$slideTrack.height()},scrollSliderController=function(){var $window=$(window),winHeight=$window.height(),scroll=$window.scrollTop(),allowMovement=slidingBoxHeightslidingBoxHeight,onTop=scroll<=slidingBoxTop,onBottom=slidingBoxHeight+scroll>slidingTrackHeight+slidingTrackOffset.top,onMove=scroll>=slidingBoxTop&&!onTop&&!onBottom,$slideBox=$(".sliding-box");$slideBox.removeClass("fixed fixed-bottom"),allowMovement&&(onTop?$slideBox.removeClass("fixed fixed-bottom"):onMove?$slideBox.removeClass("fixed-bottom").addClass("fixed"):onBottom&&$slideBox.removeClass("fixed").addClass("fixed-bottom"))},runControllers=function(){widthController(),scrollSliderController()},runControllers(),$(window).scroll(scrollSliderController).resize(scrollSliderController),$slideBox.on("click.toExpand change.forUpdate",runControllers);var counter=$(".jodometer"),startNumber=$(counter).data("number");$(counter).jOdometer({increment:3,counterStart:startNumber,counterEnd:startNumber,numbersImage:"/img/jodometer_numbers.png",formatNumber:!0,spaceNumbers:2,widthDot:8,delayTime:7e3,easing:"swing"})}$("select").length>0&&($('select:not([value!=""])').addClass("placeholder"),$("select.placeholder > option:first-child").addClass("placeholder"),$("select").change(function(){this.value?$(this).removeClass("placeholder"):$(this).addClass("placeholder")}));var googlePlus=$("#googleplus");if(googlePlus.length>0&&window.location.protocol!=="https:"){var lazyLoadGooglePlus=function(){var scroll=$(this).scrollTop(),showFrom=googlePlus.offset().top-$(window).height();scroll>=showFrom&&head.js("//apis.google.com/js/plusone.js",function(){gapi.plus.go()})};$(window).scroll(lazyLoadGooglePlus)}$("#PrintElement").live("click",function(){return $ ("#subpage").printElement({printMode:"popup"}),!1}),typeof FlightCalendarOffer!="undefined"&&FlightCalendarOffer.prototype.initCounter(),$("[data-role=link]").click(function(){_this=$(this),_this.addClass("clicked");var url=_this.data("href"),link=_this.find("a");return typeof url!="undefined"?_this.attr("target")=="_blank"?window.open(url):window.location=url:link.attr("target")=="_blank"?window.open(link.attr("href")):window.location=link.attr("href"),!1}),$("a#remove-search-query-cookie").click(function(e){var parent=$(this).parent(),removeUrl=$("a.close").attr("href");return $.ajax({type:"get",url:removeUrl,data:{searchQueryCookieID:parent.data("id")},beforeSend:function(){parent.animate({backgroundColor:"#F80"},300)},success:function(json){json.deleted?parent.slideUp(300,function(){parent.remove()}):parent.animate({backgroundColor:"#fff"},300),$.cookie(json.name,json.value,json.params)}}),!1});if(typeof SearchQueryCookie!="undefined"){var expiryDate=new Date;expiryDate.setTime(expiryDate.getTime()+72e5),$.cookie(SearchQueryCookie.name,SearchQueryCookie.value,{expires:expiryDate,path:"/"})}$("[data-focus]").click(function(){var target=$(this).data("focus");return $(target).effect("pulsate",{times:2},800),!1}),$("[data-scroll]").click(function(){var target=$(this).data("scroll");return $.scrollTo(target,500,{easing:"easeOutQuad"}),!1}),$("[data-click]").click(function(){var target=$(this).data("click");return $(target).click(),!1}),$("a").bind("click",function(){$("*").removeClass("tapped"),$(this).addClass("tapped")});var idx=window.location.toString().indexOf("#_=_");idx>0&&(window.location=window.location.toString().substring(0,idx));var editableFirstName=$(".editableFirstNameDashboard");editableFirstName.length>0&&(editableFirstName.editable("/user/dashboard/edit-account-name",{name:"firstName",width:150,height:20,indicator:"Saving...",tooltip:"Click to edit...",cancel:"Cancel",submit:"OK"}),editableFirstName.editable("/user/dashboard/edit-account-name",{name:"lastName",width:150,height:20,indicator:"Saving...",tooltip:"Click to edit...",cancel:"Cancel",submit:"OK"})),UserAddress.initProfile()});var emailConfirmationValidation=function(){if("TP24_MOBILE"in window){var x=document.getElementById("profile-email"),y=document.getElementById("profile-emailConfirmation");y.value=x.value}};console.log("tp24 loaded"),namespace.TP24=TP24,namespace.TP24_LOCALE=TP24_LOCALE,namespace.Parent=Parent,namespace.PaymentForm=PaymentForm,namespace.Voucher=Voucher,namespace.LiveTranslation=LiveTranslation,namespace.StaticPageSidebar=StaticPageSidebar,namespace.PaymentSms=PaymentSms,namespace.WorldMap=WorldMap,namespace.ChromeFrame=ChromeFrame,namespace.MegaSelect=MegaSelect,namespace.FeedbackForm=FeedbackForm,namespace.FancyFeedbackForm=FancyFeedbackForm,namespace.Billboard=Billboard,namespace.Newsletter=Newsletter,namespace.EventTimer=EventTimer,namespace.emailConfirmationValidation=emailConfirmationValidation,function(){var hasProp={}.hasOwnProperty,key;for(key in namespace)hasProp.call(namespace,key)&&(global[key]=namespace[key])}(),typeof define=="function"&&define.amd&&define("tp24-amd",[],function(){return namespace})})(function(){if(typeof exports=="object")return module.exports;if(typeof window!="undefined")return window}());(function(global,undefined){console.log("HotelSearchQuery Started - Deprecated");var namespace={HotelSearchQuery:Parent.extend({list:null,destination:null,checkin:null,checkout:null,roomTemplate:null,childAgeTemplate:null,selector:"_hotel-search",RUN:["initAutocompletion","initGlobals","initCalendar","initRooms"],initGlobals:function(){this.roomTemplate='


        '+TP24.t("Room")+': #{roomNumber}
        ',this.childAgeTemplate='
        ',this.destination=this.get("#destinationInput"),this.checkin=this.get("#checkin"),this.checkout=this.get("#checkout"),this.roomsNumber=this.get("#roomsNumber"),this.rooms=this.get("#Rooms"),TP24.observe("DESTINATIONLIST:destinationSelected",this.destinationSelected,this)},initAutocompletion:function(){this.list=TP24_Hotel_Destinations_File,TP24.include(this.list,TP24.proxy(function(event){var TP24_Hotel_Destinations=TP24.SUPPORT.workers?event.data.TP24_Hotel_Destinations:window.TP24_Hotel_Destinations,singleTranslation=TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS.length==1;$.each(TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS,TP24.proxy(function(index,locale){locale in TP24_Hotel_Destinations&&TP24.autocompleter(this.destination,TP24_Hotel_Destinations[locale],{matchContains:!!index||singleTranslation,searchCodes:!1})},this))},this))},initCalendar:function(){var beforeShow=function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.HOTEL,"openCalenderSearch")};TP24.maskCalendar(this.checkin,this.checkout,{beforeShow:beforeShow})},initRooms:function(){this.roomsNumber.change(TP24.proxy(function(){var rooms="";for(var i=0;i0)var extraPaymentCharge=this.paymentCharge;else var extraPaymentCharge=0;var otherSubtotal=extraPaymentCharge+data.price;this.get("#product-subtotal-other").html(TP24.formatPrice(otherSubtotal));var total=this.productTotalPrice+otherSubtotal;this.get("#total-price").html(TP24.formatPrice(total)),this.get("#total-price").attr("data-total",total),$("#payment-credit-card-total").html(TP24.formatPrice(total));var totalInEuroSelector=$("#payment-credit-card-total-euro"),conversion=totalInEuroSelector.data("conversion");totalInEuroSelector.html(TP24.formatPrice(total/conversion,2,{currency:"\u20ac",round:!1}))},initPaymentMethodsWithExtraCharges:function(){this.paymentExpenses.html(TP24.formatPrice(this.paymentCharge)),this.totalPriceWithoutPaymentCharge=this.totalPrice.total,this.totalPriceTotal=this.totalPrice.element.data("total")+this.paymentCharge-this.voucherSubtotal.attr("data-price"),this.creditCards.change(TP24.proxy(this.creditCardOptionSelected,this));var loadPaymentType=function(event,data){this.terminalRadio==data.id?this.updateSidebarCharges(this.terminalPrice,"payment"):(this.updateSidebarCharges(0,"payment"),TP24.observe(this.event,this.catcher,this))};TP24.observe("TP24:PaymentTypeEnabled",loadPaymentType,this)},updateSidebarCharges:function(charge,type){var productSubtotalElementToUpdate="";type=="payment"&&(this.updatePaymentChargesForPayment(charge),productSubtotalElementToUpdate="#product-subtotal-other"),this.totalPrice.element.html(TP24.formatPrice(this.totalPrice.total));var otherSubtotal=this.paymentCharge+parseInt(this.voucherSubtotal.attr("data-price")*100)/100;this.otherSubtotal.attr("data-price",otherSubtotal),this.otherSubtotal.html(TP24.formatPrice(otherSubtotal)),this.paymentExpenses.html(TP24.formatPrice(charge))},updatePaymentChargesForPayment:function(charge){var total=0,otherTotal=0;this.paymentCharge=charge,total=this.totalPriceWithoutPaymentCharge+this.paymentCharge+parseInt(this.voucherSubtotal.attr("data-price")*100)/100,otherTotal=this.otherChargesWithoutPaymentCharges+this.paymentCharge+parseInt(this.voucherSubtotal.attr("data-price")*100)/100,this.totalPriceWithoutInstallmentCharge=total,this.otherChargesWithoutInstallmentCharges=otherTotal,this.totalPrice.total=total,this.otherSubtotal.price=otherTotal},creditCardOptionSelected:function(event){var element=$(event.target),option=d.tag(element)==="select"?element.children(":selected"):element;this.creditCardLastSelected=this.creditCards.val(),this.creditCardLocallyChargeable=option.data("locally-chargeable");var subtotal=option.data("card-price")||0;this.updateSidebarCharges(subtotal,"payment"),this.creditCardLocallyChargeable==0||!this.creditCardLocallyChargeable==undefined?$("#js-creditcard-locally-chargeable").fadeIn(300):$("#js-creditcard-locally-chargeable").fadeOut(300)}})};(function(){var hasProp={}.hasOwnProperty,key;for(key in namespace)hasProp.call(namespace,key)&&(global[key]=namespace[key])})(),typeof define=="function"&&define.amd&&define("hotels/HotelPriceBar",[],function(){return namespace})}(function(){if(typeof exports=="object")return module.exports;if(typeof window!="undefined")return window}()),function(global,undefined){console.log("HotelUserCancellation Started - Deprecated");var namespace={HotelUserCancellation:Parent.extend({RUN:["initGlobals","initForm"],roomsPaid:null,roomsFees:null,refundableAmount:null,voucher:null,refundedAmount:null,creditCardAmount:null,refundMethod:null,initGlobals:function(){this.paid=$("#sidebar-total-paid"),this.roomsPaid=$("#sidebar-rooms-paid"),this.roomsFees=$("#sidebar-rooms-fees"),this.refundableAmount=$("#sidebar-refundable-amount"),this.voucher=$("#sidebar-voucher"),this.refundedAmount=$("#sidebar-refunded-amount"),this.creditCardAmount=$("#credit-card-amount-to-be-refunded"),this.refundMethod=$("#refund-method"),this.rooms=$("input[type=checkbox].room-selector")},initForm:function(){var _this=this;_this.rooms.change(function(){_this.showHide(),_this.calculatePrices ()}),_this.showHide(),_this.calculatePrices()},showHide:function(){var numberOfChecked=$("input[type=checkbox].room-selector").filter(":checked").length;numberOfChecked>0?this.refundMethod.removeClass("hide"):this.refundMethod.addClass("hide"),$.each(this.rooms,function(){var roomIndex=$(this).data("index");$(this).is(":checked")?$("ul.price-details > li[data-index="+roomIndex+"]").removeClass("hide"):$("ul.price-details > li[data-index="+roomIndex+"]").addClass("hide")})},calculatePrices:function(){var roomsPrice=0,fees=0;$.each($(".room-selector:checked"),function(){roomsPrice+=$(this).data("price"),fees+=$(this).data("fee")}),this.roomsPaid.html(TP24.formatPrice(roomsPrice)),this.roomsFees.html(TP24.formatPrice(fees));var amountToRefund=this.getAmountToRefund(roomsPrice,fees);this.refundableAmount.html(TP24.formatPrice(amountToRefund)),this.refundableAmount.data("price",amountToRefund),this.creditCardAmount.html(TP24.formatPrice(amountToRefund)),amountToRefund==0&&(this.paid.data("price")==0||this.refundedAmount.data("price")>0)?$(".price-totals").addClass("hide"):$(".price-totals").removeClass("hide")},getAmountToRefund:function(roomsPrice,fees){var refundedAmount=this.refundedAmount.data("price"),totalPaid=this.paid.data("price");return Math.max(Math.min(roomsPrice-fees,totalPaid-refundedAmount),0)}})};(function(){var hasProp={}.hasOwnProperty,key;for(key in namespace)hasProp.call(namespace,key)&&(global[key]=namespace[key])})(),typeof define=="function"&&define.amd&&define("hotels/HotelUserCancellation",[],function(){return namespace})}(function(){if(typeof exports=="object")return module.exports;if(typeof window!="undefined")return window}()),function(global,undefined){console.log("HotelCatalogueHotel Started");var namespace={HotelCatalogueHotel:Parent.extend({checkin:null,checkout:null,RUN:["initGlobals","initCalendar"],initGlobals:function(){this.checkin=$("#checkin"),this.checkout=$("#checkout"),this.roomsAndPersons=$("[class ^=js-roomsAndPersons-]"),this.selectAdults=$("[class ^=js-selectAdults-]"),this.selectChildren=$("[class ^=js-selectChildren-]"),this.selectRoomsAndPersons=$(".js-selectRoomsAndPersons"),this.roomsAndPersonsSumTextField=$("input[name=guests]"),this.roomsAndPersonsSumDiv=$(".js-roomsAndPersonsSumDiv"),this.numberOfRooms=$("#roomsNumber"),this.addRoomButton=$(".js-add-room"),this.removeRoomButton=$(".js-remove-room"),this.displayNumberOfRoomsAndPersons(),this.roomsAndPersonsSumTextField.val(this.roomsAndPersonsSumDiv.html()),this.setProperClasses(),this.displayRoomsAndPersonsSelectionVisibility(),this.numberOfChildrenChange(),this.addRoom(),this.removeRoom(),this.eventsToChangeRoomsAndPersonsSumDiv(),this.checkForButtonsVisibility(),this.checkAvailabilityForm()},initCalendar:function(){var beforeShow=function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.HOTEL,"openCalenderSearch")};TP24.maskCalendar(this.checkin,this.checkout,{beforeShow:beforeShow})},setProperClasses:function(){this.roomsAndPersons.not(".hide").each(function(){$(this).addClass("roomWasSelected")})},checkAvailabilityForm:function(){var _this=this,form=$("#js-checkAvailabilityForm");form.submit(function(){_this.roomsAndPersons.not(".roomWasSelected").each(function(){$(this).remove()}),$("[class^=js-ageOfChilderSelect-]").each(function(){$(this).hasClass("hide")&&$(this).remove()})})},checkForRemoveRoomButtonVisibility:function(){var numberOfRooms=this.roomsAndPersons.not(".hide").length;numberOfRooms<=1?this.removeRoomButton.addClass("hide"):this.removeRoomButton.removeClass("hide")},checkForAddRoomButtonVisibility:function(){var numberOfRooms=this.roomsAndPersons.not(".hide").length;numberOfRooms>=5?this.addRoomButton.addClass("hide"):this.addRoomButton.removeClass("hide")},checkForButtonsVisibility:function(){this.checkForRemoveRoomButtonVisibility(),this.checkForAddRoomButtonVisibility()},displayRoomsAndPersonsSelectionVisibility:function(){var _this=this;this.roomsAndPersonsSumTextField.click(function(){_this.selectRoomsAndPersons.removeClass("hide"),_this.checkForButtonsVisibility()}),this.onDoneOrCancelClick()},onDoneOrCancelClick:function(){var _this=this;$(".js-done-selection").click(function(){var numberOfRooms=_this.roomsAndPersons.not(".hide").length;_this.roomsAndPersons.each(function(){$(this).removeClass("roomWasSelected"),$(this).hasClass("hide")||$(this).addClass("roomWasSelected")}),_this.numberOfRooms.val(numberOfRooms),_this.roomsAndPersonsSumTextField.val(_this.roomsAndPersonsSumDiv.html())}),$("body").click(function(e){!$(e.target).closest(".js-selectRoomsAndPersons").length&&!$(e.target).closest(".guests").length&&$(".js-selectRoomsAndPersons").addClass("hide")}),$(".js-cancel-selection, .js-done-selection").click(function(){$(".js-selectRoomsAndPersons").addClass("hide")})},addRoom:function(){var _this=this;$(".js-add-room").click(function(){var numberOfRooms=_this.roomsAndPersons.not(".hide").length;$(".js-roomsAndPersons-"+numberOfRooms).removeClass("hide"),$(".js-selectAdults-"+numberOfRooms).removeClass("hide"),$(".js-selectChildren-"+numberOfRooms).removeClass("hide"),_this.checkForButtonsVisibility()})},removeRoom:function(){var _this=this;$(".js-remove-room").click(function(){var numberOfRooms=_this.roomsAndPersons.not(".hide").length;numberOfRooms>1&&($(".js-roomsAndPersons-"+(numberOfRooms-1)+" select").val(""),$(".js-roomsAndPersons-"+(numberOfRooms-1)).addClass("hide"),$(".js-selectAdults-"+(numberOfRooms-1)).addClass("hide"),$(".js-selectChildren-"+(numberOfRooms-1)).addClass("hide")),_this.checkForButtonsVisibility()})},numberOfChildrenChange:function(){this.selectChildren.change(function(){var i,$this=$(this),children=$this.val(),className=$this.attr("class"),classID=className.match(/js-selectChildren-(\d+)/)[1];for(i=0;i<=1;i++)$(".js-ageOfChilderSelect-"+parseFloat(classID)+"_"+i).addClass("hide");if(children>0)for(i=0;i1&&(personWord="Persons"),numberOfRooms>1&&(roomWord="Rooms"),this.roomsAndPersonsSumDiv.html(numberOfRooms+" "+TP24.t(roomWord)+", "+numberOfPersons+" "+TP24.t(personWord))}})};(function(){var hasProp={}.hasOwnProperty,key;for(key in namespace)hasProp.call(namespace,key)&&(global[key]=namespace[key])})(),typeof define=="function"&&define.amd&&define("hotels/HotelCatalogueHotel",[],function(){return namespace})}(function(){if(typeof exports=="object")return module.exports;if(typeof window!="undefined")return window}()),function(window,undefined){$("body").hasClass("hotel-personal")&&(console.log("Personal"),$(document).ready(function(){var invoice=$("#invoice"),company=$("#profile-isCompanyActive"),autoloadValues=[],_autoInitValues=[];invoice.hide(),invoice.length>0&&(company.is(":checked")&&(company.parent("p").toggleClass("active-check"),invoice.show()),company.click(function(){invoice.toggle(),$(this).parent("p").toggleClass("active-check")})),$("#guestRoomInfo-0-0-firstName").one("blur",function(){var profileFirstName=$("#profile-firstName");profileFirstName.val()===""&&profileFirstName.val($(this).val())}),$("#guestRoomInfo-0-0-lastName").one("blur",function(){var profileLastName=$("#profile-lastName");profileLastName.val()===""&&profileLastName.val($(this).val())}),$("#guestRoomInfo-0-0-gender").one("blur",function(){$("#profile-gender").val($(this).val())}),$("input.autoload").each(function(){_autoInitValues[$(this).name]=$(this).value,$(this).on("focus",function(){autoloadValues[$(this).name]=$(this).value,$(this).value===_autoInitValues[$(this).name]&&($(this).value="")}).on("blur",function(){$(this).value===""&&($(this).value=_autoInitValues[$(this).name])})}),$("input.nongreek").each(function(){this.on("change",function(){var val=this.value,regEx=new RegExp("[a-zA-Z ]{"+val.length+"}","i"),regExDeny=new RegExp("[!@#$%^&*()]");val.search(regEx)==-1||val.search(regExDeny)!=-1?(alert("Please enter your name in latin characters just as appear in your passport or id card"),$(this).addClass("error")):$(this).removeClass("error")})})}))}(window),define("hotels/HotelPersonal",function(){}),function(window,undefined){$(document).ready(function(){if($("body").hasClass("hotel-payment")){var paymentPageTrackingCategory=TP24.CONFIG.TRACKER.CATEGORIES.HOTEL+"/Payment Page";TP24.track(paymentPageTrackingCategory,"Payment page loaded"),$("#flash").length>0&&TP24.track(paymentPageTrackingCategory,"Payment page loaded","Validation error(s)"),$("#slide-info").on("click",function(){TP24.track(paymentPageTrackingCategory,"Click on More info")});var paymentVoucherButton=!1;$("#payment-voucherButton").on("click",function(){paymentVoucherButton||($(document).ajaxStop(function(){var voucherCodeElement=$("#payment-voucherCode"),voucherCode=voucherCodeElement.val();voucherCodeElement.hasClass("error")&&TP24.track(paymentPageTrackingCategory,"Invalid voucher",voucherCode)}),paymentVoucherButton=!0)}),$("#payment").on("submit",function(){var paymentType=$('input[name="payment[selectedMethodIndex]"]:checked').parent("label").text();TP24.track(paymentPageTrackingCategory,"Selected Payment Option",paymentType);var creditCardVendorElement=$("#payment-creditCardVendor");if(creditCardVendorElement.is(":visible")){var creditCardVendor=creditCardVendorElement.find("option:selected").text();creditCardVendor=creditCardVendor.replace(/ *\([^)]*\) */g,""),TP24.track(paymentPageTrackingCategory,"Selected Credit Card Vendor/Type",creditCardVendor+" | "+paymentType)}$("#terms").hasClass("success")==0&&TP24.track(paymentPageTrackingCategory,"Unchecked Terms & Conditions")});var creditCardSelector=$("#credit-card");if(creditCardSelector.is(":visible")&&creditCardSelector.parent().find("ul.error").length>0){var invalidCreditCardValidationErrors=[],creditCardVendorElement=$("#payment-creditCardVendor");creditCardVendorElement.val()===""&&invalidCreditCardValidationErrors.push(creditCardVendorElement.attr("id").replace("payment-","")),$("#credit-card input.error, #credit-card select.error").each(function(){invalidCreditCardValidationErrors.push($(this).attr("id").replace("payment-",""))});var invalidCreditCardValidationError=invalidCreditCardValidationErrors.join(" | ");invalidCreditCardValidationError!==""&&TP24.track(paymentPageTrackingCategory,"Invalid Credit Card",invalidCreditCardValidationError)}}})}(window),define("hotels/tracking/HotelPaymentTracking",function(){}),function(window,undefined){$("body").hasClass ("hotel-confirmation")&&(console.log("ConfirmationTracking"),$(document).ready(function(){var confirmationPageTrackingCategory=TP24.CONFIG.TRACKER.CATEGORIES.HOTEL+"/Confirmation Page";TP24.track(confirmationPageTrackingCategory,"Confirmation page loaded"),$("#notes a").on("click",function(){TP24.track(confirmationPageTrackingCategory,"Click on terms & conditions")})}))}(window),define("hotels/tracking/HotelConfirmationTracking",function(){}),function(window,undefined){$("body").hasClass("hotel-personal")&&(console.log("HotelPersonalTracking"),$(document).ready(function(){var personalPageTrackingCategory=TP24.CONFIG.TRACKER.CATEGORIES.HOTEL+"/Personal Page";TP24.track(personalPageTrackingCategory,"Personal page loaded"),$("#flash").length>0&&TP24.track(personalPageTrackingCategory,"Personal page loaded","Validation error(s)"),$('form[name="personalForm"]').submit(function(){$('input[type=hidden][name*="isAdult"][value="1"]').each(function(){var passengerGender=$(this).prev("select").val ();TP24.track(personalPageTrackingCategory,"Passenger Gender",passengerGender)});var residenceCity=$("#profile-city").val(),residenceCountry=$("#profile-countryCode").find("option:selected").text(),residence=residenceCity+", "+residenceCountry,newsletterSubscription=$("#profile-isOnNewsletter").is(":checked")?1:0,invoiceSelected=$("#profile-isCompanyActive").is(":checked")?1:0;residenceCity!=null&&residenceCountry!=null&&TP24.track(personalPageTrackingCategory,"City of Residence",residence),TP24.track(personalPageTrackingCategory,"Newsletter Subscription","(Boolean 1 OR 0 - true OR false)",newsletterSubscription),TP24.track(personalPageTrackingCategory,"Invoice Selected","(Boolean 1 OR 0 - true OR false)",invoiceSelected)})}))}(window),define("hotels/tracking/HotelPersonalTracking",function(){}),define("tp24-hotel",["hotels/HotelSearchQuery","hotels/HotelPriceBar","hotels/HotelUserCancellation","hotels/HotelCatalogueHotel","hotels/HotelPersonal","hotels/tracking/HotelPaymentTracking","hotels/tracking/HotelConfirmationTracking","hotels/tracking/HotelPersonalTracking"],function(){console.log("Hotel Started")});(function(global,undefined){var namespace={},FlightSearchQuery=Parent.extend({list:null,obInput:null,ibInput:null,obDate:null,ibDate:null,ibTime:null,roundTrip:null,toBeHiddenByRadio:null,moreOptions:null,airports:null,depList:null,arrList:null,defaultCountriesPerContinent:null,source:null,selector:"_flight-search",RUN:["initAutocomplete","initGlobals","initCalendar","initRoundTrip","initAirportList","passengersValidation","initGeodata"],initGlobals:function(){this.obInput=this.get("#dep"),this.ibInput=this.get("#arr"),this.obDate=this.get("#obDate"),this.ibDate=this.get("#ibDate"),this.roundTrip=this.get("input[type=radio]"),this.toBeHiddenByRadio=this.get(".round-trip-hidden"),this.ibTime=this.get("#ibTime").parent(),this.moreOptions=this.get("#flight-form-more-options"),this.depList=this.get("#dep-list"),this.arrList=this.get("#arr-list"),this.adults=this.get("#passengersAdult"),this.children=this.get("#passengersChild"),this.infants=this.get("#passengersInfant"),this.defaultCountriesPerContinent=TP24.CONFIG.LOCALE.DEFAULT_COUNTRIES_PER_CONTINENT},initAutocomplete:function(){this.list=TP24_Flight_Airports_File,TP24.include(this.list,TP24.proxy(function(event){var singleTranslation=TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS.length==1,forceMatchContains=TP24.CONFIG.LOCALE.FORCE_AUTOCOMPLETION_MATCH_CONTAINS;TP24.SUPPORT.workers?(window.TP24_Flight_Airports_Codes=event.data.TP24_Flight_Airports_Codes,this.airports=event.data.TP24_Flight_Airports):this.airports=window.TP24_Flight_Airports,$.each(TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS,TP24.proxy(function(index,locale){locale in this.airports&&(TP24.autocompleter(this.obInput,this.airports[locale],{matchContains:!!index||singleTranslation||forceMatchContains}),TP24.autocompleter(this.ibInput,this.airports[locale],{matchContains:!!index||singleTranslation||forceMatchContains}))},this))},this))},getAirportTextByAirportCode:function(airportCode){var airportCodeFormatted="("+airportCode+")",airportText=!1,locale=TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS [0];return!!this.airports&&locale in this.airports&&$.each(this.airports[locale],function(index,text){if(text.search(airportCodeFormatted)!==-1){airportText=text;return}}),airportText},initCalendar:function(){var beforeShow=function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"openCalenderSearch")};TP24.maskCalendar(this.obDate,this.ibDate,{beforeShow:beforeShow})},initRoundTrip:function(){this.roundTrip.change(TP24.proxy(this.handleRoundTrip,this)),TP24.observe(TP24.CONFIG.HIDEABLE.EVENT+"flight-form-more-options",this.handleIbTime,this),this.handleRoundTrip()},handleRoundTrip:function(){this.roundTrip.eq(0).is(":checked")?this.toBeHiddenByRadio.show():this.toBeHiddenByRadio.hide(),this.handleIbTime(undefined,this.moreOptions.attr(TP24.CONFIG.HIDEABLE.STATE_ATTR))},handleIbTime:function(){this.roundTrip.eq(0).is(":checked")&&arguments[1]===TP24.CONFIG.HIDEABLE.ENABLED_STATE?this.ibTime.show():this.ibTime.hide()},addOptions:function(element,number,isAdult){var previous=element.val ();element.empty();for(var i=isAdult||0;i<=number;i++){var option=$("").html(i).val(i);element.append(option)}element.children("option").size()>=previous-1&&element.val(previous)},passengersValidation:function(){this.adults.change(TP24.proxy(function(event){var select=$(event.target).closest("select");this.addOptions(this.infants,select.val()),this.addOptions(this.children,9-select.val())},this)),this.children.change(TP24.proxy(function(event){var select=$(event.target).closest("select"),option,i;this.addOptions(this.adults,9-select.val(),1),this.addOptions(this.infants,9-select.val())},this)),this.adults.add(this.children).change()},initAirportList:function(){this.depList.click(TP24.proxy(function(){this.source="dep",TP24.fire("DESTINATIONLIST:airportListOpened"),TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"openAirportsDepartureSearch")},this)),this.arrList.click(TP24.proxy(function(){this.source="arr",TP24.fire("DESTINATIONLIST:airportListOpened"),TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"openAirportsArrivalSearch")},this)),TP24.observe("DESTINATIONLIST:airportSelected",this.airportSelected,this)},airportSelected:function(event,data){$("input[name="+this.source+"]").val(data.text)},initGeodata:function(){return;var _this,geoData}}),FlightPriceBar=Parent.extend({selectedOptions:null,options:null,totals:null,subtotals:null,prices:{},baggages:null,accessories:null,ancillaryServices:null,baggagesPrice:{},accessoriesPrice:{},ancillaryServicesPrice:{},insurancePrice:{},notificationPrice:{},creditCards:null,installments:null,paymentCharge:0,installmentLastSelected:0,installmentCharge:0,creditCardsRadio:"payment-type-CreditCard",instantBankRadio:"payment-type-InstantBank",terminalRadio:"payment-type-Terminal",paypalRadio:"payment-type-PayPal",creditCardLastSelected:"",instantBankPrice:0,terminalPrice:0,totalPriceWithoutPaymentCharge:0,otherChargesWithoutPaymentCharges:0,totalPriceWithoutInstallmentCharge:0,otherChargesWithoutInstallmentCharges:0,shouldSubstractInstallmentCharges:!1,totalPrice:{},hierarchyTemplate:"[data-hierarchy^=#{group}]",subtotalsTemplate:"[id=product-subtotal-#{name}]",totalsTemplate:"[id=product-total-#{group}]",selectedClass:"selected-option",selectedSelector:".selected-option",event:"PAYMENT:addon-update-price",selector:"_pricebar",RUN:["initGlobals","initPrices","initBaggages","initAccessories","initAncillaryServices","initInsurance","initNotification","initInstallmentsSurcharge","initPaymentMethodsWithExtraCharges","initCatcher","initThrower","triggerChanges","checkForZeroPrice"],initGlobals:function(){this.options=$("[data-price]"),this.selectedOptions=this.options.filter(this.selectedSelector),this.totals=this.get("[id^=product-total]"),this.subtotals=this.get("[id^=product-subtotal]"),this.baggages=$("#addons-baggageAncillaryServicesTotalPrice"),this.accessories=$("select[id^=addons-accessories]"),this.ancillaryServices=$("tr[id^=ancillaryServiceOption]"),this.insurance=$("[id^=addons-insurance-]"),this.creditCards=$("#payment-creditCardVendor"),this.numberOfInstallments=$("#payment-numberOfInstallments"),this.totalPrice.element=this.get("#total-price"),this.totalPrice.total=this.totalPrice.element.data("total"),this.instantBankPrice=$("#instant-bank-charge").data("charge"),this.terminalPrice=$("#terminal-charge").data("charge"),this.paypalPrice=$("#paypal-charge").data("charge"),this.otherTotal=$("#product-total-other"),this.totalElement=$("#total-price")},initInstallmentsSurcharge:function(){this.installmentCharge=0,this.totalPriceWithoutInstallmentCharge=this.totalElement.data("total"),this.otherChargesWithoutInstallmentCharges=this.otherTotal.data("price"),this.numberOfInstallments.change(TP24.proxy(this.installmentOptionSelected,this))},initBaggages:function(){this.baggagesPrice.total=0,this.baggages.on("updateBaggagePrice",TP24.proxy(function(event,oldPrice,newPrice){var total=this.totalPrice.total-Number(oldPrice)+Number(newPrice),otherTotal="other"in this.prices?this.prices.other-Number(oldPrice)+Number(newPrice):0;this.baggagesPrice.total=Number(newPrice),this.subtotals.filter("#product-subtotal-baggages").html(TP24.formatPrice(this.baggagesPrice.total)),this.totalPrice.element.html(TP24.formatPrice(total)),this.totalPrice.total=total;var otherTotalElement=this.totals.filter(d.template({group:"other"},this.totalsTemplate));otherTotalElement.html(TP24.formatPrice(otherTotal)),this.prices.other=otherTotal,this.checkForZeroPrice("#product-subtotal-baggages",newPrice)},this))},initAccessories:function(){this.accessoriesPrice.total=0,this.accessories.each(TP24.proxy(function(index,value){var select=$(value);this.accessoriesPrice[select.attr("id")]=select.children().eq(select.val()).data("accessory-price"),this.accessoriesPrice.total+=this.accessoriesPrice[select.attr("id")]},this)),this.accessories.change(TP24.proxy(function(event){var option=$(event.target).children(":selected"),selectID=option.parent().attr("id"),subtotal=this.accessoriesPrice.total-this.accessoriesPrice [selectID]+option.data("accessory-price"),total=this.totalPrice.total-this.accessoriesPrice.total,otherTotal="other"in this.prices?this.prices.other-this.accessoriesPrice.total:0;this.accessoriesPrice[selectID]=option.data("accessory-price"),this.accessoriesPrice.total=subtotal,this.subtotals.filter("#product-subtotal-accessories").html(TP24.formatPrice(subtotal)),total+=this.accessoriesPrice.total,this.totalPrice.element.html(TP24.formatPrice(total)),this.totalPrice.total=total;var otherTotalElement=this.totals.filter(d.template({group:"other"},this.totalsTemplate));otherTotal+=this.accessoriesPrice.total,otherTotalElement.html(TP24.formatPrice(otherTotal)),this.prices.other=otherTotal,this.checkForZeroPrice("#product-subtotal-accessories",this.accessoriesPrice.total)},this))},initInsurance:function(){$("a.insurance-link").on("click",function(e){e.preventDefault(),$(this).siblings("a").toggle(),$(this).closest("label").find(".insurance-description").toggle(),$(this).closest("label").find (".insurance-preview").toggle()}),this.insurancePrice.total=0,this.insurance.each(TP24.proxy(function(index,value){var option=$(value);this.insurancePrice[option.attr("id")]=option.data("insurance-price"),option.is(":checked")&&(this.insurancePrice.total+=this.insurancePrice[option.attr("id")])},this)),this.insurance.change(TP24.proxy(function(event){var option=$(event.target),checked=option.is(":checked"),selectID=option.attr("id"),subtotal=checked?this.insurancePrice.total+this.insurancePrice[selectID]:this.insurancePrice.total-this.insurancePrice[selectID],total=this.totalPrice.total-this.insurancePrice.total+subtotal,otherTotal="other"in this.prices?this.prices.other-this.insurancePrice.total+subtotal:0;this.insurancePrice.total=subtotal,this.totalPrice.total=total,this.prices.other=otherTotal,this.totalPrice.element.html(TP24.formatPrice(total)),this.subtotals.filter("#product-subtotal-insurance").html(TP24.formatPrice(subtotal));var otherTotalElement=this.totals.filter(d.template({group:"other"},this.totalsTemplate));otherTotalElement.html(TP24.formatPrice(otherTotal)),this.checkForZeroPrice("#product-subtotal-insurance",this.insurancePrice.total)},this))},initNotification:function(){var notificationArrival=$("#notification-arrival"),notificationArrivalInfo=$("#notification-arrival-info"),smsEmailOption=$("#addons-notification-1");notificationArrival.change(TP24.proxy(function(event){var smsAndEmailNotificationPrice=parseFloat(smsEmailOption.data("price")),smsArrivalPrice=parseFloat(notificationArrival.data("extra")),priceDiff=notificationArrival.is(":checked")?smsArrivalPrice:-smsArrivalPrice;notificationArrival.is(":checked")?notificationArrivalInfo.show("fast"):notificationArrivalInfo.hide("fast"),smsEmailOption.data("price",smsAndEmailNotificationPrice+priceDiff),smsEmailOption.trigger("click")},this))},initAncillaryServices:function(){this.ancillaryServicesPrice.total=0,this.ancillaryServices.live("initPricebar",TP24.proxy(function(){this.ancillaryServicesPrice.total=0,$("tr[id^=ancillaryServiceOption]").each(TP24.proxy(function(index,value){var select=$(value);this.ancillaryServicesPrice[select.attr("id")]=select.data("ancillaryservices-price"),this.ancillaryServicesPrice.total+=Number(this.ancillaryServicesPrice[select.attr("id")])},this))},this)),this.ancillaryServices.live("updatePricebarAdd",TP24.proxy(function(event,id){this.ancillaryServicesPrice.total=Number(this.ancillaryServicesPrice.total);var otherTotal="other"in this.prices?this.prices.other-this.ancillaryServicesPrice.total:0,total=this.totalPrice.total-this.ancillaryServicesPrice.total;this.ancillaryServicesPrice[id]=$(id).data("ancillaryservices-price"),this.ancillaryServicesPrice.total+=Number(this.ancillaryServicesPrice[id]),total+=this.ancillaryServicesPrice.total,this.totalPrice.element.html(TP24.formatPrice(total)),this.totalPrice.total=total;var otherTotalElement=this.totals.filter(d.template({group:"other"},this.totalsTemplate));otherTotal+=this.ancillaryServicesPrice.total,otherTotalElement.html(TP24.formatPrice(otherTotal)),this.prices.other=otherTotal,this.subtotals.filter("#product-subtotal-ancillaryServices").html(TP24.formatPrice(this.ancillaryServicesPrice.total)),this.checkForZeroPrice("#product-subtotal-ancillaryServices",this.ancillaryServicesPrice.total)},this)),this.ancillaryServices=$("tr[id^=ancillaryServiceOption]").live("updatePricebarRemove",TP24.proxy(function(event,id){this.ancillaryServicesPrice.total=Number(this.ancillaryServicesPrice.total);var total=this.totalPrice.total-this.ancillaryServicesPrice.total,otherTotal="other"in this.prices?this.prices.other-this.ancillaryServicesPrice.total:0;this.ancillaryServicesPrice[id]=$(id).data("ancillaryservices-price"),this.ancillaryServicesPrice.total-=Number(this.ancillaryServicesPrice[id]),total+=this.ancillaryServicesPrice.total,this.totalPrice.element.html(TP24.formatPrice(total)),this.totalPrice.total=total;var otherTotalElement=this.totals.filter(d.template({group:"other"},this.totalsTemplate));otherTotal+=this.ancillaryServicesPrice.total,otherTotalElement.html(TP24.formatPrice(otherTotal)),this.prices.other=otherTotal,this.subtotals.filter("#product-subtotal-ancillaryServices").html(TP24.formatPrice(this.ancillaryServicesPrice.total)),this.checkForZeroPrice("#product-subtotal-ancillaryServices",this.ancillaryServicesPrice.total)},this))},initPaymentMethodsWithExtraCharges:function(){this.paymentCharge=$("#product-subtotal-paymentCharges").data("price"),this.totalPriceWithoutPaymentCharge=this.totalElement.data("total")-this.paymentCharge,this.otherChargesWithoutPaymentCharges=this.otherTotal.data("price")-this.paymentCharge,this.creditCards.change(TP24.proxy(this.creditCardOptionSelected,this));var loadPaymentType=function(event,data){this.creditCardsRadio==data.id?this.creditCardOptionSelected({target:this.creditCards.children("option[value="+this.creditCardLastSelected+"]")}):this.instantBankRadio==data.id?(this.updateSidebarCharges(this.instantBankPrice,"payment"),this.hideInstallments()):this.terminalRadio==data.id?(this.updateSidebarCharges(this.terminalPrice,"payment"),this.hideInstallments()):(this.updateSidebarCharges(0,"payment"),this.hideInstallments())};TP24.observe("TP24:PaymentTypeEnabled",loadPaymentType,this)},initPrices:function(){this.selectedOptions.each(TP24.proxy(function(index,value){var element=$(value),hierarchy=element.data("hierarchy").split("-"),group=hierarchy[0],name=hierarchy[1];if(hierarchy.length===3){var subgroup=hierarchy[2];this.prices[group+subgroup+name]=element.data("price")}this.prices[group+name]||(this.prices[group+name]=0),this.prices[group+name]+=element.data("price")},this)),this.totals.each(TP24.proxy(function(index,value){var element=$(value),group=element.attr("id").split("-")[2];this.prices[group]=element.data("price")},this))},initCatcher:function(){TP24.observe(this.event,this.catcher,this)},initThrower:function(){this.options.click(TP24.proxy(function(event){var element=$(event.target),hierarchy=element.data("hierarchy").split("-"),group=hierarchy[0],subgroup=null,name=hierarchy[1];hierarchy.length===3&&(subgroup=hierarchy[2]),this.options.filter(d.template({group:group},this.hierarchyTemplate)).not(element).removeClass(this.selectedClass),element.addClass(this.selectedClass);var price=d.isCheckbox(element)&&!element.is(":checked")?0:element.data("price");TP24.fire(this.event,{group:group,name:name,subgroup:subgroup,price:price})},this))},hideInstallments:function(){this.numberOfInstallments.val(0).change(),$("#installment-select").hide(),$("#installment-details").hide(),$("#installments-checkbox").attr("checked",!1)},creditCardOptionSelected:function(event){var element=$(event.target),option=d.tag(element)==="select"?element.children(":selected"):element;this.creditCardLastSelected=this.creditCards.val(),this.creditCardLocallyChargeable=option.data("locally-chargeable");var subtotal=option.data("card-price")||0;this.updateSidebarCharges(subtotal,"payment"),this.hideInstallments()},installmentOptionSelected:function(){this.installmentLastSelected=parseInt(this.numberOfInstallments.val());var subtotal=this.installmentLastSelected>1?this.installmentChargesFromTotalPriceWithoutInstallmentCharge():0;this.updateSidebarCharges(subtotal,"installments")},updateInstallmentAndPaymentChargesForInstallments:function(charge){var total=0,otherTotal=0;this.installmentCharge=charge,this.shouldSubstractInstallmentCharges=this.installmentCharge>0,total=this.totalPriceWithoutInstallmentCharge+this.installmentCharge,otherTotal=this.otherChargesWithoutInstallmentCharges+this.installmentCharge,this.totalPriceWithoutInstallmentCharge=total-this.installmentCharge,this.otherChargesWithoutInstallmentCharges=otherTotal-this.installmentCharge,this.totalPriceWithoutPaymentCharge=total-this.paymentCharge,this.otherChargesWithoutPaymentCharges=otherTotal-this.paymentCharge,this.totalPrice.total=total,this.prices.other=otherTotal},updateInstallmentAndPaymentChargesForPayment:function(charge){var total=0,otherTotal=0;this.paymentCharge=charge;var additionalCharge=this.shouldSubstractInstallmentCharges?this.installmentCharge:0;this.shouldSubstractInstallmentCharges=!1,total=this.totalPriceWithoutPaymentCharge+this.paymentCharge-additionalCharge,otherTotal=this.otherChargesWithoutPaymentCharges+this.paymentCharge-additionalCharge,this.installmentCharge=0,this.totalPriceWithoutInstallmentCharge=total,this.otherChargesWithoutInstallmentCharges=otherTotal,this.totalPrice.total=total,this.prices.other=otherTotal},updateSidebarCharges:function(charge,type){var productSubtotalElementToUpdate="";type=="payment"?(this.updateInstallmentAndPaymentChargesForPayment(charge),productSubtotalElementToUpdate="#product-subtotal-paymentCharges"):type=="installments"&&(this.updateInstallmentAndPaymentChargesForInstallments(charge),productSubtotalElementToUpdate="#product-subtotal-installmentCharges"),this.totalPrice.element.html(TP24.formatPrice(this.totalPrice.total)),this.subtotals.filter(productSubtotalElementToUpdate).html (TP24.formatPrice(charge));var otherTotalElement=this.totals.filter(d.template({group:"other"},this.totalsTemplate));otherTotalElement.html(TP24.formatPrice(this.prices.other)),this.updatePaymentInfoForNotEuroCurrency()},updatePaymentInfoForNotEuroCurrency:function(){this.creditCardLocallyChargeable==0||!this.creditCardLocallyChargeable==undefined?$("#js-creditcard-locally-chargeable").fadeIn(300):$("#js-creditcard-locally-chargeable").fadeOut(300),$("#payment-credit-card-total").html(TP24.formatPrice(this.totalPrice.total));var totalInEuroSelector=$("#payment-credit-card-total-euro"),conversion=totalInEuroSelector.data("conversion");totalInEuroSelector.html(TP24.formatPrice(this.totalPrice.total/conversion,2,{currency:"\u20ac",round:!1}))},catcher:function(){var data=arguments[1],total=this.totalPrice.total-this.prices[data.group];this.prices[data.group]=this.prices[data.group]-this.prices[data.group+data.name],data.subgroup?(this.prices[data.group+data.name]=this.prices[data.group+data.name]-this.prices[data.group+data.subgroup+data.name],this.prices[data.group+data.subgroup+data.name]=data.price,this.prices[data.group+data.name]=this.prices[data.group+data.name]+this.prices[data.group+data.subgroup+data.name]):this.prices[data.group+data.name]=data.price,this.prices[data.group]=this.prices[data.group]+this.prices[data.group+data.name],this.subtotals.filter(d.template({name:data.name},this.subtotalsTemplate)).html(TP24.formatPrice(this.prices[data.group+data.name]));var totalElement=this.totals.filter(d.template({group:data.group},this.totalsTemplate));totalElement.html(TP24.formatPrice(this.prices[data.group])),total+=this.prices[data.group],this.installmentCharge=this.installmentChargesFromTotalPrice(),this.totalPrice.element.html(TP24.formatPrice(total)),this.totalPrice.total=total,this.totalPriceWithoutPaymentCharge=total-this.paymentCharge,this.totalPriceWithoutInstallmentCharge=total-this.installmentCharge,this.otherChargesWithoutPaymentCharges=this.prices.other- this.paymentCharge,this.otherChargesWithoutInstallmentCharges=this.prices.other-this.installmentCharge;var numberOfInstallments=parseInt(this.installmentLastSelected);numberOfInstallments>1&&(data.name=="sms"||data.name=="servicePackages"||data.name=="voucher")&&(this.shouldSubstractInstallmentCharges=!0,this.installmentCharge=this.installmentChargesFromTotalPrice(),this.numberOfInstallments.val(numberOfInstallments).change()),this.updatePaymentInfoForNotEuroCurrency(),this.checkForZeroPrice("#product-subtotal-"+data.name,this.prices[data.group+data.name])},installmentChargesFromTotalPriceWithoutInstallmentCharge:function(){return Math.round(this.totalPriceWithoutInstallmentCharge*(this.installmentLastSelected+1)*100/300)/100},installmentChargesFromTotalPrice:function(){var numberOfInstallments=parseInt(this.installmentLastSelected);return numberOfInstallments>1?Math.round(100*(Math.round(100*this.totalPrice.total)/100)*(numberOfInstallments+1)/(numberOfInstallments+301))/100:0},triggerChanges:function(){$("#payment-creditCardVendor").trigger("change"),this.numberOfInstallments.val(0).change()},checkForZeroPrice:function(element,price){price==0?$(element).parent().hide():$(element).parent().show(),this.prices.other==0?$("#pricebar-other-charges").hide():$("#pricebar-other-charges").show()}}),FlightFilter=Parent.extend({sliderRanges:{},isTrackerFilterUsed:!1,obUseDepTime:null,ibUseDepTime:null,sliderTarget:null,priceMin:null,priceMax:null,filterPriceMin:null,filterPriceMax:null,visibleMinPrice:null,visibleMaxPrice:null,sliderPrice:null,isRoundTrip:null,reloading:null,submitTimeout:0,form:null,RUN:["initGlobals","initFilters","initSliderPrice","initForm","initLegs"],initGlobals:function(){this.sliderRanges=TP24_Flight_Results_Filter_initData,this.obUseDepTime=$('[name="filter[obUseDepTime]"]'),this.ibUseDepTime=$('[name="filter[ibUseDepTime]"]'),this.sliderTarget=$(".slider-target"),this.filterPriceMin=$("#filter-priceMin"),this.filterPriceMax=$("#filter-priceMax"),this.sliderPrice=$("#slider-price"),this.isRoundTrip=$("#hidden-isRoundtrip").val()=="1",this.reloading=$("#reloading"),this.results=$("#results"),this.form=$("form#filterCriteria"),this.visibleMinPrice=$("#slider-min-visible-price"),this.visibleMaxPrice=$("#slider-max-visible-price"),this.toggleAllPaymentMethods=$("#filter-toggle-paymentMethods"),this.paymentMethods=$("[id^=filter-paymentMethods]"),this.toggleAllAirlines=$("#filter-toggle-airlines"),this.airlines=$("[id^=filter-airlineCodes]")},initFilters:function(){$.each(["ob","ib"],TP24.proxy(function(index,value){this.showTimeSlider(value)},this)),this.obUseDepTime.change(TP24.proxy(function(){this.showTimeSlider("ob")},this)),this.ibUseDepTime.change(TP24.proxy(function(){this.showTimeSlider("ib")},this)),this.sliderTarget.attr("readonly","readonly"),this.priceMin=parseInt(this.filterPriceMin.val(),10),this.priceMax=parseInt(this.filterPriceMax.val(),10),this.visibleMinPrice.children("span").html(TP24.formatPrice(this.priceMin,0)),this.visibleMaxPrice.children("span").html(TP24.formatPrice(this.priceMax,0)),this.toggleAllPaymentMethods.click(TP24.proxy(function(event){$(event.target).is(":checked")?this.paymentMethods.attr("checked",!0):this.paymentMethods.attr("checked",!1)},this)),this.toggleAllAirlines.click(TP24.proxy(function(event){$(event.target).is(":checked")?this.airlines.attr("checked",!0):this.airlines.attr("checked",!1)},this))},initSliderPrice:function(){var config={};config.range=!0,config.min=this.sliderRanges.price.min,config.max=this.sliderRanges.price.max,config.values=[this.priceMin,this.priceMax],config.slide=TP24.proxy(function(event,ui){this.filterPriceMin.val(ui.values[0]),this.filterPriceMax.val(ui.values[1]),this.updateVisiblePrice(TP24.formatPrice(ui.values[0],0),TP24.formatPrice(ui.values[1],0))},this),config.change=TP24.proxy(function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"filterPriceResult"),this.trackerFilterUsed(),this.submitFilter()},this),this.sliderPrice.slider(config)},initLegs:function(){var legTypes=this.isRoundTrip?["ob","ib"]:["ob"],directions=["Dep","Arr"];for(var i in legTypes)for(var j in directions)(function(_this){var id=legTypes[i]+directions[j]+"Time",inputMin="#filter-"+id+"Min",inputMax="#filter-"+id+"Max",minVal=_this.convertHoursToMinutes($(inputMin).val()),maxVal=_this.convertHoursToMinutes($(inputMax).val());$("#slider-min-visible-"+id).html($(inputMin).val()),$("#slider-max-visible-"+id).html($(inputMax).val()),$("#slider-"+id).slider({range:!0,min:_this.convertHoursToMinutes(_this.sliderRanges[id].min),max:_this.convertHoursToMinutes(_this.sliderRanges[id].max),values:[minVal,maxVal],slide:function(event,ui){var minTime=_this.convertMinutesToHours(ui.values[0]),maxTime=_this.convertMinutesToHours(ui.values[1]);$(inputMin).val(minTime),$(inputMax).val(maxTime),$("#slider-min-visible-"+id).html(minTime),$("#slider-max-visible-"+id).html(maxTime)},change:function(){directions==="Dep"?TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"filterDepartureTimeResult"):TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"filterReturnTimeResult"),_this.trackerFilterUsed(),_this.submitFilter()}})})(this)},updateVisiblePrice:function(min,max){this.visibleMinPrice.children("span").html(min),this.visibleMaxPrice.children("span").html(max)},initForm:function(){this.form.find("input[type!=text]").change(TP24.proxy(function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"filterOther"),this.trackerFilterUsed(),this.submitFilter()},this)),this.form.ajaxForm({target:"#results",beforeSubmit:TP24.proxy(function(){this.reloading.css("height",d.px(this.results.height())).fadeIn("fast")},this),success:TP24.proxy(function(){this.reloading.fadeOut("fast")},this)})},showTimeSlider:function(leg){var arrTime=$("#"+leg+"ArrTime"),depTime=$("#"+leg+"DepTime"),checked=this[leg+"UseDepTime"].filter(":checked").val();checked==1?(arrTime.hide(),depTime.show()):(arrTime.show(),depTime.hide())},convertHoursToMinutes:function(value){var hoursAndMinutes=value.split(":");return parseInt (hoursAndMinutes[0],10)*60+parseInt(hoursAndMinutes[1],10)},convertMinutesToHours:function(minutes){var hours=parseInt(minutes/60,10);return minutes-=hours*60,hours=hours<10?"0"+hours:hours,minutes=minutes<10?"0"+minutes:minutes,[hours,minutes].join(":")},submitFilter:function(){clearTimeout(this.submitTimeout),this.submitTimeout=setTimeout(TP24.proxy(function(){this.form.submit()},this),350)},trackerFilterUsed:function(){this.isTrackerFilterUsed||(TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"filterUsedResult"),this.isTrackerFilterUsed=!0)}}),FlightFacebookTracking=Parent.extend({cookieName:"tp24_facebookUserID",RUN:["trackFacebookPost"],trackFacebookPost:function(){var cookieValue=$.cookie(this.cookieName);cookieValue&&cookieValue!="undefined"&&(TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"facebookDiscountPostedSuccess"),$.cookie(this.cookieName,"undefined"))}}),AirportLounges=Parent.extend({selector:"_lounges-form",RUN:["initGlobals","initButtons","initRadios"],buttons:null,radios:{},directions:["outbound","inbound"],buttonSelector:".book-lounge-button",radioSelectorPrefix:'input[name="addons[airportLounges][',radioSelectorSuffix:']"]',checkedButtons:{},checkedButtonClass:"btn-remove",checkedTextDataAttr:"checked-text",uncheckedTextDataAttr:"unchecked-text",initGlobals:function(){this.buttons=this.get(this.buttonSelector),$.each(this.directions,TP24.proxy(function(_,direction){var selector=this.radioSelectorPrefix+direction+this.radioSelectorSuffix;this.radios[direction]=this.get(selector)},this))},initButtons:function(){this.buttons.click(TP24.proxy(function(event){var _this=$(event.target).closest(this.buttonSelector),direction=_this.data("direction"),value=_this.data("value"),radio=this.radios[direction];radio.filter(":checked").val()==value?(radio.filter("[value=0]").click(),this.uncheckButton(_this),this.checkedButtons[direction]=null):(this.uncheckButton(this.checkedButtons[direction]),radio.filter("[value="+value+"]").click(),this.checkButton(_this))},this))},initRadios:function(){$.each(this.radios,TP24.proxy(function(_,radio){var value=radio.filter(":checked").val();if(typeof value!="undefined"&&value!=0){var button=radio.filter(":checked").next().find(this.buttonSelector);this.checkButton(button)}},this))},checkButton:function(button){button.addClass(this.checkedButtonClass),button.html(button.data(this.uncheckedTextDataAttr));var direction=button.data("direction");this.checkedButtons[direction]=button},uncheckButton:function(button){button&&(button.removeClass(this.checkedButtonClass),button.html(button.data(this.checkedTextDataAttr)))}}),OfferCountdown=Parent.extend({RUN:["initSwf"],initSwf:function(){var flashvars={},params={};params.wmode="transparent",flashvars.configPath="/offers-flights.xml",swfobject.embedSWF("/swf/counter.swf","offers_flash","320","80","9.0.124",null,flashvars,params)}}),PolishOfferCountdown=Parent.extend({RUN:["initSwf"],initSwf:function(){var flashvars={},params={};params.wmode="transparent",flashvars.configPath="/offers-flights-polish.xml",swfobject.embedSWF("/swf/counter.swf","offers_flash","320","80","9.0.124",null,flashvars,params)}}),FlightResults=Parent.extend({RUN:["initResults"],initResults:function(){var _flightResultsObject=this;$(".select-flight").live("click",function(event){var _this=$(this);_this.parents(".leg").find(".selected").removeClass("selected"),_this.parents("tr").addClass("selected"),_this.parents("div.leg").find("tr.segment").each(function(){$(this).hasClass("disabled")&&$(this).removeClass("disabled")}),_flightResultsObject.checkIfConnectionsHaveMinimumTimeDifference(_this)}),this.trackPriceRadarConsistency()},trackPriceRadarConsistency:function(){if(window.trackPriceRadarData!==undefined){var trackPriceRadarData=$.parseJSON(window.trackPriceRadarData);TP24.track("Flights / Price Radar","Track Consistency ",trackPriceRadarData.label,trackPriceRadarData.percentage)}},checkIfConnectionsHaveMinimumTimeDifference:function(_clickedObject){var _this=this,inBoundTime="",outBoundTime="",selected={};_clickedObject.parents("div.leg").hasClass("inbound")?(selected=_clickedObject.parents(".fare").find(".outbound").find("tr.selected"),inBoundTime=_clickedObject.parents("tr.segment").find("td.depart").data("timestamp"),_clickedObject.parents(".fare").find(".outbound").find("tr.segment").each(function(){outBoundTime=$(this).find("td.arrive").data("timestamp"),_this.fadeElementsWithMinimumTimeDifference(_this,this,outBoundTime,inBoundTime)}),_this.checkIfSelectedElementHasFaded(_clickedObject,selected,"outbound")):(selected=_clickedObject.parents(".fare").find(".inbound").find("tr.selected"),outBoundTime=_clickedObject.parents("tr.segment").find("td.arrive").data("timestamp"),_clickedObject.parents(".fare").find(".inbound").find("tr.segment").each(function(){inBoundTime=$(this).find("td.depart").data("timestamp"),_this.fadeElementsWithMinimumTimeDifference(_this,this,outBoundTime,inBoundTime)}),_this.checkIfSelectedElementHasFaded(_clickedObject,selected,"inbound"))},getMinuteDifference:function(outBoundTime,inBoundTime){return inBoundTime/60-outBoundTime/60},fadeElementsWithMinimumTimeDifference:function(_flightResultsObject,_currentObject,_outBoundTime,_inBoundTime){_flightResultsObject.getMinuteDifference(_outBoundTime,_inBoundTime)<180?$(_currentObject).addClass("disabled"):$(_currentObject).removeClass("disabled")},checkIfSelectedElementHasFaded:function(_clickedObject,_selectedObject,_boundType){_selectedObject.hasClass("disabled")&&$(_clickedObject.parents(".fare").find("."+_boundType).find("tr.segment").get().reverse()).each(function(){$(this).hasClass("disabled")||($(this).parents(".leg").find(".selected").removeClass("selected"),$(this).addClass("selected"),$(this).find("input").prop("checked",!0))})}}),FlightCityLandingPage=Parent.extend({RUN:["initConfig","initTable"],selector:"_offers",config:{aaSorting:[[4,"asc"]],sPaginationType:"full_numbers",bLengthChange:!1,bFilter:!0,bSort:!0,bInfo:!1,iDisplayLength:25,bAutoWidth:!0,oLanguage:{}},initConfig:function(){this.config.oLanguage.sUrl="/js/plugins/translations/"+TP24.getLocale("LANG")+".txt"},initTable:function(){this.root&&this.root.dataTable(this.config)}}),FlightsUnder100=Parent.extend({RUN:["initGlobals","initAjaxForm","initTicker","initTracking"],flightsUnder100:null,loadingElement:null,form:null,initGlobals:function(){this.flightsUnder100=".flights-under-100",this.loadingElement=$("#cheap-flight-results"),this.form=$("#flight-offers form")},initAjaxForm:function(){this.form.ajaxForm({target:".airports-wrapper",beforeSubmit:TP24.proxy(function(){this.beforeSubmit()},this),success:TP24.proxy(function(){this.afterSubmit()},this)}),this.form.find("select").change(TP24.proxy(function(){this.form.submit()},this))},initTicker:function(){$(this.flightsUnder100).vTicker({speed:700,pause:3500,animation:"fade",mousePause:!0,showItems:13})},initTracking:function(){$("a.flights-under-100-results").live("click",function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FLIGHT,"clickFlightsUnder100")})},beforeSubmit:function(){this.loadingElement.fadeOut("fast")},afterSubmit:function(){this.loadingElement.fadeIn("slow"),this.initTicker()}}),FlightCalendarOffer=Parent.extend({RUN:["initGlobals","initDates","initOutboundDatepicker","initInboundDatepicker","initForm"],outboundCalendarOffer:null,inboundCalendarOffer:null,outboundDates:null,inboundDates:null,outboundDateInput:null,inboundDateInput:null,obMinDate:null,ibMinDate:null,loadingPrice:null,loadingCalendar:null,form:null,counter:null,datepickerDefaults:{changeMonth:!1,defaultDate:null,buttonImage:"",duration:"",maxDate:"1y",numberOfMonths:1},initGlobals:function(){this.form=$("#calendarOffer"),this.outboundCalendarOffer=$("#outboundCalendarOffer"),this.inboundCalendarOffer=$("#inboundCalendarOffer"),this.outboundDateInput=$("input[name=obDate]"),this.inboundDateInput=$("input[name=ibDate]"),this.loadingPrice=$(".offer-price"),this.loadingCalendar=$(".date-picker-wrapper *"),this.datepickerDefaults.dayNamesMin=$.datepicker.regional [TP24.CONFIG.LOCALE.LANG].dayNamesShort,FlightCalendarOffer_datesWithFlights.inboundDates.length===0&&FlightCalendarOffer_datesWithFlights.outboundDates.length!=0&&(this.datepickerDefaults.numberOfMonths=2),this.obMinDate=new Date},initDates:function(){var outboundDateStrings=FlightCalendarOffer_datesWithFlights.outboundDates,inboundDateStrings=FlightCalendarOffer_datesWithFlights.inboundDates;this.minimumStay=FlightCalendarOffer_minimumStay,this.outboundDates=[],this.inboundDates=[];if(outboundDateStrings!=null){for(var i in outboundDateStrings)this.outboundDates[i]=this.createDateFromString(outboundDateStrings[i]);if(inboundDateStrings.length!==0)for(var i in inboundDateStrings)this.inboundDates[i]=this.createDateFromString(inboundDateStrings[i])}this.setObMinDate(),this.setIbMinDate()},initOutboundDatepicker:function(){var outboundCalendarOfferOptions=$.extend({beforeShowDay:this.buildGetDayStyleForFunction(this.outboundDates),onSelect:TP24.proxy(function(){var outboundDate=this.outboundCalendarOffer.datepicker("getDate");this.obMinDate=outboundDate,this.setDateInputValue(this.outboundCalendarOffer,this.outboundDateInput),this.setIbMinDate(),this.inboundCalendarOffer.length>0&&this.setDateInputValue(this.inboundCalendarOffer,this.inboundDateInput)},this)},this.datepickerDefaults);this.outboundCalendarOffer.datepicker(outboundCalendarOfferOptions),this.outboundCalendarOffer.datepicker("setDate",this.obMinDate),$("#outboundCalendarOffer .ui-datepicker-title").prepend(''+TP24.t("Departure")+": ")},initInboundDatepicker:function(){var inboundCalendarOfferOptions=$.extend({beforeShowDay:this.buildGetDayStyleForFunction(this.inboundDates),onSelect:TP24.proxy(function(){this.setDateInputValue(this.inboundCalendarOffer,this.inboundDateInput)},this)},this.datepickerDefaults);this.inboundCalendarOffer.datepicker(inboundCalendarOfferOptions),this.inboundCalendarOffer.datepicker("setDate",this.ibMinDate),$("#inboundCalendarOffer .ui-datepicker-title").prepend(''+TP24.t("Return")+": ")},initForm:function(){this.form.ajaxForm({target:"#flight-offers-show",beforeSubmit:TP24.proxy(function(){this.loadingPrice.animate({opacity:".6"},200),this.loadingCalendar.animate({opacity:".4"},200)},this),success:TP24.proxy(function(){this.init(),this.initCounter()},this)}),this.setDateInputValue(this.outboundCalendarOffer,this.outboundDateInput),this.setDateInputValue(this.inboundCalendarOffer,this.inboundDateInput)},initCounter:function(){this.counter=$("#counter"),this.counter.length>0&&this.counter.countdown({image:"/img/digits-small.png",startTime:typeof time_countdown!="undefined"?time_countdown:"00:00:00:00"})},buildGetDayStyleForFunction:function(legDates){return TP24.proxy(function(date){return this.getDayStyleFor(legDates,date)},this)},getDayStyleFor:function(legDates,day){for(var i in legDates)if(day.getTime()==legDates[i].getTime())return[!0,"hasFlight"];return[!1]},setObMinDate:function(){var now=new Date,today=new Date(now.getFullYear(),now.getMonth(),now.getDate());for(var i in this.outboundDates)if(this.outboundDates[i].getTime()>=today.getTime()){this.outboundCalendarOffer.datepicker("option","minDate",this.outboundDates[i]),this.obMinDate=this.outboundDates[i];break}},setIbMinDate:function(){var ibMinStay=new Date(this.obMinDate.getFullYear(),this.obMinDate.getMonth(),this.obMinDate.getDate());ibMinStay.setDate(ibMinStay.getDate()+this.minimumStay);for(var i in this.inboundDates)if(this.inboundDates[i].getTime()>=ibMinStay.getTime()){this.inboundCalendarOffer.datepicker("option","minDate",this.inboundDates[i]),this.ibMinDate=this.inboundDates[i];break}},setDateInputValue:function(calendarDatepicker,input){var date=calendarDatepicker.datepicker("getDate"),inputValue=this.formatDate(calendarDatepicker,date);input.val(inputValue)},formatDate:function(calendarDatepicker,date){var dateFormat=calendarDatepicker.datepicker("option","dateFormat");return $.datepicker.formatDate(dateFormat,date)},createDateFromString:function(dateString){var dateValues=dateString.split(",");return new Date(dateValues[0],dateValues[1]-1,dateValues[2])}}),FlightCalendarOfferWidget=Parent.extend({RUN:["initGlobals","initForm","onSelect"],loadingOffers:null,form:null,select:null,options:null,initGlobals:function(){this.form=$("#calendarOffer"),this.select=$("#calendarOfferSelect"),this.options={target:"#flight-offers-widget"}},initForm:function(){var that=this;this.form.ajaxForm({target:"#flight-offers-widget",success:function(data){$("#flight-offers-widget").fadeOut(300,function(){$("#flight-offers-widget").html(data),$("#flight-offers-widget").fadeIn(300)})}})},onSelect:function(){var that=this;this.select.change(function(){that.form.submit()})}}),FlightAccessories=Parent.extend({RUN:["initGlobals"],initGlobals:function(){this.select=$('select[id^="addons-accessories-"]'),this.onSelect()},onSelect:function(){this.select.change(function(event){var priceElement=$("#"+event.target.id+"-price");priceElement.fadeOut(300,function(){priceElement.html($(event.target).val()+" x "),priceElement.fadeIn(300)});var removeMessageElement=$("#"+event.target.id+"-message-remove"),successMessageElement=$("#"+event.target.id+"-message");successMessageElement.fadeOut(300,function(){removeMessageElement.fadeOut(300,function(){$(event.target).val()==0?(removeMessageElement.fadeIn(300),removeMessageElement.removeClass("hidden"),successMessageElement.addClass("hidden")):(successMessageElement.fadeIn(300),removeMessageElement.addClass("hidden"),successMessageElement.removeClass("hidden"))})})})}}),FlightInstallments=Parent.extend({RUN:["initGlobals"],initGlobals:function(){this.installmentsValidationMessage=$("#installments-validation-message"),this.installmentsErrorMessage=$("#installments-booking-expiry-error-message"),this.installmentCheck=$("#installments-checkbox"),this.installmentSelect=$("#installment-select"),this.installmentDetails=$("#installment-details"),this.creditCardNumber=$("#payment-creditCardNumber"),this.numberOfInstallments=$("#payment-numberOfInstallments"),this.onChange(),this.onSelect()},hideInstallments:function(){this.installmentSelect.hide(),this.installmentDetails.hide(),this.numberOfInstallments.val(0).change()},getInstallmentPrice:function(){return Math.round(100*window.FlightPriceBar.prototype.totalPrice.total/this.numberOfInstallments.val())/100},onChange:function(){this.installmentCheck.is(":checked")&&this.installmentSelect.show(),this.creditCardNumber.on("keydown",TP24.proxy(function(event){this.hideInstallments(),this.installmentCheck.attr("checked",!1),this.installmentsValidationMessage.hide()},this)),this.installmentCheck.change(TP24.proxy(function(event){this.installmentCheck.is(":checked")?$.ajax({type:"POST",data:{creditCardNumber:this.creditCardNumber.val(),amount:window.FlightPriceBar.prototype.totalPrice.total},url:window.location.pathname+"/installments-credit-card-validate?bookingID="+urlParams().bookingID+"&format=json",dataType:"json",beforeSend:TP24.proxy(function(){this.creditCardNumber.removeClass("error")},this),success:TP24.proxy(function(json){json.status!="creditCardSupported"?(this.installmentsValidationMessage.html(json.output),this.installmentCheck.attr("checked",!1),this.installmentSelect.hide(),this.installmentDetails.hide(),(json.status=="emptyCreditCardNumber"||json.status=="notFullCreditCardNumber")&&this.creditCardNumber.addClass("error"),this.installmentsValidationMessage.show()):(this.installmentsValidationMessage.hide(),this.installmentSelect.fadeIn(200),this.installmentDetails.fadeIn(200)),this.numberOfInstallments.val(0).change()},this),error:TP24.proxy(function(){window.location.href=window.location.origin,this.installmentsErrorMessage.show(),this.installmentsValidationMessage.hide()},this)}):this.hideInstallments()},this))},onSelect:function(){this.installmentSelect.change(TP24.proxy(function(event){var installmentQuantityElement=$("#installments-quantity"),installmentPriceElement=$("#installments-price"),installment=this.getInstallmentPrice();installmentQuantityElement.html(this.numberOfInstallments.val()+" x "),installmentPriceElement.html(TP24.formatPrice(installment)+" = "+$("#total-price").html()),this.numberOfInstallments.val()?this.installmentDetails.fadeIn(200):(this.numberOfInstallments.find("option").first().attr("selected","selected"),this.installmentDetails.hide())},this))}}),FlightAncillaryServices=Parent.extend({RUN:["initGlobals"],initGlobals:function(){var options=$.parseJSON(ancillaryServices);this.categoryTab=$('li[id^="verticalTab"]'),this.selectType=$('select[id^="addons-ancillaryServicesType"]'),this.addToCartButton=$('button[id^="addons-ancillaryServicesAddToCart"]'),this.removeFromCartButton=$('a[id^="addons-ancillaryServicesRemoveFromCart"]'),this.onLoad(),this.onClick(options),this.onSelect(options)},onClick:function(options){this.categoryTab.click(function(){$($("#"+this.id+" a").attr("href")).hide(),$($("#"+this.id+" a").attr("href")).fadeIn("slow")}),this.addToCartButton.click(TP24.proxy(function(event){var button=$("#"+event.delegateTarget.id);button.hide(),button.removeClass("active");var fareIndex=button.data("fareindex"),legIndex=button.data("legindex"),segmentIndex=button.data("segmentindex"),route=button.data("route"),category=button.data("category"),selectType=$("#addons-ancillaryServicesType"+category+"-"+fareIndex+legIndex+segmentIndex),selectPassenger=$("#addons-ancillaryServicesPassenger"+category+"-"+fareIndex+legIndex+segmentIndex),flightSsrID=$("#addons-ancillaryServicesType"+category+"-"+fareIndex+legIndex+segmentIndex+" option[value='"+selectType.val()+"']").attr("data-ssrid"),passengerIndex=$("#addons-ancillaryServicesPassenger"+category+"-"+fareIndex+legIndex+segmentIndex).val(),selectedPassengerName=$("#addons-ancillaryServicesPassenger"+category+"-"+fareIndex+legIndex+segmentIndex+" option[value='"+selectPassenger.val()+"']").text(),optionIndex=this.getOptionIndex(options,fareIndex,legIndex,segmentIndex,passengerIndex,flightSsrID),selectedOptionIndex=options[optionIndex].index,selectedOptionDescription=options[optionIndex].description,price=options[optionIndex].price,formattedPrice=options[optionIndex].formattedPrice;$("#addons-cart-remove-success").remove();var jsonData={passengerName:selectedPassengerName,selectedOptionDescription:selectedOptionDescription,passengerIndex:passengerIndex,fareIndex:fareIndex,legIndex:legIndex,segmentIndex:segmentIndex,optionIndex:optionIndex,price:price,formattedPrice:formattedPrice,route:route,category:category};$.ajax({type:"POST",data:{optionIndex:selectedOptionIndex},url:window.location.pathname+"/ancillary-services-add-to-cart?bookingID="+urlParams().bookingID+"&format=json",dataType:"json",success:TP24.proxy(function(){this.appendToCart(category,jsonData),selectType.val("default"),$("#"+selectType.attr("id")).trigger("change"),$("#ancillaryServiceOption-"+passengerIndex+fareIndex+legIndex+segmentIndex+selectedOptionIndex).trigger("updatePricebarAdd",["#ancillaryServiceOption-"+passengerIndex+fareIndex+ legIndex+segmentIndex+selectedOptionIndex])},this),error:TP24.proxy(function(xhr,status,error){window.location.href=window.location.origin},this)})},this)),this.removeFromCartButton.live("click",function(){$("#"+this.id).hide();var passengerIndex=$(this).data("passengerindex"),fareIndex=$(this).data("fareindex"),legIndex=$(this).data("legindex"),segmentIndex=$(this).data("segmentindex"),optionIndex=$(this).data("optionindex"),category=$(this).data("category"),selectType=$("#addons-ancillaryServicesType"+category+"-"+fareIndex+legIndex+segmentIndex),option=$("#ancillaryServiceOption-"+passengerIndex+fareIndex+legIndex+segmentIndex+optionIndex);$("#addons-cart-remove-success").remove(),$("#addons-cart-"+category+"-update-message").show(),$("#addons-ancillaryServicesAddToCart-"+category+"-"+fareIndex+legIndex+segmentIndex).hide(),$.ajax({type:"POST",data:{optionIndex:optionIndex},url:window.location.pathname+"/ancillary-services-remove-from-cart?bookingID="+urlParams().bookingID+"&format=json",dataType:"json",success:function(json){$("#"+option.attr("id")).trigger("updatePricebarRemove",["#ancillaryServiceOption-"+passengerIndex+fareIndex+legIndex+segmentIndex+optionIndex]),$("#"+option.attr("id")).remove(),$("#addons-cart-"+category+"-update-message").append('
        '+json.message+"
        "),selectType.val("default"),$("#"+selectType.attr("id")).trigger("change"),$("#addons-cart-"+category+" tr[id^=ancillaryServiceOption]").length==0&&$("#addons-cart-"+category).hide()},error:function(xhr,status,error){window.location.href=window.location.origin}})})},onSelect:function(options){this.selectType.change(TP24.proxy(function(event){var selectBox=$("#"+event.delegateTarget.id),categoryNeedsDimensions=selectBox.data("categoryneedsdimensions"),fareIndex=selectBox.data("fareindex"),legIndex=selectBox.data("legindex"),segmentIndex=selectBox.data("segmentindex"),category=selectBox.data("category"),multiOptionsAllowed=selectBox.data("multioptionsallowed"),multiOptionsOfSameSsrAllowed=selectBox.data("multioptionsofsamessrallowed"),categorySelectedTranslation=selectBox.data("categoryselectedtranslation"),passengerOptions=selectBox.data("passengeroptions"),dimensionsInfo=$("#dimensions-info-"+category+"-"+fareIndex+legIndex+segmentIndex),addToCartButton=$("#addons-ancillaryServicesAddToCart-"+category+"-"+fareIndex+legIndex+segmentIndex),passengerSelectbox=$("#addons-ancillaryServicesPassenger"+category+"-"+fareIndex+legIndex+segmentIndex);$("#ancillaryServiceOptionDimensions-"+fareIndex+legIndex+segmentIndex).remove(),dimensionsInfo.hide();if($("#"+selectBox.attr("id")).val()=="default")addToCartButton.hide(),(multiOptionsAllowed!=1||multiOptionsOfSameSsrAllowed!=1)&&this.resetPassengerSelectBox(passengerSelectbox,passengerOptions);else{addToCartButton.show();var flightSsrID=$("#"+selectBox.attr("id")+" option[value='"+$("#"+selectBox.attr("id")).val()+"']").attr("data-ssrid");(multiOptionsAllowed!=1||multiOptionsOfSameSsrAllowed!=1)&&this.updatePassengerSelectBoxAccordingToCart(options,passengerSelectbox,passengerOptions,fareIndex,legIndex,segmentIndex,flightSsrID,categorySelectedTranslation,category,multiOptionsAllowed,multiOptionsOfSameSsrAllowed),categoryNeedsDimensions==1&&this.createDimensionsInfoContent(options,fareIndex,legIndex,segmentIndex,flightSsrID,category,dimensionsInfo)}($("#"+selectBox.attr("id")).val()=="noOptions"||passengerSelectbox.val()=="noOptions")&&addToCartButton.hide()},this))},onLoad:function(){this.loadSelectedOptions=$(TP24.proxy(function(){var optionsToLoad=$.parseJSON(selectedOptions);$.each(optionsToLoad,TP24.proxy(function(index,option){var jsonData={passengerName:option.passengerName,selectedOptionDescription:option.description,passengerIndex:option.passengerIndex,fareIndex:option.fareIndex,legIndex:option.legIndex,segmentIndex:option.segmentIndex,optionIndex:option.index,price:option.price,formattedPrice:option.formattedPrice,route:option.route,category:option.category};this.appendToCart (option.category,jsonData)},this)),$("tr[id^=ancillaryServiceOption]").trigger("initPricebar")},this))},getOptionIndex:function(options,fareIndex,legIndex,segmentIndex,passengerIndex,flightSsrID){for(var i=0;i'+categorySelectedTranslation+"")},createDimensionsInfoContent:function(options,fareIndex,legIndex,segmentIndex,flightSsrID,category,dimensionsInfo){var passengerIndex=$("#addons-ancillaryServicesPassenger"+category+"-"+fareIndex+legIndex+segmentIndex).val(),optionIndex=this.getOptionIndex (options,fareIndex,legIndex,segmentIndex,passengerIndex,flightSsrID);if(optionIndex!=-1)var weightUnit=options[optionIndex].weightUnit,dimensionsUnit=options[optionIndex].dimensionsUnit,maxWeight=options[optionIndex].maxWeight,maxLength=options[optionIndex].maxLength,maxHeight=options[optionIndex].maxHeight,maxWidth=options[optionIndex].maxWidth;var jsonData=new Array;jsonData.fareIndex=fareIndex,jsonData.legIndex=legIndex,jsonData.segmentIndex=segmentIndex,jsonData.maxWeight=maxWeight+" "+weightUnit,maxWeight>0&&maxLength>0&&maxHeight>0&&maxWidth>0&&weightUnit&&dimensionsUnit?(jsonData.maxDimensions=maxLength+" "+dimensionsUnit+" x "+maxHeight+" "+dimensionsUnit+" x "+maxWidth+" "+dimensionsUnit,$("#"+dimensionsInfo.attr("id")+" table tbody").append(_.template($("#ancillary-services-weight-dimensions-template").html(),jsonData)),$("#dimensions-"+category+"-"+fareIndex+legIndex+segmentIndex).show(),dimensionsInfo.fadeIn("slow")):weightUnit&&maxWeight>0&&maxLength==0&&maxHeight==0&&maxWidth==0&&($("#"+dimensionsInfo.attr("id")+" table tbody tr").append(_.template($("#ancillary-services-weight-template").html(),jsonData)),$("#dimensions-"+category+"-"+fareIndex+legIndex+segmentIndex).hide(),dimensionsInfo.fadeIn("slow"))},appendToCart:function(category,data){$("#addons-cart-"+category).show(),$("#addons-cart-"+category+" table tbody").append(_.template($("#ancillary-services-cart-template").html(),data))}}),FlightBaggageAncillaryServices=Parent.extend({RUN:["initGlobals"],initGlobals:function(){var isNonMixedLowCostRoundtrip=$.parseJSON(isNonMixedLowCostRoundtrip);this.selectBaggage=$('select[id^="addons-baggageAncillaryServices"]'),this.totalPrice=$("#addons-baggageAncillaryServicesTotalPrice"),this.totalPriceText=$("#"+this.totalPrice.attr("id")).text(),$("#addons-baggageAncillaryServicesTotalPrice").attr("data-price",0),this.onSelect(),this.selectBaggage.trigger("change")},onSelect:function(){this.selectBaggage.change(TP24.proxy(function(event){selectBox=$("#"+event.delegateTarget.id),this.updatePrice(selectBox),ancillaryIdentifier=event.delegateTarget.id.substr(event.delegateTarget.id.length-3),fareIndex=ancillaryIdentifier.charAt(0),legIndex=ancillaryIdentifier.charAt(1),passengerIndex=ancillaryIdentifier.charAt(2),isNonMixedLowCostRoundtrip=="true"&&(selectedOptionIndex=$("#"+selectBox.attr("id")).prop("selectedIndex"),complementaryLeg=legIndex==0?1:0,complementaryAncillaryIdentifier=fareIndex+complementaryLeg+passengerIndex,$("#addons-baggageAncillaryServices-"+complementaryAncillaryIdentifier+" option:eq("+selectedOptionIndex+")").attr("selected","selected"),selectBox=$("#addons-baggageAncillaryServices-"+complementaryAncillaryIdentifier),price=parseFloat($("#"+selectBox.attr("id")+" option[value='"+$("#"+selectBox.attr("id")).val()+"']").attr("data-price")),this.updatePrice(selectBox),price>0&&!$("#addons-baggageAncillaryServices-"+fareIndex+legIndex+passengerIndex).attr("disabled")?($("#"+selectBox.attr("id")).attr("disabled",!0),$("#"+selectBox.attr("id")).append('')):($("#"+selectBox.attr("id")).removeAttr("disabled"),$("#addons-baggageAncillaries-hidden"+complementaryAncillaryIdentifier).remove()))},this))},updatePrice:function(selectBox){selectedOption=$("#"+selectBox.attr("id")+" option[value='"+$("#"+selectBox.attr("id")).val()+"']"),priceElement=$("#addons-baggageAncillaryServicesPrice-"+selectBox.attr("id").split("-")[2]),priceElement.html(TP24.formatPrice(selectedOption.attr("data-price"))),oldPrice=$("#"+priceElement.attr("id")).attr("data-price")?parseFloat($("#"+priceElement.attr("id")).attr("data-price")):0,newPrice=parseFloat(selectedOption.attr("data-price")),oldTotalPrice=parseFloat($("#"+this.totalPrice.attr("id")).attr("data-price")),newTotalPrice=oldTotalPrice- oldPrice+newPrice,$("#"+priceElement.attr("id")).attr("data-price",newPrice),$("#"+this.totalPrice.attr("id")).attr("data-price",newTotalPrice),$("#"+this.totalPrice.attr("id")).html(this.totalPriceText+" "+TP24.formatPrice(newTotalPrice)),$("#"+this.totalPrice.attr("id")).trigger("updateBaggagePrice",[oldTotalPrice,newTotalPrice])}}),FlightIdentification=Parent.extend({RUN:["initGlobals"],formOfIdentificationSelectBoxes:$('[class^="formOfIdentificationSelectBox-"]'),initGlobals:function(){this.onChange()},onChange:function(){this.formOfIdentificationSelectBoxes.on("change",function(){var $this=$(this);$passengerIndex=$this.attr("name").substr(11,1),identityFields=".identityField-"+$passengerIndex,console.log("identityFields = "+identityFields),passportFields=".passportField-"+$passengerIndex,console.log("passportFields = "+passportFields),console.log("this.val = "+$this.val()),$this.val()=="passport"?(console.log("I am inside passport fields show condition"),$(identityFields).hide(),$(passportFields).show()):$this.val()=="identity"&&(console.log("I am inside identity fields show condition"),$(passportFields).hide(),$(identityFields).show())})}}),FlightNotificationTracking=Parent.extend({RUN:["sendTrackEvents"],sendTrackEvents:function(){$(".btn-primary").click(TP24.proxy(this.trackEvents,this))},trackEvents:function(){var version=$("#notification-arrival").attr("arrVersion");version=version?version:"1";var notificationPurchase=$("#addons-notification-1").is(":checked"),notificationArrivalPurchase=$("#notification-arrival").is(":checked");TP24.track("Flights / Payment","Notification Version",version),version=="1"?TP24.track("Flights / Payment","No arrival Notification sold",notificationPurchase):version=="2"?(TP24.track("Flights / Payment","Arrival free Notification sold",notificationPurchase),TP24.track("Flights / Payment","Arrival free Arrival Sold",notificationArrivalPurchase)):version=="3"&&(TP24.track("Flights / Payment","Arrival paid Notification sold",notificationPurchase),TP24.track("Flights / Payment","Arrival paid Arrival Sold",notificationArrivalPurchase))}});namespace.FlightSearchQuery=FlightSearchQuery,namespace.FlightPriceBar=FlightPriceBar,namespace.FlightFilter=FlightFilter,namespace.FlightFacebookTracking=FlightFacebookTracking,namespace.AirportLounges=AirportLounges,namespace.OfferCountdown=OfferCountdown,namespace.PolishOfferCountdown=PolishOfferCountdown,namespace.FlightResults=FlightResults,namespace.FlightCityLandingPage=FlightCityLandingPage,namespace.FlightsUnder100=FlightsUnder100,namespace.FlightCalendarOffer=FlightCalendarOffer,namespace.FlightCalendarOfferWidget=FlightCalendarOfferWidget,namespace.FlightAccessories=FlightAccessories,namespace.FlightInstallments=FlightInstallments,namespace.FlightAncillaryServices=FlightAncillaryServices,namespace.FlightBaggageAncillaryServices=FlightBaggageAncillaryServices,namespace.FlightIdentification=FlightIdentification,namespace.FlightNotificationTracking=FlightNotificationTracking,function(){var hasProp={}.hasOwnProperty,key;for(key in namespace)hasProp.call(namespace,key)&&(global[key]=namespace[key])}(),typeof define=="function"&&define.amd&&define("tp24-flight",[],function(){return namespace})})(function(){if(typeof exports=="object")return module.exports;if(typeof window!="undefined")return window}());(function(global,undefined){var namespace={},FerrySearchQuery=Parent.extend({list:null,obInput:null,ibInput:null,obDate:null,ibDate:null,ibTime:null,roundTrip:null,toBeHiddenByRadio:null,moreOptions:null,airports:null,depList:null,arrList:null,defaultCountriesPerContinent:null,source:null,ports:null,selector:"_ferry-search",RUN:["initGlobals","initAutocomplete","initCalendar","initRoundTrip","passengersValidation","calendarErrorProof","sendTrackEvents"],initGlobals:function(){_this=this,this.obInput=this.get("#dep"),this.ibInput=this.get("#arr"),this.obDate=this.get("#ferry-obDate"),this.ibDate=this.get("#ferry-ibDate"),this.roundTrip=this.get("input[type=radio]"),this.toBeHiddenByRadio=this.get(".round-trip-hidden"),this.ibTime=this.get("#ibTime").parent(),this.moreOptions=this.get("#ferry-form-more-options"),this.depList=this.get("#dep-list"),this.arrList=this.get("#arr-list"),this.adults=this.get("#passengersAdult"),this.children=this.get("#passengersChild"),this.infants=this.get("#passengersInfant"),this.defaultCountriesPerContinent=TP24.CONFIG.LOCALE.DEFAULT_COUNTRIES_PER_CONTINENT},initAutocomplete:function(){this.list=TP24_Ferry_Ports_File,TP24.include(this.list,TP24.proxy(function(event){this.ports=TP24.SUPPORT.workers?event.data.TP24_Ferry_Ports:window.TP24_Ferry_Ports,$.each(TP24.CONFIG.LOCALE.AUTOCOMPLETION_LANGS,TP24.proxy(function(index,locale){locale in this.ports&&(TP24.autocompleter(this.obInput,this.ports[locale],{matchContains:!0,searchCodes:!1}),TP24.autocompleter(this.ibInput,this.ports[locale],{matchContains:!0,searchCodes:!1}))},this))},this))},getAirportTextByAirportCode:function(airportCode){},initCalendar:function(){var beforeShow=function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.FERRY,"openCalenderSearch")};TP24.maskCalendar(this.obDate,this.ibDate,{beforeShow:beforeShow})},initRoundTrip:function(){this.roundTrip.change(TP24.proxy(this.handleRoundTrip,this)),TP24.observe(TP24.CONFIG.HIDEABLE.EVENT+"ferry-form-more-options",this.handleIbTime,this),this.handleRoundTrip ()},handleRoundTrip:function(){this.roundTrip.eq(0).is(":checked")?this.toBeHiddenByRadio.show():this.toBeHiddenByRadio.hide(),this.handleIbTime(undefined,this.moreOptions.attr(TP24.CONFIG.HIDEABLE.STATE_ATTR))},handleIbTime:function(){this.roundTrip.eq(0).is(":checked")&&arguments[1]===TP24.CONFIG.HIDEABLE.ENABLED_STATE?this.ibTime.show():this.ibTime.hide()},addOptions:function(element,number,isAdult){var previous=element.val();element.empty();for(var i=isAdult||0;i<=number;i++){var option=$("").html(i).val(i);element.append(option)}element.children("option").size()>=previous-1&&element.val(previous)},passengersValidation:function(){this.adults.change(TP24.proxy(function(event){var select=$(event.target).closest("select");this.addOptions(this.infants,select.val()),this.addOptions(this.children,9-select.val())},this)),this.children.change(TP24.proxy(function(event){var select=$(event.target).closest("select"),option,i;this.addOptions(this.adults,9-select.val(),1),this.addOptions (this.infants,9-select.val())},this)),this.adults.add(this.children).change()},calendarErrorProof:function(){var _this=this,tripType=$("input[type='radio'][name='isRoundTrip']:checked").val();if(tripType==1){var selectedInboundDate=$("#ferry-ibDate").val(),inboundDate=_this.getDayMonthYear(selectedInboundDate);$("#outbound-days").children().each(function(){var dayMonth=$(this).find(".dayMonth").text(),year=$(this).find(".year").text(),outDate=dayMonth+"/"+year,outboundDate=_this.getDayMonthYear(outDate);if(outboundDate.year>inboundDate.year||outboundDate["year"]==inboundDate["year"]&&outboundDate.month>inboundDate.month||outboundDate["year"]==inboundDate["year"]&&outboundDate["month"]==inboundDate["month"]&&outboundDate.day>inboundDate.day)$(this).find("a").off("click"),$(this).find("a").removeAttr("href"),$(this).find("a").css("color","#b4b4b4")})}},getDayMonthYear:function(date){var date=$.trim(date),dayMonthYear=date.split("/"),year=parseInt(dayMonthYear.pop()),month=parseInt(dayMonthYear.pop()),day=parseInt(dayMonthYear.pop());return data={year:year,month:month,day:day},data},sendTrackEvents:function(){$(".btn-primary").click(TP24.proxy(this.trackEvents,this))},trackEvents:function(){var departure=$("#dep").val(),arrival=$("#arr").val(),obDate=$("#ferry-obDate").val(),ibDate=$("#ferry-ibDate").val(),passengersNumber=$("#passengersAdult").val(),vehiclesNumber=$("#vehicles").val();TP24.track("Ferries / Homepage","Select Ports",departure+"--"+arrival,TP24.time()),TP24.track("Ferries / Homepage","Type of trip",this.typeOfTrip(),TP24.time()),TP24.track("Ferries / Homepage","Days to trip",this.getDaysToTrip(obDate)),TP24.track("Ferries / Homepage","Trip duration",this.getTripDuration(ibDate,obDate)),TP24.track("Ferries / Homepage","Passenger number",passengersNumber),TP24.track("Ferries / Homepage","Vehicles number",vehiclesNumber)},typeOfTrip:function(){var isRoundTrip=$("#isRoundTrip-1").is(":checked");return isRoundTrip?"RoundTrip":"Oneway"},currentDate:function(){var now=new Date,month=now.getMonth()+1,day=now.getDate(),year=now.getFullYear();return day+"/"+month+"/"+year},getDay:function(date){var date=$.trim(date),day=date.split("/");return parseInt(day[0])},getMonth:function(date){var date=$.trim(date),month=date.split("/");return parseInt(month[1])},getYear:function(date){var date=$.trim(date),year=date.split("/");return parseInt(year[2])},getDaysToTrip:function(obDate){var obDateDay=this.getDay(obDate),obDateMonth=this.getMonth(obDate),obDateYear=this.getYear(obDate),currentDay=this.getDay(this.currentDate()),currentMonth=this.getMonth(this.currentDate()),currentYear=this.getYear(this.currentDate()),dayDifference=obDateDay-currentDay,monthDifference=(obDateMonth-currentMonth)*30,yearDifference=(obDateYear-currentYear)*360,daysToTrip;return yearDifference<=0&&monthDifference<=0?daysToTrip=dayDifference:yearDifference<=0?daysToTrip=monthDifference*dayDifference:daysToTrip=yearDifference*dayDifference,daysToTrip},getTripDuration:function(ibDate,obDate){var ibDateDay=this.getDay(ibDate),obDateDay=this.getDay(obDate),ibDateMonth=this.getMonth(ibDate),obDateMonth=this.getMonth(obDate),ibDateYear=this.getYear(ibDate),obDateYear=this.getYear(obDate),tripDuration,dayDifference=ibDateDay-obDateDay,monthDifference=(ibDateMonth-obDateMonth)*30,yearDifference=(ibDateYear-obDateYear)*360;return yearDifference<=0&&monthDifference<=0?tripDuration=dayDifference:yearDifference<=0?tripDuration=monthDifference*dayDifference:tripDuration=yearDifference*dayDifference,tripDuration}}),FerryResults=Parent.extend({RUN:["initFares"],selectedFareOb:null,selectedFareIb:null,initFares:function(){this.setupTripSelection(),this.updateInboundFares(),this.checkRadioButtons(),this.restoreSelectedFares("outbound"),this.restoreSelectedFares("inbound"),this.setupTripSelection(),$("#_send-email-for-FareAlert").length>0&&this.validateEmail()},validateEmail:function(){$("#submitButton").on("click",function(){var email=$.trim($("#userEmail-email").val()),regexp=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return regexp.test(email)?!0:($("#error-message-email").removeClass("hidden"),$("#error-message-email").fadeIn(100),setTimeout(TP24.proxy(function(){$("#error-message-email").fadeOut(300)},this),1500),email.focus,!1)})},setupTripSelection:function(){$(".-trips").each(function(){var radios=$(this).find(":radio");radios.change(function(){radios.parents(".tr-trip").removeClass("tr-trip-selected"),$(this).parents(".tr-trip").addClass("tr-trip-selected")})})},restoreSelectedFares:function(tripType){var selectedFare=$("."+tripType).data("fare-selected"),fares=$("."+tripType).find("[id^='ferry-']");selectedFare!=""&&$.each(fares,function(){var current=$(this).val();if(current==selectedFare)return $("."+tripType).find(".tr-trip").removeClass("tr-trip-selected"),$(this).attr("checked",!0),$(this).parents(".tr-trip").addClass("tr-trip-selected"),!1})},updateInboundFares:function(){var _this=this,obFares=$(".outbound").find("[id^='ferry-']");obFares.ready(function(){_this.checkInboundFares()}),obFares.on("change",function(){_this.checkInboundFares()})},checkInboundFares:function(){var ibFares=$(".inbound").find(".tr-trip"),outboundDate=$("#ferry-obDate").val(),inboundDate=$("#ferry-ibDate").val(),outBoundFareSelected=$(".outbound").find(".tr-trip-selected"),outBoundFareArrivalTime=outBoundFareSelected.find(".ferry-time:eq(1)").text().trim().substr(0,5),outboundFareArrTime=outBoundFareArrivalTime.split(":"),outboundFareArrHour=outboundFareArrTime[0],outboundFareArrMin=outboundFareArrTime[1],outBoundFareDepartureTime=outBoundFareSelected.find(".ferry-time:eq(0)").text().trim().substr(0,5),outboundFareDepTime=outBoundFareDepartureTime.split(":"),outboundFareDepHour=parseInt(outboundFareDepTime[0]),outboundFareDepMin=parseInt(outboundFareDepTime[1]),durationString=$(".outbound").find(".tr-trip-selected").find(".ferry-time:eq(2)").text().trim().substr(0,7).trim(),obYear=outboundDate.trim().substr(6,4),obMonth=outboundDate.trim().substr(3,2),obDay=outboundDate.trim().substr(0,2),ibYear=inboundDate.trim().substr(6,4),ibMonth=inboundDate.trim().substr(3,2),ibDay=inboundDate.trim().substr(0,2),ibDate=new Date(ibYear,ibMonth-1,ibDay),obFareDepDate=new Date(obYear,obMonth-1,obDay,outboundFareDepHour,outboundFareDepMin),obFareDepDateTemp=new Date(obYear,obMonth-1,obDay,outboundFareDepHour,outboundFareDepMin),durationHoursString,durationHours,durationMinutesString,durationMinutes,obFareArrivalDate;if(durationString.length>3)durationHoursString=durationString.substr(0,3).trim(),durationHours=parseInt(durationHoursString.match(/(\d+)/g)),durationMinutesString=durationString.substr(3,5).trim(),durationMinutes=parseInt(durationMinutesString.match(/(\d+)/g));else{var isHours=durationString.substr(durationString.length-1)=="h"?!0:!1;isHours?(durationHoursString=durationString.substr(0,3).trim(),durationHours=parseInt(durationHoursString.match(/(\d+)/g)),durationMinutes=0):(durationMinutesString=durationString.substr(0,3).trim(),durationMinutes=parseInt(durationMinutesString.match(/(\d+)/g)),durationHours=0)}obFareArrivalDate=obFareDepDateTemp.add(durationHours).hours(),obFareArrivalDate=obFareArrivalDate.add(durationMinutes).minutes(),outboundDate==inboundDate?obFareArrivalDate.toLocaleDateString()!=obFareDepDate.toLocaleDateString()?ibFares.each(function(){var fare=$(this).find(".ferry-radio");fare.find("input").removeAttr("checked"),fare.find("input").attr("disabled","disabled"),$(this).removeClass("tr-trip-selected")}):(this.setInboundFares(ibFares,outboundFareArrHour,outboundFareArrMin),this.setFirstAvailableInboundFare()):ibDate.getDate()==obFareArrivalDate.getDate()&&ibDate.getMonth()==obFareArrivalDate.getMonth()&&ibDate.getFullYear()==obFareArrivalDate.getFullYear()&&(this.setInboundFares(ibFares,outboundFareArrHour,outboundFareArrMin),this.setFirstAvailableInboundFare())},setFirstAvailableInboundFare:function(){$("input[class=inboundFare]:checked").size()==0?($("input[class=inboundFare]:radio:not(:disabled):first").prop("checked",!0),$("input[class=inboundFare]:radio:not(:disabled):first").parents(".tr-trip").addClass("tr-trip-selected")):$("input[class=inboundFare]:checked").parents(".tr-trip").addClass("tr-trip-selected")},setInboundFares:function(ibFares,outboundFareArrHour,outboundFareArrMin){ibFares.each(function(){var inBoundDepartureTime=$(this).find(".ferry-time:eq(0)").text().trim().substr(0,5),inBoundDepTime=inBoundDepartureTime.split(":"),inboundDepHour=inBoundDepTime[0],inboundDepMin=inBoundDepTime[1],fare=$(this).find(".ferry-radio");outboundFareArrHour>inboundDepHour?(fare.find("input").removeAttr("checked"),fare.find("input").attr("disabled","disabled"),$(this).removeClass("tr-trip-selected")):outboundFareArrHour==inboundDepHour?outboundFareArrMin>inboundDepMin?(fare.find("input").removeAttr("checked"),fare.find("input").attr("disabled","disabled"),$(this).removeClass("tr-trip-selected")):(fare.find("input[type=radio]:disabled").attr("disabled",!1),fare.find("input[type=radio]:enabled").parents(".tr-trip").removeClass("tr-trip-selected")):(fare.find("input[type=radio]:disabled").attr("disabled",!1),fare.find("input[type=radio]:enabled").parents(".tr-trip").removeClass("tr-trip-selected"))})},checkRadioButtons:function(){var enabledRadios=$("input[class=outboundFare]:radio"),disabledRadios=$("input[class=outboundFare]:radio:disabled");$("input[class=outboundFare]:radio:disabled").removeAttr("checked"),$("input[class=outboundFare]:radio:disabled").parents().removeClass("tr-trip-selected"),$("input[class=outboundFare]:radio:not(:disabled):first").prop("checked",!0),$("input[class=outboundFare]:radio:not(:disabled):first").parents(".tr-trip").addClass("tr-trip-selected"),enabledRadios.length===disabledRadios.length?$(".btn-large").hide():$(".btn-large").show()}}),FerryPayment=Parent.extend({RUN:["initGlobals","deliveryCourier","triggerDeliveryChargeUpdate","initBirthDate","initInsurance"],profileZip:$("#profile-zip"),profileCountry:$("#profile-countryCode"),profileCompanyZip:$(".companyZip"),profileCompanyCountry:$(".companyCountry"),zip:$("#addons-delivery-0-zip"),country:$("#addons-delivery-0-country"),differentAddress:$("#addons-delivery-0-useDifferentAddress"),addressDiv:$("#courier-address-div"),chargeLabel:$("#delivery-charge-display"),bookingID:$("#bookingID").data("booking-id"),insurance:$("[id^=addons-insurance-]"),tip:$("#delivery-tip"),initBirthDate:function(){$(".birthDate").hide(),$("[id^=addons-insurance-]:checked").length&&$(".birthDate").show()},initGlobals:function(){$("#addons-delivery-office, #addons-delivery-port").change(function(){$(this).is(":checked")&&TP24.fire("PAYMENT:addon-update-price",{group:"other",name:"delivery",price:0})}),$("#addons-delivery-courier").change(function(){$(this).is(":checked")&&TP24.fire("PAYMENT:addon-update-price",{group:"other",name:"delivery",price:$("#delivery-charge-display").data("amount")})}),$("#payment ul.tabs a").on("click",function(){var isCompanyActive=$(this).data("value");$('input[name="profile\\[isCompanyActive\\]"]').removeAttr("checked"),$('input[name="profile\\[isCompanyActive\\]"][value="'+ isCompanyActive+'"]').attr("checked","checked")});var isCompany=$('#payment input[name="profile\\[isCompanyActive\\]"]:checked').val();$("#payment ul.tabs").data("tabs").click(parseInt(isCompany))},initInsurance:function(){$("a.insurance-link").on("click",function(e){e.preventDefault(),$(this).siblings("a").toggle(),$(this).closest("label").find(".insurance-description").toggle(),$(this).closest("label").find(".insurance-preview").toggle()}),this.insurance.change(function(){var insuranceChecked=$("[id^=addons-insurance-]:checked"),totalInsuranceAmount=0;insuranceChecked.each(function(){totalInsuranceAmount+=$(this).data("insurance-price")}),TP24.fire("PAYMENT:addon-update-price",{group:"other",name:"insurance",price:totalInsuranceAmount})}),this.insurance.change(TP24.proxy(function(event){var insuranceChecked=$("[id^=addons-insurance-]:checked");insuranceChecked.length>0&&!$(".birthDate").is(":visible")&&$(".birthDate").show(),insuranceChecked.length===0&&$(".birthDate").is(":visible")&&$(".birthDate").hide(),insuranceChecked.length>1&&(insuranceChecked.each(function(){$(this).prop("checked",!1)}),$(event.target).prop("checked",!0),insuranceChecked.trigger("change"))},this))},deliveryCourier:function(){this.differentAddress.click(TP24.proxy(this.showHideAddressDiv,this)),this.showHideAddressDiv()},showHideAddressDiv:function(){this.differentAddress.is(":checked")?this.addressDiv.show():this.addressDiv.hide()},triggerDeliveryChargeUpdate:function(){this.zip.change(TP24.proxy(function(){this.updateDeliveryCharges()},this)),this.country.change(TP24.proxy(function(){this.updateDeliveryCharges()},this)),this.profileZip.change(TP24.proxy(function(){this.updateDeliveryCharges()},this)),this.profileCountry.change(TP24.proxy(function(){this.updateDeliveryCharges()},this)),this.profileCompanyZip.change(TP24.proxy(function(){this.updateDeliveryCharges()},this)),this.profileCompanyCountry.change(TP24.proxy(function(){this.updateDeliveryCharges()},this)),$("#profile-isCompanyActive-0, #profile-isCompanyActive-1, #addons-delivery-0-useDifferentAddress").click(TP24.proxy(function(){this.updateDeliveryCharges()},this))},updateDeliveryCharges:function(){var geoData={};$("#addons-delivery-0-useDifferentAddress").is(":checked")?(geoData.zip=this.zip.val(),geoData.country=this.country.val()):($("#profile-isCompanyActive-0").is(":checked")&&(geoData.zip=this.profileZip.val(),geoData.country=this.profileCountry.val()),$("#profile-isCompanyActive-1").is(":checked")&&(geoData.zip=$(".companyZip").val(),geoData.country=$(".companyCountry").val())),geoData.zip===""?this.tip.show():this.tip.hide();var _this=this;$.getJSON("/ferries/payment/calculate-cost?bookingID="+this.getUrlVars().bookingID,geoData,function(data){_this.chargeLabel.html(TP24.formatPrice(data)),_this.chargeLabel.data("amount",data),$("#addons-delivery-courier").is(":checked")&&TP24.fire("PAYMENT:addon-update-price",{group:"other",name:"delivery",price:data})})},getUrlVars:function(){var vars=[],hash,hashes=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var i=0;i'+TP24.formatPrice(data.totalPrice)+""),$(".final-prices").each(function(index){$("#final-price-outbound-"+index).html(TP24.formatPrice(data.outbound[index])),$("#_final-discount-outbound-"+index).html(TP24.formatPrice(data.discounts.outbound[index])),typeof data.inbound!="undefined"&&($("#final-price-inbound-"+index).html(TP24.formatPrice(data.inbound[index])),$("#_final-discount-inbound-"+index).html(TP24.formatPrice(data.discounts.inbound[index])))}),_this.button.fadeOut("fast",function(){$(".btn-primary").fadeIn("fast")})),_this.showHideDiscount("outbound"),_this.showHideDiscount("inbound"),_this.root.removeClass("in-progress"),$("#waitScr").fadeOut("slow")},error:function(x,textStatus,m){textStatus==="timeout"?(_this.showTimeoutErrorMessage("There was no response from the server. Please try again"),_this.root.removeClass("in-progress"),$("#waitScr").fadeOut("slow")):textStatus==="parsererror"?(_this.showTimeoutErrorMessage("Session timeout. Please search again"),_this.root.removeClass("in-progress"),$("#waitScr").fadeOut("slow"),setTimeout(function(){window.location.href="/ferries"},2e3)):(_this.showTimeoutErrorMessage(textStatus),_this.root.removeClass("in-progress"),$("#waitScr").fadeOut("slow"))}})},this))},disableEnterKey:function(){$("._noEnterSubmit").keypress(function(e){if(e.which==13)return!1})},showTimeoutErrorMessage:function(txtmessage){$("html, body").animate({scrollTop:$("#main").offset().top},750),this.seatingPriceErrorLabel.html(''+txtmessage+""),this.seatingPriceErrorLabel.fadeIn("slow"),this.seatingPriceLabel.fadeOut("slow")},showErrorMessage:function(data){$("html, body").animate({scrollTop:$("#main").offset().top},750),this.seatingPriceErrorLabel.html(''+data.error+""),this.seatingPriceErrorLabel.fadeIn ("slow"),this.seatingPriceLabel.fadeOut("slow"),this.seatingUlErrors.fadeOut(),this.seatingInputErrors.removeClass("error"),this.addErrorField(data.errorCode)},markUnavailableClasses:function(data){for(var i in data.errorClasses){var legType=i==0?"outbound":"inbound";for(var seatingClass in data.errorClasses[i])$("."+legType).find('select[id$="classAbbr"]').find('option[value="'+seatingClass+'"]:selected').parents("select").addClass("error")}},passengerNumberChange:function(){$("._passengers-num-class, ._vehicles-num-class").change(TP24.proxy(function(){$("#waitPassengerNumberScr").fadeIn("fast")},this))},haveAllPassengersSeatClass:function(leg){var adultPassengers=$('select[name="passengersAdult"]').val(),passengers=$("[class='_passenger-row'][id^='"+leg+"']"),haveClass=[];for(var i=0;i0?$.inArray(!1,childrenOutbound)!==-1&&$.inArray(!1,childrenInbound)!==-1?_this.atLeastOneAdult=!0:_this.atLeastOneAdult=!1:$.inArray(!1,childrenOutbound)!==-1?_this.atLeastOneAdult=!0:_this.atLeastOneAdult=!1,_this.atLeastOneAdult}function scrollToError(){pos=$("#seating-price-display-error-noAdults").offset().top,$("html,body").animate({scrollTop:pos},1e3)}var _this=this;$("select[name^='Passenger-outbound'][name$='[passengerDiscountType]'], select[name^='Passenger-inbound'][name$='[passengerDiscountType]']").on("change",function(){$("#seating-price-display-error").hide(),atLeastOneAdultExists()?($("#seating-price-display-error").hide(),$("#seating-price-display-error-noAdults").hide()):($("#seating-price-display-error-noAdults").removeClass("hide").addClass("show"),$("#seating-price-display-error-noAdults").show(),scrollToError())}),$("#seating-ajaxButton").on("click",function(){$("#seating-price-display-error").hide(),$("#seating-price-display-error-noAdults").hide()})},showHideErrorMessages:function(legType){var _this=this;$("._passenger-row, ._vehicle-row").each(function(index){var gender=$("#Passenger-"+legType+"-"+index+"-gender"),ticketType=$("#Passenger-"+legType+"-"+index+"-passengerDiscountType"),passengerClassAbbr=$("#Passenger-"+legType+"-"+index+"-classAbbr"),vehicleClassAbbr=$("#Vehicle-"+legType+"-"+index+"-classAbbr"),vehiclePlateNumber=$("#Vehicle-"+legType+"-"+index+"-plateNumber");_this.validateField(gender),_this.validateField(ticketType),_this.validateField(passengerClassAbbr),_this.validateField(vehicleClassAbbr),_this.validateField(vehiclePlateNumber)})},showHideDiscount:function(legType){$("._passenger-row").each(function(index){$("#_final-discount-"+legType+"-"+index).html()=="0,00 \u20ac"||parseInt($("#_final-discount-"+legType+"-"+index).html())<0?($("#_final-discount-"+legType+"-"+index).hide(),$("#_discount-"+legType+"-"+index).hide()):($("#_final-discount-"+legType+"-"+index).show(),$("#_discount-"+legType+"-"+index).show(),$("#Passenger-"+legType+"-"+index+"-passengerDiscountType option:selected").val()=="1"&&$("#_discount-"+legType+"-"+index).hide())})},validateField:function(field){field.removeClass("error"),field.val()==""&&field.addClass("error")},selectOutbound:function(){var _this=this,adultPassengers=$('select[name="passengersAdult"]').val(),outboundPassengers=$("[class='_passenger-row'][id^='outbound']"),inboundPassengers=$("[class='_passenger-row'][id^='inbound']");$("select.outbound, input.outbound").change(function(){var id=$(this).attr("id"),array=id.split("-"),indexAndName="inbound-"+array[2]+"-"+array[3],indexAndGender="inbound-"+array[2]+"-gender",gender=$("#Passenger-outbound-"+array[2]+"-gender").val();$("#Passenger-"+indexAndName).find("option[value="+$(this).val()+"]").length>0?$("#Passenger-"+indexAndName).val($(this).val()):$("#Passenger-"+indexAndName).val(0),$("#hidden-passenger-"+indexAndName).val($(this).val()),$("#Passenger-"+indexAndGender).val(gender),$("#Vehicle-"+indexAndName).val($(this).val()),$("#Vehicle-"+indexAndName).attr("disabled","disabled"),$("#hidden-vehicle-"+indexAndName).val($(this).val()),_this.validateField($(this))}),$.each([1,2,3,4,5,6,7,8,9],function(index,value){var passType=$("#Passenger-outbound-"+index+"-passengerDiscountType").val();passType=="1"&&($("#Passenger-outbound-"+index+"-classAbbr").hide(),$("#Passenger-inbound-"+index+"-classAbbr").hide(),$("._wholecabin-td-"+index+" label").hide(),$("#infant-outbound-"+index).removeClass("hide"),$("#infant-inbound-"+index).removeClass ("hide"));var outboundClassIsCabin=$("#Passenger-outbound-"+index+"-classAbbr").find("option:selected").data("is-cabin"),outboundClassCheckbox=$("#Passenger-outbound-"+index+"-wholeCabin"),inboundClassCheckbox=$("#Passenger-inbound-"+index+"-wholeCabin"),inboundClassIsCabin=$("#Passenger-inbound-"+index+"-classAbbr").find("option:selected").data("is-cabin");outboundClassIsCabin==1&&outboundClassCheckbox.is(":checked")&&$("#Passenger-outbound-"+index+"-wholeCabin-label").show(),inboundClassIsCabin==1&&inboundClassCheckbox.is(":checked")&&$("#Passenger-inbound-"+index+"-wholeCabin-label").show()}),outboundPassengers.each(function(){var index=$(this).data("id");$("select[name^='Passenger-outbound'][name$='[classAbbr]']").change(function(){var classCapacity=$("option:selected",this).attr("data-capacity"),isCabin=$("option:selected",this).attr("data-is-cabin"),discountType=$("#Passenger-outbound-"+index+"-passengerDiscountType").val();classCapacity>=adultPassengers&&isCabin==1&&discountType==1&&($("#infant-outbound-"+index).addClass("hide"),$("#Passenger-outbound-"+index+"-passengerDiscountType").val(0),$("#Passenger-outbound-"+index+"-classAbbr").show())})}),inboundPassengers.each(function(){var index=$(this).data("id");$("select[name^='Passenger-inbound'][name$='[classAbbr]']").change(function(){var classCapacity=$("option:selected",this).attr("data-capacity"),isCabin=$("option:selected",this).attr("data-is-cabin"),discountType=$("#Passenger-inbound-"+index+"-passengerDiscountType").val();classCapacity>=adultPassengers&&isCabin==1&&discountType==1&&($("#infant-inbound-"+index).addClass("hide"),$("#Passenger-inbound-"+index+"-passengerDiscountType").val(0),$("#Passenger-inbound-"+index+"-classAbbr").show())})}),$("select._seating-passenger-discount-type.outbound").change(function(){var id=$(this).attr("id"),array=id.split("-"),tripType=array[1],index=array[2],value=$(this).val(),checkBox=$("#Passenger-"+tripType+"-"+index+"-wholeCabin"),label=$("._wholecabin-td-"+index+" label"),outboundValue=$("#Passenger-outbound-"+index+"-passengerDiscountType").val(),inboundValue=$("#Passenger-inbound-"+index+"-passengerDiscountType").val();value=="1"?(outboundValue==inboundValue&&($("#infant-inbound-"+index).removeClass("hide"),$("#Passenger-inbound-"+index+"-classAbbr").hide()),$("#Passenger-outbound-"+index+"-classAbbr").hide(),label.hide(),$("#infant-outbound-"+index).removeClass("hide")):($("#Passenger-"+tripType+"-"+index+"-classAbbr").show(),checkBox.is(":visible")&&label.show(),$("#infant-outbound-"+index).addClass("hide"),$("#infant-inbound-"+index).addClass("hide"),$("#Passenger-inbound-"+index+"-classAbbr").show())}),$("select._seating-passenger-discount-type.inbound").change(function(){var id=$(this).attr("id"),array=id.split("-"),tripType=array[1],index=array[2],value=$(this).val(),checkBox=$("#Passenger-"+tripType+"-"+index+"-wholeCabin"),label=$("._wholecabin-td-"+index+" label");value=="1"?($("#Passenger-inbound-"+index+"-classAbbr").hide(),label.hide(),$("#infant-inbound-"+ index).removeClass("hide")):($("#Passenger-"+tripType+"-"+index+"-classAbbr").show(),$("#Passenger-inbound-"+index+"-classAbbr").show(),checkBox.is(":visible")&&label.show(),$("#infant-inbound-"+index).addClass("hide"))})},formChange:function(){var _this=this;$("#seating-pricing").change(TP24.proxy(function(){_this.button.is(":hidden")&&(_this.seatingPriceLabel.fadeOut("fast"),$(".btn-primary").fadeOut("fast",function(){_this.button.fadeIn("fast")})),_this.atLeastOneAdult!=null&&!_this.atLeastOneAdult?$("#seating-ajaxButton").prop("disabled",!0):$("#seating-ajaxButton").prop("disabled",!1)},this))},seatingChange:function(){var _this=this;$("._seating-class").change(TP24.proxy(function(event){var element=$(event.target),classCapacity=element.find("option:selected").data("capacity"),companyAbbr=element.parents().closest("[id$='-companyAbbr']").data("companyabbr");_this.validateField(element),_this.resetPassengerFinalPrice(element),_this.resetPassengerFinalDiscountPrice(element);if(!this.isClassCabin (element)){this.getCheckbox(element).removeAttr("checked"),this.getCheckbox(element).attr("disabled","disabled"),this.getCheckboxLabel(element).hide(),this.updateNextSiblings(element,!1),this.companyDoesSupportInfantDiscount(companyAbbr)&&(this.addInfantOption(element,this.getTotalNumberOfPassengers()),this.addIfantOptionToTheCurrentRow(element));return}if(this.canSelectWholeCabin(element,classCapacity)){this.getCheckbox(element).attr("checked","checked"),this.getCheckbox(element).removeAttr("disabled"),classCapacity>1?this.getCheckboxLabel(element).show():this.getCheckboxLabel(element).hide(),this.updateNextSiblings(element,!0,classCapacity-1);var lastAffectedPaxElement=this.getNextNthClassSibling(element,classCapacity-1),normalizeNumber=parseInt(this.passengerIndex(lastAffectedPaxElement))+1;classCapacity>1&&normalizeNumber0;if(!infantOptionFound){var infantTranslation=$("#infantTranslation").data("infant-translation");row.find("._seating-passenger-discount-type").append('")}},addIfantOptionToTheCurrentRow:function(element){var infantTranslation=$("#infantTranslation").data("infant-translation"),hasInfantOption=this.getCurrentRow(element).find('._seating-passenger-discount-type option[value="1"]').length>0,selectType=$("#Passenger-"+this.legType(element)+"-"+this.passengerIndex(element)+"-passengerDiscountType");hasInfantOption||selectType.append('")},removeInfantOption:function(element,numberOfRows){numberOfRows>0&&this.getNextSiblingRows (element,numberOfRows).find('._seating-passenger-discount-type option[value="1"]').remove(),this.isClassCabin(element)&&$("#Passenger-"+this.legType(element)+"-"+this.passengerIndex(element)+'-passengerDiscountType option[value="1"]').remove()},isClassCabin:function(element){var isCabin=element.find("option:selected").data("is-cabin");return isCabin=="1"?!0:!1}}),FerryPriceBar=Parent.extend({RUN:["initGlobals"],selector:"_pricebar",elements:{},amounts:{},totalWithoutExtraCharges:null,event:"PAYMENT:addon-update-price",initGlobals:function(){this.elements.voucher=$("#product-subtotal-voucher"),this.elements.delivery=$("#product-subtotal-delivery"),this.elements.insurance=$("#product-subtotal-insurance"),this.elements.installment=$("#product-subtotal-installmentCharges"),this.elements.total=$("#total-price"),this.elements.totalExtraCharges=$("#total-extra-charges"),this.amounts.voucher=this.elements.voucher.data("amount"),this.amounts.delivery=this.elements.delivery.data("amount"),this.amounts.insurance=this.elements.insurance.data("amount"),this.amounts.installment=this.elements.installment.data("amount"),this.amounts.total=this.elements.total.data("amount"),this.totalWithoutExtraCharges=this.elements.total.data("total-without-extra-charges"),TP24.observe(this.event,this.catcher,this)},catcher:function(){var data=arguments[1];if(data.name in this.amounts){this.amounts[data.name]=data.price,this.elements[data.name].html(TP24.formatPrice(this.amounts[data.name]));var price=0,extra_charges=0;$("#birthDate").hasClass("birthDate")?(price=this.totalWithoutExtraCharges+this.amounts.delivery+this.amounts.voucher+this.amounts.insurance+this.amounts.installment,extra_charges=this.amounts.delivery+this.amounts.voucher+this.amounts.insurance+this.amounts.installment):(price=this.totalWithoutExtraCharges+this.amounts.delivery+this.amounts.voucher+this.amounts.installment,extra_charges=this.amounts.delivery+this.amounts.voucher+this.amounts.installment),price<0&&(price=0),this.elements.total.html(TP24.formatPrice(price)),this.elements.totalExtraCharges.html(TP24.formatPrice(extra_charges))}}}),FerryInstallments=Parent.extend({installmentLastSelected:0,installmentCharge:0,totalPriceWithoutInstallmentCharge:0,otherChargesWithoutInstallmentCharges:0,shouldSubstractInstallmentCharges:!1,RUN:["initGlobals","initInstallmentsSurcharge"],initGlobals:function(){this.installmentsValidationMessage=$("#installments-validation-message"),this.installmentsErrorMessage=$("#installments-booking-expiry-error-message"),this.installmentCheck=$("#installments-checkbox"),this.installmentSelect=$("#installment-select"),this.installmentDetails=$("#installment-details"),this.creditCardNumber=$("#payment-creditCardNumber"),this.numberOfInstallments=$("#payment-numberOfInstallments"),this.totalElement=$("#total-price"),this.onChange(),this.onSelect()},initInstallmentsSurcharge:function(){this.installmentCharge=0,this.totalPriceWithoutInstallmentCharge=this.totalElement.data("amount"),this.numberOfInstallments.change(TP24.proxy(this.installmentOptionSelected,this))},hideInstallments:function(){this.installmentSelect.hide(),this.installmentDetails.hide(),this.numberOfInstallments.val(0).change()},onChange:function(){this.installmentCheck.is(":checked")&&this.installmentSelect.show(),this.creditCardNumber.on("keydown",TP24.proxy(function(event){this.hideInstallments(),this.installmentCheck.attr("checked",!1),this.installmentsValidationMessage.hide()},this)),this.installmentCheck.change(TP24.proxy(function(event){this.installmentCheck.is(":checked")?$.ajax({type:"POST",data:{creditCardNumber:this.creditCardNumber.val(),amount:this.totalElement.data("amount")},url:window.location.pathname+"/installments-credit-card-validate?bookingID="+urlParams().bookingID+"&format=json",dataType:"json",beforeSend:TP24.proxy(function(){this.creditCardNumber.removeClass("error")},this),success:TP24.proxy(function(json){json.status!="creditCardSupported"?(this.installmentsValidationMessage.html(json.output),this.installmentCheck.attr("checked",!1),this.installmentSelect.hide(),this.installmentDetails.hide(),(json.status=="emptyCreditCardNumber"||json.status=="notFullCreditCardNumber")&&this.creditCardNumber.addClass("error"),this.installmentsValidationMessage.show()):(this.installmentsValidationMessage.hide(),this.installmentSelect.fadeIn(200),this.installmentDetails.fadeIn(200)),this.numberOfInstallments.val(0).change()},this),error:TP24.proxy(function(){window.location.href=window.location.origin,this.installmentsErrorMessage.show(),this.installmentsValidationMessage.hide()},this)}):this.hideInstallments()},this))},onSelect:function(){this.installmentSelect.change(TP24.proxy(function(event){var installmentQuantityElement=$("#installments-quantity"),installmentPriceElement=$("#installments-price"),installment=this.getInstallmentPrice();installmentQuantityElement.html(this.numberOfInstallments.val()+" x "),installmentPriceElement.html(TP24.formatPrice(installment)+" = "+$("#total-price").html()),this.numberOfInstallments.val()?this.installmentDetails.fadeIn(200):(this.numberOfInstallments.find("option").first().attr("selected","selected"),this.installmentDetails.hide())},this))},getInstallmentPrice:function(){return Math.round(100*this.totalElement.data("amount")/this.numberOfInstallments.val())/100},installmentOptionSelected:function(){this.installmentLastSelected=parseInt(this.numberOfInstallments.val());var subtotal=this.installmentLastSelected>1?this.installmentChargesFromTotalPriceWithoutInstallmentCharge():0;this.updateSidebarCharges(subtotal)},installmentChargesFromTotalPriceWithoutInstallmentCharge:function(){return Math.round(this.totalPriceWithoutInstallmentCharge*(this.installmentLastSelected+1)*100/300)/100},installmentChargesFromTotalPrice:function(){var numberOfInstallments=parseInt(this.installmentLastSelected);return numberOfInstallments>1?Math.round(100*(Math.round(100*this.totalPriceWithoutInstallmentCharge)/100)*(numberOfInstallments+1)/(numberOfInstallments+301))/100:0},updateSidebarCharges:function(charge){var productSubtotalElementToUpdate="";productSubtotalElementToUpdate=$("#product-subtotal-installmentCharges"),productSubtotalElementToUpdate.data("amount",charge),productSubtotalElementToUpdate.html(TP24.formatPrice(charge)),$("#payment-numberOfInstallments").change(function(){TP24.fire("PAYMENT:addon-update-price",{group:"other",name:"installment",price:$("#product-subtotal-installmentCharges").data("amount")})})}}),FerryFlightOfferTracking=Parent.extend({RUN:["sendTrackEvents"],sendTrackEvents:function(){$("#flightOffer").on("flightOffer.impression",TP24.proxy(this.trackImpressionEvent,this)),$("#flightOffer").click(TP24.proxy(this.trackClickEvent,this))},trackImpressionEvent:function(){TP24.track("Ferries / Results","Flight Offers Impressions")},trackClickEvent:function(){TP24.track("Ferries / Results","Flight Offers Clicks")}});namespace.FerrySearchQuery=FerrySearchQuery,namespace.FerryResults=FerryResults,namespace.FerryPayment=FerryPayment,namespace.FerrySeating=FerrySeating,namespace.FerryPriceBar=FerryPriceBar,namespace.FerryInstallments=FerryInstallments,namespace.FerryFlightOfferTracking=FerryFlightOfferTracking,function(){var hasProp={}.hasOwnProperty,key;for(key in namespace)hasProp.call(namespace,key)&&(global[key]=namespace[key])}(),typeof define=="function"&&define.amd&&define("tp24-ferry-amd",[],function(){return namespace})})(function(){if(typeof exports=="object")return module.exports;if(typeof window!="undefined")return window}());var CarSearchQuery=Parent.extend({list:null,from:null,pickup:null,dropoff:null,selector:'_car-search',RUN:['initAutocompletion','initGlobals','initCalendar'],initGlobals:function() {this.from=this.get('#cars-destinationInput');this.pickup=this.get('#pickup');this.dropoff=this.get('#dropoff');},initAutocompletion:function() {this.list='/js/tp24-car-autocompletion-legacy.js';TP24.include(this.list,TP24.proxy(function(event){var carCollection=(TP24.SUPPORT.workers)?event.data.carCollection:window.carCollection;TP24.autocompleter(this.from,carCollection,{matchContains:false,searchCodes:false});},this));},initCalendar:function() {var beforeShow=function(){TP24.track(TP24.CONFIG.TRACKER.CATEGORIES.CAR,'openCalenderSearch');};TP24.maskCalendar(this.pickup,this.dropoff,{beforeShow:beforeShow});}});;$(document).ready(function(){var applyForJob=$(".apply-for-job");if(applyForJob.length>0){applyForJob.fancybox({fitToView:false,width:1000});}});;(function($){var TP24_DocumentReady=function(){this.actions=[];};TP24_DocumentReady.prototype={addAction:function(callback){this.actions.push(callback);},execute:function($){var that=this;$(document).ready(function(){$.each(that.actions,function(i,action){action($);});$('.plusone-btn').one('mouseover',function(){head.js('//apis.google.com/js/plusone.js');});$('.fb-like-btn').one('mouseover',function(){_this=$(this) head.js('//connect.facebook.net/en_US/all.js#xfbml=1',function(){_this.addClass('loaded');});});})}};var ready=new TP24_DocumentReady;ready.addAction(function($){var divs=$('div').find('[data-url]');$.each(divs,function(i,target){var targetData=$(target).data();$.ajax({url:targetData.url,dataType:'html',success:function(data){$(target).html(data);}});});});ready.execute($);})(jQuery);