{"version":3,"file":"library/js/build/lazy.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA,wZAAwZ;AACxZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,SAAS;AACT;AACA,QAAQ;AACR;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,iLAAiL;AAC3N;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,kCAAkC;AAClC;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oHAAoH,mBAAmB,eAAe,iFAAiF,gDAAgD,+CAA+C;AACtU;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA,wEAAwE,gBAAgB,iBAAiB,cAAc;AACvH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,MAAM;AACN;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,mBAAO,CAAC,wEAA0B;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,gHAAgH;AACpI;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,OAAO;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,OAAO;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,MAAM;AACN;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;AACA;AACA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CzKH;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;ACtBA,mBAAO,CAAC,+CAAmB,E","sources":["webpack://peppermillreno_com_dev/./library/js/lazy.js","webpack://peppermillreno_com_dev/./library/js/helpers/DineTimeWidget.ts","webpack://peppermillreno_com_dev/webpack/bootstrap","webpack://peppermillreno_com_dev/./webpack-lazy.js"],"sourcesContent":["/*!\r\n * Copyright (C) 2017-2024, Peppermill Inc.\r\n * All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without\r\n * modification, are not permitted.\r\n *//*\r\n *\t2017-04-19\r\n *\t\t- Added code for award tickers.\r\n *\t\t- Hashes now reset on page load if set to display a menu. are not permitted.\r\n *\r\n *\t2017-07-13\r\n *\t\t- Removed spanish from the list of languages for Google Translate.\r\n *\r\n *\t2018-05-08\r\n *\t\t- Added code to handle flight reservations in the header.\r\n *\r\n *\t2018-05-23\r\n *\t\t- Added code to handle live chat display.\r\n *\r\n *\t2018-06-21\r\n *\t\t- Added GA tracking to Live Chat Button clicks.\r\n *\r\n *\t2018-07-23\r\n *\t\t- Added overlay code.\r\n *\r\n *\t2018-10-05\r\n *\t\t- Added DineTime overlay code.\r\n *\r\n *\t2019-01-29\r\n *\t\t- Added Peppermill Preferred login dialog code.\r\n *\r\n *\t2019-02-18\r\n *\t\t- Updated filter code to handle slash-through pricing with Peppermill Preferred rate data.\r\n *\r\n *\t2019-03-08\r\n *\t\t- Updated to track scroll depth in GA.\r\n *\r\n *\t2019-03-12\r\n *\t\t- Added code to hide the header and footer (or other UI components if needed) when body form elements are focused.\r\n *\r\n *\t2019-04-03\r\n *\t\t- Added code for position:sticky pollyfill.\r\n *\t\t- Updated filter code to handle hotel widgets as well.\r\n *\t\t- Moved \"reserve-rates\" widget code here. Now only used for menu flyouts.\r\n *\r\n *\t2019-05-20\r\n *\t\t- Moved Peppermill Preferred login dialog code to separate file.\r\n *\r\n *\t2020-02-19\r\n *\t\t- Created window.initTouchPageLinks() function to handle lazy-initializing page link lists for touch devices.\r\n *\r\n *\t2024-05-09 (jhoward)\r\n *\t\t- Focus DineTime iframe contents when opening overlay.\r\n *\t\t- Focus button clicked to open a DineTime overlay when closing overlay.\r\n */\r\n(function ($) {\r\n\t\r\n\tvar currentScroll\t=\t0;\r\n\tvar windowHeight\t=\t$(window).height();\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tvar $artwork\t=\t$('.artwork'),\r\n\t\t$header\t\t=\t$('#header'),\r\n\t\t$footer\t\t=\t$('#footer'),\r\n\t\t$container\t=\t$('#container');//,\r\n\t\t//isMinified\t=\t!/event/.test(function (event) {});\r\n\t\r\n\t//MENU LINKS\r\n\tvar menuLinkHistoryUsed\t=\tfalse;\r\n\t\r\n\tfunction loadMenuPDFFromProxy(menuID) {\r\n\t\t\r\n\t\tif (typeof menuID !== 'string')\tmenuID\t=\t$('.iframe-wrapper').find('iframe').data('menu-id');\r\n\t\t\r\n\t\tvar win\t=\twindow.open('/library/api/google-drive-pdfs.php?ACTION=VIEW_PDF&FILE_ID=' + encodeURIComponent(menuID));\r\n\t\t\r\n\t\tif (typeof win === 'undefined' || !win) {\r\n\t\t\t\r\n\t\t\twindow.location\t\t\t=\t'/library/api/google-drive-pdfs.php?ACTION=VIEW_PDF&FILE_ID=' + encodeURIComponent(menuID);\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tif ($('.iframe-wrapper').find('.close').length) {\r\n\t\t\t\t\r\n\t\t\t\t$('.iframe-wrapper')\r\n\t\t\t\t\t.find('.close')\r\n\t\t\t\t\t\t.trigger('click');\r\n\t\t\t\t\r\n\t\t\t}/* else {\r\n\t\t\t\t\r\n\t\t\t\twindow.location.hash\t=\t'reset';\r\n\t\t\t\t\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\twin.focus();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\t$(function () {\r\n\r\n\t\tajaxLinkRegisterCallback(\r\n\t\t\t'MENU-VIEW-PDF',\r\n\t\t\tloadMenuPDFFromProxy\r\n\t\t);\r\n\t\t\r\n\t});\r\n\t\r\n\t//reset the hash on load if hash set to show a menu\r\n\t//if (window.location.hash.replace('#', '').substr(0, 5) === 'menu-')\twindow.location.hash\t=\t'';\r\n\t\r\n\t$(window)\r\n\t\t.on('hashchange.menus', function (event) {\r\n\t\t\t\r\n\t\t\tvar theHash\t=\twindow.location.hash.replace('#', '');\r\n\t\t\t\r\n\t\t\t$('.iframe-wrapper')\r\n\t\t\t\t.find('.close')\r\n\t\t\t\t\t.trigger('click', [true]);\r\n\t\t\t\r\n\t\t\tif (theHash.substr(0, 5) === 'menu-') {\r\n\t\t\t\t\r\n\t\t\t\t//make sure there is a matching .menu-link in the DOM\r\n\t\t\t\tvar menuID\t\t=\ttheHash.substr(5),\r\n\t\t\t\t\t$btnMatch\t=\t$('.menu-link').filter('[data-menu-id=' + menuID + ']');\r\n\t\t\t\t\r\n\t\t\t\tif ($btnMatch.length) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//match found\r\n\t\t\t\t\t\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ($('html').hasClass('on-corporate') || !Modernizr.touchevents) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tloadMenuPDFFromProxy($btnMatch.data('menu-id'));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tvar $btn\t\t\t=\t($btnMatch.closest('li').length)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t?\t$btnMatch.closest('li')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t:\t$btnMatch,\r\n\t\t\t\t\t\t\tfooterHeight\t=\t($footer.hasClass('above-the-foldstatic'))\t?\t''\t:\t$(window).height() - $footer.find('.above-the-fold').offset().top,\r\n\t\t\t\t\t\t\t$wrapperEle\t\t=\t$('
')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.css({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttop\t\t\t:\t0,//$header.height(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbottom\t\t:\tfooterHeight,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransform\t:\t'translateX(' + $btn.offset().left + 'px) translateY(' + ($btn.offset().top - $(window).scrollTop() - $header.height()) + 'px) scale(' + ($btn.outerWidth() / $(window).width()) + ', ' + ($btn.outerHeight() / ($(window).height() - $header.height() - footerHeight)) + ')'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.on('load', function () {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$(this)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.closest('.iframe-wrapper')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addClass('loaded');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclearTimeout($(this).data('loadTimer'));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.data('loadTimer', setTimeout(function () {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//ask to use new proxy\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowOverlayDialog({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconfirmAccept\t:\t'DOWNLOAD PDF',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconfirmDeny\t\t:\t'KEEP WAITING',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconfirmTitle\t:\t'Problems Loading Menu?',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tconfirmBody\t\t:\t'If you are still waiting for the menu to load, you can load the PDF directly by clicking \"DOWNLOAD PDF\" below.',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback\t\t:\t'MENU-VIEW-PDF'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, 10000))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('').on('click', function (event, hashInitiated) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (typeof hashInitiated !== 'boolean')\thashInitiated\t=\tfalse;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclearTimeout($wrapperEle.find('iframe').data('loadTimer'));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (hashInitiated === true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('.iframe-wrapper')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.remove();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('html')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeClass('scrollbar-hide hide-ui');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('body')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.height('');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, 250);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$('html').removeClass('iframe-wrapper-show');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (menuLinkHistoryUsed) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.history.go(-1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmenuLinkHistoryUsed\t=\tfalse;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.location.hash\t=\t'reset';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.append('')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t).append(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$container\r\n\t\t\t\t\t\t\t.append($wrapperEle);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$('body')\r\n\t\t\t\t\t\t\t\t.height($container.height() + $footer.height());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$('html')\r\n\t\t\t\t\t\t\t\t.addClass('iframe-wrapper-show scrollbar-hide hide-ui');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$wrapperEle\r\n\t\t\t\t\t\t\t\t.css({\r\n\t\t\t\t\t\t\t\t\ttransform\t:\t''\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}, 50);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t})\r\n\t\t.trigger('hashchange.menus');\r\n\t\r\n\t$(document)\r\n\t\t.on('click', '.menu-link', function (event) {\r\n\t\t\t\r\n\t\t\tevent.preventDefault();\r\n\t\t\tevent.stopPropagation();\r\n\t\t\t\r\n\t\t\tif (!$('html').hasClass('old-ie')) {\r\n\t\t\t\t\r\n\t\t\t\tmenuLinkHistoryUsed\t\t=\ttrue;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twindow.location.hash\t=\t'menu-' + encodeURIComponent($(this).data('menu-id'));\r\n\t\t\t\r\n\t\t\t//first off check if the user can access google drive, if not just download the PDF\r\n\t\t\t/*if ($('html').hasClass('on-corporate') || !Modernizr.touchevents) {\r\n\t\t\t\t\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\r\n\t\t\t\tloadMenuPDFFromProxy($(this).data('menu-id'));\r\n\t\t\t\t\r\n\t\t\t} else if (!$('html').hasClass('old-ie')) {\r\n\t\t\t\t\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\r\n\t\t\t\twindow.location.hash\t=\t'menu-' + encodeURIComponent($(this).data('menu-id'));\r\n\t\t\t\tmenuLinkHistoryUsed\t\t=\ttrue;\r\n\t\t\t\t\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t});\r\n\t\r\n\t$(document).on('keydown', function (event) {\r\n\t\t\r\n\t\tif (event.which === 27) {\r\n\t\t\t\r\n\t\t\t$('#container').children('.iframe-wrapper, .gallery-wrapper').children('.close').trigger('click');\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t});\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\t\r\n\t//floogplan code\r\n\t$('#container')\r\n\t\t.find('.right-side-content')\r\n\t\t\t.find('.floorplan')\r\n\t\t\t\t.data('active', false)\r\n\t\t\t\t.on('click', function (event) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar $link\t=\t$(this);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ($link.data('active'))\treturn;\r\n\r\n\t\t\t\t\tlet $viewport = $link.closest('.viewport');\r\n\r\n\t\t\t\t\tif ($viewport.length) {\r\n\r\n\t\t\t\t\t\t$link\r\n\t\t\t\t\t\t\t.data('active', true);\r\n\r\n\t\t\t\t\t\tif ($link.closest('.viewport').children('.floorplan-viewport').length) {\r\n\r\n\t\t\t\t\t\t\t//close\r\n\t\t\t\t\t\t\t$link\r\n\t\t\t\t\t\t\t\t.closest('.viewport')\r\n\t\t\t\t\t\t\t\t.children('.floorplan-viewport')\r\n\t\t\t\t\t\t\t\t.removeClass('show');\r\n\r\n\t\t\t\t\t\t\tsetTimeout(function () {\r\n\r\n\t\t\t\t\t\t\t\t$link\r\n\t\t\t\t\t\t\t\t\t.closest('.viewport')\r\n\t\t\t\t\t\t\t\t\t.children('.floorplan-viewport')\r\n\t\t\t\t\t\t\t\t\t.remove();\r\n\r\n\t\t\t\t\t\t\t\t$link\r\n\t\t\t\t\t\t\t\t\t.data('active', false);\r\n\r\n\t\t\t\t\t\t\t}, 350);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t//open\r\n\t\t\t\t\t\t\tvar $floorplanViewport = $(' '),\r\n\t\t\t\t\t\t\t\tartworkPosition = $artwork.filter(':visible').eq(0).position(),\r\n\t\t\t\t\t\t\t\tlinkPosition = $link.position(),\r\n\t\t\t\t\t\t\t\tartworkSize = {\r\n\t\t\t\t\t\t\t\t\twidth: $artwork.filter(':visible').eq(0).outerWidth(false),\r\n\t\t\t\t\t\t\t\t\theight: $artwork.filter(':visible').eq(0).outerHeight(false)\r\n\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t$floorplanViewport\r\n\t\t\t\t\t\t\t\t.css({\r\n\t\t\t\t\t\t\t\t\ttop: artworkPosition.top,\r\n\t\t\t\t\t\t\t\t\tleft: artworkPosition.left,\r\n\t\t\t\t\t\t\t\t\twidth: artworkSize.width,\r\n\t\t\t\t\t\t\t\t\theight: artworkSize.height,\r\n\t\t\t\t\t\t\t\t\ttransform: 'translateX(' + (linkPosition.left - artworkPosition.left + parseInt($link.css('marginLeft'), 10)) + 'px) translateY(' + (linkPosition.top - artworkPosition.top) + 'px) scale(' + ($link.outerWidth(false) / artworkSize.width * 1.1) + ', ' + ($link.outerHeight(false) / artworkSize.height * 1.1) + ')'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t.find('.close')\r\n\t\t\t\t\t\t\t\t.on('click', function (event) {\r\n\r\n\t\t\t\t\t\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\t\t\t\t\t\t$link\r\n\t\t\t\t\t\t\t\t\t\t.trigger('click');\r\n\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t$viewport\r\n\t\t\t\t\t\t\t\t.append($floorplanViewport);\r\n\r\n\t\t\t\t\t\t\tsetTimeout(function () {\r\n\r\n\t\t\t\t\t\t\t\t$floorplanViewport\r\n\t\t\t\t\t\t\t\t\t.addClass('show')\r\n\t\t\t\t\t\t\t\t\t.css({\r\n\t\t\t\t\t\t\t\t\t\ttransform: ''\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\tsetTimeout(function () {\r\n\r\n\t\t\t\t\t\t\t\t\t$link\r\n\t\t\t\t\t\t\t\t\t\t.data('active', false);\r\n\r\n\t\t\t\t\t\t\t\t\t//scroll into view if needed\r\n\t\t\t\t\t\t\t\t\tlet floorPlanBoundingBox = $floorplanViewport[0].closest('.viewport').getBoundingClientRect();\r\n\t\t\t\t\t\t\t\t\tlet headerBoundingBox = document.querySelector('#header').getBoundingClientRect();\r\n\t\t\t\t\t\t\t\t\tif (floorPlanBoundingBox.top - headerBoundingBox.height < 16) {\r\n\t\t\t\t\t\t\t\t\t\twindow.scrollTo({\r\n\t\t\t\t\t\t\t\t\t\t\tbehavior: 'smooth',\r\n\t\t\t\t\t\t\t\t\t\t\ttop: window.scrollY + floorPlanBoundingBox.top - headerBoundingBox.height - 16\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}, 350);\r\n\r\n\t\t\t\t\t\t\t}, 50);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tconst floorPlanImageNode = document.querySelector('img.floor-plan');\r\n\t\t\t\t\t\tif (floorPlanImageNode) {\r\n\t\t\t\t\t\t\t//scroll into view if needed\r\n\t\t\t\t\t\t\tconst floorPlanBoundingBox = floorPlanImageNode.getBoundingClientRect();\r\n\t\t\t\t\t\t\tconst headerBoundingBox = document.querySelector('#header');\r\n\t\t\t\t\t\t\tconst headerHeight = (headerBoundingBox) ? headerBoundingBox.getBoundingClientRect().height : 0;\r\n\t\t\t\t\t\t\tconst pageLinkFilter = document.querySelector('.page-link-filter');\r\n\t\t\t\t\t\t\tconst pageLinkFilterHeight = (pageLinkFilter) ? pageLinkFilter.getBoundingClientRect().height : 0;\r\n\t\t\t\t\t\t\tif (floorPlanBoundingBox.top > window.innerHeight || floorPlanBoundingBox.top - headerHeight - pageLinkFilterHeight < 16) {\r\n\t\t\t\t\t\t\t\twindow.scrollTo({\r\n\t\t\t\t\t\t\t\t\tbehavior: 'smooth',\r\n\t\t\t\t\t\t\t\t\ttop: window.scrollY + floorPlanBoundingBox.top - headerHeight - pageLinkFilterHeight - 16\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tconst anchorNode = floorPlanImageNode.closest('a');\r\n\t\t\t\t\t\t\t\tif (anchorNode && anchorNode.id.length) {\r\n\t\t\t\t\t\t\t\t\tconst idSave = anchorNode.id;\r\n\t\t\t\t\t\t\t\t\tanchorNode.id = '';\r\n\t\t\t\t\t\t\t\t\twindow.location.hash = idSave;\r\n\t\t\t\t\t\t\t\t\tanchorNode.id = idSave;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tif ($('#google_translate_element').length) {\r\n\t\t\r\n\t\twindow.googleTranslateElementInit\t=\tfunction () {\r\n\t\t\t\r\n\t\t\tnew google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'en,tl,zh-CN,zh-TW', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, gaTrack: true, gaId: 'UA-31151-1'}, 'google_translate_element');\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t$.getScript('https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit');\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t//header award ticker\r\n\t/*var awardTickerTimer\t=\tnull,\r\n\t\tawardTickerSpeed\t=\t50;\t//pixels per second\r\n\t\r\n\tfunction initializeAwardTicker() {\r\n\t\t\r\n\t\tvar awardTickerWidth\t=\t$('#award-ticker').outerWidth();\r\n\t\t\r\n\t\t$.each($('#award-ticker').find('.ticker-item'), function () {\r\n\t\t\t\r\n\t\t\t//set each item so it moves at a constant rage\r\n\t\t\tvar duration\t=\tparseInt(($(this).find('a').width() + awardTickerWidth) / awardTickerSpeed * 1000);\r\n\t\t\t\r\n\t\t\t$(this)\r\n\t\t\t\t.data({\r\n\t\t\t\t\tduration\t:\tduration,\r\n\t\t\t\t\tdelay\t\t:\tduration / 5\r\n\t\t\t\t});\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}\r\n\t\r\n\tfunction resetAwardTicker() {\r\n\t\t\r\n\t\tvar $staged\t=\t$('#award-ticker').find('.ticker-item').filter('.hide');\r\n\t\t\r\n\t\t$staged\r\n\t\t\t.removeClass('hide active')\r\n\t\t\t.find('a')\r\n\t\t\t\t.css({\r\n\t\t\t\t\ttransitionDuration\t:\t'0ms',\r\n\t\t\t\t\ttransform\t\t\t:\t'translateX(' + $('#award-ticker').width() + 'px)'\r\n\t\t\t\t});\r\n\t\t\r\n\t}\r\n\t\r\n\tfunction changeAwardTicker() {\r\n\t\t\r\n\t\tvar $current\t=\t$('#award-ticker').find('.ticker-item').filter('.active');\r\n\t\t\r\n\t\tif ($current.length === 0)\t$current\t=\t$('#award-ticker').find('.ticker-item').eq(-1);\r\n\t\t\r\n\t\tvar $next\t\t=\t($current.next('.ticker-item').length === 1)\t?\t$current.next('.ticker-item')\t:\t$('#award-ticker').find('.ticker-item').eq(0);\r\n\t\t\r\n\t\t$current\r\n\t\t\t.addClass('hide');\r\n\t\t\r\n\t\t$next\r\n\t\t\t.addClass('active')\r\n\t\t\t.find('a')\r\n\t\t\t\t.css({\r\n\t\t\t\t\ttransitionDuration\t:\t$next.data('duration') + 'ms',\r\n\t\t\t\t\ttransform\t\t\t:\t''\r\n\t\t\t\t});\r\n\t\t\r\n\t\tsetTimeout(resetAwardTicker, $current.data('delay'));\r\n\t\t\r\n\t\tawardTickerTimer\t=\tsetTimeout(changeAwardTicker, $next.data('duration') / 5 * 4);\r\n\t\t\r\n\t}\r\n\t\r\n\tfunction runAwardTicker() {\r\n\t\t\r\n\t\tif ($('#award-ticker').find('.ticker-item').length < 2 || $('#award-ticker').data('hovered'))\treturn;\r\n\t\t\r\n\t\tinitializeAwardTicker();\r\n\t\t\r\n\t\tchangeAwardTicker();\r\n\t\t\r\n\t}\r\n\t\r\n\tif ($('#award-ticker').length) {\r\n\t\t\r\n\t\t//$('#award-ticker')\r\n\t\t//\t.data('hovered', false)\r\n\t\t//\t.on('mouseenter', function () {\r\n\t\t\t\t\r\n\t\t//\t\t$(this)\r\n\t\t//\t\t\t.data('hovered', true);\r\n\t\t\t\t\r\n\t\t//\t\tclearInterval(awardTickerTimer);\r\n\t\t\t\t\r\n\t\t//\t})\r\n\t\t//\t.on('mouseleave', function () {\r\n\t\t\t\t\r\n\t\t//\t\t$(this)\r\n\t\t//\t\t\t.data('hovered', false);\r\n\t\t\t\t\r\n\t\t//\t\trunAwardTicker(false);\r\n\t\t\t\t\r\n\t\t//\t});\r\n\t\t\r\n\t\t$(function () {\r\n\t\t\t\r\n\t\t\tinitializeAwardTicker();\r\n\t\t\t\r\n\t\t\trunAwardTicker(true);\r\n\t\t\r\n\t\t});\r\n\t\t\r\n\t}*/\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t//HANDLE AIR-RESERVATIONS IN THE HEADER\r\n\t/*var autocompleteLoading\t\t\t\t=\tfalse,\r\n\t\tautocompleteAirReservationSetup\t=\tfalse,\r\n\t\tallAirportData\t\t\t\t\t=\t[],\r\n\t\tcloseAirportProximityInKM\t\t=\t160,\r\n\t\t$reservationForm\t\t\t\t=\t$header.find('.pepvalidate-v3').filter('.reservations'),\r\n\t\t$autocompleteEle\t\t\t\t=\t$reservationForm.find('.reservation-flight-city').find('input'),\r\n\t\t$flightReservationBtn\t\t\t=\t$reservationForm.find('.btn').filter('.flight-reservation'),\r\n\t\t$hotelReservationBtn\t\t\t=\t$reservationForm.find('.btn').filter('.hotel-reservation');\r\n\t\r\n\tfunction getDistanceFromLatLonInKm(lat1,lon1,lat2,lon2) {\r\n\t\tvar R = 6371; // Radius of the earth in km\r\n\t\tvar dLat = deg2rad(lat2-lat1); // deg2rad below\r\n\t\tvar dLon = deg2rad(lon2-lon1);\r\n\t\tvar a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.sin(dLon/2) * Math.sin(dLon/2);\r\n\t\tvar c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\r\n\t\tvar d = R * c; // Distance in km\r\n\t\treturn d;\r\n\t}\r\n\t\r\n\tfunction deg2rad(deg) {\r\n\t\treturn deg * (Math.PI/180);\r\n\t}*/\r\n\t\r\n\t/**\r\n\t *\tDetermines if $.fn.autocomplete is loaded.\r\n\t *\r\n\t *\t@return\tboolean\tTRUE if loaded, FALSE if not.\r\n\t */\r\n\t/*function determineIfAutocompleteLoaded() {\r\n\t\t\r\n\t\treturn typeof $.fn.autocomplete === 'function';\r\n\t\t\r\n\t}*/\r\n\t\r\n\t/**\r\n\t *\tLoad the script necessary for autocomplete functionality.\r\n\t *\r\n\t *\t@return\tvoid\tN/A\r\n\t */\r\n\t/*function loadAutocompleteScript() {\r\n\t\t\r\n\t\t//only load autocomplete if it's not loaded or loading\r\n\t\tif (!autocompleteLoading && !determineIfAutocompleteLoaded() && 'JSON' in window) {\r\n\t\t\t\r\n\t\t\tautocompleteLoading\t=\ttrue;\r\n\t\t\t\r\n\t\t\t$.ajax({\r\n\t\t\t\turl\t\t\t:\t'/library/css/jquery-autocomplete.min.css',\r\n\t\t\t\ttype\t\t:\t'get',\r\n\t\t\t\tcache\t\t:\ttrue,\r\n\t\t\t\tdataType\t:\t'text',\r\n\t\t\t\tsuccess\t\t:\tfunction (response) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$('html')\r\n\t\t\t\t\t\t.append('');\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t$.ajax({\r\n\t\t\t\turl\t\t\t:\t'/library/js/jquery-autocomplete.min.js',\r\n\t\t\t\ttype\t\t:\t'get',\r\n\t\t\t\tcache\t\t:\ttrue,\r\n\t\t\t\tdataType\t:\t'script',\r\n\t\t\t\tsuccess\t\t:\tfunction () {\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar counter\t\t\t\t\t=\t0,\r\n\t\t\t\t\t\tinterval\t\t\t\t=\t250,\r\n\t\t\t\t\t\tmax\t\t\t\t\t\t=\t3500,\r\n\t\t\t\t\t\tautocompleteInterval\t=\tsetInterval(function () {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (determineIfAutocompleteLoaded() || counter * interval > max) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tclearInterval(autocompleteInterval);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tsetupHeaderAirReservationAutocomplete();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}, interval);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t} else if (determineIfAutocompleteLoaded() && !$flightReservationBtn.hasClass('btn-dark')) {\r\n\t\t\t\r\n\t\t\tfindAllAirports();\r\n\t\t\t//findClosestAirports();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\tfunction filterCloseAirports(lng, lat, proximity) {\r\n\t\t\r\n\t\tvar output\t=\t[];\r\n\t\t\r\n\t\tfor (var i = 0, l = allAirportData.length; i < l; i++) {\r\n\t\t\t\r\n\t\t\tif (proximity > getDistanceFromLatLonInKm(lat, lng, allAirportData[i].data.lat, allAirportData[i].data.lng)) {\r\n\t\t\t\t\r\n\t\t\t\toutput.push(allAirportData[i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn output;\r\n\t\t\r\n\t}\r\n\t\r\n\tfunction createSelectableListOfAirports(airports) {\r\n\t\t\r\n\t\tif (airports.length) {\r\n\t\t\t\r\n\t\t\tvar $suggestionListEle\t\t=\t$('');\r\n\t\t\t\r\n\t\t\tfor (var i = 0, l = airports.length; i < l; i++) {\r\n\t\t\t\t\r\n\t\t\t\tif (typeof airports[i].data.isGroup === 'boolean' && airports[i].data.isGroup) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$suggestionListEle\r\n\t\t\t\t\t\t.append('