/*
	Copyright (c) 2004-2008, 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 a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["pydojo.core"]){dojo._hasResource["pydojo.core"]=true;dojo.provide("pydojo.core");dojo.mixin(pydojo.core,{updateContent:function(){dojo.byId("fillhere").innerHTML="Dojo is working!";}});}if(!dojo._hasResource["dojo.back"]){dojo._hasResource["dojo.back"]=true;dojo.provide("dojo.back");(function(){var _1=dojo.back;function getHash(){var h=window.location.hash;if(h.charAt(0)=="#"){h=h.substring(1);}return dojo.isMozilla?h:decodeURIComponent(h);};function setHash(h){if(!h){h="";}window.location.hash=encodeURIComponent(h);_4=history.length;};if(dojo.exists("tests.back-hash")){_1.getHash=getHash;_1.setHash=setHash;}var _5=(typeof (window)!=="undefined")?window.location.href:"";var _6=(typeof (window)!=="undefined")?getHash():"";var _7=null;var _8=null;var _9=null;var _a=null;var _b=[];var _c=[];var _d=false;var _e=false;var _4;function handleBackButton(){var _f=_c.pop();if(!_f){return;}var _10=_c[_c.length-1];if(!_10&&_c.length==0){_10=_7;}if(_10){if(_10.kwArgs["back"]){_10.kwArgs["back"]();}else{if(_10.kwArgs["backButton"]){_10.kwArgs["backButton"]();}else{if(_10.kwArgs["handle"]){_10.kwArgs.handle("back");}}}}_b.push(_f);};_1.goBack=handleBackButton;function handleForwardButton(){var _11=_b.pop();if(!_11){return;}if(_11.kwArgs["forward"]){_11.kwArgs.forward();}else{if(_11.kwArgs["forwardButton"]){_11.kwArgs.forwardButton();}else{if(_11.kwArgs["handle"]){_11.kwArgs.handle("forward");}}}_c.push(_11);};_1.goForward=handleForwardButton;function createState(url,_13,_14){return {"url":url,"kwArgs":_13,"urlHash":_14};};function getUrlQuery(url){var _16=url.split("?");if(_16.length<2){return null;}else{return _16[1];}};function loadIframeHistory(){var url=(dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html"))+"?"+(new Date()).getTime();_d=true;if(_a){dojo.isSafari?_a.location=url:window.frames[_a.name].location=url;}else{}return url;};function checkLocation(){if(!_e){var hsl=_c.length;var _19=getHash();if((_19===_6||window.location.href==_5)&&(hsl==1)){handleBackButton();return;}if(_b.length>0){if(_b[_b.length-1].urlHash===_19){handleForwardButton();return;}}if((hsl>=2)&&(_c[hsl-2])){if(_c[hsl-2].urlHash===_19){handleBackButton();return;}}if(dojo.isSafari&&dojo.isSafari<3){var _1a=history.length;if(_1a>_4){handleForwardButton();}else{if(_1a<_4){handleBackButton();}}_4=_1a;}}};_1.init=function(){if(dojo.byId("dj_history")){return;}var src=dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html");document.write("<iframe style=\"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;\" name=\"dj_history\" id=\"dj_history\" src=\""+src+"\"></iframe>");};_1.setInitialState=function(_1c){_7=createState(_5,_1c,_6);};_1.addToHistory=function(_1d){_b=[];var _1e=null;var url=null;if(!_a){if(dojo.config["useXDomain"]&&!dojo.config["dojoIframeHistoryUrl"]){console.warn("dojo.back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");}_a=window.frames["dj_history"];}if(!_9){_9=document.createElement("a");dojo.body().appendChild(_9);_9.style.display="none";}if(_1d["changeUrl"]){_1e=""+((_1d["changeUrl"]!==true)?_1d["changeUrl"]:(new Date()).getTime());if(_c.length==0&&_7.urlHash==_1e){_7=createState(url,_1d,_1e);return;}else{if(_c.length>0&&_c[_c.length-1].urlHash==_1e){_c[_c.length-1]=createState(url,_1d,_1e);return;}}_e=true;setTimeout(function(){setHash(_1e);_e=false;},1);_9.href=_1e;if(dojo.isIE){url=loadIframeHistory();var _20=_1d["back"]||_1d["backButton"]||_1d["handle"];var tcb=function(_22){if(getHash()!=""){setTimeout(function(){setHash(_1e);},1);}_20.apply(this,[_22]);};if(_1d["back"]){_1d.back=tcb;}else{if(_1d["backButton"]){_1d.backButton=tcb;}else{if(_1d["handle"]){_1d.handle=tcb;}}}var _23=_1d["forward"]||_1d["forwardButton"]||_1d["handle"];var tfw=function(_25){if(getHash()!=""){setHash(_1e);}if(_23){_23.apply(this,[_25]);}};if(_1d["forward"]){_1d.forward=tfw;}else{if(_1d["forwardButton"]){_1d.forwardButton=tfw;}else{if(_1d["handle"]){_1d.handle=tfw;}}}}else{if(!dojo.isIE){if(!_8){_8=setInterval(checkLocation,200);}}}}else{url=loadIframeHistory();}_c.push(createState(url,_1d,_1e));};_1._iframeLoaded=function(evt,_27){var _28=getUrlQuery(_27.href);if(_28==null){if(_c.length==1){handleBackButton();}return;}if(_d){_d=false;return;}if(_c.length>=2&&_28==getUrlQuery(_c[_c.length-2].url)){handleBackButton();}else{if(_b.length>0&&_28==getUrlQuery(_b[_b.length-1].url)){handleForwardButton();}}};})();}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(){var _29=dojo.doc;if(_29.selection){var s=_29.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _2b=dojo.global;var _2c=_2b.getSelection();if(dojo.isString(_2c)){return !_2c;}else{return _2c.isCollapsed||!_2c.toString();}}},getBookmark:function(){var _2d,_2e=dojo.doc.selection;if(_2e){var _2f=_2e.createRange();if(_2e.type.toUpperCase()=="CONTROL"){if(_2f.length){_2d=[];var i=0,len=_2f.length;while(i<len){_2d.push(_2f.item(i++));}}else{_2d=null;}}else{_2d=_2f.getBookmark();}}else{if(window.getSelection){_2e=dojo.global.getSelection();if(_2e){_2f=_2e.getRangeAt(0);_2d=_2f.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _2d;},moveToBookmark:function(_32){var _33=dojo.doc;if(_33.selection){var _34;if(dojo.isArray(_32)){_34=_33.body.createControlRange();dojo.forEach(_32,function(n){_34.addElement(n);});}else{_34=_33.selection.createRange();_34.moveToBookmark(_32);}_34.select();}else{var _36=dojo.global.getSelection&&dojo.global.getSelection();if(_36&&_36.removeAllRanges){_36.removeAllRanges();_36.addRange(_32);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_37,_38){return {node:_37&&dojo.isDescendant(dijit._curFocus,_37.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_38||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_38||dojo.global,dijit.getBookmark):null,openedForWindow:_38};},focus:function(_39){if(!_39){return;}var _3a="node" in _39?_39.node:_39,_3b=_39.bookmark,_3c=_39.openedForWindow;if(_3a){var _3d=(_3a.tagName.toLowerCase()=="iframe")?_3a.contentWindow:_3a;if(_3d&&_3d.focus){try{_3d.focus();}catch(e){}}dijit._onFocusNode(_3a);}if(_3b&&dojo.withGlobal(_3c||dojo.global,dijit.isCollapsed)){if(_3c){_3c.focus();}try{dojo.withGlobal(_3c||dojo.global,dijit.moveToBookmark,null,[_3b]);}catch(e){}}},_activeStack:[],registerWin:function(_3e){if(!_3e){_3e=window;}dojo.connect(_3e.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_3e.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_onBlurNode:function(_45){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(_46){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _47=[];try{while(_46){if(_46.dijitPopupParent){_46=dijit.byId(_46.dijitPopupParent).domNode;}else{if(_46.tagName&&_46.tagName.toLowerCase()=="body"){if(_46===dojo.body()){break;}_46=dijit.getDocumentWindow(_46.ownerDocument).frameElement;}else{var id=_46.getAttribute&&_46.getAttribute("widgetId");if(id){_47.unshift(id);}_46=_46.parentNode;}}}}catch(e){}dijit._setStack(_47);},_onFocusNode:function(_49){if(!_49){return;}if(_49.nodeType==9){return;}if(_49.nodeType==9){var _4a=dijit.getDocumentWindow(_49).frameElement;if(!_4a){return;}_49=_4a;}dijit._onTouchNode(_49);if(_49==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_49;dojo.publish("focusNode",[_49]);},_setStack:function(_4b){var _4c=dijit._activeStack;dijit._activeStack=_4b;for(var _4d=0;_4d<Math.min(_4c.length,_4b.length);_4d++){if(_4c[_4d]!=_4b[_4d]){break;}}for(var i=_4c.length-1;i>=_4d;i--){var _4f=dijit.byId(_4c[i]);if(_4f){_4f._focused=false;_4f._hasBeenBlurred=true;if(_4f._onBlur){_4f._onBlur();}if(_4f._setStateClass){_4f._setStateClass();}dojo.publish("widgetBlur",[_4f]);}}for(i=_4d;i<_4b.length;i++){_4f=dijit.byId(_4b[i]);if(_4f){_4f._focused=true;if(_4f._onFocus){_4f._onFocus();}if(_4f._setStateClass){_4f._setStateClass();}dojo.publish("widgetFocus",[_4f]);}}}});dojo.addOnLoad(dijit.registerWin);}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={};},add:function(_50){if(this._hash[_50.id]){throw new Error("Tried to register widget with id=="+_50.id+" but that id is already registered");}this._hash[_50.id]=_50;},remove:function(id){delete this._hash[id];},forEach:function(_52){for(var id in this._hash){_52(this._hash[id]);}},filter:function(_54){var res=new dijit.WidgetSet();this.forEach(function(_56){if(_54(_56)){res.add(_56);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_59){return _59.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_5a){var id;do{id=_5a+"_"+(_5a in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_5a]:dijit._widgetTypeCtr[_5a]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_5c){_5c.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_5e){return dijit.registry.byId(_5e.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_5f){while(_5f){if(_5f.getAttribute&&_5f.getAttribute("widgetId")){return dijit.registry.byId(_5f.getAttribute("widgetId"));}_5f=_5f.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_60){var _61=dojo.style(_60);return (_61.visibility!="hidden")&&(_61.visibility!="collapsed")&&(_61.display!="none")&&(dojo.attr(_60,"type")!="hidden");};dijit.isTabNavigable=function(_62){if(dojo.hasAttr(_62,"disabled")){return false;}var _63=dojo.hasAttr(_62,"tabindex");var _64=dojo.attr(_62,"tabindex");if(_63&&_64>=0){return true;}var _65=_62.nodeName.toLowerCase();if(((_65=="a"&&dojo.hasAttr(_62,"href"))||dijit._tabElements[_65])&&(!_63||_64>=0)){return true;}return false;};dijit._getTabNavigable=function(_66){var _67,_68,_69,_6a,_6b,_6c;var _6d=function(_6e){dojo.query("> *",_6e).forEach(function(_6f){var _70=dijit._isElementShown(_6f);if(_70&&dijit.isTabNavigable(_6f)){var _71=dojo.attr(_6f,"tabindex");if(!dojo.hasAttr(_6f,"tabindex")||_71==0){if(!_67){_67=_6f;}_68=_6f;}else{if(_71>0){if(!_69||_71<_6a){_6a=_71;_69=_6f;}if(!_6b||_71>=_6c){_6c=_71;_6b=_6f;}}}}if(_70&&_6f.nodeName.toUpperCase()!="SELECT"){_6d(_6f);}});};if(dijit._isElementShown(_66)){_6d(_66);}return {first:_67,last:_68,lowest:_69,highest:_6b};};dijit.getFirstInTabbingOrder=function(_72){var _73=dijit._getTabNavigable(dojo.byId(_72));return _73.lowest?_73.lowest:_73.first;};dijit.getLastInTabbingOrder=function(_74){var _75=dijit._getTabNavigable(dojo.byId(_74));return _75.last?_75.last:_75.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_76){this.pairs=[];this.returnWrappers=_76||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_77,_78,_79,_7a,_7b){this.pairs[((_7b)?"unshift":"push")]([_77,_78,_79,_7a]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _7d=this.pairs[i];if(_7d[1].apply(this,arguments)){if((_7d[3])||(this.returnWrappers)){return _7d[2];}else{return _7d[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_7e){for(var i=0;i<this.pairs.length;i++){var _80=this.pairs[i];if(_80[0]==_7e){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(){var _81=dojo.global;var _82=dojo.doc;var w=0,h=0;var de=_82.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _88,_89,_8a,_8b;var dbw=_82.body.clientWidth;if(dbw>dew){_88=dew;_8a=dbw;}else{_8a=dew;_88=dbw;}var dbh=_82.body.clientHeight;if(dbh>deh){_89=deh;_8b=dbh;}else{_8b=deh;_89=dbh;}w=(_8a>_81.innerWidth)?_88:_8a;h=(_8b>_81.innerHeight)?_89:_8b;}else{if(!dojo.isOpera&&_81.innerWidth){w=_81.innerWidth;h=_81.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _8e=dojo._docScroll();return {w:w,h:h,l:_8e.x,t:_8e.y};};dijit.placeOnScreen=function(_8f,pos,_91,_92){var _93=dojo.map(_91,function(_94){return {corner:_94,pos:pos};});return dijit._place(_8f,_93);};dijit._place=function(_95,_96,_97){var _98=dijit.getViewport();if(!_95.parentNode||String(_95.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_95);}var _99=null;dojo.some(_96,function(_9a){var _9b=_9a.corner;var pos=_9a.pos;if(_97){_97(_95,_9a.aroundCorner,_9b);}var _9d=_95.style;var _9e=_9d.display;var _9f=_9d.visibility;_9d.visibility="hidden";_9d.display="";var mb=dojo.marginBox(_95);_9d.display=_9e;_9d.visibility=_9f;var _a1=(_9b.charAt(1)=="L"?pos.x:Math.max(_98.l,pos.x-mb.w)),_a2=(_9b.charAt(0)=="T"?pos.y:Math.max(_98.t,pos.y-mb.h)),_a3=(_9b.charAt(1)=="L"?Math.min(_98.l+_98.w,_a1+mb.w):pos.x),_a4=(_9b.charAt(0)=="T"?Math.min(_98.t+_98.h,_a2+mb.h):pos.y),_a5=_a3-_a1,_a6=_a4-_a2,_a7=(mb.w-_a5)+(mb.h-_a6);if(_99==null||_a7<_99.overflow){_99={corner:_9b,aroundCorner:_9a.aroundCorner,x:_a1,y:_a2,w:_a5,h:_a6,overflow:_a7};}return !_a7;});_95.style.left=_99.x+"px";_95.style.top=_99.y+"px";if(_99.overflow&&_97){_97(_95,_99.aroundCorner,_99.corner);}return _99;};dijit.placeOnScreenAroundNode=function(_a8,_a9,_aa,_ab){_a9=dojo.byId(_a9);var _ac=_a9.style.display;_a9.style.display="";var _ad=_a9.offsetWidth;var _ae=_a9.offsetHeight;var _af=dojo.coords(_a9,true);_a9.style.display=_ac;return dijit._placeOnScreenAroundRect(_a8,_af.x,_af.y,_ad,_ae,_aa,_ab);};dijit.placeOnScreenAroundRectangle=function(_b0,_b1,_b2,_b3){return dijit._placeOnScreenAroundRect(_b0,_b1.x,_b1.y,_b1.width,_b1.height,_b2,_b3);};dijit._placeOnScreenAroundRect=function(_b4,x,y,_b7,_b8,_b9,_ba){var _bb=[];for(var _bc in _b9){_bb.push({aroundCorner:_bc,corner:_b9[_bc],pos:{x:x+(_bc.charAt(1)=="L"?0:_b7),y:y+(_bc.charAt(0)=="T"?0:_b8)}});}return dijit._place(_b4,_bb,_ba);};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(_c1,_c2,_c3,_c4){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _c7=[],_c8=1000,_c9=1;this.prepare=function(_ca){dojo.body().appendChild(_ca);var s=_ca.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_cc){var _cd=_cc.popup,_ce=_cc.orient||{"BL":"TL","TL":"BL"},_cf=_cc.around,id=(_cc.around&&_cc.around.id)?(_cc.around.id+"_dropdown"):("popup_"+_c9++);var _d1=dojo.doc.createElement("div");dijit.setWaiRole(_d1,"presentation");_d1.id=id;_d1.className="dijitPopup";_d1.style.zIndex=_c8+_c7.length;_d1.style.left=_d1.style.top="0px";_d1.style.visibility="hidden";if(_cc.parent){_d1.dijitPopupParent=_cc.parent.id;}dojo.body().appendChild(_d1);var s=_cd.domNode.style;s.display="";s.visibility="";s.position="";_d1.appendChild(_cd.domNode);var _d3=new dijit.BackgroundIframe(_d1);var _d4=_cf?dijit.placeOnScreenAroundElement(_d1,_cf,_ce,_cd.orient?dojo.hitch(_cd,"orient"):null):dijit.placeOnScreen(_d1,_cc,_ce=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_d1.style.visibility="visible";var _d5=[];var _d6=function(){for(var pi=_c7.length-1;pi>0&&_c7[pi].parent===_c7[pi-1].widget;pi--){}return _c7[pi];};_d5.push(dojo.connect(_d1,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_cc.onCancel){dojo.stopEvent(evt);_cc.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _d9=_d6();if(_d9&&_d9.onCancel){_d9.onCancel();}}}}));if(_cd.onCancel){_d5.push(dojo.connect(_cd,"onCancel",null,_cc.onCancel));}_d5.push(dojo.connect(_cd,_cd.onExecute?"onExecute":"onChange",null,function(){var _da=_d6();if(_da&&_da.onExecute){_da.onExecute();}}));_c7.push({wrapper:_d1,iframe:_d3,widget:_cd,parent:_cc.parent,onExecute:_cc.onExecute,onCancel:_cc.onCancel,onClose:_cc.onClose,handlers:_d5});if(_cd.onOpen){_cd.onOpen(_d4);}return _d4;};this.close=function(_db){while(dojo.some(_c7,function(_dc){return _dc.widget==_db;})){var top=_c7.pop(),_de=top.wrapper,_df=top.iframe,_e0=top.widget,_e1=top.onClose;if(_e0.onClose){_e0.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_e0||!_e0.domNode){return;}this.prepare(_e0.domNode);_df.destroy();dojo._destroyElement(_de);if(_e1){_e1();}}};}();dijit._frames=new function(){var _e2=[];this.pop=function(){var _e3;if(_e2.length){_e3=_e2.pop();_e3.style.display="";}else{if(dojo.isIE){var _e4=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _e5="<iframe src='"+_e4+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_e3=dojo.doc.createElement(_e5);}else{_e3=dojo.doc.createElement("iframe");_e3.src="javascript:\"\"";_e3.className="dijitBackgroundIframe";}_e3.tabIndex=-1;dojo.body().appendChild(_e3);}return _e3;};this.push=function(_e6){_e6.style.display="";if(dojo.isIE){_e6.style.removeExpression("width");_e6.style.removeExpression("height");}_e2.push(_e6);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_e8){if(!_e8.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _e9=dijit._frames.pop();_e8.appendChild(_e9);if(dojo.isIE){_e9.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_e8.id+"').offsetWidth");_e9.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_e8.id+"').offsetHeight");}this.iframe=_e9;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){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(_ea){_ea=dojo.byId(_ea);var _eb=_ea.ownerDocument.body;var _ec=_eb.parentNode;if(dojo.isFF==2||_ea==_eb||_ea==_ec){_ea.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _ee=dojo.doc.compatMode!="BackCompat";var _ef=(_ee&&!dojo.isSafari)?_ec:_eb;function addPseudoAttrs(_f0){var _f1=_f0.parentNode;var _f2=_f0.offsetParent;if(_f2==null){_f0=_ef;_f2=_ec;_f1=null;}_f0._offsetParent=(_f2==_eb)?_ef:_f2;_f0._parent=(_f1==_eb)?_ef:_f1;_f0._start={H:_f0.offsetLeft,V:_f0.offsetTop};_f0._scroll={H:_f0.scrollLeft,V:_f0.scrollTop};_f0._renderedSize={H:_f0.offsetWidth,V:_f0.offsetHeight};var bp=dojo._getBorderExtents(_f0);_f0._borderStart={H:bp.l,V:bp.t};_f0._borderSize={H:bp.w,V:bp.h};_f0._clientSize=(_f0._offsetParent==_ec&&dojo.isSafari&&_ee)?{H:_ec.clientWidth,V:_ec.clientHeight}:{H:_f0.clientWidth,V:_f0.clientHeight};_f0._scrollBarSize={V:null,H:null};for(var dir in _f0._scrollBarSize){var _f5=_f0._renderedSize[dir]-_f0._clientSize[dir]-_f0._borderSize[dir];_f0._scrollBarSize[dir]=(_f0._clientSize[dir]>0&&_f5>=15&&_f5<=17)?_f5:0;}_f0._isScrollable={V:null,H:null};for(dir in _f0._isScrollable){var _f6=dir=="H"?"V":"H";_f0._isScrollable[dir]=_f0==_ef||_f0._scroll[dir]||_f0._scrollBarSize[_f6];}};var _f7=_ea;while(_f7!=null){addPseudoAttrs(_f7);var _f8=_f7._parent;if(_f8){_f8._child=_f7;}_f7=_f8;}for(var dir in _ef._renderedSize){_ef._renderedSize[dir]=Math.min(_ef._clientSize[dir],_ef._renderedSize[dir]);}var _fa=_ea;while(_fa!=_ef){_f7=_fa._parent;if(_f7.tagName=="TD"){var _fb=_f7._parent._parent._parent;if(_fb._offsetParent==_fa._offsetParent&&_f7._offsetParent!=_fa._offsetParent){_f7=_fb;}}var _fc=_fa==_ef||(_f7._offsetParent!=_fa._offsetParent);for(dir in _fa._start){var _fd=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_f7._clientSize.H>0){var _fe=_f7.scrollWidth-_f7._clientSize.H;if(_fe>0){_f7._scroll.H-=_fe;}}if(dojo.isIE&&_f7._offsetParent.tagName=="TABLE"){_f7._start[dir]-=_f7._offsetParent._borderStart[dir];_f7._borderStart[dir]=_f7._borderSize[dir]=0;}if(_f7._clientSize[dir]==0){_f7._renderedSize[dir]=_f7._clientSize[dir]=_f7._child._clientSize[dir];if(rtl&&dir=="H"){_f7._start[dir]-=_f7._renderedSize[dir];}}else{_f7._renderedSize[dir]-=_f7._borderSize[dir]+_f7._scrollBarSize[dir];}_f7._start[dir]+=_f7._borderStart[dir];var _ff=_fa._start[dir]-(_fc?0:_f7._start[dir])-_f7._scroll[dir];var _100=_ff+_fa._renderedSize[dir]-_f7._renderedSize[dir];var _101,_102=(dir=="H")?"scrollLeft":"scrollTop";var _103=(dir=="H"&&rtl);var _104=_103?-_100:_ff;var _105=_103?-_ff:_100;if(_104<=0){_101=_104;}else{if(_105<=0){_101=0;}else{if(_104<_105){_101=_104;}else{_101=_105;}}}var _106=0;if(_101!=0){var _107=_f7[_102];_f7[_102]+=_103?-_101:_101;_106=_f7[_102]-_107;_ff-=_106;_105-=_103?-_106:_106;}_f7._renderedSize[dir]=_fa._renderedSize[dir]+_f7._scrollBarSize[dir]-((_f7._isScrollable[dir]&&_105>0)?_105:0);_f7._start[dir]+=(_ff>=0||!_f7._isScrollable[dir])?_ff:0;}_fa=_f7;}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _10a=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _10d=d.boxModel.replace(/-/,"");var _10e={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_10a,dj_opera8:maj(_10a)==8,dj_opera9:maj(_10a)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_10e["dj_"+_10d]=true;var html=dojo.doc.documentElement;for(var p in _10e){if(_10e[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in _10e){if(_10e[p]){html.className+=" "+p+"-rtl";}}}});})();}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=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_113,node,_115,obj,_117,_118){if(obj!=this._obj){this.stop();this._initialDelay=_118||500;this._subsequentDelay=_117||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_113,_115);this._fireEventAndReload();}},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(node,_11a,_11b,_11c,_11d,_11e){if(_11a.keyCode){_11a.charOrCode=_11a.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_11a.charCode){_11a.charOrCode=String.fromCharCode(_11a.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_11a.charOrCode&&(_11a.ctrlKey===undefined||_11a.ctrlKey==evt.ctrlKey)&&(_11a.altKey===undefined||_11a.altKey==evt.ctrlKey)&&(_11a.shiftKey===undefined||_11a.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_11a,_11b,node,_11c,_11a,_11d,_11e);}else{if(dijit.typematic._obj==_11a){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_11a){dijit.typematic.stop();}})];},addMouseListener:function(node,_122,_123,_124,_125){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_122,node,_123,node,_124,_125);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_122,node,_123,node,_124,_125);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_12c,_12d,_12e,_12f,_130,_131,_132){return this.addKeyListener(_12d,_12e,_12f,_130,_131,_132).concat(this.addMouseListener(_12c,_12f,_130,_131,_132));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.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().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _135=cs.backgroundImage;var _136=(cs.borderTopColor==cs.borderRightColor)||(_135!=null&&(_135=="none"||_135=="url(invalid-url:)"));dojo[_136?"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 _139=this.getWaiRole(elem);if(role){return (_139.indexOf(role)>-1);}else{return (_139.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _13d=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_13d)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_13d+" ").indexOf(" "+role+" ")<0){var _13e=dojo.trim(_13d.replace(this._XhtmlRoles,""));var _13f=dojo.trim(_13d.replace(_13e,""));dojo.attr(elem,"role",_13f+(_13f?" ":"")+role);}}},removeWaiRole:function(elem,role){var _142=dojo.attr(elem,"role");if(!_142){return;}if(role){var _143=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_142+" ").replace(" "+_143+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_146){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_146);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_146):!!elem.getAttribute("aria-"+_146);}},getWaiState:function(elem,_148){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_148);}else{var _149=elem.getAttribute("aria-"+_148);return _149?_149:"";}},setWaiState:function(elem,_14b,_14c){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_14b,_14c);}else{elem.setAttribute("aria-"+_14b,_14c);}},removeWaiState:function(elem,_14e){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_14e);}else{elem.removeAttribute("aria-"+_14e);}}});}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(_14f,_150){if(_14f&&dojo.isFunction(_14f._onConnect)){_14f._onConnect(_150);}});dijit._connectOnUseEventHandler=function(_151){};(function(){var _152={};var _153=function(dc){if(!_152[dc]){var r=[];var _156;var _157=dojo.getObject(dc).prototype;for(var _158 in _157){if(dojo.isFunction(_157[_158])&&(_156=_158.match(/^_set([a-zA-Z]*)Attr$/))&&_156[1]){r.push(_156[1].charAt(0).toLowerCase()+_156[1].substr(1));}}_152[dc]=r;}return _152[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",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")),postscript:function(_159,_15a){this.create(_159,_15a);},create:function(_15b,_15c){this.srcNodeRef=dojo.byId(_15c);this._connects=[];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(_15b){this.params=_15b;dojo.mixin(this,_15b);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();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 _15e=function(attr,_160){if((_160.params&&attr in _160.params)||_160[attr]){_160.attr(attr,_160[attr]);}};for(var attr in this.attributeMap){_15e(attr,this);}dojo.forEach(_153(this.declaredClass),function(a){if(!(a in this.attributeMap)){_15e(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_163){this.destroyDescendants(_163);this.destroy(_163);},destroy:function(_164){this.uninitialize();dojo.forEach(this._connects,function(_165){dojo.forEach(_165,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_164);dijit.registry.remove(this.id);},destroyRendering:function(_167){if(this.bgIframe){this.bgIframe.destroy(_167);delete this.bgIframe;}if(this.domNode){if(!_167){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_167){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_168){dojo.forEach(this.getDescendants(),function(_169){if(_169.destroy){_169.destroy(_168);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_16b){if(_16b in this._deferredConnects){var _16c=this[this._deferredConnects[_16b]||"domNode"];this.connect(_16c,_16b.toLowerCase(),this[_16b]);delete this._deferredConnects[_16b];}},_setClassAttr:function(_16d){var _16e=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_16e,this["class"]);this["class"]=_16d;dojo.addClass(_16e,_16d);},_setStyleAttr:function(_16f){var _170=this[this.attributeMap["style"]||"domNode"];if(_170.style.cssText){_170.style.cssText+="; "+_16f;}else{_170.style.cssText=_16f;}this["style"]=_16f;},setAttribute:function(attr,_172){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_172);},_attrToDom:function(attr,_174){var _175=this.attributeMap[attr];dojo.forEach(dojo.isArray(_175)?_175:[_175],function(_176){var _177=this[_176.node||_176||"domNode"];var type=_176.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_174)){_174=dojo.hitch(this,_174);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_177,attr,_174);break;case "innerHTML":_177.innerHTML=_174;break;case "class":dojo.removeClass(_177,this[attr]);dojo.addClass(_177,_174);break;}},this);this[attr]=_174;},attr:function(name,_17a){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _17d=this._getAttrNames(name);if(args==2){if(this[_17d.s]){return this[_17d.s](_17a)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_17a);}this[name]=_17a;}return this;}else{if(this[_17d.g]){return this[_17d.g]();}else{return this[name];}}},_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(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_183,_184){var d=dojo;var dco=d.hitch(d,"connect",obj);var _187=[];if(_183=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_184);_187.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_187.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_183="onclick";}_187.push(dco(_183,this,_184));this._connects.push(_187);return _187;},disconnect:function(_18c){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_18c){dojo.forEach(_18c,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_18e,_18f){if(_18e["declaredClass"]&&_18e["addChild"]){_18e.addChild(this,_18f);}else{dojo.place(this.domNode,_18e,_18f);}return this;}});})();}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(_199,map,_19b,_19c){_19c=_19c||dojo.global;_19b=(!_19b)?function(v){return v;}:dojo.hitch(_19c,_19b);return _199.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_19e,key,_1a0){var _1a1=dojo.getObject(key,false,map);if(_1a0){_1a1=dojo.getObject(_1a0,false,_19c).call(_19c,_1a1,key);}return _19b(_1a1,key).toString();});};dojo.string.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(_1a4,_1a5){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 _1a6=dojo.date.stamp._isoRegExp.exec(_1a4);var _1a7=null;if(_1a6){_1a6.shift();if(_1a6[1]){_1a6[1]--;}if(_1a6[6]){_1a6[6]*=1000;}if(_1a5){_1a5=new Date(_1a5);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _1a5["get"+prop]();}).forEach(function(_1a9,_1aa){if(_1a6[_1aa]===undefined){_1a6[_1aa]=_1a9;}});}_1a7=new Date(_1a6[0]||1970,_1a6[1]||0,_1a6[2]||1,_1a6[3]||0,_1a6[4]||0,_1a6[5]||0,_1a6[6]||0);var _1ab=0;var _1ac=_1a6[7]&&_1a6[7].charAt(0);if(_1ac!="Z"){_1ab=((_1a6[8]||0)*60)+(Number(_1a6[9])||0);if(_1ac!="-"){_1ab*=-1;}}if(_1ac){_1ab-=_1a7.getTimezoneOffset();}if(_1ab){_1a7.setTime(_1a7.getTime()+_1ab*60000);}}return _1a7;};dojo.date.stamp.toISOString=function(_1ad,_1ae){var _=function(n){return (n<10)?"0"+n:n;};_1ae=_1ae||{};var _1b1=[];var _1b2=_1ae.zulu?"getUTC":"get";var date="";if(_1ae.selector!="time"){var year=_1ad[_1b2+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_1ad[_1b2+"Month"]()+1),_(_1ad[_1b2+"Date"]())].join("-");}_1b1.push(date);if(_1ae.selector!="date"){var time=[_(_1ad[_1b2+"Hours"]()),_(_1ad[_1b2+"Minutes"]()),_(_1ad[_1b2+"Seconds"]())].join(":");var _1b6=_1ad[_1b2+"Milliseconds"]();if(_1ae.milliseconds){time+="."+(_1b6<100?"0":"")+_(_1b6);}if(_1ae.zulu){time+="Z";}else{if(_1ae.selector!="time"){var _1b7=_1ad.getTimezoneOffset();var _1b8=Math.abs(_1b7);time+=(_1b7>0?"-":"+")+_(Math.floor(_1b8/60))+":"+_(_1b8%60);}}_1b1.push(time);}return _1b1.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _1ba=d._scopeName+"Type";var qry="["+_1ba+"]";function val2type(_1bc){if(d.isString(_1bc)){return "string";}if(typeof _1bc=="number"){return "number";}if(typeof _1bc=="boolean"){return "boolean";}if(d.isFunction(_1bc)){return "function";}if(d.isArray(_1bc)){return "array";}if(_1bc instanceof Date){return "date";}if(_1bc instanceof d._Url){return "url";}return "object";};function str2obj(_1bd,type){switch(type){case "string":return _1bd;case "number":return _1bd.length?Number(_1bd):NaN;case "boolean":return typeof _1bd=="boolean"?_1bd:!(_1bd.toLowerCase()=="false");case "function":if(d.isFunction(_1bd)){_1bd=_1bd.toString();_1bd=d.trim(_1bd.substring(_1bd.indexOf("{")+1,_1bd.length-1));}try{if(_1bd.search(/[^\w\.]+/i)!=-1){_1bd=d.parser._nameAnonFunc(new Function(_1bd),this);}return d.getObject(_1bd,false);}catch(e){return new Function();}case "array":return _1bd?_1bd.split(/\s*,\s*/):[];case "date":switch(_1bd){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1bd);}case "url":return d.baseUrl+_1bd;default:return d.fromJson(_1bd);}};var _1bf={};function getClassInfo(_1c0){if(!_1bf[_1c0]){var cls=d.getObject(_1c0);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_1c0+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _1c2=cls.prototype;var _1c3={};for(var name in _1c2){if(name.charAt(0)=="_"){continue;}var _1c5=_1c2[name];_1c3[name]=val2type(_1c5);}_1bf[_1c0]={cls:cls,params:_1c3};}return _1bf[_1c0];};this._functionFromScript=function(_1c6){var _1c7="";var _1c8="";var _1c9=_1c6.getAttribute("args");if(_1c9){d.forEach(_1c9.split(/\s*,\s*/),function(part,idx){_1c7+="var "+part+" = arguments["+idx+"]; ";});}var _1cc=_1c6.getAttribute("with");if(_1cc&&_1cc.length){d.forEach(_1cc.split(/\s*,\s*/),function(part){_1c7+="with("+part+"){";_1c8+="}";});}return new Function(_1c7+_1c6.innerHTML+_1c8);};this.instantiate=function(_1ce){var _1cf=[];d.forEach(_1ce,function(node){if(!node){return;}var type=node.getAttribute(_1ba);if((!type)||(!type.length)){return;}var _1d2=getClassInfo(type);var _1d3=_1d2.cls;var ps=_1d3._noScript||_1d3.prototype._noScript;var _1d5={};var _1d6=node.attributes;for(var name in _1d2.params){var item=_1d6.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _1d9=item.value;switch(name){case "class":_1d9=node.className;break;case "style":_1d9=node.style&&node.style.cssText;}var _1da=_1d2.params[name];_1d5[name]=str2obj(_1d9,_1da);}if(!ps){var _1db=[],_1dc=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_1dd){var _1de=_1dd.getAttribute("event"),type=_1dd.getAttribute("type"),nf=d.parser._functionFromScript(_1dd);if(_1de){if(type=="dojo/connect"){_1db.push({event:_1de,func:nf});}else{_1d5[_1de]=nf;}}else{_1dc.push(nf);}});}var _1e0=_1d3["markupFactory"];if(!_1e0&&_1d3["prototype"]){_1e0=_1d3.prototype["markupFactory"];}var _1e1=_1e0?_1e0(_1d5,node,_1d3):new _1d3(_1d5,node);_1cf.push(_1e1);var _1e2=node.getAttribute("jsId");if(_1e2){d.setObject(_1e2,_1e1);}if(!ps){d.forEach(_1db,function(_1e3){d.connect(_1e1,_1e3.event,null,_1e3.func);});d.forEach(_1dc,function(func){func.call(_1e1);});}});d.forEach(_1cf,function(_1e5){if(_1e5&&_1e5.startup&&!_1e5._started&&(!_1e5.getParent||!_1e5.getParent())){_1e5.startup();}});return _1cf;};this.parse=function(_1e6){var list=d.query(qry,_1e6);var _1e8=this.instantiate(list);return _1e8;};}();(function(){var _1e9=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_1e9);}else{dojo._loaders.unshift(_1e9);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_1ea,_1eb){var jpn="$joinpoint";var nso=(_1eb||dojo.parser._anon);if(dojo.isIE){var cn=_1ea["__dojoNameCache"];if(cn&&nso[cn]===_1ea){return _1ea["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_1ea;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _1f1=this.declaredClass,_1f2=this;return dojo.string.substitute(tmpl,this,function(_1f3,key){if(key.charAt(0)=="!"){_1f3=_1f2[key.substr(1)];}if(typeof _1f3=="undefined"){throw new Error(_1f1+" template:"+key);}if(_1f3==null){return "";}return key.charAt(0)=="!"?_1f3:_1f3.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1f5=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1f5)){node=dijit._Templated._createNodesFromText(this._stringRepl(_1f5))[0];}else{node=_1f5.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _1f7=this.srcNodeRef;if(_1f7&&_1f7.parentNode){_1f7.parentNode.replaceChild(node,_1f7);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_1f7);},_fillContent:function(_1fb){var dest=this.containerNode;if(_1fb&&dest){while(_1fb.hasChildNodes()){dest.appendChild(_1fb.firstChild);}}},_attachTemplateNodes:function(_1fd,_1fe){_1fe=_1fe||function(n,p){return n.getAttribute(p);};var _201=dojo.isArray(_1fd)?_1fd:(_1fd.all||_1fd.getElementsByTagName("*"));var x=dojo.isArray(_1fd)?0:-1;var _203={};for(;x<_201.length;x++){var _204=(x==-1)?_1fd:_201[x];if(this.widgetsInTemplate&&_1fe(_204,"dojoType")){continue;}var _205=_1fe(_204,"dojoAttachPoint");if(_205){var _206,_207=_205.split(/\s*,\s*/);while((_206=_207.shift())){if(dojo.isArray(this[_206])){this[_206].push(_204);}else{this[_206]=_204;}}}var _208=_1fe(_204,"dojoAttachEvent");if(_208){var _209,_20a=_208.split(/\s*,\s*/);var trim=dojo.trim;while((_209=_20a.shift())){if(_209){var _20c=null;if(_209.indexOf(":")!=-1){var _20d=_209.split(":");_209=trim(_20d[0]);_20c=trim(_20d[1]);}else{_209=trim(_209);}if(!_20c){_20c=_209;}this.connect(_204,_209,_20c);}}}var role=_1fe(_204,"waiRole");if(role){dijit.setWaiRole(_204,role);}var _20f=_1fe(_204,"waiState");if(_20f){dojo.forEach(_20f.split(/\s*,\s*/),function(_210){if(_210.indexOf("-")!=-1){var pair=_210.split("-");dijit.setWaiState(_204,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_212,_213,_214){var _215=dijit._Templated._templateCache;var key=_213||_212;var _217=_215[key];if(_217){if(!_217.ownerDocument||_217.ownerDocument==dojo.doc){return _217;}dojo._destroyElement(_217);}if(!_213){_213=dijit._Templated._sanitizeTemplateString(dojo._getText(_212));}_213=dojo.string.trim(_213);if(_214||_213.match(/\$\{([^\}]+)\}/g)){return (_215[key]=_213);}else{return (_215[key]=dijit._Templated._createNodesFromText(_213)[0]);}};dijit._Templated._sanitizeTemplateString=function(_218){if(_218){_218=_218.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _219=_218.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_219){_218=_219[1];}}else{_218="";}return _218;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _21a=dijit._Templated._templateCache;for(var key in _21a){var _21c=_21a[key];if(!isNaN(_21c.nodeType)){dojo._destroyElement(_21c);}delete _21a[key];}});}(function(){var _21d={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _220="none";var _221=text.replace(/^\s+/,"");for(var type in _21d){var map=_21d[type];if(map.re.test(_221)){_220=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_220];var _225=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _226=[];while(_225.firstChild){_226.push(_225.removeChild(_225.firstChild));}tn.innerHTML="";return _226;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _227={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _22a=function(_22b){this._index=-1;this._animations=_22b||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_22a,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_22d,_22e){if(!this._current){this._current=this._animations[this._index=0];}if(!_22e&&this._current.status()=="playing"){return this;}var _22f=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_230=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_232=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_22f);dojo.disconnect(_230);dojo.disconnect(_232);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_236,_237){this.pause();var _238=this.duration*_236;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_238){this._current=a;return true;}_238-=a.duration;return false;});if(this._current){this._current.gotoPercent(_238/this._current.duration,_237);}return this;},stop:function(_23a){if(this._current){if(_23a){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_22a,_227);dojo.fx.chain=function(_23d){return new _22a(_23d);};var _23e=function(_23f){this._animations=_23f||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_23f,function(a){var _241=a.duration;if(a.delay){_241+=a.delay;}if(this.duration<_241){this.duration=_241;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_23e,{_doAction:function(_243,args){dojo.forEach(this._animations,function(a){a[_243].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_246,args){var t=this._pseudoAnimation;t[_246].apply(t,args);},play:function(_249,_24a){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_24b,_24c){var ms=this.duration*_24b;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_24c);});this._call("gotoPercent",arguments);return this;},stop:function(_24f){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_23e,_227);dojo.fx.combine=function(_250){return new _23e(_250);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_253){return this.showAnim.play(_253||0);},hide:function(_254){return this.hideAnim.play(_254||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style,o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _25a=dojo.style(node,"height");return Math.max(_25a,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _26c=dijit.byId(id);return _26c.isContainer?_26c:null;}}return null;},_getSibling:function(_26d){var node=this.domNode;do{node=node[_26d+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_271,_272){var _273=this.containerNode;if(_272&&typeof _272=="number"){var _274=dojo.query("> [widgetId]",_273);if(_274&&_274.length>=_272){_273=_274[_272-1];_272="after";}}dojo.place(_271.domNode,_273,_272);if(this._started&&!_271._started){_271.startup();}},removeChild:function(_275){if(typeof _275=="number"&&_275>0){_275=this.getChildren()[_275];}if(!_275||!_275.domNode){return;}var node=_275.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_279){dojo.forEach(this.getChildren(),function(_27a){_27a.destroyRecursive(_279);});},_getSiblingOfChild:function(_27b,dir){var node=_27b.domNode;var _27e=(dir>0?"nextSibling":"previousSibling");do{node=node[_27e];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_27f){var _280=this.getChildren();for(var i=0,c;c=_280[i];i++){if(c==_27f){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_283,_284){var _285=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_283,function(code){_285[code]=prev;});dojo.forEach(_284,function(code){_285[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_28a,_28b){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_28a);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _28c=this._getNextFocusableChild(this.focusedChild,1);if(_28c.getFocalNodes){this.focusChild(_28c,_28c.getFocalNodes()[0]);}else{this.focusChild(_28c);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _28d=this._getNextFocusableChild(this.focusedChild,-1);if(_28d.getFocalNodes){var _28e=_28d.getFocalNodes();this.focusChild(_28d,_28e[_28e.length-1]);}else{this.focusChild(_28d);}},focusChild:function(_28f,node){if(_28f){if(this.focusedChild&&_28f!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_28f;if(node&&_28f.focusFocalNode){_28f.focusFocalNode(node);}else{_28f.focus();}}},_startupChild:function(_291){if(_291.getFocalNodes){dojo.forEach(_291.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_291.focusNode||_291.domNode;if(_291.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _299=dijit.getEnclosingWidget(evt.target);if(_299&&_299.isFocusable()){this.focusedChild=_299;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_29b){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_29c,dir){if(_29c){_29c=this._getSiblingOfChild(_29c,dir);}var _29e=this.getChildren();for(var i=0;i<_29e.length;i++){if(!_29c){_29c=_29e[(dir>0)?0:(_29e.length-1)];}if(_29c.isFocusable()){return _29c;}_29c=this._getSiblingOfChild(_29c,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2a0){_2a0.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_2a1,_2a2){var node=this.domNode;if(_2a1){dojo.marginBox(node,_2a1);if(_2a1.t){node.style.top=_2a1.t+"px";}if(_2a1.l){node.style.left=_2a1.l+"px";}}var mb=_2a2||{};dojo.mixin(mb,_2a1||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_2aa){if(_2aa.baseClass){dojo.addClass(_2aa.domNode,this.baseClass+"-"+_2aa.baseClass);}},addChild:function(_2ab,_2ac){this.inherited(arguments);if(this._started){this._setupChild(_2ab);}},removeChild:function(_2ad){if(_2ad.baseClass){dojo.removeClass(_2ad.domNode,this.baseClass+"-"+_2ad.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _2b3=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_2b6,dim){_2b6.resize?_2b6.resize(dim):dojo.marginBox(_2b6.domNode,dim);dojo.mixin(_2b6,dojo.marginBox(_2b6.domNode));dojo.mixin(_2b6,dim);};dijit.layout.layoutChildren=function(_2b8,dim,_2ba){dim=dojo.mixin({},dim);dojo.addClass(_2b8,"dijitLayoutContainer");_2ba=dojo.filter(_2ba,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_2ba,function(item){return item.layoutAlign=="client";}));dojo.forEach(_2ba,function(_2bd){var elm=_2bd.domNode,pos=_2bd.layoutAlign;var _2c0=elm.style;_2c0.left=dim.l+"px";_2c0.top=dim.t+"px";_2c0.bottom=_2c0.right="auto";dojo.addClass(elm,"dijitAlign"+_2b3(pos));if(pos=="top"||pos=="bottom"){size(_2bd,{w:dim.w});dim.h-=_2bd.h;if(pos=="top"){dim.t+=_2bd.h;}else{_2c0.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_2bd,{h:dim.h});dim.w-=_2bd.w;if(pos=="left"){dim.l+=_2bd.w;}else{_2c0.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_2bd,dim);}}}});};})();}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_2c1){this.disabled=_2c1;dojo.attr(this.focusNode,"disabled",_2c1);dijit.setWaiState(this.focusNode,"disabled",_2c1);if(_2c1){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_2c2){dojo.deprecated("setDisabled("+_2c2+") is deprecated. Use attr('disabled',"+_2c2+") instead.","","2.0");this.attr("disabled",_2c2);},_scroll:true,_onFocus:function(e){if(this._scroll){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_2c4){var _2c5=_2c4.currentTarget;if(_2c5&&_2c5.getAttribute){this.stateModifier=_2c5.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_2c4.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _2c6=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_2c6);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _2c7=this.baseClass.split(" ");function multiply(_2c8){_2c7=_2c7.concat(dojo.map(_2c7,function(c){return c+_2c8;}),"dijit"+_2c8);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_2cb={};dojo.forEach(tn.className.split(" "),function(c){_2cb[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _2cb[c];});}dojo.forEach(_2c7,function(c){_2cb[c]=true;});var _2cf=[];for(var c in _2cb){_2cf.push(c);}tn.className=_2cf.join(" ");this._stateClasses=_2c7;},compare:function(val1,val2){if((typeof val1=="number")&&(typeof val2=="number")){return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_2d3){},_onChangeActive:false,_handleOnChange:function(_2d4,_2d5){this._lastValue=_2d4;if(this._lastValueReported==undefined&&(_2d5===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_2d4;}if((this.intermediateChanges||_2d5||_2d5===undefined)&&((typeof _2d4!=typeof this._lastValueReported)||this.compare(_2d4,this._lastValueReported)!=0)){this._lastValueReported=_2d4;if(this._onChangeActive){this.onChange(_2d4);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_2d6){dojo.deprecated("dijit.form._FormWidget:setValue("+_2d6+") is deprecated.  Use attr('value',"+_2d6+") instead.","","2.0");this.attr("value",_2d6);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){if(dojo.isIE||dojo.isSafari){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_2d9,_2da){this.value=_2d9;this._handleOnChange(_2d9,_2da);},_getValueAttr:function(_2db){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_valueChanged:function(){var v=this.attr("value");var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(dojo.isSafari){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}},_onKeyPress:function(e){if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){this.undo();dojo.stopEvent(e);return false;}else{if(this.intermediateChanges){var _2e1=this;setTimeout(function(){_2e1._handleOnChange(_2e1.attr("value"),false);},0);}}return true;}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\tname=\"${name}\" type=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _2e5=dijit.byNode(node);if(_2e5&&typeof _2e5._onSubmit=="function"){_2e5._onSubmit(e);break;}}}}},_fillContent:function(_2e6){if(_2e6&&!("label" in this.params)){this.attr("label",_2e6.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_2e9){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_2e9);},_setLabelAttr:function(_2ea){this.containerNode.innerHTML=this.label=_2ea;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\ttype=\"${type}\" name=\"${name}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){if(this.srcNodeRef){var _2eb=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_2eb[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _2ec=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_2ec);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _2ef=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_2ef||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _2f3=this.dropDown;if(!_2f3){return;}if(!this._opened){if(_2f3.href&&!_2f3.isLoaded){var self=this;var _2f5=dojo.connect(_2f3,"onLoad",function(){dojo.disconnect(_2f5);self._openDropDown();});_2f3._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _2f6=this.dropDown;var _2f7=_2f6.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_2f6,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_2f6.domNode.style.width=_2f7;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_2f6.domNode.offsetWidth){var _2f9=null;if(!this.isLeftToRight()){_2f9=_2f6.domNode.parentNode;var _2fa=_2f9.offsetLeft+_2f9.offsetWidth;}dojo.marginBox(_2f6.domNode,{w:this.domNode.offsetWidth});if(_2f9){_2f9.style.left=_2fa-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_2f6.focus){_2f6.focus();}},_closeDropDown:function(_2fb){if(this._opened){dijit.popup.close(this.dropDown);if(_2fb){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",name:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_303){this.checked=_303;dojo.attr(this.focusNode||this.domNode,"checked",_303);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_303);this._setStateClass();this._handleOnChange(_303,true);},setChecked:function(_304){dojo.deprecated("setChecked("+_304+") is deprecated. Use attr('checked',"+_304+") instead.","","2.0");this.attr("checked",_304);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_305){_305.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_306){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_30f){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_30f))||dijit.Menu._iframeContentDocument(_30f)["__parent__"]||(_30f.name&&dojo.doc.frames[_30f.name])||null;return win;},_iframeContentDocument:function(_311){var doc=_311.contentDocument||(_311.contentWindow&&_311.contentWindow.document)||(_311.name&&dojo.doc.frames[_311.name]&&dojo.doc.frames[_311.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_316){var node=dojo.byId(_316);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _320=dojo.coords(e.target,true);x=_320.x+10;y=_320.y+10;}var self=this;var _322=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_322);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _324=this.focusedChild;var _325=_324.popup;if(_325.isShowingNow){return;}_325.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_325,around:_324.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_325);_324.focus();self.currentPopup=null;}});this.currentPopup=_325;if(_325.focus){_325.focus();}},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_327){if(_327&&!("label" in this.params)){this.attr("label",_327.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.focusNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_32a){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_32a);},setDisabled:function(_32b){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_32b);},_setDisabledAttr:function(_32c){this.disabled=_32c;dojo[_32c?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_32c?"true":"false");}});dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _32d=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_32d[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";dojo.style(this.arrowWrapper,"display","");dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_32f){dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_32f);dijit.setWaiState(this.domNode,"checked",_32f);this.checked=_32f;},onChange:function(_330){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_332,_333,_334){_334=dojo.i18n.normalizeLocale(_334);var _335=_334.split("-");var _336=[_332,"nls",_333].join(".");var _337=dojo._loadedModules[_336];if(_337){var _338;for(var i=_335.length;i>0;i--){var loc=_335.slice(0,i).join("_");if(_337[loc]){_338=_337[loc];break;}}if(!_338){_338=_337.ROOT;}if(_338){var _33b=function(){};_33b.prototype=_338;return new _33b();}}throw new Error("Bundle not found: "+_333+" in "+_332+" , locale="+_334);};dojo.i18n.normalizeLocale=function(_33c){var _33d=_33c?_33c.toLowerCase():dojo.locale;if(_33d=="root"){_33d="ROOT";}return _33d;};dojo.i18n._requireLocalization=function(_33e,_33f,_340,_341){var _342=dojo.i18n.normalizeLocale(_340);var _343=[_33e,"nls",_33f].join(".");var _344="";if(_341){var _345=_341.split(",");for(var i=0;i<_345.length;i++){if(_342["indexOf"](_345[i])==0){if(_345[i].length>_344.length){_344=_345[i];}}}if(!_344){_344="ROOT";}}var _347=_341?_344:_342;var _348=dojo._loadedModules[_343];var _349=null;if(_348){if(dojo.config.localizationComplete&&_348._built){return;}var _34a=_347.replace(/-/g,"_");var _34b=_343+"."+_34a;_349=dojo._loadedModules[_34b];}if(!_349){_348=dojo["provide"](_343);var syms=dojo._getModuleSymbols(_33e);var _34d=syms.concat("nls").join("/");var _34e;dojo.i18n._searchLocalePath(_347,_341,function(loc){var _350=loc.replace(/-/g,"_");var _351=_343+"."+_350;var _352=false;if(!dojo._loadedModules[_351]){dojo["provide"](_351);var _353=[_34d];if(loc!="ROOT"){_353.push(loc);}_353.push(_33f);var _354=_353.join("/")+".js";_352=dojo._loadPath(_354,null,function(hash){var _356=function(){};_356.prototype=_34e;_348[_350]=new _356();for(var j in hash){_348[_350][j]=hash[j];}});}else{_352=true;}if(_352&&_348[_350]){_34e=_348[_350];}else{_348[_350]=_34e;}if(_341){return true;}});}if(_341&&_342!=_344){_348[_342.replace(/-/g,"_")]=_348[_344.replace(/-/g,"_")];}};(function(){var _358=dojo.config.extraLocale;if(_358){if(!_358 instanceof Array){_358=[_358];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_35c,_35d){req(m,b,_35c,_35d);if(_35c){return;}for(var i=0;i<_358.length;i++){req(m,b,_358[i],_35d);}};}})();dojo.i18n._searchLocalePath=function(_35f,down,_361){_35f=dojo.i18n.normalizeLocale(_35f);var _362=_35f.split("-");var _363=[];for(var i=_362.length;i>0;i--){_363.push(_362.slice(0,i).join("-"));}_363.push(false);if(down){_363.reverse();}for(var j=_363.length-1;j>=0;j--){var loc=_363[j]||"ROOT";var stop=_361(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_368,_369){function preload(_36a){_36a=dojo.i18n.normalizeLocale(_36a);dojo.i18n._searchLocalePath(_36a,true,function(loc){for(var i=0;i<_369.length;i++){if(_369[i]==loc){dojo["require"](_368+"_"+loc);return true;}}return false;});};preload();var _36d=dojo.config.extraLocale||[];for(var i=0;i<_36d.length;i++){preload(_36d[i]);}};}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _36f=this.getChildren();dojo.forEach(_36f,this._setupChild,this);dojo.some(_36f,function(_370){if(_370.selected){this.selectedChildWidget=_370;}return _370.selected;},this);var _371=this.selectedChildWidget;if(!_371&&_36f[0]){_371=this.selectedChildWidget=_36f[0];_371.selected=true;}if(_371){this._showChild(_371);}dojo.publish(this.id+"-startup",[{children:_36f,selected:_371}]);this.inherited(arguments);},_setupChild:function(_372){this.inherited(arguments);_372.domNode.style.display="none";_372.domNode.style.position="relative";_372.domNode.title="";return _372;},addChild:function(_373,_374){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_373,_374]);this.layout();if(!this.selectedChildWidget){this.selectChild(_373);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _376=this.getChildren();if(_376.length){this.selectChild(_376[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_378,_379){if(_379){this._hideChild(_379);}this._showChild(_378);if(this.doLayout&&_378.resize){_378.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_37a){var _37b=this.getChildren();var _37c=dojo.indexOf(_37b,this.selectedChildWidget);_37c+=_37a?1:_37b.length-1;return _37b[_37c%_37b.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _37f=this.getChildren();page.isFirstChild=(page==_37f[0]);page.isLastChild=(page==_37f[_37f.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _382=page.onClose(this,page);if(_382){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_386){var _387=dojo.doc.createElement("span");this.domNode.appendChild(_387);var cls=dojo.getObject(this.buttonWidget);var _389=new cls({label:page.title,closeButton:page.closable},_387);this.addChild(_389,_386);this.pane2button[page]=_389;page.controlButton=_389;var _38a=[];_38a.push(dojo.connect(_389,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_38a.push(dojo.connect(_389,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _38b=dojo.i18n.getLocalization("dijit","common");var _38c=new dijit.Menu({targetNodeIds:[_389.id],id:_389.id+"_Menu"});var _38d=new dijit.MenuItem({label:_38b.itemClose});_38a.push(dojo.connect(_38d,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_38c.addChild(_38d);this.pane2menu[page]=_38c;}this.pane2handles[page]=_38a;if(!this._currentChild){_389.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page],dojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _390=this.pane2button[page];if(_390){_390.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _392=this.pane2button[this._currentChild];_392.attr("checked",false);_392.focusNode.setAttribute("tabIndex","-1");}var _393=this.pane2button[page];_393.attr("checked",true);this._currentChild=page;_393.focusNode.setAttribute("tabIndex","0");var _394=dijit.byId(this.containerId);dijit.setWaiState(_394.containerNode,"labelledby",_393.id);},onButtonClick:function(page){var _396=dijit.byId(this.containerId);_396.selectChild(page);},onCloseButtonClick:function(page){var _398=dijit.byId(this.containerId);_398.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_39a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_39a=!_39a;}var _39b=this.getChildren();var _39c=dojo.indexOf(_39b,this.pane2button[this._currentChild]);var _39d=_39a?1:_39b.length-1;return _39b[(_39c+_39d)%_39b.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _39f=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_39f=false;}break;case k.PAGE_UP:if(e.ctrlKey){_39f=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_39f=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_39f=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_39f!==null){this.adjacent(_39f).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _3a5=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=function(node){while(node.firstChild){dojo._destroyElement(node.firstChild);}};dojo.html._setNodeContent=function(node,cont,_3aa){if(_3aa){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_3b2,node){dojo.mixin(this,_3b2||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_3a5++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_3b5){if(undefined!==cont){this.content=cont;}if(_3b5){this._mixin(_3b5);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _3b7=this.onContentError(e);try{node.innerHTML=_3b7;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _3ba=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_3ba){cont=_3ba[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_3bc){var _3bd={},key;for(key in _3bc){if(key in _3bd){continue;}this[key]=_3bc[key];}},_parse:function(){var _3bf=this.node;try{this.parseResults=dojo.parser.parse(_3bf,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_3c2){var _3c3=this["on"+type+"Error"].call(this,err);if(_3c2){console.error(_3c2,err);}else{if(_3c3){dojo.html._setNodeContent(this.node,_3c3,true);}}}});dojo.html.set=function(node,cont,_3c6){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_3c6){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_3c6,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){this.inherited(arguments);var _3c8=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_3c8);this.errorMessage=dojo.string.substitute(this.errorMessage,_3c8);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _3c9=dojo.query(">",this.containerNode),_3ca=_3c9.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_3cc=dojo.filter(_3ca.map(dijit.byNode),function(_3cd){return _3cd&&_3cd.domNode&&_3cd.resize;});if(_3c9.length==_3ca.length&&_3cc.length==1){this.isContainer=true;this._singleChild=_3cc[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.href=href;if(this._created){return this._prepareLoad();}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){if(!this._isDownloaded){this.href="";}this._setContent(data||"");this._isDownloaded=false;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}this._onLoadHandler(data);},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroyRecursive:function(_3d3){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_3d8){this.cancel();this.isLoaded=false;this._loadCheck(_3d8);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_3da){var _3db=this._isShown();if(this.href&&(_3da||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_3db&&!this._xhrDfd)||(!this.isLoaded&&_3db&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _3dd={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_3dd,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_3dd);hand.addCallback(function(html){try{self._isDownloaded=true;self.attr("content",html);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},destroyDescendants:function(){if(this._isRealContent){this._onUnloadHandler();}var _3e2=this._contentSetter;if(_3e2){_3e2.empty();}else{this.inherited(arguments);dojo.html._emptyNode(this.containerNode);}},_setContent:function(cont,_3e4){this.cancel();this.destroyDescendants();this._isRealContent=!_3e4;var _3e5=this._contentSetter;if(!(_3e5&&_3e5 instanceof dojo.html._ContentSetter)){_3e5=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _3e7=this.onContentError(e);try{this.containerNode.innerHTML=_3e7;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _3e8=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_3e5,_3e8);_3e5.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;},_onError:function(type,err,_3eb){var _3ec=this["on"+type+"Error"].call(this,err);if(_3eb){console.error(_3eb,err);}else{if(_3ec){this._setContent(_3ec,true);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_3ee){},onDownloadError:function(_3ef){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.layout.AccordionContainer"]){dojo._hasResource["dijit.layout.AccordionContainer"]=true;dojo.provide("dijit.layout.AccordionContainer");dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:dijit.defaultDuration,_verticalSpace:0,baseClass:"dijitAccordionContainer",postCreate:function(){this.domNode.style.overflow="hidden";this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.selectedChildWidget){var _3f0=this.selectedChildWidget.containerNode.style;_3f0.display="";_3f0.overflow="auto";this.selectedChildWidget._setSelectedState(true);}},_getTargetHeight:function(node){var cs=dojo.getComputedStyle(node);return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);},layout:function(){var _3f3=0;var _3f4=this.selectedChildWidget;dojo.forEach(this.getChildren(),function(_3f5){_3f3+=_3f5.getTitleHeight();});var _3f6=this._contentBox;this._verticalSpace=_3f6.h-_3f3;if(_3f4){_3f4.containerNode.style.height=this._getTargetHeight(_3f4.containerNode)+"px";}},_setupChild:function(page){return page;},_transition:function(_3f8,_3f9){if(this._inTransition){return;}this._inTransition=true;var _3fa=[];var _3fb=this._verticalSpace;if(_3f8){_3f8.setSelected(true);var _3fc=_3f8.containerNode;_3fc.style.display="";_3fb=this._getTargetHeight(_3f8.containerNode);_3fa.push(dojo.animateProperty({node:_3fc,duration:this.duration,properties:{height:{start:1,end:_3fb}},onEnd:function(){_3fc.style.overflow="auto";}}));}if(_3f9){_3f9.setSelected(false);var _3fd=_3f9.containerNode;_3fd.style.overflow="hidden";_3fb=this._getTargetHeight(_3f9.containerNode);_3fa.push(dojo.animateProperty({node:_3fd,duration:this.duration,properties:{height:{start:_3fb,end:"1"}},onEnd:function(){_3fd.style.display="none";}}));}this._inTransition=false;dojo.fx.combine(_3fa).play();},_onKeyPress:function(e){if(this.disabled||e.altKey||!(e._dijitWidget||e.ctrlKey)){return;}var k=dojo.keys;var _400=e._dijitWidget;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(_400){this._adjacent(false)._onTitleClick();dojo.stopEvent(e);}break;case k.PAGE_UP:if(e.ctrlKey){this._adjacent(false)._onTitleClick();dojo.stopEvent(e);}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(_400){this._adjacent(true)._onTitleClick();dojo.stopEvent(e);}break;case k.PAGE_DOWN:if(e.ctrlKey){this._adjacent(true)._onTitleClick();dojo.stopEvent(e);}break;default:if(e.ctrlKey&&e.charOrCode===k.TAB){this._adjacent(e._dijitWidget,!e.shiftKey)._onTitleClick();dojo.stopEvent(e);}}}});dojo.declare("dijit.layout.AccordionPane",[dijit.layout.ContentPane,dijit._Templated,dijit._Contained],{templateString:"<div waiRole=\"presentation\"\n\t><div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\" waiState=\"expanded-false\"\n\t\t><span class='dijitInline dijitAccordionArrow' waiRole=\"presentation\"></span\n\t\t><span class='arrowTextUp' waiRole=\"presentation\">+</span\n\t\t><span class='arrowTextDown' waiRole=\"presentation\">-</span\n\t\t><span waiRole=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span></div\n\t><div waiRole=\"presentation\"><div dojoAttachPoint='containerNode' style='overflow: hidden; height: 1px; display: none'\n\t\tclass='dijitAccordionBody' wairole=\"tabpanel\"\n\t></div></div>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleTextNode",type:"innerHTML"}}),baseClass:"dijitAccordionPane",postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.titleNode,false);this.setSelected(this.selected);dojo.attr(this.titleTextNode,"id",this.domNode.id+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _401=this.getParent();if(!_401._inTransition){_401.selectChild(this);dijit.focus(this.focusNode);}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleKeyPress:function(evt){evt._dijitWidget=this;return this.getParent()._onKeyPress(evt);},_setSelectedState:function(_403){this.selected=_403;dojo[(_403?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_403);this.focusNode.setAttribute("tabIndex",_403?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_405){this._setSelectedState(_405);if(_405){this.onSelected();this._loadCheck();}},onSelected:function(){}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isSafari||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _41d=n.scrollLeft,_41e=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_41d!=n.scrollLeft||_41e!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_424=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_424];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isSafari&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_433){this.node=dojo.byId(node);if(!_433){_433={};}this.handle=_433.handle?dojo.byId(_433.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_433.delay>0?_433.delay:0;this.skip=_433.skip;this.mover=_433.mover?_433.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_434,node){return new dojo.dnd.Moveable(node,_434);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_43c){dojo.publish("/dnd/move/start",[_43c]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_43d){dojo.publish("/dnd/move/stop",[_43d]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_43e){},onMove:function(_43f,_440){this.onMoving(_43f,_440);var s=_43f.node.style;s.left=_440.l+"px";s.top=_440.t+"px";this.onMoved(_43f,_440);},onMoving:function(_442,_443){},onMoved:function(_444,_445){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_446,node){return new dojo.dnd.move.constrainedMoveable(node,_446);},constructor:function(node,_449){if(!_449){_449={};}this.constraints=_449.constraints;this.within=_449.within;},onFirstMove:function(_44a){var c=this.constraintBox=this.constraints.call(this,_44a);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_44a.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_44d,_44e){var c=this.constraintBox,s=_44d.node.style;s.left=(_44e.l<c.l?c.l:c.r<_44e.l?c.r:_44e.l)+"px";s.top=(_44e.t<c.t?c.t:c.b<_44e.t?c.b:_44e.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_451,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_451);},constructor:function(node,_454){var box=_454&&_454.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_456,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_456);},constructor:function(node,_459){var area=_459&&_459.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_460){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _461=function(node,e,_464){dojo.dnd.Mover.call(this,node,e,_464);};dojo.extend(_461,dojo.dnd.Mover.prototype);dojo.extend(_461,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_460){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _461;};dojo.dnd.move.boxConstrainedMover=function(box,_46d){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_46d);};dojo.dnd.move.parentConstrainedMover=function(area,_46f){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_46f);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _475=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_477){if(!_477){_477={};}if(_477.timeout&&typeof _477.timeout=="number"&&_477.timeout>=0){this.timeout=_477.timeout;}},markupFactory:function(_478,node){return new dojo.dnd.TimedMoveable(node,_478);},onMoveStop:function(_47a){if(_47a._timer){clearTimeout(_47a._timer);_475.call(this,_47a,_47a._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_47b,_47c){_47b._leftTop=_47c;if(!_47b._timer){var _t=this;_47b._timer=setTimeout(function(){_47b._timer=null;_475.call(_t,_47b,_47b._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_47e){if(_47e.reset){_47e.reset();}});},validate:function(){var _47f=false;return dojo.every(dojo.map(this.getDescendants(),function(_480){_480._hasBeenBlurred=true;var _481=_480.disabled||!_480.validate||_480.validate();if(!_481&&!_47f){dijit.scrollIntoView(_480.containerNode||_480.domNode);_480.focus();_47f=true;}return _481;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_486){if(!_486.name){return;}var _487=map[_486.name]||(map[_486.name]=[]);_487.push(_486);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _489=map[name],_48a=dojo.getObject(name,false,obj);if(_48a===undefined){continue;}if(!dojo.isArray(_48a)){_48a=[_48a];}if(typeof _489[0].checked=="boolean"){dojo.forEach(_489,function(w,i){w.attr("value",dojo.indexOf(_48a,w.value)!=-1);});}else{if(_489[0]._multiValue){_489[0].attr("value",_48a);}else{dojo.forEach(_489,function(w,i){w.attr("value",_48a[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_490){var name=_490.name;if(!name||_490.disabled){return;}var _492=_490.attr("value");if(typeof _490.checked=="boolean"){if(/Radio/.test(_490.declaredClass)){if(_492!==false){dojo.setObject(name,_492,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_492!==false){ary.push(_492);}}}else{dojo.setObject(name,_492,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_494){var _495=_494.disabled||!_494.isValid||_494.isValid();if(!_495){this._invalidWidgets.push(_494);}return _495;},this);},onValidStateChange:function(_496){},_widgetChange:function(_497){var _498=this._lastValidState;if(!_497||this._lastValidState===undefined){_498=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_498;}}else{if(_497.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_497);},this);if(!_497.isValid()&&!_497.attr("disabled")){this._invalidWidgets.push(_497);}_498=(this._invalidWidgets.length===0);}}if(_498!==this._lastValidState){this._lastValidState=_498;this.onValidStateChange(_498);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _49a=this;var _49b=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_49d){_49b.push(_49a.connect(_49d,"validate",dojo.hitch(_49a,"_widgetChange",_49d)));_49b.push(_49a.connect(_49d,"_setDisabledAttr",dojo.hitch(_49a,"_widgetChange",_49d)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_49e){},onExecute:function(){},_setEncTypeAttr:function(_49f){this.encType=_49f;dojo.attr(this.domNode,"encType",_49f);if(dojo.isIE){this.domNode.encoding=_49f;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _4a7=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_4a7.t+"px";os.left=_4a7.l+"px";is.width=_4a7.w+"px";is.height=_4a7.h+"px";var _4aa=dijit.getViewport();if(_4a7.w!=_4aa.w){is.width=_4aa.w+"px";}if(_4a7.h!=_4aa.h){is.height=_4aa.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_4ab){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_4ac){var _4ad=dijit._getTabNavigable(dojo.byId(_4ac));this._firstFocusItem=_4ad.lowest||_4ad.first||_4ac;this._lastFocusItem=_4ad.last||_4ad.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_4ac,"tabindex","0");this._firstFocusItem=_4ac;}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){var _4ae=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_4ae);this.inherited(arguments);},postCreate:function(){var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var _4b5=this._underlay;this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,onBegin:dojo.hitch(_4b5,"show")});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";_4b5.hide();}});},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _4b7=dijit.getViewport();if(mb.w>=_4b7.w||mb.h>=_4b7.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_4b7.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_4b7.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _4b9=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_4b9.l+(p?p.l:(_4b9.w-mb.w)/2))+"px",top:Math.floor(_4b9.t+(p?p.t:(_4b9.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _4bf=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_4bf){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_4bf){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});this.open=true;this._loadCheck();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);if(this.autofocus){this._getFocusItems(this.domNode);setTimeout(dojo.hitch(dijit,"focus",this._firstFocusItem),50);}},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_4c1,_4c2){this.domNode.className=this["class"]+" dijitTooltipAB"+(_4c2.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_4c2.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _4c7=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_4c7){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_4c7){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["ajso.templates"]){dojo._hasResource["ajso.templates"]=true;dojo.provide("ajso.templates");}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var ret=0;if(a>b||typeof a==="undefined"||a===null){ret=1;}else{if(a<b||typeof b==="undefined"||b===null){ret=-1;}}return ret;};dojo.data.util.sorter.createSortFunction=function(_4cb,_4cc){var _4cd=[];function createSortFunction(attr,dir){return function(_4d0,_4d1){var a=_4cc.getValue(_4d0,attr);var b=_4cc.getValue(_4d1,attr);var _4d4=null;if(_4cc.comparatorMap){if(typeof attr!=="string"){attr=_4cc.getIdentity(attr);}_4d4=_4cc.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_4d4=_4d4||dojo.data.util.sorter.basicComparator;return dir*_4d4(a,b);};};var _4d5;for(var i=0;i<_4cb.length;i++){_4d5=_4cb[i];if(_4d5.attribute){var _4d7=(_4d5.descending)?-1:1;_4cd.push(createSortFunction(_4d5.attribute,_4d7));}}return function(rowA,rowB){var i=0;while(i<_4cd.length){var ret=_4cd[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojox.data.QueryReadStore"]){dojo._hasResource["dojox.data.QueryReadStore"]=true;dojo.provide("dojox.data.QueryReadStore");dojo.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:false,doClientSorting:false,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":true,"dojo.data.api.Identity":true},_labelAttr:"label",constructor:function(_4dc){dojo.mixin(this,_4dc);},getValue:function(item,_4de,_4df){this._assertIsItem(item);if(!dojo.isString(_4de)){throw new Error(this._className+".getValue(): Invalid attribute, string expected!");}if(!this.hasAttribute(item,_4de)){if(_4df){return _4df;}console.log(this._className+".getValue(): Item does not have the attribute '"+_4de+"'.");}return item.i[_4de];},getValues:function(item,_4e1){this._assertIsItem(item);var ret=[];if(this.hasAttribute(item,_4e1)){ret.push(item.i[_4e1]);}return ret;},getAttributes:function(item){this._assertIsItem(item);var ret=[];for(var i in item.i){ret.push(i);}return ret;},hasAttribute:function(item,_4e7){return this.isItem(item)&&typeof item.i[_4e7]!="undefined";},containsValue:function(item,_4e9,_4ea){var _4eb=this.getValues(item,_4e9);var len=_4eb.length;for(var i=0;i<len;i++){if(_4eb[i]==_4ea){return true;}}return false;},isItem:function(_4ee){if(_4ee){return typeof _4ee.r!="undefined"&&_4ee.r==this;}return false;},isItemLoaded:function(_4ef){return this.isItem(_4ef);},loadItem:function(args){if(this.isItemLoaded(args.item)){return;}},fetch:function(_4f1){_4f1=_4f1||{};if(!_4f1.store){_4f1.store=this;}var self=this;var _4f3=function(_4f4,_4f5){if(_4f5.onError){var _4f6=_4f5.scope||dojo.global;_4f5.onError.call(_4f6,_4f4,_4f5);}};var _4f7=function(_4f8,_4f9,_4fa){var _4fb=_4f9.abort||null;var _4fc=false;var _4fd=_4f9.start?_4f9.start:0;if(self.doClientPaging==false){_4fd=0;}var _4fe=_4f9.count?(_4fd+_4f9.count):_4f8.length;_4f9.abort=function(){_4fc=true;if(_4fb){_4fb.call(_4f9);}};var _4ff=_4f9.scope||dojo.global;if(!_4f9.store){_4f9.store=self;}if(_4f9.onBegin){_4f9.onBegin.call(_4ff,_4fa,_4f9);}if(_4f9.sort&&self.doClientSorting){_4f8.sort(dojo.data.util.sorter.createSortFunction(_4f9.sort,self));}if(_4f9.onItem){for(var i=_4fd;(i<_4f8.length)&&(i<_4fe);++i){var item=_4f8[i];if(!_4fc){_4f9.onItem.call(_4ff,item,_4f9);}}}if(_4f9.onComplete&&!_4fc){var _502=null;if(!_4f9.onItem){_502=_4f8.slice(_4fd,_4fe);}_4f9.onComplete.call(_4ff,_502,_4f9);}};this._fetchItems(_4f1,_4f7,_4f3);return _4f1;},getFeatures:function(){return this._features;},close:function(_503){},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_xhrFetchHandler:function(data,_507,_508,_509){data=this._filterResponse(data);if(data.label){this._labelAttr=data.label;}var _50a=data.numRows||-1;this._items=[];dojo.forEach(data.items,function(e){this._items.push({i:e,r:this});},this);var _50c=data.identifier;this._itemsByIdentity={};if(_50c){this._identifier=_50c;var i;for(i=0;i<this._items.length;++i){var item=this._items[i].i;var _50f=item[_50c];if(!this._itemsByIdentity[_50f]){this._itemsByIdentity[_50f]=item;}else{throw new Error(this._className+":  The json data as specified by: ["+this.url+"] is malformed.  Items within the list have identifier: ["+_50c+"].  Value collided: ["+_50f+"]");}}}else{this._identifier=Number;for(i=0;i<this._items.length;++i){this._items[i].n=i;}}_50a=this._numRows=(_50a===-1)?this._items.length:_50a;_508(this._items,_507,_50a);this._numRows=_50a;},_fetchItems:function(_510,_511,_512){var _513=_510.serverQuery||_510.query||{};if(!this.doClientPaging){_513.start=_510.start||0;if(_510.count){_513.count=_510.count;}}if(!this.doClientSorting){if(_510.sort){var sort=_510.sort[0];if(sort&&sort.attribute){var _515=sort.attribute;if(sort.descending){_515="-"+_515;}_513.sort=_515;}}}if(this.doClientPaging&&this._lastServerQuery!==null&&dojo.toJson(_513)==dojo.toJson(this._lastServerQuery)){this._numRows=(this._numRows===-1)?this._items.length:this._numRows;_511(this._items,_510,this._numRows);}else{var _516=this.requestMethod.toLowerCase()=="post"?dojo.xhrPost:dojo.xhrGet;var _517=_516({url:this.url,handleAs:"json-comment-optional",content:_513});_517.addCallback(dojo.hitch(this,function(data){this._xhrFetchHandler(data,_510,_511,_512);}));_517.addErrback(function(_519){_512(_519,_510);});this.lastRequestHash=new Date().getTime()+"-"+String(Math.random()).substring(2);this._lastServerQuery=dojo.mixin({},_513);}},_filterResponse:function(data){return data;},_assertIsItem:function(item){if(!this.isItem(item)){throw new Error(this._className+": Invalid item argument.");}},_assertIsAttribute:function(_51c){if(typeof _51c!=="string"){throw new Error(this._className+": Invalid attribute argument ('"+_51c+"').");}},fetchItemByIdentity:function(_51d){if(this._itemsByIdentity){var item=this._itemsByIdentity[_51d.identity];if(!(item===undefined)){if(_51d.onItem){var _51f=_51d.scope?_51d.scope:dojo.global;_51d.onItem.call(_51f,{i:item,r:this});}return;}}var _520=function(_521,_522){var _523=_51d.scope?_51d.scope:dojo.global;if(_51d.onError){_51d.onError.call(_523,_521);}};var _524=function(_525,_526){var _527=_51d.scope?_51d.scope:dojo.global;try{var item=null;if(_525&&_525.length==1){item=_525[0];}if(_51d.onItem){_51d.onItem.call(_527,item);}}catch(error){if(_51d.onError){_51d.onError.call(_527,error);}}};var _529={serverQuery:{id:_51d.identity}};this._fetchItems(_529,_524,_520);},getIdentity:function(item){var _52b=null;if(this._identifier===Number){_52b=item.n;}else{_52b=item.i[this._identifier];}return _52b;},getIdentityAttributes:function(item){return [this._identifier];}});}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_52d){var _52e=_52d.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_52e==1&&dojo.date.isLeapYear(_52d)){return 29;}return days[_52e];};dojo.date.isLeapYear=function(_530){var year=_530.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_532){var str=_532.toString();var tz="";var _535;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_535=str.match(pat))){tz=_535[1];}else{str=_532.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_535=str.match(pat))){tz=_535[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_538,_539,_53a){_538=new Date(Number(_538));_539=new Date(Number(_539||new Date()));if(_53a!=="undefined"){if(_53a=="date"){_538.setHours(0,0,0,0);_539.setHours(0,0,0,0);}else{if(_53a=="time"){_538.setFullYear(0,0,0);_539.setFullYear(0,0,0);}}}if(_538>_539){return 1;}if(_538<_539){return -1;}return 0;};dojo.date.add=function(date,_53c,_53d){var sum=new Date(Number(date));var _53f=false;var _540="Date";switch(_53c){case "day":break;case "weekday":var days,_542;var mod=_53d%5;if(!mod){days=(_53d>0)?5:-5;_542=(_53d>0)?((_53d-5)/5):((_53d+5)/5);}else{days=mod;_542=parseInt(_53d/5);}var strt=date.getDay();var adj=0;if(strt==6&&_53d>0){adj=1;}else{if(strt==0&&_53d<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_53d>0)?2:-2;}_53d=(7*_542)+days+adj;break;case "year":_540="FullYear";_53f=true;break;case "week":_53d*=7;break;case "quarter":_53d*=3;case "month":_53f=true;_540="Month";break;case "hour":case "minute":case "second":case "millisecond":_540="UTC"+_53c.charAt(0).toUpperCase()+_53c.substring(1)+"s";}if(_540){sum["set"+_540](sum["get"+_540]()+_53d);}if(_53f&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_547,_548,_549){_548=_548||new Date();_549=_549||"day";var _54a=_548.getFullYear()-_547.getFullYear();var _54b=1;switch(_549){case "quarter":var m1=_547.getMonth();var m2=_548.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_54a*4);_54b=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_547,_548,"day"));var _551=parseInt(dojo.date.difference(_547,_548,"week"));var mod=days%7;if(mod==0){days=_551*5;}else{var adj=0;var aDay=_547.getDay();var bDay=_548.getDay();_551=parseInt(days/7);mod=days%7;var _556=new Date(_547);_556.setDate(_556.getDate()+(_551*7));var _557=_556.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_557+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_557+mod)<0:adj=2;}}}days+=adj;days-=(_551*2);}_54b=days;break;case "year":_54b=_54a;break;case "month":_54b=(_548.getMonth()-_547.getMonth())+(_54a*12);break;case "week":_54b=parseInt(dojo.date.difference(_547,_548,"day")/7);break;case "day":_54b/=24;case "hour":_54b/=60;case "minute":_54b/=60;case "second":_54b/=1000;case "millisecond":_54b*=_548.getTime()-_547.getTime();}return Math.round(_54b);};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_558){var _559={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _55a=dojo.cldr.supplemental._region(_558);var dow=_559[_55a];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_55c){_55c=dojo.i18n.normalizeLocale(_55c);var tags=_55c.split("-");var _55e=tags[1];if(!_55e){_55e={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_55e.length==4){_55e=tags[2];}}return _55e;};dojo.cldr.supplemental.getWeekend=function(_55f){var _560={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _561={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _562=dojo.cldr.supplemental._region(_55f);var _563=_560[_562];var end=_561[_562];if(_563===undefined){_563=6;}if(end===undefined){end=0;}return {start:_563,end:end};};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_566){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_566&&_566.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_56a){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_56a);};dojo.regexp.group=function(_56d,_56e){return "("+(_56e?"?:":"")+_56d+")";};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_56f,_570,_571,_572){return _572.replace(/([a-z])\1*/ig,function(_573){var s,pad;var c=_573.charAt(0);var l=_573.length;var _578=["abbr","wide","narrow"];switch(c){case "G":s=_570[(l<4)?"eraAbbr":"eraNames"][_56f.getFullYear()<0?0:1];break;case "y":s=_56f.getFullYear();switch(l){case 1:break;case 2:if(!_571){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_56f.getMonth()+1)/3);pad=true;break;case "M":var m=_56f.getMonth();if(l<3){s=m+1;pad=true;}else{var _57a=["months","format",_578[l-3]].join("-");s=_570[_57a][m];}break;case "w":var _57b=0;s=dojo.date.locale._getWeekOfYear(_56f,_57b);pad=true;break;case "d":s=_56f.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_56f);pad=true;break;case "E":var d=_56f.getDay();if(l<3){s=d+1;pad=true;}else{var _57d=["days","format",_578[l-3]].join("-");s=_570[_57d][d];}break;case "a":var _57e=(_56f.getHours()<12)?"am":"pm";s=_570[_57e];break;case "h":case "H":case "K":case "k":var h=_56f.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_56f.getMinutes();pad=true;break;case "s":s=_56f.getSeconds();pad=true;break;case "S":s=Math.round(_56f.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_56f);if(s){break;}l=4;case "Z":var _580=_56f.getTimezoneOffset();var tz=[(_580<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_580)/60),2),dojo.string.pad(Math.abs(_580)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_572);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_582,_583){_583=_583||{};var _584=dojo.i18n.normalizeLocale(_583.locale);var _585=_583.formatLength||"short";var _586=dojo.date.locale._getGregorianBundle(_584);var str=[];var _588=dojo.hitch(this,formatPattern,_582,_586,_583.fullYear);if(_583.selector=="year"){var year=_582.getFullYear();if(_584.match(/^zh|^ja/)){year+="年";}return year;}if(_583.selector!="time"){var _58a=_583.datePattern||_586["dateFormat-"+_585];if(_58a){str.push(_processPattern(_58a,_588));}}if(_583.selector!="date"){var _58b=_583.timePattern||_586["timeFormat-"+_585];if(_58b){str.push(_processPattern(_58b,_588));}}var _58c=str.join(" ");return _58c;};dojo.date.locale.regexp=function(_58d){return dojo.date.locale._parseInfo(_58d).regexp;};dojo.date.locale._parseInfo=function(_58e){_58e=_58e||{};var _58f=dojo.i18n.normalizeLocale(_58e.locale);var _590=dojo.date.locale._getGregorianBundle(_58f);var _591=_58e.formatLength||"short";var _592=_58e.datePattern||_590["dateFormat-"+_591];var _593=_58e.timePattern||_590["timeFormat-"+_591];var _594;if(_58e.selector=="date"){_594=_592;}else{if(_58e.selector=="time"){_594=_593;}else{_594=_592+" "+_593;}}var _595=[];var re=_processPattern(_594,dojo.hitch(this,_buildDateTimeRE,_595,_590,_58e));return {regexp:re,tokens:_595,bundle:_590};};dojo.date.locale.parse=function(_597,_598){var info=dojo.date.locale._parseInfo(_598);var _59a=info.tokens,_59b=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _59d=re.exec(_597);if(!_59d){return null;}var _59e=["abbr","wide","narrow"];var _59f=[1970,0,1,0,0,0,0];var amPm="";var _5a1=dojo.every(_59d,function(v,i){if(!i){return true;}var _5a4=_59a[i-1];var l=_5a4.length;switch(_5a4.charAt(0)){case "y":if(l!=2&&_598.strict){_59f[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _5a7=year.substring(0,2)*100;var _5a8=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_5a8)?_5a7+v:_5a7-100+v;_59f[0]=num;}else{if(_598.strict){return false;}_59f[0]=v;}}break;case "M":if(l>2){var _5aa=_59b["months-format-"+_59e[l-3]].concat();if(!_598.strict){v=v.replace(".","").toLowerCase();_5aa=dojo.map(_5aa,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_5aa,v);if(v==-1){return false;}}else{v--;}_59f[1]=v;break;case "E":case "e":var days=_59b["days-format-"+_59e[l-3]].concat();if(!_598.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_59f[1]=0;case "d":_59f[2]=v;break;case "a":var am=_598.am||_59b.am;var pm=_598.pm||_59b.pm;if(!_598.strict){var _5b0=/\./g;v=v.replace(_5b0,"").toLowerCase();am=am.replace(_5b0,"").toLowerCase();pm=pm.replace(_5b0,"").toLowerCase();}if(_598.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_59f[3]=v;break;case "m":_59f[4]=v;break;case "s":_59f[5]=v;break;case "S":_59f[6]=v;}return true;});var _5b1=+_59f[3];if(amPm==="p"&&_5b1<12){_59f[3]=_5b1+12;}else{if(amPm==="a"&&_5b1==12){_59f[3]=0;}}var _5b2=new Date(_59f[0],_59f[1],_59f[2],_59f[3],_59f[4],_59f[5],_59f[6]);if(_598.strict){_5b2.setFullYear(_59f[0]);}var _5b3=_59a.join("");if(!_5a1||(_5b3.indexOf("M")!=-1&&_5b2.getMonth()!=_59f[1])||(_5b3.indexOf("d")!=-1&&_5b2.getDate()!=_59f[2])){return null;}return _5b2;};function _processPattern(_5b4,_5b5,_5b6,_5b7){var _5b8=function(x){return x;};_5b5=_5b5||_5b8;_5b6=_5b6||_5b8;_5b7=_5b7||_5b8;var _5ba=_5b4.match(/(''|[^'])+/g);var _5bb=_5b4.charAt(0)=="'";dojo.forEach(_5ba,function(_5bc,i){if(!_5bc){_5ba[i]="";}else{_5ba[i]=(_5bb?_5b6:_5b5)(_5bc);_5bb=!_5bb;}});return _5b7(_5ba.join(""));};function _buildDateTimeRE(_5be,_5bf,_5c0,_5c1){_5c1=dojo.regexp.escapeString(_5c1);if(!_5c0.strict){_5c1=_5c1.replace(" a"," ?a");}return _5c1.replace(/([a-z])\1*/ig,function(_5c2){var s;var c=_5c2.charAt(0);var l=_5c2.length;var p2="",p3="";if(_5c0.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_5c0.am||_5bf.am||"AM";var pm=_5c0.pm||_5bf.pm||"PM";if(_5c0.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_5be){_5be.push(_5c2);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _5ca=[];dojo.date.locale.addCustomFormats=function(_5cb,_5cc){_5ca.push({pkg:_5cb,name:_5cc});};dojo.date.locale._getGregorianBundle=function(_5cd){var _5ce={};dojo.forEach(_5ca,function(desc){var _5d0=dojo.i18n.getLocalization(desc.pkg,desc.name,_5cd);_5ce=dojo.mixin(_5ce,_5d0);},this);return _5ce;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,use,_5d4){var _5d5;var _5d6=dojo.date.locale._getGregorianBundle(_5d4);var _5d7=[item,use,type];if(use=="standAlone"){var key=_5d7.join("-");_5d5=_5d6[key];if(_5d5[0]==1){_5d5=undefined;}}_5d7[1]="format";return (_5d5||_5d6[_5d7.join("-")]).concat();};dojo.date.locale.isWeekend=function(_5d9,_5da){var _5db=dojo.cldr.supplemental.getWeekend(_5da);var day=(_5d9||new Date()).getDay();if(_5db.end<_5db.start){_5db.end+=7;if(day<_5db.start){day+=7;}}return day>=_5db.start&&day<=_5db.end;};dojo.date.locale._getDayOfYear=function(_5dd){return dojo.date.difference(new Date(_5dd.getFullYear(),0,1,_5dd.getHours()),_5dd)+1;};dojo.date.locale._getWeekOfYear=function(_5de,_5df){if(arguments.length==1){_5df=0;}var _5e0=new Date(_5de.getFullYear(),0,1).getDay();var adj=(_5e0-_5df+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_5de)+adj-1)/7);if(_5e0==_5df){week++;}return week;};}if(!dojo._hasResource["snd.dist.soundmanager2"]){dojo._hasResource["snd.dist.soundmanager2"]=true;dojo.provide("snd.dist.soundmanager2");function SoundManager(_5e3,smID){this.flashVersion=8;this.debugMode=true;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL="data/null.mp3";this.defaultOptions={"autoLoad":false,"stream":true,"autoPlay":false,"onid3":null,"onload":null,"whileloading":null,"onplay":null,"onpause":null,"onresume":null,"whileplaying":null,"onstop":null,"onfinish":null,"onbeforefinish":null,"onbeforefinishtime":5000,"onbeforefinishcomplete":null,"onjustbeforefinish":null,"onjustbeforefinishtime":200,"multiShot":true,"usePeakData":false,"useSpectrumData":false,"position":null,"pan":0,"volume":100};this.allowPolling=true;var self=this;this.version=null;this.versionNumber="V2.75a.20080707";this.movieURL=null;this.url=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.id=(smID||"sm2movie");this.oMC=null;this.sounds=[];this.soundIDs=[];this.isIE=(navigator.userAgent.match(/MSIE/));this.isSafari=(navigator.userAgent.match(/safari/i));this.debugID="soundmanager-debug";this._debugOpen=true;this._didAppend=false;this._appendSuccess=false;this._didInit=false;this._disabled=false;this._windowLoaded=false;this._hasConsole=(typeof console!="undefined"&&typeof console.log!="undefined");this._debugLevels=["log","info","warn","error"];this._defaultFlashVersion=9;this.features={peakData:false,spectrumData:false};this.sandbox={"type":null,"types":{"remote":"remote (domain-based) rules","localWithFile":"local with file access (no internet access)","localWithNetwork":"local with network (internet access only, no local access)","localTrusted":"local, trusted (local + internet access)"},"description":null,"noRemote":null,"noLocal":null};this._setVersionInfo=function(){if(self.flashVersion!=8&&self.flashVersion!=9){alert("soundManager.flashVersion must be 8 or 9. \""+self.flashVersion+"\" is invalid. Reverting to "+self._defaultFlashVersion+".");self.flashVersion=self._defaultFlashVersion;}self.version=self.versionNumber+(self.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");self.movieURL=(self.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf");self.features.peakData=(self.flashVersion>=9);self.features.spectrumData=(self.flashVersion>=9);};this._overHTTP=(document.location?document.location.protocol.match(/http/i):null);this._waitingforEI=false;this._initPending=false;this._tryInitOnFocus=(this.isSafari&&typeof document.hasFocus=="undefined");this._isFocused=(typeof document.hasFocus!="undefined"?document.hasFocus():null);this._okToDisable=!this._tryInitOnFocus;var _5e6="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html";this.supported=function(){return (self._didInit&&!self._disabled);};this.getMovie=function(smID){return self.isIE?window[smID]:(self.isSafari?document.getElementById(smID+"embed")||document[smID+"embed"]:document.getElementById(smID+"embed"));};this.loadFromXML=function(_5e8){try{self.o._loadFromXML(_5e8);}catch(e){self._failSafely();return true;}};this.createSound=function(_5e9){if(!self._didInit){throw new Error("soundManager.createSound(): Not loaded yet - wait for soundManager.onload() before calling sound-related methods");}if(arguments.length==2){_5e9={"id":arguments[0],"url":arguments[1]};}var _5ea=self._mergeObjects(_5e9);self._writeDebug("soundManager.createSound(): "+_5ea.id+" ("+_5ea.url+")",1);if(self._idCheck(_5ea.id,true)){self._writeDebug("soundManager.createSound(): "+_5ea.id+" exists",1);return self.sounds[_5ea.id];}self.sounds[_5ea.id]=new SMSound(self,_5ea);self.soundIDs[self.soundIDs.length]=_5ea.id;try{if(self.flashVersion==8){self.o._createSound(_5ea.id,_5ea.onjustbeforefinishtime);}else{self.o._createSound(_5ea.id,_5ea.url,_5ea.onjustbeforefinishtime,_5ea.usePeakData,_5ea.useSpectrumData);}}catch(e){self._failSafely();return true;}if(_5ea.autoLoad||_5ea.autoPlay){window.setTimeout(function(){self.sounds[_5ea.id].load(_5ea);},20);}if(_5ea.autoPlay){self.sounds[_5ea.id].playState=1;}return self.sounds[_5ea.id];};this.destroySound=function(sID){if(!self._idCheck(sID)){return false;}for(var i=0;i<self.soundIDs.length;i++){if(self.soundIDs[i]==sID){self.soundIDs.splice(i,1);continue;}}self.sounds[sID].unload();delete self.sounds[sID];};this.load=function(sID,_5ee){if(!self._idCheck(sID)){return false;}self.sounds[sID].load(_5ee);};this.unload=function(sID){if(!self._idCheck(sID)){return false;}self.sounds[sID].unload();};this.play=function(sID,_5f1){if(!self._idCheck(sID)){if(typeof _5f1!="Object"){_5f1={url:_5f1};}if(_5f1&&_5f1.url){self._writeDebug("soundController.play(): attempting to create \""+sID+"\"",1);_5f1.id=sID;self.createSound(_5f1);}else{return false;}}self.sounds[sID].play(_5f1);};this.start=this.play;this.setPosition=function(sID,_5f3){if(!self._idCheck(sID)){return false;}self.sounds[sID].setPosition(_5f3);};this.stop=function(sID){if(!self._idCheck(sID)){return false;}self._writeDebug("soundManager.stop("+sID+")",1);self.sounds[sID].stop();};this.stopAll=function(){self._writeDebug("soundManager.stopAll()",1);for(var _5f5 in self.sounds){if(self.sounds[_5f5] instanceof SMSound){self.sounds[_5f5].stop();}}};this.pause=function(sID){if(!self._idCheck(sID)){return false;}self.sounds[sID].pause();};this.resume=function(sID){if(!self._idCheck(sID)){return false;}self.sounds[sID].resume();};this.togglePause=function(sID){if(!self._idCheck(sID)){return false;}self.sounds[sID].togglePause();};this.setPan=function(sID,nPan){if(!self._idCheck(sID)){return false;}self.sounds[sID].setPan(nPan);};this.setVolume=function(sID,nVol){if(!self._idCheck(sID)){return false;}self.sounds[sID].setVolume(nVol);};this.mute=function(sID){if(!sID){var o=null;self._writeDebug("soundManager.mute(): Muting all sounds");for(o in self.sounds){self.sounds[o].mute();}}else{if(!self._idCheck(sID)){return false;}self._writeDebug("soundManager.mute(): Muting \""+sID+"\"");self.sounds[sID].mute();}};this.unmute=function(sID){if(!sID){var o=null;self._writeDebug("soundManager.unmute(): Unmuting all sounds");for(o in self.sounds){self.sounds[o].unmute();}}else{if(!self._idCheck(sID)){return false;}self._writeDebug("soundManager.unmute(): Unmuting \""+sID+"\"");self.sounds[sID].unmute();}};this.setPolling=function(_601){if(!self.o||!self.allowPolling){return false;}self.o._setPolling(_601);};this.disable=function(){if(self._disabled){return false;}self._disabled=true;self._writeDebug("soundManager.disable(): Disabling all functions - future calls will return false.",1);for(var i=self.soundIDs.length;i--;){self._disableObject(self.sounds[self.soundIDs[i]]);}self.initComplete();self._disableObject(self);};this.getSoundById=function(sID,_604){if(!sID){throw new Error("SoundManager.getSoundById(): sID is null/undefined");}var _605=self.sounds[sID];if(!_605&&!_604){self._writeDebug("\""+sID+"\" is an invalid sound ID.",2);}return _605;};this.onload=function(){soundManager._writeDebug("<em>Warning</em>: soundManager.onload() is undefined.",2);};this.onerror=function(){};this._idCheck=this.getSoundById;this._disableObject=function(o){for(var _607 in o){if(typeof o[_607]=="function"&&typeof o[_607]._protected=="undefined"){o[_607]=function(){return false;};}}_607=null;};this._failSafely=function(){var _608="You may need to whitelist this location/domain eg. file:///C:/ or C:/ or mysite.com, or set ALWAYS ALLOW under the Flash Player Global Security Settings page. The latter is probably less-secure.";var _609="<a href=\""+_5e6+"\" title=\""+_608+"\">view/edit</a>";var _60a="<a href=\""+_5e6+"\" title=\"Flash Player Global Security Settings\">FPGSS</a>";if(!self._disabled){self._writeDebug("soundManager: Failed to initialise.",2);self.disable();}};this._normalizeMovieURL=function(_60b){if(_60b){if(_60b.match(/\.swf/)){_60b=_60b.substr(0,_60b.lastIndexOf(".swf"));}if(_60b.lastIndexOf("/")!=_60b.length-1){_60b=_60b+"/";}}return (_60b&&_60b.lastIndexOf("/")!=-1?_60b.substr(0,_60b.lastIndexOf("/")+1):"./")+self.movieURL;};this._createMovie=function(smID,_60d){if(self._didAppend&&self._appendSuccess){return false;}if(window.location.href.indexOf("debug=1")+1){self.debugMode=true;}self._didAppend=true;self._setVersionInfo();self.url=self._normalizeMovieURL(_60d?_60d:self.url);_60d=self.url;var html=["<object id=\""+smID+"\" data=\""+_60d+"\" type=\"application/x-shockwave-flash\" width=\"1\" height=\"1\"><param name=\"movie\" value=\""+_60d+"\" /><param name=\"AllowScriptAccess\" value=\"always\" /></object>","<object id=\""+smID+"embed\" data=\""+_60d+"\" type=\"application/x-shockwave-flash\" width=\"1\" height=\"1\"><param name=\"movie\" value=\""+_60d+"\" /><param name=\"AllowScriptAccess\" value=\"always\" /></object>"];var _60f="<div id=\""+self.debugID+"-toggle\" style=\"position:fixed;_position:absolute;right:0px;bottom:0px;_top:0px;width:1.2em;height:1.2em;line-height:1.2em;margin:2px;padding:0px;text-align:center;border:1px solid #999;cursor:pointer;background:#fff;color:#333;z-index:706\" title=\"Toggle SM2 debug console\" onclick=\"soundManager._toggleDebug()\">-</div>";var _610="<div id=\""+self.debugID+"\" style=\"display:"+(self.debugMode&&((!self._hasConsole||!self.useConsole)||(self.useConsole&&self._hasConsole&&!self.consoleOnly))?"block":"none")+";opacity:0.85\"></div>";var _611="soundManager._createMovie(): appendChild/innerHTML set failed. May be app/xhtml+xml DOM-related.";var _612="<div style=\"position:absolute;left:-256px;top:-256px;width:1px;height:1px\" class=\"movieContainer\">"+html[self.isIE?0:1]+"</div>"+(self.debugMode&&((!self._hasConsole||!self.useConsole)||(self.useConsole&&self._hasConsole&&!self.consoleOnly))&&!document.getElementById(self.debugID)?"x"+_610+_60f:"");var _613=(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]));if(_613){self.oMC=document.createElement("div");self.oMC.className="movieContainer";self.oMC.style.position="absolute";self.oMC.style.left="-256px";self.oMC.style.width="1px";self.oMC.style.height="1px";try{_613.appendChild(self.oMC);self.oMC.innerHTML=html[self.isIE?0:1];self._appendSuccess=true;}catch(e){throw new Error(_611);}if(!document.getElementById(self.debugID)&&((!self._hasConsole||!self.useConsole)||(self.useConsole&&self._hasConsole&&!self.consoleOnly))){var _614=document.createElement("div");_614.id=self.debugID;_614.style.display=(self.debugMode?"block":"none");if(self.debugMode){try{var oD=document.createElement("div");_613.appendChild(oD);oD.innerHTML=_60f;}catch(e){throw new Error(_611);}}_613.appendChild(_614);}_613=null;}self._writeDebug("-- SoundManager 2 "+self.version+" --",1);self._writeDebug("soundManager._createMovie(): Trying to load "+_60d,1);};this._writeDebug=function(_616,_617,_618){if(!self.debugMode){return false;}if(typeof _618!="undefined"&&_618){_616=_616+" | "+new Date().getTime();}if(self._hasConsole&&self.useConsole){var _619=self._debugLevels[_617];if(typeof console[_619]!="undefined"){console[_619](_616);}else{console.log(_616);}if(self.useConsoleOnly){return true;}}var sDID="soundmanager-debug";try{var o=document.getElementById(sDID);if(!o){return false;}var _61c=document.createElement("div");_616=_616.replace(/\n/g,"<br />");if(typeof _617=="undefined"){var _617=0;}else{_617=parseInt(_617);}_61c.innerHTML=_616;if(_617){if(_617>=2){_61c.style.fontWeight="bold";}if(_617==3){_61c.style.color="#ff3333";}}o.insertBefore(_61c,o.firstChild);}catch(e){}o=null;};this._writeDebug._protected=true;this._writeDebugAlert=function(_61d){alert(_61d);};if(window.location.href.indexOf("debug=alert")+1&&self.debugMode){self._writeDebug=self._writeDebugAlert;}this._toggleDebug=function(){var o=document.getElementById(self.debugID);var oT=document.getElementById(self.debugID+"-toggle");if(!o){return false;}if(self._debugOpen){oT.innerHTML="+";o.style.display="none";}else{oT.innerHTML="-";o.style.display="block";}self._debugOpen=!self._debugOpen;};this._toggleDebug._protected=true;this._debug=function(){self._writeDebug("soundManager._debug(): sounds by id/url:",0);for(var i=0,j=self.soundIDs.length;i<j;i++){self._writeDebug(self.sounds[self.soundIDs[i]].sID+" | "+self.sounds[self.soundIDs[i]].url,0);}};this._mergeObjects=function(_622,oAdd){var o1={};for(var i in _622){o1[i]=_622[i];}var o2=(typeof oAdd=="undefined"?self.defaultOptions:oAdd);for(var o in o2){if(typeof o1[o]=="undefined"){o1[o]=o2[o];}}return o1;};this.createMovie=function(sURL){if(sURL){self.url=sURL;}self._initMovie();};this.go=this.createMovie;this._initMovie=function(){if(self.o){return false;}self.o=self.getMovie(self.id);if(!self.o){self._createMovie(self.id,self.url);self.o=self.getMovie(self.id);}if(self.o){self._writeDebug("soundManager._initMovie(): Got "+self.o.nodeName+" element ("+(self._didAppend?"created via JS":"static HTML")+")",1);self._writeDebug("soundManager._initMovie(): Waiting for ExternalInterface call from Flash..");}};this.waitForExternalInterface=function(){if(self._waitingForEI){return false;}self._waitingForEI=true;if(self._tryInitOnFocus&&!self._isFocused){self._writeDebug("soundManager: Special case: Flash may not have started due to non-focused tab (Safari is lame), and/or focus cannot be detected. Waiting for focus-related event..");return false;}if(!self._didInit){self._writeDebug("soundManager: Getting impatient, still waiting for Flash.. ;)");}setTimeout(function(){if(!self._didInit){self._writeDebug("soundManager: No Flash response within reasonable time after document load.\nPossible causes: Flash version under 8, no support, or Flash security denying JS-Flash communication.",2);if(!self._overHTTP){self._writeDebug("soundManager: Loading this page from local/network file system (not over HTTP?) Flash security likely restricting JS-Flash access. Consider adding current URL to \"trusted locations\" in the Flash player security settings manager at "+_5e6+", or simply serve this content over HTTP.",2);}}if(!self._didInit&&self._okToDisable){self._failSafely();}},750);};this.handleFocus=function(){if(self._isFocused||!self._tryInitOnFocus){return true;}self._okToDisable=true;self._isFocused=true;self._writeDebug("soundManager.handleFocus()");if(self._tryInitOnFocus){window.removeEventListener("mousemove",self.handleFocus,false);}self._waitingForEI=false;setTimeout(self.waitForExternalInterface,500);if(window.removeEventListener){window.removeEventListener("focus",self.handleFocus,false);}else{if(window.detachEvent){window.detachEvent("onfocus",self.handleFocus);}}};this.initComplete=function(){if(self._didInit){return false;}self._didInit=true;self._writeDebug("-- SoundManager 2 "+(self._disabled?"failed to load":"loaded")+" ("+(self._disabled?"security/load error":"OK")+") --",1);if(self._disabled){self._writeDebug("soundManager.initComplete(): calling soundManager.onerror()",1);self.onerror.apply(window);return false;}if(self.waitForWindowLoad&&!self._windowLoaded){self._writeDebug("soundManager: Waiting for window.onload()");if(window.addEventListener){window.addEventListener("load",self.initUserOnload,false);}else{if(window.attachEvent){window.attachEvent("onload",self.initUserOnload);}}return false;}else{if(self.waitForWindowLoad&&self._windowLoaded){self._writeDebug("soundManager: Document already loaded");}self.initUserOnload();}};this.initUserOnload=function(){self._writeDebug("soundManager.initComplete(): calling soundManager.onload()",1);try{self.onload.apply(window);}catch(e){self._writeDebug("soundManager.onload() threw an exception: "+e.message,2);setTimeout(function(){throw new Error(e);},20);return false;}self._writeDebug("soundManager.onload() complete",1);};this.init=function(){self._writeDebug("-- soundManager.init() --");self._initMovie();if(self._didInit){self._writeDebug("soundManager.init(): Already called?");return false;}if(window.removeEventListener){window.removeEventListener("load",self.beginDelayedInit,false);}else{if(window.detachEvent){window.detachEvent("onload",self.beginDelayedInit);}}try{self._writeDebug("Attempting to call JS-Flash..");self.o._externalInterfaceTest(false);if(!self.allowPolling){self._writeDebug("Polling (whileloading/whileplaying support) is disabled.",1);}self.setPolling(true);if(!self.debugMode){self.o._disableDebug();}self.enabled=true;}catch(e){self._failSafely();self.initComplete();return false;}self.initComplete();};this.beginDelayedInit=function(){self._writeDebug("soundManager.beginDelayedInit(): Document loaded");self._windowLoaded=true;setTimeout(self.waitForExternalInterface,500);setTimeout(self.beginInit,20);};this.beginInit=function(){if(self._initPending){return false;}self.createMovie();self._initMovie();self._initPending=true;return true;};this.domContentLoaded=function(){self._writeDebug("soundManager.domContentLoaded()");if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",self.domContentLoaded,false);}self.go();};this._externalInterfaceOK=function(){if(self.swfLoaded){return false;}self._writeDebug("soundManager._externalInterfaceOK()");self.swfLoaded=true;self._tryInitOnFocus=false;if(self.isIE){setTimeout(self.init,100);}else{self.init();}};this._setSandboxType=function(_629){var sb=self.sandbox;sb.type=_629;sb.description=sb.types[(typeof sb.types[_629]!="undefined"?_629:"unknown")];self._writeDebug("Flash security sandbox type: "+sb.type);if(sb.type=="localWithFile"){sb.noRemote=true;sb.noLocal=false;self._writeDebug("Flash security note: Network/internet URLs will not load due to security restrictions. Access can be configured via Flash Player Global Security Settings Page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html",2);}else{if(sb.type=="localWithNetwork"){sb.noRemote=false;sb.noLocal=true;}else{if(sb.type=="localTrusted"){sb.noRemote=false;sb.noLocal=false;}}}};this.destruct=function(){self._writeDebug("soundManager.destruct()");self.disable();};function SMSound(oSM,_62c){var self=this;var sm=oSM;this.sID=_62c.id;this.url=_62c.url;this.options=sm._mergeObjects(_62c);this.instanceOptions=this.options;this._debug=function(){if(sm.debugMode){var _62f=null;var msg=[];var sF=null;var _632=null;var _633=64;for(_62f in self.options){if(self.options[_62f]!=null){if(self.options[_62f] instanceof Function){sF=self.options[_62f].toString();sF=sF.replace(/\s\s+/g," ");_632=sF.indexOf("{");msg[msg.length]=" "+_62f+": {"+sF.substr(_632+1,(Math.min(Math.max(sF.indexOf("\n")-1,_633),_633))).replace(/\n/g,"")+"... }";}else{msg[msg.length]=" "+_62f+": "+self.options[_62f];}}}sm._writeDebug("SMSound() merged options: {\n"+msg.join(", \n")+"\n}");}};this._debug();this.id3={};self.resetProperties=function(_634){self.bytesLoaded=null;self.bytesTotal=null;self.position=null;self.duration=null;self.durationEstimate=null;self.loaded=false;self.loadSuccess=null;self.playState=0;self.paused=false;self.readyState=0;self.didBeforeFinish=false;self.didJustBeforeFinish=false;self.instanceOptions={};self.instanceCount=0;self.peakData={left:0,right:0};self.spectrumData=[];};self.resetProperties();this.load=function(_635){self.loaded=false;self.loadSuccess=null;self.readyState=1;self.playState=(_635.autoPlay?1:0);self.instanceOptions=sm._mergeObjects(_635);if(typeof self.instanceOptions.url=="undefined"){self.instanceOptions.url=self.url;}try{sm._writeDebug("soundManager.load(): "+self.instanceOptions.url,1);if(sm.flashVersion==8){sm.o._load(self.sID,self.instanceOptions.url,self.instanceOptions.stream,self.instanceOptions.autoPlay,(self.instanceOptions.whileloading?1:0));}else{sm.o._load(self.sID,self.instanceOptions.url,self.instanceOptions.stream?true:false,self.instanceOptions.autoPlay?true:false);}}catch(e){sm._writeDebug("SMSound().load(): JS-Flash communication failed.",2);}};this.unload=function(){sm._writeDebug("SMSound().unload(): \""+self.sID+"\"");self.setPosition(0);sm.o._unload(self.sID,sm.nullURL);self.resetProperties();};this.play=function(_636){if(!_636){_636={};}self.instanceOptions=sm._mergeObjects(_636,self.instanceOptions);self.instanceOptions=sm._mergeObjects(self.instanceOptions,self.options);if(self.playState==1){var _637=self.instanceOptions.multiShot;if(!_637){sm._writeDebug("SMSound.play(): \""+self.sID+"\" already playing (one-shot)",1);return false;}else{sm._writeDebug("SMSound.play(): \""+self.sID+"\" already playing (multi-shot)",1);}}if(!self.loaded){if(self.readyState==0){sm._writeDebug("SMSound.play(): Attempting to load \""+self.sID+"\"",1);self.instanceOptions.stream=true;self.instanceOptions.autoPlay=true;self.load(self.instanceOptions);}else{if(self.readyState==2){sm._writeDebug("SMSound.play(): Could not load \""+self.sID+"\" - exiting",2);return false;}else{sm._writeDebug("SMSound.play(): \""+self.sID+"\" is loading - attempting to play..",1);}}}else{sm._writeDebug("SMSound.play(): \""+self.sID+"\"");}if(self.paused){self.resume();}else{self.playState=1;if(!self.instanceCount||sm.flashVersion==9){self.instanceCount++;}self.position=(typeof self.instanceOptions.position!="undefined"&&!isNaN(self.instanceOptions.position)?self.instanceOptions.position:0);if(self.instanceOptions.onplay){self.instanceOptions.onplay.apply(self);}self.setVolume(self.instanceOptions.volume);self.setPan(self.instanceOptions.pan);if(sm.flashVersion!=8||(sm.flashVersion==8&&!self.instanceOptions.autoPlay)){sm.o._start(self.sID,self.instanceOptions.loop||1,(sm.flashVersion==9?self.position:self.position/1000));}}};this.start=this.play;this.stop=function(bAll){if(self.playState==1){self.playState=0;self.paused=false;if(self.instanceOptions.onstop){self.instanceOptions.onstop.apply(self);}sm.o._stop(self.sID);self.instanceCount=0;self.instanceOptions={};}};this.setPosition=function(_639){self.instanceOptions.position=_639;sm.o._setPosition(self.sID,(sm.flashVersion==9?self.instanceOptions.position:self.instanceOptions.position/1000),(self.paused||!self.playState));};this.pause=function(){if(self.paused){return false;}sm._writeDebug("SMSound.pause()");self.paused=true;sm.o._pause(self.sID);if(self.instanceOptions.onpause){self.instanceOptions.onpause.apply(self);}};this.resume=function(){if(!self.paused){return false;}sm._writeDebug("SMSound.resume()");self.paused=false;sm.o._pause(self.sID);if(self.instanceOptions.onresume){self.instanceOptions.onresume.apply(self);}};this.togglePause=function(){sm._writeDebug("SMSound.togglePause()");if(!self.playState){self.play({position:(sm.flashVersion==9?self.position:self.position/1000)});return false;}if(self.paused){self.resume();}else{self.pause();}};this.setPan=function(nPan){if(typeof nPan=="undefined"){nPan=0;}sm.o._setPan(self.sID,nPan);self.instanceOptions.pan=nPan;};this.setVolume=function(nVol){if(typeof nVol=="undefined"){nVol=100;}sm.o._setVolume(self.sID,nVol);self.instanceOptions.volume=nVol;};this.mute=function(){sm.o._setVolume(self.sID,0);};this.unmute=function(){sm.o._setVolume(self.sID,self.instanceOptions.volume);};this._whileloading=function(_63c,_63d,_63e){self.bytesLoaded=_63c;self.bytesTotal=_63d;self.duration=Math.floor(_63e);self.durationEstimate=parseInt((self.bytesTotal/self.bytesLoaded)*self.duration);if(self.readyState!=3&&self.instanceOptions.whileloading){self.instanceOptions.whileloading.apply(self);}};this._onid3=function(_63f,_640){sm._writeDebug("SMSound()._onid3(): \""+this.sID+"\" ID3 data received.");var _641=[];for(var i=0,j=_63f.length;i<j;i++){_641[_63f[i]]=_640[i];}self.id3=sm._mergeObjects(self.id3,_641);if(self.instanceOptions.onid3){self.instanceOptions.onid3.apply(self);}};this._whileplaying=function(_644,_645,_646){if(isNaN(_644)||_644==null){return false;}self.position=_644;if(self.instanceOptions.usePeakData&&typeof _645!="undefined"&&_645){self.peakData={left:_645.leftPeak,right:_645.rightPeak};}if(self.instanceOptions.useSpectrumData&&typeof _646!="undefined"&&_646){self.spectrumData=_646;}if(self.playState==1){if(self.instanceOptions.whileplaying){self.instanceOptions.whileplaying.apply(self);}if(self.loaded&&self.instanceOptions.onbeforefinish&&self.instanceOptions.onbeforefinishtime&&!self.didBeforeFinish&&self.duration-self.position<=self.instanceOptions.onbeforefinishtime){sm._writeDebug("duration-position &lt;= onbeforefinishtime: "+self.duration+" - "+self.position+" &lt= "+self.instanceOptions.onbeforefinishtime+" ("+(self.duration-self.position)+")");self._onbeforefinish();}}};this._onload=function(_647){_647=(_647==1?true:false);sm._writeDebug("SMSound._onload(): \""+self.sID+"\""+(_647?" loaded.":" failed to load? - "+self.url));if(!_647){if(sm.sandbox.noRemote==true){sm._writeDebug("SMSound._onload(): Reminder: Flash security is denying network/internet access",1);}if(sm.sandbox.noLocal==true){sm._writeDebug("SMSound._onload(): Reminder: Flash security is denying local access",1);}}self.loaded=_647;self.loadSuccess=_647;self.readyState=_647?3:2;if(self.instanceOptions.onload){self.instanceOptions.onload.apply(self);}};this._onbeforefinish=function(){if(!self.didBeforeFinish){self.didBeforeFinish=true;if(self.instanceOptions.onbeforefinish){self.instanceOptions.onbeforefinish.apply(self);}}};this._onjustbeforefinish=function(_648){if(!self.didJustBeforeFinish){self.didJustBeforeFinish=true;if(self.instanceOptions.onjustbeforefinish){self.instanceOptions.onjustbeforefinish.apply(self);}}};this._onfinish=function(){sm._writeDebug("SMSound._onfinish(): \""+self.sID+"\"");self.playState=0;self.paused=false;if(self.instanceOptions.onfinish){self.instanceOptions.onfinish.apply(self);}if(self.instanceOptions.onbeforefinishcomplete){self.instanceOptions.onbeforefinishcomplete.apply(self);}self.didBeforeFinish=false;self.didJustBeforeFinish=false;if(self.instanceCount){self.instanceCount--;if(!self.instanceCount){self.instanceCount=0;self.instanceOptions={};}}};};if(window.addEventListener){window.addEventListener("focus",self.handleFocus,false);window.addEventListener("load",self.beginDelayedInit,false);window.addEventListener("beforeunload",self.destruct,false);if(self._tryInitOnFocus){window.addEventListener("mousemove",self.handleFocus,false);}}else{if(window.attachEvent){window.attachEvent("onfocus",self.handleFocus);window.attachEvent("onload",self.beginDelayedInit);window.attachEvent("beforeunload",self.destruct);}else{soundManager.onerror();soundManager.disable();}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",self.domContentLoaded,false);}var _649=[" SoundManager 2: Javascript Sound for the Web "," http://schillmania.com/projects/soundmanager2/ "," Copyright (c) 2008, Scott Schiller. All rights reserved. "," Code provided under the BSD License: http://schillmania.com/projects/soundmanager2/license.txt ",];};var soundManager=new SoundManager();}if(!dojo._hasResource["snd._base"]){dojo._hasResource["snd._base"]=true;dojo.provide("snd._base");snd._loaded=false;snd._loadWasCancelled=false;snd._onLoads=[function(){snd._loaded=true;}];snd.addOnLoad=function(fn){if(snd._loadWasCancelled){return;}if(snd._loaded){dojo.addOnLoad(fn);}else{snd._onLoads.push(fn);}};snd.cancelOnLoads=function(){soundManager.onload=null;snd._loadWasCancelled=true;};soundManager.onload=function(){if(snd._loadWasCancelled){return;}dojo.forEach(snd._onLoads,function(fn){fn();});};}if(!dojo._hasResource["snd.core"]){dojo._hasResource["snd.core"]=true;dojo.provide("snd.core");soundManager.debugMode=false;soundManager.url=dojo.moduleUrl("snd.dist").toString();}if(!dojo._hasResource["snd.dist.inlineplayer"]){dojo._hasResource["snd.dist.inlineplayer"]=true;dojo.provide("snd.dist.inlineplayer");soundManager.InlinePlayer=function(){var self=this;var pl=this;var sm=soundManager;this.links=[];this.sounds=[];this.soundsByURL=[];this.indexByURL=[];this.lastSound=null;this.soundCount=0;var isIE=(navigator.userAgent.match(/msie/i));this.config={playNext:false};this.css={sDefault:"sm2_link",sLoading:"sm2_loading",sPlaying:"sm2_playing",sPaused:"sm2_paused"};this.addEventHandler=function(o,_651,_652){typeof (attachEvent)=="undefined"?o.addEventListener(_651,_652,false):o.attachEvent("on"+_651,_652);};this.removeEventHandler=function(o,_654,_655){typeof (attachEvent)=="undefined"?o.removeEventListener(_654,_655,false):o.detachEvent("on"+_654,_655);};this.classContains=function(o,cStr){return (typeof (o.className)!="undefined"?o.className.indexOf(cStr)+1:false);};this.addClass=function(o,cStr){if(!o||!cStr||self.classContains(o,cStr)){return false;}o.className=(o.className?o.className+" ":"")+cStr;};this.removeClass=function(o,cStr){if(!o||!cStr||!self.classContains(o,cStr)){return false;}o.className=o.className.replace(new RegExp("( "+cStr+")|("+cStr+")","g"),"");};this.getSoundByURL=function(sURL){return (typeof self.soundsByURL[sURL]!="undefined"?self.soundsByURL[sURL]:null);};this.events={play:function(){pl.removeClass(this._data.oLink,this._data.className);this._data.className=pl.css.sPlaying;pl.addClass(this._data.oLink,this._data.className);},stop:function(){pl.removeClass(this._data.oLink,this._data.className);this._data.className="";},pause:function(){pl.removeClass(this._data.oLink,this._data.className);this._data.className=pl.css.sPaused;pl.addClass(this._data.oLink,this._data.className);},resume:function(){pl.removeClass(this._data.oLink,this._data.className);this._data.className=pl.css.sPlaying;pl.addClass(this._data.oLink,this._data.className);},finish:function(){pl.removeClass(this._data.oLink,this._data.className);this._data.className="";if(pl.config.playNext){var _65d=(pl.indexByURL[this._data.oLink.href]+1);if(_65d<pl.links.length){pl.handleClick({"target":pl.links[_65d]});}}}};this.stopEvent=function(e){if(typeof e!="undefined"&&typeof e.preventDefault!="undefined"){e.preventDefault();}else{if(typeof event!="undefined"&&typeof event.returnValue!="undefined"){event.returnValue=false;}}return false;};this.getTheDamnLink=(isIE)?function(e){return (e&&e.target?e.target:window.event.srcElement);}:function(e){return e.target;};this.handleClick=function(e){var o=self.getTheDamnLink(e);var sURL=o.getAttribute("href");if(!o.href||!o.href.match(/.mp3$/i)){if(isIE&&o.onclick){return false;}return true;}sm._writeDebug("handleClick()");var _664=(o.href);var _665=self.getSoundByURL(_664);if(_665){if(_665==self.lastSound){_665.togglePause();}else{_665.togglePause();sm._writeDebug("sound different than last sound: "+self.lastSound.sID);if(self.lastSound){self.stopSound(self.lastSound);}}}else{_665=sm.createSound({id:"mp3Sound"+(self.soundCount++),url:_664,onplay:self.events.play,onstop:self.events.stop,onpause:self.events.pause,onresume:self.events.resume,onfinish:self.events.finish});_665._data={oLink:o,className:self.css.sPlaying};self.soundsByURL[_664]=_665;self.sounds.push(_665);if(self.lastSound){self.stopSound(self.lastSound);}_665.play();}self.lastSound=_665;if(typeof e!="undefined"&&typeof e.preventDefault!="undefined"){e.preventDefault();}else{event.returnValue=false;}return false;};this.stopSound=function(_666){soundManager.stop(_666.sID);soundManager.unload(_666.sID);};};}if(!dojo._hasResource["ajso.utils"]){dojo._hasResource["ajso.utils"]=true;dojo.provide("ajso.utils");ajso.objectIsEmpty=function(obj){var _668=true;for(var x in obj){_668=false;break;}return _668;};ajso.filter=new function(){return {getTabText:function(_66a){var txt;var pos=(""+_66a+"").indexOf("#");if(_66a.textContent){txt=_66a.textContent;}else{if(pos!=-1){txt=(""+_66a+"").substr(pos+1);}else{console.warn("it's possible that the filter tabs are broken. tab node = "+_66a);txt=_66a.text;}}return txt;}};};snd.addOnLoad(function(){var _66d;var jb=dojo.byId("aintjustsoul_mp3");_66d=soundManager.createSound({id:"aintjustsoul_mp3",url:"/local_media/aintjustsoul.mp3",autoLoad:false,autoPlay:false,stream:true,volume:100});dojo.connect(jb,"onclick",function(evt){_66d.togglePause();});dojo.addOnLoad(function(){var _670=function(){soundManager.stopAll();d.show();};var a=dojo.byId("info_about");var d=dijit.byId("info_about_dialog");dojo.connect(a,"onclick",function(evt){_670();dojo.stopEvent(evt);});var a=dojo.byId("aintjustsoul_header");dojo.connect(a,"onclick",function(evt){_670();dojo.stopEvent(evt);});});});}if(!dojo._hasResource["ajso.state"]){dojo._hasResource["ajso.state"]=true;dojo.provide("ajso.state");ajso.state=new function(){var self=this;var _676;var _677={};var _678=[];var _679=/^[a-zA-Z_]+$/;var _67a=function(hash){var obj={};if(dojo.indexOf(hash,"=")!=-1){obj=dojo.queryToObject(hash);if(obj.f){obj.f=obj.f.split("-");}return obj;}var _67d=hash.split("-");if(_67d.length<2){return {};}var _67e="__undefined__";var _67f="key";dojo.forEach(_67d,function(p){if(p==""){return;}if(_67f=="key"){_67e=p;if(!_679.exec(p)){throw TypeError("Key contained more than letters or underscores.  Perhaps corrupt?  key="+p);}_67f="value";}else{if(_67f=="value"){var val=decodeURIComponent(p);if(obj[_67e]){if(!dojo.isArray(obj[_67e])){obj[_67e]=[obj[_67e]];}obj[_67e].push(val);}else{obj[_67e]=val;}_67f="key";}}});return obj;};var _682=function(obj){var keys=[];for(var k in obj){keys.push(k);}keys.sort();var _686=[];var _687=function(val){if(dojo.indexOf((""+val+""),"-")!=-1){throw TypeError("Cannot embed a dash inside a hash.  Value was: '"+val+"'");}return val;};var enc=encodeURIComponent;dojo.forEach(keys,function(k){var val=obj[k];if(dojo.isArray(val)){val.sort();dojo.forEach(val,function(item){_686.push(k);_686.push(enc(_687(item)));});}else{_686.push(k);_686.push(enc(_687(val)));}});return _686.join("-");};var _68d=function(_68e){dojo.publish("/ajso.state/loadState",[_68e]);};var _68f=function(_690){var _691={back:function(){console.log("[back] loading",_690);_68d(_690);},forward:function(){console.log("[forward] loading",_690);_68d(_690);},changeUrl:_682(_690)};dojo.back.addToHistory(_691);};return {hashToObject:_67a,objectToHash:_682,getInitialState:function(){return _677;},subscribe:function(_692,_693,_694){dojo.subscribe("/ajso.state/loadState",_692,_693);_678.push([_692,_694]);},save:function(){var _695={};dojo.forEach(_678,function(_696){var _697=_696[0];var _698=_696[1];dojo.mixin(_695,_697[_698]());});_68f(_695);},wakeUp:function(){var h=window.location.hash;if(h.charAt(0)=="#"){h=h.substring(1);}h=dojo.isMozilla?h:decodeURIComponent(h);_676=h;try{_677=_67a(h);}catch(e){console.warn("Could not load initial params (bad input?): "+e.description);_677={};}if(!ajso.objectIsEmpty(_677)){var _69a=function(){var _69b="/?"+dojo.objectToQuery(_677);console.log("ajso.state.wakeUp(): redirecting to "+_69b);window.location.href=_69b;};snd.cancelOnLoads();if(dojo.isIE){dojo.addOnLoad(_69a);}else{_69a();}return;}dojo.addOnLoad(function(){var _69c={back:function(){_68d(_677);},forward:function(){_68d(_677);},changeUrl:_676};dojo.back.setInitialState(_69c);});}};};ajso.state.wakeUp();}if(!dojo._hasResource["ajso.session"]){dojo._hasResource["ajso.session"]=true;dojo.provide("ajso.session");ajso.session=new function(){return {get:function(name){return ajso.session_data[name];},set:function(name,_69f){ajso.session_data[name]=_69f;},save:function(){var _6a0={record_shelf:dojo.toJson(ajso.session_data.record_shelf)};dojo.xhrPost({url:"/browse/save_session.json",content:_6a0,handleAs:"json"});}};};}if(!dojo._hasResource["ajso.imagebox"]){dojo._hasResource["ajso.imagebox"]=true;dojo.provide("ajso.imagebox");dojo.declare("ajso.ImageBox",[dijit._Widget,dijit._Templated],{auctionId:0,image:null,viewer:null,thumb_local_http_path:null,thumb_width:0,thumb_height:0,startup:function(){this.inherited(arguments);var _6a1=this;this.render();},render:function(){var _6a2=this;var node=this.domNode;node.innerHTML=this._stringRepl(this.templateString);dojo.query("a.thumbnail",node).forEach(function(n){_6a2.connect(n,"onclick",_6a2._onThumbnailClick);});},postCreate:function(){this.inherited(arguments);this.viewer=dijit.byId("viewer");},_onThumbnailClick:function(evt){this.viewer.viewAuction(this.auctionId);dojo.stopEvent(evt);},templateString:ajso.templates.img_box});}if(!dojo._hasResource["ajso.viewer"]){dojo._hasResource["ajso.viewer"]=true;dojo.provide("ajso.viewer");dojo.declare("ajso.Viewer",[dijit._Widget],{record_details:null,audio_samples:null,currentAuctionId:null,_rendered_auction_at_startup:false,startup:function(){this.inherited(arguments);this.record_details=dijit.byId("record_details");this.audio_samples=dijit.byId("audio_samples");ajso.state.subscribe(this,"loadState","saveState");if(this.currentAuctionId){this.currentAuctionId=parseInt(this.currentAuctionId);this.renderAuction(this.currentAuctionId);this._rendered_auction_at_startup=true;}else{this.currentAuctionId=0;}},loadState:function(_6a6){if(_6a6.va&&_6a6.va!=this.currentAuctionId){this.renderAuction(parseInt(_6a6.va));}},saveState:function(){if(this.currentAuctionId){return {va:this.currentAuctionId};}else{return {};}},viewAuction:function(_6a7,_6a8){this.renderAuction(_6a7,_6a8);ajso.state.save();},renderAuction:function(_6a9,_6aa){this.currentAuctionId=_6a9;console.log("viewing auction "+_6a9);var _6ab=this;_6ab.record_details.renderLoading();dojo.xhrGet({url:"/browse/auction/"+_6a9+".json",handleAs:"json",load:function(_6ac,_6ad){_6ab.record_details.render(_6ac.auction,_6aa);_6ab.audio_samples.render(_6ac.audio_samples);return _6ac;},error:function(_6ae,_6af){console.log(_6ae);return _6ae;}});},renderAuctionFromShelf:function(_6b0,_6b1){if(this._rendered_auction_at_startup){return;}this.renderAuction(_6b0,_6b1);}});}if(!dojo._hasResource["ajso.recorddetails"]){dojo._hasResource["ajso.recorddetails"]=true;dojo.provide("ajso.recorddetails");dojo.declare("ajso.RecordDetails",[dijit._Widget,dijit._Templated],{panel_title:"Record For Sale",title:"No Record Selected",thumb_src:"",thumb_height:0,thumb_width:0,ebay_buy_it_now:false,ebay_auction_ended:null,ebay_auction_end_time_iso:null,record_for_sale_link:null,_nested_widgets:[],details_tmpl:ajso.templates.record_details,startup:function(){this.inherited(arguments);this.render(this);},renderLoading:function(){var _6b2=this;dojo.query(".dijitAccordionBody",this.domNode).forEach(function(n){n.innerHTML="<img class=\"loading\" src=\"/images/ajax-loader-large.gif\" "+"height=\"32\" with=\"32\" border=\"0\" />"+"<div class=\"shim\"></div>";});},render:function(_6b4,_6b5){this.title=_6b4.title;if(this.title!="No Record Selected"){document.title="ain't just soul: "+this.title;}this.thumb_src=_6b4.thumb_src;this.thumb_width=_6b4.thumb_width;this.thumb_height=_6b4.thumb_height;dojo.forEach(this._nested_widgets,function(w){w.destroy(false);w.destroyRendering(false);});this._nested_widgets=[];var _6b7=this;dojo.query(".dijitAccordionBody",this.domNode).forEach(function(n){n.innerHTML=_6b7._stringRepl(_6b7.details_tmpl);});if(_6b4.thumb_src){dojo.query("#record_item_image",this.domNode).forEach(function(n){n.innerHTML="<img src=\""+_6b7.thumb_src+"\" height=\""+_6b7.thumb_height+"\" "+"width=\""+_6b7.thumb_width+"\" />";});}if(_6b4.record_for_sale_link){var _6ba;var _6bb=dojo.byId("record_item_links");var _6bc;if(_6b4.ebay_auction_ended){_6bc="View ended auction";}else{if(_6b4.ebay_buy_it_now){_6bc="Buy it now on eBay";}else{_6bc="Bid for it on eBay";}}var _6bd={label:_6bc,title:"view auction in new window",onClick:function(evt){window.open(_6b4.record_for_sale_link);}};_6bd["class"]="button";var b=dojo.doc.createElement("button");_6bb.appendChild(b);var buy=new dijit.form.Button(_6bd,b);buy.startup();this._nested_widgets.push(buy);_6bb.appendChild(dojo.doc.createElement("br"));_6bb.appendChild(dojo.doc.createElement("br"));_6bb.appendChild(dojo.doc.createTextNode("Auction end time: "));_6bb.appendChild(dojo.doc.createElement("br"));var d=dojo.date.stamp.fromISOString(_6b4.ebay_auction_end_time_iso);var _6c2=dojo.date.locale.format(d)+" ("+dojo.date.getTimezoneName(d)+")";_6bb.appendChild(dojo.doc.createTextNode(_6c2));var _6bd={label:((_6b5&&_6b5.saved)?"Un-Save":"Save"),onClick:function(evt){if(_6b5&&_6b5.saved){recordShelf.removeAuctionId(_6b4.id);}else{recordShelf.save(_6b4);}}};_6bd["class"]="button";var _6c4=new dijit.form.Button(_6bd,dojo.byId("record_item_save_button"));_6c4.startup();this._nested_widgets.push(_6c4);}if(_6b4.potential_search_kw){dijit.byId("find_more_records").render(_6b4);}},templateString:"<div class=\"ajsoStaticPanel\">"+"<div class=\"dijitAccordionContainer ajsoStaticPanel\">"+"<div class=\"dijitAccordionTitle dijitAccordionTitle-selected\" wairole=\"tab\">"+"<div waiRole=\"presentation\" "+"class=\"dijitAccordionText\">${panel_title}</div>"+"</div>"+"<div>"+"<div class=\"dijitAccordionBody\"></div>"+"</div>"+"</div>"+"</div>"});}if(!dojo._hasResource["ajso.findmorerecords"]){dojo._hasResource["ajso.findmorerecords"]=true;dojo.provide("ajso.findmorerecords");dojo.declare("ajso.FindMoreRecords",[dijit._Widget,dijit._Templated],{startup:function(){this.inherited(arguments);},render:function(_6c5){var _6c6=_6c5.potential_search_kw.join(" ");var _6c7=encodeURIComponent(_6c6);var body=dojo.query(".container",this.domNode)[0];body.innerHTML="";var d=dojo.doc;var a=d.createElement("a");a.setAttribute("target","_blank");a.setAttribute("title","search for '"+_6c6+"' on musicstack.com");a.setAttribute("href","http://www.musicstack.com/show.cgi?aid=aintjustsoul&currency=USD&find="+_6c7);a.appendChild(d.createTextNode("Look for this record on MusicStack.com"));var ul=d.createElement("ul");var li=d.createElement("li");li.appendChild(a);ul.appendChild(li);body.appendChild(ul);},templateString:"<div class=\"ajsoStaticPanelSegment\"><div class=\"container\"></div></div>"});}if(!dojo._hasResource["ajso.audiosamples"]){dojo._hasResource["ajso.audiosamples"]=true;dojo.provide("ajso.audiosamples");dojo.declare("ajso.AudioSamples",[dijit._Widget,dijit._Templated],{panel_title:"Audio Samples",player:null,audio_samples:null,startup:function(){this.inherited(arguments);this.player=new soundManager.InlinePlayer();soundManager.onerror=function(){alert("Error: Cannot play mp3 files.  "+"Be sure that Flash version 8 or higher is installed.");};if(this.audio_samples){var d=decodeURIComponent(this.audio_samples);this.audio_samples=eval(d);var _6ce=this;snd.addOnLoad(function(){_6ce.render(_6ce.audio_samples);});}},render:function(_6cf){var _6d0=this;dojo.query("a.playable_sound",_6d0.domNode).forEach(function(_6d1){soundManager.destroySound(dojo.attr(_6d1,"id"));});dojo.query(".dijitAccordionBody",this.domNode).forEach(function(node){var t=["<ul>"];var mp3s=false;var _6d5={};dojo.forEach(_6cf,function(_6d6){var id="sample-"+_6d6.id;_6d5[id]=false;t.push("<li><a id=\"link-"+id+"\" target=\"_blank\" title=\"download "+_6d6.basename+"\" href=\""+_6d6.permanent_url+"\">"+_6d6.basename+"</a>");if(_6d6.type=="MP3"){mp3s=true;soundManager.createSound({id:id,url:_6d6.permanent_url,autoLoad:true,autoPlay:false,stream:true,volume:100,whileloading:function(){if(!_6d5[this.sID]){var link=dojo.byId("link-"+this.sID);dojo.addClass(link,"loading");_6d5[this.sID]=true;}},onload:function(){var link=dojo.byId("link-"+this.sID);dojo.removeClass(link,"loading");if(!this.loaded){dojo.addClass(link,"error");console.log("The sound "+this.sID+" at "+this.url+" FAILED to load");}else{console.log("The sound "+this.sID+" at "+this.url+" loaded!");}}});t.push("<ul><li><a class=\"playable_sound\" id=\""+id+"\" href=\""+_6d6.permanent_url+"\">listen</a></li></ul>");}t.push("</li>");});t.push("</ul>");node.innerHTML=t.join("");if(mp3s){dojo.query("a.playable_sound",node).onclick(_6d0.player.handleClick);}});},templateString:"<div class=\"ajsoStaticPanel\">"+"<div id=\"record_details\" class=\"dijitAccordionContainer ajsoStaticPanel\">"+"<div class=\"dijitAccordionTitle dijitAccordionTitle-selected\" wairole=\"tab\">"+"<div waiRole=\"presentation\" "+"class=\"dijitAccordionText\">${panel_title}</div>"+"</div>"+"<div>"+"<div class=\"dijitAccordionBody\">"+"</div>"+"</div>"+"</div>"+"</div>"});}if(!dojo._hasResource["ajso.browsecontrol"]){dojo._hasResource["ajso.browsecontrol"]=true;dojo.provide("ajso.browsecontrol");dojo.declare("ajso.BrowseControl",[dijit._Widget,dijit._Templated],{panel_title:"Controls",title:"",previous_page_st:0,next_page_st:40,startup:function(){this.inherited(arguments);},postCreate:function(){this.inherited(arguments);dojo.query("#controls_next_page",this.domNode).onclick(function(evt){recordThumbnails.nextPage();dojo.stopEvent(evt);});dojo.query("#controls_previous_page",this.domNode).onclick(function(evt){recordThumbnails.previousPage();dojo.stopEvent(evt);});},templateString:ajso.templates.browse_control});}if(!dojo._hasResource["ajso.recordthumbnails"]){dojo._hasResource["ajso.recordthumbnails"]=true;dojo.provide("ajso.recordthumbnails");dojo.declare("ajso.RecordThumbnails",[dijit._Widget,dojox.data.QueryReadStore],{url:"/browse/auction_thumbnails.json",pageSize:30,currentStart:0,currentRequest:null,currentFilters:[],_imageBoxes:[],itemsLoaded:function(_6dc,_6dd){var _6de=this;dojo.removeClass(this.domNode,"loading");dojo.forEach(this._imageBoxes,function(im){im.destroy(false);});this._imageBoxes=[];this.domNode.innerHTML="<div class=\"_container\"></div>";var _6e0=dojo.query("._container",this.domNode)[0];dojo.forEach(_6dc,function(item){var im=new ajso.ImageBox({auctionId:_6de.getValue(item,"auction_id"),thumb_local_http_path:_6de.getValue(item,"thumb_local_http_path"),thumb_width:_6de.getValue(item,"thumb_width"),thumb_height:_6de.getValue(item,"thumb_height")});im.startup();_6de._imageBoxes.push(im);_6e0.appendChild(im.domNode);});},previousPage:function(){var _6e3=this.currentStart-this.pageSize;if(_6e3<0){_6e3=0;}var _6e4={start:_6e3};this.doFetch(_6e4);ajso.state.save();},loadState:function(_6e5){var _6e6=false;if(_6e5.f){if(!dojo.isArray(_6e5.f)){_6e5.f=[_6e5.f];}_6e6=true;this.setFiltersFromList(_6e5.f);}else{if(this.currentFilters&&this.currentFilters.length>0){_6e6=true;}this.setFiltersFromList([]);}if(_6e5.s!=this.currentStart){_6e6=true;}if(_6e6){this.doFetch({start:_6e5.s});}},saveState:function(){var _6e7={s:this.currentStart};if(this.currentFilters&&this.currentFilters.length>0){_6e7.f=this.currentFilters;}return _6e7;},nextPage:function(){var _6e8={start:this.currentStart+this.pageSize};this.doFetch(_6e8);ajso.state.save();},refresh:function(){if(this.currentFilters&&this.currentFilters.length>0){this.filter(dojo.byId("filter_tabs"),{start:this.currentStart});}else{this.doFetch({start:this.currentStart});}},doFetch:function(_6e9){if(this.currentRequest&&typeof (this.currentRequest.abort)!=undefined){try{this.currentRequest.abort();}catch(e){console.warn("Could not call this.currentRequest.abort() : "+e.description);}}var _6ea=this;if(!_6e9){_6e9={start:0};}if(!_6e9.start){_6e9.start=0;}this.currentStart=_6e9.start;this.domNode.innerHTML="<img class=\"loading\" src=\"/images/ajax-loader-large.gif\" "+"height=\"32\" with=\"32\" border=\"0\" />";this.currentRequest=this.fetch({start:_6e9.start,count:this.pageSize,onComplete:function(_6eb,_6ec){_6ea.itemsLoaded(_6eb,_6ec);},onError:function(_6ed,_6ee){console.log("request "+_6ee+" failed: "+_6ed);}});return this.currentRequest;},filter:function(_6ef,_6f0){var cf=[];dojo.query("a.selected",_6ef).forEach(function(node){txt=ajso.filter.getTabText(node);cf.push(txt);});this.setFiltersFromList(cf);this.doFetch(_6f0);},clickToFilter:function(_6f3,_6f4){this.filter(_6f3,_6f4);ajso.state.save();},setFiltersFromStr:function(_6f5){this.currentFilters=_6f5.split("-");},setFiltersFromList:function(_6f6){this.currentFilters=_6f6;},startup:function(){var _6f7=this;ajso.state.subscribe(this,"loadState","saveState");this.inherited(arguments);this.pageSize=this._calcPageSize();dojo.connect("onresize",function(){var _6f8=_6f7.pageSize;var _6f9=_6f7._calcPageSize();if(_6f9!=_6f8){_6f7.pageSize=_6f9;_6f7.refresh();}});var _6fa=ajso.state.getInitialState();if(_6fa.f){if(!dojo.isArray(_6fa.f)){_6fa.f=[_6fa.f];}this.setFiltersFromList(_6fa.f);}if(this.currentStart){this.currentStart=parseInt(this.currentStart);}else{this.currentStart=0;}var _6fb={start:this.currentStart};var _6fc=this.doFetch(_6fb);},_calcPageSize:function(){var _6fd=dijit.getViewport();var im_w=100+1;var im_h=100+5;var _700=300;var _701=10;var _702=_6fd.w-_701-_701-_700;if(dojo.isIE){_702=_702-80;}var _703=57;var _704=34;var _705=5;var _706=40;var _707=_6fd.h-_703-_704-_705-_706;var _708=Math.floor((_702/im_w));if(_708<1){_708=1;}var _709=Math.floor((_707/im_h));if(_709<1){_709=1;}var _70a=_708*_709;if(_70a>200){_70a=200;}return _70a;},fetch:function(_70b){if(this.currentFilters&&this.currentFilters.length>0){_70b.serverQuery={f:this.currentFilters.join("-")};}else{_70b.serverQuery={};}return this.inherited("fetch",arguments);}});}if(!dojo._hasResource["ajso.recordshelf"]){dojo._hasResource["ajso.recordshelf"]=true;dojo.provide("ajso.recordshelf");dojo.declare("ajso.RecordShelf",[dijit._Widget,dijit._Templated],{panel_title:"Record Shelf",title:"",viewer:null,_saved:[],_saved_ids:[],_list:null,_appendAuction:function(_70c){var _70d=this;var d=dojo.doc;var item=d.createElement("li");var link=d.createElement("a");link.setAttribute("title","view this record again");link.setAttribute("href","#");dojo.connect(link,"onclick",function(evt){_70d.viewer.viewAuction(_70c.id,{saved:true});dojo.stopEvent(evt);});link.appendChild(d.createTextNode(_70c.title));item.appendChild(link);this._list.appendChild(item);},render:function(){var _712=this;var d=dojo.doc;var c=dojo.byId("saved_records_container");var ul=d.createElement("ul");ul.setAttribute("id","saved_records_list");this._list=ul;dojo.forEach(this._saved,function(item){_712._appendAuction(item);});if(this._saved.length==0){var li=dojo.doc.createElement("li");li.appendChild(dojo.doc.createTextNode("Save button adds a record"));ul.appendChild(li);}c.innerHTML="";c.appendChild(ul);},removeAuctionId:function(_718){var i=dojo.indexOf(this._saved_ids,_718);if(i==-1){return;}this._saved_ids.splice(i,1);for(var i=0;i<this._saved.length;i++){var a=this._saved[i];if(a.id==_718){this._saved.splice(i,1);break;}}this.render();ajso.session.set("record_shelf",this._saved);ajso.session.save();},save:function(_71b){var _71c=this;if(dojo.indexOf(this._saved_ids,_71b.id)!=-1){return;}this._saved_ids.push(_71b.id);this._saved.splice(0,0,_71b);if(this._saved.length>13){this._saved.pop();}this.render();ajso.session.set("record_shelf",this._saved);ajso.session.save();},startup:function(){var _71d=this;this.inherited(arguments);this.viewer=dijit.byId("viewer");this._saved=ajso.session.get("record_shelf");this._saved_ids=[];dojo.forEach(this._saved,function(a){_71d._saved_ids.push(a.id);});if(this._saved.length>0){this.viewer.renderAuctionFromShelf(this._saved[0].id,{saved:true});}this.render();},postCreate:function(){this.inherited(arguments);},templateString:"<div class=\"ajsoStaticPanel\">"+"<div class=\"dijitAccordionContainer ajsoStaticPanel\">"+"<div class=\"dijitAccordionTitle dijitAccordionTitle-selected\" wairole=\"tab\">"+"<div waiRole=\"presentation\" "+"class=\"dijitAccordionText\">${panel_title}</div>"+"</div>"+"<div>"+"<div class=\"dijitAccordionBody\">"+"<div id=\"saved_records_container\"></div>"+"</div>"+"</div>"+"</div>"+"</div>"});}if(!dojo._hasResource["ajso.menu"]){dojo._hasResource["ajso.menu"]=true;dojo.provide("ajso.menu");ajso.menu=new function(){var self=this;var _720;var _721=[];var _722=function(){dojo.query("a",_720).forEach(function(node){if(dojo.indexOf(_721,ajso.filter.getTabText(node))!=-1){dojo.addClass(node,"selected");}else{dojo.removeClass(node,"selected");}});};this.loadState=function(_724){if(_724.f){if(!dojo.isArray(_724.f)){_724.f=[_724.f];}_721=_724.f;}else{_721=[];}_722();};this.saveState=function(){return {};};this.startup=function(){_720=dojo.byId("filter_tabs");dojo.query("a",_720).forEach(function(node){dojo.connect(node,"onclick",function(evt){dojo.toggleClass(evt.target,"selected");recordThumbnails.clickToFilter(_720);dojo.stopEvent(evt);});});var _727=ajso.state.getInitialState();self.loadState(_727);ajso.state.subscribe(self,"loadState","saveState");};};dojo.addOnLoad(ajso.menu.startup);ajso.build_top_controls=function(){var _728=dojo.byId("top_control_refresh");dojo.connect(_728,"onclick",function(evt){recordThumbnails.refresh();dojo.stopEvent(evt);});};dojo.addOnLoad(ajso.build_top_controls);}if(!dojo._hasResource["ajso.core"]){dojo._hasResource["ajso.core"]=true;dojo.provide("ajso.core");}dojo.i18n._preloadLocalizations("dojo.nls.",["xx","ROOT","en","en-us"]);
