/*
	Copyright (c) 2004-2009, 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.
*/

(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _8=tn+"";console[_8]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};console[_8]._fake=true;})();}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _9 in djConfig){d.config[_9]=djConfig[_9];}}dojo.locale=d.config.locale;var _a="$Rev: 21254 $".match(/\d+/);dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:_a?+_a[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}var _b,_c,_d={};for(var i in {toString:1}){_b=[];break;}dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];_c=_b.length;dojo._mixin=function(_e,_f){var _10,s,i;for(_10 in _f){s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}if(_c&&_f){for(i=0;i<_c;++i){_10=_b[i];s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}}return _e;};dojo.mixin=function(obj,_11){if(!obj){obj={};}for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_12,_13,_14){var obj=_14||d.global;for(var i=0,p;obj&&(p=_12[i]);i++){if(i==0&&d._scopeMap[p]){p=d._scopeMap[p];}obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_15,_16,_17){var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);return obj&&p?(obj[p]=_16):undefined;};dojo.getObject=function(_19,_1a,_1b){return d._getProp(_19.split("."),_1a,_1b);};dojo.exists=function(_1c,obj){return !!d.getObject(_1c,false,obj);};dojo["eval"]=function(_1d){return d.global.eval?d.global.eval(_1d):eval(_1d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1e){var mp=d._modulePrefixes;return !!(mp[_1e]&&mp[_1e].value);},_getModulePrefix:function(_1f){var mp=d._modulePrefixes;if(d._moduleHasPrefix(_1f)){return mp[_1f].value;}return _1f;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_20,_21,cb){var uri=((_20.charAt(0)=="/"||_20.match(/^\w+:/))?"":d.baseUrl)+_20;try{return !_21?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_21,cb);}catch(e){console.error(e);return false;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _22=d._getText(uri,true);if(_22){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_22="("+_22+")";}else{_22=d._scopePrefix+_22+d._scopeSuffix;}if(!d.isIE){_22+="\r\n//@ sourceURL="+uri;}var _23=d["eval"](_22);if(cb){cb(_23);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return !!_22;};dojo._loadUriAndCheck=function(uri,_24,cb){var ok=false;try{ok=d._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&d._loadedModules[_24]);};dojo.loaded=function(){d._loadNotifying=true;d._postLoad=true;var mll=d._loaders;d._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}d._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())();}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _25=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_25.call(obj);});}}};dojo.ready=dojo.addOnLoad=function(obj,_26){d._onto(d._loaders,obj,_26);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};var dca=d.config.addOnLoad;if(dca){d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);}dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded();}:d._scopeName+".loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_27){var _28=_27.split(".");for(var i=_28.length;i>0;i--){var _29=_28.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_29)){_28[0]="../"+_28[0];}else{var _2a=d._getModulePrefix(_29);if(_2a!=_29){_28.splice(0,i,_2a);break;}}}return _28;};dojo._global_omit_module_check=false;dojo.loadInit=function(_2b){_2b();};dojo._loadModule=dojo.require=function(_2c,_2d){_2d=d._global_omit_module_check||_2d;var _2e=d._loadedModules[_2c];if(_2e){return _2e;}var _2f=d._getModuleSymbols(_2c).join("/")+".js";var _30=!_2d?_2c:null;var ok=d._loadPath(_2f,_30);if(!ok&&!_2d){throw new Error("Could not load '"+_2c+"'; last tried '"+_2f+"'");}if(!_2d&&!d._isXDomain){_2e=d._loadedModules[_2c];if(!_2e){throw new Error("symbol '"+_2c+"' is not defined after loading '"+_2f+"'");}}return _2e;};dojo.provide=function(_31){_31=_31+"";return (d._loadedModules[_31]=d.getObject(_31,true));};dojo.platformRequire=function(_32){var _33=_32.common||[];var _34=_33.concat(_32[d._name]||_32["default"]||[]);for(var x=0;x<_34.length;x++){var _35=_34[x];if(_35.constructor==Array){d._loadModule.apply(d,_35);}else{d._loadModule(_35);}}};dojo.requireIf=function(_36,_37){if(_36===true){var _38=[];for(var i=1;i<arguments.length;i++){_38.push(arguments[i]);}d.require.apply(d,_38);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_39,_3a){d._modulePrefixes[_39]={name:_39,value:_3a};};dojo.requireLocalization=function(_3b,_3c,_3d,_3e){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null,_3f=arguments,uri=[_3f[0]];for(var i=1;i<_3f.length;i++){if(!_3f[i]){continue;}var _40=new d._Url(_3f[i]+""),_41=new d._Url(uri[0]+"");if(_40.path==""&&!_40.scheme&&!_40.authority&&!_40.query){if(_40.fragment!=n){_41.fragment=_40.fragment;}_40=_41;}else{if(!_40.scheme){_40.scheme=_41.scheme;if(!_40.authority){_40.authority=_41.authority;if(_40.path.charAt(0)!="/"){var _42=_41.path.substring(0,_41.path.lastIndexOf("/")+1)+_40.path;var _43=_42.split("/");for(var j=0;j<_43.length;j++){if(_43[j]=="."){if(j==_43.length-1){_43[j]="";}else{_43.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){if(j==(_43.length-1)){_43.splice(j,1);_43[j-1]="";}else{_43.splice(j-1,2);j-=2;}}}}_40.path=_43.join("/");}}}}uri=[];if(_40.scheme){uri.push(_40.scheme,":");}if(_40.authority){uri.push("//",_40.authority);}uri.push(_40.path);if(_40.query){uri.push("?",_40.query);}if(_40.fragment){uri.push("#",_40.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_44,url){var loc=d._getModuleSymbols(_44).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _45=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_45==-1||_45>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _46=document.getElementsByTagName("script");var _47=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_46.length;i++){var src=_46[i].getAttribute("src");if(!src){continue;}var m=src.match(_47);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_46[i].getAttribute("djConfig");if(cfg){var _48=eval("({ "+cfg+" })");for(var x in _48){dojo.config[x]=_48[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")>=0){d.isOpera=tv;}if(dua.indexOf("AdobeAIR")>=0){d.isAIR=1;}d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")>=0;var _49=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_49&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_49+7))<=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var _4a=document.documentMode;if(_4a&&_4a!=5&&Math.floor(d.isIE)!=_4a){d.isIE=_4a;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _4b,_4c;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_4b=new XMLHttpRequest();}catch(e){}}if(!_4b){for(var i=0;i<3;++i){var _4d=d._XMLHTTP_PROGIDS[i];try{_4b=new ActiveXObject(_4d);}catch(e){_4c=e;}if(_4b){d._XMLHTTP_PROGIDS=[_4d];break;}}}if(!_4b){throw new Error("XMLHTTP not available: "+_4c);}return _4b;};d._isDocumentOk=function(_4e){var _4f=_4e.status||0,lp=location.protocol;return (_4f>=200&&_4f<300)||_4f==304||_4f==1223||(!_4f&&(lp=="file:"||lp=="chrome:"||lp=="app:"));};var _50=window.location+"";var _51=document.getElementsByTagName("base");var _52=(_51&&_51.length>0);d._getText=function(uri,_53){var _54=d._xhrObj();if(!_52&&dojo._Url){uri=(new dojo._Url(_50,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_54.open("GET",uri,false);try{_54.send(null);if(!d._isDocumentOk(_54)){var err=Error("Unable to load "+uri+" status:"+_54.status);err.status=_54.status;err.responseText=_54.responseText;throw err;}}catch(e){if(_53){return null;}throw e;}return _54.responseText;};var _55=window;var _56=function(_57,fp){var _58=_55.attachEvent||_55.addEventListener;_57=_55.attachEvent?_57:_57.substring(2);_58(_57,function(){fp.apply(_55,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};var _59=0;d.addOnWindowUnload=function(obj,_5a){d._onto(d._windowUnloaders,obj,_5a);if(!_59){_59=1;_56("onunload",d.windowUnloaded);}};var _5b=0;d.addOnUnload=function(obj,_5c){d._onto(d._unloaders,obj,_5c);if(!_5b){_5b=1;_56("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit);}if(dojo._inFlightCount==0){dojo._modulesLoaded();}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false);}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit);}}}if(dojo.isIE){if(!dojo.config.afterOnLoad&&!dojo.config.skipIeDomLoaded){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _5d=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_5d.length;}for(;i<l;++i){s.addRule("v\\:"+_5d[i],"behavior:url(#default#VML); display:inline-block");}}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5e in mp){dojo.registerModulePath(_5e,mp[_5e]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");(function(){var d=dojo,_5f=Object.prototype.toString;dojo.isString=function(it){return (typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=function(it){return _5f.call(it)==="[object Function]";};dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));};dojo.isArrayLike=function(it){return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_60,_61){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_60.prototype,arguments[i]);}return _60;};dojo._hitchArgs=function(_62,_63){var pre=d._toArray(arguments,2);var _64=d.isString(_63);return function(){var _65=d._toArray(arguments);var f=_64?(_62||d.global)[_63]:_63;return f&&f.apply(_62||this,pre.concat(_65));};};dojo.hitch=function(_66,_67){if(arguments.length>2){return d._hitchArgs.apply(d,arguments);}if(!_67){_67=_66;_66=null;}if(d.isString(_67)){_66=_66||d.global;if(!_66[_67]){throw (["dojo.hitch: scope[\"",_67,"\"] is null (scope=\"",_66,"\")"].join(""));}return function(){return _66[_67].apply(_66,arguments||[]);};}return !_66?_67:function(){return _67.apply(_66,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_68){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_68){d._mixin(tmp,_68);}return tmp;};})();var _69=function(obj,_6a,_6b){return (_6b||[]).concat(Array.prototype.slice.call(obj,_6a||0));};var _6c=function(obj,_6d,_6e){var arr=_6e||[];for(var x=_6d||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=d.isIE?function(obj){return ((obj.item)?_6c:_69).apply(this,arguments);}:_69;dojo.partial=function(_6f){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)));};var _70=d._extraNames,_71=_70.length,_72={};dojo.clone=function(o){if(!o||typeof o!="object"||d.isFunction(o)){return o;}if(o.nodeType&&"cloneNode" in o){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}var r,i,l,s,_73;if(d.isArray(o)){r=[];for(i=0,l=o.length;i<l;++i){if(i in o){r.push(d.clone(o[i]));}}}else{r=o.constructor?new o.constructor():{};}for(_73 in o){s=o[_73];if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){r[_73]=d.clone(s);}}if(_71){for(i=0;i<_71;++i){_73=_70[i];s=o[_73];if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){r[_73]=s;}}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};var _74=/\{([^\}]+)\}/g;dojo.replace=function(_75,map,_76){return _75.replace(_76||_74,d.isFunction(map)?map:function(_77,k){return d.getObject(k,false,map);});};})();}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _78=function(arr,obj,cb){return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];};var _79=function(_7a,arr,_7b,_7c){var _7d=_78(arr,_7c,_7b);arr=_7d[0];for(var i=0,l=arr.length;i<l;++i){var _7e=!!_7d[2].call(_7d[1],arr[i],i,arr);if(_7a^_7e){return _7e;}}return _7a;};dojo.mixin(dojo,{indexOf:function(_7f,_80,_81,_82){var _83=1,end=_7f.length||0,i=0;if(_82){i=end-1;_83=end=-1;}if(_81!=undefined){i=_81;}if((_82&&i>end)||i<end){for(;i!=end;i+=_83){if(_7f[i]==_80){return i;}}}return -1;},lastIndexOf:function(_84,_85,_86){return dojo.indexOf(_84,_85,_86,true);},forEach:function(arr,_87,_88){if(!arr||!arr.length){return;}var _89=_78(arr,_88,_87);arr=_89[0];for(var i=0,l=arr.length;i<l;++i){_89[2].call(_89[1],arr[i],i,arr);}},every:function(arr,_8a,_8b){return _79(true,arr,_8a,_8b);},some:function(arr,_8c,_8d){return _79(false,arr,_8c,_8d);},map:function(arr,_8e,_8f){var _90=_78(arr,_8f,_8e);arr=_90[0];var _91=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_91.push(_90[2].call(_90[1],arr[i],i,arr));}return _91;},filter:function(arr,_92,_93){var _94=_78(arr,_93,_92);arr=_94[0];var _95=[];for(var i=0,l=arr.length;i<l;++i){if(_94[2].call(_94[1],arr[i],i,arr)){_95.push(arr[i]);}}return _95;}});})();}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");(function(){var d=dojo,mix=d._mixin,op=Object.prototype,_96=op.toString,_97=new Function,_98=0,_99="constructor";function err(msg){throw new Error("declare: "+msg);};function _9a(_9b){var _9c=[],_9d=[{cls:0,refs:[]}],_9e={},_9f=1,l=_9b.length,i=0,j,lin,_a0,top,_a1,rec,_a2,_a3;for(;i<l;++i){_a0=_9b[i];if(!_a0){err("mixin #"+i+" is null");}lin=_a0._meta?_a0._meta.bases:[_a0];top=0;for(j=lin.length-1;j>=0;--j){_a1=lin[j].prototype;if(!_a1.hasOwnProperty("declaredClass")){_a1.declaredClass="uniqName_"+(_98++);}_a2=_a1.declaredClass;if(!_9e.hasOwnProperty(_a2)){_9e[_a2]={count:0,refs:[],cls:lin[j]};++_9f;}rec=_9e[_a2];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_9d[0].refs.push(top);}while(_9d.length){top=_9d.pop();_9c.push(top.cls);--_9f;while(_a3=top.refs,_a3.length==1){top=_a3[0];if(!top||--top.count){top=0;break;}_9c.push(top.cls);--_9f;}if(top){for(i=0,l=_a3.length;i<l;++i){top=_a3[i];if(!--top.count){_9d.push(top);}}}}if(_9f){err("can't build consistent linearization");}_a0=_9b[0];_9c[0]=_a0?_a0._meta&&_a0===_9c[_9c.length-_a0._meta.bases.length]?_a0._meta.bases.length:1:0;return _9c;};function _a4(_a5,a,f){var _a6,_a7,_a8,_a9,_aa,_ab,_ac,opf,pos,_ad=this._inherited=this._inherited||{};if(typeof _a5=="string"){_a6=_a5;_a5=a;a=f;}f=0;_a9=_a5.callee;_a6=_a6||_a9.nom;if(!_a6){err("can't deduce a name to call inherited()");}_aa=this.constructor._meta;_a8=_aa.bases;pos=_ad.p;if(_a6!=_99){if(_ad.c!==_a9){pos=0;_ab=_a8[0];_aa=_ab._meta;if(_aa.hidden[_a6]!==_a9){_a7=_aa.chains;if(_a7&&typeof _a7[_a6]=="string"){err("calling chained method with inherited: "+_a6);}do{_aa=_ab._meta;_ac=_ab.prototype;if(_aa&&(_ac[_a6]===_a9&&_ac.hasOwnProperty(_a6)||_aa.hidden[_a6]===_a9)){break;}}while(_ab=_a8[++pos]);pos=_ab?pos:-1;}}_ab=_a8[++pos];if(_ab){_ac=_ab.prototype;if(_ab._meta&&_ac.hasOwnProperty(_a6)){f=_ac[_a6];}else{opf=op[_a6];do{_ac=_ab.prototype;f=_ac[_a6];if(f&&(_ab._meta?_ac.hasOwnProperty(_a6):f!==opf)){break;}}while(_ab=_a8[++pos]);}}f=_ab&&f||op[_a6];}else{if(_ad.c!==_a9){pos=0;_aa=_a8[0]._meta;if(_aa&&_aa.ctor!==_a9){_a7=_aa.chains;if(!_a7||_a7.constructor!=="manual"){err("calling chained constructor with inherited");}while(_ab=_a8[++pos]){_aa=_ab._meta;if(_aa&&_aa.ctor===_a9){break;}}pos=_ab?pos:-1;}}while(_ab=_a8[++pos]){_aa=_ab._meta;f=_aa?_aa.ctor:_ab;if(f){break;}}f=_ab&&f;}_ad.c=f;_ad.p=pos;if(f){return a===true?f:f.apply(this,a||_a5);}};function _ae(_af,_b0){if(typeof _af=="string"){return this.inherited(_af,_b0,true);}return this.inherited(_af,true);};function _b1(cls){var _b2=this.constructor._meta.bases;for(var i=0,l=_b2.length;i<l;++i){if(_b2[i]===cls){return true;}}return this instanceof cls;};function _b3(_b4,_b5){var _b6,t,i=0,l=d._extraNames.length;for(_b6 in _b5){t=_b5[_b6];if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){if(_96.call(t)=="[object Function]"){t.nom=_b6;}_b4[_b6]=t;}}for(;i<l;++i){_b6=d._extraNames[i];t=_b5[_b6];if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){if(_96.call(t)=="[object Function]"){t.nom=_b6;}_b4[_b6]=t;}}return _b4;};function _b7(_b8){_b3(this.prototype,_b8);return this;};function _b9(_ba,_bb){return function(){var a=arguments,_bc=a,a0=a[0],f,i,m,l=_ba.length,_bd;if(_bb&&(a0&&a0.preamble||this.preamble)){_bd=new Array(_ba.length);_bd[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_ba[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_bd[i]=a;}}for(i=l-1;i>=0;--i){f=_ba[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_bd?_bd[i]:a);}}f=this.postscript;if(f){f.apply(this,_bc);}};};function _be(_bf,_c0){return function(){var a=arguments,t=a,a0=a[0],f;if(_c0){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(_bf){_bf.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _c1(_c2){return function(){var a=arguments,i=0,f;for(;f=_c2[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _c3(_c4,_c5,_c6){return function(){var b,m,f,i=0,_c7=1;if(_c6){i=_c5.length-1;_c7=-1;}for(;b=_c5[i];i+=_c7){m=b._meta;f=(m?m.hidden:b.prototype)[_c4];if(f){f.apply(this,arguments);}}};};d.declare=function(_c8,_c9,_ca){var _cb,i,t,_cc,_cd,_ce,_cf,_d0=1,_d1=_c9;if(typeof _c8!="string"){_ca=_c9;_c9=_c8;_c8="";}_ca=_ca||{};if(_96.call(_c9)=="[object Array]"){_ce=_9a(_c9);t=_ce[0];_d0=_ce.length-t;_c9=_ce[_d0];}else{_ce=[0];if(_c9){t=_c9._meta;_ce=_ce.concat(t?t.bases:_c9);}}if(_c9){for(i=_d0-1;;--i){_97.prototype=_c9.prototype;_cb=new _97;if(!i){break;}t=_ce[i];mix(_cb,t._meta?t._meta.hidden:t.prototype);_cc=new Function;_cc.superclass=_c9;_cc.prototype=_cb;_c9=_cb.constructor=_cc;}}else{_cb={};}_b3(_cb,_ca);t=_ca.constructor;if(t!==op.constructor){t.nom=_99;_cb.constructor=t;}_97.prototype=0;for(i=_d0-1;i;--i){t=_ce[i]._meta;if(t&&t.chains){_cf=mix(_cf||{},t.chains);}}if(_cb["-chains-"]){_cf=mix(_cf||{},_cb["-chains-"]);}t=!_cf||!_cf.hasOwnProperty(_99);_ce[0]=_cc=(_cf&&_cf.constructor==="manual")?_c1(_ce):(_ce.length==1?_be(_ca.constructor,t):_b9(_ce,t));_cc._meta={bases:_ce,hidden:_ca,chains:_cf,parents:_d1,ctor:_ca.constructor};_cc.superclass=_c9&&_c9.prototype;_cc.extend=_b7;_cc.prototype=_cb;_cb.constructor=_cc;_cb.getInherited=_ae;_cb.inherited=_a4;_cb.isInstanceOf=_b1;if(_c8){_cb.declaredClass=_c8;d.setObject(_c8,_cc);}if(_cf){for(_cd in _cf){if(_cb[_cd]&&typeof _cf[_cd]=="string"&&_cd!=_99){t=_cb[_cd]=_c3(_cd,_ce,_cf[_cd]==="after");t.nom=_cd;}}}return _cc;};d.safeMixin=_b3;})();}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var lls;lls=[].concat(ls);for(var i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_d2,_d3,_d4){_d2=_d2||dojo.global;var f=_d2[_d3];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_d2[_d3]=d;}return f._listeners.push(_d4);},remove:function(_d5,_d6,_d7){var f=(_d5||dojo.global)[_d6];if(f&&f._listeners&&_d7--){delete f._listeners[_d7];}}};dojo.connect=function(obj,_d8,_d9,_da,_db){var a=arguments,_dc=[],i=0;_dc.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_dc.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_dc.push(a[i]);}return dojo._connect.apply(this,_dc);};dojo._connect=function(obj,_dd,_de,_df){var l=dojo._listener,h=l.add(obj,_dd,dojo.hitch(_de,_df));return [obj,_dd,h,l];};dojo.disconnect=function(_e0){if(_e0&&_e0[0]!==undefined){dojo._disconnect.apply(this,_e0);delete _e0[0];}};dojo._disconnect=function(obj,_e1,_e2,_e3){_e3.remove(obj,_e1,_e2);};dojo._topics={};dojo.subscribe=function(_e4,_e5,_e6){return [_e4,dojo._listener.add(dojo._topics,_e4,dojo.hitch(_e5,_e6))];};dojo.unsubscribe=function(_e7){if(_e7){dojo._listener.remove(dojo._topics,_e7[0],_e7[1]);}};dojo.publish=function(_e8,_e9){var f=dojo._topics[_e8];if(f){f.apply(this,_e9||[]);}};dojo.connectPublisher=function(_ea,obj,_eb){var pf=function(){dojo.publish(_ea,arguments);};return (_eb)?dojo.connect(obj,_eb,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(_ec){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_ec;this.silentlyCancelled=false;this.isFiring=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(err instanceof Error)){var res=err;var msg="Deferred Cancelled";if(err&&err.toString){msg+=": "+err.toString();}err=new Error(msg);err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,_ed){var _ee=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_ee,_ee);},addCallback:function(cb,_ef){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,_f0){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0&&!this.isFiring){this._fire();}return this;},_fire:function(){this.isFiring=true;var _f1=this.chain;var _f2=this.fired;var res=this.results[_f2];var _f3=this;var cb=null;while((_f1.length>0)&&(this.paused==0)){var f=_f1.shift()[_f2];if(!f){continue;}var _f4=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}_f2=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){_f3._resback(res);_f3.paused--;if((_f3.paused==0)&&(_f3.fired>=0)){_f3._fire();}};this.paused++;}};if(dojo.config.debugAtAllCosts){_f4.call(this);}else{try{_f4.call(this);}catch(err){_f2=1;res=err;}}}this.fired=_f2;this.results[_f2]=res;this.isFiring=false;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(_f5){return eval("("+_f5+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_f6,_f7){if(it===undefined){return "undefined";}var _f8=typeof it;if(_f8=="number"||_f8=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _f9=arguments.callee;var _fa;_f7=_f7||"";var _fb=_f6?_f7+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_fa=tf.call(it);if(it!==_fa){return _f9(_fa,_f6,_fb);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_f6?" ":"";var _fc=_f6?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_f9(obj,_f6,_fb);if(typeof val!="string"){val="undefined";}return _fc+_fb+val;});return "["+res.join(","+sep)+_fc+_f7+"]";}if(_f8=="function"){return null;}var _fd=[],key;for(key in it){var _fe,val;if(typeof key=="number"){_fe="\""+key+"\"";}else{if(typeof key=="string"){_fe=dojo._escapeString(key);}else{continue;}}val=_f9(it[key],_f6,_fb);if(typeof val!="string"){continue;}_fd.push(_fc+_fb+_fe+":"+sep+val);}return "{"+_fd.join(","+sep)+_fc+_f7+"}";};}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_ff){if(_ff){this.setColor(_ff);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_100){if(d.isString(_100)){d.colorFromString(_100,this);}else{if(d.isArray(_100)){d.colorFromArray(_100,this);}else{this._set(_100.r,_100.g,_100.b,_100.a);if(!(_100 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=d.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_101){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_101?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_102,end,_103,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_102[x]+(end[x]-_102[x])*_103;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_104,obj){var m=_104.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_105,obj){var t=obj||new d.Color(),bits=(_105.length==4)?4:8,mask=(1<<bits)-1;_105=Number("0x"+_105.substr(1));if(isNaN(_105)){return null;}d.forEach(["b","g","r"],function(x){var c=_105&mask;_105>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_106,_107){dojo.global=_106;dojo.doc=_107;};dojo.withGlobal=function(_108,_109,_10a,_10b){var _10c=dojo.global;try{dojo.global=_108;return dojo.withDoc.call(null,_108.document,_109,_10a,_10b);}finally{dojo.global=_10c;}};dojo.withDoc=function(_10d,_10e,_10f,_110){var _111=dojo.doc,_112=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_10d;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_10f&&typeof _10e=="string"){_10e=_10f[_10e];}return _10e.apply(_10f,_110||[]);}finally{dojo.doc=_111;delete dojo._bodyLtr;if(_112!==undefined){dojo._bodyLtr=_112;}dojo.isQuirks=oldQ;}};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _113=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_114,_115){if(node){_114=del._normalizeEventName(_114);if(!dojo.isIE&&(_114=="mouseenter"||_114=="mouseleave")){_114=(_114=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_114,_115,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_116){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,_117){return del._fixEvent(evt,_117);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _118=dojo._listener;dojo._connect=function(obj,_119,_11a,_11b,_11c){var _11d=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_11d?(_11c?2:1):0,l=[dojo._listener,del,_118][lid];var h=l.add(obj,_119,dojo.hitch(_11a,_11b));return [obj,_119,h,lid];};dojo._disconnect=function(obj,_11e,_11f,_120){([dojo._listener,del,_118][_120]).remove(obj,_11e,_11f);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var _121=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_121];};if(dojo.isIE){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_122){return e.button&_122;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_123){return e.button==_123;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}if(dojo.isIE){var _124=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _125=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_118=iel=dojo._ie_listener={handlers:[],add:function(_126,_127,_128){_126=_126||dojo.global;var f=_126[_127];if(!f||!f[_125]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_125]=[];f=_126[_127]=d;}return f[_125].push(ieh.push(_128)-1);},remove:function(_129,_12a,_12b){var f=(_129||dojo.global)[_12a],l=f&&f[_125];if(f&&l&&_12b--){delete ieh[l[_12b]];delete l[_12b];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_12c,fp){if(!node){return;}_12c=del._normalizeEventName(_12c);if(_12c=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_125]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_12c,del._fixCallback(fp));},remove:function(node,_12d,_12e){_12d=del._normalizeEventName(_12d);iel.remove(node,_12d,_12e);if(_12d=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_12f){return _12f.slice(0,2)!="on"?"on"+_12f:_12f;},_nop:function(){},_fixEvent:function(evt,_130){if(!evt){var w=_130&&(_130.ownerDocument||_130.document||_130).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_130||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _131=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _132=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_131.scrollLeft||0)-_132.x;evt.pageY=evt.clientY+(_131.scrollTop||0)-_132.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_125]){return;}var k=evt.keyCode;var _133=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_133||evt.ctrlKey){var c=_133?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_124(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_124(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_134){var faux=dojo.mixin({},evt,_134);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_135){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=c<41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,_136,fp){if(!node){return;}var _137=del._add(node,_136,fp);if(del._normalizeEventName(_136)=="keypress"){_137._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _138=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_138||evt.ctrlKey){var c=_138?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if(!evt.shiftKey&&c>=65&&c<=90){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux);}});}return _137;},remove:function(node,_139,_13a){if(node){if(_13a._stealthKeyDownHandle){del._remove(node,"keydown",_13a._stealthKeyDownHandle);}del._remove(node,_139,_13a);}},_fixEvent:function(evt,_13b){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c>=32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_13c){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_13c,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_13c,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(typeof id!="string"){return id;}var _13d=doc||dojo.doc,te=_13d.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_13d.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dojo.byId=function(id,doc){return (typeof id=="string")?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var byId=d.byId;var _13e=null,_13f;d.addOnWindowUnload(function(){_13e=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_13e||_13f!=doc){_13e=doc.createElement("div");_13f=doc;}_13e.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_13e.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_140){try{node=byId(node);_140=byId(_140);while(node){if(node==_140){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_141){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_141?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_141?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_141?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _142=function(node,ref){var _143=ref.parentNode;if(_143){_143.insertBefore(node,ref);}};var _144=function(node,ref){var _145=ref.parentNode;if(_145){if(_145.lastChild==ref){_145.appendChild(node);}else{_145.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_146,_147){_146=byId(_146);if(typeof node=="string"){node=node.charAt(0)=="<"?d._toDom(node,_146.ownerDocument):byId(node);}if(typeof _147=="number"){var cn=_146.childNodes;if(!cn.length||cn.length<=_147){_146.appendChild(node);}else{_142(node,cn[_147<0?0:_147]);}}else{switch(_147){case "before":_142(node,_146);break;case "after":_144(node,_146);break;case "replace":_146.parentNode.replaceChild(node,_146);break;case "only":d.empty(_146);_146.appendChild(node);break;case "first":if(_146.firstChild){_142(node,_146.firstChild);break;}default:_146.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_148,_149){return parseFloat(_149)||0;};}else{d._toPixelValue=function(_14a,_14b){if(!_14b){return 0;}if(_14b=="medium"){return 4;}if(_14b.slice&&_14b.slice(-2)=="px"){return parseFloat(_14b);}with(_14a){var _14c=style.left;var _14d=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_14b;_14b=style.pixelLeft;}catch(e){_14b=0;}style.left=_14c;runtimeStyle.left=_14d;}return _14b;};}var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};dojo._getOpacity=d.isIE?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_14e){var ov=_14e*100;node.style.zoom=1;af(node,1).Enabled=!(_14e==1);if(!af(node)){node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_14e);});}return _14e;}:function(node,_14f){return node.style.opacity=_14f;};var _150={left:true,top:true};var _151=/margin|padding|width|height|max|min|offset/;var _152=function(node,type,_153){type=type.toLowerCase();if(d.isIE){if(_153=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_153){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _150)){_150[type]=_151.test(type);}return _150[type]?px(node,_153):_153;};var _154=d.isIE?"styleFloat":"cssFloat",_155={"cssFloat":_154,"styleFloat":_154,"float":_154};dojo.style=function(node,_156,_157){var n=byId(node),args=arguments.length,op=(_156=="opacity");_156=_155[_156]||_156;if(args==3){return op?d._setOpacity(n,_157):n.style[_156]=_157;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _156!="string"){for(var x in _156){d.style(node,x,_156[x]);}return s;}return (args==1)?s:_152(n,_156,s[_156]||n.style[_156]);};dojo._getPadExtents=function(n,_158){var s=_158||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_159){var ne="none",s=_159||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_15a){var s=_15a||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_15b){var s=_15b||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_15c){var s=_15c||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getContentBox=function(node,_15d){var s=_15d||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_15e){var s=_15e||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);};dojo._setContentSize=function(node,_15f,_160,_161){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_161);if(_15f>=0){_15f+=pb.w;}if(_160>=0){_160+=pb.h;}}d._setBox(node,NaN,NaN,_15f,_160);};dojo._setMarginBox=function(node,_162,_163,_164,_165,_166){var s=_166||gcs(node),bb=d._usesBorderBox(node),pb=bb?_167:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_164>=0&&!ns.width){ns.width="4px";}if(_165>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_164>=0){_164=Math.max(_164-pb.w-mb.w,0);}if(_165>=0){_165=Math.max(_165-pb.h-mb.h,0);}d._setBox(node,_162,_163,_164,_165);};var _167={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _168=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_169=0,_16a=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_169+=val-0;if(node==_16a){break;}}node=node.parentNode;}return _169;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.doc.documentElement,n.clientHeight?{x:d._fixIeBiDiScrollLeft(n.scrollLeft),y:n.scrollTop}:(n=d.body(),{x:n.scrollLeft||0,y:n.scrollTop||0}));};dojo._isBodyLtr=function(){return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(_16b){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=d.isQuirks?dd.body:dd.documentElement;return _16b+de.clientWidth-de.scrollWidth;}return _16b;};dojo._abs=dojo.position=function(node,_16c){var db=d.body(),dh=db.parentNode,ret;node=byId(node);if(node["getBoundingClientRect"]){ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var _16d=d._getIeDocumentElementOffset();ret.x-=_16d.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_16d.y+(d.isQuirks?db.clientTop+db.offsetTop:0);}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}}}else{ret={x:0,y:0,w:node.offsetWidth,h:node.offsetHeight};if(node["offsetParent"]){ret.x-=_168(node,"scrollLeft");ret.y-=_168(node,"scrollTop");var _16e=node;do{var n=_16e.offsetLeft,t=_16e.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(_16e);if(_16e!=node){if(d.isMoz){ret.x+=2*px(_16e,cs.borderLeftWidth);ret.y+=2*px(_16e,cs.borderTopWidth);}else{ret.x+=px(_16e,cs.borderLeftWidth);ret.y+=px(_16e,cs.borderTopWidth);}}if(d.isMoz&&cs.position=="static"){var _16f=_16e.parentNode;while(_16f!=_16e.offsetParent){var pcs=gcs(_16f);if(pcs.position=="static"){ret.x+=px(_16e,pcs.borderLeftWidth);ret.y+=px(_16e,pcs.borderTopWidth);}_16f=_16f.parentNode;}}_16e=_16e.offsetParent;}while((_16e!=dh)&&_16e);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}if(_16c){var _170=d._docScroll();ret.x+=_170.x;ret.y+=_170.y;}return ret;};dojo.coords=function(node,_171){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_171);mb.x=abs.x;mb.y=abs.y;return mb;};var _172={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_173={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_174={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _175=function(name){return _173[name.toLowerCase()]||name;};var _176=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _174[_172[lc]||name]||_176(byId(node),_173[lc]||name);};var _177={},_178=0,_179=dojo._scopeName+"attrid",_17a={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_17b){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_17c=_172[lc]||name,_17d=_174[_17c],_17e=_173[lc]||name;if(args==3){do{if(_17c=="style"&&typeof _17b!="string"){d.style(node,_17b);break;}if(_17c=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _17a){d.empty(node);node.appendChild(d._toDom(_17b,node.ownerDocument));}else{node[_17c]=_17b;}break;}if(d.isFunction(_17b)){var _17f=d.attr(node,_179);if(!_17f){_17f=_178++;d.attr(node,_179,_17f);}if(!_177[_17f]){_177[_17f]={};}var h=_177[_17f][_17c];if(h){d.disconnect(h);}else{try{delete node[_17c];}catch(e){}}_177[_17f][_17c]=d.connect(node,_17c,_17b);break;}if(_17d||typeof _17b=="boolean"){node[_17c]=_17b;break;}node.setAttribute(_17e,_17b);}while(false);return node;}_17b=node[_17c];if(_17d&&typeof _17b!="undefined"){return _17b;}if(_17c!="href"&&(typeof _17b=="boolean"||d.isFunction(_17b))){return _17b;}return _176(node,_17e)?node.getAttribute(_17e):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_175(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_180=_172[lc]||name;if((_180 in node)&&_180!="href"){return node[_180];}var _181=_173[lc]||name;return _176(node,_181)?node.getAttribute(_181):null;};dojo.create=function(tag,_182,_183,pos){var doc=d.doc;if(_183){_183=byId(_183);doc=_183.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_182){d.attr(tag,_182);}if(_183){d.place(tag,_183,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _184={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_185=/<\s*([\w\:]+)/,_186={},_187=0,_188="__"+d._scopeName+"ToDomId";for(var _189 in _184){var tw=_184[_189];tw.pre=_189=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}d._toDom=function(frag,doc){doc=doc||d.doc;var _18a=doc[_188];if(!_18a){doc[_188]=_18a=++_187+"";_186[_18a]=doc.createElement("div");}frag+="";var _18b=frag.match(_185),tag=_18b?_18b[1].toLowerCase():"",_18c=_186[_18a],wrap,i,fc,df;if(_18b&&_184[tag]){wrap=_184[tag];_18c.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_18c=_18c.firstChild;}}else{_18c.innerHTML=frag;}if(_18c.childNodes.length==1){return _18c.removeChild(_18c.firstChild);}df=doc.createDocumentFragment();while(fc=_18c.firstChild){df.appendChild(fc);}return df;};var _18d="className";dojo.hasClass=function(node,_18e){return ((" "+byId(node)[_18d]+" ").indexOf(" "+_18e+" ")>=0);};var _18f=/\s+/,a1=[""],_190=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_18f);}}return s;};dojo.addClass=function(node,_191){node=byId(node);_191=_190(_191);var cls=" "+node[_18d]+" ";for(var i=0,len=_191.length,c;i<len;++i){c=_191[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}node[_18d]=d.trim(cls);};dojo.removeClass=function(node,_192){node=byId(node);var cls;if(_192!==undefined){_192=_190(_192);cls=" "+node[_18d]+" ";for(var i=0,len=_192.length;i<len;++i){cls=cls.replace(" "+_192[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_18d]!=cls){node[_18d]=cls;}};dojo.toggleClass=function(node,_193,_194){if(_194===undefined){_194=!d.hasClass(node,_193);}d[_194?"addClass":"removeClass"](node,_193);};})();}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var ap=Array.prototype,aps=ap.slice,apc=ap.concat;var tnl=function(a,_195,_196){if(!a.sort){a=aps.call(a,0);}var ctor=_196||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _195?a._stash(_195):a;};var _197=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||d.global;return function(node){a[0]=node;return f.apply(o,a);};};var _198=function(f,o){return function(){this.forEach(_197(f,arguments,o));return this;};};var _199=function(f,o){return function(){return this.map(_197(f,arguments,o));};};var _19a=function(f,o){return function(){return this.filter(_197(f,arguments,o));};};var _19b=function(f,g,o){return function(){var a=arguments,body=_197(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _19c=function(a){return a.length==1&&(typeof a[0]=="string");};var _19d=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};d._NodeListCtor=d.NodeList;var nl=d.NodeList,nlp=nl.prototype;nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_199;nl._adaptAsForEach=_198;nl._adaptAsFilter=_19a;nl._adaptWithCondition=_19b;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});d.forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=d[name];nlp[name]=function(){return f.apply(d,[this].concat(aps.call(arguments,0)));};});d.forEach(["attr","style"],function(name){nlp[name]=_19b(d[name],_19c);});d.forEach(["connect","addClass","removeClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_198(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_19e,_19f){var _1a0=_19e.parse===true?true:false;if(typeof _19e.template=="string"){var _1a1=_19e.templateFunc||(dojo.string&&dojo.string.substitute);_19e=_1a1?_1a1(_19e.template,_19e):_19e;}var type=(typeof _19e);if(type=="string"||type=="number"){_19e=dojo._toDom(_19e,(_19f&&_19f.ownerDocument));if(_19e.nodeType==11){_19e=dojo._toArray(_19e.childNodes);}else{_19e=[_19e];}}else{if(!dojo.isArrayLike(_19e)){_19e=[_19e];}else{if(!dojo.isArray(_19e)){_19e=dojo._toArray(_19e);}}}if(_1a0){_19e._runParse=true;}return _19e;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1a2,_1a3,_1a4){if(_1a2.nodeType!=1&&_1a3=="only"){return;}var _1a5=_1a2,_1a6;var _1a7=ary.length;for(var i=_1a7-1;i>=0;i--){var node=(_1a4?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1a6){_1a6=_1a5.ownerDocument.createElement("div");}_1a6.appendChild(node);dojo.parser.parse(_1a6);node=_1a6.firstChild;while(_1a6.firstChild){_1a6.removeChild(_1a6.firstChild);}}if(i==_1a7-1){dojo.place(node,_1a5,_1a3);}else{_1a5.parentNode.insertBefore(node,_1a5);}_1a5=node;}},_stash:function(_1a8){this._parent=_1a8;return this;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor();}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(d.map(this,func,obj),this);},forEach:function(_1a9,_1aa){d.forEach(this,_1a9,_1aa);return this;},coords:_199(d.coords),position:_199(d.position),place:function(_1ab,_1ac){var item=d.query(_1ab)[0];return this.forEach(function(node){d.place(node,item,_1ac);});},orphan:function(_1ad){return (_1ad?d._filterQueryResult(this,_1ad):this).forEach(_19d);},adopt:function(_1ae,_1af){return d.query(_1ae).place(this[0],_1af)._stash(this);},query:function(_1b0){if(!_1b0){return this;}var ret=this.map(function(node){return d.query(_1b0,node).filter(function(_1b1){return _1b1!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1b2){var a=arguments,_1b3=this,_1b4=0;if(typeof _1b2=="string"){_1b3=d._filterQueryResult(this,a[0]);if(a.length==1){return _1b3._stash(this);}_1b4=1;}return this._wrap(d.filter(_1b3,a[_1b4],a[_1b4+1]),this);},addContent:function(_1b5,_1b6){_1b5=this._normalize(_1b5,this[0]);for(var i=0,node;node=this[i];i++){this._place(_1b5,node,_1b6,i>0);}return this;},instantiate:function(_1b7,_1b8){var c=d.isFunction(_1b7)?_1b7:d.getObject(_1b7);_1b8=_1b8||{};return this.forEach(function(node){new c(_1b8,node);});},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];d.forEach(nl.events,function(evt){var _1b9="on"+evt;nlp[_1b9]=function(a,b){return this.connect(_1b9,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;if(typeof dojo!="undefined"){dojo.provide("dojo._base.query");}(function(d){var trim=d.trim;var each=d.forEach;var qlc=d._NodeListCtor=d.NodeList;var _1ba=function(){return d.doc;};var _1bb=((d.isWebKit||d.isMozilla)&&((_1ba().compatMode)=="BackCompat"));var _1bc=!!_1ba().firstChild["children"]?"children":"childNodes";var _1bd=">~+";var _1be=false;var _1bf=function(){return true;};var _1c0=function(_1c1){if(_1bd.indexOf(_1c1.slice(-1))>=0){_1c1+=" * ";}else{_1c1+=" ";}var ts=function(s,e){return trim(_1c1.slice(s,e));};var _1c2=[];var _1c3=-1,_1c4=-1,_1c5=-1,_1c6=-1,_1c7=-1,inId=-1,_1c8=-1,lc="",cc="",_1c9;var x=0,ql=_1c1.length,_1ca=null,_1cb=null;var _1cc=function(){if(_1c8>=0){var tv=(_1c8==x)?null:ts(_1c8,x);_1ca[(_1bd.indexOf(tv)<0)?"tag":"oper"]=tv;_1c8=-1;}};var _1cd=function(){if(inId>=0){_1ca.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1ce=function(){if(_1c7>=0){_1ca.classes.push(ts(_1c7+1,x).replace(/\\/g,""));_1c7=-1;}};var _1cf=function(){_1cd();_1cc();_1ce();};var _1d0=function(){_1cf();if(_1c6>=0){_1ca.pseudos.push({name:ts(_1c6+1,x)});}_1ca.loops=(_1ca.pseudos.length||_1ca.attrs.length||_1ca.classes.length);_1ca.oquery=_1ca.query=ts(_1c9,x);_1ca.otag=_1ca.tag=(_1ca["oper"])?null:(_1ca.tag||"*");if(_1ca.tag){_1ca.tag=_1ca.tag.toUpperCase();}if(_1c2.length&&(_1c2[_1c2.length-1].oper)){_1ca.infixOper=_1c2.pop();_1ca.query=_1ca.infixOper.query+" "+_1ca.query;}_1c2.push(_1ca);_1ca=null;};for(;lc=cc,cc=_1c1.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_1ca){_1c9=x;_1ca={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return (_1be)?this.otag:this.tag;}};_1c8=x;}if(_1c3>=0){if(cc=="]"){if(!_1cb.attr){_1cb.attr=ts(_1c3+1,x);}else{_1cb.matchFor=ts((_1c5||_1c3+1),x);}var cmf=_1cb.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1cb.matchFor=cmf.slice(1,-1);}}_1ca.attrs.push(_1cb);_1cb=null;_1c3=_1c5=-1;}else{if(cc=="="){var _1d1=("|~^$*".indexOf(lc)>=0)?lc:"";_1cb.type=_1d1+cc;_1cb.attr=ts(_1c3+1,x-_1d1.length);_1c5=x+1;}}}else{if(_1c4>=0){if(cc==")"){if(_1c6>=0){_1cb.value=ts(_1c4+1,x);}_1c6=_1c4=-1;}}else{if(cc=="#"){_1cf();inId=x+1;}else{if(cc=="."){_1cf();_1c7=x;}else{if(cc==":"){_1cf();_1c6=x;}else{if(cc=="["){_1cf();_1c3=x;_1cb={};}else{if(cc=="("){if(_1c6>=0){_1cb={name:ts(_1c6+1,x),value:null};_1ca.pseudos.push(_1cb);}_1c4=x;}else{if((cc==" ")&&(lc!=cc)){_1d0();}}}}}}}}}return _1c2;};var _1d2=function(_1d3,_1d4){if(!_1d3){return _1d4;}if(!_1d4){return _1d3;}return function(){return _1d3.apply(window,arguments)&&_1d4.apply(window,arguments);};};var _1d5=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _1d6=function(n){return (1==n.nodeType);};var _1d7="";var _1d8=function(elem,attr){if(!elem){return _1d7;}if(attr=="class"){return elem.className||_1d7;}if(attr=="for"){return elem.htmlFor||_1d7;}if(attr=="style"){return elem.style.cssText||_1d7;}return (_1be?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1d7;};var _1d9={"*=":function(attr,_1da){return function(elem){return (_1d8(elem,attr).indexOf(_1da)>=0);};},"^=":function(attr,_1db){return function(elem){return (_1d8(elem,attr).indexOf(_1db)==0);};},"$=":function(attr,_1dc){var tval=" "+_1dc;return function(elem){var ea=" "+_1d8(elem,attr);return (ea.lastIndexOf(_1dc)==(ea.length-_1dc.length));};},"~=":function(attr,_1dd){var tval=" "+_1dd+" ";return function(elem){var ea=" "+_1d8(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_1de){var _1df=" "+_1de+"-";return function(elem){var ea=" "+_1d8(elem,attr);return ((ea==_1de)||(ea.indexOf(_1df)==0));};},"=":function(attr,_1e0){return function(elem){return (_1d8(elem,attr)==_1e0);};}};var _1e1=(typeof _1ba().firstChild.nextElementSibling=="undefined");var _1e2=!_1e1?"nextElementSibling":"nextSibling";var _1e3=!_1e1?"previousElementSibling":"previousSibling";var _1e4=(_1e1?_1d6:_1bf);var _1e5=function(node){while(node=node[_1e3]){if(_1e4(node)){return false;}}return true;};var _1e6=function(node){while(node=node[_1e2]){if(_1e4(node)){return false;}}return true;};var _1e7=function(node){var root=node.parentNode;var i=0,tret=root[_1bc],ci=(node["_i"]||-1),cl=(root["_l"]||-1);if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}root["_l"]=l;ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_1e2]){if(_1e4(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _1e8=function(elem){return !((_1e7(elem))%2);};var _1e9=function(elem){return ((_1e7(elem))%2);};var _1ea={"checked":function(name,_1eb){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"first-child":function(){return _1e5;},"last-child":function(){return _1e6;},"only-child":function(name,_1ec){return function(node){if(!_1e5(node)){return false;}if(!_1e6(node)){return false;}return true;};},"empty":function(name,_1ed){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_1ee){var cz=_1ee.charAt(0);if(cz=="\""||cz=="'"){_1ee=_1ee.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_1ee)>=0);};},"not":function(name,_1ef){var p=_1c0(_1ef)[0];var _1f0={el:1};if(p.tag!="*"){_1f0.tag=1;}if(!p.classes.length){_1f0.classes=1;}var ntf=_1f1(p,_1f0);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_1f2){var pi=parseInt;if(_1f2=="odd"){return _1e9;}else{if(_1f2=="even"){return _1e8;}}if(_1f2.indexOf("n")!=-1){var _1f3=_1f2.split("n",2);var pred=_1f3[0]?((_1f3[0]=="-")?-1:pi(_1f3[0])):1;var idx=_1f3[1]?pi(_1f3[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_1e7(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_1f2=idx;}}var _1f4=pi(_1f2);return function(elem){return (_1e7(elem)==_1f4);};}};var _1f5=(d.isIE)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1be?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _1f1=function(_1f6,_1f7){if(!_1f6){return _1bf;}_1f7=_1f7||{};var ff=null;if(!("el" in _1f7)){ff=_1d2(ff,_1d6);}if(!("tag" in _1f7)){if(_1f6.tag!="*"){ff=_1d2(ff,function(elem){return (elem&&(elem.tagName==_1f6.getTag()));});}}if(!("classes" in _1f7)){each(_1f6.classes,function(_1f8,idx,arr){var re=new RegExp("(?:^|\\s)"+_1f8+"(?:\\s|$)");ff=_1d2(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _1f7)){each(_1f6.pseudos,function(_1f9){var pn=_1f9.name;if(_1ea[pn]){ff=_1d2(ff,_1ea[pn](pn,_1f9.value));}});}if(!("attrs" in _1f7)){each(_1f6.attrs,function(attr){var _1fa;var a=attr.attr;if(attr.type&&_1d9[attr.type]){_1fa=_1d9[attr.type](a,attr.matchFor);}else{if(a.length){_1fa=_1f5(a);}}if(_1fa){ff=_1d2(ff,_1fa);}});}if(!("id" in _1f7)){if(_1f6.id){ff=_1d2(ff,function(elem){return (!!elem&&(elem.id==_1f6.id));});}}if(!ff){if(!("default" in _1f7)){ff=_1bf;}}return ff;};var _1fb=function(_1fc){return function(node,ret,bag){while(node=node[_1e2]){if(_1e1&&(!_1d6(node))){continue;}if((!bag||_1fd(node,bag))&&_1fc(node)){ret.push(node);}break;}return ret;};};var _1fe=function(_1ff){return function(root,ret,bag){var te=root[_1e2];while(te){if(_1e4(te)){if(bag&&!_1fd(te,bag)){break;}if(_1ff(te)){ret.push(te);}}te=te[_1e2];}return ret;};};var _200=function(_201){_201=_201||_1bf;return function(root,ret,bag){var te,x=0,tret=root[_1bc];while(te=tret[x++]){if(_1e4(te)&&(!bag||_1fd(te,bag))&&(_201(te,x))){ret.push(te);}}return ret;};};var _202=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _203={};var _204=function(_205){var _206=_203[_205.query];if(_206){return _206;}var io=_205.infixOper;var oper=(io?io.oper:"");var _207=_1f1(_205,{el:1});var qt=_205.tag;var _208=("*"==qt);var ecs=_1ba()["getElementsByClassName"];if(!oper){if(_205.id){_207=(!_205.loops&&_208)?_1bf:_1f1(_205,{el:1,id:1});_206=function(root,arr){var te=d.byId(_205.id,(root.ownerDocument||root));if(!te||!_207(te)){return;}if(9==root.nodeType){return _1d5(te,arr);}else{if(_202(te,root)){return _1d5(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_205.classes.length&&!_1bb){_207=_1f1(_205,{el:1,classes:1,id:1});var _209=_205.classes.join(" ");_206=function(root,arr,bag){var ret=_1d5(0,arr),te,x=0;var tret=root.getElementsByClassName(_209);while((te=tret[x++])){if(_207(te,root)&&_1fd(te,bag)){ret.push(te);}}return ret;};}else{if(!_208&&!_205.loops){_206=function(root,arr,bag){var ret=_1d5(0,arr),te,x=0;var tret=root.getElementsByTagName(_205.getTag());while((te=tret[x++])){if(_1fd(te,bag)){ret.push(te);}}return ret;};}else{_207=_1f1(_205,{el:1,tag:1,id:1});_206=function(root,arr,bag){var ret=_1d5(0,arr),te,x=0;var tret=root.getElementsByTagName(_205.getTag());while((te=tret[x++])){if(_207(te,root)&&_1fd(te,bag)){ret.push(te);}}return ret;};}}}}else{var _20a={el:1};if(_208){_20a.tag=1;}_207=_1f1(_205,_20a);if("+"==oper){_206=_1fb(_207);}else{if("~"==oper){_206=_1fe(_207);}else{if(">"==oper){_206=_200(_207);}}}}return _203[_205.query]=_206;};var _20b=function(root,_20c){var _20d=_1d5(root),qp,x,te,qpl=_20c.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_20c[i];x=_20d.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_204(qp);for(var j=0;(te=_20d[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_20d=ret;}return ret;};var _20e={},_20f={};var _210=function(_211){var _212=_1c0(trim(_211));if(_212.length==1){var tef=_204(_212[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _20b(root,_212);};};var nua=navigator.userAgent;var wk="WebKit/";var _213=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _214=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _215=(!!_1ba()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_213));var _216=/n\+\d|([^ ])?([>~+])([^ =])?/g;var _217=function(_218,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_218;};var _219=function(_21a,_21b){_21a=_21a.replace(_216,_217);if(_215){var _21c=_20f[_21a];if(_21c&&!_21b){return _21c;}}var _21d=_20e[_21a];if(_21d){return _21d;}var qcz=_21a.charAt(0);var _21e=(-1==_21a.indexOf(" "));if((_21a.indexOf("#")>=0)&&(_21e)){_21b=true;}var _21f=(_215&&(!_21b)&&(_1bd.indexOf(qcz)==-1)&&(!d.isIE||(_21a.indexOf(":")==-1))&&(!(_1bb&&(_21a.indexOf(".")>=0)))&&(_21a.indexOf(":contains")==-1)&&(_21a.indexOf(":checked")==-1)&&(_21a.indexOf("|=")==-1));if(_21f){var tq=(_1bd.indexOf(_21a.charAt(_21a.length-1))>=0)?(_21a+" *"):_21a;return _20f[_21a]=function(root){try{if(!((9==root.nodeType)||_21e)){throw "";}var r=root[qsa](tq);r[_214]=true;return r;}catch(e){return _219(_21a,true)(root);}};}else{var _220=_21a.split(/\s*,\s*/);return _20e[_21a]=((_220.length<2)?_210(_21a):function(root){var _221=0,ret=[],tp;while((tp=_220[_221++])){ret=ret.concat(_210(tp)(root));}return ret;});}};var _222=0;var _223=d.isIE?function(node){if(_1be){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_222)||_222);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_222));};var _1fd=function(node,bag){if(!bag){return 1;}var id=_223(node);if(!bag[id]){return bag[id]=1;}return 0;};var _224="_zipIdx";var _225=function(arr){if(arr&&arr.nozip){return (qlc._wrap)?qlc._wrap(arr):arr;}var ret=new qlc();if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_222++;if(d.isIE&&_1be){var _226=_222+"";arr[0].setAttribute(_224,_226);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_224)!=_226){ret.push(te);}te.setAttribute(_224,_226);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_1d6(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_224]=_222;}for(var x=1,te;te=arr[x];x++){if(arr[x][_224]!=_222){ret.push(te);}te[_224]=_222;}}}return ret;};d.query=function(_227,root){qlc=d._NodeListCtor;if(!_227){return new qlc();}if(_227.constructor==qlc){return _227;}if(typeof _227!="string"){return new qlc(_227);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_1ba();var od=root.ownerDocument||root.documentElement;_1be=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));var r=_219(_227)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _225(r);};d.query.pseudos=_1ea;d._filterQueryResult=function(_228,_229){var _22a=new d._NodeListCtor();var _22b=_1f1(_1c0(_229)[0]);for(var x=0,te;te=_228[x];x++){if(_22b(te)){_22a.push(te);}}return _22a;};})(this["queryPortability"]||this["acme"]||dojo);}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _22c=dojo,cfg=_22c.config;function _22d(obj,name,_22e){if(_22e===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_22e];}else{if(_22c.isArray(val)){val.push(_22e);}else{obj[name]=_22e;}}};dojo.fieldToObject=function(_22f){var ret=null;var item=_22c.byId(_22f);if(item){var _230=item.name;var type=(item.type||"").toLowerCase();if(_230&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_22c.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_231){var ret={};var _232="file|submit|image|reset|button|";_22c.forEach(dojo.byId(_231).elements,function(item){var _233=item.name;var type=(item.type||"").toLowerCase();if(_233&&type&&_232.indexOf(type)==-1&&!item.disabled){_22d(ret,_233,_22c.fieldToObject(item));if(type=="image"){ret[_233+".x"]=ret[_233+".y"]=ret[_233].x=ret[_233].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _234=[];var _235={};for(var name in map){var _236=map[name];if(_236!=_235[name]){var _237=enc(name)+"=";if(_22c.isArray(_236)){for(var i=0;i<_236.length;i++){_234.push(_237+enc(_236[i]));}}else{_234.push(_237+enc(_236));}}}return _234.join("&");};dojo.formToQuery=function(_238){return _22c.objectToQuery(_22c.formToObject(_238));};dojo.formToJson=function(_239,_23a){return _22c.toJson(_22c.formToObject(_239),_23a);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_22c.forEach(qp,function(item){if(item.length){var _23b=item.split("=");var name=dec(_23b.shift());var val=dec(_23b.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_22c.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;var _23c=_22c._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _22c.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _23d=xhr.responseText;var _23e=_23d.indexOf("/*");var _23f=_23d.lastIndexOf("*/");if(_23e==-1||_23f==-1){throw new Error("JSON was not comment filtered");}return _22c.fromJson(_23d.substring(_23e+2,_23f));},javascript:function(xhr){return _22c.eval(xhr.responseText);},xml:function(xhr){var _240=xhr.responseXML;if(_22c.isIE&&(!_240||!_240.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_22c.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_240=dom;}catch(e){return false;}return true;});}return _240;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _23c["json-comment-filtered"](xhr);}else{return _23c["json"](xhr);}}};dojo._ioSetArgs=function(args,_241,_242,_243){var _244={args:args,url:args.url};var _245=null;if(args.form){var form=_22c.byId(args.form);var _246=form.getAttributeNode("action");_244.url=_244.url||(_246?_246.value:null);_245=_22c.formToObject(form);}var _247=[{}];if(_245){_247.push(_245);}if(args.content){_247.push(args.content);}if(args.preventCache){_247.push({"dojo.preventCache":new Date().valueOf()});}_244.query=_22c.objectToQuery(_22c.mixin.apply(null,_247));_244.handleAs=args.handleAs||"text";var d=new _22c.Deferred(_241);d.addCallbacks(_242,function(_248){return _243(_248,d);});var ld=args.load;if(ld&&_22c.isFunction(ld)){d.addCallback(function(_249){return ld.call(args,_249,_244);});}var err=args.error;if(err&&_22c.isFunction(err)){d.addErrback(function(_24a){return err.call(args,_24a,_244);});}var _24b=args.handle;if(_24b&&_22c.isFunction(_24b)){d.addBoth(function(_24c){return _24b.call(args,_24c,_244);});}if(cfg.ioPublish&&_22c.publish&&_244.args.ioPublish!==false){d.addCallbacks(function(res){_22c.publish("/dojo/io/load",[d,res]);return res;},function(res){_22c.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_22c.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_244;return d;};var _24d=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _24e=typeof xhr.abort;if(_24e=="function"||_24e=="object"||_24e=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _24f=function(dfd){var ret=_23c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _250=function(_251,dfd){if(!dfd.ioArgs.args.failOk){console.error(_251);}return _251;};var _252=null;var _253=[];var _254=0;var _255=function(dfd){if(_254<=0){_254=0;if(cfg.ioPublish&&_22c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_22c.publish("/dojo/io/stop");}}};var _256=function(){var now=(new Date()).getTime();if(!_22c._blockAsync){for(var i=0,tif;i<_253.length&&(tif=_253[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_253.splice(i--,1);_254-=1;}else{if(tif.ioCheck(dfd)){_253.splice(i--,1);tif.resHandle(dfd);_254-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_253.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_254-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_255(dfd);if(!_253.length){clearInterval(_252);_252=null;return;}};dojo._ioCancelAll=function(){try{_22c.forEach(_253,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_22c.isIE){_22c.addOnWindowUnload(_22c._ioCancelAll);}_22c._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_22c.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_254){_22c.publish("/dojo/io/start");}_254+=1;_22c.publish("/dojo/io/send",[dfd]);}};_22c._ioWatch=function(dfd,_257,_258,_259){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_253.push({dfd:dfd,validCheck:_257,ioCheck:_258,resHandle:_259});if(!_252){_252=setInterval(_256,50);}if(args.sync){_256();}};var _25a="application/x-www-form-urlencoded";var _25b=function(dfd){return dfd.ioArgs.xhr.readyState;};var _25c=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _25d=function(dfd){var xhr=dfd.ioArgs.xhr;if(_22c._isDocumentOk(xhr)){dfd.callback(dfd);}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err);}};dojo._ioAddQueryToUrl=function(_25e){if(_25e.query.length){_25e.url+=(_25e.url.indexOf("?")==-1?"?":"&")+_25e.query;_25e.query=null;}};dojo.xhr=function(_25f,args,_260){var dfd=_22c._ioSetArgs(args,_24d,_24f,_250);var _261=dfd.ioArgs;var xhr=_261.xhr=_22c._xhrObj(_261.args);if(!xhr){dfd.cancel();return dfd;}if("postData" in args){_261.query=args.postData;}else{if("putData" in args){_261.query=args.putData;}else{if("rawBody" in args){_261.query=args.rawBody;}else{if((arguments.length>2&&!_260)||"POST|PUT".indexOf(_25f.toUpperCase())==-1){_22c._ioAddQueryToUrl(_261);}}}}xhr.open(_25f,_261.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{if(args.headers[hdr]){xhr.setRequestHeader(hdr,args.headers[hdr]);}}}}xhr.setRequestHeader("Content-Type",args.contentType||_25a);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_22c._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_261.query);}else{try{xhr.send(_261.query);}catch(e){_261.error=e;dfd.cancel();}}_22c._ioWatch(dfd,_25b,_25c,_25d);xhr=null;return dfd;};dojo.xhrGet=function(args){return _22c.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _22c.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _22c.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _22c.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;var _262=d._mixin;dojo._Line=function(_263,end){this.start=_263;this.end=end;};dojo._Line.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_262(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}};d._Animation=d.Animation;d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _264=this._percent,_265=this.easing;return _265?_265(_264):_264;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(d.config.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_266,_267){var _268=this;if(_268._delayTimer){_268._clearTimer();}if(_267){_268._stopTimer();_268._active=_268._paused=false;_268._percent=0;}else{if(_268._active&&!_268._paused){return _268;}}_268._fire("beforeBegin",[_268.node]);var de=_266||_268.delay,_269=dojo.hitch(_268,"_play",_267);if(de>0){_268._delayTimer=setTimeout(_269,de);return _268;}_269();return _268;},_play:function(_26a){var _26b=this;if(_26b._delayTimer){_26b._clearTimer();}_26b._startTime=new Date().valueOf();if(_26b._paused){_26b._startTime-=_26b.duration*_26b._percent;}_26b._endTime=_26b._startTime+_26b.duration;_26b._active=true;_26b._paused=false;var _26c=_26b.curve.getValue(_26b._getStep());if(!_26b._percent){if(!_26b._startRepeatCount){_26b._startRepeatCount=_26b.repeat;}_26b._fire("onBegin",[_26c]);}_26b._fire("onPlay",[_26c]);_26b._cycle();return _26b;},pause:function(){var _26d=this;if(_26d._delayTimer){_26d._clearTimer();}_26d._stopTimer();if(!_26d._active){return _26d;}_26d._paused=true;_26d._fire("onPause",[_26d.curve.getValue(_26d._getStep())]);return _26d;},gotoPercent:function(_26e,_26f){var _270=this;_270._stopTimer();_270._active=_270._paused=true;_270._percent=_26e;if(_26f){_270.play();}return _270;},stop:function(_271){var _272=this;if(_272._delayTimer){_272._clearTimer();}if(!_272._timer){return _272;}_272._stopTimer();if(_271){_272._percent=1;}_272._fire("onStop",[_272.curve.getValue(_272._getStep())]);_272._active=_272._paused=false;return _272;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _273=this;if(_273._active){var curr=new Date().valueOf();var step=(curr-_273._startTime)/(_273._endTime-_273._startTime);if(step>=1){step=1;}_273._percent=step;if(_273.easing){step=_273.easing(step);}_273._fire("onAnimate",[_273.curve.getValue(step)]);if(_273._percent<1){_273._startTimer();}else{_273._active=false;if(_273.repeat>0){_273.repeat--;_273.play(null,true);}else{if(_273.repeat==-1){_273.play(null,true);}else{if(_273._startRepeatCount){_273.repeat=_273._startRepeatCount;_273._startRepeatCount=0;}}}_273._percent=0;_273._fire("onEnd",[_273.node]);!_273.repeat&&_273._stopTimer();}}return _273;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_274=[],_275=null,_276={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_276,"run",this,"_cycle");ctr++;}if(!_275){_275=setInterval(d.hitch(_276,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_275);_275=null;ctr=0;}}});var _277=d.isIE?function(node){var ns=node.style;if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _278=_262({properties:{}},args),_279=(_278.properties.opacity={});_279.start=!("start" in _278)?function(){return +d.style(_278.node,"opacity")||0;}:_278.start;_279.end=_278.end;var anim=d.animateProperty(_278);d.connect(anim,"beforeBegin",d.partial(_277,_278.node));return anim;};dojo.fadeIn=function(args){return d._fade(_262({end:1},args));};dojo.fadeOut=function(args){return d._fade(_262({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _27a=function(_27b){this._properties=_27b;for(var p in _27b){var prop=_27b[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_27a.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_27c=prop.start;if(_27c instanceof d.Color){ret[p]=d.blendColors(_27c,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_27c)){ret[p]=((prop.end-_27c)*r)+_27c+(p!="opacity"?prop.units||"px":0);}}}return ret;};dojo.animateProperty=function(args){var n=args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(d.isFunction(prop)){prop=prop(n);}prop=pm[p]=_262({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start(n);}if(d.isFunction(prop.end)){prop.end=prop.end(n);}var _27d=(p.toLowerCase().indexOf("color")>=0);function _27e(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?+v:(_27d?v:parseFloat(v));};if(!("end" in prop)){prop.end=_27e(n,p);}else{if(!("start" in prop)){prop.start=_27e(n,p);}}if(_27d){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _27a(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_27f,_280,_281,_282,_283){return d.animateProperty({node:node,duration:_280||d.Animation.prototype.duration,properties:_27f,easing:_281,onEnd:_282}).play(_283||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.forEach(dojo.config.require,function(i){dojo["require"](i);});}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_284){if(this._hash[_284.id]){throw new Error("Tried to register widget with id=="+_284.id+" but that id is already registered");}this._hash[_284.id]=_284;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_285){_285=_285||dojo.global;var i=0,id;for(id in this._hash){func.call(_285,this._hash[id],i++,this._hash);}return this;},filter:function(_286,_287){_287=_287||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_286.call(_287,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_288;for(id in this._hash){_288=this._hash[id];if(_288.declaredClass==cls){res.add(_288);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_289){return dojo.map(this.toArray(),func,_289);},every:function(func,_28a){_28a=_28a||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_28a,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_28b){_28b=_28b||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_28b,this._hash[i],x++,this._hash)){return true;}}return false;}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_28c){var id;do{id=_28c+"_"+(_28c in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_28c]:dijit._widgetTypeCtr[_28c]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(root){var _28d=[];function _28e(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _28f=node.getAttribute("widgetId");if(_28f){var _290=dijit.byId(_28f);_28d.push(_290);}else{_28e(node);}}}};_28e(root);return _28d;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_291){if(!_291._destroyed){if(_291.destroyRecursive){_291.destroyRecursive();}else{if(_291.destroy){_291.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byId=function(id){return typeof id=="string"?dijit.registry._hash[id]:id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return dijit.byId(id);}node=node.parentNode;}return null;};dijit._isElementShown=function(elem){var _292=dojo.style(elem);return (_292.visibility!="hidden")&&(_292.visibility!="collapsed")&&(_292.display!="none")&&(dojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(dojo.attr(elem,"disabled")){return false;}else{if(dojo.hasAttr(elem,"tabIndex")){return dojo.attr(elem,"tabIndex")>=0;}else{switch(elem.nodeName.toLowerCase()){case "a":return dojo.hasAttr(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){return elem.contentDocument.designMode=="on";}else{if(dojo.isWebKit){var doc=elem.contentDocument,body=doc&&doc.body;return body&&body.contentEditable=="true";}else{doc=elem.contentWindow.document;body=doc&&doc.body;return body&&body.firstChild&&body.firstChild.contentEditable=="true";}}default:return elem.contentEditable=="true";}}}};dijit._getTabNavigable=function(root){var _293,last,_294,_295,_296,_297;var _298=function(_299){dojo.query("> *",_299).forEach(function(_29a){var _29b=dijit._isElementShown(_29a);if(_29b&&dijit.isTabNavigable(_29a)){var _29c=dojo.attr(_29a,"tabIndex");if(!dojo.hasAttr(_29a,"tabIndex")||_29c==0){if(!_293){_293=_29a;}last=_29a;}else{if(_29c>0){if(!_294||_29c<_295){_295=_29c;_294=_29a;}if(!_296||_29c>=_297){_297=_29c;_296=_29a;}}}}if(_29b&&_29a.nodeName.toUpperCase()!="SELECT"){_298(_29a);}});};if(dijit._isElementShown(root)){_298(root);}return {first:_293,last:last,lowest:_294,highest:_296};};dijit.getFirstInTabbingOrder=function(root){var _29d=dijit._getTabNavigable(dojo.byId(root));return _29d.lowest?_29d.lowest:_29d.first;};dijit.getLastInTabbingOrder=function(root){var _29e=dijit._getTabNavigable(dojo.byId(root));return _29e.last?_29e.last:_29e.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_29f){var _2a0=dojo.doc,mark=_29f.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_2a0.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_2a0.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2a0.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2a1){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2a1||dojo.global,dijit.getBookmark),openedForWindow:_2a1};},focus:function(_2a2){if(!_2a2){return;}var node="node" in _2a2?_2a2.node:_2a2,_2a3=_2a2.bookmark,_2a4=_2a2.openedForWindow,_2a5=_2a3?_2a3.isCollapsed:false;if(node){var _2a6=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2a6&&_2a6.focus){try{_2a6.focus();}catch(e){}}dijit._onFocusNode(node);}if(_2a3&&dojo.withGlobal(_2a4||dojo.global,dijit.isCollapsed)&&!_2a5){if(_2a4){_2a4.focus();}try{dojo.withGlobal(_2a4||dojo.global,dijit.moveToBookmark,null,[_2a3]);}catch(e2){}}},_activeStack:[],registerIframe:function(_2a7){return dijit.registerWin(_2a7.contentWindow,_2a7);},unregisterIframe:function(_2a8){dijit.unregisterWin(_2a8);},registerWin:function(_2a9,_2aa){var _2ab=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_2aa||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_2a9.document.documentElement:_2a9.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_2ab);var _2ac=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_2aa||evt.srcElement);}else{dijit._onTouchNode(_2aa||evt.srcElement);}};doc.attachEvent("onactivate",_2ac);var _2ad=function(evt){dijit._onBlurNode(_2aa||evt.srcElement);};doc.attachEvent("ondeactivate",_2ad);return function(){doc.detachEvent("onmousedown",_2ab);doc.detachEvent("onactivate",_2ac);doc.detachEvent("ondeactivate",_2ad);doc=null;};}else{doc.addEventListener("mousedown",_2ab,true);var _2ae=function(evt){dijit._onFocusNode(_2aa||evt.target);};doc.addEventListener("focus",_2ae,true);var _2af=function(evt){dijit._onBlurNode(_2aa||evt.target);};doc.addEventListener("blur",_2af,true);return function(){doc.removeEventListener("mousedown",_2ab,true);doc.removeEventListener("focus",_2ae,true);doc.removeEventListener("blur",_2af,true);doc=null;};}}},unregisterWin:function(_2b0){_2b0&&_2b0();},_onBlurNode:function(node){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(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _2b1=[];try{while(node){var _2b2=dojo.attr(node,"dijitPopupParent");if(_2b2){node=dijit.byId(_2b2).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_2b1.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_2b1,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_2b3,by){var _2b4=dijit._activeStack;dijit._activeStack=_2b3;for(var _2b5=0;_2b5<Math.min(_2b4.length,_2b3.length);_2b5++){if(_2b4[_2b5]!=_2b3[_2b5]){break;}}var _2b6;for(var i=_2b4.length-1;i>=_2b5;i--){_2b6=dijit.byId(_2b4[i]);if(_2b6){_2b6._focused=false;_2b6._hasBeenBlurred=true;if(_2b6._onBlur){_2b6._onBlur(by);}if(_2b6._setStateClass){_2b6._setStateClass();}dojo.publish("widgetBlur",[_2b6,by]);}}for(i=_2b5;i<_2b3.length;i++){_2b6=dijit.byId(_2b3[i]);if(_2b6){_2b6._focused=true;if(_2b6._onFocus){_2b6._onFocus(by);}if(_2b6._setStateClass){_2b6._setStateClass();}dojo.publish("widgetFocus",[_2b6,by]);}}}});dojo.addOnLoad(function(){var _2b7=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_2b7);_2b7=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_2b8){this.pairs=[];this.returnWrappers=_2b8||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_2b9,wrap,_2ba,_2bb){this.pairs[((_2bb)?"unshift":"push")]([name,_2b9,wrap,_2ba]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){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 _2bc=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2bd=dojo._docScroll();return {w:_2bc.clientWidth,h:_2bc.clientHeight,l:_2bd.x,t:_2bd.y};};dijit.placeOnScreen=function(node,pos,_2be,_2bf){var _2c0=dojo.map(_2be,function(_2c1){var c={corner:_2c1,pos:{x:pos.x,y:pos.y}};if(_2bf){c.pos.x+=_2c1.charAt(1)=="L"?_2bf.x:-_2bf.x;c.pos.y+=_2c1.charAt(0)=="T"?_2bf.y:-_2bf.y;}return c;});return dijit._place(node,_2c0);};dijit._place=function(node,_2c2,_2c3){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_2c2,function(_2c4){var _2c5=_2c4.corner;var pos=_2c4.pos;if(_2c3){_2c3(node,_2c4.aroundCorner,_2c5);}var _2c6=node.style;var _2c7=_2c6.display;var _2c8=_2c6.visibility;_2c6.visibility="hidden";_2c6.display="";var mb=dojo.marginBox(node);_2c6.display=_2c7;_2c6.visibility=_2c8;var _2c9=Math.max(view.l,_2c5.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_2ca=Math.max(view.t,_2c5.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_2c5.charAt(1)=="L"?(_2c9+mb.w):pos.x),endY=Math.min(view.t+view.h,_2c5.charAt(0)=="T"?(_2ca+mb.h):pos.y),_2cb=endX-_2c9,_2cc=endY-_2ca,_2cd=(mb.w-_2cb)+(mb.h-_2cc);if(best==null||_2cd<best.overflow){best={corner:_2c5,aroundCorner:_2c4.aroundCorner,x:_2c9,y:_2ca,w:_2cb,h:_2cc,overflow:_2cd};}return !_2cd;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_2c3){_2c3(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_2ce,_2cf,_2d0){_2ce=dojo.byId(_2ce);var _2d1=_2ce.style.display;_2ce.style.display="";var _2d2=dojo.position(_2ce,true);_2ce.style.display=_2d1;return dijit._placeOnScreenAroundRect(node,_2d2.x,_2d2.y,_2d2.w,_2d2.h,_2cf,_2d0);};dijit.placeOnScreenAroundRectangle=function(node,_2d3,_2d4,_2d5){return dijit._placeOnScreenAroundRect(node,_2d3.x,_2d3.y,_2d3.width,_2d3.height,_2d4,_2d5);};dijit._placeOnScreenAroundRect=function(node,x,y,_2d6,_2d7,_2d8,_2d9){var _2da=[];for(var _2db in _2d8){_2da.push({aroundCorner:_2db,corner:_2d8[_2db],pos:{x:x+(_2db.charAt(1)=="L"?0:_2d6),y:y+(_2db.charAt(0)=="T"?0:_2d7)}});}return dijit._place(node,_2da,_2d9);};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(node,_2dc,_2dd,_2de){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAlignment=function(_2df,_2e0){var _2e1={};dojo.forEach(_2df,function(pos){switch(pos){case "after":_2e1[_2e0?"BR":"BL"]=_2e0?"BL":"BR";break;case "before":_2e1[_2e0?"BL":"BR"]=_2e0?"BR":"BL";break;case "below":_2e1[_2e0?"BL":"BR"]=_2e0?"TL":"TR";_2e1[_2e0?"BR":"BL"]=_2e0?"TR":"TL";break;case "above":default:_2e1[_2e0?"TL":"TR"]=_2e0?"BL":"BR";_2e1[_2e0?"TR":"TL"]=_2e0?"BR":"BL";break;}});return _2e1;};dijit.getPopupAroundAlignment=function(_2e2,_2e3){var _2e4={};dojo.forEach(_2e2,function(pos){switch(pos){case "after":_2e4[_2e3?"BR":"BL"]=_2e3?"BL":"BR";break;case "before":_2e4[_2e3?"BL":"BR"]=_2e3?"BR":"BL";break;case "below":_2e4[_2e3?"BL":"BR"]=_2e3?"TL":"TR";_2e4[_2e3?"BR":"BL"]=_2e3?"TR":"TL";break;case "above":default:_2e4[_2e3?"TL":"TR"]=_2e3?"BL":"BR";_2e4[_2e3?"TR":"TL"]=_2e3?"BR":"BL";break;}});return _2e4;};}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 _2e5=[],_2e6=1000,_2e7=1;this.moveOffScreen=function(node){var s=node.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(node);};var _2e8=function(){for(var pi=_2e5.length-1;pi>0&&_2e5[pi].parent===_2e5[pi-1].widget;pi--){}return _2e5[pi];};var _2e9=[];this.open=function(args){var _2ea=args.popup,_2eb=args.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_2ec=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_2e7++);var _2ed=_2e9.pop(),_2ee,_2ef;if(!_2ed){_2ee=dojo.create("div",{"class":"dijitPopup"},dojo.body());dijit.setWaiRole(_2ee,"presentation");}else{_2ee=_2ed[0];_2ef=_2ed[1];}dojo.attr(_2ee,{id:id,style:{zIndex:_2e6+_2e5.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});var s=_2ea.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_2ee.appendChild(_2ea.domNode);if(!_2ef){_2ef=new dijit.BackgroundIframe(_2ee);}else{_2ef.resize(_2ee);}var best=_2ec?dijit.placeOnScreenAroundElement(_2ee,_2ec,_2eb,_2ea.orient?dojo.hitch(_2ea,"orient"):null):dijit.placeOnScreen(_2ee,args,_2eb=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_2ee.style.visibility="visible";var _2f0=[];_2f0.push(dojo.connect(_2ee,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _2f1=_2e8();if(_2f1&&_2f1.onCancel){_2f1.onCancel();}}}}));if(_2ea.onCancel){_2f0.push(dojo.connect(_2ea,"onCancel",args.onCancel));}_2f0.push(dojo.connect(_2ea,_2ea.onExecute?"onExecute":"onChange",function(){var _2f2=_2e8();if(_2f2&&_2f2.onExecute){_2f2.onExecute();}}));_2e5.push({wrapper:_2ee,iframe:_2ef,widget:_2ea,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_2f0});if(_2ea.onOpen){_2ea.onOpen(best);}return best;};this.close=function(_2f3){while(dojo.some(_2e5,function(elem){return elem.widget==_2f3;})){var top=_2e5.pop(),_2f4=top.wrapper,_2f5=top.iframe,_2f6=top.widget,_2f7=top.onClose;if(_2f6.onClose){_2f6.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_2f6&&_2f6.domNode){this.moveOffScreen(_2f6.domNode);}_2f4.style.top="-9999px";_2f4.style.visibility="hidden";_2e9.push([_2f4,_2f5]);if(_2f7){_2f7();}}};}();dijit._frames=new function(){var _2f8=[];this.pop=function(){var _2f9;if(_2f8.length){_2f9=_2f8.pop();_2f9.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_2f9=dojo.doc.createElement(html);}else{_2f9=dojo.create("iframe");_2f9.src="javascript:\"\"";_2f9.className="dijitBackgroundIframe";dojo.style(_2f9,"opacity",0.1);}_2f9.tabIndex=-1;}return _2f9;};this.push=function(_2fa){_2fa.style.display="none";_2f8.push(_2fa);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _2fb=dijit._frames.pop();node.appendChild(_2fb);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_2fb,{width:"100%",height:"100%"});}this.iframe=_2fb;}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _2fc=doc.compatMode=="BackCompat",_2fd=_2fc?body:html,_2fe=isWK?body:_2fd,_2ff=_2fd.clientWidth,_300=_2fd.clientHeight,rtl=!dojo._isBodyLtr(),_301=pos||dojo.position(node),el=node.parentNode,_302=function(el){return ((isIE<=6||(isIE&&_2fc))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_302(node)){return;}while(el){if(el==body){el=_2fe;}var _303=dojo.position(el),_304=_302(el);with(_303){if(el==_2fe){w=_2ff,h=_300;if(_2fe==html&&isIE&&rtl){x+=_2fe.offsetWidth-w;}if(x<0||!isIE){x=0;}if(y<0||!isIE){y=0;}}else{var pb=dojo._getPadBorderExtents(el);w-=pb.w;h-=pb.h;x+=pb.l;y+=pb.t;}with(el){if(el!=_2fe){var _305=clientWidth,_306=w-_305;if(_305>0&&_306>0){w=_305;if(isIE&&rtl){x+=_306;}}_305=clientHeight;_306=h-_305;if(_305>0&&_306>0){h=_305;}}if(_304){if(y<0){h+=y,y=0;}if(x<0){w+=x,x=0;}if(y+h>_300){h=_300-y;}if(x+w>_2ff){w=_2ff-x;}}var l=_301.x-x,t=_301.y-Math.max(y,0),r=l+_301.w-w,bot=t+_301.h-h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_301.x+=scrollLeft;scrollLeft+=(isIE>=8&&!_2fc&&rtl)?-s:s;_301.x-=scrollLeft;}if(bot*t>0){_301.y+=scrollTop;scrollTop+=Math[t<0?"max":"min"](t,bot);_301.y-=scrollTop;}}}el=(el!=_2fe)&&!_304&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_307=d.isOpera,maj=Math.floor,ff=d.isFF,_308=d.boxModel.replace(/-/,""),_309={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:_307,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_309["dj_"+_308]=true;for(var p in _309){if(_309[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 _309){if(_309[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=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_30a,node,_30b,obj,_30c,_30d){if(obj!=this._obj){this.stop();this._initialDelay=_30d||500;this._subsequentDelay=_30c||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_30a,_30b);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,_30e,_30f,_310,_311,_312){if(_30e.keyCode){_30e.charOrCode=_30e.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_30e.charCode){_30e.charOrCode=String.fromCharCode(_30e.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==_30e.charOrCode&&(_30e.ctrlKey===undefined||_30e.ctrlKey==evt.ctrlKey)&&(_30e.altKey===undefined||_30e.altKey==evt.altKey)&&(_30e.metaKey===undefined||_30e.metaKey==(evt.metaKey||false))&&(_30e.shiftKey===undefined||_30e.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_30e,_30f,node,_310,_30e,_311,_312);}else{if(dijit.typematic._obj==_30e){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_30e){dijit.typematic.stop();}})];},addMouseListener:function(node,_313,_314,_315,_316){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_313,node,_314,node,_315,_316);}),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,_313,node,_314,node,_315,_316);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_317,_318,_319,_31a,_31b,_31c,_31d){return this.addKeyListener(_318,_319,_31a,_31b,_31c,_31d).concat(this.addMouseListener(_317,_31a,_31b,_31c,_31d));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _31e=cs.backgroundImage;var _31f=(cs.borderTopColor==cs.borderRightColor)||(_31e!=null&&(_31e=="none"||_31e=="url(invalid-url:)"));dojo[_31f?"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 _320=this.getWaiRole(elem);return role?(_320.indexOf(role)>-1):(_320.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _321=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_321)){dojo.attr(elem,"role",role);}else{if((" "+_321+" ").indexOf(" "+role+" ")<0){var _322=dojo.trim(_321.replace(this._XhtmlRoles,""));var _323=dojo.trim(_321.replace(_322,""));dojo.attr(elem,"role",_323+(_323?" ":"")+role);}}},removeWaiRole:function(elem,role){var _324=dojo.attr(elem,"role");if(!_324){return;}if(role){var t=dojo.trim((" "+_324+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_325){return elem.hasAttribute?elem.hasAttribute("aria-"+_325):!!elem.getAttribute("aria-"+_325);},getWaiState:function(elem,_326){return elem.getAttribute("aria-"+_326)||"";},setWaiState:function(elem,_327,_328){elem.setAttribute("aria-"+_327,_328);},removeWaiState:function(elem,_329){elem.removeAttribute("aria-"+_329);}});}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(_32a,_32b){if(_32a&&dojo.isFunction(_32a._onConnect)){_32a._onConnect(_32b);}});dijit._connectOnUseEventHandler=function(_32c){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _32d=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_32d);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_32d);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _32e={},_32f=function(_330){var dc=_330.declaredClass;if(!_32e[dc]){var r=[],_331,_332=_330.constructor.prototype;for(var _333 in _332){if(dojo.isFunction(_332[_333])&&(_331=_333.match(/^_set([a-zA-Z]*)Attr$/))&&_331[1]){r.push(_331[1].charAt(0).toLowerCase()+_331[1].substr(1));}}_32e[dc]=r;}return _32e[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_334,_335){this.create(_334,_335);},create:function(_336,_337){this.srcNodeRef=dojo.byId(_337);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_336){this.params=_336;dojo.mixin(this,_336);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _338=this.srcNodeRef;if(_338&&_338.parentNode){_338.parentNode.replaceChild(this.domNode,_338);}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 _339=function(attr,_33a){if((_33a.params&&attr in _33a.params)||_33a[attr]){_33a.attr(attr,_33a[attr]);}};for(var attr in this.attributeMap){_339(attr,this);}dojo.forEach(_32f(this),function(a){if(!(a in this.attributeMap)){_339(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_33b){this._beingDestroyed=true;this.destroyDescendants(_33b);this.destroy(_33b);},destroy:function(_33c){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_33d){dfe(_33d,d.disconnect);});dfe(this._subscribes,function(_33e){dun(_33e);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_33c);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_33f){if(this.bgIframe){this.bgIframe.destroy(_33f);delete this.bgIframe;}if(this.domNode){if(_33f){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_33f){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_340){dojo.forEach(this.getChildren(),function(_341){if(_341.destroyRecursive){_341.destroyRecursive(_340);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_342){if(_342 in this._deferredConnects){var _343=this[this._deferredConnects[_342]||"domNode"];this.connect(_343,_342.toLowerCase(),_342);delete this._deferredConnects[_342];}},_setClassAttr:function(_344){var _345=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_345,this["class"]);this["class"]=_344;dojo.addClass(_345,_344);},_setStyleAttr:function(_346){var _347=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_346)){dojo.style(_347,_346);}else{if(_347.style.cssText){_347.style.cssText+="; "+_346;}else{_347.style.cssText=_346;}}this.style=_346;},setAttribute:function(attr,_348){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_348);},_attrToDom:function(attr,_349){var _34a=this.attributeMap[attr];dojo.forEach(dojo.isArray(_34a)?_34a:[_34a],function(_34b){var _34c=this[_34b.node||_34b||"domNode"];var type=_34b.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_349)){_349=dojo.hitch(this,_349);}var _34d=_34b.attribute?_34b.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_34c,_34d,_349);break;case "innerText":_34c.innerHTML="";_34c.appendChild(dojo.doc.createTextNode(_349));break;case "innerHTML":_34c.innerHTML=_349;break;case "class":dojo.removeClass(_34c,this[attr]);dojo.addClass(_34c,_349);break;}},this);this[attr]=_349;},attr:function(name,_34e){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _34f=this._getAttrNames(name);if(args>=2){if(this[_34f.s]){args=dojo._toArray(arguments,1);return this[_34f.s].apply(this,args)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_34e);}this[name]=_34e;}return this;}else{return this[_34f.g]?this[_34f.g]():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(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_350,_351){var d=dojo,dc=d._connect,_352=[];if(_350=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_351);_352.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;d.stopEvent(e);}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_350="onclick";}_352.push(dc(obj,_350,this,_351));this._connects.push(_352);return _352;},disconnect:function(_353){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_353){dojo.forEach(_353,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_354,_355){var d=dojo,_356=d.subscribe(_354,this,_355);this._subscribes.push(_356);return _356;},unsubscribe:function(_357){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_357){dojo.unsubscribe(_357);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_358,_359){if(_358.declaredClass&&_358.addChild){_358.addChild(this,_359);}else{dojo.place(this.domNode,_358,_359);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){}});})();}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _35a=dijit.getEnclosingWidget(this.domNode.parentNode);return _35a&&_35a.isContainer?_35a:null;},_getSibling:function(_35b){var node=this.domNode;do{node=node[_35b+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},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);}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_35c,_35d){var _35e=this.containerNode;if(_35d&&typeof _35d=="number"){var _35f=this.getChildren();if(_35f&&_35f.length>=_35d){_35e=_35f[_35d-1].domNode;_35d="after";}}dojo.place(_35c.domNode,_35e,_35d);if(this._started&&!_35c._started){_35c.startup();}},removeChild:function(_360){if(typeof _360=="number"&&_360>0){_360=this.getChildren()[_360];}if(_360&&_360.domNode){var node=_360.domNode;node.parentNode.removeChild(node);}},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return dojo.query("> [widgetId]",this.containerNode).length>0;},destroyDescendants:function(_361){dojo.forEach(this.getChildren(),function(_362){_362.destroyRecursive(_361);});},_getSiblingOfChild:function(_363,dir){var node=_363.domNode,_364=(dir>0?"nextSibling":"previousSibling");do{node=node[_364];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_365){return dojo.indexOf(this.getChildren(),_365);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_366){_366.startup();});this.inherited(arguments);}});}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);this.inherited(arguments);},startup:function(){if(this._started){return;}this.inherited(arguments);var _367=this.getParent&&this.getParent();if(!(_367&&_367.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_368,_369){var node=this.domNode;if(_368){dojo.marginBox(node,_368);if(_368.t){node.style.top=_368.t+"px";}if(_368.l){node.style.left=_368.l+"px";}}var mb=_369||{};dojo.mixin(mb,_368||{});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(_36a){dojo.addClass(_36a.domNode,this.baseClass+"-child");if(_36a.baseClass){dojo.addClass(_36a.domNode,this.baseClass+"-"+_36a.baseClass);}},addChild:function(_36b,_36c){this.inherited(arguments);if(this._started){this._setupChild(_36b);}},removeChild:function(_36d){dojo.removeClass(_36d.domNode,this.baseClass+"-child");if(_36d.baseClass){dojo.removeClass(_36d.domNode,this.baseClass+"-"+_36d.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 _36e=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_36f,dim){_36f.resize?_36f.resize(dim):dojo.marginBox(_36f.domNode,dim);dojo.mixin(_36f,dojo.marginBox(_36f.domNode));dojo.mixin(_36f,dim);};dijit.layout.layoutChildren=function(_370,dim,_371){dim=dojo.mixin({},dim);dojo.addClass(_370,"dijitLayoutContainer");_371=dojo.filter(_371,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_371,function(item){return item.layoutAlign=="client";}));dojo.forEach(_371,function(_372){var elm=_372.domNode,pos=_372.layoutAlign;var _373=elm.style;_373.left=dim.l+"px";_373.top=dim.t+"px";_373.bottom=_373.right="auto";dojo.addClass(elm,"dijitAlign"+_36e(pos));if(pos=="top"||pos=="bottom"){size(_372,{w:dim.w});dim.h-=_372.h;if(pos=="top"){dim.t+=_372.h;}else{_373.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_372,{h:dim.h});dim.w-=_372.w;if(pos=="left"){dim.l+=_372.w;}else{_373.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_372,dim);}}}});};})();}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_374,_375){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 _376=dojo.date.stamp._isoRegExp.exec(_374),_377=null;if(_376){_376.shift();if(_376[1]){_376[1]--;}if(_376[6]){_376[6]*=1000;}if(_375){_375=new Date(_375);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _375["get"+prop]();}).forEach(function(_378,_379){if(_376[_379]===undefined){_376[_379]=_378;}});}_377=new Date(_376[0]||1970,_376[1]||0,_376[2]||1,_376[3]||0,_376[4]||0,_376[5]||0,_376[6]||0);if(_376[0]<100){_377.setFullYear(_376[0]||1970);}var _37a=0,_37b=_376[7]&&_376[7].charAt(0);if(_37b!="Z"){_37a=((_376[8]||0)*60)+(Number(_376[9])||0);if(_37b!="-"){_37a*=-1;}}if(_37b){_37a-=_377.getTimezoneOffset();}if(_37a){_377.setTime(_377.getTime()+_37a*60000);}}return _377;};dojo.date.stamp.toISOString=function(_37c,_37d){var _37e=function(n){return (n<10)?"0"+n:n;};_37d=_37d||{};var _37f=[],_380=_37d.zulu?"getUTC":"get",date="";if(_37d.selector!="time"){var year=_37c[_380+"FullYear"]();date=["0000".substr((year+"").length)+year,_37e(_37c[_380+"Month"]()+1),_37e(_37c[_380+"Date"]())].join("-");}_37f.push(date);if(_37d.selector!="date"){var time=[_37e(_37c[_380+"Hours"]()),_37e(_37c[_380+"Minutes"]()),_37e(_37c[_380+"Seconds"]())].join(":");var _381=_37c[_380+"Milliseconds"]();if(_37d.milliseconds){time+="."+(_381<100?"0":"")+_37e(_381);}if(_37d.zulu){time+="Z";}else{if(_37d.selector!="time"){var _382=_37c.getTimezoneOffset();var _383=Math.abs(_382);time+=(_382>0?"-":"+")+_37e(Math.floor(_383/60))+":"+_37e(_383%60);}}_37f.push(time);}return _37f.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _384(_385){if(d.isString(_385)){return "string";}if(typeof _385=="number"){return "number";}if(typeof _385=="boolean"){return "boolean";}if(d.isFunction(_385)){return "function";}if(d.isArray(_385)){return "array";}if(_385 instanceof Date){return "date";}if(_385 instanceof d._Url){return "url";}return "object";};function _386(_387,type){switch(type){case "string":return _387;case "number":return _387.length?Number(_387):NaN;case "boolean":return typeof _387=="boolean"?_387:!(_387.toLowerCase()=="false");case "function":if(d.isFunction(_387)){_387=_387.toString();_387=d.trim(_387.substring(_387.indexOf("{")+1,_387.length-1));}try{if(_387.search(/[^\w\.]+/i)!=-1){return new Function(_387);}else{return d.getObject(_387,false);}}catch(e){return new Function();}case "array":return _387?_387.split(/\s*,\s*/):[];case "date":switch(_387){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_387);}case "url":return d.baseUrl+_387;default:return d.fromJson(_387);}};var _388={};dojo.connect(dojo,"extend",function(){_388={};});function _389(_38a){if(!_388[_38a]){var cls=d.getObject(_38a);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_38a+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _38b=cls.prototype;var _38c={},_38d={};for(var name in _38b){if(name.charAt(0)=="_"){continue;}if(name in _38d){continue;}var _38e=_38b[name];_38c[name]=_384(_38e);}_388[_38a]={cls:cls,params:_38c};}return _388[_38a];};this._functionFromScript=function(_38f){var _390="";var _391="";var _392=_38f.getAttribute("args");if(_392){d.forEach(_392.split(/\s*,\s*/),function(part,idx){_390+="var "+part+" = arguments["+idx+"]; ";});}var _393=_38f.getAttribute("with");if(_393&&_393.length){d.forEach(_393.split(/\s*,\s*/),function(part){_390+="with("+part+"){";_391+="}";});}return new Function(_390+_38f.innerHTML+_391);};this.instantiate=function(_394,_395,args){var _396=[],dp=dojo.parser;_395=_395||{};args=args||{};d.forEach(_394,function(node){if(!node){return;}var type=dp._attrName in _395?_395[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _397=_389(type),_398=_397.cls,ps=_398._noScript||_398.prototype._noScript;var _399={},_39a=node.attributes;for(var name in _397.params){var item=name in _395?{value:_395[name],specified:true}:_39a.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _39b=item.value;switch(name){case "class":_39b="className" in _395?_395.className:node.className;break;case "style":_39b="style" in _395?_395.style:(node.style&&node.style.cssText);}var _39c=_397.params[name];if(typeof _39b=="string"){_399[name]=_386(_39b,_39c);}else{_399[name]=_39b;}}if(!ps){var _39d=[],_39e=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_39f){var _3a0=_39f.getAttribute("event"),type=_39f.getAttribute("type"),nf=d.parser._functionFromScript(_39f);if(_3a0){if(type=="dojo/connect"){_39d.push({event:_3a0,func:nf});}else{_399[_3a0]=nf;}}else{_39e.push(nf);}});}var _3a1=_398.markupFactory||_398.prototype&&_398.prototype.markupFactory;var _3a2=_3a1?_3a1(_399,node,_398):new _398(_399,node);_396.push(_3a2);var _3a3=node.getAttribute("jsId");if(_3a3){d.setObject(_3a3,_3a2);}if(!ps){d.forEach(_39d,function(_3a4){d.connect(_3a2,_3a4.event,null,_3a4.func);});d.forEach(_39e,function(func){func.call(_3a2);});}});if(!_395._started){d.forEach(_396,function(_3a5){if(!args.noStart&&_3a5&&_3a5.startup&&!_3a5._started&&(!_3a5.getParent||!_3a5.getParent())){_3a5.startup();}});}return _396;};this.parse=function(_3a6,args){var root;if(!args&&_3a6&&_3a6.rootNode){args=_3a6;root=args.rootNode;}else{root=_3a6;}var list=d.query(this._query,root);return this.instantiate(list,null,args);};}();(function(){var _3a7=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_3a7);}else{dojo._loaders.unshift(_3a7);}})();}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(_3a8,map,_3a9,_3aa){_3aa=_3aa||dojo.global;_3a9=_3a9?dojo.hitch(_3aa,_3a9):function(v){return v;};return _3a8.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_3ab,key,_3ac){var _3ad=dojo.getObject(key,false,map);if(_3ac){_3ad=dojo.getObject(_3ac,false,_3aa).call(_3aa,_3ad,key);}return _3a9(_3ad,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _3ae=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _3af=cont.length,i=0;i<cont.length;i=_3af==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_3b0,node){dojo.mixin(this,_3b0||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_3ae++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_3b1){if(undefined!==cont){this.content=cont;}if(_3b1){this._mixin(_3b1);}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 _3b2=this.onContentError(e);try{node.innerHTML=_3b2;}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 _3b3=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_3b3){cont=_3b3[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(_3b4){var _3b5={},key;for(key in _3b4){if(key in _3b5){continue;}this[key]=_3b4[key];}},_parse:function(){var _3b6=this.node;try{this.parseResults=dojo.parser.parse(_3b6,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_3b7){var _3b8=this["on"+type+"Error"].call(this,err);if(_3b7){console.error(_3b7,err);}else{if(_3b8){dojo.html._setNodeContent(this.node,_3b8,true);}}}});dojo.html.set=function(node,cont,_3b9){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_3b9){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_3b9,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_3ba,_3bb,_3bc){_3bc=dojo.i18n.normalizeLocale(_3bc);var _3bd=_3bc.split("-");var _3be=[_3ba,"nls",_3bb].join(".");var _3bf=dojo._loadedModules[_3be];if(_3bf){var _3c0;for(var i=_3bd.length;i>0;i--){var loc=_3bd.slice(0,i).join("_");if(_3bf[loc]){_3c0=_3bf[loc];break;}}if(!_3c0){_3c0=_3bf.ROOT;}if(_3c0){var _3c1=function(){};_3c1.prototype=_3c0;return new _3c1();}}throw new Error("Bundle not found: "+_3bb+" in "+_3ba+" , locale="+_3bc);};dojo.i18n.normalizeLocale=function(_3c2){var _3c3=_3c2?_3c2.toLowerCase():dojo.locale;if(_3c3=="root"){_3c3="ROOT";}return _3c3;};dojo.i18n._requireLocalization=function(_3c4,_3c5,_3c6,_3c7){var _3c8=dojo.i18n.normalizeLocale(_3c6);var _3c9=[_3c4,"nls",_3c5].join(".");var _3ca="";if(_3c7){var _3cb=_3c7.split(",");for(var i=0;i<_3cb.length;i++){if(_3c8["indexOf"](_3cb[i])==0){if(_3cb[i].length>_3ca.length){_3ca=_3cb[i];}}}if(!_3ca){_3ca="ROOT";}}var _3cc=_3c7?_3ca:_3c8;var _3cd=dojo._loadedModules[_3c9];var _3ce=null;if(_3cd){if(dojo.config.localizationComplete&&_3cd._built){return;}var _3cf=_3cc.replace(/-/g,"_");var _3d0=_3c9+"."+_3cf;_3ce=dojo._loadedModules[_3d0];}if(!_3ce){_3cd=dojo["provide"](_3c9);var syms=dojo._getModuleSymbols(_3c4);var _3d1=syms.concat("nls").join("/");var _3d2;dojo.i18n._searchLocalePath(_3cc,_3c7,function(loc){var _3d3=loc.replace(/-/g,"_");var _3d4=_3c9+"."+_3d3;var _3d5=false;if(!dojo._loadedModules[_3d4]){dojo["provide"](_3d4);var _3d6=[_3d1];if(loc!="ROOT"){_3d6.push(loc);}_3d6.push(_3c5);var _3d7=_3d6.join("/")+".js";_3d5=dojo._loadPath(_3d7,null,function(hash){var _3d8=function(){};_3d8.prototype=_3d2;_3cd[_3d3]=new _3d8();for(var j in hash){_3cd[_3d3][j]=hash[j];}});}else{_3d5=true;}if(_3d5&&_3cd[_3d3]){_3d2=_3cd[_3d3];}else{_3cd[_3d3]=_3d2;}if(_3c7){return true;}});}if(_3c7&&_3c8!=_3ca){_3cd[_3c8.replace(/-/g,"_")]=_3cd[_3ca.replace(/-/g,"_")];}};(function(){var _3d9=dojo.config.extraLocale;if(_3d9){if(!_3d9 instanceof Array){_3d9=[_3d9];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_3da,_3db){req(m,b,_3da,_3db);if(_3da){return;}for(var i=0;i<_3d9.length;i++){req(m,b,_3d9[i],_3db);}};}})();dojo.i18n._searchLocalePath=function(_3dc,down,_3dd){_3dc=dojo.i18n.normalizeLocale(_3dc);var _3de=_3dc.split("-");var _3df=[];for(var i=_3de.length;i>0;i--){_3df.push(_3de.slice(0,i).join("-"));}_3df.push(false);if(down){_3df.reverse();}for(var j=_3df.length-1;j>=0;j--){var loc=_3df[j]||"ROOT";var stop=_3dd(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_3e0,_3e1){function _3e2(_3e3){_3e3=dojo.i18n.normalizeLocale(_3e3);dojo.i18n._searchLocalePath(_3e3,true,function(loc){for(var i=0;i<_3e1.length;i++){if(_3e1[i]==loc){dojo["require"](_3e0+"_"+loc);return true;}}return false;});};_3e2();var _3e4=dojo.config.extraLocale||[];for(var i=0;i<_3e4.length;i++){_3e2(_3e4[i]);}};}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,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){this.inherited(arguments);var _3e5=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_3e5);this.errorMessage=dojo.string.substitute(this.errorMessage,_3e5);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}var _3e6=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_3e6&&_3e6.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;if(this.isLoaded){dojo.forEach(this.getChildren(),function(_3e7){_3e7.startup();});}if(this._isShown()||this.preload){this._onShow();}this.inherited(arguments);},_checkIfSingleChild:function(){var _3e8=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_3e9=_3e8.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_3ea=dojo.filter(_3e9.map(dijit.byNode),function(_3eb){return _3eb&&_3eb.domNode&&_3eb.resize;});if(_3e8.length==_3e9.length&&_3ea.length==1){this._singleChild=_3ea[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.href=href;if(this._created&&(this.preload||this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_3ec){if(this._beingDestroyed){return;}this.inherited(arguments);},resize:function(_3ed,_3ee){if(!this._wasShown){this._onShow();}this._resizeCalled=true;if(_3ed){dojo.marginBox(this.domNode,_3ed);}var cn=this.containerNode;if(cn===this.domNode){var mb=_3ee||{};dojo.mixin(mb,_3ed||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}}},_onShow:function(){if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){this.refresh();}}else{if(!this._childOfLayoutWidget&&this._needLayout){this._layoutChildren();}}this.inherited(arguments);this._wasShown=true;},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _3ef={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_3ef,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_3ef));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoadDeferred.callback(data);this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _3f0=this._contentSetter;dojo.forEach(this.getChildren(),function(_3f1){if(_3f1.destroyRecursive){_3f1.destroyRecursive();}});if(_3f0){dojo.forEach(_3f0.parseResults,function(_3f2){if(_3f2.destroyRecursive&&_3f2.domNode&&_3f2.domNode.parentNode==dojo.body()){_3f2.destroyRecursive();}});delete _3f0.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_3f3){this.destroyDescendants();var _3f4=this._contentSetter;if(!(_3f4&&_3f4 instanceof dojo.html._ContentSetter)){_3f4=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _3f5=this.onContentError(e);try{this.containerNode.innerHTML=_3f5;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _3f6=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_3f4,_3f6);_3f4.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_3f3){dojo.forEach(this.getChildren(),function(_3f7){if(!this.parseOnLoad||_3f7.getParent){_3f7.startup();}},this);this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_3f8){this.onLoadDeferred.errback(err);var _3f9=this["on"+type+"Error"].call(this,err);if(_3f8){console.error(_3f8,err);}else{if(_3f9){this._setContent(_3f9,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_3fa){if(_3fa.resize){_3fa.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_3fb){},onDownloadError:function(_3fc){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _3fd={};dojo.cache=function(_3fe,url,_3ff){if(typeof _3fe=="string"){var _400=dojo.moduleUrl(_3fe,url);}else{_400=_3fe;_3ff=url;}var key=_400.toString();var val=_3ff;if(_3ff!==undefined&&!dojo.isString(_3ff)){val=("value" in _3ff?_3ff.value:undefined);}var _401=_3ff&&_3ff.sanitize?true:false;if(val||val===null){if(val==null){delete _3fd[key];}else{val=_3fd[key]=_401?dojo.cache._sanitize(val):val;}}else{if(!(key in _3fd)){val=dojo._getText(key);_3fd[key]=_401?dojo.cache._sanitize(val):val;}val=_3fd[key];}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _402=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_402){val=_402[1];}}else{val="";}return val;};})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];},_stringRepl:function(tmpl){var _403=this.declaredClass,_404=this;return dojo.string.substitute(tmpl,this,function(_405,key){if(key.charAt(0)=="!"){_405=dojo.getObject(key.substr(1),false,_404);}if(typeof _405=="undefined"){throw new Error(_403+" template:"+key);}if(_405==null){return "";}return key.charAt(0)=="!"?_405:_405.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _406=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_406)){node=dojo._toDom(this._stringRepl(_406));if(node.nodeType!=1){throw new Error("Invalid template: "+_406);}}else{node=_406.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _407=dojo.parser,qry,attr;if(_407._query!="[dojoType]"){qry=_407._query;attr=_407._attrName;_407._query="[dojoType]";_407._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_407._query=qry;_407._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_408){var dest=this.containerNode;if(_408&&dest){while(_408.hasChildNodes()){dest.appendChild(_408.firstChild);}}},_attachTemplateNodes:function(_409,_40a){_40a=_40a||function(n,p){return n.getAttribute(p);};var _40b=dojo.isArray(_409)?_409:(_409.all||_409.getElementsByTagName("*"));var x=dojo.isArray(_409)?0:-1;for(;x<_40b.length;x++){var _40c=(x==-1)?_409:_40b[x];if(this.widgetsInTemplate&&_40a(_40c,"dojoType")){continue;}var _40d=_40a(_40c,"dojoAttachPoint");if(_40d){var _40e,_40f=_40d.split(/\s*,\s*/);while((_40e=_40f.shift())){if(dojo.isArray(this[_40e])){this[_40e].push(_40c);}else{this[_40e]=_40c;}this._attachPoints.push(_40e);}}var _410=_40a(_40c,"dojoAttachEvent");if(_410){var _411,_412=_410.split(/\s*,\s*/);var trim=dojo.trim;while((_411=_412.shift())){if(_411){var _413=null;if(_411.indexOf(":")!=-1){var _414=_411.split(":");_411=trim(_414[0]);_413=trim(_414[1]);}else{_411=trim(_411);}if(!_413){_413=_411;}this.connect(_40c,_411,_413);}}}var role=_40a(_40c,"waiRole");if(role){dijit.setWaiRole(_40c,role);}var _415=_40a(_40c,"waiState");if(_415){dojo.forEach(_415.split(/\s*,\s*/),function(_416){if(_416.indexOf("-")!=-1){var pair=_416.split("-");dijit.setWaiState(_40c,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_417){delete this[_417];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_418,_419,_41a){var _41b=dijit._Templated._templateCache;var key=_419||_418;var _41c=_41b[key];if(_41c){try{if(!_41c.ownerDocument||_41c.ownerDocument==dojo.doc){return _41c;}}catch(e){}dojo.destroy(_41c);}if(!_419){_419=dojo.cache(_418,{sanitize:true});}_419=dojo.string.trim(_419);if(_41a||_419.match(/\$\{([^\}]+)\}/g)){return (_41b[key]=_419);}else{var node=dojo._toDom(_419);if(node.nodeType!=1){throw new Error("Invalid template: "+_419);}return (_41b[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _41d=dijit._Templated._templateCache;for(var key in _41d){var _41e=_41d[key];if(typeof _41e=="object"){dojo.destroy(_41e);}delete _41d[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_41f,_420,_421){if(this.aroundNode&&this.aroundNode===_420){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_41f;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var pos=dijit.placeOnScreenAroundElement(this.domNode,_420,dijit.getPopupAroundAlignment((_421&&_421.length)?_421:dijit.Tooltip.defaultPosition,this.isLeftToRight()),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_420;},orient:function(node,_422,_423){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_422+"-"+_423];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_424){if(this._onDeck&&this._onDeck[1]==_424){this._onDeck=null;}else{if(this.aroundNode===_424){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_425,_426,_427){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_425,_426,_427);};dijit.hideTooltip=function(_428){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_428);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function(){this._nodeConnectionsById={};},_setConnectIdAttr:function(_429){for(var _42a in this._nodeConnectionsById){this.removeTarget(_42a);}dojo.forEach(dojo.isArrayLike(_429)?_429:[_429],this.addTarget,this);},_getConnectIdAttr:function(){var ary=[];for(var id in this._nodeConnectionsById){ary.push(id);}return ary;},addTarget:function(id){var node=dojo.byId(id);if(!node){return;}if(node.id in this._nodeConnectionsById){return;}this._nodeConnectionsById[node.id]=[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")];if(dojo.isIE&&!node.style.zoom){node.style.zoom=1;}},removeTarget:function(node){var id=node.id||node;if(id in this._nodeConnectionsById){dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);delete this._nodeConnectionsById[id];}},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _42b=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_42b);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_42c){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_42c,this.position);this._connectNode=_42c;this.onShow(_42c,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_42d,_42e){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");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.position(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.isWebKit||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 _42f=n.scrollLeft,_430=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_42f!=n.scrollLeft||_430!=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,_431=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),_431];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.isWebKit&&dojo.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,_432){this.node=dojo.byId(node);if(!_432){_432={};}this.handle=_432.handle?dojo.byId(_432.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_432.delay>0?_432.delay:0;this.skip=_432.skip;this.mover=_432.mover?_432.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(_433,node){return new dojo.dnd.Moveable(node,_433);},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(_434){dojo.publish("/dnd/move/start",[_434]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_435){dojo.publish("/dnd/move/stop",[_435]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_436){},onMove:function(_437,_438){this.onMoving(_437,_438);var s=_437.node.style;s.left=_438.l+"px";s.top=_438.t+"px";this.onMoved(_437,_438);},onMoving:function(_439,_43a){},onMoved:function(_43b,_43c){}});}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(_43d,node){return new dojo.dnd.move.constrainedMoveable(node,_43d);},constructor:function(node,_43e){if(!_43e){_43e={};}this.constraints=_43e.constraints;this.within=_43e.within;},onFirstMove:function(_43f){var c=this.constraintBox=this.constraints.call(this,_43f);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_43f.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_440,_441){var c=this.constraintBox,s=_440.node.style;s.left=(_441.l<c.l?c.l:c.r<_441.l?c.r:_441.l)+"px";s.top=(_441.t<c.t?c.t:c.b<_441.t?c.b:_441.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_442,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_442);},constructor:function(node,_443){var box=_443&&_443.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_444,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_444);},constructor:function(node,_445){var area=_445&&_445.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,_446){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _447=function(node,e,_448){dojo.dnd.Mover.call(this,node,e,_448);};dojo.extend(_447,dojo.dnd.Mover.prototype);dojo.extend(_447,{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(_446){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _447;};dojo.dnd.move.boxConstrainedMover=function(box,_449){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_449);};dojo.dnd.move.parentConstrainedMover=function(area,_44a){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,_44a);};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 _44b=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_44c){if(!_44c){_44c={};}if(_44c.timeout&&typeof _44c.timeout=="number"&&_44c.timeout>=0){this.timeout=_44c.timeout;}},markupFactory:function(_44d,node){return new dojo.dnd.TimedMoveable(node,_44d);},onMoveStop:function(_44e){if(_44e._timer){clearTimeout(_44e._timer);_44b.call(this,_44e,_44e._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_44f,_450){_44f._leftTop=_450;if(!_44f._timer){var _451=this;_44f._timer=setTimeout(function(){_44f._timer=null;_44b.call(_451,_44f,_44f._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _452=this;dojo.mixin(_452,args);_452.node=args.node;_452._showArgs=dojo.mixin({},args);_452._showArgs.node=_452.node;_452._showArgs.duration=_452.showDuration;_452.showAnim=_452.showFunc(_452._showArgs);_452._hideArgs=dojo.mixin({},args);_452._hideArgs.node=_452.node;_452._hideArgs.duration=_452.hideDuration;_452.hideAnim=_452.hideFunc(_452._hideArgs);dojo.connect(_452.showAnim,"beforeBegin",dojo.hitch(_452.hideAnim,"stop",true));dojo.connect(_452.hideAnim,"beforeBegin",dojo.hitch(_452.showAnim,"stop",true));},show:function(_453){return this.showAnim.play(_453||0);},hide:function(_454){return this.hideAnim.play(_454||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_455={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _456=function(_457){this._index=-1;this._animations=_457||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_456,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.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=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_458,_459){if(!this._current){this._current=this._animations[this._index=0];}if(!_459&&this._current.status()=="playing"){return this;}var _45a=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_45b=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_45c=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_45a);d.disconnect(_45b);d.disconnect(_45c);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_45d,_45e){this.pause();var _45f=this.duration*_45d;this._current=null;d.some(this._animations,function(a){if(a.duration<=_45f){this._current=a;return true;}_45f-=a.duration;return false;});if(this._current){this._current.gotoPercent(_45f/this._current.duration,_45e);}return this;},stop:function(_460){if(this._current){if(_460){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_456,_455);dojo.fx.chain=function(_461){return new _456(_461);};var _462=function(_463){this._animations=_463||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_463,function(a){var _464=a.duration;if(a.delay){_464+=a.delay;}if(this.duration<_464){this.duration=_464;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_462,{_doAction:function(_465,args){d.forEach(this._animations,function(a){a[_465].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_466,args){var t=this._pseudoAnimation;t[_466].apply(t,args);},play:function(_467,_468){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(_469,_46a){var ms=this.duration*_469;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_46a);});this._call("gotoPercent",arguments);return this;},stop:function(_46b){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_462,_455);dojo.fx.combine=function(_46c){return new _462(_46c);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.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 _46d=d.style(node,"height");return Math.max(_46d,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.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=d.position(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=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_46e){if(_46e.reset){_46e.reset();}});},validate:function(){var _46f=false;return dojo.every(dojo.map(this.getDescendants(),function(_470){_470._hasBeenBlurred=true;var _471=_470.disabled||!_470.validate||_470.validate();if(!_471&&!_46f){dijit.scrollIntoView(_470.containerNode||_470.domNode);_470.focus();_46f=true;}return _471;}),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(_472){if(!_472.name){return;}var _473=map[_472.name]||(map[_472.name]=[]);_473.push(_472);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _474=map[name],_475=dojo.getObject(name,false,obj);if(_475===undefined){continue;}if(!dojo.isArray(_475)){_475=[_475];}if(typeof _474[0].checked=="boolean"){dojo.forEach(_474,function(w,i){w.attr("value",dojo.indexOf(_475,w.value)!=-1);});}else{if(_474[0].multiple){_474[0].attr("value",_475);}else{dojo.forEach(_474,function(w,i){w.attr("value",_475[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(_476){var name=_476.name;if(!name||_476.disabled){return;}var _477=_476.attr("value");if(typeof _476.checked=="boolean"){if(/Radio/.test(_476.declaredClass)){if(_477!==false){dojo.setObject(name,_477,obj);}else{_477=dojo.getObject(name,false,obj);if(_477===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_477!==false){ary.push(_477);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_477);}else{dojo.setObject(name,[prev,_477],obj);}}else{dojo.setObject(name,_477,obj);}}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_478){return !_478.disabled&&_478.isValid&&!_478.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_479){},_widgetChange:function(_47a){var _47b=this._lastValidState;if(!_47a||this._lastValidState===undefined){_47b=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_47b;}}else{if(_47a.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_47a);},this);if(!_47a.isValid()&&!_47a.attr("disabled")){this._invalidWidgets.push(_47a);}_47b=(this._invalidWidgets.length===0);}}if(_47b!==this._lastValidState){this._lastValidState=_47b;this.onValidStateChange(_47b);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _47c=this;var _47d=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_47e){_47d.push(_47c.connect(_47e,"validate",dojo.hitch(_47c,"_widgetChange",_47e)));_47d.push(_47c.connect(_47e,"_setDisabledAttr",dojo.hitch(_47c,"_widgetChange",_47e)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_47f){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_480){var _481=dijit._getTabNavigable(dojo.byId(_480));this._firstFocusItem=_481.lowest||_481.first||_480;this._lastFocusItem=_481.last||_481.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_480,"tabIndex","0");this._firstFocusItem=_480;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_482){this.node.className="dijitDialogUnderlay "+_482;},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _483=dijit.getViewport();os.top=_483.t+"px";os.left=_483.l+"px";is.width=_483.w+"px";is.height=_483.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();this.domNode.style.display="none";},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n"),postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_484,_485){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_485.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_485.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _486=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_486){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_486){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _487=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_487);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});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){this._relativePosition=dojo.position(e.node);}},_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.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:dojo.hitch(this,function(){var _488=dijit._underlay;if(!_488){_488=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);}else{_488.attr(this.underlayAttrs);}var _489=948+dijit._dialogStack.length*2;dojo.style(dijit._underlay.domNode,"zIndex",_489);dojo.style(this.domNode,"zIndex",_489+1);_488.show();}),onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:dojo.hitch(this,function(){node.style.display="none";var ds=dijit._dialogStack;if(ds.length==0){dijit._underlay.hide();}else{dojo.style(dijit._underlay.domNode,"zIndex",948+ds.length*2);dijit._underlay.attr(ds[ds.length-1].underlayAttrs);}if(this.refocus){var _48a=this._savedFocus;if(ds.length>0){var pd=ds[ds.length-1];if(!dojo.isDescendant(_48a.node,pd.domNode)){pd._getFocusItems(pd.domNode);_48a=pd._firstFocusItem;}}dijit.focus(_48a);}})});},uninitialize:function(){var _48b=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_48b=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_48b=true;this._fadeOut.stop();}if(this.open||_48b){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}this.inherited(arguments);},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo.marginBox(this.domNode);var _48c=dijit.getViewport();if(mb.w>=_48c.w||mb.h>=_48c.h){var w=Math.min(mb.w,Math.floor(_48c.w*0.75)),h=Math.min(mb.h,Math.floor(_48c.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_48d=dijit.getViewport(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_48d.l+(p?p.x:(_48d.w-bb.w)/2)),t=Math.floor(_48d.t+(p?p.y:(_48d.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){var ds=dijit._dialogStack;if(ds[ds.length-1]!=this){return;}if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _48e=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_48e){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_48e){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){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,function(){var _48f=dijit.getViewport();if(!this._oldViewport||_48f.h!=this._oldViewport.h||_48f.w!=this._oldViewport.w){this.layout();this._oldViewport=_48f;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this.open=true;this._onShow();this._size();this._position();dijit._dialogStack.push(this);this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){var ds=dijit._dialogStack;if(!this._alreadyInitialized||this!=ds[ds.length-1]){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}ds.pop();this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this.open=false;this.onHide();},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._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);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._dialogStack=[];}if(!dojo._hasResource["vpg.LargePhotoDialog"]){dojo._hasResource["vpg.LargePhotoDialog"]=true;dojo.provide("vpg.LargePhotoDialog");dojo.declare("vpg.LargePhotoDialog",[dijit._Widget,dijit._Templated],{templateString:"<table class=\"bigpic\">\t\r\n\t<tr>\r\n\t\t<td rowspan=\"2\" class=\"bigpicImg\"><img dojoAttachPoint=\"largePhotoImg\" align=\"left\"></img></td>\r\n\t\t<td valign=\"top\">\r\n\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" class=\"bigpicInfo\">\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Name</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicName\" class=\"picParamValue\" colspan=\"2\"></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Location</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicLocation\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Date</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicDate\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Camera</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicCamera\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Lens</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicLens\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Focal length</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicZoom\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Aperture</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicAperture\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">Shutter speed</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicShutter\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\">ISO/film</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicIso\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t\t<tr><td colspan=\"2\" class=\"picParam\" dojoAttachPoint=\"commentsLabel\">Comments</td></tr>\r\n\t\t\t\t<tr><td dojoAttachPoint=\"bigPicComments\" class=\"picParamValue\" colspan=\"2\"/></tr>\r\n\t\t\t</table>\r\n\t\t</td>\r\n\t</tr>\r\n\t<tr valign=\"bottom\" class=\"navigationRow\">\r\n\t\t\t<td align=\"left\" style=\"padding-left: 6px\"><img dojoAttachPoint=\"previousLargePhotoButton\"/></td>\r\n\t\t\t<td align=\"right\"><img dojoAttachPoint=\"nextLargePhotoButton\"/></td>\r\n\t</tr>\r\n</table>\r\n",photoDirectory:"",postCreate:function(){this.dialog=new dijit.Dialog({});this.dialog.setContent(this.domNode);this.connect(this.previousLargePhotoButton,"onmousedown","previousPressed");this.connect(this.nextLargePhotoButton,"onmousedown","nextPressed");this.connect(this.previousLargePhotoButton,"onclick","previousClicked");this.connect(this.nextLargePhotoButton,"onclick","nextClicked");this.connect(this.largePhotoImg,"onload","_centerDialog");},previousClicked:function(evt){},nextClicked:function(evt){},setPhotoDirectory:function(_490){this.photoDirectory=_490;},show:function(){this.dialog.show();},previousPressed:function(evt){if(this.showPrev){this.previousLargePhotoButton.src="lookandfeel/img/arrow-left-pressed.gif";}},nextPressed:function(evt){if(this.showNext){this.nextLargePhotoButton.src="lookandfeel/img/arrow-right-pressed.gif";}},loadPhoto:function(pic,_491,_492){this.largePhotoImg.src=this.photoDirectory+pic.bigPicPath;this.dialog.titleNode.innerHTML=pic.name;this.largePhotoImg.alt=pic.name;this.bigPicName.innerHTML=pic.name;this.bigPicLocation.innerHTML=pic.location;this.bigPicDate.innerHTML=pic.date;this.bigPicCamera.innerHTML=(!pic.camera||pic.camera==""?"N/A":pic.camera);this.bigPicLens.innerHTML=(!pic.lens||pic.lens==""?"N/A":pic.lens);this.bigPicZoom.innerHTML=(!pic.zoom||pic.zoom==""?"N/A":pic.zoom);this.bigPicAperture.innerHTML=(!pic.aperture||pic.aperture==""?"N/A":pic.aperture);this.bigPicShutter.innerHTML=(!pic.shutter||pic.shutter==""?"N/A":pic.shutter);this.bigPicIso.innerHTML=(!pic.iso||pic.iso==""?"N/A":pic.iso);if(!pic.comments||pic.comments==""){this.commentsLabel.style.display="none";this.bigPicComments.style.display="none";}else{this.bigPicComments.innerHTML=pic.comments;}this.previousLargePhotoButton.src="lookandfeel/img/arrow-left"+(_491?".gif":"-disabled.gif");this.nextLargePhotoButton.src="lookandfeel/img/arrow-right"+(_492?".gif":"-disabled.gif");this.showPrev=_491;this.showNext=_492;},_centerDialog:function(){var _493=this.dialog.domNode;var ww=document.body.clientWidth;var wh=document.body.clientHeight;var dw=this.largePhotoImg.width+220;var dh=this.largePhotoImg.height+10;var top=wh/2-dh/2-15;var left=ww/2-dw/2;_493.style.top=(top<0?0:top)+"px";_493.style.left=(left<0?0:left)+"px";}});}if(!dojo._hasResource["vpg.GalleryTooltip"]){dojo._hasResource["vpg.GalleryTooltip"]=true;dojo.provide("vpg.GalleryTooltip");dojo.declare("vpg.GalleryTooltip",[dijit.Tooltip],{open:function(_494){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip1(this.label||this.domNode.innerHTML,_494,this.position);this._connectNode=_494;this.onShow(_494,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip1(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}}});dijit.showTooltip1=function(_495,_496,_497){if(!dijit._masterTT1){dijit._masterTT1=new dijit._MasterTooltip();dijit._masterTT1.containerNode.className="dijitGalleryTooltipContainer";var _498=dojo.query(".dijitTooltipConnector");_498[_498.length-1].className="dijitGalleryTooltipConnector";}return dijit._masterTT1.show(_495,_496,_497);};dijit.hideTooltip1=function(_499){if(!dijit._masterTT1){dijit._masterTT1=new dijit._MasterTooltip();}return dijit._masterTT1.hide(_499);};}if(!dojo._hasResource["vpg.GalleryController"]){dojo._hasResource["vpg.GalleryController"]=true;dojo.provide("vpg.GalleryController");dojo.declare("vpg.GalleryController",dijit._Widget,{MAX_THUMBS:9,THUMBS_LINE:3,MAX_DIRS:9,_CACHE_PICS:true,_currentCategIndex:-1,_currentSelDirId:-1,_currentPicIndex:-1,_currentThumbIndex:-1,_thumbs:[],_gallery2:null,_allPictures:null,_allDirectories:null,_allCategories:null,_pictures:null,_categories:null,_directories:null,_picturesDirectory:null,_latestPictures:null,_privateOnly:false,_loadedUser:null,postCreate:function(args){this._nextThumbs=dojo.byId("nextThumbs");this._prevThumbs=dojo.byId("prevThumbs");this._nextPic=dojo.byId("nextPic");this._prevPic=dojo.byId("prevPic");this._nextDirs=dojo.byId("nextDirs");this._prevDirs=dojo.byId("prevDirs");this._editGalleryPhoto=dojo.byId("editGalleryPhoto");this._addGalleryPhoto=dojo.byId("addGalleryPhoto");this._delGalleryPhoto=dojo.byId("delGalleryPhoto");for(i=0;i<=this.MAX_THUMBS;i++){this._thumbs[i]=dojo.byId("thumb"+i);}this._pictureImg=dojo.byId("picture");this._directoriesDiv=dojo.byId("directories");this._description1=dojo.byId("picDescription1");this._description2=dojo.byId("picDescription2");this._latestDiv=dojo.byId("latest");this._gallery2=this._GetGalleryServices().getGallery2();if(this._gallery2){this.ReloadGallery(this._gallery2);}this._HideSplash();this._ConnectGalleryEvents();},_HideSplash:function(){this._opacity1=100;this._opacity2=100;this._DecreaseSplash1();},_DecreaseSplash1:function(_49a){if(dojo.isIE){dojo.byId("dmp").style.filter="alpha(opacity="+this._opacity1+")";}else{dojo.byId("dmp").style.opacity=this._opacity1*0.01;}this._opacity1=this._opacity1-(dojo.isIE?4:1);if(this._opacity1>0){setTimeout(dojo.hitch(this,"_DecreaseSplash1"));}else{this._DecreaseSplash2();}},_DecreaseSplash2:function(_49b){if(dojo.isIE){dojo.byId("splash").style.filter="alpha(opacity="+this._opacity2+")";}else{dojo.byId("splash").style.opacity=this._opacity2*0.01;}this._opacity2-=5;if(this._opacity2>0){setTimeout(dojo.hitch(this,"_DecreaseSplash2"));}else{dojo.byId("splash").style.display="none";}},ReloadGallery:function(_49c){this._gallery2=_49c;this._allPictures=_49c.pictures;this._allDirectories=_49c.directories;this._allCategories=_49c.categories;this._categories=_49c.categoryPics.list;this._directories=_49c.directoryPics.list;this._latestPictures=this._gallery2.latestPics.list;this._picturesDirectory=this._gallery2.picsDirWithSeparator;var _49d=dijit.byId("menuController");_49d.SetupMenu(this._gallery2.currentUser);this._LoadCategories2();this._LoadDirectories(0,-1,-1,false);var _49e=(_49c.initialData!=null&&_49c.initialData.categoryId!=null);var _49f=(_49c.initialData!=null&&_49c.initialData.directoryId!=null);var _4a0=(_49c.initialData!=null&&_49c.initialData.pictureId!=null);var _4a1=(_49c.initialData!=null&&_49c.initialData.showUserConfig);var _4a2=(_49c.initialData!=null&&_49c.initialData.showMessage);var _4a3=this._categories.length;if(_4a3>0){var _4a4;if(_49e){this._currentCategIndex=this._GetCategIndexFromId(this._categories,_49c.initialData.categoryId);}else{if(!_49f){this._currentCategIndex=this._GetRandomNumber(_4a3-1);}}if(!_49f){var _4a4=dojo.byId("categsTable").childNodes[0].childNodes[this._currentCategIndex].childNodes[0];this._ChangeCategory2(_4a4,true,false);}if(_49f){var _4a5=this._GetDirIndexFromId(this._directories,_49c.initialData.directoryId);var _4a6=-1;if(_4a5.length==2){_4a6=this._directories[_4a5[0]].sectionId;}this._LoadDirectories(_4a5[0],_49c.initialData.directoryId,_4a6,_4a5.length==2);var _4a7;_4a7=(this._currentDirIndex==_4a5[0])?0:_4a5[0]-this._currentDirIndex;if(_4a5.length==2){_4a7+=(_4a5[1]+1);}var _4a8=dojo.byId("dirsTable").childNodes[0].childNodes[_4a7].childNodes[0];this._ChangeDirectory(_4a8,false);}if(_4a0){this._ChangePicture2(this._GetPicIndexFromId(_49c.initialData.pictureId));}}this._loadedUser=null;var _4a9=this._gallery2.currentUser.admin||(this._gallery2.currentUser.poweruser&&this._gallery2.currentUser.enabled);this._TogglePrivateOnly(_4a9,false);dojo.style(dojo.byId("photoActionsTable"),"display",this._gallery2.currentUser.admin?"":"none");if(this._gallery2.currentUser.admin){this._LoadAdminStuff2();}else{dojo.byId("_adminUserSelect").style.visibility="hidden";}this._SetupUnreadMessages();dojo.byId("mainPanelPane").style.visibility="visible";dojo.byId("actionPanelPane").style.visibility="visible";setTimeout(dojo.hitch(this,"_PreloadSections",0),0);if(_4a1){_49d.OpenUserConfig();}if(_4a2){_49d.ShowMessages();}var _4aa=vpg.Utils.GetDMntYYDate(_49c.pictures[_49c.latestPics.list[0].picId].dbDate);dojo.byId("lastUpdate").innerHTML=_4aa;},_LoadAdminStuff2:function(){this._userSelect=dojo.byId("_adminUserSelect");this._userSelect.style.visibility="visible";var _4ab=this._gallery2.users;var _4ac=_4ab.orderedList;var user;var opt;this._userSelect.innerHTML="";opt=document.createElement("OPTION");opt.value=-1;opt.innerHTML="Administrator";this._userSelect.appendChild(opt);opt=document.createElement("OPTION");opt.value=-3;opt.innerHTML="Guest";this._userSelect.appendChild(opt);opt=document.createElement("OPTGROUP");opt.label="Users";this._userSelect.appendChild(opt);for(i=0;i<_4ac.length;i++){user=_4ab[_4ac[i]];if(user.poweruser){opt=document.createElement("OPTION");opt.value=user.id;opt.innerHTML=user.name;this._userSelect.appendChild(opt);}}},_clone:function(_4ad){if(typeof (_4ad)!="object"){return _4ad;}if(_4ad==null){return _4ad;}var _4ae=new Object();for(var i in _4ad){_4ae[i]=this._clone(_4ad[i]);}if(_4ad.length!=null){_4ae.length=_4ad.length;}return _4ae;},_UserViewChange:function(){this._loadedUser=null;var user=[];user.admin=false;user.guest=false;user.poweruser=false;if(this._userSelect.value==-1){user.admin=true;}else{if(this._userSelect.value==-3){user.guest=true;this._loadedUser=user;}else{user=this._gallery2.users[this._userSelect.value];this._loadedUser=user;}}var _4af=user.admin||(user.poweruser&&user.enabled);this._TogglePrivateOnly(_4af,this._privateOnly);this._LoadGalleryForUser(user);},_LoadGalleryForUser:function(user){this._directories=this._clone(this._gallery2.directoryPics.list);var _4b0=[];var dir;var _4b1;var _4b2=[];for(var i=0;i<this._directories.length;i++){dir=this._directories[i];if(!user.admin){dir=this._ChangeDirForLoadedUser(dir,user);if(dir.childSections){_4b2=[];for(var j=0;j<dir.childSections.list.length;j++){_4b1=dir.childSections.list[j];_4b1=this._ChangeDirForLoadedUser(_4b1,user);if(_4b1.pictures){_4b2[_4b2.length]=_4b1;}}if(_4b2.length>0){dir.childSections.list=_4b2;}else{dir.childSections=null;}}if(dir.pictures||dir.childSections){_4b0[_4b0.length]=dir;}}else{if(!this._privateOnly||dir.hasPrivate){_4b0[_4b0.length]=dir;}}}this._directories=_4b0;this._SelectSectionForLoadedUser();},_ChangeDirForLoadedUser:function(dir,user){if(!dir.pictures||dir.pictures.list.length==0){return dir;}var pics=dir.pictures.list;var _4b3=[];var pic;var _4b4=false;for(var j=0;j<pics.length;j++){if(!pics[j].guestVisible){if(this.GetLoggedInUser().poweruser||(user.poweruser&&this.PicAvailableForUser(pics[j],user))){_4b4=true;}else{continue;}}_4b3[_4b3.length]=pics[j];}if(_4b3.length>0&&(!this._privateOnly||_4b4||(user.guest&&dir.guestVisible))){dir.hasPrivate=_4b4;dir.pictures.list=_4b3;}else{dir.pictures=null;}return dir;},IsDirSectionSelected:function(){return this._selectedRow!=null&&this._selectedRow.displayDir!=null;},GetCurrentSelDirId:function(){return this._currentSelDirId;},GetCurrentCategIndex:function(){return this._currentCategIndex;},_SelectSectionForLoadedUser:function(){this._LoadDirectories(0,this._currentSelDirId,-1,false);var dir=this._GetDirectoryFromId(this._directories,this._currentSelDirId);if(dir&&dir.pictures){this._pictures=this._GetVisiblePicsForCurrentUser(dir.pictures.list);if(this._pictures.length>0){this._ReloadThumbs2(false);return;}}else{this._currentSelDirId=-1;this._expandedDirId=-1;var _4b5=dojo.byId("categsTable").childNodes[0].childNodes[0].childNodes[0];this._ChangeCategory2(_4b5,false,false);}},GetLoggedInUser:function(){return this._gallery2.currentUser;},GetDirectoryFromId:function(id){return this._GetDirectoryFromId(this._directories,id);},_GetDirectoryFromId:function(dirs,id){var dir;var _4b6=null;for(var i=0;i<dirs.length;i++){dir=dirs[i];if(dir.sectionId==id){_4b6=dir;break;}if(dir.childSections){_4b6=this._GetDirectoryFromId(dir.childSections.list,id);if(_4b6!=null){break;}}}return _4b6;},PicAvailableForUser:function(pic,user){if(user.guest){return false;}var _4b7=pic.userIds;if(_4b7==null){return false;}for(var i=0;i<_4b7.list.length;i++){if(_4b7.list[i]==user.id){return true;}}return false;},_LoadCategories2:function(){var tr,td;var oTbl=dojo.byId("categsTable");while(oTbl.hasChildNodes()){oTbl.removeChild(oTbl.firstChild);}for(i=0;i<this._categories.length;i++){tr=oTbl.insertRow(this._GetRowCount(oTbl));td=tr.insertCell(0);td.categoryIndex=i;td.appendChild(document.createTextNode(this._allCategories[this._categories[i].sectionId].name));}},_GetRowCount:function(_4b8){if(_4b8.childNodes.length==0){return 0;}return _4b8.childNodes[0].childNodes.length;},_LoadDirectories:function(_4b9,_4ba,_4bb,_4bc){if(_4b9<0){_4b9=0;}this._currentDirIndex=_4b9;this._currentSelDirId=_4ba;this._ToggleDirNavigationButtons(_4b9>0,true);var _4bd=(this._expandedDirId==_4bb&&_4bc);displayDirs=[];var max=this.MAX_DIRS;var _4be,dir,_4bf,id,kids,_4c0,_4c1,_4c2;this._displayedKids=0;for(i=_4b9;i<_4b9+max;i++){if(i>this._directories.length-1){if(_4b9==0){break;}_4c1=i-this.MAX_DIRS;this._LoadDirectories(_4c1,_4ba,_4bb,_4bc);this._ToggleDirNavigationButtons(null,false);return;}else{if(i==this._directories.length-1){this._ToggleDirNavigationButtons(null,false);}}id=this._directories[i].sectionId;dir=this._allDirectories[id];_4c2=this._directories[i].pictures&&this._directories[i].pictures.list.length>0;_4be=this._GetDisplayDir(id,dir.name,(_4ba==id)&&_4c2,(_4bb!=id||_4bd),this._DirHasChildren(i),false,null,i,null,_4c2);displayDirs[displayDirs.length]=_4be;if(_4bb==id&&!_4bd){kids=this._directories[i].childSections.list;this._displayedKids=kids.length;for(j=0;j<kids.length;j++){max--;_4c0=kids[j].sectionId;_4c2=kids[j].pictures&&kids[j].pictures.list.length>0;_4bf=this._GetDisplayDir(kids[j].sectionId,this._allDirectories[_4c0].name,(_4ba==_4c0),null,false,true,id,j,i,_4c2);displayDirs[displayDirs.length]=_4bf;}}}this._expandedDirId=_4bd?-1:_4bb;var _4c3=displayDirs.length-this.MAX_DIRS;if(_4c3>0){this._ToggleDirNavigationButtons(true,null);displayDirs.splice(0,_4c3);this._currentDirIndex=this._currentDirIndex+_4c3;}this._ShowDirectories(displayDirs);},_ToggleDirNavigationButtons:function(prev,next){if(prev!=null){this._prevDirs.style.visibility=prev?"visible":"hidden";}if(next!=null){this._nextDirs.style.visibility=next?"visible":"hidden";}},_GetDisplayDir:function(id,name,sel,_4c4,_4c5,_4c6,_4c7,_4c8,_4c9,_4ca){displayDir={};displayDir.isChild=_4c6;displayDir.hasKids=_4c5;displayDir.isSelected=sel;displayDir.isCollapsed=_4c4;displayDir.id=id;displayDir.name=name;displayDir.parentId=_4c7;displayDir.index=_4c8;displayDir.parentIndex=_4c9;displayDir.hasPics=_4ca;return displayDir;},_ShowDirectories:function(_4cb){oTbl=dojo.byId("dirsTable");while(oTbl.hasChildNodes()){oTbl.removeChild(oTbl.firstChild);}var dir;for(i=0;i<_4cb.length;i++){dir=_4cb[i];tr=oTbl.insertRow(this._GetRowCount(oTbl));td=tr.insertCell(0);td.displayDir=dir;if(dir.hasKids){td.appendChild(this._GetExpandImage(dir.id,dir.isCollapsed));}if(dir.isChild){td.className="child";}if(dir.isSelected){this._MakeSelection(td);}td.appendChild(document.createTextNode(dir.name));}},_ChangeDirectory:function(_4cc,_4cd){if(!_4cc.displayDir){return;}var _4ce=_4cc.displayDir.index;var _4cf=_4cc.displayDir.parentIndex;var _4d0=-1;if(_4cf!=null&&_4cf>-1){var pics=this._directories[_4cf].childSections.list[_4ce].pictures;if(!pics){return;}this._pictures=pics.list;_4d0=this._directories[_4cf].childSections.list[_4ce].sectionId;}else{dirPics=this._directories[_4ce];if(!dirPics.pictures){return;}this._pictures=dirPics.pictures.list;_4d0=this._directories[_4ce].sectionId;}if(this._privateOnly){this._pictures=this._GetVisiblePicsForCurrentUser(this._pictures);}this._ReloadThumbs2(_4cd);setTimeout(dojo.hitch(this,"_LogViewDir",_4d0),0);},_DirClick:function(evt){var _4d1=evt.target;if(_4d1.expandImgDirId!=null){this._LoadDirectories(this._currentDirIndex,this._currentSelDirId,_4d1.expandImgDirId,true);setTimeout(dojo.hitch(this,"_PreloadChildDirectories",this._currentDirIndex,_4d1.expandImgDirId),0);}if(!_4d1.displayDir){return;}else{if(_4d1.displayDir.hasKids){this._LoadDirectories(this._currentDirIndex,_4d1.displayDir.id,_4d1.displayDir.id,false);}else{if(_4d1.displayDir.isChild){if(_4d1.displayDir.hasPics){this._LoadDirectories(this._currentDirIndex,_4d1.displayDir.id,_4d1.displayDir.parentId,false);}}else{if(_4d1.displayDir.hasPics){this._LoadDirectories(this._currentDirIndex,_4d1.displayDir.id,this._expandedDirId,false);}}}}if(_4d1.displayDir.hasPics){this._ChangeDirectory(_4d1,false);}},_NextDirs:function(){this._expandedDirId=-1;this._nextDirs.src="lookandfeel/img/pgdwn.gif";var _4d2=this._currentDirIndex+this.MAX_DIRS-this._displayedKids;this._LoadDirectories(_4d2,this._currentSelDirId,this._expandedDirId,false);setTimeout(dojo.hitch(this,"_PreloadDirectories",_4d2),0);},_PrevDirs:function(){this._expandedDirId=-1;this._prevDirs.src="lookandfeel/img/pgup.gif";this._LoadDirectories(this._currentDirIndex-this.MAX_DIRS,this._currentSelDirId,this._expandedDirId,false);},_DirHasChildren:function(_4d3){return this._directories[_4d3].childSections&&this._directories[_4d3].childSections.list.length>0;},_GetExpandImage:function(_4d4,_4d5){var _4d6=document.createElement("img");_4d6.src="lookandfeel/img/"+(_4d5?"plus.gif":"minus.gif");_4d6.className="expand";_4d6.id="expandImg"+(_4d4);_4d6.expandImgDirId=_4d4;return _4d6;},_ConnectGalleryEvents:function(){this.connect(this._nextThumbs,"onmouseup","_NextThumbs");this.connect(this._nextThumbs,"onmousedown",function(){if(this._pictures.length>this._currentThumbIndex+this.MAX_THUMBS){this._nextThumbs.src="lookandfeel/img/arrow-right-pressed.gif";}});this.connect(this._prevThumbs,"onmouseup","_PrevThumbs");this.connect(this._prevThumbs,"onmousedown",function(){if(this._currentThumbIndex-this.MAX_THUMBS>=0){this._prevThumbs.src="lookandfeel/img/arrow-left-pressed.gif";}});this.connect(this._nextPic,"onmouseup","_NextPic");this.connect(this._nextPic,"onmousedown",function(){if(this._currentPicIndex+1<this._pictures.length){this._nextPic.src="lookandfeel/img/arrow-right-pressed.gif";}});this.connect(this._prevPic,"onmouseup","_PrevPic");this.connect(this._prevPic,"onmousedown",function(){if(this._currentPicIndex>0){this._prevPic.src="lookandfeel/img/arrow-left-pressed.gif";}});this.connect(this._nextDirs,"onmouseup","_NextDirs");this.connect(this._nextDirs,"onmousedown",function(){this._nextDirs.src="lookandfeel/img/pgdwn-pressed.gif";});this.connect(this._prevDirs,"onmouseup","_PrevDirs");this.connect(this._prevDirs,"onmousedown",function(){this._prevDirs.src="lookandfeel/img/pgup-pressed.gif";});this.connect(this._editGalleryPhoto,"onmouseup","editGalleryPhoto");this.connect(this._editGalleryPhoto,"onmousedown",function(){this._editGalleryPhoto.src="lookandfeel/img/pen-icon-pressed.gif";});this.connect(this._addGalleryPhoto,"onmouseup","addGalleryPhoto");this.connect(this._addGalleryPhoto,"onmousedown",function(){this._addGalleryPhoto.src="lookandfeel/img/add-icon-pressed.gif";});this.connect(this._delGalleryPhoto,"onmouseup","delGalleryPhoto");this.connect(this._delGalleryPhoto,"onmousedown",function(){this._delGalleryPhoto.src="lookandfeel/img/del-icon-pressed.gif";});this.connect(this._pictureImg,"onclick","_PictureClick");this.connect(dojo.byId("thumbs"),"onclick","_ThumbsClick");this.connect(this._latestDiv,"onclick","_LatestClick");this.connect(dojo.byId("privateOnly"),"onclick","_PrivateOnlyClick");this.connect(this._pictureImg,"onload",function(){dojo.byId("bottomTd").style.width=this._pictureImg.width-9;dojo.byId("shadowRight").style.height=this._pictureImg.height-8;});if(this._gallery2.currentUser.admin){this.connect(this._userSelect,"onchange","_UserViewChange");}this.connect(dojo.byId("categsTable"),"onclick","_CategClick2");this.connect(dojo.byId("dirsTable"),"onclick","_DirClick");},_ChangeCategory2:function(_4d7,_4d8,log){if(_4d7.tagName!="TD"){return;}var _4d9=_4d7.categoryIndex;this._currentCategIndex=_4d9;this._pictures=this._categories[_4d9].pictures?this._categories[_4d9].pictures.list:null;this._MakeSelection(_4d7);this._ReloadThumbs2(_4d8);if(log){setTimeout(dojo.hitch(this,"_LogViewCateg",this._categories[_4d9].sectionId),0);}},_GetVisiblePicsForCurrentUser:function(pics){var user=this._loadedUser?this._loadedUser:this._gallery2.currentUser;newPics=[];var pic;for(var i=0;i<pics.length;i++){pic=pics[i];if(!this._privateOnly){if(user.admin||this.GetLoggedInUser().poweruser||pic.guestVisible||user.poweruser&&this.PicAvailableForUser(pic,user)){newPics[newPics.length]=pic;}}else{if(!pic.guestVisible&&(this.GetLoggedInUser().poweruser||(user.poweruser&&this.PicAvailableForUser(pic,user))||(user.admin&&pic.userIds!=null))){newPics[newPics.length]=pic;}}}return newPics;},_ReloadThumbs2:function(_4da){var _4db=this._pictures?this._pictures.length:0;this._ChangeThumbs2(0);if(_4db==0){return;}this._currentThumbIndex=0;this._currentPicIndex=_4da?this._GetRandomNumber(_4db-1):0;this._ChangePicture2(this._currentPicIndex);},_ChangeThumbs2:function(_4dc){dojo.byId("thumbs").style.visibility="hidden";var _4dd=(_4dc==0);this._prevThumbs.src="lookandfeel/img/arrow-left"+(_4dd?"-disabled.gif":".gif");var _4de=this._pictures?this._pictures.length:0;var _4df;var pic;var _4e0;for(var i=0;i<this.MAX_THUMBS;i++){_4df=i+_4dc;_4e0=(_4df<_4de);if(_4e0){pic=this._allPictures[this._pictures[_4df].picId];this._SetThumbTooltip(i,pic);}this._thumbs[i].src=_4e0?this._picturesDirectory+pic.thumbPath:"lookandfeel/img/blank.gif";this._thumbs[i].className=_4e0?"thumb":"blankThumb";}dojo.byId("thumbs").style.visibility="visible";var _4e1=(_4df+1>=_4de);this._nextThumbs.src="lookandfeel/img/arrow-right"+(_4e1?"-disabled.gif":".gif");this._currentThumbIndex=_4dc;setTimeout(dojo.hitch(this,"_PreloadFromThumbs",_4dc,_4e1),0);},_SetThumbTooltip:function(_4e2,pic){var _4e3=dojo.byId("thumbTooltip"+_4e2);_4e3.childNodes[0].childNodes[0].childNodes[0].innerHTML=pic.name;_4e3.childNodes[0].childNodes[1].childNodes[0].innerHTML=pic.location;},_ChangePicture2:function(_4e4){if(!this._pictures[_4e4]){return;}dojo.byId("imgTable").style.visibility="hidden";var _4e5=(_4e4==0);this._prevPic.src="lookandfeel/img/arrow-left"+(_4e5?"-disabled.gif":".gif");this._currentPicIndex=_4e4;var pic=this._allPictures[this._pictures[_4e4].picId];this._pictureImg.alt=pic.name;this._pictureImg.src=this._picturesDirectory+pic.picPath;dojo.byId("imgTable").style.visibility="visible";this._description1.innerHTML=pic.name;this._description2.innerHTML=pic.location+", "+vpg.Utils.GetMonthYYYYDate(pic.date);var _4e6="";var _4e7=(_4e4==this._pictures.length-1);this._nextPic.src="lookandfeel/img/arrow-right"+(_4e7?"-disabled.gif":".gif");if(_4e4+1<this._pictures.length&&_4e4+1>this._currentThumbIndex+this.MAX_THUMBS-1){setTimeout(dojo.hitch(this,"_PreloadPic",_4e4+1),0);}if(_4e4-1>=0&&_4e4-1>this._currentThumbIndex+this.MAX_THUMBS-1){setTimeout(dojo.hitch(this,"_PreloadPic",_4e4-1),0);}setTimeout(dojo.hitch(this,"_preloadLargePhoto",_4e4),0);},_TogglePrivateOnly:function(_4e8,_4e9){var _4ea=dojo.byId("privateOnly");this._privateOnly=_4e9;_4ea.style.display=_4e8?"":"none";_4ea.src="lookandfeel/img/eye"+(_4e9?"-sel.gif":".gif");},_PrivateOnlyClick:function(evt){this._TogglePrivateOnly(true,!this._privateOnly);var user=this._loadedUser?this._loadedUser:this._gallery2.currentUser;this._LoadGalleryForUser(user);setTimeout(dojo.hitch(this,"_PreloadDirectories",0),0);},_NextThumbs:function(){if(this._pictures.length>this._currentThumbIndex+this.MAX_THUMBS){this._nextThumbs.src="lookandfeel/img/arrow-right.gif";this._ChangeThumbs2(this._currentThumbIndex+this.MAX_THUMBS);}},_PrevThumbs:function(){if(this._currentThumbIndex-this.MAX_THUMBS>=0){this._prevThumbs.src="lookandfeel/img/arrow-left.gif";this._ChangeThumbs2(this._currentThumbIndex-this.MAX_THUMBS);}},_NextPic:function(){if(this._currentPicIndex+1<this._pictures.length){this._ChangePicture2(this._currentPicIndex+1);}},_PrevPic:function(){if(this._currentPicIndex>0){this._ChangePicture2(this._currentPicIndex-1);}},_PictureClick:function(){this._changeLargePhoto(this._currentPicIndex);this._largePhotoDialog.show();if(this._currentLargePhotoIndex>0){setTimeout(dojo.hitch(this,"_preloadLargePhoto",this._currentLargePhotoIndex-1),0);}if(this._currentLargePhotoIndex+1<this._pictures.length){setTimeout(dojo.hitch(this,"_preloadLargePhoto",this._currentLargePhotoIndex+1),0);}},_prevLargePhoto:function(evt){if(this._currentLargePhotoIndex>0){this._changeLargePhoto(this._currentLargePhotoIndex-1);}if(this._currentLargePhotoIndex>0){setTimeout(dojo.hitch(this,"_preloadLargePhoto",this._currentLargePhotoIndex-1),0);}},_nextLargePhoto:function(evt){if(this._currentLargePhotoIndex+1<this._pictures.length){this._changeLargePhoto(this._currentLargePhotoIndex+1);}if(this._currentLargePhotoIndex+1<this._pictures.length){setTimeout(dojo.hitch(this,"_preloadLargePhoto",this._currentLargePhotoIndex+1),0);}},_largePhotoDialog:null,_changeLargePhoto:function(_4eb){this._currentLargePhotoIndex=_4eb;var pic=this._allPictures[this._pictures[_4eb].picId];if(!this._largePhotoDialog){this._largePhotoDialog=new vpg.LargePhotoDialog({photoDirectory:this._picturesDirectory});dojo.connect(this._largePhotoDialog,"previousClicked",this,"_prevLargePhoto","_prevLargePhoto");dojo.connect(this._largePhotoDialog,"nextClicked",this,"_nextLargePhoto","_nextLargePhoto");}var _4ec=(_4eb>0);var _4ed=(_4eb<this._pictures.length-1);this._largePhotoDialog.loadPhoto(pic,_4ec,_4ed);setTimeout(dojo.hitch(this,"_LogViewDetail",pic.id),0);},_MakeSelection:function(_4ee){if(this._selectedRow){var _4ef=(this._selectedRow.displayDir!=null&&this._selectedRow.displayDir.isChild);this._selectedRow.className=_4ef?"child":(this._selectedRow.className=="selLatest"?"latest":"sections");}var _4ef=(_4ee.displayDir!=null&&_4ee.displayDir.isChild);_4ee.className=_4ef?"selChild":(_4ee.className=="latest"?"selLatest":"selSection");this._selectedRow=_4ee;},_CategClick2:function(evt){var _4f0=evt.target;this._ChangeCategory2(_4f0,false,true);},_LatestClick:function(evt){if(this._loadedUser){alert("Login with the correspondig user to see the latest photos for that user.");return;}this._pictures=this._latestPictures;this._MakeSelection(dojo.byId("latest"));this._ReloadThumbs2(false);setTimeout(dojo.hitch(this,"_LogViewLatest"),0);},_GetGalleryServices:function(){if(!this._jsonrpc){this._jsonrpc=new JSONRpcClient("/JSON-RPC");}return this._jsonrpc.galleryServices;},_GetRandomNumber:function(max){return Math.ceil(Math.random()*(max+1))-1;},_ThumbsClick:function(evt){var _4f1=parseInt(this._currentThumbIndex)+parseInt(evt.target.id.replace("thumb",""));this._ChangePicture2(_4f1);setTimeout(dojo.hitch(this,"_LogViewPic",_4f1),0);},GetCurrentPicture:function(){return this._pictures[this._currentPicIndex];},GetCurrentPhotoPrintInfo:function(){var _4f2={};_4f2.photo=this._allPictures[this.GetCurrentPicture().picId];_4f2.height=this._pictureImg.height;_4f2.width=this._pictureImg.width;_4f2.landscape=_4f2.width>_4f2.height;return _4f2;},_GetIdFromTarget:function(_4f3){return replace(targ);},_GetPicIndexFromId:function(id){for(var i=0;i<this._pictures.length;i++){if(this._pictures[i].picId==id){return i;}}return -1;},_GetCategIndexFromId:function(list,_4f4){for(var i=0;i<list.length;i++){if(list[i].sectionId==_4f4){return i;}}return -1;},_GetDirIndexFromId:function(list,_4f5){var _4f6=[];var _4f7;for(var i=0;i<list.length;i++){if(list[i].sectionId==_4f5){_4f6[0]=i;return _4f6;}if(list[i].childSections!=null){for(var j=0;j<list[i].childSections.list.length;j++){_4f7=list[i].childSections.list[j];if(_4f7.sectionId==_4f5){_4f6[0]=i;_4f6[1]=j;return _4f6;}}}}return _4f6;},_LogViewCateg:function(id){if(!this._gallery2.currentUser.admin){this._GetGalleryServices().logViewCateg(id);}},_LogViewDir:function(id){if(!this._gallery2.currentUser.admin){this._GetGalleryServices().logViewDir(id);}},_LogViewPic:function(_4f8){if(!this._pictures[_4f8]){return;}if(!this._gallery2.currentUser.admin){this._GetGalleryServices().logViewPic(this._pictures[_4f8].picId);}},_LogViewDetail:function(id){if(!this._gallery2.currentUser.admin){this._GetGalleryServices().logViewDetail(id);}},_LogViewLatest:function(){if(!this._gallery2.currentUser.admin){this._GetGalleryServices().logViewLatest();}},getSystemAttribute:function(attr){return this._gallery2.systemAttributes[attr];},UpdatePicsWithSections:function(_4f9){if(!_4f9&&this._sectionsUpdatedForPics){return;}var pics;for(var i=0;i<this._categories.length;i++){if(!_4f9&&this._categories[i].pictures){pics=this._categories[i].pictures.list;for(var j=0;j<pics.length;j++){this._allPictures[pics[j].picId].categoryId=this._categories[i].sectionId;}}}this._UpdatePicsWithDirs(this._directories,null);this._sectionsUpdatedForPics=true;},_UpdatePicsWithDirs:function(_4fa,_4fb){for(var i=0;i<_4fa.length;i++){this._AddDirToPics(_4fa[i],_4fb);}},_AddDirToPics:function(_4fc,_4fd){var dirs;var dir;if(_4fc.childSections){this._UpdatePicsWithDirs(_4fc.childSections.list,_4fd);}if(!_4fc.pictures){return;}var pics=_4fc.pictures.list;for(var j=0;j<pics.length;j++){if(_4fd!=null&&_4fd!=pics[j].picId){continue;}dir=[];dir.id=_4fc.sectionId;dirs=this._allPictures[pics[j].picId].directories;if(!dirs){dirs=[];}dir.guestVisible=pics[j].guestVisible;dir.userIds=pics[j].userIds;dirs[dirs.length]=dir;this._allPictures[pics[j].picId].directories=dirs;}},GetUnreadMessages:function(){return this._gallery2.unreadMessages;},SetUnreadMessages:function(_4fe){this._gallery2.unreadMessages=_4fe;this._SetupUnreadMessages();},SetCurrentUser:function(user){this._gallery2.currentUser=user;},_SetupUnreadMessages:function(){var _4ff=this._gallery2.unreadMessages;var _500=dojo.byId("unreadIcon");if(!this._gallery2.currentUser.guest&&_4ff!=null&&(_4ff.guestMessages||_4ff.userMessages||_4ff.groupMessages)){_500.style.display="";var _501=_4ff.guestMessages;var _502=_4ff.userMessages;var _503=_4ff.groupMessages;var _504=dojo.byId("unreadTooltipDiv");_504.innerHTML="";if(_501!=null){var _505=document.createElement("DIV");_505.className="unreadTooltip1";_505.appendChild(document.createTextNode(_501.length>1?"New messages from guests: ":"New message from guest "));var _506=document.createElement("DIV");_506.className="unreadTooltip2";for(var i=0;i<_501.length;i++){_506.appendChild(document.createTextNode(_501[i]+(i+1<_501.length?", ":"")));}_504.appendChild(_505);_504.appendChild(_506);}if(_502!=null){var _507=document.createElement("DIV");_507.className="unreadTooltip1";_507.appendChild(document.createTextNode(_502.length>1?"New messages from users: ":"New message from user "));var _508=document.createElement("DIV");_508.className="unreadTooltip2";for(var i=0;i<_502.length;i++){_508.appendChild(document.createTextNode(_502[i].name+(i+1<_502.length?", ":"")));}_504.appendChild(_507);_504.appendChild(_508);}if(_503!=null){var _509=document.createElement("DIV");_509.className="unreadTooltip1";_509.appendChild(document.createTextNode(_503.length>1?"New messages on group: ":"New message on groups "));var _50a=document.createElement("DIV");_50a.className="unreadTooltip2";for(var i=0;i<_503.length;i++){_50a.appendChild(document.createTextNode(_503[i].name+(i+1<_503.length?", ":"")));}_504.appendChild(_509);_504.appendChild(_50a);}}else{_500.style.display="none";}},_IsCacheEnabled:function(){return this._CACHE_PICS;},_PreloadFromThumbs:function(_50b,_50c){if(!this._IsCacheEnabled()){return;}var _50d=this._pictures?this._pictures.length:0;if(!_50c){for(var i=0;i<this.MAX_THUMBS;i++){_50e=i+_50b+this.MAX_THUMBS;if(_50e<_50d){img=new Image();img.src=this._picturesDirectory+this._allPictures[this._pictures[_50e].picId].thumbPath;}else{break;}}}var img,_50e;for(var i=0;i<this.MAX_THUMBS;i++){_50e=i+_50b;if(_50e<_50d){img=new Image();img.src=this._picturesDirectory+this._allPictures[this._pictures[_50e].picId].picPath;}else{break;}}},_PreloadChildDirectories:function(_50f,_510){if(!this._IsCacheEnabled()){return;}var dir,pics,img,dirs;for(j=_50f;j<_50f+this.MAX_DIRS&&j<this._directories.length;j++){if(this._directories[j].sectionId==_510){dirs=this._directories[j].childSections.list;break;}}for(i=0;i<dirs.length;i++){dir=dirs[i];if(!dir.pictures){continue;}pics=dir.pictures.list;for(j=0;j<this.MAX_THUMBS&&j<pics.length;j++){img=new Image();img.src=this._picturesDirectory+this._allPictures[pics[j].picId].thumbPath;}if(pics[0]){img=new Image();img.src=this._picturesDirectory+this._allPictures[pics[0].picId].picPath;}}},_PreloadSections:function(){if(!this._IsCacheEnabled()){return;}this._PreloadLatest();this._PreloadCategories();this._PreloadDirectories(0);},_PreloadLatest:function(){if(!this._IsCacheEnabled()){return;}for(j=0;j<this.MAX_THUMBS&&j<this._latestPictures.length;j++){img=new Image();img.src=this._picturesDirectory+this._allPictures[this._latestPictures[j].picId].thumbPath;}},_PreloadCategories:function(){if(!this._IsCacheEnabled()){return;}var _511;var pics;var img;for(i=0;i<this._categories.length;i++){_511=this._categories[i];if(!_511.pictures){continue;}pics=_511.pictures.list;for(j=0;j<this.MAX_THUMBS&&j<pics.length;j++){img=new Image();img.src=this._picturesDirectory+this._allPictures[pics[j].picId].thumbPath;}if(pics[0]){img=new Image();img.src=this._picturesDirectory+this._allPictures[pics[0].picId].picPath;}}},_PreloadDirectories:function(_512){if(!this._IsCacheEnabled()){return;}var dir,pics,img,pic;for(i=_512;i<_512+this.MAX_DIRS&&i<this._directories.length;i++){dir=this._directories[i];if(!dir.pictures){continue;}pics=dir.pictures.list;var maxT=this.MAX_THUMBS;for(j=0;j<maxT&&j<pics.length;j++){if(this._privateOnly&&pics[j].guestVisible){maxT++;continue;}img=new Image();img.src=this._picturesDirectory+this._allPictures[pics[j].picId].thumbPath;}if(pics[0]){img=new Image();img.src=this._picturesDirectory+this._allPictures[pics[0].picId].picPath;}}},_preloadLargePhoto:function(_513){if(!this._IsCacheEnabled()){return;}var img=new Image();img.src=this._picturesDirectory+this._allPictures[this._pictures[_513].picId].bigPicPath;},_PreloadPic:function(_514){if(!this._IsCacheEnabled()){return;}var img=new Image();img.src=this._picturesDirectory+this._allPictures[this._pictures[_514].picId].picPath;},_GetSectionTableForPic:function(pic){var _515=0;var oTbl=document.createElement("Table");oTbl.cellSpacing="0";oTbl.className="picConfigSummary";var td;if(pic.categoryId!=null&&pic.categoryId!=-1){if(this._allCategories[pic.categoryId]){var td=oTbl.insertRow(0).insertCell(0);td.appendChild(document.createTextNode(this._allCategories[pic.categoryId].name));td.className="categPic";_515=4;}}var dirs=pic.directories;if(dirs){if(_515==0){_515=1;}for(var i=0;i<dirs.length;i++){if(this._allDirectories[dirs[i].id]){td=oTbl.insertRow(this._GetRowCount(oTbl)).insertCell(0);td.appendChild(document.createTextNode(this._allDirectories[dirs[i].id].name));td.className=dirs[i].guestVisible?"publicDirPic":dirs[i].userIds?"privateDirPic":"orphanDirPic";if(_515<3){if(dirs[i].guestVisible){_515=3;}else{if(dirs[i].userIds){_515=2;}}}}}}oTbl.visibilityLevel=_515;return oTbl;},delGalleryPhoto:function(){if(!this._delPhotoDialog){this._delPhotoDialog=new vpg.DeletePhotoDialog();this.connect(this._delPhotoDialog,"onDelete","_onPhotoDelete");}var _516=null;if(this._selectedRow.className!="selLatest"){var _516=this.IsDirSectionSelected()?this._allDirectories[this._currentSelDirId]:this._allCategories[this._categories[this._currentCategIndex].sectionId];_516.isDir=this.IsDirSectionSelected();}this._delPhotoDialog.loadInfo(this._allPictures[this.GetCurrentPicture().picId],_516);this._delPhotoDialog.show();this._delGalleryPhoto.src="lookandfeel/img/del-icon.gif";},_onPhotoDelete:function(){this._updateAndReloadGallery(false);},addGalleryPhoto:function(){this.openEditDialog(-1);this._addGalleryPhoto.src="lookandfeel/img/add-icon.gif";},editGalleryPhoto:function(){this.openEditDialog(this.GetCurrentPicture().picId);this._editGalleryPhoto.src="lookandfeel/img/pen-icon.gif";},openEditDialog:function(_517){if(!this._gallery2.currentUser.admin){return;}if(!this._editPhotoDialog){this._editPhotoDialog=new vpg.EditPhotoDialog({photoDirectory:this._picturesDirectory});this.connect(this._editPhotoDialog,"onSave","_onPhotoSave");}if(_517==-1){var _518=this.IsDirSectionSelected();this._editPhotoDialog.setInitialDirectory(_518?this._currentSelDirId:-1);this._editPhotoDialog.setInitialCategory(_518?-1:this._categories[this._currentCategIndex].sectionId);}this._editPhotoDialog.loadPhoto(_517);this._editPhotoDialog.show();},getEditPhotoDialog:function(){return this._editPhotoDialog;},_updateAndReloadGallery:function(_519){var _51a=this._GetGalleryServices().getGallery2();var _51b={};if(this.IsDirSectionSelected()){_51b.directoryId=this._currentSelDirId;}else{_51b.categoryId=this._categories[this._currentCategIndex].sectionId;}if(_519){_51b.pictureId=this.GetCurrentPicture().picId;}_51a.initialData=_51b;this.ReloadGallery(_51a);},_onPhotoSave:function(evt){if(!this._gallery2.currentUser.admin){return;}if(evt.updateDirs||evt.updateCateg||evt.savedPhoto.id==-1){this._updateAndReloadGallery(true);}else{var _51c=evt.savedPhoto;var id=_51c.id;this._allPictures[id].name=_51c.name;this._allPictures[id].location=_51c.location;this._allPictures[id].date=_51c.date;this._allPictures[id].comments=_51c.comments;this._allPictures[id].aperture=_51c.aperture;this._allPictures[id].camera=_51c.camera;this._allPictures[id].iso=_51c.iso;this._allPictures[id].lens=_51c.lens;this._allPictures[id].shutter=_51c.shutter;this._allPictures[id].zoom=_51c.zoom;this._ChangePicture2(this._currentPicIndex);}},getForceDirId:function(){return this._gallery2.initialData&&this._gallery2.initialData.directoryId!=null&&this._gallery2.initialData.forceDir?this._gallery2.initialData.directoryId:-1;},noop:null});}if(!dojo._hasResource["vpg.Utils"]){dojo._hasResource["vpg.Utils"]=true;dojo.provide("vpg.Utils");dojo.declare("vpg.Utils",null,{});dojo.mixin(vpg.Utils,{dialogHackTimeout:200,verify999Number:function(_51d){if(_51d.length>3){return false;}for(i=0;i<_51d.length;i++){var c=_51d.charAt(i);if(c<"0"||c>"9"){return false;}}return true;},verifyEmail:function(_51e){if(_51e.length<5){return false;}var _51f=-1;var _520=-1;for(i=0;i<_51e.length;i++){var c=_51e.charAt(i);if(_51f>-1){if(c=="."){_520=i;}}else{if(c=="@"){_51f=i;}}}return !(_51f<1||_520<3||_51f+2>_520||_520==_51e.length-1);},verifyUsername:function(_521){if(_521.length==0){return false;}for(i=0;i<_521.length;i++){var c=_521.charAt(i);if(c<"-"||c=="/"||(c>"9"&&c<"@")||(c>"Z"&&c<"_")||c=="`"||c>"z"){return false;}}return true;},dtCh:"/",minYear:1900,maxYear:2100,isInteger:function(s){for(var i=0;i<s.length;i++){var c=s.charAt(i);if(((c<"0")||(c>"9"))){return false;}}return true;},isFloat:function(s){var _522;for(var i=0;i<s.length;i++){var c=s.charAt(i);if((c<"0"||c>"9")&&c!="."){return false;}if(c=="."){if(_522){return false;}_522=true;if(i==0||i==s.length-1){return false;}}}return true;},stripCharsInBag:function(s,bag){var i;var _523="";for(i=0;i<s.length;i++){var c=s.charAt(i);if(bag.indexOf(c)==-1){_523+=c;}}return _523;},daysInFebruary:function(year){return (((year%4==0)&&((!(year%100==0))||(year%400==0)))?29:28);},DaysArray:function(n){for(var i=1;i<=n;i++){this[i]=31;if(i==4||i==6||i==9||i==11){this[i]=30;}if(i==2){this[i]=29;}}return this;},RemoveFromArray:function(_524,_525){output=[];for(var i=0;i<_524.length;i++){if(i!=_525){output[output.length]=_524[i];}}return output;},IsDate:function(_526){var _527=this.DaysArray(12);var pos1=_526.indexOf(this.dtCh);var pos2=_526.indexOf(this.dtCh,pos1+1);var _528=_526.substring(0,pos1);var _529=_526.substring(pos1+1,pos2);var _52a=_526.substring(pos2+1);strYr=_528;if(_52a.charAt(0)=="0"&&_52a.length>1){_52a=_52a.substring(1);}if(_529.charAt(0)=="0"&&_529.length>1){_529=_529.substring(1);}for(var i=1;i<=3;i++){if(strYr.charAt(0)=="0"&&strYr.length>1){strYr=strYr.substring(1);}}month=parseInt(_529);day=parseInt(_52a);year=parseInt(strYr);if(pos1==-1||pos2==-1){alert("The date format should be : yyyy/mm/dd");return false;}if(_529.length<1||month<1||month>12){alert("Please enter a valid month");return false;}if(_52a.length<1||day<1||day>31||(month==2&&day>this.daysInFebruary(year))||day>_527[month]){alert("Please enter a valid day");return false;}if(_528.length!=4||year==0||year<this.minYear||year>this.maxYear){alert("Please enter a valid 4 digit year between "+this.minYear+" and "+this.maxYear);return false;}if(_526.indexOf(this.dtCh,pos2+1)!=-1||this.isInteger(this.stripCharsInBag(_526,this.dtCh))==false){alert("Please enter a valid date");return false;}return true;},MONTH_NAME:["","January","February","March","April","May","June","July","August","September","October","November","December"],SHORT_MONTH_NAME:["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],GetMonthYYYYDate:function(date){var _52b=date.substring(5,7);return this.MONTH_NAME[_52b*1]+" "+date.substring(0,4);},GetDMntYYDate:function(date){var _52c=date.substring(5,7);return (1*date.substring(8,10))+" "+this.SHORT_MONTH_NAME[_52c*1]+" "+date.substring(0,4);},GetPictureAge:function(_52d){var _52e=new Date(_52d).getTime();var _52f=new Date().getTime();var _530=(_52f-_52e)/86400000;var _531=(_530>365?(_530/365).toFixed(1)+" yrs":_530>30?(_530/30.4).toFixed(1)+" mnts":_530.toFixed(1)+" days");return _531;},createTable:function(name,_532,_533){var oTbl=document.createElement("Table");if(name!=null){oTbl.name=name;}if(_532!=null){oTbl.className=_532;}oTbl.cellSpacing=_533!=null?_533:"0";return oTbl;},insertTableHeader:function(_534,_535,_536,_537,_538){var tr=_534.insertRow(0);if(_535!=null){tr.className=_535;}var td;for(var i=0;i<_536.length;i++){td=tr.insertCell(i);td.width=_537[i];td.appendChild(document.createTextNode(_536[i]));}if(_538){td=tr.insertCell(i);td.width="20";}},insertTableRow:function(_539,_53a,_53b,_53c,_53d,_53e){var tr=_539.insertRow(this.getTableRowCount(_539));var td,val;for(var i=0;i<_53b.length;i++){val=_53b[i];td=tr.insertCell(i);if(_53a!=null){td.className=_53a;}if(i==_53c){dojo.attr(tr,"rowId",val);}if(i==_53d){dojo.style(td,"textDecoration","underline");dojo.style(td,"cursor","pointer");td.action="edit";}td.appendChild(document.createTextNode(val==null?"":val));}if(_53e){td=tr.insertCell(i);var del=document.createElement("img");del.align="right";del.action="delete";dojo.style(del,"marginRight","5px");dojo.style(del,"cursor","pointer");del.src="lookandfeel/img/del-tr.gif";td.appendChild(del);if(_53a!=null){td.className=_53a;}}},getTableRowCount:function(_53f){if(_53f.childNodes.length==0){return 0;}return _53f.childNodes[0].childNodes.length;},getRowId:function(_540){if(dojo.attr(_540,"rowId")!=null){return dojo.attr(_540,"rowId");}if(_540.parentNode){return this.getRowId(_540.parentNode);}else{return -1;}},verifyZip:function(s){reZip=new RegExp(/(^\d{5}$)|(^\d{5}-\d{4}$)/);return reZip.test(s);},noop:null});}dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);if(dojo.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._loadInit,1000);}})();
