/*!
 * (fuel.min.js) was generated on Monday, January 30, 2012 by arnout@testbak.
 * Build: 7d342129effe4e1cf0e8c6fa285057414318dbd5
 * Copyright (c) 2012 Hotels.nl.
 */
Date.CultureInfo={name:"en-US",englishName:"English (United States)",nativeName:"English (United States)",dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),abbreviatedDayNames:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),shortestDayNames:"Su,Mo,Tu,We,Th,Fr,Sa".split(","),firstLetterDayNames:"S,M,T,W,T,F,S".split(","),monthNames:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),abbreviatedMonthNames:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),
amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"mdy",formatPatterns:{shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},regexPatterns:{jan:/^jan(uary)?/i,feb:/^feb(ruary)?/i,mar:/^mar(ch)?/i,apr:/^apr(il)?/i,
may:/^may/i,jun:/^jun(e)?/i,jul:/^jul(y)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^oct(ober)?/i,nov:/^nov(ember)?/i,dec:/^dec(ember)?/i,sun:/^su(n(day)?)?/i,mon:/^mo(n(day)?)?/i,tue:/^tu(e(s(day)?)?)?/i,wed:/^we(d(nesday)?)?/i,thu:/^th(u(r(s(day)?)?)?)?/i,fri:/^fr(i(day)?)?/i,sat:/^sa(t(urday)?)?/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,
second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",
MDT:"-0700",PDT:"-0800"}};Date.getMonthNumberFromName=function(a){for(var b=Date.CultureInfo.monthNames,c=Date.CultureInfo.abbreviatedMonthNames,a=a.toLowerCase(),e=0;e<b.length;e++)if(b[e].toLowerCase()==a||c[e].toLowerCase()==a)return e;return-1};Date.getDayNumberFromName=function(a){for(var b=Date.CultureInfo.dayNames,c=Date.CultureInfo.abbreviatedDayNames,a=a.toLowerCase(),e=0;e<b.length;e++)if(b[e].toLowerCase()==a||c[e].toLowerCase()==a)return e;return-1};
Date.isLeapYear=function(a){return 0===a%4&&0!==a%100||0===a%400};Date.getDaysInMonth=function(a,b){return[31,Date.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]};Date.getTimezoneOffset=function(a,b){return b?Date.CultureInfo.abbreviatedTimeZoneDST[a.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[a.toUpperCase()]};
Date.getTimezoneAbbreviation=function(a,b){var c=b?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,e;for(e in c)if(c[e]===a)return e;return null};Date.prototype.clone=function(){return new Date(this.getTime())};Date.prototype.compareTo=function(a){if(isNaN(this))throw Error(this);if(a instanceof Date&&!isNaN(a))return this>a?1:this<a?-1:0;throw new TypeError(a);};Date.prototype.equals=function(a){return 0===this.compareTo(a)};
Date.prototype.between=function(a,b){var c=this.getTime();return c>=a.getTime()&&c<=b.getTime()};Date.prototype.addMilliseconds=function(a){this.setMilliseconds(this.getMilliseconds()+a);return this};Date.prototype.addSeconds=function(a){return this.addMilliseconds(1E3*a)};Date.prototype.addMinutes=function(a){return this.addMilliseconds(6E4*a)};Date.prototype.addHours=function(a){return this.addMilliseconds(36E5*a)};Date.prototype.addDays=function(a){return this.addMilliseconds(864E5*a)};
Date.prototype.addWeeks=function(a){return this.addMilliseconds(6048E5*a)};Date.prototype.addMonths=function(a){var b=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+a);this.setDate(Math.min(b,this.getDaysInMonth()));return this};Date.prototype.addYears=function(a){return this.addMonths(12*a)};
Date.prototype.add=function(a){if("number"==typeof a)return this._orient=a,this;if(a.millisecond||a.milliseconds)this.addMilliseconds(a.millisecond||a.milliseconds);if(a.second||a.seconds)this.addSeconds(a.second||a.seconds);if(a.minute||a.minutes)this.addMinutes(a.minute||a.minutes);if(a.hour||a.hours)this.addHours(a.hour||a.hours);if(a.month||a.months)this.addMonths(a.month||a.months);if(a.year||a.years)this.addYears(a.year||a.years);if(a.day||a.days)this.addDays(a.day||a.days);return this};
Date._validate=function(a,b,c,e){if("number"!=typeof a)throw new TypeError(a+" is not a Number.");if(a<b||a>c)throw new RangeError(a+" is not a valid value for "+e+".");return!0};Date.validateMillisecond=function(a){return Date._validate(a,0,999,"milliseconds")};Date.validateSecond=function(a){return Date._validate(a,0,59,"seconds")};Date.validateMinute=function(a){return Date._validate(a,0,59,"minutes")};Date.validateHour=function(a){return Date._validate(a,0,23,"hours")};
Date.validateDay=function(a,b,c){return Date._validate(a,1,Date.getDaysInMonth(b,c),"days")};Date.validateMonth=function(a){return Date._validate(a,0,11,"months")};Date.validateYear=function(a){return Date._validate(a,1,9999,"seconds")};
Date.prototype.set=function(a){if(!a.millisecond&&0!==a.millisecond)a.millisecond=-1;if(!a.second&&0!==a.second)a.second=-1;if(!a.minute&&0!==a.minute)a.minute=-1;if(!a.hour&&0!==a.hour)a.hour=-1;if(!a.day&&0!==a.day)a.day=-1;if(!a.month&&0!==a.month)a.month=-1;if(!a.year&&0!==a.year)a.year=-1;-1!=a.millisecond&&Date.validateMillisecond(a.millisecond)&&this.addMilliseconds(a.millisecond-this.getMilliseconds());-1!=a.second&&Date.validateSecond(a.second)&&this.addSeconds(a.second-this.getSeconds());
-1!=a.minute&&Date.validateMinute(a.minute)&&this.addMinutes(a.minute-this.getMinutes());-1!=a.hour&&Date.validateHour(a.hour)&&this.addHours(a.hour-this.getHours());-1!==a.month&&Date.validateMonth(a.month)&&this.addMonths(a.month-this.getMonth());-1!=a.year&&Date.validateYear(a.year)&&this.addYears(a.year-this.getFullYear());-1!=a.day&&Date.validateDay(a.day,this.getFullYear(),this.getMonth())&&this.addDays(a.day-this.getDate());a.timezone&&this.setTimezone(a.timezone);a.timezoneOffset&&this.setTimezoneOffset(a.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 a=this.getFullYear();return 0===a%4&&0!==a%100||0===a%400};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(a,b){var c=(a-this.getDay()+7*(b||1))%7;return this.addDays(0===c?c+7*(b||1):c)};Date.prototype.moveToMonth=function(a,b){var c=(a-this.getMonth()+12*(b||1))%12;return this.addMonths(0===c?c+12*(b||1):c)};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/864E5)};
Date.prototype.getWeekOfYear=function(a){var b=this.getFullYear(),c=this.getMonth(),e=this.getDate(),a=a||Date.CultureInfo.firstDayOfWeek,h=8-(new Date(b,0,1)).getDay();8==h&&(h=1);c=(Date.UTC(b,c,e,0,0,0)-Date.UTC(b,0,1,0,0,0))/864E5+1;c=Math.floor((c-h+7)/7);c===a&&(b--,b=8-(new Date(b,0,1)).getDay(),c=2==b||8==b?53:52);return c};Date.prototype.isDST=function(){console.log("isDST");return"D"==this.toString().match(/(E|C|M|P)(S|D)T/)[2]};
Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST())};Date.prototype.setTimezoneOffset=function(a){var b=this.getTimezoneOffset();this.addMinutes(-6*Number(a)/10-b);return this};Date.prototype.setTimezone=function(a){return this.setTimezoneOffset(Date.getTimezoneOffset(a))};Date.prototype.getUTCOffset=function(){var a=-10*this.getTimezoneOffset()/6;if(0>a)return a=(a-1E4).toString(),a[0]+a.substr(2);a=(a+1E4).toString();return"+"+a.substr(1)};
Date.prototype.getDayName=function(a){return a?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()]};Date.prototype.getMonthName=function(a){return a?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()]};Date.prototype._toString=Date.prototype.toString;
Date.prototype.toString=function(a){var b=this,c=function(a){return 1==a.toString().length?"0"+a:a};return a?a.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(a){switch(a){case "hh":return c(13>b.getHours()?b.getHours():b.getHours()-12);case "h":return 13>b.getHours()?b.getHours():b.getHours()-12;case "HH":return c(b.getHours());case "H":return b.getHours();case "mm":return c(b.getMinutes());case "m":return b.getMinutes();case "ss":return c(b.getSeconds());case "s":return b.getSeconds();
case "yyyy":return b.getFullYear();case "yy":return b.getFullYear().toString().substring(2,4);case "dddd":return b.getDayName();case "ddd":return b.getDayName(!0);case "dd":return c(b.getDate());case "d":return b.getDate().toString();case "MMMM":return b.getMonthName();case "MMM":return b.getMonthName(!0);case "MM":return c(b.getMonth()+1);case "M":return b.getMonth()+1;case "t":return 12>b.getHours()?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case "tt":return 12>
b.getHours()?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=!1;Date.prototype.is=function(){this._is=!0;return this};
Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var a={};a[this._dateElement]=this;return Date.now().add(a)};Number.prototype.ago=function(){var a={};a[this._dateElement]=-1*this;return Date.now().add(a)};
(function(){for(var a=Date.prototype,b=Number.prototype,c="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),e="january february march april may june july august september october november december".split(/\s/),h="Millisecond Second Minute Hour Day Week Month Year".split(/\s/),k=function(a){return function(){return this._is?(this._is=!1,this.getDay()==a):this.moveToDayOfWeek(a,this._orient)}},p=0;p<c.length;p++)a[c[p]]=a[c[p].substring(0,3)]=k(p);c=function(a){return function(){return this._is?
(this._is=!1,this.getMonth()===a):this.moveToMonth(a,this._orient)}};for(k=0;k<e.length;k++)a[e[k]]=a[e[k].substring(0,3)]=c(k);c=function(a){return function(){"s"!=a.substring(a.length-1)&&(a+="s");return this["add"+a](this._orient)}};k=function(a){return function(){this._dateElement=a;return this}};for(p=0;p<h.length;p++)e=h[p].toLowerCase(),a[e]=a[e+"s"]=c(h[p]),b[e]=b[e+"s"]=k(e)})();Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ")};
Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern)};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern)};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern)};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern)};
Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}};
(function(){Date.Parsing={Exception:function(a){this.message="Parse error at '"+a.substring(0,10)+" ...'"}};for(var a=Date.Parsing,b=a.Operators={rtoken:function(b){return function(c){var f=c.match(b);if(f)return[f[0],c.substring(f[0].length)];throw new a.Exception(c);}},token:function(){return function(a){return b.rtoken(RegExp("^s*"+a+"s*"))(a)}},stoken:function(a){return b.rtoken(RegExp("^"+a))},until:function(a){return function(b){for(var c=[],i=null;b.length;){try{i=a.call(this,b)}catch(d){c.push(i[0]);
b=i[1];continue}break}return[c,b]}},many:function(a){return function(b){for(var c=[],i=null;b.length;){try{i=a.call(this,b)}catch(d){break}c.push(i[0]);b=i[1]}return[c,b]}},optional:function(a){return function(b){var c=null;try{c=a.call(this,b)}catch(i){return[null,b]}return[c[0],c[1]]}},not:function(b){return function(c){try{b.call(this,c)}catch(f){return[null,c]}throw new a.Exception(c);}},ignore:function(a){return a?function(b){var c=null,c=a.call(this,b);return[null,c[1]]}:null},product:function(){for(var a=
arguments[0],c=Array.prototype.slice.call(arguments,1),f=[],i=0;i<a.length;i++)f.push(b.each(a[i],c));return f},cache:function(b){var c={},f=null;return function(i){try{f=c[i]=c[i]||b.call(this,i)}catch(d){f=c[i]=d}if(f instanceof a.Exception)throw f;return f}},any:function(){var b=arguments;return function(c){for(var f=null,i=0;i<b.length;i++)if(null!=b[i]){try{f=b[i].call(this,c)}catch(d){f=null}if(f)return f}throw new a.Exception(c);}},each:function(){var b=arguments;return function(c){for(var f=
[],i=null,d=0;d<b.length;d++)if(null!=b[d]){try{i=b[d].call(this,c)}catch(e){throw new a.Exception(c);}f.push(i[0]);c=i[1]}return[f,c]}},all:function(){var a=a;return a.each(a.optional(arguments))},sequence:function(c,e,f){e=e||b.rtoken(/^\s*/);f=f||null;return 1==c.length?c[0]:function(b){for(var d=null,h=null,u=[],s=0;s<c.length;s++){try{d=c[s].call(this,b)}catch(n){break}u.push(d[0]);try{h=e.call(this,d[1])}catch(q){h=null;break}b=h[1]}if(!d)throw new a.Exception(b);if(h)throw new a.Exception(h[1]);
if(f)try{d=f.call(this,d[1])}catch(v){throw new a.Exception(d[1]);}return[u,d?d[1]:b]}},between:function(a,c,f){var f=f||a,i=b.each(b.ignore(a),c,b.ignore(f));return function(a){a=i.call(this,a);return[[a[0][0],r[0][2]],a[1]]}},list:function(a,c,f){c=c||b.rtoken(/^\s*/);f=f||null;return a instanceof Array?b.each(b.product(a.slice(0,-1),b.ignore(c)),a.slice(-1),b.ignore(f)):b.each(b.many(b.each(a,b.ignore(c))),px,b.ignore(f))},set:function(c,e,f){e=e||b.rtoken(/^\s*/);f=f||null;return function(i){for(var d=
null,h=d=null,u=null,s=[[],i],n=!1,q=0;q<c.length;q++){d=h=null;n=1==c.length;try{d=c[q].call(this,i)}catch(v){continue}u=[[d[0]],d[1]];if(0<d[1].length&&!n)try{h=e.call(this,d[1])}catch(j){n=!0}else n=!0;!n&&0===h[1].length&&(n=!0);if(!n){d=[];for(n=0;n<c.length;n++)q!=n&&d.push(c[n]);d=b.set(d,e).call(this,h[1]);0<d[0].length&&(u[0]=u[0].concat(d[0]),u[1]=d[1])}u[1].length<s[1].length&&(s=u);if(0===s[1].length)break}if(0===s[0].length)return s;if(f){try{h=f.call(this,s[1])}catch(g){throw new a.Exception(s[1]);
}s[1]=h[1]}return s}},forward:function(a,c){return function(b){return a[c].call(this,b)}},replace:function(a,c){return function(b){b=a.call(this,b);return[c,b[1]]}},process:function(a,c){return function(b){b=a.call(this,b);return[c.call(this,b[0]),b[1]]}},min:function(b,c){return function(f){var i=c.call(this,f);if(i[0].length<b)throw new a.Exception(f);return i}}},c=function(a){return function(){var b=null,c=[];1<arguments.length?b=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&
(b=arguments[0]);if(b)for(var i=b.shift();0<i.length;)return b.unshift(i[0]),c.push(a.apply(null,b)),b.shift(),c;else return a.apply(null,arguments)}},e="optional not ignore cache".split(/\s/),h=0;h<e.length;h++)b[e[h]]=c(b[e[h]]);c=function(a){return function(){return arguments[0]instanceof Array?a.apply(null,arguments[0]):a.apply(null,arguments)}};e="each any all".split(/\s/);for(h=0;h<e.length;h++)b[e[h]]=c(b[e[h]])})();
(function(){var a=function(b){for(var c=[],d=0;d<b.length;d++)b[d]instanceof Array?c=c.concat(a(b[d])):b[d]&&c.push(b[d]);return c};Date.Grammar={};Date.Translator={hour:function(a){return function(){this.hour=Number(a)}},minute:function(a){return function(){this.minute=Number(a)}},second:function(a){return function(){this.second=Number(a)}},meridian:function(a){return function(){this.meridian=a.slice(0,1).toLowerCase()}},timezone:function(a){return function(){var b=a.replace(/[^\d\+\-]/g,"");b.length?
this.timezoneOffset=Number(b):this.timezone=a.toLowerCase()}},day:function(a){var b=a[0];return function(){this.day=Number(b.match(/\d+/)[0])}},month:function(a){return function(){this.month=3==a.length?Date.getMonthNumberFromName(a):Number(a)-1}},year:function(a){return function(){var b=Number(a);this.year=2<a.length?b:b+(b+2E3<Date.CultureInfo.twoDigitYearMax?2E3:1900)}},rday:function(a){return function(){switch(a){case "yesterday":this.days=-1;break;case "tomorrow":this.days=1;break;case "today":this.days=
0;break;case "now":this.days=0,this.now=!0}}},finishExact:function(a){var a=a instanceof Array?a:[a],b=new Date;this.year=b.getFullYear();this.month=b.getMonth();this.day=1;for(b=this.second=this.minute=this.hour=0;b<a.length;b++)a[b]&&a[b].call(this);this.hour="p"==this.meridian&&13>this.hour?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");a=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);
this.timezone?a.set({timezone:this.timezone}):this.timezoneOffset&&a.set({timezoneOffset:this.timezoneOffset});return a},finish:function(b){b=b instanceof Array?a(b):[b];if(0===b.length)return null;for(var c=0;c<b.length;c++)"function"==typeof b[c]&&b[c].call(this);if(this.now)return new Date;b=Date.today();if(null!=this.days||this.orient||this.operator){var d,e;e="past"==this.orient||"subtract"==this.operator?-1:1;if(this.weekday)this.unit="day",c=Date.getDayNumberFromName(this.weekday)-b.getDay(),
d=7,this.days=c?(c+e*d)%d:e*d;if(this.month)this.unit="month",c=this.month-b.getMonth(),d=12,this.months=c?(c+e*d)%d:e*d,this.month=null;if(!this.unit)this.unit="day";if(null==this[this.unit+"s"]||null!=this.operator){if(!this.value)this.value=1;if("week"==this.unit)this.unit="day",this.value*=7;this[this.unit+"s"]=this.value*e}return b.add(this)}if(this.meridian&&this.hour)this.hour=13>this.hour&&"p"==this.meridian?this.hour+12:this.hour;if(this.weekday&&!this.day)this.day=b.addDays(Date.getDayNumberFromName(this.weekday)-
b.getDay()).getDate();if(this.month&&!this.day)this.day=1;return b.set(this)}};var b=Date.Parsing.Operators,c=Date.Grammar,e=Date.Translator,h;c.datePartDelimiter=b.rtoken(/^([\s\-\.\,\/\x27]+)/);c.timePartDelimiter=b.stoken(":");c.whiteSpace=b.rtoken(/^\s*/);c.generalDelimiter=b.rtoken(/^(([\s\,]|at|on)+)/);var k={};c.ctoken=function(a){var c=k[a];if(!c){for(var c=Date.CultureInfo.regexPatterns,d=a.split(/\s+/),e=[],h=0;h<d.length;h++)e.push(b.replace(b.rtoken(c[d[h]]),d[h]));c=k[a]=b.any.apply(null,
e)}return c};c.ctoken2=function(a){return b.rtoken(Date.CultureInfo.regexPatterns[a])};c.h=b.cache(b.process(b.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),e.hour));c.hh=b.cache(b.process(b.rtoken(/^(0[0-9]|1[0-2])/),e.hour));c.H=b.cache(b.process(b.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),e.hour));c.HH=b.cache(b.process(b.rtoken(/^([0-1][0-9]|2[0-3])/),e.hour));c.m=b.cache(b.process(b.rtoken(/^([0-5][0-9]|[0-9])/),e.minute));c.mm=b.cache(b.process(b.rtoken(/^[0-5][0-9]/),e.minute));c.s=b.cache(b.process(b.rtoken(/^([0-5][0-9]|[0-9])/),
e.second));c.ss=b.cache(b.process(b.rtoken(/^[0-5][0-9]/),e.second));c.hms=b.cache(b.sequence([c.H,c.mm,c.ss],c.timePartDelimiter));c.t=b.cache(b.process(c.ctoken2("shortMeridian"),e.meridian));c.tt=b.cache(b.process(c.ctoken2("longMeridian"),e.meridian));c.z=b.cache(b.process(b.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),e.timezone));c.zz=b.cache(b.process(b.rtoken(/^(\+|\-)\s*\d\d\d\d/),e.timezone));c.zzz=b.cache(b.process(c.ctoken2("timezone"),e.timezone));c.timeSuffix=b.each(b.ignore(c.whiteSpace),b.set([c.tt,
c.zzz]));c.time=b.each(b.optional(b.ignore(b.stoken("T"))),c.hms,c.timeSuffix);c.d=b.cache(b.process(b.each(b.rtoken(/^([0-2]\d|3[0-1]|\d)/),b.optional(c.ctoken2("ordinalSuffix"))),e.day));c.dd=b.cache(b.process(b.each(b.rtoken(/^([0-2]\d|3[0-1])/),b.optional(c.ctoken2("ordinalSuffix"))),e.day));c.ddd=c.dddd=b.cache(b.process(c.ctoken("sun mon tue wed thu fri sat"),function(a){return function(){this.weekday=a}}));c.M=b.cache(b.process(b.rtoken(/^(1[0-2]|0\d|\d)/),e.month));c.MM=b.cache(b.process(b.rtoken(/^(1[0-2]|0\d)/),
e.month));c.MMM=c.MMMM=b.cache(b.process(c.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),e.month));c.y=b.cache(b.process(b.rtoken(/^(\d\d?)/),e.year));c.yy=b.cache(b.process(b.rtoken(/^(\d\d)/),e.year));c.yyy=b.cache(b.process(b.rtoken(/^(\d\d?\d?\d?)/),e.year));c.yyyy=b.cache(b.process(b.rtoken(/^(\d\d\d\d)/),e.year));h=function(){return b.each(b.any.apply(null,arguments),b.not(c.ctoken2("timeContext")))};c.day=h(c.d,c.dd);c.month=h(c.M,c.MMM);c.year=h(c.yyyy,c.yy);c.orientation=b.process(c.ctoken("past future"),
function(a){return function(){this.orient=a}});c.operator=b.process(c.ctoken("add subtract"),function(a){return function(){this.operator=a}});c.rday=b.process(c.ctoken("yesterday tomorrow today now"),e.rday);c.unit=b.process(c.ctoken("minute hour day week month year"),function(a){return function(){this.unit=a}});c.value=b.process(b.rtoken(/^\d\d?(st|nd|rd|th)?/),function(a){return function(){this.value=a.replace(/\D/g,"")}});c.expression=b.set([c.rday,c.operator,c.value,c.unit,c.orientation,c.ddd,
c.MMM]);h=function(){return b.set(arguments,c.datePartDelimiter)};c.mdy=h(c.ddd,c.month,c.day,c.year);c.ymd=h(c.ddd,c.year,c.month,c.day);c.dmy=h(c.ddd,c.day,c.month,c.year);c.date=function(a){return(c[Date.CultureInfo.dateElementOrder]||c.mdy).call(this,a)};c.format=b.process(b.many(b.any(b.process(b.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(a){if(c[a])return c[a];throw Date.Parsing.Exception(a);}),b.process(b.rtoken(/^[^dMyhHmstz]+/),function(a){return b.ignore(b.stoken(a))}))),
function(a){return b.process(b.each.apply(null,a),e.finishExact)});var p={};c.formats=function(a){if(a instanceof Array){for(var e=[],d=0;d<a.length;d++)e.push(p[a[d]]=p[a[d]]||c.format(a[d])[0]);return b.any.apply(null,e)}return p[a]=p[a]||c.format(a)[0]};c._formats=c.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);c._start=b.process(b.set([c.date,c.time,c.expression],c.generalDelimiter,c.whiteSpace),e.finish);c.start=function(a){try{var b=c._formats.call({},
a);if(0===b[1].length)return b}catch(d){}return c._start.call({},a)}})();Date._parse=Date.parse;Date.parse=function(a){var b=null;if(!a)return null;try{b=Date.Grammar.start.call({},a)}catch(c){return null}return 0===b[1].length?b[0]:null};Date.getParseFunction=function(a){var b=Date.Grammar.formats(a);return function(a){var e=null;try{e=b.call({},a)}catch(h){return null}return 0===e[1].length?e[0]:null}};Date.parseExact=function(a,b){return Date.getParseFunction(b)(a)};
(function(a,b){var c=a.document,e=c.documentElement,h=[Object.prototype.toString],k=navigator.userAgent.toLowerCase(),p=navigator.appMinorVersion,f,i=a.fuel=a.fuel||{},d;try{for(;a!==a.top;)a=a.top;a!==self&&a.location.replace(self.location.href)}catch(y){}d=f={extend:function(a,b,c){if(b){var a=a||d,v=d.is.fn(b),j;for(j in b)c&&void 0==(b[j]||a.prototype[j])||(v?a.prototype[j]=extendWidth[j]:a[j]=b[j]);return f}},addEvent:function(a,b,c){c=c||window;return c.attachEvent?c.attachEvent("on"+a,b):c.addEventListener(a,
b,!1)},contains:function(a,b){for(var c=a.length;c--;)if(a[c]==b)return c;return!1},is:{fn:function(a){return"[object Function]"===h[0].call(a)},array:function(a){return"[object Array]"===h[0].call(a)},object:function(a){return"[object Object]"===h[0].call(a)},string:function(a){return"[object String]"===h[0].call(a)},number:function(a){return"[object Number]"===h[0].call(a)},node:function(a){return a.nodeType},bool:function(a){return"[object Boolean]"===h[0].call(a)}},browser:{version:(k.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],servicepack:p?p.toLowerCase().replace(/;/g,""):!1,webkit:/webkit/.test(k),opera:/opera/.test(k),ie:/msie/.test(k)&&!/opera/.test(k),firefox:/mozilla/.test(k)&&!/(compatible|webkit)/.test(k),chrome:/google/.test(k)&&/webkit/.test(k),mobile_safari:/Apple.*Mobile.*Safari/.test(k),iphone:/(iphone|ipod)/.test(k)},supports:{workers:!(!a.Worker||!Worker.prototype.terminate),gears:!(!a.google||!a.google.gears),sessionStorage:!!a.sessionStorage,localStorage:!!a.localStorage,json:!(!a.JSON||!a.JSON.parse)},
params:function n(b){for(var b=(b?b:a.location.search.substr(1)).split("&"),c={},j=b.length,g,d,e;j--;)g=b[j].split("="),d=unescape(g[0]?g[0]:""),g=unescape(g[1]?g[1]:""),g=g.match(/^0$|^[1-9]\d*$/)?parseInt(g):g.toLowerCase(),c[d]?("object"!=typeof c[d]&&(e=c[d],c[d]=[e]),c[d].push(g)):c[d]=g;c._parser=n;return c}(),poll:function(a,b,d){var j=c.getElementById(a);if(j)return b(j);(function(g){return(g=c.getElementById(a))?b(g):setTimeout(arguments.callee,d||10)})(j);return f},chunk:function(a,b,c,
d){var g=a.concat();setTimeout(function(){var e=+new Date;do b.call(c,g.shift());while(0<g.length&&50>+new Date-e);if(0<g.length)setTimeout(arguments.callee,25);else return d?d(a):!1},25);return f},notify:function(){this.observers=[];this.suppressNotifications=!1;this.addObserver=function(a){if(a){for(var b=this.observers.length,c=b;b--;)if(this.observers[b]==a)return;this.observers[c]=a}};this.removeObserver=function(a){if(a)for(var b=this.observers.length;b--;)if(this.observers[b]==a)return this.observers.splice(b,
1)};this.notifyObservers=function(a,b){if(a&&!this.suppressNotifications)for(var c=this.observers.length,d;c--;)if(d=this.observers[c])if("function"==typeof d)d(a,this,b);else if(d[a]&&"function"==typeof d[a])d[a](this,b)};this.enableNotifications=function(){this.suppressNotifications=!1};this.disableNotifications=function(){this.suppressNotifications=!0}},scrollto:function(a){var b=scroll,d,j,g=0;a.style.left&&/px/i.test(a.style.left)?parseInt(a.style.left,10):(j=(d=!+"\u000b1"?a.currentStyle:c.defaultView.getComputedStyle(a,
null))&&d.left&&/px/i.test(d.left))&&parseInt(d.left,10);if(a.style.top&&/px/i.test(a.style.top))g=parseInt(a.style.top,10);else if(d||(d=!+"\u000b1"?a.currentStyle:c.defaultView.getComputedStyle(a,null)),(j=d&&d.top&&/px/i.test(d.top))&&(g=parseInt(d.top,10)),!j||0==g)g=a.offsetTop;b(0,g)},forEach:function(b,c){if(!b)return f;var e,j=0,g=[];if(d.is.array(b))for(e=b.length;j<e&&!(g[g.length]=c.apply(a,[b[j],j]),!1===g[g.length-1]);j++);else for(e in b)if(g[g.length]=c.apply(a,[b[e],e]),!1===g[g.length-
1])break;return g.length?g:f},stringify:function(a){var b=typeof a;if("object"!=b||null===a)return"string"==b&&(a='"'+a+'"'),""+a;var c,j,g=[],e=d.is.array(a);for(c in a)"ds_JSONObject"!==c&&(j=a[c],b=typeof j,"string"==b?j='"'+j+'"':"object"==b&&null!==j&&(j=d.stringify(j)),g.push((e?"":'"'+c+'":')+(""+j)));return(e?"[":"{")+(""+g)+(e?"]":"}")},like:function(a){var a=a||"en_GB",b=c.getElementById("social_share");b&&setTimeout(function(){var d=c.createElement("iframe"),j=escape(window.location.protocol+
"//"+window.location.host+window.location.pathname);d.allowTransparency=!0;d.scrolling="no";d.frameBorder="no";d.style.cssText="border:none; overflow:hidden; width:400px; height:35px;";d.src="http://www.facebook.com/plugins/like.php?href="+j+"&layout=default&show_faces=false&width=400&action=like&colorscheme=light&locale="+a+"&height=35";b.appendChild(d)},1E3)},cache:function(){var b={},c=function(){return d.browser.ie&&6>=d.browser.version&&"sp3"!=d.browser.servicepack},e=function(a){var b;if(d.supports.json)try{b=
JSON.parse(a)}catch(c){b=Function("return "+a)()}else b=Function("return "+a)();return b||!1},j={getKey:function(){var a=d.cookie.getItem("cacheToken"),b=d.params;return a||[b.destination_complete||b.destination,b.id||"-",b.arrival,b.departure,b.lang,b.num_persons?b.num_persons:b.num_persons_fixed,b.type?b.type:"-"].join("/")},setItem:function(g,e){var g=g||j.getKey(),l;if(e=e||(b&&g?b[g]:!1))a:{if(l=e,!d.is.string(l)){if(d.is.array(l)||d.is.object(l)){l=d.stringify(l);break a}try{l=l.toString()}catch(i){}}}else l=
!1;e=l;if(!e||c()||!d.is.string(e)||!g||void 0==e)return f;if(d.supports.sessionStorage)sessionStorage.setItem(g,e);else{if(!(2E3>Math.round(a.name.length/1024)))a.name="";a.name+=(a.name.match("::")?"||":"")+[g,e].join("::")}return f},getItem:function(b,n){if((b=b||j.getKey())&&!c()){if(d.supports.sessionStorage)return l=sessionStorage.getItem(b),n?l?l:"[no-data]":l?e(l.value||l):!1;for(var l=a.name.split("||"),i=l.length,o;i--;)if(o=l[i].split("::"),o[0]===b)return e(o[1]);return!1}},clear:function(){if(d.supports.sessionStorage)if(sessionStorage.clear)sessionStorage.clear();
else{if(sessionStorage.removeItem)for(var b in sessionStorage)sessionStorage.removeItem(b)}else a.name="";return f},setInternals:function(a,c,d){c=c||j.getKey();if(!c||!a)return f;b[c]=a;d&&i&&i.env&&f.extend(i.env,d);return f},getInternals:function(a){a=a||j.getKey();return b[a]}};return j}(),cookie:function(){var a=function(a,b,e){var n={days:1,domain:c.domain,path:"/"},q=new Date,a=a+"=";d.extend(n,e);q.setTime(q.getTime()+864E5*n.days);n.days=q.toGMTString();a=[a+escape(b),"expires="+n.days,"path="+
n.path,"domain="+n.domain].join(";");return 8190<c.cookie.length+a.length?!1:c.cookie=a},b=function(a){for(var b=c.cookie.split(";"),d=b.length,e,a=a+"=";d--;){for(e=b[d];" "==e.charAt(0);)e=e.substring(1,e.length);if(0==e.indexOf(a))return unescape(e.substring(a.length,e.length))}return!1},e=function(b){return a(b,"",{days:-1})};return{getItem:b,setItem:a,clear:e,once:function(a){var c=b(a);e(a);return c}}}(),eval:function(a){return eval(a)},remove:function(a){for(var b=1,c=arguments,d=c.length;b<
d;b++)delete a[c[b]];return f},script:{clean:function(a){return"string"==typeof a&&0<a.length?/^(.*\/)?([^?\/#]*)(\?.*)?(#.*)?$/i.exec(a)[2].toLowerCase():""},exists:function(a){for(var b=c.getElementsByTagName("script"),e=b.length;e--;)if("string"===typeof b[e].src&&a===d.script.clean(b[e].src))return!0;return!1}},ready:!1,readyQue:[],onDOMReady:function(a){if(d.ready)return a.call(c,d,i);if(!d.readyQue.length){var b=function(){if(!d.ready){d.ready=!0;for(var a=d.readyQue.length;a--;)d.readyQue[a].call(c,
d,i);d.readyQue.length=0}};c.readyState&&!+"\u000b1"?"https"!==location.protocol?(c.write("<script id='vanillaready' defer=true src=//:><\/script>"),c.getElementById("vanillaready").onreadystatechange=function(){(!this.readyState||!("complete"!==this.readyState&&"loaded"!==this.readyState))&&b()}):function(){try{e.doScroll("left")}catch(a){return setTimeout(arguments.callee,0)}b()}():c.readySate&&d.is.webkit&&525>d.is.version?function(){return/loaded|complete/.test(c.readyState)?b():setTimeout(arguments.callee,
0)}():c.addEventListener&&c.addEventListener("DOMContentLoaded",b,!1);d.addEvent("load",b)}d.readyQue[d.readyQue.length]=a},getLanguage:function(){var a=c.getElementsByTagName("html")[0];return(a.getAttribute("lang")||a.getAttribute("xml:lang")||"en").toLowerCase()},floatable:function(){function a(){if(!a.blinds)a.blinds=new Spry.Effect.Blind(Spry.$$("img",i[0])[0],{duration:500,from:"0%",to:"100%",toggle:!0});f=!f;a.blinds.start()}function b(a){for(var c=+a.offsetTop,a=a.offsetParent;a;)c+=a.offsetTop,
a=a.offsetParent;return c}var e=c.body,j=Spry.$$("#header",e),g=Spry.$$("div.search-header",e),i=g,e=Spry.$$("#frm-newsletter"),f=!1,h=0,o=d.browser.ie&&6==d.browser.version;Spry.Effect.getDimensionsRegardlessOfDisplayState(g[0]);var m=Spry.Effect.getDimensionsRegardlessOfDisplayState(i[0]).height,w=b(g[0]),x=b(e[0])-(Spry.Effect?Spry.Effect.getDimensionsRegardlessOfDisplayState(i[0]).height:0);setTimeout(function(){Spry.$$("#arrival, #departure, a.date-picker-control",Spry.$("frm-search")).addEventListener("click",
function(){140<h&&setTimeout(function(){Spry.$$("div.datePicker.calendars-small").setStyle("top:"+(h+(m-(o?70:50)))+"px")},100)})},200);Spry.Utils.addEventListener(window,"scroll",function(){var b=c.documentElement.scrollTop||c.body.scrollTop;b>w&&!(b>x)?(!f&&!o&&a(),j.setStyle("margin-bottom:"+m+"px"),g.setStyle(!o?"position:fixed;top:0px;z-index:950;width:100%;left:0":"position:absolute;top:"+b+"px;z-index:950;left:0px;").removeClassName("clear"),i.setStyle(!o?"position:fixed;top:0px;z-index:950;width:100%;left:0":
"position:absolute;top:"+(b+0)+"px;z-index:950;left:0px;").removeClassName("clear")):(f&&!o&&a(),j.setStyle("margin-bottom:auto"),i.setStyle("position:relative;top:auto;width:auto;").addClassName("clear"),g.setStyle("position:relative;top:auto;width:auto;").addClassName("clear"));h=b})}};d.extend(i,{vanillatize:function(){return d},env:{lang:d.getLanguage()},parseDate:function(a,b,c){if(!a||!/arrival/g.test(a))return{};var a=d.params._parser(a),e=b.parseDateString(a.arrival,"Y-ds-m-ds-d").clearTime(),
g=b.parseDateString(a.departure,"Y-ds-m-ds-d").clearTime();a.arrival=b.printFormattedDate(e,c);a.departure=b.printFormattedDate(g,c);a.rangeLow=b.printFormattedDate(e.addDays(1),"Y-m-d");a.rangeHigh=b.printFormattedDate(e.addDays(31),"Y-m-d");return a},_autosuggest:function(){if(!i.data)i.data={};var a=i.data,b,e=c.body,j=Spry.$$("#search",e),g=Spry.$$,f=i._autosuggest.translations,h,k;if(!a.suggestions)b=Spry.$("suggestions"),a.suggestions=new Spry.Data.DataSet({url:"http://autocomplete.hotels.nl/complete.php?language="+
d.getLanguage(),name:"suggestions",useUnique:!1,jsonpsuffix:"_suggest"}),a.suggestions.dataWasLoaded=!0,a.suggestions.addObserver({onPostLoad:function(){if(a.suggestions.data&&a.suggestions.data.length){for(var b=a.suggestions.data[0].data,c=0,d=b.length,e=[],g={},j=[],i={};c<d;c++)i[b[c].type]||(i[b[c].type]=[],j.push(b[c].type)),i[b[c].type].push(b[c]);c=0;for(d=j.length;c<d;c++)e.push({name:f[j[c]]?f[j[c]]:j[c],type:j[c],destinations:i[j[c]],ds_RowID:c}),g[c]=e[e.length-1].ds_JSONObject=e[e.length-
1];a.suggestions.data=e;a.suggestions.dataHash=g}}}),a.destination=new Spry.Data.NestedDataSet(a.suggestions,"destinations",{name:"destinations"}),a.destination.addObserver({onPostLoad:function(){try{for(var b=a.suggestions.data,c=b.length,d=Spry.$("search").value,e=d.replace(/([-.*+?^${}()|[\]\/\\])/,"\\$1").replace(/([\.\/\]\[\{\}\(\)\\\$\^\?\*\|\!\=\+\-])/g,"\\$1"),g=RegExp("(<[^>]*>)|("+(e.split(" ").join("|")||"amsterdam")+")","igm"),j=RegExp("^"+e,"im"),i,f,h,q,l,t;c--;)if(i=a.destination.getNestedDataSetForParentRow(b[c])){h=
i.getData();for(f=h.length;f--;)q=h[f],h[f].hotel_count=h[f].nr_hotels&&0<h[f].nr_hotels?"( "+h[f].nr_hotels+" )":"",h[f].result=h[f].name.replace(g,function(a,b,c){return"<strong>"+c+"</strong>"}),j.test(h[f].name)&&(l=h[f])}if(q){q=l||q;if(t=Spry.$("type"))t.value="";if(t=Spry.$("autosuggest_id"))t.value="";if(t=Spry.$("autosuggest_link"))t.value=""}if(t=Spry.$("complete"))t.value=l?l.name.replace(j,d):"";t&&l&&Spry.Utils.setAttribute(t,"data-suggestion",(l.name||"")+"|"+(l.type||"")+"|"+(l.id||
"")+"|"+(l.link||""));if(t=Spry.$("misspelled"))t.innerHTML=b.length&&!l?d:""}catch(v){}}}),Spry.Widget.AutoSuggest.onloadDidFire=!0,h=Spry.Widget.AutoSuggest.prototype.setValue,Spry.Widget.AutoSuggest.prototype.setValue=function(a,b){var c=Spry.$("misspelled");if(c)c.innerHTML="";if(c=Spry.$("complete"))c.value="";h.apply(this,arguments)},k=Spry.Widget.AutoSuggest.prototype.handleKeyUp,Spry.Widget.AutoSuggest.prototype.handleKeyUp=function(a){var b=Spry.$("complete");if(a&&39===a.keyCode&&b&&""!==
b.value)return this.setValue(b.getAttribute("data-suggestion"),!0);if(b)b.value="";if(b=Spry.$("misspelled"))b.innerHTML="";k.apply(this,arguments);if(a&&(13==a.keyCode||40==a.keyCode||38==a.keyCode)){for(var d=c.getElementById("autosuggest").getElementsByTagName("li"),e=d.length,g;e--;)if(Spry.Utils.hasClassName(d[e],"hoverSuggestClass")){g=d[e];break}b&&this.setValue(g.getAttribute("spry:suggest"),13==a.keyCode)}},i.autosuggest=new Spry.Widget.AutoSuggest("autosuggest",b,a.destination,"name",{loadFromServer:!0,
urlParam:"prefix",containsString:!0,minCharsType:3,callback:function(a){var b=Spry.$("type");if(b)b.value=a.length?a[1]:"city";if(b=Spry.$("autosuggest_id"))b.value=a.length&&a[2]?a[2]:"";if(b=Spry.$("autosuggest_link"))b.value=a.length&&a[3]?a[3]:"";if(b=Spry.$("complete"))b.value=""},hasFocus:!0,stopFocus:!1,moveNextKeyCode:40,movePrevKeyCode:38}),g("#autosuggest",e).forEach(function(){g("div",this).setAttribute("spry:region","fuel.data.suggestions fuel.data.destination");g("ul",this).setAttribute("spry:repeat",
"fuel.data.suggestions");var a=g("li",this);Spry.Utils.setAttribute(a[0],"spry:content","{fuel.data.suggestions::name}");Spry.Utils.setAttribute(a[1],"spry:repeat","fuel.data.destination");Spry.Utils.setAttribute(a[1],"spry:suggest","{fuel.data.destination::name}|{fuel.data.suggestions::type}|{fuel.data.destination::id}|{fuel.data.destination::link}");Spry.Utils.setAttribute(a[1],"spry:content","{fuel.data.destination::result}<i>, {fuel.data.destination::country}</i> <span>{fuel.data.destination::hotel_count}</span>")}),
Spry.Data.initRegions(b),j.removeEventListener("keydown",arguments.callee)},_datePicker:function(a,b){var c=Spry.$$('input[name="arrival"]'+(b.lazy||":not(.lazy)")),e=Spry.$$('input[name="departure"]'+(b.lazy||":not(.lazy)")),g=d.cookie.getItem("arrdate"),f=Spry.$("no-depart"),h=0,k,o,g=i.parseDate(g,a,b.format);if(g.arrival&&a.parseDateString(g.arrival,b.format)){var m=a.parseDateString(g.arrival,b.format).clearTime();o=a.printFormattedDate(m.clone().addDays(1),"Y-m-d");k=a.printFormattedDate(m.clone().addDays(30),
"Y-m-d")}if(b.today){var m=a.parseDateString(b.today,"Y-ds-m-ds-d").clearTime(),w=m.clone().addDays(1);if(+a.printFormattedDate(m,"Y-m-d")>+b.arrivalLow&&(b.arrivalLow=a.printFormattedDate(m,"Y-m-d"),b.arrivalHigh=a.printFormattedDate(m.clone().addMonths(12).moveToLastDayOfMonth().addDays(-1),"Y-m-d"),b.departureLow=a.printFormattedDate(w,"Y-m-d"),b.departureHigh=a.printFormattedDate(m.clone().addDays(30),"Y-m-d"),g&&g.arrival&&-1==a.parseDateString(g.arrival,b.format).compareTo(m)))g.arrival=a.printFormattedDate(m,
b.format),g.departure=a.printFormattedDate(w,b.format)}c.forEach(function(c,d){var i={},v={},m=e[d];c.id=c.id||"dparrive-"+h;m.id=m.id||"dpdepart-"+h++;if(g&&g.arrival&&g.departure)c.value=g.arrival,m.value=g.departure;i[c.id]=v[m.id]=b.format;a.createDatePicker({formElements:i,rangeLow:b.arrivalLow,rangeHigh:b.arrivalHigh,showWeeks:!0,noToday:!0,noFadeEffect:!0,statusFormat:"l-cc-sp-d-sp-F-sp-Y",close:b.close||"close",callbackFunctions:{dateset:[function(c){if(c.date){if("departure"==m.id&&f&&this.firstRunRan)f.checked=
!1;var c=(new Date(c.date)).addDays(1),d=this.firstRunRan;this.firstRunRan=!0;if(d||!/\d+/.test(m.value))a.setRangeLow(m.id,a.printFormattedDate(c,b.output,!0)),m.value=a.printFormattedDate(c,b.format,!0),a.setRangeHigh(m.id,a.printFormattedDate(c.addDays(29),b.output,!0))}}]}});a.createDatePicker({formElements:v,rangeLow:o||g.departure_rangeLow||b.departureLow,rangeHigh:k||g.departure_rangeHigh||b.departureHigh,showWeeks:!0,noToday:!0,noFadeEffect:!0,statusFormat:"l-cc-sp-d-sp-F-sp-Y",close:b.close||
"close",callbackFunctions:{dataset:[function(){if(!this.firstRunRan)return this.firstRunRan=!0;if("departure"==m.id&&f&&this.firstRunRan)f.checked=!1}]}});c.readOnly=m.readOnly=!0}).fuse(e).addEventListener("keyup",function(){c.forEach(function(){a.hide(this.id)});a.show(this.id)}).addEventListener("click",function(){a.show(this.id)})},_ready:function(b,c,d){i._datePicker.call(a,b[0],{format:b[1],output:b[2],click:b[3],arrivalLow:b[4],arrivalHigh:b[5],departureLow:b[6],departureHigh:b[7],close:b[8],
today:b[9]});d("ul.service").forEach(function(){var b,c,e=d("li.change",this);d("li.change span + a",this);e.forEach(function(a,c){Spry.Utils.addEventListener(this,"click",function(){b&&Spry.Utils.removeClassName(b,"active");b=e[c];Spry.Utils.addClassName(b,"active");return!1})});d("ul",this).addEventListener("mouseover",function(){try{clearTimeout(c)}catch(a){}});d("ul",this).addEventListener("mouseout",function(){c=setTimeout(function(){Spry.Utils.removeClassName(b,"active")},1E3)});d("ul a",this).addEventListener("click",
function(){if(this.href)a.location=this.href})})},_init:function(b,d,e,j,g){i._autosuggest.translations=g;var b=Spry.$("frm-search"),h=e("#search",d).addEventListener("keydown",i._autosuggest).setAttribute("AutoComplete","off");if(h[0]){h[0].getAttribute("data-placeholder");var l=Spry.$("complete");e("form.newsletter",d).forEach(function(){var a=e("#email",d).addEventListener("focus",function(){return this.value==a?this.value="":!1}).addEventListener("blur",function(){return""==this.value?this.value=
a:!1})[0].value});var k=!1;if(Spry.$("tooltip")&&e(".tip").length)k=!0,i._tooltip=new Spry.Widget.Tooltip("tooltip",".tip",{followMouse:!0}),e(".tip").addEventListener("mouseover",function(){if(this.title)this.tooltipcontent=this.title,this.title="";Spry.$("tooltip").innerHTML="<h3>"+this.innerHTML+"</h3><p>"+this.tooltipcontent+"</p>"}),f.browser.webkit&&i._tooltip.attachBehaviors();e(b).forEach(function(){var a=h.addEventListener("focus",function(){var b=Spry.$("type");if(b)b.value="";return this.value==
a?this.value="":!1}).addEventListener("blur",function(){return""==this.value?this.value=a:!1})[0].value}).addEventListener("submit",function(){if(h[0].value==j||""==h[0].value){h[0].style.backgroundColor="white";if(l)l.style.display="none";Spry.Effect.DoShake(h[0],{duration:500,finish:function(){if(!k)h[0].style.backgroundColor="transparent";if(l)l.style.display=""}});return!1}});if(l&&(l.value="",Spry.is.mozilla))l.style.cssText="border: 1px solid #FFFFFF; margin-left: 1px; margin-top: 1px;";e("ul.page-options li:last-child",
d).addEventListener("click",function(){a.print()});Spry.Utils.addEventListener(a,"unload",function(){e("ul.page-options li:last-child",d).removeEventListener("click",function(){a.print()});Spry.Utils.removeEventListener(a,"unload",arguments.callee)});(function(a,b){window._gaq=window._gaq||[];_gaq.push(["_setAccount","UA-499674-5"]);_gaq.push(["_setDomainName","www.hotels.nl"]);_gaq.push(["_trackPageview"]);_gaq.push(["_trackPageLoadTime"]);var c=a.createElement(b);c.async=!0;c.src="http"+("https:"==
a.location.protocol?"s://ssl":"://www")+".google-analytics.com/ga.js";b=a.getElementsByTagName(b)[0];b.parentNode.insertBefore(c,b)})(c,"script")}},inject:function(b){var f=function(){d.notify.call(this);var a=this;this.script=function(){var a=new k(this);return a.script.apply(a,arguments)};this.wait=function(){var a=new k(this);return a.wait.apply(a,arguments)};this.diesel=function(a,b){return new k(this,b,a)};this.observe=function(b){a.addObserver(b);return a}},k=function(a,b,d){this.scripts={};
this.queue=!!b;this.observer=a;this.location=d||c.getElementsByTagName("head")[0]||e;this.ready=this.loading=!1;this.que=null;this.executeables=[]};k.prototype={load:function(e,g,f,l){var k=d.script.clean(e),o=this,m=function(b){if(!((this.readyState||"[object Opera]"===h[0].call(a.opera))&&"complete"!==this.readyState&&"loaded"!==this.readyState||b.loaded)){this.onload=this.onreadystatechange=null;b.loaded=!0;setTimeout(function(){o.observer.notifyObservers(k,{vanilla:d,fuel:i,ready:d.ready,script:this})},
0);for(var c in o.scripts)if(o.scripts[c]!=Object.prototype[c]&&!o.scripts[c].loaded)return;o.ready=!0;if(null!==o.que)return o.que()}};if(l&&(void 0!==typeof b[k]||d.script.exists(k)))return null!==this.que?this.que():"";void 0==this.scripts[k]?this.scripts[k]={loaded:!1}:this.scripts[k].loaded=!1;this.loading=b[k]=!0;setTimeout(function(){var a=c.createElement("script");a.setAttribute("type",g||"text/javascript");a.setAttribute("language",f||"javascript");a.setAttribute("src",e);a.onload=a.onreadystatechange=
function(){m.call(a,o.scripts[k])};o.location.appendChild(a)})},script:function(){var a=arguments,b=a.length,c=0,e=this,f;return this.executeOrQue(function(){for(;c<b;c++)f=typeof a[c],d.is.array(a[c])?a.callee.apply(null,a[c]):"object"===f?e.load(a[c].src,a[c].type,a[c].lang,a[c].duplicate):"string"===f&&e.load(a[c]);return e},e)},wait:function(a){var b=a,c=new k(this.observer,!0,this.location),e=this,a=function(){try{d.is.fn(b)&&b()}catch(a){}return c.processQues()};return this.executeOrQue(function(){e.loading&&
!e.ready?e.que=a:setTimeout(a,0);return c},c)},executeOrQue:function(a,b){return this.queue?(this.executeables[this.executeables.length]=a,b):a()},processQues:function(){for(var a=0,b=this.executeables,c=b.length;a<c;a++)b[a](d,i,this);this.observer.notifyObservers("processedQue",{vanilla:d,fuel:i,ready:d.ready,que:this.executeables.concat()});this.executeables.length=0},diesel:function(a,b){return new k(this.observer,b,a)}};f.prototype=new d.notify;f.prototype.constructor=f;return new f}({})});if("[object Opera]"===
h[0].call(a.opera))history.navigationMode="compatible";else if(!+"\u000b1"&&6==d.browser.version)try{c.execCommand("BackgroundImageCache",!1,!0)}catch(u){}b.content=(b.scripts=c.getElementsByTagName("script"))[b.scripts.length-1].innerHTML;d.onDOMReady(function(){b.end=(new Date).valueOf();var a=c.getElementById("parsetime");if(a)a.innerHTML=b.end-i.start});d.addEvent("load",function(){b.enddate=(new Date).valueOf();var a=c.getElementById("loadtime");if(a)a.innerHTML=b.enddate-i.start});return setTimeout(Function(b.content.replace(/(\/\*([\s\S]*?)\*\/)|(?:^\s*<\!--\s*|\s*(?:\/\/)?\s*--\>\s*$)|(<\!--([\s\S]*?)--\>)/gm,
"")),0)})(window,{});

