(function(){var e,t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};k=/[\t\r\n]/g,s=/\S+/g,M=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=typeof void 0,C=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,O=/^-ms-/,L=/-([\da-z])/gi,f=["Webkit","O","Moz","ms"],P=function(e){return(""+e).replace(M,"")},S=function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},w=function(e){var t;return t=e&&(e.ownerDocument||e).documentElement,t?t.nodeName!=="HTML":!1},h=function(e,t){return t.toUpperCase()},i=function(e){return e.replace(O,"ms-").replace(L,h)},H=function(e,t){var n,r,i;if(F.call(e,t)>=0)return t;n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=f.length;while(r--){t=f[r]+n;if(t in e)return t}return i},m=function(e){var t;t=e.offsetParent||document.documentElement;while(t&&!S(t,"html")&&(t.style.position||"static")==="static")t=t.offsetParent;return t||document.documentElement},N=function(e){return Number((e||"0px").split("px")[0])},D=function(){var e,t;return t=document.createElement("div"),t.innerHTML="<a href='/a'>a</a>",e=t.getElementsByTagName("a")[0],t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",{cssFloat:!!e.style.cssFloat,clearCloneStyle:t.style.backgroundClip==="content-box"}}(),x={"class":"className"},l={"float":D.cssFloat?"cssFloat":"styleFloat"},T={},t={},r={},E={},l={},u={},a={columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},B=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},b=function(e,t){var n;return n=" "+t+" ",e.nodeType===1&&(" "+e.className+" ").replace(k," ").indexOf(n)>=0?!0:!1},A=function(e,t){var n,r,i,o,u;u=typeof t=="string"&&t;if(u){n=(t||"").match(s)||[],i=e.nodeType===1&&(e.className?(" "+e.className+" ").replace(k," "):"");if(i){o=0;while(r=n[o++])while(i.indexOf(" "+r+" ")>=0)i=i.replace(" "+r+" "," ");return e.className=t?P(i):""}}},e=function(e,t){var n,r,i,o,u;u=typeof t=="string"&&t;if(u){n=(t||"").match(s)||[],i=e.nodeType===1&&(e.className?(" "+e.className+" ").replace(k," "):" ");if(i){o=0;while(r=n[o++])i.indexOf(" "+r+" ")<0&&(i+=r+" ");return e.className=P(i)}}},y=function(e,t){var n,r,i,s;r=e.nodeType;if(!e||r===3||r===8||r===2)return;return i=r!==1||!w(e),i&&(t=x[t]||t,n=T[t]),n&&get in n&&(s=n.get(e,t))!==null?s:e[t]},p=function(e,n){var i,s,u,a;s=e.nodeType;if(!e||s===3||s===8||s===2)return;return typeof e.getAttribute===o?y(e,n):(u=s!==1||!w(e),u&&(n=n.toLowerCase(),i=t[n]||(C.test(n)?r:E)),i&&u&&"get"in i&&(a=i.get(e,n))!==null?a:(typeof e.getAttribute!==o&&(a=e.getAttribute(n)),a===null?void 0:a))},_=function(e,t,n){var r,s,o,f;if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;s=i(t),o=e.style,t=l[s]||(l[s]=H(o,s)),r=u[t]||u[s],f=typeof n;if(n===null||f==="number"&&isNaN(n))return;f==="number"&&!a[s]&&(n+="px"),!D.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(o[t]="inherit");if(!r||!("set"in r)||(n=r.set(e,n))!==void 0)try{o[t]=n}catch(c){}return n},v=function(e){var t,n,r,i;return i=window,t={top:0,left:0},n=e.ownerDocument,r=n.documentElement,typeof e.getBoundingClientRect!="undefined"&&(t=e.getBoundingClientRect()),{top:t.top+(i.pageYOffset||r.scrollTop)-(r.clientTop||0),left:t.left+(i.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}},g=function(e){var t,n,r;return r={top:0,left:0},n=m(e),t=v(e),S(n,"html")||(r=v(n)),r.top+=N(n.style.borderTopWidth),r.left+=N(n.style.borderLeftWidth),{top:t.top-r.top-N(e.style.marginTop),left:t.left-r.left-N(e.style.marginLeft)}},d=function(e){return e.clientHeight},c=function(e,t,n,r){var i,s,o,u,a=this;return o=(n||"").split("."),s=o.length>1,i=s?o[1]:null,u=s?null:n.toLowerCase(),B(e,t,function(e){var t,n;t=e.target||e.srcElement;while(t){if(t.tagName&&(!u||t.tagName.toLowerCase()===u)&&(!i||a.hasClass(t,i)))return n={currentTarget:t,target:t,srcElement:t,keyCode:e.keyCode,preventDefault:function(){return typeof e.preventDefault=="function"&&e.preventDefault(),e.returnValue=!1},stopPropagation:function(){return typeof e.stopPropagation=="function"&&e.stopPropagation(),e.cancelBubble=!0}},r.call(a,n);t=t.parentNode}})},n=function(e,t,n){return B(e,t,function(e){var t,r;return t=e.target||e.srcElement,r={currentTarget:t,target:t,srcElement:t,keyCode:e.keyCode,preventDefault:function(){return typeof e.preventDefault=="function"&&e.preventDefault(),e.returnValue=!1},stopPropagation:function(){return typeof e.stopPropagation=="function"&&e.stopPropagation(),e.cancelBubble=!0}},n.call(this,r)})};var I=function(e,t,n){return typeof document.getElementsByClassName=="function"&&t!=null?e.getElementsByClassName(t):(t=q(t),R(e,t,n))},q=function(e){return(e||"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},R=function(e,t,n){var r;return r=[],U(e.childNodes,r,t,n),r},U=function(e,t,n,r){var i,s,o;s=0,o=[];while(s<e.length)i=e[s],i.tagName&&(!r||i.tagName.toLowerCase()===r)&&(!n||b(i,n))&&t.push(i),U(i.childNodes,t,n,r),o.push(s++);return o};(j=window.Skyscanner)==null&&(window.Skyscanner={}),window.Skyscanner.dom_wrapper={hasClass:b,removeClass:A,addClass:e,getAttr:p,setCss:_,getPosition:g,getOffset:v,getHeight:d,delegateEvent:c,bindEvent:n,findByClass:I}}).call(this),function(){function n(){}function r(){this.channels={}}function i(e){var t=new Error(e);return t.toString=function(){return this.message},t}function s(t){e.debug&&console.log(t)}window.Skyscanner==undefined&&(window.Skyscanner={});var e=window.Skyscanner,t=[].slice;e.utils=n,n.utf8=function(e){var t,n,r="",i=0;while(i<e.length){t=e.charCodeAt(i++);if(t>=56320&&t<57344)continue;if(t>=55296&&t<56320){if(i>=e.length)continue;n=e.charCodeAt(i++);if(n<56320||t>=56832)continue;t=(t-55296<<10)+(n-56320)+65536}t<128?r+=String.fromCharCode(t):t<2048?r+=String.fromCharCode(192+(t>>6),128+(t&63)):t<65536?r+=String.fromCharCode(224+(t>>12),128+(t>>6&63),128+(t&63)):r+=String.fromCharCode(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(t&63))}return r},n.toHex=function(e){var t="0123456789ABCDEF";return t.charAt(e>>4)+t.charAt(e&15)},n.encodeURIComponentNew=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-",e=n.utf8(e),r,i="";for(var s=0;s<e.length;s++)t.indexOf(e.charAt(s))==-1?i+="%"+n.toHex(e.charCodeAt(s)):i+=e.charAt(s);return i},n.pad0=function(e){var t=""+e;return t.length==1?"0"+t:t},n.isUpperCase=function(e){return e>="A"&&e<="Z"},n.trim=function(e,t){return n.ltrim(n.rtrim(e,t),t)},n.ltrim=function(e,t){return t=t||"\\s",e.replace(new RegExp("^["+t+"]+","g"),"")},n.rtrim=function(e,t){return t=t||"\\s",e.replace(new RegExp("["+t+"]+$","g"),"")},n.contains=function(e,t,n){for(var r=0;r<e.length;r++){if(t==e[r])return!0;if(n&&t.toLowerCase()==e[r].toLowerCase())return!0}return!1},n.template=function(e){return new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+e.replace(/[\r\t\n]/g," ").split("<%").join("	").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("	").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');")},n.DateFormats=[{format:"D. M. YYYY",regex:"(\\d{1,2}). (\\d{1,2}). (\\d{4})",order:"DMY"},{format:"D-M-YYYY",regex:"(\\d{1,2})-(\\d{1,2})-(\\d{4})",order:"DMY"},{format:"D/M/YYYY",regex:"(\\d{1,2})\\/(\\d{1,2})\\/(\\d{4})",order:"DMY"},{format:"M/D/YYYY",regex:"(\\d{1,2})\\/(\\d{1,2})\\/(\\d{4})",order:"MDY"},{format:"DD-MM-YYYY",regex:"(\\d{2})-(\\d{2})-(\\d{4})",order:"DMY"},{format:"DD/MM/YYYY",regex:"(\\d{2})\\/(\\d{2})\\/(\\d{4})",order:"DMY"},{format:"MM/DD/YYYY",regex:"(\\d{2})\\/(\\d{2})\\/(\\d{4})",order:"MDY"},{format:"DD.MM.YYYY",regex:"(\\d{2}).(\\d{2}).(\\d{4})",order:"DMY"},{format:"YYYY-MM-DD",regex:"(\\d{4})-(\\d{2})-(\\d{2})",order:"YMD"},{format:"YYYY-MM",regex:"(\\d{4})-(\\d{2})",order:"YM"},{format:"YYYY? M? DD?",regex:"(\\d{4})\\w{0,1} (\\d{1,2})\\w{0,1} (\\d{1,2})\\w{0,1}",order:"YMD"},{format:"DD MMMM YYYY",regex:"(\\d{1,2})(\\w*)([ ./-])(\\w+)([ ./-])(\\d{2,4})",order:"DMY",fullmonth:!0},{format:"MMMM DD YYYY",regex:"(\\w+)([ ./-])(\\d{1,2})(\\w*)([ ./-])(\\d{2,4})",order:"MDY",fullmonth:!0},{format:"MMMM YYYY",regex:"(\\w+)([ ./-])(\\d{2,4})",order:"MY",fullmonth:!0},{format:"YYYY? MMMM",regex:"(\\d{2,4})\\w{0,1} (\\w+)",order:"YM",fullmonth:!0}],n.monthNames="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),n.datePartNames=["Y","M","D"],n.convertStringToDate=function(e,t,r){var i=null,s=null;for(var o=0;o<n.DateFormats.length;o++){var u=n.DateFormats[o],a=!t||u.format==t;if(a||r){u.fullmonth?s=n._createAndValidateFullMonthDate(u.regex,e,u.order):s=n._createAndValidateDate(u.regex,e,u.order);if(s!=null){s.isMonthOnly=u.order.indexOf("D")<0;if(a)return s;i==null&&(i=s)}}}return i},n.convertDateToString=function(e,t){if(e===null)return;var r,i=e.getDate(),o=("0"+i).slice(-2),u=e.getMonth(),a=u+1,f=("0"+a).slice(-2),l=e.getFullYear(),c=(""+l).slice(-2);switch(t){case"DD-MM-YYYY":return r="-",o+r+f+r+l;case"DD.MM.YYYY":return r=".",o+r+f+r+l;case"DD/MM/YYYY":return r="/",o+r+f+r+l;case"MM/DD/YYYY":return r="/",f+r+o+r+l;case"D-M-YYYY":return r="-",i+r+a+r+l;case"D. M. YYYY":return r=". ",i+r+a+r+l;case"D/M/YYYY":return r="/",i+r+a+r+l;case"M/D/YYYY":return r="/",a+r+i+r+l;case"YYYY-MM-DD":return r="-",l+r+f+r+o;case"YYYY? M? DD?":return r=" ",l+n.datePartNames[0]+r+a+n.datePartNames[1]+r+i+n.datePartNames[2];case"YYMMDD":return c+f+o;case"YYMM":return c+f;case"YYYY":return""+l;case"YYYY-MM":return r="-",l+r+f;case"MMMM YYYY":return r=" ",n.monthNames[u]+r+l;case"YYYY? MMMM":return r=" ",l+n.datePartNames[0]+r+n.monthNames[u];case"MMMM DD YYYY":return r=" ",n.monthNames[u]+r+i+r+l;case"DD MMMM YYYY":return r=" ",i+r+n.monthNames[u]+r+l;default:s("Unsupported date format: "+t)}},n.convertDateStringToDifferentFormat=function(e,t,r){var i=n.convertStringToDate(e,t);return n.convertDateToString(i,r)},n._createAndValidateDate=function(e,t,n){var r,i,o,u,a;u=new RegExp(e),a=u.exec(t);if(a==null)return null;switch(n){case"DMY":r=a[1],i=a[2],o=a[3];break;case"MDY":r=a[2],i=a[1],o=a[3];break;case"YMD":r=a[3],i=a[2],o=a[1];break;case"YM":r="01",i=a[2],o=a[1];break;default:return s("Invalid format order: "+n),null}var f=new Date(o,i-1,r);if(f.getDate()==r&&f.getMonth()==i-1&&f.getFullYear()==o)return f;s("Invalid date: "+t)},n._createAndValidateFullMonthDate=function(e,t,r){var i,o,u,a,f,l,c,h=-1,p=n.monthNames;a=new RegExp(e),f=a.exec(t);if(f==null)return null;switch(r){case"DMY":i=f[1],o=f[4],u=f[6];break;case"MDY":i=f[3],o=f[1],u=f[6];break;case"MY":i=1,o=f[1],u=f[3];break;case"YM":i=1,o=f[2],u=f[1];break;default:return s("Invalid format order: "+r),null}u.length<4&&(u=2e3+parseInt(u));if(!isNaN(o))h=parseInt(o)-1;else for(c=0;c<=p.length-1;c++){l=o.length==3?o.toLowerCase()==p[c].toLowerCase().substr(0,3):o.toLowerCase()==p[c].toLowerCase();if(l){h=c;break}}if(h<0)return s("Invalid date: "+t),null;var d=new Date(u,h,i);if(d.getDate()==i&&d.getMonth()==h&&d.getFullYear()==u)return d;s("Invalid date: "+t)},n.addDaysToDate=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},n.dateDiffDays=function(e,t){e=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),t=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());var n=t-e;return Math.floor(n/1e3/60/60/24)},n.formatPrice=function(e,t){var r;if(isNaN(e)||e==null||typeof e=="undefined"||isNaN(parseFloat(e)))return e;var i=t.Symbol||"",s=n._roundByCoefficient(e,t.RoundingCoefficient);r=n._formatThousands(Math.floor(s)),t.DecimalDigits>0&&(r+="."+n._pad0(Math.round((s-Math.floor(s))*100)).substring(0,t.DecimalDigits)),r=r.replace(/\,/g,"!").replace(/\./g,"#").replace(/\!/g,t.ThousandsSeparator).replace(/\#/g,t.DecimalSeparator);var o=t.SpaceBetweenAmountAndSymbol?" ":"",u;return t.SymbolOnLeft?(u=i+""+o,r=u+r):(u=o+i,r+=u),r},n._roundByCoefficient=function(e,t){return t==0?e:Math.round(e*(1/t))*t},n._pad0=function(e){var e=""+e;return e.length==1?"0"+e:e},n._formatThousands=function(e){var t="";e+="";for(var n=e.length-1;n>=0;n--)t=e.charAt(n)+t,(e.length-n)%3==0&&(t=","+t);return t.charAt(0)==","&&(t=t.substring(1)),t},n.Mediator=r,r.prototype.subscribe=function(e,t){return this.channels[e]==null&&(this.channels[e]=[]),this.channels[e].push({context:this,callback:t}),this},r.prototype.unsubscribe=function(e,t){var n,r,i,s,o,u;o=this.channels[e],o===undefined&&(o=[]),u=[];for(n=i=0,s=o.length;i<s;n=++i)r=o[n],r.callback===t?u.push(this.channels[e].splice(n,1)):u.push(void 0);return u},r.prototype.publish=function(){var n,r,i,o,u,a,f;r=arguments[0],n=2<=arguments.length?t.call(arguments,1):[],e.debug&&r!="search-panel-mouseover"&&s("event: "+r+" - data: "+n),a=this.channels[r],a===undefined&&(a=[]),f=[];for(o=0,u=a.length;o<u;o++)i=a[o],f.push(i.callback.apply(i.context,n));return f},e.Exception=i,e.Log=s}(),function(){function t(e,t){this.apiName=e,this.onReadyCallback=t}window.Skyscanner==undefined&&(window.Skyscanner={});var e=window.Skyscanner;t.prototype.wait=function(){var t=!1;this.apiName=="maps"&&e.maps!=undefined&&e.maps.Map!=undefined&&(t=!0);if(this.apiName=="snippets"&&e.snippets!=undefined){t=!0;if(typeof e.loader.cssMarker!="undefined"){var n="";if(document.defaultView&&document.defaultView.getComputedStyle){var r=document.defaultView.getComputedStyle(e.loader.cssMarker,null);n=r.getPropertyValue("display")}else n=e.loader.cssMarker.currentStyle.display;n==null&&(n=""),n=n.toLowerCase().trim(),t=n=="none"||e.loader.cssMarker.attemptCount>5,e.loader.cssMarker.attemptCount++}}if(t)this.onReadyCallback();else{var i=this;setTimeout(function(){i.wait()},200)}},e.ApiWait=t}(),function(){function t(e,t,n,r){this.Name=e,this.latestVersion=t,this.jsUrlTemp=n,this.cssUrlTemp=r,this.htmlCache=new Array}window.Skyscanner==undefined&&(window.Skyscanner={});var e=window.Skyscanner;t.prototype.getURL=function(e,t){return this.jsUrlTemp!=null?this.fillPlaceholders(this.jsUrlTemp,e,t):null},t.prototype.getCssURL=function(e,t){var n=new Array;if(this.cssUrlTemp!=null){for(var r=0;r<this.cssUrlTemp.length;r++){var i=this.fillPlaceholders(this.cssUrlTemp[r],e,t);n.push(i)}return n}return null},t.prototype.fillPlaceholders=function(t,n,r){if(typeof n=="undefined"||n==null||n=="")n=this.latestVersion;var i=e.loader.LocalServer==""?e.loader.ApiServer:e.loader.LocalServer;t=t.replace(/#root_url#/gi,e.loader.RootUrl),t=t.replace(/#server#/gi,i),t=t.replace(/#name#/gi,this.Name),t=t.replace(/#version_param#/gi,e.loader.PARAMS.VERSION),t=t.replace(/#version#/gi,n),t=t.replace(/#v_param#/gi,e.loader.PARAMS.V),t=t.replace(/#v#/gi,e.loader.v),t=t.replace(/#key_param#/gi,e.loader.PARAMS.KEY),t=t.replace(/#api_key#/gi,encodeURIComponent(e.ApiKey));var s=e.loader.min!="0";t=t.replace(/#min_param#/gi,s?"":"&min=0");var o="";r&&r.cssoff&&(o="&options=",o+="cssoff;"),r&&r.overridecss&&(o=o===""?"&options=":o,o+="overridecss;"),t=t.replace(/#css_param#/gi,o);var u="";r&&r.noautosuggest&&(u="&as=n"),t=t.replace(/#as_param#/gi,u);var a=e.CultureId||"en";r&&r["cultureid"]!=undefined&&(a=encodeURIComponent(e.validateLanguage(r.cultureid))),this.Name=="snippets"&&(e.CultureId=a),t=t.replace(/#lang_id#/gi,a);var f;return r&&r["shape"]!=undefined&&(f=encodeURIComponent(r.shape)),t=t.replace(/#shape_param#/gi,e.loader.PARAMS.SHAPE),t=t.replace(/#shape#/gi,f),t},e.Module=t}(),function(){function f(t){e.dom_wrapper.bindEvent(window,"load",t)}function l(t,n){var r=e.loader.UrlParameters;r=r.split("&");if(r!=null&&r.length>0)for(var i=0;i<r.length;i++){var s=!0;if(n!=null)for(var o in n)if(r[i].indexOf(n[o]+"=")>=0){s=!1;break}s&&r[i]!=""&&(t.indexOf("?")>=0?t+="&":t+="?",t+=r[i])}return t}function c(t,n){t!=null&&t.indexOf("skyscanner.net/xml/cache/")>0&&(t=null),t!=null&&t!=""&&(t=h(t,n)),e.loader.overrideCSSEl?t!=null&&t!=""?e.loader.overrideCSSEl.href=t:(e.loader.overrideCSSEl.removeNode?e.loader.overrideCSSEl.removeNode(!0):(e.loader.overrideCSSEl.href="",e.loader.overrideCSSEl.parentNode.removeChild(e.loader.overrideCSSEl)),e.loader.overrideCSSEl=null):e.loader.overrideCSSEl=e.loader.createCSSNode(t)}function h(t,n){return n==null&&e.snippets.version&&(n=e.snippets.version),t.indexOf(e.loader.PARAMS.VERSION+"=")<0&&(t.indexOf("?")>=0?t+="&":t+="?"),t+=e.loader.PARAMS.VERSION+"="+n,t.indexOf(e.loader.PARAMS.V+"=")<0&&(t.indexOf("?")>=0?t+="&":t+="?"),t+=e.loader.PARAMS.V+"="+e.loader.v,t}function p(){return"http://www.skyscanner.net"}window.Skyscanner==undefined&&(window.Skyscanner={});var e=window.Skyscanner,t={RootUrl:"http://www.skyscanner.net",ApiServer:"http://api.skyscanner.net",LocalServer:"",v:"",min:"1",Path:"api/",AjaxApiMode:"ajax",CSSPath:"/style/",UrlParameters:"",UsageSuccessfullyVerified:"1",Ucy:"",today:new Date,AppendAssociateIdToUrl:!0,dynamicApiLoadMarkers:new Array,additionalScriptsLoaded:new Array,PARAMS:{V:"v",KEY:"key",VERSION:"version",SHAPE:"shape"},firstdayofweek:"1",modules:{maps:new e.Module("maps","1","#server#/api.ashx?type=map&#v_param#=#v##min_param#",null),snippets:new e.Module("snippets","2","#server#/api.ashx?type=snippet&lang=#lang_id#&#v_param#=#v##min_param##css_param##as_param#",["#server#/Widget/CSS/common.css","#server#/Widget/CSS/autosuggest.css"]),searchpanel:new e.Module("searchpanel","1","#server#/api.ashx?type=searchpanel&lang=#lang_id#&#shape_param#=#shape#&#v_param#=#v##min_param#",["#server#/Widget/CSS/shapes/#shape#.css"]),autosuggest:new e.Module("autosuggest","1","#server#/api.ashx?type=autosuggest&#v_param#=#v##min_param#",["#server#/Widget/CSS/autosuggest.css"]),datepicker:new e.Module("datepicker","1","#server#/api.ashx?type=datepicker&lang=#lang_id#&#v_param#=#v##min_param#",["#server#/Widget/CSS/flights-datepicker.css"]),datepicker_lang:new e.Module("datepicker_lang","1","#server#/api.ashx?type=datepicker_lang&lang=#lang_id#&#v_param#=#v##min_param#")}};e.loader=t,e.supportedLanguagesLegacy=new Array("CZ","DA","DE","EN","ES","FI","FR","GR","HU","IT","JA","KO","NL","NO","PL","PT","BR","RO","RU","SV","TR","UK","ZH","ZW","MS","TH","VI","ID","TL"),e.supportedLanguages=new Array("cs","da","de","el","en","en-us","es","fi","fr","hu","it","ja","ko","nl","no","pl","pt","pt-br","ro","ru","sv","tr","uk","zh","zh-tw","zh-hk","zh-sg","ms","th","vi","id","tl");var n=function(t,n){var r=n=="legacy";t=r?t.toUpperCase():t.toLowerCase();var i=r?e.supportedLanguagesLegacy:e.supportedLanguages;if(e.utils.contains(i,t))return t;if(r)switch(t){case"CS":return"CZ";case"EL":return"GR";case"NB-NO":return"NO";case"PT-BR":return"BR";case"ZH-TW":case"ZH-HK":case"ZH-SG":return"ZW"}else switch(t){case"cz":return"cs";case"gr":return"el";case"br":return"pt-br";case"zw":return"zh-tw";case"nb-no":return"no";default:if(e.utils.contains(i,t))return t}return t=t.substr(0,2),e.utils.contains(i,t)?t:(e.Log("Invalid parameter '"+t+"'"),r?"EN":"en")},r=function(e){var t=e.indexOf("-");if(t>-1)return e.substr(t+1,2).toUpperCase();switch(e){case"cs":return"CZ";case"da":return"DK";case"en":return"UK";case"el":return"GR";case"ja":return"JP";case"ko":return"KR";case"ms":return"MY";case"sv":return"SE";case"tl":return"PH";case"uk":return"UA";case"vi":return"VN";case"zh":return"CN";default:return e.toUpperCase()}},i=function(t,n,r){var i=e.loader.modules[t];if(!i)throw e.Exception("Module: '"+t+"' not found.");if(e.Browser.isQuirkMode()){console.log("Quirks mode unsupported - rendering hyperlink instead");return}var s=new e.ScriptRequest,u=r&&r["callback"]!=null;u&&(s.onComplete=r.callback),s.send(e.loader.addParameters(i.getURL(n,r),e.loader.PARAMS)),o(t,n,r)},s=function(e){var t=document.getElementsByTagName("head")[0],n=-1;while(++n<document.styleSheets.length)if(e==document.styleSheets[n].href)return;var r=document.createElement("link");return r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r),r},o=function(t,n,r){var i=!1,s=!1;r&&(i=r["cssoff"]!=null&&r.cssoff,s=r["noautosuggest"]!=null&&r.noautosuggest);if(!i){var o=e.loader.modules[t];if(!o)throw e.Exception("Module: '"+t+"' not found!");var u=o.getCssURL(n,r);if(u!=null)for(var a=0;a<u.length;a++){if(s&&u[a].indexOf("autosuggest")>-1)continue;var f=h(u[a],n);e.loader.createCSSNode(f)}}if(r){var l=r.overridecss;l!=null&&l!=""?e.loader.setOverrideCss(l,n):e.loader.overrideCSSEl=null}},u=function(t){var n=e.loader.LocalServer==""?e.loader.ApiServer:e.loader.LocalServer,r=n+"/Widget/CSS/colourschemes/"+t+".css?version=2&v="+e.loader.v;e.loader.createCSSNode(r)},a=function(t,n,r,i){var s=e.loader.modules[t];if(!s)throw e.Exception("Module: '"+t+"' not found!");var u=l(s.getURL(n,r),e.loader.PARAMS),a=e.loader.dynamicApiLoadMarkers[u];if(typeof a=="undefined"&&a!=1){e.loader.dynamicApiLoadMarkers[u]=!0;var f=document,c=f.getElementsByTagName("head").item(0),h=document.createElement("script");h.setAttribute("type","text/javascript"),h.setAttribute("charset","utf-8"),h.setAttribute("src",u),c.appendChild(h),o(t,n,r);var p=document.createElement("div");e.loader.cssMarker=p,e.loader.cssMarker.attemptCount=0,p.className="ss_snippets_marker",p.style.width="1px",p.style.height="1px",p.style.visibility="hidden",document.body.appendChild(p)}var d=new e.ApiWait(t,function(){i!=null&&i!=undefined&&i()});d.wait()};e.loadAndWait=a,e.load=i,e.validateLanguage=n,e.getDefaultMarket=r,e.loader.createCSSNode=s,e.loader.setOverrideCss=c,e.setOnLoadCallback=f,e.loader.addParameters=l,e.loader.getTargetDomain=p,e.loader.getColoursCSS=u;var d=function(){};d.prototype.setShape=function(e){},d.prototype.setCurrency=function(e){},d.prototype.setDeparture=function(e,t){},d.prototype.setDestination=function(e,t){},d.prototype.setCulture=function(e){},d.prototype.setMarket=function(e){},d.prototype.setOutboundDate=function(e){},d.prototype.setInboundDate=function(e){},d.prototype.setClickUrl=function(e){},d.prototype.setUrlParam=function(e,t){},d.prototype.setColourScheme=function(e){},d.prototype.setProduct=function(e,t){},d.prototype.draw=function(e){},e.snippets={SearchPanelControl:d,localization:{}}}(),function(){function ScriptRequest(){this.requestid=null,this.callbackParameterName="callback",this.onComplete=null,this.onFailure=null}function initiateCallbacks(e,t,n){return ScriptRequest.callbacks[e]=function(t){delete ScriptRequest.callbacks[e].failureFunction;for(var n=0;n<ScriptRequest.callbacks[e].actualCallbacks.length;n++){var r=ScriptRequest.callbacks[e].actualCallbacks[n];setTimeout(function(){r(t,e)},0)}delete ScriptRequest.callbacks[e]},setTimeout(function(){typeof ScriptRequest.callbacks[e]!="undefined"&&typeof ScriptRequest.callbacks[e].failureFunction=="function"&&ScriptRequest.callbacks[e].failureFunction==n&&setTimeout(function(){ScriptRequest.callbacks[e].failureFunction(e)},0)},5e3),ScriptRequest.callbacks[e].failureFunction=n,ScriptRequest.callbacks[e].actualCallbacks=[t],"skyscanner.callbacks."+e}window.Skyscanner==undefined&&(window.Skyscanner={});var skyscanner=window.Skyscanner;ScriptRequest.callbacks={},skyscanner.callbacks=ScriptRequest.callbacks,ScriptRequest.getRequestId=function(){var e=1;do{var t=!0;for(var n in ScriptRequest.callbacks){var r=n,i=new RegExp("^requestid([0-9]+)$"),s=i.exec(r);if(s!=null){r=s[1]|0;if(r==e){t=!1;break}}}t||e++}while(!t);return e},ScriptRequest.prototype.send=function(url,cleanup){this.requestid="requestid"+ScriptRequest.getRequestId();var fullUrl=url,self=this;cleanup==undefined&&(cleanup=!1);if(this.onComplete!=null){initiateCallbacks(this.requestid,this.onComplete,this.onFailure);var queryStringStart=fullUrl.indexOf("?");if(queryStringStart!=-1){var params=fullUrl.substring(queryStringStart+1).split("&"),callbackFound=!1;for(var i=0;i<params.length;i++)if(params[i].indexOf(this.callbackParameterName+"=")!=-1){callbackArgs=params[i].split("="),ScriptRequest.callbacks[this.requestid].actualCallbacks.push(eval(callbackArgs[1])),params[i]=this.callbackParameterName+"=Skyscanner.callbacks."+this.requestid,callbackFound=!0,fullUrl=fullUrl.substring(0,queryStringStart+1)+params.join("&");break}callbackFound||(fullUrl+="&"+this.callbackParameterName+"=Skyscanner.callbacks."+this.requestid)}else fullUrl+="?"+this.callbackParameterName+"=Skyscanner.callbacks."+this.requestid}if(!cleanup){if(document.readyState=="loaded"||document.readyState=="complete"||document.readyState=="interactive"){var headElement=document.getElementsByTagName("head")[0],scriptElement=createScriptTag();scriptElement.setAttribute("src",fullUrl),headElement.appendChild(scriptElement)}else document.write('<script charset="utf-8" src="'+fullUrl+'" type="text/javascript"></script>');return}var headElement=document.getElementsByTagName("head")[0],scriptElement=createScriptTag(),onLoadHandler=function(){if(cleanup){scriptElement.onload=null;var e=scriptElement.parentNode;e.removeChild(scriptElement),delete scriptElement}},onReadyStateChangeHandler=function(e){e||(e=window.event);var t=e.target?e.target:e.srcElement;if(!t)return;if(t.readyState=="loaded"||t.readyState=="complete")t.onreadystatechange=null,onLoadHandler()};return navigator.product=="Gecko"?scriptElement.onload=onLoadHandler:scriptElement.onreadystatechange=onReadyStateChangeHandler,scriptElement.setAttribute("src",fullUrl),headElement.appendChild(scriptElement),this.requestid};var createScriptTag=function(){var e=document.createElement("script");return e.setAttribute("type","text/javascript"),e.setAttribute("charset","utf-8"),e};skyscanner.ScriptRequest=ScriptRequest}(),function(){window.Skyscanner==undefined&&(window.Skyscanner={});var e=window.Skyscanner;typeof console=="undefined"&&(this.console={log:function(){}});var t=function(){var e=navigator.userAgent.toLowerCase(),t=/webkit/.test(e)&&!/chrome/.test(e),n=/opera/.test(e),r=/firefox/.test(e),i=/chrome/.test(e)&&!t,s=/msie/.test(e)&&!n,o=/mozilla/.test(e)&&!/(compatible|webkit)/.test(e),u=0,a,f,l,c=!1,h=function(){return t},p=function(){return n},d=function(){return i},v=function(){return s},m=function(){return c},g=function(){return o},y=function(){return r},b=function(){return u};h()&&(a=/afari\/([\d.]+)/,f=e.match(a),f&&(l=parseFloat(f[1]),l=Math.round(l),l<=100&&(u=1),l<=125&&l>100&&(u=1.25),l<=312&&l>125&&(u=1.3),l<=419&&l>312&&(u=2),l>419&&(u=3))),v()&&(a=/msie ([\d.]+)/,f=e.match(a),f&&(u=parseFloat(f[1]))),y()&&(a=/firefox\/([\d.]+)/,f=e.match(a),f&&(u=parseFloat(f[1]))),s&&document.compatMode&&document.compatMode.toLowerCase()=="backcompat"&&(c=!0);var w=function(){var e="",t="";h()?t="webkit":p()?t="opera":y()?t="ff":v()&&(t="ie"),e+=" ss_"+t;var n=b();return n>0&&(e+=" ss_"+t+Math.round(n)),e};return{getBrowserCss:w,isSafari:h,isOpera:p,isIE:v,isQuirkMode:m,isMozilla:g,isFF:y,isChrome:d,getVer:b,version:u}};e.Browser=new t}();var skyscanner = window.Skyscanner;skyscanner.loader.LocalServer = 'http://api.skyscanner.net';skyscanner.ApiKey = '2675332a-2e26-4033-8e7e-a56c0f49def3';skyscanner.loader.v = '5950';skyscanner.loader.Ucy = 'US';