/*
	Copyright (c) 2004-2010, 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
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_1,_2,_3){if(window[_1]){return window[_1];}if(window.frames[_1]){return window.frames[_1];}var _4=null;var _5=_3;if(!_5){if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}_5=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _6=dojo.isIE?"<iframe name=\""+_1+"\" src=\""+_5+"\" onload=\""+_2+"\">":"iframe";_4=dojo.doc.createElement(_6);with(_4){name=_1;setAttribute("name",_1);id=_1;}dojo.body().appendChild(_4);window[_1]=_4;with(_4.style){if(!(dojo.isSafari<3)){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_4,_5,true);_4.onload=new Function(_2);}return _4;},setSrc:function(_7,_8,_9){try{if(!_9){if(dojo.isWebKit){_7.location=_8;}else{frames[_7.name].location=_8;}}else{var _a;if(dojo.isIE||dojo.isWebKit>521){_a=_7.contentWindow.document;}else{if(dojo.isSafari){_a=_7.document;}else{_a=_7.contentWindow;}}if(!_a){_7.location=_8;return;}else{_a.location.replace(_8);}}}catch(e){}},doc:function(_b){var _c=_b.contentDocument||(((_b.name)&&(_b.document)&&(dojo.doc.getElementsByTagName("iframe")[_b.name].contentWindow)&&(dojo.doc.getElementsByTagName("iframe")[_b.name].contentWindow.document)))||((_b.name)&&(dojo.doc.frames[_b.name])&&(dojo.doc.frames[_b.name].document))||null;return _c;},send:function(_d){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var _e=dojo._ioSetArgs(_d,function(_f){_f.canceled=true;_f.ioArgs._callNext();},function(dfd){var _10=null;try{var _11=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _12=_11.handleAs;_10=ifd;if(_12!="html"){if(_12=="xml"){if(dojo.isIE){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _13=(dii._frame.contentWindow.document).documentElement.innerText;_13=_13.replace(/>\s+</g,"><");_13=dojo.trim(_13);var _14={responseText:_13};_10=dojo._contentHandlers["xml"](_14);}}else{_10=ifd.getElementsByTagName("textarea")[0].value;if(_12=="json"){_10=dojo.fromJson(_10);}else{if(_12=="javascript"){_10=dojo.eval(_10);}}}}}catch(e){_10=e;}finally{_11._callNext();}return _10;},function(_15,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _15;});_e.ioArgs._callNext=function(){if(!this["_calledNext"]){this._calledNext=true;dojo.io.iframe._currentDfd=null;dojo.io.iframe._fireNextRequest();}};this._dfdQueue.push(_e);this._fireNextRequest();dojo._ioWatch(_e,function(dfd){return !dfd.ioArgs["_hasError"];},function(dfd){return (!!dfd.ioArgs["_finished"]);},function(dfd){if(dfd.ioArgs._finished){dfd.callback(dfd);}else{dfd.errback(new Error("Invalid dojo.io.iframe request state"));}});return _e;},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){try{if((this._currentDfd)||(this._dfdQueue.length==0)){return;}do{var dfd=this._currentDfd=this._dfdQueue.shift();}while(dfd&&dfd.canceled&&this._dfdQueue.length);if(!dfd||dfd.canceled){this._currentDfd=null;return;}var _16=dfd.ioArgs;var _17=_16.args;_16._contentToClean=[];var fn=dojo.byId(_17["form"]);var _18=_17["content"]||{};if(fn){if(_18){var _19=function(_1a,_1b){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+_1a+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=_1a;}tn.value=_1b;fn.appendChild(tn);_16._contentToClean.push(_1a);};for(var x in _18){var val=_18[x];if(dojo.isArray(val)&&val.length>1){var i;for(i=0;i<val.length;i++){_19(x,val[i]);}}else{if(!fn[x]){_19(x,val);}else{fn[x].value=val;}}}}var _1c=fn.getAttributeNode("action");var _1d=fn.getAttributeNode("method");var _1e=fn.getAttributeNode("target");if(_17["url"]){_16._originalAction=_1c?_1c.value:null;if(_1c){_1c.value=_17.url;}else{fn.setAttribute("action",_17.url);}}if(!_1d||!_1d.value){if(_1d){_1d.value=(_17["method"])?_17["method"]:"post";}else{fn.setAttribute("method",(_17["method"])?_17["method"]:"post");}}_16._originalTarget=_1e?_1e.value:null;if(_1e){_1e.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;dojo._ioNotifyStart(dfd);fn.submit();}else{var _1f=_17.url+(_17.url.indexOf("?")>-1?"&":"?")+_16.query;dojo._ioNotifyStart(dfd);this.setSrc(this._frame,_1f,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _20=dfd.ioArgs;var _21=_20.args;var _22=dojo.byId(_21.form);if(_22){var _23=_20._contentToClean;for(var i=0;i<_23.length;i++){var key=_23[i];for(var j=0;j<_22.childNodes.length;j++){var _24=_22.childNodes[j];if(_24.name==key){dojo.destroy(_24);break;}}}if(_20["_originalAction"]){_22.setAttribute("action",_20._originalAction);}if(_20["_originalTarget"]){_22.setAttribute("target",_20._originalTarget);_22.target=_20._originalTarget;}}_20._finished=true;}};}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.window.getBox=function(){var _25=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _26=dojo._docScroll();return {w:_25.clientWidth,h:_25.clientHeight,l:_26.x,t:_26.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_27,pos){try{_27=dojo.byId(_27);var doc=_27.ownerDocument||dojo.doc,_28=doc.body||dojo.body(),_29=doc.documentElement||_28.parentNode,_2a=dojo.isIE,_2b=dojo.isWebKit;if((!(dojo.isMoz||_2a||_2b||dojo.isOpera)||_27==_28||_27==_29)&&(typeof _27.scrollIntoView!="undefined")){_27.scrollIntoView(false);return;}var _2c=doc.compatMode=="BackCompat",_2d=_2c?_28:_29,_2e=_2b?_28:_2d,_2f=_2d.clientWidth,_30=_2d.clientHeight,rtl=!dojo._isBodyLtr(),_31=pos||dojo.position(_27),el=_27.parentNode,_32=function(el){return ((_2a<=6||(_2a&&_2c))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_32(_27)){return;}while(el){if(el==_28){el=_2e;}var _33=dojo.position(el),_34=_32(el);if(el==_2e){_33.w=_2f;_33.h=_30;if(_2e==_29&&_2a&&rtl){_33.x+=_2e.offsetWidth-_33.w;}if(_33.x<0||!_2a){_33.x=0;}if(_33.y<0||!_2a){_33.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_33.w-=pb.w;_33.h-=pb.h;_33.x+=pb.l;_33.y+=pb.t;}if(el!=_2e){var _35=el.clientWidth,_36=_33.w-_35;if(_35>0&&_36>0){_33.w=_35;if(_2a&&rtl){_33.x+=_36;}}_35=el.clientHeight;_36=_33.h-_35;if(_35>0&&_36>0){_33.h=_35;}}if(_34){if(_33.y<0){_33.h+=_33.y;_33.y=0;}if(_33.x<0){_33.w+=_33.x;_33.x=0;}if(_33.y+_33.h>_30){_33.h=_30-_33.y;}if(_33.x+_33.w>_2f){_33.w=_2f-_33.x;}}var l=_31.x-_33.x,t=_31.y-Math.max(_33.y,0),r=l+_31.w-_33.w,bot=t+_31.h-_33.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_31.x+=el.scrollLeft;el.scrollLeft+=(_2a>=8&&!_2c&&rtl)?-s:s;_31.x-=el.scrollLeft;}if(bot*t>0){_31.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_31.y-=el.scrollTop;}el=(el!=_2e)&&!_34&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_27.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_37){if(this._hash[_37.id]){throw new Error("Tried to register widget with id=="+_37.id+" but that id is already registered");}this._hash[_37.id]=_37;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_38,_39){_39=_39||dojo.global;var i=0,id;for(id in this._hash){_38.call(_39,this._hash[id],i++,this._hash);}return this;},filter:function(_3a,_3b){_3b=_3b||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_3a.call(_3b,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_3c;for(id in this._hash){_3c=this._hash[id];if(_3c.declaredClass==cls){res.add(_3c);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_3d,_3e){return dojo.map(this.toArray(),_3d,_3e);},every:function(_3f,_40){_40=_40||dojo.global;var x=0,i;for(i in this._hash){if(!_3f.call(_40,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_41,_42){_42=_42||dojo.global;var x=0,i;for(i in this._hash){if(_41.call(_42,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _43=dijit.registry._hash,_44=dojo.attr,_45=dojo.hasAttr,_46=dojo.style;dijit.byId=function(id){return typeof id=="string"?_43[id]:id;};var _47={};dijit.getUniqueId=function(_48){var id;do{id=_48+"_"+(_48 in _47?++_47[_48]:_47[_48]=0);}while(_43[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_49){var _4a=[];function _4b(_4c){for(var _4d=_4c.firstChild;_4d;_4d=_4d.nextSibling){if(_4d.nodeType==1){var _4e=_4d.getAttribute("widgetId");if(_4e){_4a.push(_43[_4e]);}else{_4b(_4d);}}}};_4b(_49);return _4a;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_4f){if(!_4f._destroyed){if(_4f.destroyRecursive){_4f.destroyRecursive();}else{if(_4f.destroy){_4f.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_50){return _43[_50.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_51){while(_51){var id=_51.getAttribute&&_51.getAttribute("widgetId");if(id){return _43[id];}_51=_51.parentNode;}return null;};var _52=(dijit._isElementShown=function(_53){var s=_46(_53);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_44(_53,"type")!="hidden");});dijit.hasDefaultTabStop=function(_54){switch(_54.nodeName.toLowerCase()){case "a":return _45(_54,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return _54.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=_54.contentDocument,_55=doc&&doc.body;return _55&&_55.contentEditable=="true";}else{try{doc=_54.contentWindow.document;_55=doc&&doc.body;return _55&&_55.firstChild&&_55.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return _54.contentEditable=="true";}};var _56=(dijit.isTabNavigable=function(_57){if(_44(_57,"disabled")){return false;}else{if(_45(_57,"tabIndex")){return _44(_57,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_57);}}});dijit._getTabNavigable=function(_58){var _59,_5a,_5b,_5c,_5d,_5e;var _5f=function(_60){dojo.query("> *",_60).forEach(function(_61){if((dojo.isIE&&_61.scopeName!=="HTML")||!_52(_61)){return;}if(_56(_61)){var _62=_44(_61,"tabIndex");if(!_45(_61,"tabIndex")||_62==0){if(!_59){_59=_61;}_5a=_61;}else{if(_62>0){if(!_5b||_62<_5c){_5c=_62;_5b=_61;}if(!_5d||_62>=_5e){_5e=_62;_5d=_61;}}}}if(_61.nodeName.toUpperCase()!="SELECT"){_5f(_61);}});};if(_52(_58)){_5f(_58);}return {first:_59,last:_5a,lowest:_5b,highest:_5d};};dijit.getFirstInTabbingOrder=function(_63){var _64=dijit._getTabNavigable(dojo.byId(_63));return _64.lowest?_64.lowest:_64.first;};dijit.getLastInTabbingOrder=function(_65){var _66=dijit._getTabNavigable(dojo.byId(_65));return _66.last?_66.last:_66.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_67){var _68=dojo.doc,_69=_67.mark;if(_69){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_69.pRange){var r=_69;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_69);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_68.selection&&_69){var rg;if(_69.pRange){rg=_69.range;}else{if(dojo.isArray(_69)){rg=_68.body.createControlRange();dojo.forEach(_69,function(n){rg.addElement(n);});}else{rg=_68.body.createTextRange();rg.moveToBookmark(_69);}}rg.select();}}}},getFocus:function(_6a,_6b){var _6c=!dijit._curFocus||(_6a&&dojo.isDescendant(dijit._curFocus,_6a.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_6c,bookmark:(_6c==dijit._curFocus)&&dojo.withGlobal(_6b||dojo.global,dijit.getBookmark),openedForWindow:_6b};},focus:function(_6d){if(!_6d){return;}var _6e="node" in _6d?_6d.node:_6d,_6f=_6d.bookmark,_70=_6d.openedForWindow,_71=_6f?_6f.isCollapsed:false;if(_6e){var _72=(_6e.tagName.toLowerCase()=="iframe")?_6e.contentWindow:_6e;if(_72&&_72.focus){try{_72.focus();}catch(e){}}dijit._onFocusNode(_6e);}if(_6f&&dojo.withGlobal(_70||dojo.global,dijit.isCollapsed)&&!_71){if(_70){_70.focus();}try{dojo.withGlobal(_70||dojo.global,dijit.moveToBookmark,null,[_6f]);}catch(e2){}}},_activeStack:[],registerIframe:function(_73){return dijit.registerWin(_73.contentWindow,_73);},unregisterIframe:function(_74){dijit.unregisterWin(_74);},registerWin:function(_75,_76){var _77=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_76||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_75.document.documentElement:_75.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_77);var _78=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_76||evt.srcElement);}else{dijit._onTouchNode(_76||evt.srcElement);}};doc.attachEvent("onactivate",_78);var _79=function(evt){dijit._onBlurNode(_76||evt.srcElement);};doc.attachEvent("ondeactivate",_79);return function(){doc.detachEvent("onmousedown",_77);doc.detachEvent("onactivate",_78);doc.detachEvent("ondeactivate",_79);doc=null;};}else{doc.addEventListener("mousedown",_77,true);var _7a=function(evt){dijit._onFocusNode(_76||evt.target);};doc.addEventListener("focus",_7a,true);var _7b=function(evt){dijit._onBlurNode(_76||evt.target);};doc.addEventListener("blur",_7b,true);return function(){doc.removeEventListener("mousedown",_77,true);doc.removeEventListener("focus",_7a,true);doc.removeEventListener("blur",_7b,true);doc=null;};}}},unregisterWin:function(_7c){_7c&&_7c();},_onBlurNode:function(_7d){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_7e,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _7f=[];try{while(_7e){var _80=dojo.attr(_7e,"dijitPopupParent");if(_80){_7e=dijit.byId(_80).domNode;}else{if(_7e.tagName&&_7e.tagName.toLowerCase()=="body"){if(_7e===dojo.body()){break;}_7e=dojo.window.get(_7e.ownerDocument).frameElement;}else{var id=_7e.getAttribute&&_7e.getAttribute("widgetId"),_81=id&&dijit.byId(id);if(_81&&!(by=="mouse"&&_81.get("disabled"))){_7f.unshift(id);}_7e=_7e.parentNode;}}}}catch(e){}dijit._setStack(_7f,by);},_onFocusNode:function(_82){if(!_82){return;}if(_82.nodeType==9){return;}dijit._onTouchNode(_82);if(_82==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_82;dojo.publish("focusNode",[_82]);},_setStack:function(_83,by){var _84=dijit._activeStack;dijit._activeStack=_83;for(var _85=0;_85<Math.min(_84.length,_83.length);_85++){if(_84[_85]!=_83[_85]){break;}}var _86;for(var i=_84.length-1;i>=_85;i--){_86=dijit.byId(_84[i]);if(_86){_86._focused=false;_86._hasBeenBlurred=true;if(_86._onBlur){_86._onBlur(by);}dojo.publish("widgetBlur",[_86,by]);}}for(i=_85;i<_83.length;i++){_86=dijit.byId(_83[i]);if(_86){_86._focused=true;if(_86._onFocus){_86._onFocus(by);}dojo.publish("widgetFocus",[_86,by]);}}}});dojo.addOnLoad(function(){var _87=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_87);_87=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_88){this.pairs=[];this.returnWrappers=_88||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_89,_8a,_8b,_8c,_8d){this.pairs[((_8d)?"unshift":"push")]([_89,_8a,_8b,_8c]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _8e=this.pairs[i];if(_8e[1].apply(this,arguments)){if((_8e[3])||(this.returnWrappers)){return _8e[2];}else{return _8e[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_8f){for(var i=0;i<this.pairs.length;i++){var _90=this.pairs[i];if(_90[0]==_8f){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(_91,pos,_92,_93){var _94=dojo.map(_92,function(_95){var c={corner:_95,pos:{x:pos.x,y:pos.y}};if(_93){c.pos.x+=_95.charAt(1)=="L"?_93.x:-_93.x;c.pos.y+=_95.charAt(0)=="T"?_93.y:-_93.y;}return c;});return dijit._place(_91,_94);};dijit._place=function(_96,_97,_98){var _99=dojo.window.getBox();if(!_96.parentNode||String(_96.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_96);}var _9a=null;dojo.some(_97,function(_9b){var _9c=_9b.corner;var pos=_9b.pos;if(_98){_98(_96,_9b.aroundCorner,_9c);}var _9d=_96.style;var _9e=_9d.display;var _9f=_9d.visibility;_9d.visibility="hidden";_9d.display="";var mb=dojo.marginBox(_96);_9d.display=_9e;_9d.visibility=_9f;var _a0=Math.max(_99.l,_9c.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_a1=Math.max(_99.t,_9c.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_a2=Math.min(_99.l+_99.w,_9c.charAt(1)=="L"?(_a0+mb.w):pos.x),_a3=Math.min(_99.t+_99.h,_9c.charAt(0)=="T"?(_a1+mb.h):pos.y),_a4=_a2-_a0,_a5=_a3-_a1,_a6=(mb.w-_a4)+(mb.h-_a5);if(_9a==null||_a6<_9a.overflow){_9a={corner:_9c,aroundCorner:_9b.aroundCorner,x:_a0,y:_a1,w:_a4,h:_a5,overflow:_a6};}return !_a6;});_96.style.left=_9a.x+"px";_96.style.top=_9a.y+"px";if(_9a.overflow&&_98){_98(_96,_9a.aroundCorner,_9a.corner);}return _9a;};dijit.placeOnScreenAroundNode=function(_a7,_a8,_a9,_aa){_a8=dojo.byId(_a8);var _ab=_a8.style.display;_a8.style.display="";var _ac=dojo.position(_a8,true);_a8.style.display=_ab;return dijit._placeOnScreenAroundRect(_a7,_ac.x,_ac.y,_ac.w,_ac.h,_a9,_aa);};dijit.placeOnScreenAroundRectangle=function(_ad,_ae,_af,_b0){return dijit._placeOnScreenAroundRect(_ad,_ae.x,_ae.y,_ae.width,_ae.height,_af,_b0);};dijit._placeOnScreenAroundRect=function(_b1,x,y,_b2,_b3,_b4,_b5){var _b6=[];for(var _b7 in _b4){_b6.push({aroundCorner:_b7,corner:_b4[_b7],pos:{x:x+(_b7.charAt(1)=="L"?0:_b2),y:y+(_b7.charAt(0)=="T"?0:_b3)}});}return dijit._place(_b1,_b6,_b5);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_b8,_b9,_ba,_bb){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_bc,_bd){var _be={};dojo.forEach(_bc,function(pos){switch(pos){case "after":_be[_bd?"BR":"BL"]=_bd?"BL":"BR";break;case "before":_be[_bd?"BL":"BR"]=_bd?"BR":"BL";break;case "below":_be[_bd?"BL":"BR"]=_bd?"TL":"TR";_be[_bd?"BR":"BL"]=_bd?"TR":"TL";break;case "above":default:_be[_bd?"TL":"TR"]=_bd?"BL":"BR";_be[_bd?"TR":"TL"]=_bd?"BR":"BL";break;}});return _be;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,moveOffScreen:function(_bf){var _c0=_bf.parentNode;if(!_c0||!dojo.hasClass(_c0,"dijitPopup")){_c0=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"}},dojo.body());dijit.setWaiRole(_c0,"presentation");_c0.appendChild(_bf);}var s=_bf.style;s.display="";s.visibility="";s.position="";s.top="0px";dojo.style(_c0,{visibility:"hidden",top:"-9999px"});},getTopPopup:function(){var _c1=this._stack;for(var pi=_c1.length-1;pi>0&&_c1[pi].parent===_c1[pi-1].widget;pi--){}return _c1[pi];},open:function(_c2){var _c3=this._stack,_c4=_c2.popup,_c5=_c2.orient||((_c2.parent?_c2.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_c6=_c2.around,id=(_c2.around&&_c2.around.id)?(_c2.around.id+"_dropdown"):("popup_"+this._idGen++);var _c7=_c4.domNode.parentNode;if(!_c7||!dojo.hasClass(_c7,"dijitPopup")){this.moveOffScreen(_c4.domNode);_c7=_c4.domNode.parentNode;}dojo.attr(_c7,{id:id,style:{zIndex:this._beginZIndex+_c3.length},"class":"dijitPopup "+(_c4.baseClass||_c4["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_c2.parent?_c2.parent.id:""});if(dojo.isIE||dojo.isMoz){var _c8=_c7.childNodes[1];if(!_c8){_c8=new dijit.BackgroundIframe(_c7);}}var _c9=_c6?dijit.placeOnScreenAroundElement(_c7,_c6,_c5,_c4.orient?dojo.hitch(_c4,"orient"):null):dijit.placeOnScreen(_c7,_c2,_c5=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_c2.padding);_c7.style.visibility="visible";_c4.domNode.style.visibility="visible";var _ca=[];_ca.push(dojo.connect(_c7,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_c2.onCancel){dojo.stopEvent(evt);_c2.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _cb=this.getTopPopup();if(_cb&&_cb.onCancel){_cb.onCancel();}}}}));if(_c4.onCancel){_ca.push(dojo.connect(_c4,"onCancel",_c2.onCancel));}_ca.push(dojo.connect(_c4,_c4.onExecute?"onExecute":"onChange",this,function(){var _cc=this.getTopPopup();if(_cc&&_cc.onExecute){_cc.onExecute();}}));_c3.push({wrapper:_c7,iframe:_c8,widget:_c4,parent:_c2.parent,onExecute:_c2.onExecute,onCancel:_c2.onCancel,onClose:_c2.onClose,handlers:_ca});if(_c4.onOpen){_c4.onOpen(_c9);}return _c9;},close:function(_cd){var _ce=this._stack;while(dojo.some(_ce,function(_cf){return _cf.widget==_cd;})){var top=_ce.pop(),_d0=top.wrapper,_d1=top.iframe,_d2=top.widget,_d3=top.onClose;if(_d2.onClose){_d2.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_d2&&_d2.domNode){this.moveOffScreen(_d2.domNode);}else{dojo.destroy(_d0);}if(_d3){_d3();}}}};dijit._frames=new function(){var _d4=[];this.pop=function(){var _d5;if(_d4.length){_d5=_d4.pop();_d5.style.display="";}else{if(dojo.isIE){var _d6=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _d7="<iframe src='"+_d6+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_d5=dojo.doc.createElement(_d7);}else{_d5=dojo.create("iframe");_d5.src="javascript:\"\"";_d5.className="dijitBackgroundIframe";dojo.style(_d5,"opacity",0.1);}_d5.tabIndex=-1;dijit.setWaiRole(_d5,"presentation");}return _d5;};this.push=function(_d8){_d8.style.display="none";_d4.push(_d8);};}();dijit.BackgroundIframe=function(_d9){if(!_d9.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _da=dijit._frames.pop();_d9.appendChild(_da);if(dojo.isIE<7){this.resize(_d9);this._conn=dojo.connect(_d9,"onresize",this,function(){this.resize(_d9);});}else{dojo.style(_da,{width:"100%",height:"100%"});}this.iframe=_da;}};dojo.extend(dijit.BackgroundIframe,{resize:function(_db){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:_db.offsetWidth+"px",height:_db.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(_dc,pos){dojo.window.scrollIntoView(_dc,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,_dd=d.doc.documentElement,ie=d.isIE,_de=d.isOpera,maj=Math.floor,ff=d.isFF,_df=d.boxModel.replace(/-/,""),_e0={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_de,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_e0["dj_"+_df]=true;var _e1="";for(var clz in _e0){if(_e0[clz]){_e1+=clz+" ";}}_dd.className=d.trim(_dd.className+" "+_e1);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _e2="dj_rtl dijitRtl "+_e1.replace(/ /g,"-rtl ");_dd.className=d.trim(_dd.className+" "+_e2);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_e3,_e4,_e5,obj,_e6,_e7,_e8){if(obj!=this._obj){this.stop();this._initialDelay=_e7||500;this._subsequentDelay=_e6||0.9;this._minDelay=_e8||10;this._obj=obj;this._evt=evt;this._node=_e4;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_e3,_e5);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(_e9,_ea,_eb,_ec,_ed,_ee,_ef){if(_ea.keyCode){_ea.charOrCode=_ea.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_ea.charCode){_ea.charOrCode=String.fromCharCode(_ea.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_e9,"onkeypress",this,function(evt){if(evt.charOrCode==_ea.charOrCode&&(_ea.ctrlKey===undefined||_ea.ctrlKey==evt.ctrlKey)&&(_ea.altKey===undefined||_ea.altKey==evt.altKey)&&(_ea.metaKey===undefined||_ea.metaKey==(evt.metaKey||false))&&(_ea.shiftKey===undefined||_ea.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_eb,_e9,_ec,_ea,_ed,_ee,_ef);}else{if(dijit.typematic._obj==_ea){dijit.typematic.stop();}}}),dojo.connect(_e9,"onkeyup",this,function(evt){if(dijit.typematic._obj==_ea){dijit.typematic.stop();}})];},addMouseListener:function(_f0,_f1,_f2,_f3,_f4,_f5){var dc=dojo.connect;return [dc(_f0,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_f1,_f0,_f2,_f0,_f3,_f4,_f5);}),dc(_f0,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f0,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f0,"mousemove",this,function(evt){evt.preventDefault();}),dc(_f0,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_f1,_f0,_f2,_f0,_f3,_f4,_f5);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_f6,_f7,_f8,_f9,_fa,_fb,_fc,_fd){return this.addKeyListener(_f7,_f8,_f9,_fa,_fb,_fc,_fd).concat(this.addMouseListener(_f6,_f9,_fa,_fb,_fc,_fd));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _fe=cs.backgroundImage;var _ff=(cs.borderTopColor==cs.borderRightColor)||(_fe!=null&&(_fe=="none"||_fe=="url(invalid-url:)"));dojo[_ff?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _100=this.getWaiRole(elem);return role?(_100.indexOf(role)>-1):(_100.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _101=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_101)){dojo.attr(elem,"role",role);}else{if((" "+_101+" ").indexOf(" "+role+" ")<0){var _102=dojo.trim(_101.replace(this._XhtmlRoles,""));var _103=dojo.trim(_101.replace(_102,""));dojo.attr(elem,"role",_103+(_103?" ":"")+role);}}},removeWaiRole:function(elem,role){var _104=dojo.attr(elem,"role");if(!_104){return;}if(role){var t=dojo.trim((" "+_104+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_105){return elem.hasAttribute?elem.hasAttribute("aria-"+_105):!!elem.getAttribute("aria-"+_105);},getWaiState:function(elem,_106){return elem.getAttribute("aria-"+_106)||"";},setWaiState:function(elem,_107,_108){elem.setAttribute("aria-"+_107,_108);},removeWaiState:function(elem,_109){elem.removeAttribute("aria-"+_109);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_10a,_10b){if(_10a&&dojo.isFunction(_10a._onConnect)){_10a._onConnect(_10b);}});dijit._connectOnUseEventHandler=function(_10c){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _10d=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_10d);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_10d);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _10e={},_10f=function(_110){var dc=_110.declaredClass;if(!_10e[dc]){var r=[],_111,_112=_110.constructor.prototype;for(var _113 in _112){if(dojo.isFunction(_112[_113])&&(_111=_113.match(/^_set([a-zA-Z]*)Attr$/))&&_111[1]){r.push(_111[1].charAt(0).toLowerCase()+_111[1].substr(1));}}_10e[dc]=r;}return _10e[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_114,_115){this.create(_114,_115);},create:function(_116,_117){this.srcNodeRef=dojo.byId(_117);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_116){this.params=_116;dojo.mixin(this,_116);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _118=this.srcNodeRef;if(_118&&_118.parentNode){_118.parentNode.replaceChild(this.domNode,_118);}for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _119=function(attr,_11a){if((_11a.params&&attr in _11a.params)||_11a[attr]){_11a.set(attr,_11a[attr]);}};for(var attr in this.attributeMap){_119(attr,this);}dojo.forEach(_10f(this),function(a){if(!(a in this.attributeMap)){_119(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){if(this.baseClass){var _11b=this.baseClass.split(" ");if(!this.isLeftToRight()){_11b=_11b.concat(dojo.map(_11b,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_11b);}},startup:function(){this._started=true;},destroyRecursive:function(_11c){this._beingDestroyed=true;this.destroyDescendants(_11c);this.destroy(_11c);},destroy:function(_11d){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_11e){dfe(_11e,d.disconnect);});dfe(this._subscribes,function(_11f){dun(_11f);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_11d);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_120){if(this.bgIframe){this.bgIframe.destroy(_120);delete this.bgIframe;}if(this.domNode){if(_120){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_120){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_121){dojo.forEach(this.getChildren(),function(_122){if(_122.destroyRecursive){_122.destroyRecursive(_121);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_123){if(_123 in this._deferredConnects){var _124=this[this._deferredConnects[_123]||"domNode"];this.connect(_124,_123.toLowerCase(),_123);delete this._deferredConnects[_123];}},_setClassAttr:function(_125){var _126=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_126,this["class"]);this["class"]=_125;dojo.addClass(_126,_125);},_setStyleAttr:function(_127){var _128=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_127)){dojo.style(_128,_127);}else{if(_128.style.cssText){_128.style.cssText+="; "+_127;}else{_128.style.cssText=_127;}}this.style=_127;},setAttribute:function(attr,_129){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_129);},_attrToDom:function(attr,_12a){var _12b=this.attributeMap[attr];dojo.forEach(dojo.isArray(_12b)?_12b:[_12b],function(_12c){var _12d=this[_12c.node||_12c||"domNode"];var type=_12c.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_12a)){_12a=dojo.hitch(this,_12a);}var _12e=_12c.attribute?_12c.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_12d,_12e,_12a);break;case "innerText":_12d.innerHTML="";_12d.appendChild(dojo.doc.createTextNode(_12a));break;case "innerHTML":_12d.innerHTML=_12a;break;case "class":dojo.removeClass(_12d,this[attr]);dojo.addClass(_12d,_12a);break;}},this);this[attr]=_12a;},attr:function(name,_12f){if(dojo.config.isDebug){var _130=arguments.callee._ach||(arguments.callee._ach={}),_131=(arguments.callee.caller||"unknown caller").toString();if(!_130[_131]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_131,"","2.0");_130[_131]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},get:function(name){var _132=this._getAttrNames(name);return this[_132.g]?this[_132.g]():this[name];},set:function(name,_133){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _134=this._getAttrNames(name);if(this[_134.s]){var _135=this[_134.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_133);}var _136=this[name];this[name]=_133;}return _135||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_137,_138){var d=dojo,dc=d._connect,_139=[];if(_137=="ondijitclick"){if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_138);_139.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;e.preventDefault();}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_137="onclick";}_139.push(dc(obj,_137,this,_138));this._connects.push(_139);return _139;},disconnect:function(_13a){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_13a){dojo.forEach(_13a,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_13b,_13c){var d=dojo,_13d=d.subscribe(_13b,this,_13c);this._subscribes.push(_13d);return _13d;},unsubscribe:function(_13e){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_13e){dojo.unsubscribe(_13e);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_13f,_140){if(_13f.declaredClass&&_13f.addChild){_13f.addChild(this,_140);}else{dojo.place(this.domNode,_13f,_140);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_141,map,_142,_143){_143=_143||dojo.global;_142=_142?dojo.hitch(_143,_142):function(v){return v;};return _141.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_144,key,_145){var _146=dojo.getObject(key,false,map);if(_145){_146=dojo.getObject(_145,false,_143).call(_143,_146,key);}return _142(_146,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_147,_148){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _149=dojo.date.stamp._isoRegExp.exec(_147),_14a=null;if(_149){_149.shift();if(_149[1]){_149[1]--;}if(_149[6]){_149[6]*=1000;}if(_148){_148=new Date(_148);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _148["get"+prop]();}),function(_14b,_14c){_149[_14c]=_149[_14c]||_14b;});}_14a=new Date(_149[0]||1970,_149[1]||0,_149[2]||1,_149[3]||0,_149[4]||0,_149[5]||0,_149[6]||0);if(_149[0]<100){_14a.setFullYear(_149[0]||1970);}var _14d=0,_14e=_149[7]&&_149[7].charAt(0);if(_14e!="Z"){_14d=((_149[8]||0)*60)+(Number(_149[9])||0);if(_14e!="-"){_14d*=-1;}}if(_14e){_14d-=_14a.getTimezoneOffset();}if(_14d){_14a.setTime(_14a.getTime()+_14d*60000);}}return _14a;};dojo.date.stamp.toISOString=function(_14f,_150){var _151=function(n){return (n<10)?"0"+n:n;};_150=_150||{};var _152=[],_153=_150.zulu?"getUTC":"get",date="";if(_150.selector!="time"){var year=_14f[_153+"FullYear"]();date=["0000".substr((year+"").length)+year,_151(_14f[_153+"Month"]()+1),_151(_14f[_153+"Date"]())].join("-");}_152.push(date);if(_150.selector!="date"){var time=[_151(_14f[_153+"Hours"]()),_151(_14f[_153+"Minutes"]()),_151(_14f[_153+"Seconds"]())].join(":");var _154=_14f[_153+"Milliseconds"]();if(_150.milliseconds){time+="."+(_154<100?"0":"")+_151(_154);}if(_150.zulu){time+="Z";}else{if(_150.selector!="time"){var _155=_14f.getTimezoneOffset();var _156=Math.abs(_155);time+=(_155>0?"-":"+")+_151(Math.floor(_156/60))+":"+_151(_156%60);}}_152.push(time);}return _152.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _157(_158){if(d.isString(_158)){return "string";}if(typeof _158=="number"){return "number";}if(typeof _158=="boolean"){return "boolean";}if(d.isFunction(_158)){return "function";}if(d.isArray(_158)){return "array";}if(_158 instanceof Date){return "date";}if(_158 instanceof d._Url){return "url";}return "object";};function _159(_15a,type){switch(type){case "string":return _15a;case "number":return _15a.length?Number(_15a):NaN;case "boolean":return typeof _15a=="boolean"?_15a:!(_15a.toLowerCase()=="false");case "function":if(d.isFunction(_15a)){_15a=_15a.toString();_15a=d.trim(_15a.substring(_15a.indexOf("{")+1,_15a.length-1));}try{if(_15a===""||_15a.search(/[^\w\.]+/i)!=-1){return new Function(_15a);}else{return d.getObject(_15a,false)||new Function(_15a);}}catch(e){return new Function();}case "array":return _15a?_15a.split(/\s*,\s*/):[];case "date":switch(_15a){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_15a);}case "url":return d.baseUrl+_15a;default:return d.fromJson(_15a);}};var _15b={};dojo.connect(dojo,"extend",function(){_15b={};});function _15c(_15d){if(!_15b[_15d]){var cls=d.getObject(_15d);if(!cls){return null;}var _15e=cls.prototype;var _15f={},_160={};for(var name in _15e){if(name.charAt(0)=="_"){continue;}if(name in _160){continue;}var _161=_15e[name];_15f[name]=_157(_161);}_15b[_15d]={cls:cls,params:_15f};}return _15b[_15d];};this._functionFromScript=function(_162){var _163="";var _164="";var _165=_162.getAttribute("args");if(_165){d.forEach(_165.split(/\s*,\s*/),function(part,idx){_163+="var "+part+" = arguments["+idx+"]; ";});}var _166=_162.getAttribute("with");if(_166&&_166.length){d.forEach(_166.split(/\s*,\s*/),function(part){_163+="with("+part+"){";_164+="}";});}return new Function(_163+_162.innerHTML+_164);};this.instantiate=function(_167,_168,args){var _169=[],dp=dojo.parser;_168=_168||{};args=args||{};d.forEach(_167,function(obj){if(!obj){return;}var node,type,_16a,_16b,_16c;if(obj.node){node=obj.node;type=obj.type;_16a=obj.clsInfo||(type&&_15c(type));_16b=_16a&&_16a.cls;_16c=obj.scripts;}else{node=obj;type=dp._attrName in _168?_168[dp._attrName]:node.getAttribute(dp._attrName);_16a=type&&_15c(type);_16b=_16a&&_16a.cls;_16c=(_16b&&(_16b._noScript||_16b.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_16a){throw new Error("Could not load class '"+type);}var _16d={},_16e=node.attributes;if(args.defaults){dojo.mixin(_16d,args.defaults);}if(obj.inherited){dojo.mixin(_16d,obj.inherited);}for(var name in _16a.params){var item=name in _168?{value:_168[name],specified:true}:_16e.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _16f=item.value;switch(name){case "class":_16f="className" in _168?_168.className:node.className;break;case "style":_16f="style" in _168?_168.style:(node.style&&node.style.cssText);}var _170=_16a.params[name];if(typeof _16f=="string"){_16d[name]=_159(_16f,_170);}else{_16d[name]=_16f;}}var _171=[],_172=[];d.forEach(_16c,function(_173){node.removeChild(_173);var _174=_173.getAttribute("event"),type=_173.getAttribute("type"),nf=d.parser._functionFromScript(_173);if(_174){if(type=="dojo/connect"){_171.push({event:_174,func:nf});}else{_16d[_174]=nf;}}else{_172.push(nf);}});var _175=_16b.markupFactory||_16b.prototype&&_16b.prototype.markupFactory;var _176=_175?_175(_16d,node,_16b):new _16b(_16d,node);_169.push(_176);var _177=node.getAttribute("jsId");if(_177){d.setObject(_177,_176);}d.forEach(_171,function(_178){d.connect(_176,_178.event,null,_178.func);});d.forEach(_172,function(func){func.call(_176);});});if(!_168._started){d.forEach(_169,function(_179){if(!args.noStart&&_179&&_179.startup&&!_179._started&&(!_179.getParent||!_179.getParent())){_179.startup();}});}return _169;};this.parse=function(_17a,args){var root;if(!args&&_17a&&_17a.rootNode){args=_17a;root=args.rootNode;}else{root=_17a;}var _17b=this._attrName;function scan(_17c,list){var _17d=dojo.clone(_17c.inherited);dojo.forEach(["dir","lang"],function(name){var val=_17c.node.getAttribute(name);if(val){_17d[name]=val;}});var _17e=_17c.scripts;var _17f=!_17c.clsInfo||!_17c.clsInfo.cls.prototype.stopParser;for(var _180=_17c.node.firstChild;_180;_180=_180.nextSibling){if(_180.nodeType==1){var type=_17f&&_180.getAttribute(_17b);if(type){var _181={"type":type,clsInfo:_15c(type),node:_180,scripts:[],inherited:_17d};list.push(_181);scan(_181,list);}else{if(_17e&&_180.nodeName.toLowerCase()=="script"){type=_180.getAttribute("type");if(type&&/^dojo\//i.test(type)){_17e.push(_180);}}else{if(_17f){scan({node:_180,inherited:_17d},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);return this.instantiate(list,null,args);};}();(function(){var _182=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_182);}else{dojo._loaders.unshift(_182);}})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _183={};dojo.cache=function(_184,url,_185){if(typeof _184=="string"){var _186=dojo.moduleUrl(_184,url);}else{_186=_184;_185=url;}var key=_186.toString();var val=_185;if(_185!=undefined&&!dojo.isString(_185)){val=("value" in _185?_185.value:undefined);}var _187=_185&&_185.sanitize?true:false;if(typeof val=="string"){val=_183[key]=_187?dojo.cache._sanitize(val):val;}else{if(val===null){delete _183[key];}else{if(!(key in _183)){val=dojo._getText(key);_183[key]=_187?dojo.cache._sanitize(val):val;}val=_183[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _188=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_188){val=_188[1];}}else{val="";}return val;};})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];},_stringRepl:function(tmpl){var _189=this.declaredClass,_18a=this;return dojo.string.substitute(tmpl,this,function(_18b,key){if(key.charAt(0)=="!"){_18b=dojo.getObject(key.substr(1),false,_18a);}if(typeof _18b=="undefined"){throw new Error(_189+" template:"+key);}if(_18b==null){return "";}return key.charAt(0)=="!"?_18b:_18b.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _18c=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_18c)){node=dojo._toDom(this._stringRepl(_18c));if(node.nodeType!=1){throw new Error("Invalid template: "+_18c);}}else{node=_18c.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _18d=dojo.parser,qry,attr;if(_18d._query!="[dojoType]"){qry=_18d._query;attr=_18d._attrName;_18d._query="[dojoType]";_18d._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_18d._query=qry;_18d._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_18e){var dest=this.containerNode;if(_18e&&dest){while(_18e.hasChildNodes()){dest.appendChild(_18e.firstChild);}}},_attachTemplateNodes:function(_18f,_190){_190=_190||function(n,p){return n.getAttribute(p);};var _191=dojo.isArray(_18f)?_18f:(_18f.all||_18f.getElementsByTagName("*"));var x=dojo.isArray(_18f)?0:-1;for(;x<_191.length;x++){var _192=(x==-1)?_18f:_191[x];if(this.widgetsInTemplate&&_190(_192,"dojoType")){continue;}var _193=_190(_192,"dojoAttachPoint");if(_193){var _194,_195=_193.split(/\s*,\s*/);while((_194=_195.shift())){if(dojo.isArray(this[_194])){this[_194].push(_192);}else{this[_194]=_192;}this._attachPoints.push(_194);}}var _196=_190(_192,"dojoAttachEvent");if(_196){var _197,_198=_196.split(/\s*,\s*/);var trim=dojo.trim;while((_197=_198.shift())){if(_197){var _199=null;if(_197.indexOf(":")!=-1){var _19a=_197.split(":");_197=trim(_19a[0]);_199=trim(_19a[1]);}else{_197=trim(_197);}if(!_199){_199=_197;}this.connect(_192,_197,_199);}}}var role=_190(_192,"waiRole");if(role){dijit.setWaiRole(_192,role);}var _19b=_190(_192,"waiState");if(_19b){dojo.forEach(_19b.split(/\s*,\s*/),function(_19c){if(_19c.indexOf("-")!=-1){var pair=_19c.split("-");dijit.setWaiState(_192,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_19d){delete this[_19d];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_19e,_19f,_1a0){var _1a1=dijit._Templated._templateCache;var key=_19f||_19e;var _1a2=_1a1[key];if(_1a2){try{if(!_1a2.ownerDocument||_1a2.ownerDocument==dojo.doc){return _1a2;}}catch(e){}dojo.destroy(_1a2);}if(!_19f){_19f=dojo.cache(_19e,{sanitize:true});}_19f=dojo.string.trim(_19f);if(_1a0||_19f.match(/\$\{([^\}]+)\}/g)){return (_1a1[key]=_19f);}else{var node=dojo._toDom(_19f);if(node.nodeType!=1){throw new Error("Invalid template: "+_19f);}return (_1a1[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1a3=dijit._Templated._templateCache;for(var key in _1a3){var _1a4=_1a3[key];if(typeof _1a4=="object"){dojo.destroy(_1a4);}delete _1a3[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojox.string.Builder"]){dojo._hasResource["dojox.string.Builder"]=true;dojo.provide("dojox.string.Builder");dojox.string.Builder=function(str){var b="";this.length=0;this.append=function(s){if(arguments.length>1){var tmp="",l=arguments.length;switch(l){case 9:tmp=""+arguments[8]+tmp;case 8:tmp=""+arguments[7]+tmp;case 7:tmp=""+arguments[6]+tmp;case 6:tmp=""+arguments[5]+tmp;case 5:tmp=""+arguments[4]+tmp;case 4:tmp=""+arguments[3]+tmp;case 3:tmp=""+arguments[2]+tmp;case 2:b+=""+arguments[0]+arguments[1]+tmp;break;default:var i=0;while(i<arguments.length){tmp+=arguments[i++];}b+=tmp;}}else{b+=s;}this.length=b.length;return this;};this.concat=function(s){return this.append.apply(this,arguments);};this.appendArray=function(_1a5){return this.append.apply(this,_1a5);};this.clear=function(){b="";this.length=0;return this;};this.replace=function(_1a6,_1a7){b=b.replace(_1a6,_1a7);this.length=b.length;return this;};this.remove=function(_1a8,len){if(len===undefined){len=b.length;}if(len==0){return this;}b=b.substr(0,_1a8)+b.substr(_1a8+len);this.length=b.length;return this;};this.insert=function(_1a9,str){if(_1a9==0){b=str+b;}else{b=b.slice(0,_1a9)+str+b.slice(_1a9);}this.length=b.length;return this;};this.toString=function(){return b;};if(str){this.append(str);}};}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_1aa,_1ab){var _1ac=[];var _1ad,_1ae,_1af=0;while(_1ad=re.exec(str)){_1ae=str.slice(_1af,re.lastIndex-_1ad[0].length);if(_1ae.length){_1ac.push(_1ae);}if(_1aa){if(dojo.isOpera){var copy=_1ad.slice(0);while(copy.length<_1ad.length){copy.push(null);}_1ad=copy;}var _1b0=_1aa.apply(_1ab,_1ad.slice(1).concat(_1ac.length));if(typeof _1b0!="undefined"){_1ac.push(_1b0);}}_1af=re.lastIndex;}_1ae=str.slice(_1af);if(_1ae.length){_1ac.push(_1ae);}return _1ac;};}if(!dojo._hasResource["dojox.dtl._base"]){dojo._hasResource["dojox.dtl._base"]=true;dojo.provide("dojox.dtl._base");dojo.experimental("dojox.dtl");(function(){var dd=dojox.dtl;dd.TOKEN_BLOCK=-1;dd.TOKEN_VAR=-2;dd.TOKEN_COMMENT=-3;dd.TOKEN_TEXT=3;dd._Context=dojo.extend(function(dict){if(dict){dojo._mixin(this,dict);if(dict.get){this._getter=dict.get;delete this.get;}}},{push:function(){var last=this;var _1b1=dojo.delegate(this);_1b1.pop=function(){return last;};return _1b1;},pop:function(){throw new Error("pop() called on empty Context");},get:function(key,_1b2){var n=this._normalize;if(this._getter){var got=this._getter(key);if(typeof got!="undefined"){return n(got);}}if(typeof this[key]!="undefined"){return n(this[key]);}return _1b2;},_normalize:function(_1b3){if(_1b3 instanceof Date){_1b3.year=_1b3.getFullYear();_1b3.month=_1b3.getMonth()+1;_1b3.day=_1b3.getDate();_1b3.date=_1b3.year+"-"+("0"+_1b3.month).slice(-2)+"-"+("0"+_1b3.day).slice(-2);_1b3.hour=_1b3.getHours();_1b3.minute=_1b3.getMinutes();_1b3.second=_1b3.getSeconds();_1b3.microsecond=_1b3.getMilliseconds();}return _1b3;},update:function(dict){var _1b4=this.push();if(dict){dojo._mixin(this,dict);}return _1b4;}});var _1b5=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g;var _1b6=/\s+/g;var _1b7=function(_1b8,_1b9){_1b8=_1b8||_1b6;if(!(_1b8 instanceof RegExp)){_1b8=new RegExp(_1b8,"g");}if(!_1b8.global){throw new Error("You must use a globally flagged RegExp with split "+_1b8);}_1b8.exec("");var part,_1ba=[],_1bb=0,i=0;while(part=_1b8.exec(this)){_1ba.push(this.slice(_1bb,_1b8.lastIndex-part[0].length));_1bb=_1b8.lastIndex;if(_1b9&&(++i>_1b9-1)){break;}}_1ba.push(this.slice(_1bb));return _1ba;};dd.Token=function(_1bc,_1bd){this.token_type=_1bc;this.contents=new String(dojo.trim(_1bd));this.contents.split=_1b7;this.split=function(){return String.prototype.split.apply(this.contents,arguments);};};dd.Token.prototype.split_contents=function(_1be){var bit,bits=[],i=0;_1be=_1be||999;while(i++<_1be&&(bit=_1b5.exec(this.contents))){bit=bit[0];if(bit.charAt(0)=="\""&&bit.slice(-1)=="\""){bits.push("\""+bit.slice(1,-1).replace("\\\"","\"").replace("\\\\","\\")+"\"");}else{if(bit.charAt(0)=="'"&&bit.slice(-1)=="'"){bits.push("'"+bit.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'");}else{bits.push(bit);}}}return bits;};var ddt=dd.text={_get:function(_1bf,name,_1c0){var _1c1=dd.register.get(_1bf,name.toLowerCase(),_1c0);if(!_1c1){if(!_1c0){throw new Error("No tag found for "+name);}return null;}var fn=_1c1[1];var _1c2=_1c1[2];var _1c3;if(fn.indexOf(":")!=-1){_1c3=fn.split(":");fn=_1c3.pop();}dojo["require"](_1c2);var _1c4=dojo.getObject(_1c2);return _1c4[fn||name]||_1c4[name+"_"]||_1c4[fn+"_"];},getTag:function(name,_1c5){return ddt._get("tag",name,_1c5);},getFilter:function(name,_1c6){return ddt._get("filter",name,_1c6);},getTemplate:function(file){return new dd.Template(ddt.getTemplateString(file));},getTemplateString:function(file){return dojo._getText(file.toString())||"";},_resolveLazy:function(_1c7,sync,json){if(sync){if(json){return dojo.fromJson(dojo._getText(_1c7))||{};}else{return dd.text.getTemplateString(_1c7);}}else{return dojo.xhrGet({handleAs:(json)?"json":"text",url:_1c7});}},_resolveTemplateArg:function(arg,sync){if(ddt._isTemplate(arg)){if(!sync){var d=new dojo.Deferred();d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,sync);},_isTemplate:function(arg){return (typeof arg=="undefined")||(typeof arg=="string"&&(arg.match(/^\s*[<{]/)||arg.indexOf(" ")!=-1));},_resolveContextArg:function(arg,sync){if(arg.constructor==Object){if(!sync){var d=new dojo.Deferred;d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,sync,true);},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(str){return dojox.string.tokenize(str,ddt._re,ddt._parseDelims);},_parseDelims:function(varr,load,tag){if(varr){return [dd.TOKEN_VAR,varr];}else{if(load){var _1c8=dojo.trim(tag).split(/\s+/g);for(var i=0,part;part=_1c8[i];i++){dojo["require"](part);}}else{return [dd.TOKEN_BLOCK,tag];}}}};dd.Template=dojo.extend(function(_1c9,_1ca){var str=_1ca?_1c9:ddt._resolveTemplateArg(_1c9,true)||"";var _1cb=ddt.tokenize(str);var _1cc=new dd._Parser(_1cb);this.nodelist=_1cc.parse();},{update:function(node,_1cd){return ddt._resolveContextArg(_1cd).addCallback(this,function(_1ce){var _1cf=this.render(new dd._Context(_1ce));if(node.forEach){node.forEach(function(item){item.innerHTML=_1cf;});}else{dojo.byId(node).innerHTML=_1cf;}return this;});},render:function(_1d0,_1d1){_1d1=_1d1||this.getBuffer();_1d0=_1d0||new dd._Context({});return this.nodelist.render(_1d0,_1d1)+"";},getBuffer:function(){return new dojox.string.Builder();}});var qfRe=/\{\{\s*(.+?)\s*\}\}/g;dd.quickFilter=function(str){if(!str){return new dd._NodeList();}if(str.indexOf("{%")==-1){return new dd._QuickNodeList(dojox.string.tokenize(str,qfRe,function(_1d2){return new dd._Filter(_1d2);}));}};dd._QuickNodeList=dojo.extend(function(_1d3){this.contents=_1d3;},{render:function(_1d4,_1d5){for(var i=0,l=this.contents.length;i<l;i++){if(this.contents[i].resolve){_1d5=_1d5.concat(this.contents[i].resolve(_1d4));}else{_1d5=_1d5.concat(this.contents[i]);}}return _1d5;},dummyRender:function(_1d6){return this.render(_1d6,dd.Template.prototype.getBuffer()).toString();},clone:function(_1d7){return this;}});dd._Filter=dojo.extend(function(_1d8){if(!_1d8){throw new Error("Filter must be called with variable name");}this.contents=_1d8;var _1d9=this._cache[_1d8];if(_1d9){this.key=_1d9[0];this.filters=_1d9[1];}else{this.filters=[];dojox.string.tokenize(_1d8,this._re,this._tokenize,this);this._cache[_1d8]=[this.key,this.filters];}},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,_values:{0:"\"",1:"\"",2:"",8:"\""},_args:{4:"\"",5:"\"",6:"",7:"'"},_tokenize:function(){var pos,arg;for(var i=0,has=[];i<arguments.length;i++){has[i]=(typeof arguments[i]!="undefined"&&typeof arguments[i]=="string"&&arguments[i]);}if(!this.key){for(pos in this._values){if(has[pos]){this.key=this._values[pos]+arguments[pos]+this._values[pos];break;}}}else{for(pos in this._args){if(has[pos]){var _1da=arguments[pos];if(this._args[pos]=="'"){_1da=_1da.replace(/\\'/g,"'");}else{if(this._args[pos]=="\""){_1da=_1da.replace(/\\"/g,"\"");}}arg=[!this._args[pos],_1da];break;}}var fn=ddt.getFilter(arguments[3]);if(!dojo.isFunction(fn)){throw new Error(arguments[3]+" is not registered as a filter");}this.filters.push([fn,arg]);}},getExpression:function(){return this.contents;},resolve:function(_1db){if(typeof this.key=="undefined"){return "";}var str=this.resolvePath(this.key,_1db);for(var i=0,_1dc;_1dc=this.filters[i];i++){if(_1dc[1]){if(_1dc[1][0]){str=_1dc[0](str,this.resolvePath(_1dc[1][1],_1db));}else{str=_1dc[0](str,_1dc[1][1]);}}else{str=_1dc[0](str);}}return str;},resolvePath:function(path,_1dd){var _1de,_1df;var _1e0=path.charAt(0);var last=path.slice(-1);if(!isNaN(parseInt(_1e0))){_1de=(path.indexOf(".")==-1)?parseInt(path):parseFloat(path);}else{if(_1e0=="\""&&_1e0==last){_1de=path.slice(1,-1);}else{if(path=="true"){return true;}if(path=="false"){return false;}if(path=="null"||path=="None"){return null;}_1df=path.split(".");_1de=_1dd.get(_1df[0]);if(dojo.isFunction(_1de)){var self=_1dd.getThis&&_1dd.getThis();if(_1de.alters_data){_1de="";}else{if(self){_1de=_1de.call(self);}else{_1de="";}}}for(var i=1;i<_1df.length;i++){var part=_1df[i];if(_1de){var base=_1de;if(dojo.isObject(_1de)&&part=="items"&&typeof _1de[part]=="undefined"){var _1e1=[];for(var key in _1de){_1e1.push([key,_1de[key]]);}_1de=_1e1;continue;}if(_1de.get&&dojo.isFunction(_1de.get)&&_1de.get.safe){_1de=_1de.get(part);}else{if(typeof _1de[part]=="undefined"){_1de=_1de[part];break;}else{_1de=_1de[part];}}if(dojo.isFunction(_1de)){if(_1de.alters_data){_1de="";}else{_1de=_1de.call(base);}}else{if(_1de instanceof Date){_1de=dd._Context.prototype._normalize(_1de);}}}else{return "";}}}}return _1de;}});dd._TextNode=dd._Node=dojo.extend(function(obj){this.contents=obj;},{set:function(data){this.contents=data;return this;},render:function(_1e2,_1e3){return _1e3.concat(this.contents);},isEmpty:function(){return !dojo.trim(this.contents);},clone:function(){return this;}});dd._NodeList=dojo.extend(function(_1e4){this.contents=_1e4||[];this.last="";},{push:function(node){this.contents.push(node);return this;},concat:function(_1e5){this.contents=this.contents.concat(_1e5);return this;},render:function(_1e6,_1e7){for(var i=0;i<this.contents.length;i++){_1e7=this.contents[i].render(_1e6,_1e7);if(!_1e7){throw new Error("Template must return buffer");}}return _1e7;},dummyRender:function(_1e8){return this.render(_1e8,dd.Template.prototype.getBuffer()).toString();},unrender:function(){return arguments[1];},clone:function(){return this;},rtrim:function(){while(1){i=this.contents.length-1;if(this.contents[i] instanceof dd._TextNode&&this.contents[i].isEmpty()){this.contents.pop();}else{break;}}return this;}});dd._VarNode=dojo.extend(function(str){this.contents=new dd._Filter(str);},{render:function(_1e9,_1ea){var str=this.contents.resolve(_1e9);if(!str.safe){str=dd._base.escape(""+str);}return _1ea.concat(str);}});dd._noOpNode=new function(){this.render=this.unrender=function(){return arguments[1];};this.clone=function(){return this;};};dd._Parser=dojo.extend(function(_1eb){this.contents=_1eb;},{i:0,parse:function(_1ec){var _1ed={},_1ee;_1ec=_1ec||[];for(var i=0;i<_1ec.length;i++){_1ed[_1ec[i]]=true;}var _1ef=new dd._NodeList();while(this.i<this.contents.length){_1ee=this.contents[this.i++];if(typeof _1ee=="string"){_1ef.push(new dd._TextNode(_1ee));}else{var type=_1ee[0];var text=_1ee[1];if(type==dd.TOKEN_VAR){_1ef.push(new dd._VarNode(text));}else{if(type==dd.TOKEN_BLOCK){if(_1ed[text]){--this.i;return _1ef;}var cmd=text.split(/\s+/g);if(cmd.length){cmd=cmd[0];var fn=ddt.getTag(cmd);if(fn){_1ef.push(fn(this,new dd.Token(type,text)));}}}}}}if(_1ec.length){throw new Error("Could not find closing tag(s): "+_1ec.toString());}this.contents.length=0;return _1ef;},next_token:function(){var _1f0=this.contents[this.i++];return new dd.Token(_1f0[0],_1f0[1]);},delete_first_token:function(){this.i++;},skip_past:function(_1f1){while(this.i<this.contents.length){var _1f2=this.contents[this.i++];if(_1f2[0]==dd.TOKEN_BLOCK&&_1f2[1]==_1f1){return;}}throw new Error("Unclosed tag found when looking for "+_1f1);},create_variable_node:function(expr){return new dd._VarNode(expr);},create_text_node:function(expr){return new dd._TextNode(expr||"");},getTemplate:function(file){return new dd.Template(file);}});dd.register={_registry:{attributes:[],tags:[],filters:[]},get:function(_1f3,name){var _1f4=dd.register._registry[_1f3+"s"];for(var i=0,_1f5;_1f5=_1f4[i];i++){if(typeof _1f5[0]=="string"){if(_1f5[0]==name){return _1f5;}}else{if(name.match(_1f5[0])){return _1f5;}}}},getAttributeTags:function(){var tags=[];var _1f6=dd.register._registry.attributes;for(var i=0,_1f7;_1f7=_1f6[i];i++){if(_1f7.length==3){tags.push(_1f7);}else{var fn=dojo.getObject(_1f7[1]);if(fn&&dojo.isFunction(fn)){_1f7.push(fn);tags.push(_1f7);}}}return tags;},_any:function(type,base,_1f8){for(var path in _1f8){for(var i=0,fn;fn=_1f8[path][i];i++){var key=fn;if(dojo.isArray(fn)){key=fn[0];fn=fn[1];}if(typeof key=="string"){if(key.substr(0,5)=="attr:"){var attr=fn;if(attr.substr(0,5)=="attr:"){attr=attr.slice(5);}dd.register._registry.attributes.push([attr.toLowerCase(),base+"."+path+"."+attr]);}key=key.toLowerCase();}dd.register._registry[type].push([key,fn,base+"."+path]);}}},tags:function(base,_1f9){dd.register._any("tags",base,_1f9);},filters:function(base,_1fa){dd.register._any("filters",base,_1fa);}};var _1fb=/&/g;var _1fc=/</g;var _1fd=/>/g;var _1fe=/'/g;var _1ff=/"/g;dd._base.escape=function(_200){return dd.mark_safe(_200.replace(_1fb,"&amp;").replace(_1fc,"&lt;").replace(_1fd,"&gt;").replace(_1ff,"&quot;").replace(_1fe,"&#39;"));};dd._base.safe=function(_201){if(typeof _201=="string"){_201=new String(_201);}if(typeof _201=="object"){_201.safe=true;}return _201;};dd.mark_safe=dd._base.safe;dd.register.tags("dojox.dtl.tag",{"date":["now"],"logic":["if","for","ifequal","ifnotequal"],"loader":["extends","block","include","load","ssi"],"misc":["comment","debug","filter","firstof","spaceless","templatetag","widthratio","with"],"loop":["cycle","ifchanged","regroup"]});dd.register.filters("dojox.dtl.filter",{"dates":["date","time","timesince","timeuntil"],"htmlstrings":["linebreaks","linebreaksbr","removetags","striptags"],"integers":["add","get_digit"],"lists":["dictsort","dictsortreversed","first","join","length","length_is","random","slice","unordered_list"],"logic":["default","default_if_none","divisibleby","yesno"],"misc":["filesizeformat","pluralize","phone2numeric","pprint"],"strings":["addslashes","capfirst","center","cut","fix_ampersands","floatformat","iriencode","linenumbers","ljust","lower","make_list","rjust","slugify","stringformat","title","truncatewords","truncatewords_html","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap"]});dd.register.filters("dojox.dtl",{"_base":["escape","safe"]});})();}if(!dojo._hasResource["dojox.dtl.Context"]){dojo._hasResource["dojox.dtl.Context"]=true;dojo.provide("dojox.dtl.Context");dojox.dtl.Context=dojo.extend(function(dict){this._this={};dojox.dtl._Context.call(this,dict);},dojox.dtl._Context.prototype,{getKeys:function(){var keys=[];for(var key in this){if(this.hasOwnProperty(key)&&key!="_this"){keys.push(key);}}return keys;},extend:function(obj){return dojo.delegate(this,obj);},filter:function(_202){var _203=new dojox.dtl.Context();var keys=[];var i,arg;if(_202 instanceof dojox.dtl.Context){keys=_202.getKeys();}else{if(typeof _202=="object"){for(var key in _202){keys.push(key);}}else{for(i=0;arg=arguments[i];i++){if(typeof arg=="string"){keys.push(arg);}}}}for(i=0,key;key=keys[i];i++){_203[key]=this[key];}return _203;},setThis:function(_204){this._this=_204;},getThis:function(){return this._this;},hasKey:function(key){if(this._getter){var got=this._getter(key);if(typeof got!="undefined"){return true;}}if(typeof this[key]!="undefined"){return true;}return false;}});}if(!dojo._hasResource["dojox.dtl.dom"]){dojo._hasResource["dojox.dtl.dom"]=true;dojo.provide("dojox.dtl.dom");(function(){var dd=dojox.dtl;dd.BOOLS={checked:1,disabled:1,readonly:1};dd.TOKEN_CHANGE=-11;dd.TOKEN_ATTR=-12;dd.TOKEN_CUSTOM=-13;dd.TOKEN_NODE=1;var ddt=dd.text;var ddh=dd.dom={_attributes:{},_uppers:{},_re4:/^function anonymous\(\)\s*{\s*(.*)\s*}$/,_reTrim:/(?:^[\n\s]*(\{%)?\s*|\s*(%\})?[\n\s]*$)/g,_reSplit:/\s*%\}[\n\s]*\{%\s*/g,getTemplate:function(text){if(typeof this._commentable=="undefined"){this._commentable=false;var div=document.createElement("div");div.innerHTML="<!--Test comment handling, and long comments, using comments whenever possible.-->";if(div.childNodes.length&&div.childNodes[0].nodeType==8&&div.childNodes[0].data=="comment"){this._commentable=true;}}if(!this._commentable){text=text.replace(/<!--({({|%).*?(%|})})-->/g,"$1");}if(dojo.isIE){text=text.replace(/\b(checked|disabled|readonly|style)="/g,"t$1=\"");}text=text.replace(/\bstyle="/g,"tstyle=\"");var _205;var _206=dojo.isWebKit;var _207=[[true,"select","option"],[_206,"tr","td|th"],[_206,"thead","tr","th"],[_206,"tbody","tr","td"],[_206,"table","tbody|thead|tr","tr","td"]];var _208=[];for(var i=0,pair;pair=_207[i];i++){if(!pair[0]){continue;}if(text.indexOf("<"+pair[1])!=-1){var _209=new RegExp("<"+pair[1]+"(?:.|\n)*?>((?:.|\n)+?)</"+pair[1]+">","ig");tagLoop:while(_205=_209.exec(text)){var _20a=pair[2].split("|");var _20b=[];for(var j=0,_20c;_20c=_20a[j];j++){_20b.push("<"+_20c+"(?:.|\n)*?>(?:.|\n)*?</"+_20c+">");}var tags=[];var _20d=dojox.string.tokenize(_205[1],new RegExp("("+_20b.join("|")+")","ig"),function(data){var tag=/<(\w+)/.exec(data)[1];if(!tags[tag]){tags[tag]=true;tags.push(tag);}return {data:data};});if(tags.length){var tag=(tags.length==1)?tags[0]:pair[2].split("|")[0];var _20e=[];for(var j=0,jl=_20d.length;j<jl;j++){var _20f=_20d[j];if(dojo.isObject(_20f)){_20e.push(_20f.data);}else{var _210=_20f.replace(this._reTrim,"");if(!_210){continue;}_20f=_210.split(this._reSplit);for(var k=0,kl=_20f.length;k<kl;k++){var _211="";for(var p=2,pl=pair.length;p<pl;p++){if(p==2){_211+="<"+tag+" dtlinstruction=\"{% "+_20f[k].replace("\"","\\\"")+" %}\">";}else{if(tag==pair[p]){continue;}else{_211+="<"+pair[p]+">";}}}_211+="DTL";for(var p=pair.length-1;p>1;p--){if(p==2){_211+="</"+tag+">";}else{if(tag==pair[p]){continue;}else{_211+="</"+pair[p]+">";}}}_20e.push("ÿ"+_208.length);_208.push(_211);}}}text=text.replace(_205[1],_20e.join(""));}}}}for(var i=_208.length;i--;){text=text.replace("ÿ"+i,_208[i]);}var re=/\b([a-zA-Z_:][a-zA-Z0-9_\-\.:]*)=['"]/g;while(_205=re.exec(text)){var _212=_205[1].toLowerCase();if(_212=="dtlinstruction"){continue;}if(_212!=_205[1]){this._uppers[_212]=_205[1];}this._attributes[_212]=true;}var div=document.createElement("div");div.innerHTML=text;var _213={nodes:[]};while(div.childNodes.length){_213.nodes.push(div.removeChild(div.childNodes[0]));}return _213;},tokenize:function(_214){var _215=[];for(var i=0,node;node=_214[i++];){if(node.nodeType!=1){this.__tokenize(node,_215);}else{this._tokenize(node,_215);}}return _215;},_swallowed:[],_tokenize:function(node,_216){var _217=false;var _218=this._swallowed;var i,j,tag,_219;if(!_216.first){_217=_216.first=true;var tags=dd.register.getAttributeTags();for(i=0;tag=tags[i];i++){try{(tag[2])({swallowNode:function(){throw 1;}},new dd.Token(dd.TOKEN_ATTR,""));}catch(e){_218.push(tag);}}}for(i=0;tag=_218[i];i++){var text=node.getAttribute(tag[0]);if(text){var _218=false;var _21a=(tag[2])({swallowNode:function(){_218=true;return node;}},new dd.Token(dd.TOKEN_ATTR,tag[0]+" "+text));if(_218){if(node.parentNode&&node.parentNode.removeChild){node.parentNode.removeChild(node);}_216.push([dd.TOKEN_CUSTOM,_21a]);return;}}}var _21b=[];if(dojo.isIE&&node.tagName=="SCRIPT"){_21b.push({nodeType:3,data:node.text});node.text="";}else{for(i=0;_219=node.childNodes[i];i++){_21b.push(_219);}}_216.push([dd.TOKEN_NODE,node]);var _21c=false;if(_21b.length){_216.push([dd.TOKEN_CHANGE,node]);_21c=true;}for(var key in this._attributes){var _21d=false;var _21e="";if(key=="class"){_21e=node.className||_21e;}else{if(key=="for"){_21e=node.htmlFor||_21e;}else{if(key=="value"&&node.value==node.innerHTML){continue;}else{if(node.getAttribute){_21e=node.getAttribute(key,2)||_21e;if(key=="href"||key=="src"){if(dojo.isIE){var hash=location.href.lastIndexOf(location.hash);var href=location.href.substring(0,hash).split("/");href.pop();href=href.join("/")+"/";if(_21e.indexOf(href)==0){_21e=_21e.replace(href,"");}_21e=decodeURIComponent(_21e);}}else{if(key=="tstyle"){_21d=key;key="style";}else{if(dd.BOOLS[key.slice(1)]&&dojo.trim(_21e)){key=key.slice(1);}else{if(this._uppers[key]&&dojo.trim(_21e)){_21d=this._uppers[key];}}}}}}}}if(_21d){node.setAttribute(_21d,"");node.removeAttribute(_21d);}if(typeof _21e=="function"){_21e=_21e.toString().replace(this._re4,"$1");}if(!_21c){_216.push([dd.TOKEN_CHANGE,node]);_21c=true;}_216.push([dd.TOKEN_ATTR,node,key,_21e]);}for(i=0,_219;_219=_21b[i];i++){if(_219.nodeType==1){var _21f=_219.getAttribute("dtlinstruction");if(_21f){_219.parentNode.removeChild(_219);_219={nodeType:8,data:_21f};}}this.__tokenize(_219,_216);}if(!_217&&node.parentNode&&node.parentNode.tagName){if(_21c){_216.push([dd.TOKEN_CHANGE,node,true]);}_216.push([dd.TOKEN_CHANGE,node.parentNode]);node.parentNode.removeChild(node);}else{_216.push([dd.TOKEN_CHANGE,node,true,true]);}},__tokenize:function(_220,_221){var data=_220.data;switch(_220.nodeType){case 1:this._tokenize(_220,_221);return;case 3:if(data.match(/[^\s\n]/)&&(data.indexOf("{{")!=-1||data.indexOf("{%")!=-1)){var _222=ddt.tokenize(data);for(var j=0,text;text=_222[j];j++){if(typeof text=="string"){_221.push([dd.TOKEN_TEXT,text]);}else{_221.push(text);}}}else{_221.push([_220.nodeType,_220]);}if(_220.parentNode){_220.parentNode.removeChild(_220);}return;case 8:if(data.indexOf("{%")==0){var text=dojo.trim(data.slice(2,-2));if(text.substr(0,5)=="load "){var _223=dojo.trim(text).split(/\s+/g);for(var i=1,part;part=_223[i];i++){dojo["require"](part);}}_221.push([dd.TOKEN_BLOCK,text]);}if(data.indexOf("{{")==0){_221.push([dd.TOKEN_VAR,dojo.trim(data.slice(2,-2))]);}if(_220.parentNode){_220.parentNode.removeChild(_220);}return;}}};dd.DomTemplate=dojo.extend(function(obj){if(!obj.nodes){var node=dojo.byId(obj);if(node&&node.nodeType==1){dojo.forEach(["class","src","href","name","value"],function(item){ddh._attributes[item]=true;});obj={nodes:[node]};}else{if(typeof obj=="object"){obj=ddt.getTemplateString(obj);}obj=ddh.getTemplate(obj);}}var _224=ddh.tokenize(obj.nodes);if(dd.tests){this.tokens=_224.slice(0);}var _225=new dd._DomParser(_224);this.nodelist=_225.parse();},{_count:0,_re:/\bdojo:([a-zA-Z0-9_]+)\b/g,setClass:function(str){this.getRootNode().className=str;},getRootNode:function(){return this.buffer.rootNode;},getBuffer:function(){return new dd.DomBuffer();},render:function(_226,_227){_227=this.buffer=_227||this.getBuffer();this.rootNode=null;var _228=this.nodelist.render(_226||new dd.Context({}),_227);for(var i=0,node;node=_227._cache[i];i++){if(node._cache){node._cache.length=0;}}return _228;},unrender:function(_229,_22a){return this.nodelist.unrender(_229,_22a);}});dd.DomBuffer=dojo.extend(function(_22b){this._parent=_22b;this._cache=[];},{concat:function(node){var _22c=this._parent;if(_22c&&node.parentNode&&node.parentNode===_22c&&!_22c._dirty){return this;}if(node.nodeType==1&&!this.rootNode){this.rootNode=node||true;return this;}if(!_22c){if(node.nodeType==3&&dojo.trim(node.data)){throw new Error("Text should not exist outside of the root node in template");}return this;}if(this._closed){if(node.nodeType==3&&!dojo.trim(node.data)){return this;}else{throw new Error("Content should not exist outside of the root node in template");}}if(_22c._dirty){if(node._drawn&&node.parentNode==_22c){var _22d=_22c._cache;if(_22d){for(var i=0,_22e;_22e=_22d[i];i++){this.onAddNode&&this.onAddNode(_22e);_22c.insertBefore(_22e,node);this.onAddNodeComplete&&this.onAddNodeComplete(_22e);}_22d.length=0;}}_22c._dirty=false;}if(!_22c._cache){_22c._cache=[];this._cache.push(_22c);}_22c._dirty=true;_22c._cache.push(node);return this;},remove:function(obj){if(typeof obj=="string"){if(this._parent){this._parent.removeAttribute(obj);}}else{if(obj.nodeType==1&&!this.getRootNode()&&!this._removed){this._removed=true;return this;}if(obj.parentNode){this.onRemoveNode&&this.onRemoveNode(obj);if(obj.parentNode){obj.parentNode.removeChild(obj);}}}return this;},setAttribute:function(key,_22f){var old=dojo.attr(this._parent,key);if(this.onChangeAttribute&&old!=_22f){this.onChangeAttribute(this._parent,key,old,_22f);}if(key=="style"){this._parent.style.cssText=_22f;}else{dojo.attr(this._parent,key,_22f);}return this;},addEvent:function(_230,type,fn,args){if(!_230.getThis()){throw new Error("You must use Context.setObject(instance)");}this.onAddEvent&&this.onAddEvent(this.getParent(),type,fn);var _231=fn;if(dojo.isArray(args)){_231=function(e){this[fn].apply(this,[e].concat(args));};}return dojo.connect(this.getParent(),type,_230.getThis(),_231);},setParent:function(node,up,root){if(!this._parent){this._parent=this._first=node;}if(up&&root&&node===this._first){this._closed=true;}if(up){var _232=this._parent;var _233="";var ie=dojo.isIE&&_232.tagName=="SCRIPT";if(ie){_232.text="";}if(_232._dirty){var _234=_232._cache;var _235=(_232.tagName=="SELECT"&&!_232.options.length);for(var i=0,_236;_236=_234[i];i++){if(_236!==_232){this.onAddNode&&this.onAddNode(_236);if(ie){_233+=_236.data;}else{_232.appendChild(_236);if(_235&&_236.defaultSelected&&i){_235=i;}}this.onAddNodeComplete&&this.onAddNodeComplete(_236);}}if(_235){_232.options.selectedIndex=(typeof _235=="number")?_235:0;}_234.length=0;_232._dirty=false;}if(ie){_232.text=_233;}}this._parent=node;this.onSetParent&&this.onSetParent(node,up,root);return this;},getParent:function(){return this._parent;},getRootNode:function(){return this.rootNode;}});dd._DomNode=dojo.extend(function(node){this.contents=node;},{render:function(_237,_238){this._rendered=true;return _238.concat(this.contents);},unrender:function(_239,_23a){if(!this._rendered){return _23a;}this._rendered=false;return _23a.remove(this.contents);},clone:function(_23b){return new this.constructor(this.contents);}});dd._DomNodeList=dojo.extend(function(_23c){this.contents=_23c||[];},{push:function(node){this.contents.push(node);},unshift:function(node){this.contents.unshift(node);},render:function(_23d,_23e,_23f){_23e=_23e||dd.DomTemplate.prototype.getBuffer();if(_23f){var _240=_23e.getParent();}for(var i=0;i<this.contents.length;i++){_23e=this.contents[i].render(_23d,_23e);if(!_23e){throw new Error("Template node render functions must return their buffer");}}if(_240){_23e.setParent(_240);}return _23e;},dummyRender:function(_241,_242,_243){var div=document.createElement("div");var _244=_242.getParent();var old=_244._clone;_244._clone=div;var _245=this.clone(_242,div);if(old){_244._clone=old;}else{_244._clone=null;}_242=dd.DomTemplate.prototype.getBuffer();_245.unshift(new dd.ChangeNode(div));_245.unshift(new dd._DomNode(div));_245.push(new dd.ChangeNode(div,true));_245.render(_241,_242);if(_243){return _242.getRootNode();}var html=div.innerHTML;return (dojo.isIE)?html.replace(/\s*_(dirty|clone)="[^"]*"/g,""):html;},unrender:function(_246,_247,_248){if(_248){var _249=_247.getParent();}for(var i=0;i<this.contents.length;i++){_247=this.contents[i].unrender(_246,_247);if(!_247){throw new Error("Template node render functions must return their buffer");}}if(_249){_247.setParent(_249);}return _247;},clone:function(_24a){var _24b=_24a.getParent();var _24c=this.contents;var _24d=new dd._DomNodeList();var _24e=[];for(var i=0;i<_24c.length;i++){var _24f=_24c[i].clone(_24a);if(_24f instanceof dd.ChangeNode||_24f instanceof dd._DomNode){var item=_24f.contents._clone;if(item){_24f.contents=item;}else{if(_24b!=_24f.contents&&_24f instanceof dd._DomNode){var node=_24f.contents;_24f.contents=_24f.contents.cloneNode(false);_24a.onClone&&_24a.onClone(node,_24f.contents);_24e.push(node);node._clone=_24f.contents;}}}_24d.push(_24f);}for(var i=0,_24f;_24f=_24e[i];i++){_24f._clone=null;}return _24d;},rtrim:function(){while(1){var i=this.contents.length-1;if(this.contents[i] instanceof dd._DomTextNode&&this.contents[i].isEmpty()){this.contents.pop();}else{break;}}return this;}});dd._DomVarNode=dojo.extend(function(str){this.contents=new dd._Filter(str);},{render:function(_250,_251){var str=this.contents.resolve(_250);var type="text";if(str){if(str.render&&str.getRootNode){type="injection";}else{if(str.safe){if(str.nodeType){type="node";}else{if(str.toString){str=str.toString();type="html";}}}}}if(this._type&&type!=this._type){this.unrender(_250,_251);}this._type=type;switch(type){case "text":this._rendered=true;this._txt=this._txt||document.createTextNode(str);if(this._txt.data!=str){var old=this._txt.data;this._txt.data=str;_251.onChangeData&&_251.onChangeData(this._txt,old,this._txt.data);}return _251.concat(this._txt);case "injection":var root=str.getRootNode();if(this._rendered&&root!=this._root){_251=this.unrender(_250,_251);}this._root=root;var _252=this._injected=new dd._DomNodeList();_252.push(new dd.ChangeNode(_251.getParent()));_252.push(new dd._DomNode(root));_252.push(str);_252.push(new dd.ChangeNode(_251.getParent()));this._rendered=true;return _252.render(_250,_251);case "node":this._rendered=true;if(this._node&&this._node!=str&&this._node.parentNode&&this._node.parentNode===_251.getParent()){this._node.parentNode.removeChild(this._node);}this._node=str;return _251.concat(str);case "html":if(this._rendered&&this._src!=str){_251=this.unrender(_250,_251);}this._src=str;if(!this._rendered){this._rendered=true;this._html=this._html||[];var div=(this._div=this._div||document.createElement("div"));div.innerHTML=str;var _253=div.childNodes;while(_253.length){var _254=div.removeChild(_253[0]);this._html.push(_254);_251=_251.concat(_254);}}return _251;default:return _251;}},unrender:function(_255,_256){if(!this._rendered){return _256;}this._rendered=false;switch(this._type){case "text":return _256.remove(this._txt);case "injection":return this._injection.unrender(_255,_256);case "node":if(this._node.parentNode===_256.getParent()){return _256.remove(this._node);}return _256;case "html":for(var i=0,l=this._html.length;i<l;i++){_256=_256.remove(this._html[i]);}return _256;default:return _256;}},clone:function(){return new this.constructor(this.contents.getExpression());}});dd.ChangeNode=dojo.extend(function(node,up,root){this.contents=node;this.up=up;this.root=root;},{render:function(_257,_258){return _258.setParent(this.contents,this.up,this.root);},unrender:function(_259,_25a){if(!_25a.getParent()){return _25a;}return _25a.setParent(this.contents);},clone:function(){return new this.constructor(this.contents,this.up,this.root);}});dd.AttributeNode=dojo.extend(function(key,_25b){this.key=key;this.value=_25b;this.contents=_25b;if(this._pool[_25b]){this.nodelist=this._pool[_25b];}else{if(!(this.nodelist=dd.quickFilter(_25b))){this.nodelist=(new dd.Template(_25b,true)).nodelist;}this._pool[_25b]=this.nodelist;}this.contents="";},{_pool:{},render:function(_25c,_25d){var key=this.key;var _25e=this.nodelist.dummyRender(_25c);if(dd.BOOLS[key]){_25e=!(_25e=="false"||_25e=="undefined"||!_25e);}if(_25e!==this.contents){this.contents=_25e;return _25d.setAttribute(key,_25e);}return _25d;},unrender:function(_25f,_260){this.contents="";return _260.remove(this.key);},clone:function(_261){return new this.constructor(this.key,this.value);}});dd._DomTextNode=dojo.extend(function(str){this.contents=document.createTextNode(str);this.upcoming=str;},{set:function(data){this.upcoming=data;return this;},render:function(_262,_263){if(this.contents.data!=this.upcoming){var old=this.contents.data;this.contents.data=this.upcoming;_263.onChangeData&&_263.onChangeData(this.contents,old,this.upcoming);}return _263.concat(this.contents);},unrender:function(_264,_265){return _265.remove(this.contents);},isEmpty:function(){return !dojo.trim(this.contents.data);},clone:function(){return new this.constructor(this.contents.data);}});dd._DomParser=dojo.extend(function(_266){this.contents=_266;},{i:0,parse:function(_267){var _268={};var _269=this.contents;if(!_267){_267=[];}for(var i=0;i<_267.length;i++){_268[_267[i]]=true;}var _26a=new dd._DomNodeList();while(this.i<_269.length){var _26b=_269[this.i++];var type=_26b[0];var _26c=_26b[1];if(type==dd.TOKEN_CUSTOM){_26a.push(_26c);}else{if(type==dd.TOKEN_CHANGE){var _26d=new dd.ChangeNode(_26c,_26b[2],_26b[3]);_26c[_26d.attr]=_26d;_26a.push(_26d);}else{if(type==dd.TOKEN_ATTR){var fn=ddt.getTag("attr:"+_26b[2],true);if(fn&&_26b[3]){if(_26b[3].indexOf("{%")!=-1||_26b[3].indexOf("{{")!=-1){_26c.setAttribute(_26b[2],"");}_26a.push(fn(null,new dd.Token(type,_26b[2]+" "+_26b[3])));}else{if(dojo.isString(_26b[3])){if(_26b[2]=="style"||_26b[3].indexOf("{%")!=-1||_26b[3].indexOf("{{")!=-1){_26a.push(new dd.AttributeNode(_26b[2],_26b[3]));}else{if(dojo.trim(_26b[3])){try{dojo.attr(_26c,_26b[2],_26b[3]);}catch(e){}}}}}}else{if(type==dd.TOKEN_NODE){var fn=ddt.getTag("node:"+_26c.tagName.toLowerCase(),true);if(fn){_26a.push(fn(null,new dd.Token(type,_26c),_26c.tagName.toLowerCase()));}_26a.push(new dd._DomNode(_26c));}else{if(type==dd.TOKEN_VAR){_26a.push(new dd._DomVarNode(_26c));}else{if(type==dd.TOKEN_TEXT){_26a.push(new dd._DomTextNode(_26c.data||_26c));}else{if(type==dd.TOKEN_BLOCK){if(_268[_26c]){--this.i;return _26a;}var cmd=_26c.split(/\s+/g);if(cmd.length){cmd=cmd[0];var fn=ddt.getTag(cmd);if(typeof fn!="function"){throw new Error("Function not found for "+cmd);}var tpl=fn(this,new dd.Token(type,_26c));if(tpl){_26a.push(tpl);}}}}}}}}}}if(_267.length){throw new Error("Could not find closing tag(s): "+_267.toString());}return _26a;},next_token:function(){var _26e=this.contents[this.i++];return new dd.Token(_26e[0],_26e[1]);},delete_first_token:function(){this.i++;},skip_past:function(_26f){return dd._Parser.prototype.skip_past.call(this,_26f);},create_variable_node:function(expr){return new dd._DomVarNode(expr);},create_text_node:function(expr){return new dd._DomTextNode(expr||"");},getTemplate:function(loc){return new dd.DomTemplate(ddh.getTemplate(loc));}});})();}if(!dojo._hasResource["dojox.dtl.render.dom"]){dojo._hasResource["dojox.dtl.render.dom"]=true;dojo.provide("dojox.dtl.render.dom");dojox.dtl.render.dom.Render=function(_270,tpl){this._tpl=tpl;this.domNode=dojo.byId(_270);};dojo.extend(dojox.dtl.render.dom.Render,{setAttachPoint:function(node){this.domNode=node;},render:function(_271,tpl,_272){if(!this.domNode){throw new Error("You cannot use the Render object without specifying where you want to render it");}this._tpl=tpl=tpl||this._tpl;_272=_272||tpl.getBuffer();_271=_271||new dojox.dtl.Context();var frag=tpl.render(_271,_272).getParent();if(!frag){throw new Error("Rendered template does not have a root node");}if(this.domNode!==frag){this.domNode.parentNode.replaceChild(frag,this.domNode);this.domNode=frag;}}});}if(!dojo._hasResource["dojox.dtl.contrib.dijit"]){dojo._hasResource["dojox.dtl.contrib.dijit"]=true;dojo.provide("dojox.dtl.contrib.dijit");(function(){var dd=dojox.dtl;var ddcd=dd.contrib.dijit;ddcd.AttachNode=dojo.extend(function(keys,_273){this._keys=keys;this._object=_273;},{render:function(_274,_275){if(!this._rendered){this._rendered=true;for(var i=0,key;key=this._keys[i];i++){_274.getThis()[key]=this._object||_275.getParent();}}return _275;},unrender:function(_276,_277){if(this._rendered){this._rendered=false;for(var i=0,key;key=this._keys[i];i++){if(_276.getThis()[key]===(this._object||_277.getParent())){delete _276.getThis()[key];}}}return _277;},clone:function(_278){return new this.constructor(this._keys,this._object);}});ddcd.EventNode=dojo.extend(function(_279,obj){this._command=_279;var type,_27a=_279.split(/\s*,\s*/);var trim=dojo.trim;var _27b=[];var fns=[];while(type=_27a.pop()){if(type){var fn=null;if(type.indexOf(":")!=-1){var _27c=type.split(":");type=trim(_27c[0]);fn=trim(_27c.slice(1).join(":"));}else{type=trim(type);}if(!fn){fn=type;}_27b.push(type);fns.push(fn);}}this._types=_27b;this._fns=fns;this._object=obj;this._rendered=[];},{_clear:false,render:function(_27d,_27e){for(var i=0,type;type=this._types[i];i++){if(!this._clear&&!this._object){_27e.getParent()[type]=null;}var fn=this._fns[i];var args;if(fn.indexOf(" ")!=-1){if(this._rendered[i]){dojo.disconnect(this._rendered[i]);this._rendered[i]=false;}args=dojo.map(fn.split(" ").slice(1),function(item){return new dd._Filter(item).resolve(_27d);});fn=fn.split(" ",2)[0];}if(!this._rendered[i]){if(!this._object){this._rendered[i]=_27e.addEvent(_27d,type,fn,args);}else{this._rendered[i]=dojo.connect(this._object,type,_27d.getThis(),fn);}}}this._clear=true;return _27e;},unrender:function(_27f,_280){while(this._rendered.length){dojo.disconnect(this._rendered.pop());}return _280;},clone:function(){return new this.constructor(this._command,this._object);}});function _281(n1){var n2=n1.cloneNode(true);if(dojo.isIE){dojo.query("script",n2).forEach("item.text = this[index].text;",dojo.query("script",n1));}return n2;};ddcd.DojoTypeNode=dojo.extend(function(node,_282){this._node=node;this._parsed=_282;var _283=node.getAttribute("dojoAttachEvent");if(_283){this._events=new ddcd.EventNode(dojo.trim(_283));}var _284=node.getAttribute("dojoAttachPoint");if(_284){this._attach=new ddcd.AttachNode(dojo.trim(_284).split(/\s*,\s*/));}if(!_282){this._dijit=dojo.parser.instantiate([_281(node)])[0];}else{node=_281(node);var old=ddcd.widgetsInTemplate;ddcd.widgetsInTemplate=false;this._template=new dd.DomTemplate(node);ddcd.widgetsInTemplate=old;}},{render:function(_285,_286){if(this._parsed){var _287=new dd.DomBuffer();this._template.render(_285,_287);var root=_281(_287.getRootNode());var div=document.createElement("div");div.appendChild(root);var _288=div.innerHTML;div.removeChild(root);if(_288!=this._rendered){this._rendered=_288;if(this._dijit){this._dijit.destroyRecursive();}this._dijit=dojo.parser.instantiate([root])[0];}}var node=this._dijit.domNode;if(this._events){this._events._object=this._dijit;this._events.render(_285,_286);}if(this._attach){this._attach._object=this._dijit;this._attach.render(_285,_286);}return _286.concat(node);},unrender:function(_289,_28a){return _28a.remove(this._dijit.domNode);},clone:function(){return new this.constructor(this._node,this._parsed);}});dojo.mixin(ddcd,{widgetsInTemplate:true,dojoAttachPoint:function(_28b,_28c){return new ddcd.AttachNode(_28c.contents.slice(16).split(/\s*,\s*/));},dojoAttachEvent:function(_28d,_28e){return new ddcd.EventNode(_28e.contents.slice(16));},dojoType:function(_28f,_290){var _291=false;if(_290.contents.slice(-7)==" parsed"){_291=true;}var _292=_290.contents.slice(9);var _293=_291?_292.slice(0,-7):_292.toString();if(ddcd.widgetsInTemplate){var node=_28f.swallowNode();node.setAttribute("dojoType",_293);return new ddcd.DojoTypeNode(node,_291);}return new dd.AttributeNode("dojoType",_293);},on:function(_294,_295){var _296=_295.contents.split();return new ddcd.EventNode(_296[0]+":"+_296.slice(1).join(" "));}});dd.register.tags("dojox.dtl.contrib",{"dijit":["attr:dojoType","attr:dojoAttachPoint",["attr:attach","dojoAttachPoint"],"attr:dojoAttachEvent",[/(attr:)?on(click|key(up))/i,"on"]]});})();}if(!dojo._hasResource["dojox.dtl._DomTemplated"]){dojo._hasResource["dojox.dtl._DomTemplated"]=true;dojo.provide("dojox.dtl._DomTemplated");dojox.dtl._DomTemplated=function(){};dojox.dtl._DomTemplated.prototype={_dijitTemplateCompat:false,buildRendering:function(){this.domNode=this.srcNodeRef;if(!this._render){var ddcd=dojox.dtl.contrib.dijit;var old=ddcd.widgetsInTemplate;ddcd.widgetsInTemplate=this.widgetsInTemplate;this.template=this.template||this._getCachedTemplate(this.templatePath,this.templateString);this._render=new dojox.dtl.render.dom.Render(this.domNode,this.template);ddcd.widgetsInTemplate=old;}var _297=this._getContext();if(!this._created){delete _297._getter;}this.render(_297);this.domNode=this.template.getRootNode();if(this.srcNodeRef&&this.srcNodeRef.parentNode){dojo.destroy(this.srcNodeRef);delete this.srcNodeRef;}},setTemplate:function(_298,_299){if(dojox.dtl.text._isTemplate(_298)){this.template=this._getCachedTemplate(null,_298);}else{this.template=this._getCachedTemplate(_298);}this.render(_299);},render:function(_29a,tpl){if(tpl){this.template=tpl;}this._render.render(this._getContext(_29a),this.template);},_getContext:function(_29b){if(!(_29b instanceof dojox.dtl.Context)){_29b=false;}_29b=_29b||new dojox.dtl.Context(this);_29b.setThis(this);return _29b;},_getCachedTemplate:function(_29c,_29d){if(!this._templates){this._templates={};}var key=_29d||_29c.toString();var _29e=this._templates;if(_29e[key]){return _29e[key];}return (_29e[key]=new dojox.dtl.DomTemplate(dijit._Templated.getCachedTemplate(_29c,_29d,true)));}};}if(!dojo._hasResource["dojox.fx._core"]){dojo._hasResource["dojox.fx._core"]=true;dojo.provide("dojox.fx._core");dojox.fx._Line=function(_29f,end){this.start=_29f;this.end=end;var _2a0=dojo.isArray(_29f),d=(_2a0?[]:end-_29f);if(_2a0){dojo.forEach(this.start,function(s,i){d[i]=this.end[i]-s;},this);this.getValue=function(n){var res=[];dojo.forEach(this.start,function(s,i){res[i]=(d[i]*n)+s;},this);return res;};}else{this.getValue=function(n){return (d*n)+this.start;};}};}if(!dojo._hasResource["dojox.fx.scroll"]){dojo._hasResource["dojox.fx.scroll"]=true;dojo.provide("dojox.fx.scroll");dojo.experimental("dojox.fx.scroll");dojox.fx.smoothScroll=function(args){if(!args.target){args.target=dojo.position(args.node,true);}var _2a1=dojo[(dojo.isIE?"isObject":"isFunction")](args["win"].scrollTo),_2a2={x:args.target.x,y:args.target.y};if(!_2a1){var _2a3=dojo.position(args.win);_2a2.x-=_2a3.x;_2a2.y-=_2a3.y;}var _2a4=(_2a1)?(function(val){args.win.scrollTo(val[0],val[1]);}):(function(val){args.win.scrollLeft=val[0];args.win.scrollTop=val[1];});var anim=new dojo.Animation(dojo.mixin({beforeBegin:function(){if(this.curve){delete this.curve;}var _2a5=_2a1?dojo._docScroll():{x:args.win.scrollLeft,y:args.win.scrollTop};anim.curve=new dojox.fx._Line([_2a5.x,_2a5.y],[_2a2.x,_2a2.y]);},onAnimate:_2a4},args));return anim;};}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.fx.easing"]){dojo._hasResource["dojox.fx.easing"]=true;dojo.provide("dojox.fx.easing");dojo.deprecated("dojox.fx.easing","Upgraded to Core, use dojo.fx.easing instead","2.0");dojox.fx.easing=dojo.fx.easing;}if(!dojo._hasResource["base.Projects"]){dojo._hasResource["base.Projects"]=true;dojo.provide("base.Projects");dojo.require("dojo._base.fx");dojo.require("dojox.fx.scroll");dojo.require("dojox.fx.easing");(function($){$.declare("base.Projects",null,{constructor:function(){var self=this;$.forEach($.query(".projectFile"),function(_2a6){$.connect(_2a6,"onclick",$.hitch(self,"toggle",_2a6));});},toggle:function(_2a7,e){var self=this;$.stopEvent(e);var _2a8=_2a7.parentNode;var _2a9=$.query(".projectHeader",_2a8)[0];if($.hasClass(_2a8,"open")){if($.hasClass(_2a8,"first")){var node=$.body();}else{var node=_2a9;}dojox.fx.smoothScroll({"node":node,win:window,duration:500,onEnd:function(){$.forEach($.query(".projectFile.hidden",_2a8),function(_2aa){var anim=$.anim(_2aa,{"height":0,opacity:0,marginTop:-10},500,$.fx.easing.circOut);$.connect(anim,"onEnd",function(){$.style(_2aa,{display:"none",height:"auto"});});});}}).play();$.toggleClass(_2a8,"open",false);}else{$.forEach($.query(".projectFile.hidden",_2a8),function(_2ab){$.style(_2ab,{position:"absolute",opacity:"0",display:"block",marginTop:"-10px"});var _2ac=$.style(_2ab,"height");$.style(_2ab,{position:"relative",height:"0px"});var anim=$.anim(_2ab,{"height":_2ac,opacity:1,marginTop:0},500,$.fx.easing.circOut);$.connect(anim,"onEnd",function(){});});$.toggleClass(_2a8,"open",true);}}});})(dojo);}
