/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.widget.CalendarViews"],["require","dojox.widget.Calendar"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.widget.CalendarViews"]){_4._hasResource["dojox.widget.CalendarViews"]=true;_4.provide("dojox.widget.CalendarViews");_4.experimental("dojox.widget.CalendarViews");_4.require("dojox.widget.Calendar");_4.declare("dojox.widget._CalendarMonth",null,{constructor:function(){this._addView(_6.widget._CalendarMonthView);}});_4.declare("dojox.widget._CalendarMonthView",[_6.widget._CalendarView,_5._Templated],{templateString:_4.cache("dojox.widget","Calendar/CalendarMonth.html","<div class=\"dojoxCalendarMonthLabels\" style=\"left: 0px;\"  \r\n\tdojoAttachPoint=\"monthContainer\" dojoAttachEvent=\"onclick: onClick\">\r\n    <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin: auto;\">\r\n        <tbody>\r\n            <tr class=\"dojoxCalendarMonthGroupTemplate\">\r\n                <td class=\"dojoxCalendarMonthTemplate\">\r\n                    <div class=\"dojoxCalendarMonthLabel\"></div>\r\n                </td>\r\n             </tr>\r\n        </tbody>\r\n    </table>\r\n</div>\r\n"),datePart:"year",headerClass:"dojoxCalendarMonthHeader",postCreate:function(){this.cloneClass(".dojoxCalendarMonthTemplate",3);this.cloneClass(".dojoxCalendarMonthGroupTemplate",2);this._populateMonths();this.addFx(".dojoxCalendarMonthLabel",this.domNode);},_setValueAttr:function(_7){this.header.innerHTML=_7.getFullYear();},_getMonthNames:_6.widget._CalendarMonthYearView.prototype._getMonthNames,_populateMonths:_6.widget._CalendarMonthYearView.prototype._populateMonths,onClick:function(_8){if(!_4.hasClass(_8.target,"dojoxCalendarMonthLabel")){_4.stopEvent(_8);return;}var _9=_8.target.parentNode;var _a=_9.cellIndex+(_9.parentNode.rowIndex*4);var _b=this.get("value");_b.setMonth(_a);_b.setMonth(_a);this.onValueSelected(_b,_a);}});_4.declare("dojox.widget._CalendarYear",null,{parent:null,constructor:function(){this._addView(_6.widget._CalendarYearView);}});_4.declare("dojox.widget._CalendarYearView",[_6.widget._CalendarView,_5._Templated],{templateString:_4.cache("dojox.widget","Calendar/CalendarYear.html","<div class=\"dojoxCalendarYearLabels\" style=\"left: 0px;\" dojoAttachPoint=\"yearContainer\">\r\n    <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"margin: auto;\" dojoAttachEvent=\"onclick: onClick\">\r\n        <tbody>\r\n            <tr class=\"dojoxCalendarYearGroupTemplate\">\r\n                <td class=\"dojoxCalendarNextMonth dojoxCalendarYearTemplate\">\r\n                    <div class=\"dojoxCalendarYearLabel\">\r\n                    </div>\r\n                </td>\r\n            </tr>\r\n        </tbody>\r\n    </table>\r\n</div>\r\n"),displayedYears:6,postCreate:function(){this.cloneClass(".dojoxCalendarYearTemplate",3);this.cloneClass(".dojoxCalendarYearGroupTemplate",2);this._populateYears();this.addFx(".dojoxCalendarYearLabel",this.domNode);},_setValueAttr:function(_c){this._populateYears(_c.getFullYear());},_populateYears:_6.widget._CalendarMonthYearView.prototype._populateYears,adjustDate:function(_d,_e){return _4.date.add(_d,"year",_e*12);},onClick:function(_f){if(!_4.hasClass(_f.target,"dojoxCalendarYearLabel")){_4.stopEvent(_f);return;}var _10=Number(_f.target.innerHTML);var _11=this.get("value");_11.setYear(_10);this.onValueSelected(_11,_10);}});_4.declare("dojox.widget.Calendar3Pane",[_6.widget._CalendarBase,_6.widget._CalendarDay,_6.widget._CalendarMonth,_6.widget._CalendarYear],{});_4.declare("dojox.widget.MonthlyCalendar",[_6.widget._CalendarBase,_6.widget._CalendarMonth],{_makeDate:function(_12){var now=new Date();now.setMonth(_12);return now;}});_4.declare("dojox.widget.YearlyCalendar",[_6.widget._CalendarBase,_6.widget._CalendarYear],{_makeDate:function(_13){var now=new Date();now.setFullYear(_13);return now;}});}}};});