':""):"")}x+=Y}return x+=r+(hs_gf.browser.msie&&parseInt(hs_gf.browser.version,10)<7&&!e.inline?'':""),e._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,a,i,s,r,n,o){var h=this._get(e,"changeMonth"),c=this._get(e,"changeYear"),d=this._get(e,"showMonthAfterYear"),u='',l="";if(r||!h)l+=''+n[t]+"";else{var g=i&&i.getFullYear()==a,_=s&&s.getFullYear()==a;l+='"}if(d||(u+=l+(!r&&h&&c?"":" ")),!e.yearshtml)if(e.yearshtml="",r||!c)u+=''+a+"";else{var f=this._get(e,"yearRange").split(":"),m=(new this.CDate).getFullYear(),n=function(e){e=e.match(/c[+-].*/)?a+parseInt(e.substring(1),10):e.match(/[+-].*/)?m+parseInt(e,10):parseInt(e,10);return isNaN(e)?m:e},D=n(f[0]),k=Math.max(D,n(f[1]||"")),D=i?Math.max(D,i.getFullYear()):D,k=s?Math.min(k,s.getFullYear()):k;for(e.yearshtml+='",u+=e.yearshtml,e.yearshtml=null}return u+=this._get(e,"yearSuffix"),d&&(u+=(!r&&h&&c?"":" ")+l),u+"
"},_adjustInstDate:function(e,t,a){var i=e.drawYear+("Y"==a?t:0),s=e.drawMonth+("M"==a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"==a?t:0),t=this._restrictMinMax(e,this._daylightSavingAdjust(new this.CDate(i,s,t)));e.selectedDay=t.getDate(),e.drawMonth=e.selectedMonth=t.getMonth(),e.drawYear=e.selectedYear=t.getFullYear(),"M"!=a&&"Y"!=a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),t=a&&this._compareDate(t,"<",a)?a:t;return e&&this._compareDate(t,">",e)?e:t},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new this.CDate(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new this.CDate(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),s=this._daylightSavingAdjust(new this.CDate(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(e,s)},_isInRange:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max");return(!a||t.getTime()>=a.getTime())&&(!e||t.getTime()<=e.getTime())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return this.CDate=this._get(e,"calendar"),{shortYearCutoff:t="string"!=typeof t?t:(new this.CDate).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);t=t?"object"==typeof t?t:this._daylightSavingAdjust(new this.CDate(i,a,t)):this._daylightSavingAdjust(new this.CDate(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),t,this._getFormatConfig(e))},_compareDate:function(e,t,a){return e&&a?(e.getGregorianDate&&(e=e.getGregorianDate()),a.getGregorianDate&&(a=a.getGregorianDate()),"<"==t?e