/*
	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.date.posix"],["require","dojo.date"],["require","dojo.date.locale"],["require","dojo.string"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.date.posix"]){_4._hasResource["dojox.date.posix"]=true;_4.provide("dojox.date.posix");_4.require("dojo.date");_4.require("dojo.date.locale");_4.require("dojo.string");_6.date.posix.strftime=function(_7,_8,_9){var _a=null;var _b=function(s,n){return _4.string.pad(s,n||2,_a||"0");};var _c=_4.date.locale._getGregorianBundle(_9);var $=function(_d){switch(_d){case "a":return _4.date.locale.getNames("days","abbr","format",_9)[_7.getDay()];case "A":return _4.date.locale.getNames("days","wide","format",_9)[_7.getDay()];case "b":case "h":return _4.date.locale.getNames("months","abbr","format",_9)[_7.getMonth()];case "B":return _4.date.locale.getNames("months","wide","format",_9)[_7.getMonth()];case "c":return _4.date.locale.format(_7,{formatLength:"full",locale:_9});case "C":return _b(Math.floor(_7.getFullYear()/100));case "d":return _b(_7.getDate());case "D":return $("m")+"/"+$("d")+"/"+$("y");case "e":if(_a==null){_a=" ";}return _b(_7.getDate());case "f":if(_a==null){_a=" ";}return _b(_7.getMonth()+1);case "g":break;case "G":_4.unimplemented("unimplemented modifier 'G'");break;case "F":return $("Y")+"-"+$("m")+"-"+$("d");case "H":return _b(_7.getHours());case "I":return _b(_7.getHours()%12||12);case "j":return _b(_4.date.locale._getDayOfYear(_7),3);case "k":if(_a==null){_a=" ";}return _b(_7.getHours());case "l":if(_a==null){_a=" ";}return _b(_7.getHours()%12||12);case "m":return _b(_7.getMonth()+1);case "M":return _b(_7.getMinutes());case "n":return "\n";case "p":return _c["dayPeriods-format-wide-"+(_7.getHours()<12?"am":"pm")];case "r":return $("I")+":"+$("M")+":"+$("S")+" "+$("p");case "R":return $("H")+":"+$("M");case "S":return _b(_7.getSeconds());case "t":return "\t";case "T":return $("H")+":"+$("M")+":"+$("S");case "u":return String(_7.getDay()||7);case "U":return _b(_4.date.locale._getWeekOfYear(_7));case "V":return _b(_6.date.posix.getIsoWeekOfYear(_7));case "W":return _b(_4.date.locale._getWeekOfYear(_7,1));case "w":return String(_7.getDay());case "x":return _4.date.locale.format(_7,{selector:"date",formatLength:"full",locale:_9});case "X":return _4.date.locale.format(_7,{selector:"time",formatLength:"full",locale:_9});case "y":return _b(_7.getFullYear()%100);case "Y":return String(_7.getFullYear());case "z":var _e=_7.getTimezoneOffset();return (_e>0?"-":"+")+_b(Math.floor(Math.abs(_e)/60))+":"+_b(Math.abs(_e)%60);case "Z":return _4.date.getTimezoneName(_7);case "%":return "%";}};var _f="";var i=0;var _10=0;var _11=null;while((_10=_8.indexOf("%",i))!=-1){_f+=_8.substring(i,_10++);switch(_8.charAt(_10++)){case "_":_a=" ";break;case "-":_a="";break;case "0":_a="0";break;case "^":_11="upper";break;case "*":_11="lower";break;case "#":_11="swap";break;default:_a=null;_10--;break;}var _12=$(_8.charAt(_10++));switch(_11){case "upper":_12=_12.toUpperCase();break;case "lower":_12=_12.toLowerCase();break;case "swap":var _13=_12.toLowerCase();var _14="";var ch="";for(var j=0;j<_12.length;j++){ch=_12.charAt(j);_14+=(ch==_13.charAt(j))?ch.toUpperCase():ch.toLowerCase();}_12=_14;break;default:break;}_11=null;_f+=_12;i=_10;}_f+=_8.substring(i);return _f;};_6.date.posix.getStartOfWeek=function(_15,_16){if(isNaN(_16)){_16=_4.cldr.supplemental.getFirstDayOfWeek?_4.cldr.supplemental.getFirstDayOfWeek():0;}var _17=_16;if(_15.getDay()>=_16){_17-=_15.getDay();}else{_17-=(7-_15.getDay());}var _18=new Date(_15);_18.setHours(0,0,0,0);return _4.date.add(_18,"day",_17);};_6.date.posix.setIsoWeekOfYear=function(_19,_1a){if(!_1a){return _19;}var _1b=_6.date.posix.getIsoWeekOfYear(_19);var _1c=_1a-_1b;if(_1a<0){var _1d=_6.date.posix.getIsoWeeksInYear(_19);_1c=(_1d+_1a+1)-_1b;}return _4.date.add(_19,"week",_1c);};_6.date.posix.getIsoWeekOfYear=function(_1e){var _1f=_6.date.posix.getStartOfWeek(_1e,1);var _20=new Date(_1e.getFullYear(),0,4);_20=_6.date.posix.getStartOfWeek(_20,1);var _21=_1f.getTime()-_20.getTime();if(_21<0){return _6.date.posix.getIsoWeeksInYear(_1f);}return Math.ceil(_21/604800000)+1;};_6.date.posix.getIsoWeeksInYear=function(_22){function p(y){return y+Math.floor(y/4)-Math.floor(y/100)+Math.floor(y/400);};var y=_22.getFullYear();return (p(y)%7==4||p(y-1)%7==3)?53:52;};}}};});