function openNav(){$("#myNav").css("height","100%");$("#myNav").css("padding-bottom","120px");$("body").css("overflow","hidden")}function classicSearch(n){e.preventDefault();var t=$("#txtClassicSearch").val();if(t==""&&t==undefined)return!1;location.href=n+"?search="+t}function closeNav(){$("#myNav").css("height","0%");$("#myNav").css("padding-bottom","0px");$("body").css("overflow","initial")}function searchResultProcess(n){if(n.target.id=="serchimg"||n.target.id=="txtClassicSearch"||n.target.id=="btnclosebtn")if(n.target.id=="txtClassicSearch")n.preventDefault();else if(n.target.id=="btnclosebtn"){var n=$.Event("keypress",{which:13});$("#txtClassicSearch").keypress(n)}else $("#divSearch").show(),$("#txtClassicSearch").val("."),$("#txtClassicSearch").focus(),$("#txtClassicSearch").val("");else $("#divSearch").hide()}function ChangeIt(){var n=["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg","6.jpg","7.jpg","8.jpg","9.jpg"];$("body").css({"background-image":"url(bgimages/"+n[Math.floor(Math.random()*n.length)]+")"})}function ChangeBackground(){var n=$("#hidbackgroudImage").val();document.body.background=n}function getFormattedDate(n){var r=n.getFullYear(),i=(1+n.getMonth()).toString(),t;return i=i.length>1?i:"0"+i,t=n.getDate().toString(),t=t.length>1?t:"0"+t,i+"/"+t+"/"+r}function CalculateParkingFee(){var a;if($(".divParkingFees").length!=null){var v=$(".divParkingFees").find("input[id$='entryDate']").val(),y=$(".divParkingFees").find("input[id$='exitDate']").val(),u=$(".divParkingFees").find("#entryTime :selected").text(),f=$(".divParkingFees").find("#exitTime :selected").text(),e=new Date(v),o=new Date(y),t=0,i=0,n;if(u.indexOf("AM")>0?(n=am_pm_to_hours(u),t=n.split(":")[0],i=n.split(":")[1],e.setHours(t,i)):u.indexOf("PM")>0&&(n=am_pm_to_hours(u),t=n.split(":")[0],i=n.split(":")[1],e.setHours(t,i)),f.indexOf("AM")>0?(n=am_pm_to_hours(f),t=n.split(":")[0],i=n.split(":")[1],o.setHours(t,i)):f.indexOf("PM")>0&&(n=am_pm_to_hours(f),t=n.split(":")[0],i=n.split(":")[1],t<12&&(t=t+12),o.setHours(t,i)),a=validate(e,o),!a)return!1;var p=parseInt($(".divParkingFees").find("#idParkingLot :selected").val()),h=0,c=0,l=0;p!=-1&&(h=parseInt($(".divParkingFees").find("#idParkingLot :selected").attr("parkingFee")),c=parseInt($(".divParkingFees").find("#idParkingLot :selected").attr("afterHourFee")),l=parseInt($(".divParkingFees").find("#idParkingLot :selected").attr("maxFee")));var w=parseInt(e.getTime()/1e3),b=parseInt(o.getTime()/1e3),s=(b-w)/3600,r=0;s<=24&&(r=parkingByLess24Hours(s,h,l,c));s>24&&(r=parkingByMore24Hours(s,h,l,c));r=Number(r);$(".divParkingFees").find("#btnResult").html("$"+r.toFixed(2)+"*")}}function resetCalculateParkingForm(){$(".divParkingFees").find("input[id$='entryDate']").val(resetDate);$(".divParkingFees").find("input[id$='exitDate']").val(resetDate);var n=$(".divParkingFees").find("#entryTime").val("-1"),t=$(".divParkingFees").find("#exitTime").val("-1"),i=$(".divParkingFees").find("#idParkingLot").val("-1");$(".divParkingFees").find("#btnResult").html("$0.00*")}function validate(n,t){var i=!1,r=$(".divParkingFees").find("input[id$='entryDate']").val(),u=$(".divParkingFees").find("input[id$='exitDate']").val(),f=$(".divParkingFees").find("#entryTime :selected").val(),e=$(".divParkingFees").find("#exitTime :selected").val(),o=$(".divParkingFees").find("#idParkingLot :selected").val();if(r=="")return $(".divParkingFees").find("span[id$='spanEntryDate']").show(),!1;if($(".divParkingFees").find("span[id$='spanEntryDate']").hide(),i=!0,u=="")return $(".divParkingFees").find("span[id$='spanExitDate']").show(),!1;if($(".divParkingFees").find("span[id$='spanExitDate']").hide(),i=!0,f=="-1")return $(".divParkingFees").find("span[id$='spanEntryTime']").show(),!1;if($(".divParkingFees").find("span[id$='spanEntryTime']").hide(),i=!0,e=="-1")return $(".divParkingFees").find("span[id$='spanExitTime']").show(),!1;if($(".divParkingFees").find("span[id$='spanExitTime']").hide(),i=!0,o=="-1")return $(".divParkingFees").find("span[id$='spanParkingLot']").show(),!1;$(".divParkingFees").find("span[id$='spanParkingLot']").hide();i=!0;var s=parseInt(n.getTime()/1e3),h=parseInt(t.getTime()/1e3),c=(h-s)/3600;return c<0?($(".divParkingFees").find("span[id$='spanInvalidDate']").show(),!1):($(".divParkingFees").find("span[id$='spanInvalidDate']").hide(),i=!0,i)}function parkingByLess24Hours(n,t,i,r){var u=0,f,e;return n<=1?u=t:n>1&&n<24?(f=n-1,e=f*2,u=t,u=u+e*r,u>i&&(u=i)):n==24&&(u=i),u}function parkingByMore24Hours(n,t,i,r){var u=0,f,e;return n>1&&n>=24&&(f=n/24,e=n%24,f==1?u=parkingByLess24Hours(24,t,i,r):f>1&&(u=i*Math.floor(f),e>0&&(u=u+parkingByLess24Hours(e,t,i,r)))),u}function am_pm_to_hours(n){var i,r;console.log(n);var t=Number(n.match(/^(\d+)/)[1]),u=Number(n.match(/:(\d+)/)[1]),f=n.match(/\s(.*)$/)[1];return f.toLowerCase()=="pm"&&t<12&&(t=t+12),f.toLowerCase()=="am"&&t==12&&(t=t-12),i=t.toString(),r=u.toString(),t<10&&(i="0"+i),u<10&&(r="0"+r),i+":"+r}!function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function e(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function y(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function c(n){return function(){return this[n].apply(this,arguments)}}function p(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function w(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;r>t;t++)if(this[t].valueOf()===i)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){this._process_options(r);this.dates=new l;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&0===this.component.length&&(this.component=!1);this.picker=n(i.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.setDatesDisabled(this.o.datesDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},h,a,o,s,v,r,i;f.prototype={constructor:f,_process_options:function(f){var o,c,a,v,h,l;this._o=n.extend({},this._o,f);o=this.o=n.extend({},this._o);c=o.language;switch(r[c]||(c=c.split("-")[0],r[c]||(c=s.language)),o.language=c,o.startView){case 2:case"decade":o.startView=2;break;case 1:case"year":o.startView=1;break;default:o.startView=0}switch(o.minViewMode){case 1:case"months":o.minViewMode=1;break;case 2:case"years":o.minViewMode=2;break;default:o.minViewMode=0}if(o.startView=Math.max(o.startView,o.minViewMode),o.multidate!==!0&&(o.multidate=Number(o.multidate)||!1,o.multidate!==!1&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7,a=i.parseFormat(o.format),(o.startDate!==-(1/0)&&(o.startDate=o.startDate?o.startDate instanceof Date?this._local_to_utc(this._zero_time(o.startDate)):i.parseDate(o.startDate,a,o.language):-(1/0)),o.endDate!==1/0&&(o.endDate=o.endDate?o.endDate instanceof Date?this._local_to_utc(this._zero_time(o.endDate)):i.parseDate(o.endDate,a,o.language):1/0),o.daysOfWeekDisabled=o.daysOfWeekDisabled||[],n.isArray(o.daysOfWeekDisabled)||(o.daysOfWeekDisabled=o.daysOfWeekDisabled.split(/[,\s]*/)),o.daysOfWeekDisabled=n.map(o.daysOfWeekDisabled,function(n){return parseInt(n,10)}),o.datesDisabled=o.datesDisabled||[],n.isArray(o.datesDisabled))||(v=[],v.push(i.parseDate(o.datesDisabled,a,o.language)),o.datesDisabled=v),o.datesDisabled=n.map(o.datesDisabled,function(n){return i.parseDate(n,a,o.language)}),h=String(o.orientation).toLowerCase().split(/\s+/g),l=o.orientation.toLowerCase(),h=n.grep(h,function(n){return/^auto|left|right|top|bottom$/.test(n)}),o.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===h.length)switch(h[0]){case"top":case"bottom":o.orientation.y=h[0];break;case"left":case"right":o.orientation.x=h[0]}else l=n.grep(h,function(n){return/^left|right$/.test(n)}),o.orientation.x=l[0]||"auto",l=n.grep(h,function(n){return/^top|bottom$/.test(n)}),o.orientation.y=l[0]||"auto";if(o.defaultViewDate){var y=o.defaultViewDate.year||(new Date).getFullYear(),p=o.defaultViewDate.month||0,w=o.defaultViewDate.day||1;o.defaultViewDate=u(y,p,w)}else o.defaultViewDate=e();o.showOnFocus=o.showOnFocus!==t?o.showOnFocus:!0},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){-1===n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:n.proxy(this.keydown,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this.isInput?this._events=[[this.element,t]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),t],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!this.element.attr("readonly")||this.o.enableOnReadonly!==!1)return(this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this)},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},remove:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},_utc_to_local:function(n){return n&&new Date(n.getTime()+6e4*n.getTimezoneOffset())},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return"undefined"!=typeof n?new Date(n):null},clearDates:function(){var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input"));n&&n.val("").change();this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,n.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:c("setDates"),setUTCDate:c("setUTCDates"),setValue:function(){var n=this.getFormattedDate();return this.isInput?this.element.val(n).change():this.component&&this.element.find("input").val(n).change(),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this.updateNavArrows(),this},setDatesDisabled:function(n){this._process_options({datesDisabled:n});this.update();this.updateNavArrows()},place:function(){var p,s,u,w;if(this.isInline)return this;var f=this.picker.outerWidth(),e=this.picker.outerHeight(),h=n(this.o.container).width(),b=n(this.o.container).height(),c=n(this.o.container).scrollTop(),l=n(this.o.container).offset(),a=[];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==t&&a.push(parseInt(t))});var v=Math.max.apply(Math,a)+10,r=this.component?this.component.parent().offset():this.element.offset(),y=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=r.left-l.left,i=r.top-l.top;return this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):r.left<0?(this.picker.addClass("datepicker-orient-left"),t-=r.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t=r.left+o-f):this.picker.addClass("datepicker-orient-left"),u=this.o.orientation.y,("auto"===u&&(p=-c+i-e,s=c+b-(i+y+e),u=Math.max(p,s)===s?"top":"bottom"),this.picker.addClass("datepicker-orient-"+u),"top"===u?i+=y:i-=e+parseInt(this.picker.css("padding-top")),this.o.rtl)?(w=h-(t+o),this.picker.css({top:i,right:w,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var r=this.dates.copy(),t=[],u=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language)},this)),t=n.grep(t,n.proxy(function(n){return n<this.o.startDate||n>this.o.endDate||!n},this),!0),this.dates.replace(t),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&r.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var t=this.o.weekStart,n="<tr>",i;for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(n,t){return parseInt(t)+1}),i='<th class="cw">&#160;<\/th>',n+=i);t<this.o.weekStart+7;)n+='<th class="dow">'+r[this.o.language].daysMin[t++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;12>t;)n+='<span class="month">'+r[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),this.o.datesDisabled.length>0&&n.grep(this.o.datesDisabled,function(n){return y(t,n)}).length>0&&i.push("disabled","disabled-date"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!==n.inArray(t.valueOf(),this.range)&&i.push("selected")),i},fill:function(){var y,g=new Date(this.viewDate),f=g.getUTCFullYear(),p=g.getUTCMonth(),w=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),ft=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),b=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,et=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,ot=r[this.o.language].today||r.en.today||"",st=r[this.o.language].clear||r.en.clear||"",e,k,c,h,s,o,l,it,rt,a,ut,v;if(!isNaN(f)&&!isNaN(p)){for(this.picker.find(".datepicker-days thead .datepicker-switch").text(r[this.o.language].months[p]+" "+f),this.picker.find("tfoot .today").text(ot).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(st).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),e=u(f,p-1,28),k=i.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),e.setUTCDate(k),e.setUTCDate(k-(e.getUTCDay()-this.o.weekStart+7)%7),c=new Date(e),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),s=[];e.valueOf()<c;){if(e.getUTCDay()===this.o.weekStart&&(s.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-e.getUTCDay()-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),d=new Date(Number(d=u(tt.getUTCFullYear(),0,1))+(11-d.getUTCDay())%7*864e5),ht=(tt-d)/6048e5+1;s.push('<td class="cw">'+ht+"<\/td>")}(h=this.getClassNames(e),h.push("day"),this.o.beforeShowDay!==n.noop)&&(o=this.o.beforeShowDay(this._utc_to_local(e)),o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled===!1&&h.push("disabled"),o.classes&&(h=h.concat(o.classes.split(/\s+/))),o.tooltip&&(y=o.tooltip));h=n.unique(h);s.push('<td class="'+h.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+e.getUTCDate()+"<\/td>");y=null;e.getUTCDay()===this.o.weekEnd&&s.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(s.join("")),l=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),(n.each(this.dates,function(n,t){t.getUTCFullYear()===f&&l.eq(t.getUTCMonth()).addClass("active")}),(w>f||f>b)&&l.addClass("disabled"),f===w&&l.slice(0,ft).addClass("disabled"),f===b&&l.slice(et+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(it=this,n.each(l,function(t,i){if(!n(i).hasClass("disabled")){var r=new Date(f,t,1),u=it.o.beforeShowMonth(r);u===!1&&n(i).addClass("disabled")}})),s="",f=10*parseInt(f/10,10),rt=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,ut=n.map(this.dates,function(n){return n.getUTCFullYear()}),v=-1;11>v;v++)a=["year"],-1===v?a.push("old"):10===v&&a.push("new"),-1!==n.inArray(f,ut)&&a.push("active"),(w>f||f>b)&&a.push("disabled"),s+='<span class="'+a.join(" ")+'">'+f+"<\/span>",f+=1;rt.html(s)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){var e,f,o,r,h,s,c;if(t.preventDefault(),r=n(t.target).closest("span, td, th"),1===r.length)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":h=i.modes[this.viewMode].navStep*("prev"===r[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,h);this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,h);1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":s=new Date;s=u(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0);this.showMode(-2);c="linked"===this.o.todayBtn?null:"view";this._setDate(s,c);break;case"clear":this.clearDates()}break;case"span":r.hasClass("disabled")||(this.viewDate.setUTCDate(1),r.hasClass("month")?(o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(u(e,f,o))):(o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill());break;case"td":r.hasClass("day")&&!r.hasClass("disabled")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.hasClass("old")?0===f?(f=11,e-=1):f-=1:r.hasClass("new")&&(11===f?(f=0,e+=1):f+=1),this._setDate(u(e,f,o)))}this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus();delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),-1!==t?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));t&&"view"!==t||(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();!this.o.autoclose||t&&"date"!==t||this.hide()},moveMonth:function(n,i){var e;if(!n)return t;if(!i)return n;var u,f,r=new Date(n.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),h=Math.abs(i);if(i=i>0?1:-1,1===h)f=-1===i?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==u},u=s+i,r.setUTCMonth(u),(0>u||u>11)&&(u=(u+12)%12);else{for(e=0;h>e;e++)r=this.moveMonth(r,i);u=r.getUTCMonth();r.setUTCDate(o);f=function(){return u!==r.getUTCMonth()}}for(;f();)r.setUTCDate(--o),r.setUTCMonth(u);return r},moveYear:function(n,t){return this.moveMonth(n,12*t)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var t,u,i,o,r,f;if(!this.picker.is(":visible"))return void(27===n.keyCode&&this.show());o=!1;r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=37===n.keyCode?-1:1;n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+t),i=new Date(r),i.setUTCDate(r.getUTCDate()+t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=38===n.keyCode?-1:1;n.ctrlKey?(u=this.moveYear(this.dates.get(-1)||e(),t),i=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(u=this.moveMonth(this.dates.get(-1)||e(),t),i=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):(u=new Date(this.dates.get(-1)||e()),u.setUTCDate(u.getUTCDate()+7*t),i=new Date(r),i.setUTCDate(r.getUTCDate()+7*t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),"function"==typeof n.stopPropagation?n.stopPropagation():n.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}o&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n)));this.picker.children("div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};h=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;o.call(n(this.inputs),i).bind("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};h.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var e=n(t.target).data("datepicker"),i=e.getUTCDate(),f=n.inArray(t.target,this.inputs),r=f-1,u=f+1,o=this.inputs.length;if(-1!==f){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(i)}),i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[u])for(;o>u&&i>this.dates[u];)this.pickers[u++].setUTCDate(i);this.updateDates();delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};a=n.fn.datepicker;o=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var o=n(this),e=o.data("datepicker"),l="object"==typeof i&&i,v;if(!e){var a=p(this,"date"),y=n.extend({},s,a,l),b=w(y.language),c=n.extend({},s,b,a,l);o.hasClass("input-daterange")||c.inputs?(v={inputs:c.inputs||o.find("input").toArray()},o.data("datepicker",e=new h(this,n.extend(c,v)))):o.data("datepicker",e=new f(this,c))}if("string"==typeof i&&"function"==typeof e[i]&&(r=e[i].apply(e,u),r!==t))return!1}),r!==t?r:this};n.fn.datepicker=o;s=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body"};v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=f;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,"\x00").split("\x00"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s){function nt(){var n=this.slice(0,c[h].length),t=c[h].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var v,y,h,tt,c,a,it,d,w;if(!e)return t;if(e instanceof Date)return e;if("string"==typeof o&&(o=i.parseFormat(o)),tt=/([\-+]\d+)([dmwy])/,c=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,h=0;h<c.length;h++)switch(v=tt.exec(c[h]),y=parseInt(v[1]),v[2]){case"d":e.setUTCDate(e.getUTCDate()+y);break;case"m":e=f.prototype.moveMonth.call(f.prototype,e,y);break;case"w":e.setUTCDate(e.getUTCDate()+7*y);break;case"y":e=f.prototype.moveYear.call(f.prototype,e,y)}return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0)}c=e&&e.match(this.nonpunctuation)||[];e=new Date;var p,b,k={},g=["yyyy","yy","M","MM","m","mm","d","dd"],l={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;0>t;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(l.M=l.MM=l.mm=l.m,l.dd=l.d,e=u(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=o.parts.slice(),c.length!==a.length&&(a=n(a).filter(function(t,i){return-1!==n.inArray(i,g)}).toArray()),c.length===a.length){for(h=0,it=a.length;it>h;h++){if(p=parseInt(c[h],10),v=a[h],isNaN(p))switch(v){case"MM":b=n(r[s].months).filter(nt);p=n.inArray(b[0],r[s].months)+1;break;case"M":b=n(r[s].monthsShort).filter(nt);p=n.inArray(b[0],r[s].monthsShort)+1}k[v]=p}for(h=0;h<g.length;h++)w=g[h],w in k&&!isNaN(k[w])&&(d=new Date(e),l[w](d,k[w]),isNaN(d)||(e=d))}return e},formatDate:function(t,u,f){var e;if(!t)return"";"string"==typeof u&&(u=i.parseFormat(u));e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;h>=o;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">&#171;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&#187;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this};n.fn.datepicker.version="1.4.1";n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})}(window.jQuery);$("#imgSearch").click(function(){$("#divSearch").show();$("#txtClassicSearch").focus()});$("#serchimg").click(function(){$("#divSearch").show();$("#txtClassicSearch").val(".");$("#txtClassicSearch").focus();$("#txtClassicSearch").val("")});$(document).on("click",searchResultProcess);document.addEventListener("touchstart",searchResultProcess,{passive:!0});$(document).ready(function(){$("#plextended").click(function(){$(".haserror").toggle()});$(document).ready(function(){$('[data-toggle="tooltip"]').tooltip()});navigator.userAgent.indexOf("Mac")>1&&$(".tabsection ul.nav.nav-tabs").css("margin-left","-1px")});$('.has-clear input[type="text"]').on("input propertychange",function(){var n=$(this),t=Boolean(n.val());n.siblings(".form-control-clear").toggleClass("hidden",!t)}).trigger("propertychange");$(".form-control-clear").click(function(){$(this).siblings('input[type="text"]').val("").trigger("propertychange").focus()});$(document).ready(function(){var n=$('input[name="date"]'),t=$(".bootstrap-iso form").length>0?$(".bootstrap-iso form").parent():"body";n.datepicker({format:"mm/dd/yyyy",container:t,todayHighlight:!0,autoclose:!0})});$(document).ready(function(){$("#closediv").click(function(){$("#gohome").show();$("#childone").toggle();$("#closediv").toggle();$(".child-two").toggle();$("div#TerminalT2section").toggle();$(".child-two").addClass("heightdiv")});$("#gohome").click(function(){$("#gohome").toggle();$("#childone").toggle();$("#closediv").toggle();$(".child-two").toggle();$("div#TerminalT2section").toggle();$(".child-two").addClass("heightdiv")})});$("ul.uldomestic li").on("click",function(){$("ul.uldomestic li").removeClass("active");$(this).addClass("active")});$("#arrivatable").click(function(){$("ul.ularrival li").removeClass("active");$(this).addClass("active");$("img.arrimgone").show();$("img.arriimgtwo").hide();$("#arrivalsid").show();$("#departuresid").hide()});$("#departuretable").click(function(){$("ul.ularrival li").removeClass("active");$(this).addClass("active");$("img.arrimgone").hide();$("img.arriimgtwo").show();$("#departuresid").show();$("#arrivalsid").hide()});$("#waze-btn").click(function(){$(this).toggleClass("highlight");$(this).text(function(n,t){return t==="Waze OFF"?"Waze ON":"Waze OFF"})});$("#Labels-btn").click(function(){$(this).toggleClass("highlight");$(this).text(function(n,t){return t==="Waze ON"?"Waze OFF":"Waze ON"})});$("#Alert-btn").click(function(){$(this).toggleClass("highlight");$(this).text(function(n,t){return t==="Alert ON"?"Alert OFF":"Alert ON"})});$(document).ready(function(){var t=$(".mapsection").width(),n;$("#iframeMap").css("width",t+"px");n=$(".mapsection").width();$("#AirportLiveRoutes").css("width",n+"px");$(window).resize(function(){var n,t;$("#iframeMap").css("width","auto");n=$(".mapsection").width();$("#iframeMap").css("width",n+"px");$("#AirportLiveRoutes").css("width","auto");t=$(".mapsection").width();$("#AirportLiveRoutes").css("width",t+"px")});$(window).width()<991&&$("ul.tabsada li.tab-link").click(function(){$("#myDiv").hide("slide",{direction:"right"})})});$(document).ready(function(){$("#ulFlightType li:first-child").addClass("active");$("#up").click(function(){var n=parseInt($(".adatab-content").css("font-size"));isNaN(n)&&(n=parseInt($(".adasection").css("font-size")));n=n+1+"px";$(".adatab-content,.adasection").find("span,li,h1,h2,h3,h4,div,label,a,p").each(function(){if(!$(this).hasClass("air-trafh1foram")){var n=parseInt($(this).css("font-size").replace("px",""));n=n+1+"px";$(this).css("font-size",n)}});$(".adatab-content").css({"font-size":n});$(".adasection").css({"font-size":n})});$("#down").click(function(){var n=parseInt($(".adatab-content").css("font-size"));isNaN(n)&&(n=parseInt($(".adasection").css("font-size")));n=n-1+"px";$(".adatab-content,.adasection").find("span,li,h1,h2,h3,h4,div,label,a,p").each(function(){if(!$(this).hasClass("air-trafh1foram")){var n=parseInt($(this).css("font-size").replace("px",""));n=n-1+"px";$(this).css("font-size",n)}});$(".adatab-content").css({"font-size":n});$(".adasection").css({"font-size":n})})});$(document).ready(function(){screen.width<767?$("ul.tabsada li.current").click(function(){$("#myDiv").hide()}):$("#myDiv").show()});$(document).ready(function(){$("#btnGetQuote").click(function(){return CalculateParkingFee(),!1});$("#btnBack").on("click",function(){return history.go(-1),!1});$("#btnBack2").on("click",function(){return history.go(-1),!1});$("#extended").click(function(){$(this).hide();$("#extended1").show();$(".TrafficLAXtwo > .TrafficLAXtwochild").toggle()});$("#extended1").click(function(){$(this).hide();$("#extended").show();$(".TrafficLAXtwo > .TrafficLAXtwochild").toggle()});$("#plextended").click(function(){$(this).hide();$("#plextended1").show();$(".Air-traffic-header .heading1").hide();$(".Air-traffic-header .heading2").show();$(".TrafficLAXtwo > .plTrafficLAXtwochild").toggle()});$("#plextended1").click(function(){$(this).hide();$("#plextended").show();$(".Air-traffic-header .heading1").show();$(".Air-traffic-header .heading2").hide();$(".TrafficLAXtwo > .plTrafficLAXtwochild").toggle()});$("span.plMoreInfo").click(function(){$(".colorclass").addClass("intro");$(".divParkingFees").toggle()});var n=getFormattedDate(new Date);$(".divParkingFees").find("input[id$='entryDate']")!=null&&$(".divParkingFees").find("input[id$='entryDate']").val(n);$(".divParkingFees").find("input[id$='exitDate']")!=null&&$(".divParkingFees").find("input[id$='exitDate']").val(n)});var resetDate;$(document).ready(function(){var n=$(".divParkingFees").find("input[id$='entryDate']").val();resetDate=n});$(document).ready(function(){$.fn.extend({treeview:function(){return this.each(function(){var n=$(this);n.addClass("treeview-tree");n.find("li").each(function(){var n=$(this)});n.find("li").has("ul").each(function(){var n=$(this);n.addClass("tree-branch");n.on("click",function(n){var i,t,r;this==n.target&&(i=$(this).children("span:first"),i.toggleClass("glyphicon-chevron-down glyphicon-chevron-right"),$(this).children().children().toggle());t=$(this).children()[1].href;r=$(this).children()[1].baseURI;t!=r&&window.location(t,"_blank")});n.children().children().toggle();n.children(".tree-indicator, button, a").click(function(t){n.click();t.preventDefault()})})})}})});$.urlParam=function(n,t){var i=new RegExp("[?&]"+n+"=([^&#]*)").exec(t);return i==null?null:decodeURI(i[1])||0};$(document).ready(function(){$(".treeview").each(function(){var n=$(this);n.treeview();$(".aReference").parent().addClass("tree-indicator glyphicon glyphicon-chevron-down");$(".referenceUL").children().attr("style","display: block")})});$(document).ready(function(){var n=sessionStorage.getItem("isHideNotification");n=="true"?$("#copyright-wrap").hide():$("#copyright-wrap").show();$("#closeNotification").click(function(){sessionStorage.setItem("isHideNotification","true")})}),function(n,t){"use strict";typeof define=="function"&&define.amd?define([],function(){return t.apply(n)}):typeof exports=="object"?module.exports=t.call(n):n.Waves=t.call(n)}(typeof global=="object"?global:this,function(){"use strict";function l(n){return n!==null&&n===n.window}function a(n){return l(n)?n:n.nodeType===9&&n.defaultView}function o(n){var t=typeof n;return t==="function"||t==="object"&&!!n}function v(n){return o(n)&&n.nodeType>0}function r(n){var t=f.call(n);return t==="[object String]"?c(n):o(n)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(t)&&n.hasOwnProperty("length")?n:v(n)?[n]:[]}function s(n){var t,i,r={top:0,left:0},u=n&&n.ownerDocument;return t=u.documentElement,typeof n.getBoundingClientRect!=typeof undefined&&(r=n.getBoundingClientRect()),i=a(u),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}}function u(n){var i="";for(var t in n)n.hasOwnProperty(t)&&(i+=t+":"+n[t]+";");return i}function p(t,i,r){var f;if(r){r.classList.remove("waves-rippling");var h=r.getAttribute("data-x"),c=r.getAttribute("data-y"),e=r.getAttribute("data-scale"),o=r.getAttribute("data-translate"),l=Date.now()-Number(r.getAttribute("data-hold")),s=350-l;s<0&&(s=0);t.type==="mousemove"&&(s=150);f=t.type==="mousemove"?2500:n.duration;setTimeout(function(){var n={top:c+"px",left:h+"px",opacity:"0","-webkit-transition-duration":f+"ms","-moz-transition-duration":f+"ms","-o-transition-duration":f+"ms","transition-duration":f+"ms","-webkit-transform":e+" "+o,"-moz-transform":e+" "+o,"-ms-transform":e+" "+o,"-o-transform":e+" "+o,transform:e+" "+o};r.setAttribute("style",u(n));setTimeout(function(){try{i.removeChild(r)}catch(n){return!1}},f)},s)}}function w(n){if(i.allowEvent(n)===!1)return null;for(var r=null,t=n.target||n.srcElement;t.parentElement!==null;){if(t.classList.contains("waves-effect")&&!(t instanceof SVGElement)){r=t;break}t=t.parentElement}return r}function h(t){var r=w(t);if(r!==null){if(r.disabled||r.getAttribute("disabled")||r.classList.contains("disabled"))return;if(i.registerEvent(t),t.type==="touchstart"&&n.delay){var o=!1,u=setTimeout(function(){u=null;n.show(t,r)},n.delay),f=function(i){u&&(clearTimeout(u),u=null,n.show(t,r));o||(o=!0,n.hide(i,r))},s=function(n){u&&(clearTimeout(u),u=null);f(n)};r.addEventListener("touchmove",s,!1);r.addEventListener("touchend",f,!1);r.addEventListener("touchcancel",f,!1)}else n.show(t,r),e&&(r.addEventListener("touchend",n.hide,!1),r.addEventListener("touchcancel",n.hide,!1)),r.addEventListener("mouseup",n.hide,!1),r.addEventListener("mouseleave",n.hide,!1)}}var t=t||{},c=document.querySelectorAll.bind(document),f=Object.prototype.toString,e="ontouchstart"in window,n={duration:750,delay:200,show:function(t,i,r){var e,l,o,f,a;if(t.button===2)return!1;i=i||this;e=document.createElement("div");e.className="waves-ripple waves-rippling";i.appendChild(e);var v=s(i),h=0,c=0;"touches"in t&&t.touches.length?(h=t.touches[0].pageY-v.top,c=t.touches[0].pageX-v.left):(h=t.pageY-v.top,c=t.pageX-v.left);c=c>=0?c:0;h=h>=0?h:0;l="scale("+i.clientWidth/100*3+")";o="translate(0,0)";r&&(o="translate("+r.x+"px, "+r.y+"px)");e.setAttribute("data-hold",Date.now());e.setAttribute("data-x",c);e.setAttribute("data-y",h);e.setAttribute("data-scale",l);e.setAttribute("data-translate",o);f={top:h+"px",left:c+"px"};e.classList.add("waves-notransition");e.setAttribute("style",u(f));e.classList.remove("waves-notransition");f["-webkit-transform"]=l+" "+o;f["-moz-transform"]=l+" "+o;f["-ms-transform"]=l+" "+o;f["-o-transform"]=l+" "+o;f.transform=l+" "+o;f.opacity="1";a=t.type==="mousemove"?2500:n.duration;f["-webkit-transition-duration"]=a+"ms";f["-moz-transition-duration"]=a+"ms";f["-o-transition-duration"]=a+"ms";f["transition-duration"]=a+"ms";e.setAttribute("style",u(f))},hide:function(n,t){var r,i,u;for(t=t||this,r=t.getElementsByClassName("waves-rippling"),i=0,u=r.length;i<u;i++)p(n,t,r[i])}},y={input:function(n){var i=n.parentNode,t;if(i.tagName.toLowerCase()!=="i"||!i.classList.contains("waves-effect")){t=document.createElement("i");t.className=n.className+" waves-input-wrapper";n.className="waves-button-input";i.replaceChild(t,n);t.appendChild(n);var r=window.getComputedStyle(n,null),u=r.color,f=r.backgroundColor;t.setAttribute("style","color:"+u+";background:"+f);n.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(n){var t=n.parentNode,i;t.tagName.toLowerCase()==="i"&&t.classList.contains("waves-effect")||(i=document.createElement("i"),t.replaceChild(i,n),i.appendChild(n))}},i={touches:0,allowEvent:function(n){var t=!0;return/^(mousedown|mousemove)$/.test(n.type)&&i.touches&&(t=!1),t},registerEvent:function(n){var t=n.type;t==="touchstart"?i.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){i.touches&&(i.touches-=1)},500)}};return t.init=function(t){var r=document.body;t=t||{};"duration"in t&&(n.duration=t.duration);"delay"in t&&(n.delay=t.delay);e&&(r.addEventListener("touchstart",h,!1),r.addEventListener("touchcancel",i.registerEvent,!1),r.addEventListener("touchend",i.registerEvent,!1));r.addEventListener("mousedown",h,!1)},t.attach=function(n,t){var i,e,u,o;for(n=r(n),f.call(t)==="[object Array]"&&(t=t.join(" ")),t=t?" "+t:"",u=0,o=n.length;u<o;u++)i=n[u],e=i.tagName.toLowerCase(),["input","img"].indexOf(e)!==-1&&(y[e](i),i=i.parentElement),i.className.indexOf("waves-effect")===-1&&(i.className+=" waves-effect"+t)},t.ripple=function(t,i){var e,a;if(t=r(t),e=t.length,i=i||{},i.wait=i.wait||0,i.position=i.position||null,e)for(var u,o,h,f={},c=0,l={type:"mousedown",button:1},v=function(t,i){return function(){n.hide(t,i)}};c<e;c++)u=t[c],o=i.position||{x:u.clientWidth/2,y:u.clientHeight/2},h=s(u),f.x=h.left+o.x,f.y=h.top+o.y,l.pageX=f.x,l.pageY=f.y,n.show(l,u),i.wait>=0&&i.wait!==null&&(a={type:"mouseup",button:1},setTimeout(v(a,u),i.wait))},t.calm=function(t){var u,i,f;for(t=r(t),u={type:"mouseup",button:1},i=0,f=t.length;i<f;i++)n.hide(u,t[i])},t.displayEffect=function(n){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect");t.init(n)},t})