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

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

		http://dojotoolkit.org
*/

(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};var _9=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null;if(_9){for(var c in _9){d.config[c]=_9[c];}}dojo.locale=d.config.locale;var _a="$Rev: c67ea3e $".match(/\d+/);dojo.version={major:2,minor:6,patch:0,flag:"",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)!==undefined;};dojo["eval"]=function(_1d){return d.global.eval?d.global.eval(_1d):eval(_1d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo,_1e;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(_1f){var mp=d._modulePrefixes;return !!(mp[_1f]&&mp[_1f].value);},_getModulePrefix:function(_20){var mp=d._modulePrefixes;if(d._moduleHasPrefix(_20)){return mp[_20].value;}return _20;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_21,_22,cb){var uri=((_21.charAt(0)=="/"||_21.match(/^\w+:/))?"":d.baseUrl)+_21;try{_1e=_22;return !_22?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_22,cb);}catch(e){console.error(e);return false;}finally{_1e=null;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _23=d._getText(uri,true);if(_23){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_23=/^define\(/.test(_23)?_23:"("+_23+")";}else{_23=d._scopePrefix+_23+d._scopeSuffix;}if(!d.isIE){_23+="\r\n//@ sourceURL="+uri;}var _24=d["eval"](_23);if(cb){cb(_24);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return !!_23;};dojo._loadUriAndCheck=function(uri,_25,cb){var ok=false;try{ok=d._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&d._loadedModules[_25]);};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 _26=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_26.call(obj);});}}};dojo.ready=dojo.addOnLoad=function(obj,_27){d._onto(d._loaders,obj,_27);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(_28){var _29=_28.split(".");for(var i=_29.length;i>0;i--){var _2a=_29.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_2a)){_29[0]="../"+_29[0];}else{var _2b=d._getModulePrefix(_2a);if(_2b!=_2a){_29.splice(0,i,_2b);break;}}}return _29;};dojo._global_omit_module_check=false;dojo.loadInit=function(_2c){_2c();};dojo._loadModule=dojo.require=function(_2d,_2e){_2e=d._global_omit_module_check||_2e;var _2f=d._loadedModules[_2d];if(_2f){return _2f;}var _30=d._getModuleSymbols(_2d).join("/")+".js";var _31=!_2e?_2d:null;var ok=d._loadPath(_30,_31);if(!ok&&!_2e){throw new Error("Could not load '"+_2d+"'; last tried '"+_30+"'");}if(!_2e&&!d._isXDomain){_2f=d._loadedModules[_2d];if(!_2f){throw new Error("symbol '"+_2d+"' is not defined after loading '"+_30+"'");}}return _2f;};dojo.provide=function(_32){_32=_32+"";return (d._loadedModules[_32]=d.getObject(_32,true));};dojo.platformRequire=function(_33){var _34=_33.common||[];var _35=_34.concat(_33[d._name]||_33["default"]||[]);for(var x=0;x<_35.length;x++){var _36=_35[x];if(_36.constructor==Array){d._loadModule.apply(d,_36);}else{d._loadModule(_36);}}};dojo.requireIf=function(_37,_38){if(_37===true){var _39=[];for(var i=1;i<arguments.length;i++){_39.push(arguments[i]);}d.require.apply(d,_39);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_3a,_3b){d._modulePrefixes[_3a]={name:_3a,value:_3b};};dojo.requireLocalization=function(_3c,_3d,_3e,_3f){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,_40=arguments,uri=[_40[0]];for(var i=1;i<_40.length;i++){if(!_40[i]){continue;}var _41=new d._Url(_40[i]+""),_42=new d._Url(uri[0]+"");if(_41.path==""&&!_41.scheme&&!_41.authority&&!_41.query){if(_41.fragment!=n){_42.fragment=_41.fragment;}_41=_42;}else{if(!_41.scheme){_41.scheme=_42.scheme;if(!_41.authority){_41.authority=_42.authority;if(_41.path.charAt(0)!="/"){var _43=_42.path.substring(0,_42.path.lastIndexOf("/")+1)+_41.path;var _44=_43.split("/");for(var j=0;j<_44.length;j++){if(_44[j]=="."){if(j==_44.length-1){_44[j]="";}else{_44.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_44[0]=="")&&_44[j]==".."&&_44[j-1]!=".."){if(j==(_44.length-1)){_44.splice(j,1);_44[j-1]="";}else{_44.splice(j-1,2);j-=2;}}}}_41.path=_44.join("/");}}}}uri=[];if(_41.scheme){uri.push(_41.scheme,":");}if(_41.authority){uri.push("//",_41.authority);}uri.push(_41.path);if(_41.query){uri.push("?",_41.query);}if(_41.fragment){uri.push("#",_41.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(_45,url){var loc=d._getModuleSymbols(_45).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _46=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_46==-1||_46>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 _47=document.getElementsByTagName("script");var _48=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_47.length;i++){var src=_47[i].getAttribute("src");if(!src){continue;}var m=src.match(_48);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=(_47[i].getAttribute("djConfig")||_47[i].getAttribute("data-dojo-config"));if(cfg){var _49=eval("({ "+cfg+" })");for(var x in _49){dojo.config[x]=_49[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 _4a=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_4a&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_4a+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 _4b=document.documentMode;if(_4b&&_4b!=5&&Math.floor(d.isIE)!=_4b){d.isIE=_4b;}}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 _4c,_4d;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_4c=new XMLHttpRequest();}catch(e){}}if(!_4c){for(var i=0;i<3;++i){var _4e=d._XMLHTTP_PROGIDS[i];try{_4c=new ActiveXObject(_4e);}catch(e){_4d=e;}if(_4c){d._XMLHTTP_PROGIDS=[_4e];break;}}}if(!_4c){throw new Error("XMLHTTP not available: "+_4d);}return _4c;};d._isDocumentOk=function(_4f){var _50=_4f.status||0,lp=location.protocol;return (_50>=200&&_50<300)||_50==304||_50==1223||(!_50&&(lp=="file:"||lp=="chrome:"||lp=="chrome-extension:"||lp=="app:"));};var _51=window.location+"";var _52=document.getElementsByTagName("base");var _53=(_52&&_52.length>0);d._getText=function(uri,_54){var _55=d._xhrObj();if(!_53&&dojo._Url){uri=(new dojo._Url(_51,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_55.open("GET",uri,false);try{_55.send(null);if(!d._isDocumentOk(_55)){var err=Error("Unable to load "+uri+" status:"+_55.status);err.status=_55.status;err.responseText=_55.responseText;throw err;}}catch(e){if(_54){return null;}throw e;}return _55.responseText;};var _56=window;var _57=function(_58,fp){var _59=_56.attachEvent||_56.addEventListener;_58=_56.attachEvent?_58:_58.substring(2);_59(_58,function(){fp.apply(_56,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}d=null;};var _5a=0;d.addOnWindowUnload=function(obj,_5b){d._onto(d._windowUnloaders,obj,_5b);if(!_5a){_5a=1;_57("onunload",d.windowUnloaded);}};var _5c=0;d.addOnUnload=function(obj,_5d){d._onto(d._unloaders,obj,_5d);if(!_5c){_5c=1;_57("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(dojo._scrollIntervalId){clearInterval(dojo._scrollIntervalId);dojo._scrollIntervalId=0;}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.config.skipIeDomLoaded&&self===self.top){dojo._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");dojo._loadInit();}}catch(e){}},30);}}}}if(dojo.isIE){try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _5e=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_5e.length;}for(;i<l;++i){s.addRule("v\\:"+_5e[i],"behavior:url(#default#VML); display:inline-block");}})();}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5f in mp){dojo.registerModulePath(_5f,mp[_5f]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){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,_60=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 _60.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(_61,_62){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_61.prototype,arguments[i]);}return _61;};dojo._hitchArgs=function(_63,_64){var pre=d._toArray(arguments,2);var _65=d.isString(_64);return function(){var _66=d._toArray(arguments);var f=_65?(_63||d.global)[_64]:_64;return f&&f.apply(_63||this,pre.concat(_66));};};dojo.hitch=function(_67,_68){if(arguments.length>2){return d._hitchArgs.apply(d,arguments);}if(!_68){_68=_67;_67=null;}if(d.isString(_68)){_67=_67||d.global;if(!_67[_68]){throw (["dojo.hitch: scope[\"",_68,"\"] is null (scope=\"",_67,"\")"].join(""));}return function(){return _67[_68].apply(_67,arguments||[]);};}return !_67?_68:function(){return _68.apply(_67,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_69){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_69){d._mixin(tmp,_69);}return tmp;};})();var _6a=function(obj,_6b,_6c){return (_6c||[]).concat(Array.prototype.slice.call(obj,_6b||0));};var _6d=function(obj,_6e,_6f){var arr=_6f||[];for(var x=_6e||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=d.isIE?function(obj){return ((obj.item)?_6d:_6a).apply(this,arguments);}:_6a;dojo.partial=function(_70){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)));};var _71=d._extraNames,_72=_71.length,_73={};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());}if(o instanceof RegExp){return new RegExp(o);}var r,i,l,s,_74;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(_74 in o){s=o[_74];if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){r[_74]=d.clone(s);}}if(_72){for(i=0;i<_72;++i){_74=_71[i];s=o[_74];if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){r[_74]=s;}}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};var _75=/\{([^\}]+)\}/g;dojo.replace=function(_76,map,_77){return _76.replace(_77||_75,d.isFunction(map)?map:function(_78,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 _79=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 _7a=function(_7b,arr,_7c,_7d){var _7e=_79(arr,_7d,_7c);arr=_7e[0];for(var i=0,l=arr.length;i<l;++i){var _7f=!!_7e[2].call(_7e[1],arr[i],i,arr);if(_7b^_7f){return _7f;}}return _7b;};dojo.mixin(dojo,{indexOf:function(_80,_81,_82,_83){var _84=1,end=_80.length||0,i=0;if(_83){i=end-1;_84=end=-1;}if(_82!=undefined){i=_82;}if((_83&&i>end)||i<end){for(;i!=end;i+=_84){if(_80[i]==_81){return i;}}}return -1;},lastIndexOf:function(_85,_86,_87){return dojo.indexOf(_85,_86,_87,true);},forEach:function(arr,_88,_89){if(!arr||!arr.length){return;}var _8a=_79(arr,_89,_88);arr=_8a[0];for(var i=0,l=arr.length;i<l;++i){_8a[2].call(_8a[1],arr[i],i,arr);}},every:function(arr,_8b,_8c){return _7a(true,arr,_8b,_8c);},some:function(arr,_8d,_8e){return _7a(false,arr,_8d,_8e);},map:function(arr,_8f,_90){var _91=_79(arr,_90,_8f);arr=_91[0];var _92=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_92.push(_91[2].call(_91[1],arr[i],i,arr));}return _92;},filter:function(arr,_93,_94){var _95=_79(arr,_94,_93);arr=_95[0];var _96=[];for(var i=0,l=arr.length;i<l;++i){if(_95[2].call(_95[1],arr[i],i,arr)){_96.push(arr[i]);}}return _96;}});})();}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,_97=op.toString,_98=new Function,_99=0,_9a="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _9b(_9c,_9d){var _9e=[],_9f=[{cls:0,refs:[]}],_a0={},_a1=1,l=_9c.length,i=0,j,lin,_a2,top,_a3,rec,_a4,_a5;for(;i<l;++i){_a2=_9c[i];if(!_a2){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_9d);}else{if(_97.call(_a2)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_9d);}}lin=_a2._meta?_a2._meta.bases:[_a2];top=0;for(j=lin.length-1;j>=0;--j){_a3=lin[j].prototype;if(!_a3.hasOwnProperty("declaredClass")){_a3.declaredClass="uniqName_"+(_99++);}_a4=_a3.declaredClass;if(!_a0.hasOwnProperty(_a4)){_a0[_a4]={count:0,refs:[],cls:lin[j]};++_a1;}rec=_a0[_a4];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_9f[0].refs.push(top);}while(_9f.length){top=_9f.pop();_9e.push(top.cls);--_a1;while(_a5=top.refs,_a5.length==1){top=_a5[0];if(!top||--top.count){top=0;break;}_9e.push(top.cls);--_a1;}if(top){for(i=0,l=_a5.length;i<l;++i){top=_a5[i];if(!--top.count){_9f.push(top);}}}}if(_a1){err("can't build consistent linearization",_9d);}_a2=_9c[0];_9e[0]=_a2?_a2._meta&&_a2===_9e[_9e.length-_a2._meta.bases.length]?_a2._meta.bases.length:1:0;return _9e;};function _a6(_a7,a,f){var _a8,_a9,_aa,_ab,_ac,_ad,_ae,opf,pos,_af=this._inherited=this._inherited||{};if(typeof _a7=="string"){_a8=_a7;_a7=a;a=f;}f=0;_ab=_a7.callee;_a8=_a8||_ab.nom;if(!_a8){err("can't deduce a name to call inherited()",this.declaredClass);}_ac=this.constructor._meta;_aa=_ac.bases;pos=_af.p;if(_a8!=_9a){if(_af.c!==_ab){pos=0;_ad=_aa[0];_ac=_ad._meta;if(_ac.hidden[_a8]!==_ab){_a9=_ac.chains;if(_a9&&typeof _a9[_a8]=="string"){err("calling chained method with inherited: "+_a8,this.declaredClass);}do{_ac=_ad._meta;_ae=_ad.prototype;if(_ac&&(_ae[_a8]===_ab&&_ae.hasOwnProperty(_a8)||_ac.hidden[_a8]===_ab)){break;}}while(_ad=_aa[++pos]);pos=_ad?pos:-1;}}_ad=_aa[++pos];if(_ad){_ae=_ad.prototype;if(_ad._meta&&_ae.hasOwnProperty(_a8)){f=_ae[_a8];}else{opf=op[_a8];do{_ae=_ad.prototype;f=_ae[_a8];if(f&&(_ad._meta?_ae.hasOwnProperty(_a8):f!==opf)){break;}}while(_ad=_aa[++pos]);}}f=_ad&&f||op[_a8];}else{if(_af.c!==_ab){pos=0;_ac=_aa[0]._meta;if(_ac&&_ac.ctor!==_ab){_a9=_ac.chains;if(!_a9||_a9.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(_ad=_aa[++pos]){_ac=_ad._meta;if(_ac&&_ac.ctor===_ab){break;}}pos=_ad?pos:-1;}}while(_ad=_aa[++pos]){_ac=_ad._meta;f=_ac?_ac.ctor:_ad;if(f){break;}}f=_ad&&f;}_af.c=f;_af.p=pos;if(f){return a===true?f:f.apply(this,a||_a7);}};function _b0(_b1,_b2){if(typeof _b1=="string"){return this.inherited(_b1,_b2,true);}return this.inherited(_b1,true);};function _b3(cls){var _b4=this.constructor._meta.bases;for(var i=0,l=_b4.length;i<l;++i){if(_b4[i]===cls){return true;}}return this instanceof cls;};function _b5(_b6,_b7){var _b8,i=0,l=d._extraNames.length;for(_b8 in _b7){if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){_b6[_b8]=_b7[_b8];}}for(;i<l;++i){_b8=d._extraNames[i];if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){_b6[_b8]=_b7[_b8];}}};function _b9(_ba,_bb){var _bc,t,i=0,l=d._extraNames.length;for(_bc in _bb){t=_bb[_bc];if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){if(_97.call(t)=="[object Function]"){t.nom=_bc;}_ba[_bc]=t;}}for(;i<l;++i){_bc=d._extraNames[i];t=_bb[_bc];if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){if(_97.call(t)=="[object Function]"){t.nom=_bc;}_ba[_bc]=t;}}return _ba;};function _bd(_be){_b9(this.prototype,_be);return this;};function _bf(_c0,_c1){return function(){var a=arguments,_c2=a,a0=a[0],f,i,m,l=_c0.length,_c3;if(!(this instanceof a.callee)){return _c4(a);}if(_c1&&(a0&&a0.preamble||this.preamble)){_c3=new Array(_c0.length);_c3[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_c0[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_c3[i]=a;}}for(i=l-1;i>=0;--i){f=_c0[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_c3?_c3[i]:a);}}f=this.postscript;if(f){f.apply(this,_c2);}};};function _c5(_c6,_c7){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _c4(a);}if(_c7){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(_c6){_c6.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _c8(_c9){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _c4(a);}for(;f=_c9[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 _ca(_cb,_cc,_cd){return function(){var b,m,f,i=0,_ce=1;if(_cd){i=_cc.length-1;_ce=-1;}for(;b=_cc[i];i+=_ce){m=b._meta;f=(m?m.hidden:b.prototype)[_cb];if(f){f.apply(this,arguments);}}};};function _cf(_d0){_98.prototype=_d0.prototype;var t=new _98;_98.prototype=null;return t;};function _c4(_d1){var _d2=_d1.callee,t=_cf(_d2);_d2.apply(t,_d1);return t;};d.declare=function(_d3,_d4,_d5){if(typeof _d3!="string"){_d5=_d4;_d4=_d3;_d3="";}_d5=_d5||{};var _d6,i,t,_d7,_d8,_d9,_da,_db=1,_dc=_d4;if(_97.call(_d4)=="[object Array]"){_d9=_9b(_d4,_d3);t=_d9[0];_db=_d9.length-t;_d4=_d9[_db];}else{_d9=[0];if(_d4){if(_97.call(_d4)=="[object Function]"){t=_d4._meta;_d9=_d9.concat(t?t.bases:_d4);}else{err("base class is not a callable constructor.",_d3);}}else{if(_d4!==null){err("unknown base class. Did you use dojo.require to pull it in?",_d3);}}}if(_d4){for(i=_db-1;;--i){_d6=_cf(_d4);if(!i){break;}t=_d9[i];(t._meta?_b5:mix)(_d6,t.prototype);_d7=new Function;_d7.superclass=_d4;_d7.prototype=_d6;_d4=_d6.constructor=_d7;}}else{_d6={};}_b9(_d6,_d5);t=_d5.constructor;if(t!==op.constructor){t.nom=_9a;_d6.constructor=t;}for(i=_db-1;i;--i){t=_d9[i]._meta;if(t&&t.chains){_da=mix(_da||{},t.chains);}}if(_d6["-chains-"]){_da=mix(_da||{},_d6["-chains-"]);}t=!_da||!_da.hasOwnProperty(_9a);_d9[0]=_d7=(_da&&_da.constructor==="manual")?_c8(_d9):(_d9.length==1?_c5(_d5.constructor,t):_bf(_d9,t));_d7._meta={bases:_d9,hidden:_d5,chains:_da,parents:_dc,ctor:_d5.constructor};_d7.superclass=_d4&&_d4.prototype;_d7.extend=_bd;_d7.prototype=_d6;_d6.constructor=_d7;_d6.getInherited=_b0;_d6.inherited=_a6;_d6.isInstanceOf=_b3;if(_d3){_d6.declaredClass=_d3;d.setObject(_d3,_d7);}if(_da){for(_d8 in _da){if(_d6[_d8]&&typeof _da[_d8]=="string"&&_d8!=_9a){t=_d6[_d8]=_ca(_d8,_d9,_da[_d8]==="after");t.nom=_d8;}}}return _d7;};d.safeMixin=_b9;})();}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,r=t&&t.apply(this,arguments),i,lls=[].concat(ls);for(i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_dd,_de,_df){_dd=_dd||dojo.global;var f=_dd[_de];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_dd[_de]=d;}return f._listeners.push(_df);},remove:function(_e0,_e1,_e2){var f=(_e0||dojo.global)[_e1];if(f&&f._listeners&&_e2--){delete f._listeners[_e2];}}};dojo.connect=function(obj,_e3,_e4,_e5,_e6){var a=arguments,_e7=[],i=0;_e7.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_e7.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_e7.push(a[i]);}return dojo._connect.apply(this,_e7);};dojo._connect=function(obj,_e8,_e9,_ea){var l=dojo._listener,h=l.add(obj,_e8,dojo.hitch(_e9,_ea));return [obj,_e8,h,l];};dojo.disconnect=function(_eb){if(_eb&&_eb[0]!==undefined){dojo._disconnect.apply(this,_eb);delete _eb[0];}};dojo._disconnect=function(obj,_ec,_ed,_ee){_ee.remove(obj,_ec,_ed);};dojo._topics={};dojo.subscribe=function(_ef,_f0,_f1){return [_ef,dojo._listener.add(dojo._topics,_ef,dojo.hitch(_f0,_f1))];};dojo.unsubscribe=function(_f2){if(_f2){dojo._listener.remove(dojo._topics,_f2[0],_f2[1]);}};dojo.publish=function(_f3,_f4){var f=dojo._topics[_f3];if(f){f.apply(this,_f4||[]);}};dojo.connectPublisher=function(_f5,obj,_f6){var pf=function(){dojo.publish(_f5,arguments);};return _f6?dojo.connect(obj,_f6,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");(function(){var _f7=function(){};var _f8=Object.freeze||function(){};dojo.Deferred=function(_f9){var _fa,_fb,_fc,_fd,_fe;var _ff=(this.promise={});function _100(_101){if(_fb){throw new Error("This deferred has already been resolved");}_fa=_101;_fb=true;_102();};function _102(){var _103;while(!_103&&_fe){var _104=_fe;_fe=_fe.next;if((_103=(_104.progress==_f7))){_fb=false;}var func=(_fc?_104.error:_104.resolved);if(func){try{var _105=func(_fa);if(_105&&typeof _105.then==="function"){_105.then(dojo.hitch(_104.deferred,"resolve"),dojo.hitch(_104.deferred,"reject"));continue;}var _106=_103&&_105===undefined;if(_103&&!_106){_fc=_105 instanceof Error;}_104.deferred[_106&&_fc?"reject":"resolve"](_106?_fa:_105);}catch(e){_104.deferred.reject(e);}}else{if(_fc){_104.deferred.reject(_fa);}else{_104.deferred.resolve(_fa);}}}};this.resolve=this.callback=function(_107){this.fired=0;this.results=[_107,null];_100(_107);};this.reject=this.errback=function(_108){_fc=true;this.fired=1;_100(_108);this.results=[null,_108];if(!_108||_108.log!==false){(dojo.config.deferredOnError||function(x){console.error(x);})(_108);}};this.progress=function(_109){var _10a=_fe;while(_10a){var _10b=_10a.progress;_10b&&_10b(_109);_10a=_10a.next;}};this.addCallbacks=function(_10c,_10d){this.then(_10c,_10d,_f7);return this;};this.then=_ff.then=function(_10e,_10f,_110){var _111=_110==_f7?this:new dojo.Deferred(_ff.cancel);var _112={resolved:_10e,error:_10f,progress:_110,deferred:_111};if(_fe){_fd=_fd.next=_112;}else{_fe=_fd=_112;}if(_fb){_102();}return _111.promise;};var _113=this;this.cancel=_ff.cancel=function(){if(!_fb){var _114=_f9&&_f9(_113);if(!_fb){if(!(_114 instanceof Error)){_114=new Error(_114);}_114.log=false;_113.reject(_114);}}};_f8(_ff);};dojo.extend(dojo.Deferred,{addCallback:function(_115){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(_116){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addBoth:function(_117){var _118=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_118,_118);},fired:-1});})();dojo.when=function(_119,_11a,_11b,_11c){if(_119&&typeof _119.then==="function"){return _119.then(_11a,_11b,_11c);}return _11a(_119);};}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")");};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,_11d,_11e){if(it===undefined){return "undefined";}var _11f=typeof it;if(_11f=="number"||_11f=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _120=arguments.callee;var _121;_11e=_11e||"";var _122=_11d?_11e+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_121=tf.call(it);if(it!==_121){return _120(_121,_11d,_122);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_11d?" ":"";var _123=_11d?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_120(obj,_11d,_122);if(typeof val!="string"){val="undefined";}return _123+_122+val;});return "["+res.join(","+sep)+_123+_11e+"]";}if(_11f=="function"){return null;}var _124=[],key;for(key in it){var _125,val;if(typeof key=="number"){_125="\""+key+"\"";}else{if(typeof key=="string"){_125=dojo._escapeString(key);}else{continue;}}val=_120(it[key],_11d,_122);if(typeof val!="string"){continue;}_124.push(_123+_122+_125+":"+sep+val);}return "{"+_124.join(","+sep)+_123+_11e+"}";};}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_126){if(_126){this.setColor(_126);}};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(_127){if(d.isString(_127)){d.colorFromString(_127,this);}else{if(d.isArray(_127)){d.colorFromArray(_127,this);}else{this._set(_127.r,_127.g,_127.b,_127.a);if(!(_127 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(_128){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_128?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_129,end,_12a,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_129[x]+(end[x]-_129[x])*_12a;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_12b,obj){var m=_12b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_12c,obj){var t=obj||new d.Color(),bits=(_12c.length==4)?4:8,mask=(1<<bits)-1;_12c=Number("0x"+_12c.substr(1));if(isNaN(_12c)){return null;}d.forEach(["b","g","r"],function(x){var c=_12c&mask;_12c>>=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.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(_12d,_12e){dojo.global=_12d;dojo.doc=_12e;};dojo.withGlobal=function(_12f,_130,_131,_132){var _133=dojo.global;try{dojo.global=_12f;return dojo.withDoc.call(null,_12f.document,_130,_131,_132);}finally{dojo.global=_133;}};dojo.withDoc=function(_134,_135,_136,_137){var _138=dojo.doc,_139=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_134;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_136&&typeof _135=="string"){_135=_136[_135];}return _135.apply(_136,_137||[]);}finally{dojo.doc=_138;delete dojo._bodyLtr;if(_139!==undefined){dojo._bodyLtr=_139;}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);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,_13a,_13b){if(node){_13a=del._normalizeEventName(_13a);if(!dojo.isIE&&(_13a=="mouseenter"||_13a=="mouseleave")){_13a=(_13a=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_13a,_13b,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,_13c){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode>=32?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,_13d){return del._fixEvent(evt,_13d);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _13e=dojo._listener;dojo._connect=function(obj,_13f,_140,_141,_142){var _143=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_143?(_142?2:1):0,l=[dojo._listener,del,_13e][lid];var h=l.add(obj,_13f,dojo.hitch(_140,_141));return [obj,_13f,h,lid];};dojo._disconnect=function(obj,_144,_145,_146){([dojo._listener,del,_13e][_146]).remove(obj,_144,_145);};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 _147=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_147];};if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_148){return e.button&_148;},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,_149){return e.button==_149;},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 _14a=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _14b=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_13e=iel=dojo._ie_listener={handlers:[],add:function(_14c,_14d,_14e){_14c=_14c||dojo.global;var f=_14c[_14d];if(!f||!f[_14b]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_14b]=[];f=_14c[_14d]=d;}return f[_14b].push(ieh.push(_14e)-1);},remove:function(_14f,_150,_151){var f=(_14f||dojo.global)[_150],l=f&&f[_14b];if(f&&l&&_151--){delete ieh[l[_151]];delete l[_151];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_152,fp){if(!node){return;}_152=del._normalizeEventName(_152);if(_152=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_14b]||!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,_152,del._fixCallback(fp));},remove:function(node,_153,_154){_153=del._normalizeEventName(_153);iel.remove(node,_153,_154);if(_153=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_155){return _155.slice(0,2)!="on"?"on"+_155:_155;},_nop:function(){},_fixEvent:function(evt,_156){if(!evt){var w=_156&&(_156.ownerDocument||_156.document||_156).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_156||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _157=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _158=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_157.scrollLeft||0)-_158.x;evt.pageY=evt.clientY+(_157.scrollTop||0)-_158.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(dojo.isIE<9||dojo.isQuirks){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[_14b]){return;}var k=evt.keyCode;var _159=(k!=13||(dojo.isIE>=9&&!dojo.isQuirks))&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_159||evt.ctrlKey){var c=_159?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);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){evt.cancelBubble=faux.cancelBubble;}evt.returnValue=faux.returnValue;_14a(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_14a(this,0);}this.returnValue=false;}});dojo.stopEvent=(dojo.isIE<9||dojo.isQuirks)?function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);}:dojo.stopEvent;}del._synthesizeEvent=function(evt,_15a){var faux=dojo.mixin({},evt,_15a);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_15b){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,_15c,fp){if(!node){return;}var _15d=del._add(node,_15c,fp);if(del._normalizeEventName(_15c)=="keypress"){_15d._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _15e=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_15e||evt.ctrlKey){var c=_15e?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 _15d;},remove:function(node,_15f,_160){if(node){if(_160._stealthKeyDownHandle){del._remove(node,"keydown",_160._stealthKeyDownHandle);}del._remove(node,_15f,_160);}},_fixEvent:function(evt,_161){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,_162){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(_162,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_162,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.byId=function(id,doc){if(typeof id!="string"){return id;}var _163=doc||dojo.doc,te=_163.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_163.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)||null;};}(function(){var d=dojo;var byId=d.byId;function _164(node,_165){if(node.firstChild){_166(node);}if(_165){d.isIE&&_165.canHaveChildren&&"removeNode" in node?node.removeNode(false):_165.removeChild(node);}};dojo._destroyElement=dojo.destroy=function(node){node=byId(node);if(!node){return;}_164(node,node.parentNode);};dojo.isDescendant=function(node,_167){try{node=byId(node);_167=byId(_167);while(node){if(node==_167){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_168){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_168?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_168?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_168?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _169=function(node,ref){var _16a=ref.parentNode;if(_16a){_16a.insertBefore(node,ref);}};var _16b=function(node,ref){var _16c=ref.parentNode;if(_16c){if(_16c.lastChild==ref){_16c.appendChild(node);}else{_16c.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_16d,_16e){_16d=byId(_16d);if(typeof node=="string"){node=/^\s*</.test(node)?d._toDom(node,_16d.ownerDocument):byId(node);}if(typeof _16e=="number"){var cn=_16d.childNodes;if(!cn.length||cn.length<=_16e){_16d.appendChild(node);}else{_169(node,cn[_16e<0?0:_16e]);}}else{switch(_16e){case "before":_169(node,_16d);break;case "after":_16b(node,_16d);break;case "replace":_16d.parentNode.replaceChild(node,_16d);break;case "only":d.empty(_16d);_16d.appendChild(node);break;case "first":if(_16d.firstChild){_169(node,_16d.firstChild);break;}default:_16d.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&&(d.isIE<9||d.isQuirks)){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(_16f,_170){return parseFloat(_170)||0;};}else{d._toPixelValue=function(_171,_172){if(!_172){return 0;}if(_172=="medium"){return 4;}if(_172.slice&&_172.slice(-2)=="px"){return parseFloat(_172);}with(_171){var _173=style.left;var _174=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_172;_172=style.pixelLeft;}catch(e){_172=0;}style.left=_173;runtimeStyle.left=_174;}return _172;};}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<9||(d.isIE<10&&d.isQuirks)?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE<9||(d.isIE<10&&d.isQuirks)?function(node,_175){var ov=_175*100,_176=_175==1;node.style.zoom=_176?"":1;if(!af(node)){if(_176){return _175;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_176;if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_175);});}return _175;}:function(node,_177){return node.style.opacity=_177;};var _178={left:true,top:true};var _179=/margin|padding|width|height|max|min|offset/;var _17a=function(node,type,_17b){type=type.toLowerCase();if(d.isIE){if(_17b=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_17b){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _178)){_178[type]=_179.test(type);}return _178[type]?px(node,_17b):_17b;};var _17c=d.isIE?"styleFloat":"cssFloat",_17d={"cssFloat":_17c,"styleFloat":_17c,"float":_17c};dojo.style=function(node,_17e,_17f){var n=byId(node),args=arguments.length,op=(_17e=="opacity");_17e=_17d[_17e]||_17e;if(args==3){return op?d._setOpacity(n,_17f):n.style[_17e]=_17f;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _17e!="string"){for(var x in _17e){d.style(node,x,_17e[x]);}return s;}return (args==1)?s:_17a(n,_17e,s[_17e]||n.style[_17e]);};dojo._getPadExtents=function(n,_180){var s=_180||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,_181){var ne="none",s=_181||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,_182){var s=_182||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,_183){var s=_183||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,_184){var s=_184||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==8&&!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._getMarginSize=function(node,_185){node=byId(node);var me=d._getMarginExtents(node,_185||gcs(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};dojo._getContentBox=function(node,_186){var s=_186||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,_187){var s=_187||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,_188,_189,_18a){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_18a);if(_188>=0){_188+=pb.w;}if(_189>=0){_189+=pb.h;}}d._setBox(node,NaN,NaN,_188,_189);};dojo._setMarginBox=function(node,_18b,_18c,_18d,_18e,_18f){var s=_18f||gcs(node),bb=d._usesBorderBox(node),pb=bb?_190:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_18d>=0&&!ns.width){ns.width="4px";}if(_18e>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_18d>=0){_18d=Math.max(_18d-pb.w-mb.w,0);}if(_18e>=0){_18e=Math.max(_18e-pb.h-mb.h,0);}d._setBox(node,_18b,_18c,_18d,_18e);};var _190={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 _191=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_192=0,_193=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_192+=val-0;if(node==_193){break;}}node=node.parentNode;}return _192;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.isQuirks?d.doc.body:d.doc.documentElement,{x:d._fixIeBiDiScrollLeft(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(_194){var ie=d.isIE;if(ie&&!d._isBodyLtr()){var qk=d.isQuirks,de=qk?d.doc.body:d.doc.documentElement;if(ie==6&&!qk&&d.global.frameElement&&de.scrollHeight>de.clientHeight){_194+=de.clientLeft;}return (ie<8||qk)?(_194+de.clientWidth-de.scrollWidth):-_194;}return _194;};dojo._abs=dojo.position=function(node,_195){node=byId(node);var db=d.body(),dh=db.parentNode,ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE<9){var _196=d._getIeDocumentElementOffset();ret.x-=_196.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_196.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);}}if(_195){var _197=d._docScroll();ret.x+=_197.x;ret.y+=_197.y;}return ret;};dojo.coords=function(node,_198){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_198);mb.x=abs.x;mb.y=abs.y;return mb;};var _199={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_19a={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_19b={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _19c=function(name){return _19a[name.toLowerCase()]||name;};var _19d=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _19b[_199[lc]||name]||_19d(byId(node),_19a[lc]||name);};var _19e={},_19f=0,_1a0=dojo._scopeName+"attrid",_1a1={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_1a2){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(),_1a3=_199[lc]||name,_1a4=_19b[_1a3],_1a5=_19a[lc]||name;if(args==3){do{if(_1a3=="style"&&typeof _1a2!="string"){d.style(node,_1a2);break;}if(_1a3=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _1a1){d.empty(node);node.appendChild(d._toDom(_1a2,node.ownerDocument));}else{node[_1a3]=_1a2;}break;}if(d.isFunction(_1a2)){var _1a6=d.attr(node,_1a0);if(!_1a6){_1a6=_19f++;d.attr(node,_1a0,_1a6);}if(!_19e[_1a6]){_19e[_1a6]={};}var h=_19e[_1a6][_1a3];if(h){d.disconnect(h);}else{try{delete node[_1a3];}catch(e){}}_19e[_1a6][_1a3]=d.connect(node,_1a3,_1a2);break;}if(_1a4||typeof _1a2=="boolean"){node[_1a3]=_1a2;break;}node.setAttribute(_1a5,_1a2);}while(false);return node;}_1a2=node[_1a3];if(_1a4&&typeof _1a2!="undefined"){return _1a2;}if(_1a3!="href"&&(typeof _1a2=="boolean"||d.isFunction(_1a2))){return _1a2;}return _19d(node,_1a5)?node.getAttribute(_1a5):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_19c(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_1a7=_199[lc]||name;if((_1a7 in node)&&_1a7!="href"){return node[_1a7];}var _1a8=_19a[lc]||name;return _19d(node,_1a8)?node.getAttribute(_1a8):null;};dojo.create=function(tag,_1a9,_1aa,pos){var doc=d.doc;if(_1aa){_1aa=byId(_1aa);doc=_1aa.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1a9){d.attr(tag,_1a9);}if(_1aa){d.place(tag,_1aa,pos);}return tag;};function _166(node){if(node.canHaveChildren){try{node.innerHTML="";return;}catch(e){}}for(var c;c=node.lastChild;){_164(c,node);}};d.empty=function(node){_166(byId(node));};var _1ab={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"]},_1ac=/<\s*([\w\:]+)/,_1ad={},_1ae=0,_1af="__"+d._scopeName+"ToDomId";for(var _1b0 in _1ab){if(_1ab.hasOwnProperty(_1b0)){var tw=_1ab[_1b0];tw.pre=_1b0=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}d._toDom=function(frag,doc){doc=doc||d.doc;var _1b1=doc[_1af];if(!_1b1){doc[_1af]=_1b1=++_1ae+"";_1ad[_1b1]=doc.createElement("div");}frag+="";var _1b2=frag.match(_1ac),tag=_1b2?_1b2[1].toLowerCase():"",_1b3=_1ad[_1b1],wrap,i,fc,df;if(_1b2&&_1ab[tag]){wrap=_1ab[tag];_1b3.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_1b3=_1b3.firstChild;}}else{_1b3.innerHTML=frag;}if(_1b3.childNodes.length==1){return _1b3.removeChild(_1b3.firstChild);}df=doc.createDocumentFragment();while((fc=_1b3.firstChild)){df.appendChild(fc);}return df;};var _1b4="className";dojo.hasClass=function(node,_1b5){return ((" "+byId(node)[_1b4]+" ").indexOf(" "+_1b5+" ")>=0);};var _1b6=/\s+/,a1=[""],_1b7={},_1b8=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_1b6);}}return s||"";};dojo.addClass=function(node,_1b9){node=byId(node);_1b9=_1b8(_1b9);var cls=node[_1b4],_1ba;cls=cls?" "+cls+" ":" ";_1ba=cls.length;for(var i=0,len=_1b9.length,c;i<len;++i){c=_1b9[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_1ba<cls.length){node[_1b4]=cls.substr(1,cls.length-2);}};dojo.removeClass=function(node,_1bb){node=byId(node);var cls;if(_1bb!==undefined){_1bb=_1b8(_1bb);cls=" "+node[_1b4]+" ";for(var i=0,len=_1bb.length;i<len;++i){cls=cls.replace(" "+_1bb[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_1b4]!=cls){node[_1b4]=cls;}};dojo.replaceClass=function(node,_1bc,_1bd){node=byId(node);_1b7.className=node.className;dojo.removeClass(_1b7,_1bd);dojo.addClass(_1b7,_1bc);if(node.className!==_1b7.className){node.className=_1b7.className;}};dojo.toggleClass=function(node,_1be,_1bf){if(_1bf===undefined){_1bf=!d.hasClass(node,_1be);}d[_1bf?"addClass":"removeClass"](node,_1be);};})();}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,_1c0,_1c1){if(!a.sort){a=aps.call(a,0);}var ctor=_1c1||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _1c0?a._stash(_1c0):a;};var _1c2=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 _1c3=function(f,o){return function(){this.forEach(_1c2(f,arguments,o));return this;};};var _1c4=function(f,o){return function(){return this.map(_1c2(f,arguments,o));};};var _1c5=function(f,o){return function(){return this.filter(_1c2(f,arguments,o));};};var _1c6=function(f,g,o){return function(){var a=arguments,body=_1c2(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _1c7=function(a){return a.length==1&&(typeof a[0]=="string");};var _1c8=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=_1c4;nl._adaptAsForEach=_1c3;nl._adaptAsFilter=_1c5;nl._adaptWithCondition=_1c6;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]=_1c6(d[name],_1c7);});d.forEach(["connect","addClass","removeClass","replaceClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_1c3(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_1c9,_1ca){var _1cb=_1c9.parse===true?true:false;if(typeof _1c9.template=="string"){var _1cc=_1c9.templateFunc||(dojo.string&&dojo.string.substitute);_1c9=_1cc?_1cc(_1c9.template,_1c9):_1c9;}var type=(typeof _1c9);if(type=="string"||type=="number"){_1c9=dojo._toDom(_1c9,(_1ca&&_1ca.ownerDocument));if(_1c9.nodeType==11){_1c9=dojo._toArray(_1c9.childNodes);}else{_1c9=[_1c9];}}else{if(!dojo.isArrayLike(_1c9)){_1c9=[_1c9];}else{if(!dojo.isArray(_1c9)){_1c9=dojo._toArray(_1c9);}}}if(_1cb){_1c9._runParse=true;}return _1c9;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1cd,_1ce,_1cf){if(_1cd.nodeType!=1&&_1ce=="only"){return;}var _1d0=_1cd,_1d1;var _1d2=ary.length;for(var i=_1d2-1;i>=0;i--){var node=(_1cf?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1d1){_1d1=_1d0.ownerDocument.createElement("div");}_1d1.appendChild(node);dojo.parser.parse(_1d1);node=_1d1.firstChild;while(_1d1.firstChild){_1d1.removeChild(_1d1.firstChild);}}if(i==_1d2-1){dojo.place(node,_1d0,_1ce);}else{_1d0.parentNode.insertBefore(node,_1d0);}_1d0=node;}},_stash:function(_1d3){this._parent=_1d3;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(_1d4,_1d5){d.forEach(this,_1d4,_1d5);return this;},coords:_1c4(d.coords),position:_1c4(d.position),place:function(_1d6,_1d7){var item=d.query(_1d6)[0];return this.forEach(function(node){d.place(node,item,_1d7);});},orphan:function(_1d8){return (_1d8?d._filterQueryResult(this,_1d8):this).forEach(_1c8);},adopt:function(_1d9,_1da){return d.query(_1d9).place(this[0],_1da)._stash(this);},query:function(_1db){if(!_1db){return this;}var ret=this.map(function(node){return d.query(_1db,node).filter(function(_1dc){return _1dc!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1dd){var a=arguments,_1de=this,_1df=0;if(typeof _1dd=="string"){_1de=d._filterQueryResult(this,a[0]);if(a.length==1){return _1de._stash(this);}_1df=1;}return this._wrap(d.filter(_1de,a[_1df],a[_1df+1]),this);},addContent:function(_1e0,_1e1){_1e0=this._normalize(_1e0,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_1e0,node,_1e1,i>0);}return this;},instantiate:function(_1e2,_1e3){var c=d.isFunction(_1e2)?_1e2:d.getObject(_1e2);_1e3=_1e3||{};return this.forEach(function(node){new c(_1e3,node);});},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(i<0){i=this.length+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 _1e4="on"+evt;nlp[_1e4]=function(a,b){return this.connect(_1e4,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;(function(){var _1e5=function(d){var trim=d.trim;var each=d.forEach;var qlc=(d._NodeListCtor=d.NodeList);var _1e6=function(){return d.doc;};var _1e7=(_1e6().compatMode)=="BackCompat";var _1e8=">~+";var _1e9=false;var _1ea=function(){return true;};var _1eb=function(_1ec){if(_1e8.indexOf(_1ec.slice(-1))>=0){_1ec+=" * ";}else{_1ec+=" ";}var ts=function(s,e){return trim(_1ec.slice(s,e));};var _1ed=[];var _1ee=-1,_1ef=-1,_1f0=-1,_1f1=-1,_1f2=-1,inId=-1,_1f3=-1,lc="",cc="",_1f4;var x=0,ql=_1ec.length,_1f5=null,_1f6=null;var _1f7=function(){if(_1f3>=0){var tv=(_1f3==x)?null:ts(_1f3,x);_1f5[(_1e8.indexOf(tv)<0)?"tag":"oper"]=tv;_1f3=-1;}};var _1f8=function(){if(inId>=0){_1f5.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1f9=function(){if(_1f2>=0){_1f5.classes.push(ts(_1f2+1,x).replace(/\\/g,""));_1f2=-1;}};var _1fa=function(){_1f8();_1f7();_1f9();};var _1fb=function(){_1fa();if(_1f1>=0){_1f5.pseudos.push({name:ts(_1f1+1,x)});}_1f5.loops=(_1f5.pseudos.length||_1f5.attrs.length||_1f5.classes.length);_1f5.oquery=_1f5.query=ts(_1f4,x);_1f5.otag=_1f5.tag=(_1f5["oper"])?null:(_1f5.tag||"*");if(_1f5.tag){_1f5.tag=_1f5.tag.toUpperCase();}if(_1ed.length&&(_1ed[_1ed.length-1].oper)){_1f5.infixOper=_1ed.pop();_1f5.query=_1f5.infixOper.query+" "+_1f5.query;}_1ed.push(_1f5);_1f5=null;};for(;lc=cc,cc=_1ec.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_1f5){_1f4=x;_1f5={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return (_1e9)?this.otag:this.tag;}};_1f3=x;}if(_1ee>=0){if(cc=="]"){if(!_1f6.attr){_1f6.attr=ts(_1ee+1,x);}else{_1f6.matchFor=ts((_1f0||_1ee+1),x);}var cmf=_1f6.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1f6.matchFor=cmf.slice(1,-1);}}_1f5.attrs.push(_1f6);_1f6=null;_1ee=_1f0=-1;}else{if(cc=="="){var _1fc=("|~^$*".indexOf(lc)>=0)?lc:"";_1f6.type=_1fc+cc;_1f6.attr=ts(_1ee+1,x-_1fc.length);_1f0=x+1;}}}else{if(_1ef>=0){if(cc==")"){if(_1f1>=0){_1f6.value=ts(_1ef+1,x);}_1f1=_1ef=-1;}}else{if(cc=="#"){_1fa();inId=x+1;}else{if(cc=="."){_1fa();_1f2=x;}else{if(cc==":"){_1fa();_1f1=x;}else{if(cc=="["){_1fa();_1ee=x;_1f6={};}else{if(cc=="("){if(_1f1>=0){_1f6={name:ts(_1f1+1,x),value:null};_1f5.pseudos.push(_1f6);}_1ef=x;}else{if((cc==" ")&&(lc!=cc)){_1fb();}}}}}}}}}return _1ed;};var _1fd=function(_1fe,_1ff){if(!_1fe){return _1ff;}if(!_1ff){return _1fe;}return function(){return _1fe.apply(window,arguments)&&_1ff.apply(window,arguments);};};var _200=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _201=function(n){return (1==n.nodeType);};var _202="";var _203=function(elem,attr){if(!elem){return _202;}if(attr=="class"){return elem.className||_202;}if(attr=="for"){return elem.htmlFor||_202;}if(attr=="style"){return elem.style.cssText||_202;}return (_1e9?elem.getAttribute(attr):elem.getAttribute(attr,2))||_202;};var _204={"*=":function(attr,_205){return function(elem){return (_203(elem,attr).indexOf(_205)>=0);};},"^=":function(attr,_206){return function(elem){return (_203(elem,attr).indexOf(_206)==0);};},"$=":function(attr,_207){var tval=" "+_207;return function(elem){var ea=" "+_203(elem,attr);return (ea.lastIndexOf(_207)==(ea.length-_207.length));};},"~=":function(attr,_208){var tval=" "+_208+" ";return function(elem){var ea=" "+_203(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_209){var _20a=" "+_209+"-";return function(elem){var ea=" "+_203(elem,attr);return ((ea==_209)||(ea.indexOf(_20a)==0));};},"=":function(attr,_20b){return function(elem){return (_203(elem,attr)==_20b);};}};var _20c=(typeof _1e6().firstChild.nextElementSibling=="undefined");var _20d=!_20c?"nextElementSibling":"nextSibling";var _20e=!_20c?"previousElementSibling":"previousSibling";var _20f=(_20c?_201:_1ea);var _210=function(node){while(node=node[_20e]){if(_20f(node)){return false;}}return true;};var _211=function(node){while(node=node[_20d]){if(_20f(node)){return false;}}return true;};var _212=function(node){var root=node.parentNode;var i=0,tret=root.children||root.childNodes,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[_20d]){if(_20f(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _213=function(elem){return !((_212(elem))%2);};var _214=function(elem){return ((_212(elem))%2);};var _215={"checked":function(name,_216){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"first-child":function(){return _210;},"last-child":function(){return _211;},"only-child":function(name,_217){return function(node){if(!_210(node)){return false;}if(!_211(node)){return false;}return true;};},"empty":function(name,_218){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,_219){var cz=_219.charAt(0);if(cz=="\""||cz=="'"){_219=_219.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_219)>=0);};},"not":function(name,_21a){var p=_1eb(_21a)[0];var _21b={el:1};if(p.tag!="*"){_21b.tag=1;}if(!p.classes.length){_21b.classes=1;}var ntf=_21c(p,_21b);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_21d){var pi=parseInt;if(_21d=="odd"){return _214;}else{if(_21d=="even"){return _213;}}if(_21d.indexOf("n")!=-1){var _21e=_21d.split("n",2);var pred=_21e[0]?((_21e[0]=="-")?-1:pi(_21e[0])):1;var idx=_21e[1]?pi(_21e[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=_212(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_21d=idx;}}var _21f=pi(_21d);return function(elem){return (_212(elem)==_21f);};}};var _220=(d.isIE<9||d.isIE==9&&d.isQuirks)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1e9?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _21c=function(_221,_222){if(!_221){return _1ea;}_222=_222||{};var ff=null;if(!("el" in _222)){ff=_1fd(ff,_201);}if(!("tag" in _222)){if(_221.tag!="*"){ff=_1fd(ff,function(elem){return (elem&&(elem.tagName==_221.getTag()));});}}if(!("classes" in _222)){each(_221.classes,function(_223,idx,arr){var re=new RegExp("(?:^|\\s)"+_223+"(?:\\s|$)");ff=_1fd(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _222)){each(_221.pseudos,function(_224){var pn=_224.name;if(_215[pn]){ff=_1fd(ff,_215[pn](pn,_224.value));}});}if(!("attrs" in _222)){each(_221.attrs,function(attr){var _225;var a=attr.attr;if(attr.type&&_204[attr.type]){_225=_204[attr.type](a,attr.matchFor);}else{if(a.length){_225=_220(a);}}if(_225){ff=_1fd(ff,_225);}});}if(!("id" in _222)){if(_221.id){ff=_1fd(ff,function(elem){return (!!elem&&(elem.id==_221.id));});}}if(!ff){if(!("default" in _222)){ff=_1ea;}}return ff;};var _226=function(_227){return function(node,ret,bag){while(node=node[_20d]){if(_20c&&(!_201(node))){continue;}if((!bag||_228(node,bag))&&_227(node)){ret.push(node);}break;}return ret;};};var _229=function(_22a){return function(root,ret,bag){var te=root[_20d];while(te){if(_20f(te)){if(bag&&!_228(te,bag)){break;}if(_22a(te)){ret.push(te);}}te=te[_20d];}return ret;};};var _22b=function(_22c){_22c=_22c||_1ea;return function(root,ret,bag){var te,x=0,tret=root.children||root.childNodes;while(te=tret[x++]){if(_20f(te)&&(!bag||_228(te,bag))&&(_22c(te,x))){ret.push(te);}}return ret;};};var _22d=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _22e={};var _22f=function(_230){var _231=_22e[_230.query];if(_231){return _231;}var io=_230.infixOper;var oper=(io?io.oper:"");var _232=_21c(_230,{el:1});var qt=_230.tag;var _233=("*"==qt);var ecs=_1e6()["getElementsByClassName"];if(!oper){if(_230.id){_232=(!_230.loops&&_233)?_1ea:_21c(_230,{el:1,id:1});_231=function(root,arr){var te=d.byId(_230.id,(root.ownerDocument||root));if(!te||!_232(te)){return;}if(9==root.nodeType){return _200(te,arr);}else{if(_22d(te,root)){return _200(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_230.classes.length&&!_1e7){_232=_21c(_230,{el:1,classes:1,id:1});var _234=_230.classes.join(" ");_231=function(root,arr,bag){var ret=_200(0,arr),te,x=0;var tret=root.getElementsByClassName(_234);while((te=tret[x++])){if(_232(te,root)&&_228(te,bag)){ret.push(te);}}return ret;};}else{if(!_233&&!_230.loops){_231=function(root,arr,bag){var ret=_200(0,arr),te,x=0;var tret=root.getElementsByTagName(_230.getTag());while((te=tret[x++])){if(_228(te,bag)){ret.push(te);}}return ret;};}else{_232=_21c(_230,{el:1,tag:1,id:1});_231=function(root,arr,bag){var ret=_200(0,arr),te,x=0;var tret=root.getElementsByTagName(_230.getTag());while((te=tret[x++])){if(_232(te,root)&&_228(te,bag)){ret.push(te);}}return ret;};}}}}else{var _235={el:1};if(_233){_235.tag=1;}_232=_21c(_230,_235);if("+"==oper){_231=_226(_232);}else{if("~"==oper){_231=_229(_232);}else{if(">"==oper){_231=_22b(_232);}}}}return _22e[_230.query]=_231;};var _236=function(root,_237){var _238=_200(root),qp,x,te,qpl=_237.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_237[i];x=_238.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_22f(qp);for(var j=0;(te=_238[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_238=ret;}return ret;};var _239={},_23a={};var _23b=function(_23c){var _23d=_1eb(trim(_23c));if(_23d.length==1){var tef=_22f(_23d[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _236(root,_23d);};};var nua=navigator.userAgent;var wk="WebKit/";var _23e=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _23f=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _240=(!!_1e6()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_23e));var _241=/n\+\d|([^ ])?([>~+])([^ =])?/g;var _242=function(_243,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_243;};var _244=function(_245,_246){_245=_245.replace(_241,_242);if(_240){var _247=_23a[_245];if(_247&&!_246){return _247;}}var _248=_239[_245];if(_248){return _248;}var qcz=_245.charAt(0);var _249=(-1==_245.indexOf(" "));if((_245.indexOf("#")>=0)&&(_249)){_246=true;}var _24a=(_240&&(!_246)&&(_1e8.indexOf(qcz)==-1)&&(!d.isIE||(_245.indexOf(":")==-1))&&(!(_1e7&&(_245.indexOf(".")>=0)))&&(_245.indexOf(":contains")==-1)&&(_245.indexOf(":checked")==-1)&&(_245.indexOf("|=")==-1));if(_24a){var tq=(_1e8.indexOf(_245.charAt(_245.length-1))>=0)?(_245+" *"):_245;return _23a[_245]=function(root){try{if(!((9==root.nodeType)||_249)){throw "";}var r=root[qsa](tq);r[_23f]=true;return r;}catch(e){return _244(_245,true)(root);}};}else{var _24b=_245.split(/\s*,\s*/);return _239[_245]=((_24b.length<2)?_23b(_245):function(root){var _24c=0,ret=[],tp;while((tp=_24b[_24c++])){ret=ret.concat(_23b(tp)(root));}return ret;});}};var _24d=0;var _24e=d.isIE?function(node){if(_1e9){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_24d)||_24d);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_24d));};var _228=function(node,bag){if(!bag){return 1;}var id=_24e(node);if(!bag[id]){return bag[id]=1;}return 0;};var _24f="_zipIdx";var _250=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;}_24d++;if(d.isIE&&_1e9){var _251=_24d+"";arr[0].setAttribute(_24f,_251);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_24f)!=_251){ret.push(te);}te.setAttribute(_24f,_251);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_201(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_24f]=_24d;}for(var x=1,te;te=arr[x];x++){if(arr[x][_24f]!=_24d){ret.push(te);}te[_24f]=_24d;}}}return ret;};d.query=function(_252,root){qlc=d._NodeListCtor;if(!_252){return new qlc();}if(_252.constructor==qlc){return _252;}if(typeof _252!="string"){return new qlc(_252);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_1e6();var od=root.ownerDocument||root.documentElement;_1e9=(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=_244(_252)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _250(r);};d.query.pseudos=_215;d._filterQueryResult=function(_253,_254,root){var _255=new d._NodeListCtor(),_256=_1eb(_254),_257=(_256.length==1&&!/[^\w#\.]/.test(_254))?_21c(_256[0]):function(node){return dojo.query(_254,root).indexOf(node)!=-1;};for(var x=0,te;te=_253[x];x++){if(_257(te)){_255.push(te);}}return _255;};};var _258=function(){acme={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;},forEach:function(arr,_259,_25a){if(!arr||!arr.length){return;}for(var i=0,l=arr.length;i<l;++i){_259.call(_25a||window,arr[i],i,arr);}},byId:function(id,doc){if(typeof id=="string"){return (doc||document).getElementById(id);}else{return id;}},doc:document,NodeList:Array};var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);acme.isOpera=(dua.indexOf("Opera")>=0)?tv:undefined;acme.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:undefined;acme.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;var _25b=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_25b&&!acme.isChrome){acme.isSafari=parseFloat(dav.split("Version/")[1]);if(!acme.isSafari||parseFloat(dav.substr(_25b+7))<=419.3){acme.isSafari=2;}}if(document.all&&!acme.isOpera){acme.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;}Array._wrap=function(arr){return arr;};return acme;};if(this["dojo"]){dojo.provide("dojo._base.query");_1e5(this["queryPortability"]||this["acme"]||dojo);}else{_1e5(this["queryPortability"]||this["acme"]||_258());}})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _25c=dojo,cfg=_25c.config;function _25d(obj,name,_25e){if(_25e===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_25e];}else{if(_25c.isArray(val)){val.push(_25e);}else{obj[name]=_25e;}}};dojo.fieldToObject=function(_25f){var ret=null;var item=_25c.byId(_25f);if(item){var _260=item.name;var type=(item.type||"").toLowerCase();if(_260&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_25c.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_261){var ret={};var _262="file|submit|image|reset|button|";_25c.forEach(dojo.byId(_261).elements,function(item){var _263=item.name;var type=(item.type||"").toLowerCase();if(_263&&type&&_262.indexOf(type)==-1&&!item.disabled){_25d(ret,_263,_25c.fieldToObject(item));if(type=="image"){ret[_263+".x"]=ret[_263+".y"]=ret[_263].x=ret[_263].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _264=[];var _265={};for(var name in map){var _266=map[name];if(_266!=_265[name]){var _267=enc(name)+"=";if(_25c.isArray(_266)){for(var i=0;i<_266.length;i++){_264.push(_267+enc(_266[i]));}}else{_264.push(_267+enc(_266));}}}return _264.join("&");};dojo.formToQuery=function(_268){return _25c.objectToQuery(_25c.formToObject(_268));};dojo.formToJson=function(_269,_26a){return _25c.toJson(_25c.formToObject(_269),_26a);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_25c.forEach(qp,function(item){if(item.length){var _26b=item.split("=");var name=dec(_26b.shift());var val=dec(_26b.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_25c.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;var _26c=_25c._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _25c.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 _26d=xhr.responseText;var _26e=_26d.indexOf("/*");var _26f=_26d.lastIndexOf("*/");if(_26e==-1||_26f==-1){throw new Error("JSON was not comment filtered");}return _25c.fromJson(_26d.substring(_26e+2,_26f));},javascript:function(xhr){return _25c.eval(xhr.responseText);},xml:function(xhr){var _270=xhr.responseXML;if(_25c.isIE&&(!_270||!_270.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_25c.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_270=dom;}catch(e){return false;}return true;});}return _270;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _26c["json-comment-filtered"](xhr);}else{return _26c["json"](xhr);}}};dojo._ioSetArgs=function(args,_271,_272,_273){var _274={args:args,url:args.url};var _275=null;if(args.form){var form=_25c.byId(args.form);var _276=form.getAttributeNode("action");_274.url=_274.url||(_276?_276.value:null);_275=_25c.formToObject(form);}var _277=[{}];if(_275){_277.push(_275);}if(args.content){_277.push(args.content);}if(args.preventCache){_277.push({"dojo.preventCache":new Date().valueOf()});}_274.query=_25c.objectToQuery(_25c.mixin.apply(null,_277));_274.handleAs=args.handleAs||"text";var d=new _25c.Deferred(_271);d.addCallbacks(_272,function(_278){return _273(_278,d);});var ld=args.load;if(ld&&_25c.isFunction(ld)){d.addCallback(function(_279){return ld.call(args,_279,_274);});}var err=args.error;if(err&&_25c.isFunction(err)){d.addErrback(function(_27a){return err.call(args,_27a,_274);});}var _27b=args.handle;if(_27b&&_25c.isFunction(_27b)){d.addBoth(function(_27c){return _27b.call(args,_27c,_274);});}if(cfg.ioPublish&&_25c.publish&&_274.args.ioPublish!==false){d.addCallbacks(function(res){_25c.publish("/dojo/io/load",[d,res]);return res;},function(res){_25c.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_25c.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_274;return d;};var _27d=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _27e=typeof xhr.abort;if(_27e=="function"||_27e=="object"||_27e=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _27f=function(dfd){var ret=_26c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _280=function(_281,dfd){if(!dfd.ioArgs.args.failOk){console.error(_281);}return _281;};var _282=null;var _283=[];var _284=0;var _285=function(dfd){if(_284<=0){_284=0;if(cfg.ioPublish&&_25c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_25c.publish("/dojo/io/stop");}}};var _286=function(){var now=(new Date()).getTime();if(!_25c._blockAsync){for(var i=0,tif;i<_283.length&&(tif=_283[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_283.splice(i--,1);_284-=1;}else{if(tif.ioCheck(dfd)){_283.splice(i--,1);tif.resHandle(dfd);_284-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_283.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_284-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_285(dfd);if(!_283.length){clearInterval(_282);_282=null;return;}};dojo._ioCancelAll=function(){try{_25c.forEach(_283,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_25c.isIE){_25c.addOnWindowUnload(_25c._ioCancelAll);}_25c._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_25c.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_284){_25c.publish("/dojo/io/start");}_284+=1;_25c.publish("/dojo/io/send",[dfd]);}};_25c._ioWatch=function(dfd,_287,_288,_289){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_283.push({dfd:dfd,validCheck:_287,ioCheck:_288,resHandle:_289});if(!_282){_282=setInterval(_286,50);}if(args.sync){_286();}};var _28a="application/x-www-form-urlencoded";var _28b=function(dfd){return dfd.ioArgs.xhr.readyState;};var _28c=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _28d=function(dfd){var xhr=dfd.ioArgs.xhr;if(_25c._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(_28e){if(_28e.query.length){_28e.url+=(_28e.url.indexOf("?")==-1?"?":"&")+_28e.query;_28e.query=null;}};dojo.xhr=function(_28f,args,_290){var dfd=_25c._ioSetArgs(args,_27d,_27f,_280);var _291=dfd.ioArgs;var xhr=_291.xhr=_25c._xhrObj(_291.args);if(!xhr){dfd.cancel();return dfd;}if("postData" in args){_291.query=args.postData;}else{if("putData" in args){_291.query=args.putData;}else{if("rawBody" in args){_291.query=args.rawBody;}else{if((arguments.length>2&&!_290)||"POST|PUT".indexOf(_28f.toUpperCase())==-1){_25c._ioAddQueryToUrl(_291);}}}}xhr.open(_28f,_291.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||_28a);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_25c._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_291.query);}else{try{xhr.send(_291.query);}catch(e){_291.error=e;dfd.cancel();}}_25c._ioWatch(dfd,_28b,_28c,_28d);xhr=null;return dfd;};dojo.xhrGet=function(args){return _25c.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _25c.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _25c.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _25c.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 _292=d._mixin;dojo._Line=function(_293,end){this.start=_293;this.end=end;};dojo._Line.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_292(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 _294=this._percent,_295=this.easing;return _295?_295(_294):_294;},_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(_296,_297){var _298=this;if(_298._delayTimer){_298._clearTimer();}if(_297){_298._stopTimer();_298._active=_298._paused=false;_298._percent=0;}else{if(_298._active&&!_298._paused){return _298;}}_298._fire("beforeBegin",[_298.node]);var de=_296||_298.delay,_299=dojo.hitch(_298,"_play",_297);if(de>0){_298._delayTimer=setTimeout(_299,de);return _298;}_299();return _298;},_play:function(_29a){var _29b=this;if(_29b._delayTimer){_29b._clearTimer();}_29b._startTime=new Date().valueOf();if(_29b._paused){_29b._startTime-=_29b.duration*_29b._percent;}_29b._active=true;_29b._paused=false;var _29c=_29b.curve.getValue(_29b._getStep());if(!_29b._percent){if(!_29b._startRepeatCount){_29b._startRepeatCount=_29b.repeat;}_29b._fire("onBegin",[_29c]);}_29b._fire("onPlay",[_29c]);_29b._cycle();return _29b;},pause:function(){var _29d=this;if(_29d._delayTimer){_29d._clearTimer();}_29d._stopTimer();if(!_29d._active){return _29d;}_29d._paused=true;_29d._fire("onPause",[_29d.curve.getValue(_29d._getStep())]);return _29d;},gotoPercent:function(_29e,_29f){var _2a0=this;_2a0._stopTimer();_2a0._active=_2a0._paused=true;_2a0._percent=_29e;if(_29f){_2a0.play();}return _2a0;},stop:function(_2a1){var _2a2=this;if(_2a2._delayTimer){_2a2._clearTimer();}if(!_2a2._timer){return _2a2;}_2a2._stopTimer();if(_2a1){_2a2._percent=1;}_2a2._fire("onStop",[_2a2.curve.getValue(_2a2._getStep())]);_2a2._active=_2a2._paused=false;return _2a2;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _2a3=this;if(_2a3._active){var curr=new Date().valueOf();var step=(curr-_2a3._startTime)/(_2a3.duration);if(step>=1){step=1;}_2a3._percent=step;if(_2a3.easing){step=_2a3.easing(step);}_2a3._fire("onAnimate",[_2a3.curve.getValue(step)]);if(_2a3._percent<1){_2a3._startTimer();}else{_2a3._active=false;if(_2a3.repeat>0){_2a3.repeat--;_2a3.play(null,true);}else{if(_2a3.repeat==-1){_2a3.play(null,true);}else{if(_2a3._startRepeatCount){_2a3.repeat=_2a3._startRepeatCount;_2a3._startRepeatCount=0;}}}_2a3._percent=0;_2a3._fire("onEnd",[_2a3.node]);!_2a3.repeat&&_2a3._stopTimer();}}return _2a3;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_2a4=null,_2a5={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_2a5,"run",this,"_cycle");ctr++;}if(!_2a4){_2a4=setInterval(d.hitch(_2a5,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_2a4);_2a4=null;ctr=0;}}});var _2a6=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 _2a7=_292({properties:{}},args),_2a8=(_2a7.properties.opacity={});_2a8.start=!("start" in _2a7)?function(){return +d.style(_2a7.node,"opacity")||0;}:_2a7.start;_2a8.end=_2a7.end;var anim=d.animateProperty(_2a7);d.connect(anim,"beforeBegin",d.partial(_2a6,_2a7.node));return anim;};dojo.fadeIn=function(args){return d._fade(_292({end:1},args));};dojo.fadeOut=function(args){return d._fade(_292({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _2a9=function(_2aa){this._properties=_2aa;for(var p in _2aa){var prop=_2aa[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_2a9.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_2ab=prop.start;if(_2ab instanceof d.Color){ret[p]=d.blendColors(_2ab,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_2ab)){ret[p]=((prop.end-_2ab)*r)+_2ab+(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]=_292({},(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 _2ac=(p.toLowerCase().indexOf("color")>=0);function _2ad(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:(_2ac?v:parseFloat(v));};if(!("end" in prop)){prop.end=_2ad(n,p);}else{if(!("start" in prop)){prop.start=_2ad(n,p);}}if(_2ac){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 _2a9(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_2ae,_2af,_2b0,_2b1,_2b2){return d.animateProperty({node:node,duration:_2af||d.Animation.prototype.duration,properties:_2ae,easing:_2b0,onEnd:_2b1}).play(_2b2||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["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(typeof dojo=="undefined"){(function(){var _2b3=function(){if(this["document"]&&this["document"]["getElementsByTagName"]){var _2b4=document.getElementsByTagName("script");var _2b5=/dojo\.js(\W|$)/i;for(var i=0;i<_2b4.length;i++){var src=_2b4[i].getAttribute("src");if(!src){continue;}var m=src.match(_2b5);if(m){return {node:_2b4[i],root:src.substring(0,m.index)};}}}};var _2b6="browser",cfg="dojoConfig";if(typeof this[cfg]==="undefined"&&typeof djConfig!=="undefined"){this[cfg]=djConfig;}if(typeof dojoConfig!=="undefined"&&dojoConfig.hostEnv){_2b6=dojoConfig.hostEnv;}else{if(typeof this["load"]=="function"&&(typeof this["Packages"]=="function"||typeof this["Packages"]=="object")){_2b6="rhino";}else{if(typeof this["load"]=="function"){_2b6="spidermonkey";}}}var tmps=["bootstrap.js","loader.js","hostenv_"+_2b6+".js"];if(this.Jaxer&&this.Jaxer.isOnServer){this.load=Jaxer.load;}if(this[cfg]&&(dojoConfig["forceXDomain"]||dojoConfig["useXDomain"])){tmps.push("loader_xd.js");}if(this[cfg]&&dojoConfig["baseUrl"]){var root=dojoConfig["baseUrl"];}else{var root="./";if(_2b6==="spidermonkey"){try{throw new Error("");}catch(e){root=String(e.fileName||e.sourceURL).split("dojo.js")[0];}}if(!this[cfg]){dojoConfig={baseUrl:root};}if(this["document"]&&this["document"]["getElementsByTagName"]){var root=_2b3().root;if(!this[cfg]){dojoConfig={};}dojoConfig["baseUrl"]=root;}}for(var x=0;x<tmps.length;x++){tmps[x]=root+"_base/_loader/"+tmps[x];}tmps.push(root+"_base.js");var _2b7;var _2b8=0;var _2b9=0;if(_2b6=="browser"){try{_2b7=_2b3().node;var ua=navigator.userAgent;_2b8=(ua.indexOf("Opera")>=0);_2b9=(ua.indexOf("WebKit")>=0);}catch(e){}}var _2ba=function(src){var xhr=new XMLHttpRequest();xhr.open("GET",src,false);xhr.send();eval(xhr.responseText);};var _2bb=function(src){if(_2b9){return _2ba(src);}var head=document.getElementsByTagName("head")[0];var _2bc=document.createElement("script");_2bc.setAttribute("type","text/javascript");if(head.lastChild===_2b7){head.appendChild(_2bc);}else{_2b7.parentNode.insertBefore(_2bc,_2b7.nextSibling);}_2bc.src=src;_2b7=_2bc;};for(var x=0;x<tmps.length;x++){if(_2b6==="rhino"||_2b6==="spidermonkey"||(this.Jaxer&&this.Jaxer.isOnServer)){load(tmps[x]);}else{if(_2b6==="ff_ext"){var l=Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);l.loadSubScript(tmps[x],this);}else{if(_2b8){_2ba(tmps[x]);}else{try{document.write("<scr"+"ipt type='text/javascript' src='"+tmps[x]+"'></scr"+"ipt>");}catch(e){_2bb(tmps[x]);}}}}}})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _2bd=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2be=dojo._docScroll();return {w:_2bd.clientWidth,h:_2bd.clientHeight,l:_2be.x,t:_2be.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(node,pos){node=dojo.byId(node);var body,doc=node.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){body=dojo.body();var _2bf=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_2bf,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_2bf.removeChild(div);body.removeChild(_2bf);}if(!("position_fixed_support" in dojo.window)){body=dojo.body();var _2c0=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_2c1=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_2c0,"last");dojo.window.position_fixed_support=dojo.position(_2c1).x!=dojo.position(_2c0).x;_2c0.removeChild(_2c1);body.removeChild(_2c0);}try{body=doc.body||doc.getElementsByTagName("body")[0];var html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if(node==body||node==html){return;}if(!(dojo.isMozilla||isIE||isWK||dojo.isOpera)&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _2c2=doc.compatMode=="BackCompat",_2c3=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_2c4=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_2c5=(isWK||_2c2)?body:html,_2c6=pos||dojo.position(node),el=node.parentNode,_2c7=function(el){return (isIE<=6||(isIE==7&&_2c2))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_2c7(node)){return;}while(el){if(el==body){el=_2c5;}var _2c8=dojo.position(el),_2c9=_2c7(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_2c5){_2c8.w=_2c3;_2c8.h=_2c4;if(_2c5==html&&isIE&&rtl){_2c8.x+=_2c5.offsetWidth-_2c8.w;}if(_2c8.x<0||!isIE||isIE>=9){_2c8.x=0;}if(_2c8.y<0||!isIE||isIE>=9){_2c8.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_2c8.w-=pb.w;_2c8.h-=pb.h;_2c8.x+=pb.l;_2c8.y+=pb.t;var _2ca=el.clientWidth,_2cb=_2c8.w-_2ca;if(_2ca>0&&_2cb>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_2c8.x+=_2cb;}_2c8.w=_2ca;}_2ca=el.clientHeight;_2cb=_2c8.h-_2ca;if(_2ca>0&&_2cb>0){_2c8.h=_2ca;}}if(_2c9){if(_2c8.y<0){_2c8.h+=_2c8.y;_2c8.y=0;}if(_2c8.x<0){_2c8.w+=_2c8.x;_2c8.x=0;}if(_2c8.y+_2c8.h>_2c4){_2c8.h=_2c4-_2c8.y;}if(_2c8.x+_2c8.w>_2c3){_2c8.w=_2c3-_2c8.x;}}var l=_2c6.x-_2c8.x,t=_2c6.y-_2c8.y,r=l+_2c6.w-_2c8.w,bot=t+_2c6.h-_2c8.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_2c5||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_2c2)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_2c6.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_2c5||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_2c6.y-=s;}el=(el!=_2c5)&&!_2c9&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_2cc){if(this._hash[_2cc.id]){throw new Error("Tried to register widget with id=="+_2cc.id+" but that id is already registered");}this._hash[_2cc.id]=_2cc;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2cd){_2cd=_2cd||dojo.global;var i=0,id;for(id in this._hash){func.call(_2cd,this._hash[id],i++,this._hash);}return this;},filter:function(_2ce,_2cf){_2cf=_2cf||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2ce.call(_2cf,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,_2d0;for(id in this._hash){_2d0=this._hash[id];if(_2d0.declaredClass==cls){res.add(_2d0);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2d1){return dojo.map(this.toArray(),func,_2d1);},every:function(func,_2d2){_2d2=_2d2||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_2d2,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2d3){_2d3=_2d3||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_2d3,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_2d4=dojo.hasAttr,_2d5=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _2d6={};dijit.getUniqueId=function(_2d7){var id;do{id=_2d7+"_"+(_2d7 in _2d6?++_2d6[_2d7]:_2d6[_2d7]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _2d8=[];function _2d9(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _2da=node.getAttribute("widgetId");if(_2da){var _2db=hash[_2da];if(_2db){_2d8.push(_2db);}}else{_2d9(node);}}}};_2d9(root);return _2d8;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2dc){if(!_2dc._destroyed){if(_2dc.destroyRecursive){_2dc.destroyRecursive();}else{if(_2dc.destroy){_2dc.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(node){return hash[node.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;};var _2dd=(dijit._isElementShown=function(elem){var s=_2d5(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");});dijit.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _2d4(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2de=elem.contentDocument;if("designMode" in _2de&&_2de.designMode=="on"){return true;}body=_2de.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true");default:return elem.contentEditable=="true";}};var _2df=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_2d4(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _2e0,last,_2e1,_2e2,_2e3,_2e4,_2e5={};function _2e6(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2e7=function(_2e8){dojo.query("> *",_2e8).forEach(function(_2e9){if((dojo.isIE<=9&&_2e9.scopeName!=="HTML")||!_2dd(_2e9)){return;}if(_2df(_2e9)){var _2ea=attr(_2e9,"tabIndex");if(!_2d4(_2e9,"tabIndex")||_2ea==0){if(!_2e0){_2e0=_2e9;}last=_2e9;}else{if(_2ea>0){if(!_2e1||_2ea<_2e2){_2e2=_2ea;_2e1=_2e9;}if(!_2e3||_2ea>=_2e4){_2e4=_2ea;_2e3=_2e9;}}}var rn=_2e6(_2e9);if(dojo.attr(_2e9,"checked")&&rn){_2e5[rn]=_2e9;}}if(_2e9.nodeName.toUpperCase()!="SELECT"){_2e7(_2e9);}});};if(_2dd(root)){_2e7(root);}function rs(node){return _2e5[_2e6(node)]||node;};return {first:rs(_2e0),last:rs(last),lowest:rs(_2e1),highest:rs(_2e3)};};dijit.getFirstInTabbingOrder=function(root){var _2eb=dijit._getTabNavigable(dojo.byId(root));return _2eb.lowest?_2eb.lowest:_2eb.first;};dijit.getLastInTabbingOrder=function(root){var _2ec=dijit._getTabNavigable(dojo.byId(root));return _2ec.last?_2ec.last:_2ec.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};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}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(_2ed){var _2ee=dojo.doc,mark=_2ed.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(_2ee.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_2ee.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2ee.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2ef){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2ef||dojo.global,dijit.getBookmark),openedForWindow:_2ef};},focus:function(_2f0){if(!_2f0){return;}var node="node" in _2f0?_2f0.node:_2f0,_2f1=_2f0.bookmark,_2f2=_2f0.openedForWindow,_2f3=_2f1?_2f1.isCollapsed:false;if(node){var _2f4=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2f4&&_2f4.focus){try{_2f4.focus();}catch(e){}}dijit._onFocusNode(node);}if(_2f1&&dojo.withGlobal(_2f2||dojo.global,dijit.isCollapsed)&&!_2f3){if(_2f2){_2f2.focus();}try{dojo.withGlobal(_2f2||dojo.global,dijit.moveToBookmark,null,[_2f1]);}catch(e2){}}},_activeStack:[],registerIframe:function(_2f5){return dijit.registerWin(_2f5.contentWindow,_2f5);},unregisterIframe:function(_2f6){dijit.unregisterWin(_2f6);},registerWin:function(_2f7,_2f8){var _2f9=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_2f8||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_2f7.document.documentElement:_2f7.document;if(doc){if(dojo.isIE){_2f7.document.body.attachEvent("onmousedown",_2f9);var _2fa=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_2f8||evt.srcElement);}else{dijit._onTouchNode(_2f8||evt.srcElement);}};doc.attachEvent("onactivate",_2fa);var _2fb=function(evt){dijit._onBlurNode(_2f8||evt.srcElement);};doc.attachEvent("ondeactivate",_2fb);return function(){_2f7.document.detachEvent("onmousedown",_2f9);doc.detachEvent("onactivate",_2fa);doc.detachEvent("ondeactivate",_2fb);doc=null;};}else{doc.body.addEventListener("mousedown",_2f9,true);var _2fc=function(evt){dijit._onFocusNode(_2f8||evt.target);};doc.addEventListener("focus",_2fc,true);var _2fd=function(evt){dijit._onBlurNode(_2f8||evt.target);};doc.addEventListener("blur",_2fd,true);return function(){doc.body.removeEventListener("mousedown",_2f9,true);doc.removeEventListener("focus",_2fc,true);doc.removeEventListener("blur",_2fd,true);doc=null;};}}},unregisterWin:function(_2fe){_2fe&&_2fe();},_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 _2ff=[];try{while(node){var _300=dojo.attr(node,"dijitPopupParent");if(_300){node=dijit.byId(_300).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_301=id&&dijit.byId(id);if(_301&&!(by=="mouse"&&_301.get("disabled"))){_2ff.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_2ff,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(_302,by){var _303=dijit._activeStack;dijit._activeStack=_302;for(var _304=0;_304<Math.min(_303.length,_302.length);_304++){if(_303[_304]!=_302[_304]){break;}}var _305;for(var i=_303.length-1;i>=_304;i--){_305=dijit.byId(_303[i]);if(_305){_305._focused=false;_305.set("focused",false);_305._hasBeenBlurred=true;if(_305._onBlur){_305._onBlur(by);}dojo.publish("widgetBlur",[_305,by]);}}for(i=_304;i<_302.length;i++){_305=dijit.byId(_302[i]);if(_305){_305._focused=true;_305.set("focused",true);if(_305._onFocus){_305._onFocus(by);}dojo.publish("widgetFocus",[_305,by]);}}}});dojo.addOnLoad(function(){var _306=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_306);_306=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_307){this.pairs=[];this.returnWrappers=_307||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_308,wrap,_309,_30a){this.pairs[((_30a)?"unshift":"push")]([name,_308,wrap,_309]);},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(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_30b,_30c){var _30d=dojo.map(_30b,function(_30e){var c={corner:_30e,pos:{x:pos.x,y:pos.y}};if(_30c){c.pos.x+=_30e.charAt(1)=="L"?_30c.x:-_30c.x;c.pos.y+=_30e.charAt(0)=="T"?_30c.y:-_30c.y;}return c;});return dijit._place(node,_30d);};dijit._place=function(node,_30f,_310,_311){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_30f,function(_312){var _313=_312.corner;var pos=_312.pos;var _314=0;var _315={w:_313.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_313.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_310){var res=_310(node,_312.aroundCorner,_313,_315,_311);_314=typeof res=="undefined"?0:res;}var _316=node.style;var _317=_316.display;var _318=_316.visibility;_316.visibility="hidden";_316.display="";var mb=dojo.marginBox(node);_316.display=_317;_316.visibility=_318;var _319=Math.max(view.l,_313.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_31a=Math.max(view.t,_313.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_313.charAt(1)=="L"?(_319+mb.w):pos.x),endY=Math.min(view.t+view.h,_313.charAt(0)=="T"?(_31a+mb.h):pos.y),_31b=endX-_319,_31c=endY-_31a;_314+=(mb.w-_31b)+(mb.h-_31c);if(best==null||_314<best.overflow){best={corner:_313,aroundCorner:_312.aroundCorner,x:_319,y:_31a,w:_31b,h:_31c,overflow:_314,spaceAvailable:_315};}return !_314;});if(best.overflow&&_310){_310(node,best.aroundCorner,best.corner,best.spaceAvailable,_311);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_31d,_31e,_31f){_31d=dojo.byId(_31d);var _320=dojo.position(_31d,true);return dijit._placeOnScreenAroundRect(node,_320.x,_320.y,_320.w,_320.h,_31e,_31f);};dijit.placeOnScreenAroundRectangle=function(node,_321,_322,_323){return dijit._placeOnScreenAroundRect(node,_321.x,_321.y,_321.width,_321.height,_322,_323);};dijit._placeOnScreenAroundRect=function(node,x,y,_324,_325,_326,_327){var _328=[];for(var _329 in _326){_328.push({aroundCorner:_329,corner:_326[_329],pos:{x:x+(_329.charAt(1)=="L"?0:_324),y:y+(_329.charAt(0)=="T"?0:_325)}});}return dijit._place(node,_328,_327,{w:_324,h:_325});};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,_32a,_32b,_32c){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_32d,_32e){var _32f={};dojo.forEach(_32d,function(pos){switch(pos){case "after":_32f[_32e?"BR":"BL"]=_32e?"BL":"BR";break;case "before":_32f[_32e?"BL":"BR"]=_32e?"BR":"BL";break;case "below-alt":_32e=!_32e;case "below":_32f[_32e?"BL":"BR"]=_32e?"TL":"TR";_32f[_32e?"BR":"BL"]=_32e?"TR":"TL";break;case "above-alt":_32e=!_32e;case "above":default:_32f[_32e?"TL":"TR"]=_32e?"BL":"BR";_32f[_32e?"TR":"TL"]=_32e?"BR":"BL";break;}});return _32f;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_330){var node=_330.domNode||_330,_331=_330.declaredClass?_330._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_331){_331=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_331.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_330.declaredClass){_330._popupWrapper=_331;dojo.connect(_330,"destroy",function(){dojo.destroy(_331);delete _330._popupWrapper;});}}return _331;},moveOffScreen:function(_332){var _333=this._createWrapper(_332);dojo.style(_333,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_334){var _335=this._createWrapper(_334);dojo.style(_335,"display","none");},getTopPopup:function(){var _336=this._stack;for(var pi=_336.length-1;pi>0&&_336[pi].parent===_336[pi-1].widget;pi--){}return _336[pi];},open:function(args){var _337=this._stack,_338=args.popup,_339=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_33a=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_337.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_337[_337.length-1].widget.domNode))){dijit.popup.close(_337[_337.length-1].widget);}var _33b=this._createWrapper(_338);dojo.attr(_33b,{id:id,style:{zIndex:this._beginZIndex+_337.length},"class":"dijitPopup "+(_338.baseClass||_338["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_338.bgIframe){_338.bgIframe=new dijit.BackgroundIframe(_33b);}}var best=_33a?dijit.placeOnScreenAroundElement(_33b,_33a,_339,_338.orient?dojo.hitch(_338,"orient"):null):dijit.placeOnScreen(_33b,args,_339=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_33b.style.display="";_33b.style.visibility="visible";_338.domNode.style.visibility="visible";var _33c=[];_33c.push(dojo.connect(_33b,"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 _33d=this.getTopPopup();if(_33d&&_33d.onCancel){_33d.onCancel();}}}}));if(_338.onCancel){_33c.push(dojo.connect(_338,"onCancel",args.onCancel));}_33c.push(dojo.connect(_338,_338.onExecute?"onExecute":"onChange",this,function(){var _33e=this.getTopPopup();if(_33e&&_33e.onExecute){_33e.onExecute();}}));_337.push({widget:_338,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_33c});if(_338.onOpen){_338.onOpen(best);}return best;},close:function(_33f){var _340=this._stack;while((_33f&&dojo.some(_340,function(elem){return elem.widget==_33f;}))||(!_33f&&_340.length)){var top=_340.pop(),_341=top.widget,_342=top.onClose;if(_341.onClose){_341.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_341&&_341.domNode){this.hide(_341);}if(_342){_342();}}}};dijit._frames=new function(){var _343=[];this.pop=function(){var _344;if(_343.length){_344=_343.pop();_344.style.display="";}else{if(dojo.isIE<9){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\");'>";_344=dojo.doc.createElement(html);}else{_344=dojo.create("iframe");_344.src="javascript:\"\"";_344.className="dijitBackgroundIframe";dojo.style(_344,"opacity",0.1);}_344.tabIndex=-1;dijit.setWaiRole(_344,"presentation");}return _344;};this.push=function(_345){_345.style.display="none";_343.push(_345);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _346=(this.iframe=dijit._frames.pop());node.appendChild(_346);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_346,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){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){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_347=d.isOpera,maj=Math.floor,ff=d.isFF,_348=d.boxModel.replace(/-/,""),_349={dj_quirks:d.isQuirks,dj_opera:_347,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_349["dj_ie"]=true;_349["dj_ie"+maj(ie)]=true;_349["dj_iequirks"]=d.isQuirks;}if(ff){_349["dj_ff"+maj(ff)]=true;}_349["dj_"+_348]=true;var _34a="";for(var clz in _349){if(_349[clz]){_34a+=clz+" ";}}html.className=d.trim(html.className+" "+_34a);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _34b="dj_rtl dijitRtl "+_34a.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_34b);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_34c,node,_34d,obj,_34e,_34f,_350){if(obj!=this._obj){this.stop();this._initialDelay=_34f||500;this._subsequentDelay=_34e||0.9;this._minDelay=_350||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_34c,_34d);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_351,_352,_353,_354,_355,_356){if(_351.keyCode){_351.charOrCode=_351.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_351.charCode){_351.charOrCode=String.fromCharCode(_351.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==_351.charOrCode&&(_351.ctrlKey===undefined||_351.ctrlKey==evt.ctrlKey)&&(_351.altKey===undefined||_351.altKey==evt.altKey)&&(_351.metaKey===undefined||_351.metaKey==(evt.metaKey||false))&&(_351.shiftKey===undefined||_351.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_352,node,_353,_351,_354,_355,_356);}else{if(dijit.typematic._obj==_351){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_351){dijit.typematic.stop();}})];},addMouseListener:function(node,_357,_358,_359,_35a,_35b){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_357,node,_358,node,_359,_35a,_35b);}),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){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_357,node,_358,node,_359,_35a,_35b);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_35c,_35d,_35e,_35f,_360,_361,_362,_363){return this.addKeyListener(_35d,_35e,_35f,_360,_361,_362,_363).concat(this.addMouseListener(_35c,_35f,_360,_361,_362,_363));}};}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 _364=cs.backgroundImage;var _365=(cs.borderTopColor==cs.borderRightColor)||(_364!=null&&(_364=="none"||_364=="url(invalid-url:)"));dojo[_365?"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,{hasWaiRole:function(elem,role){var _366=this.getWaiRole(elem);return role?(_366.indexOf(role)>-1):(_366.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _367=dojo.attr(elem,"role");if(!_367){return;}if(role){var t=dojo.trim((" "+_367+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_368){return elem.hasAttribute?elem.hasAttribute("aria-"+_368):!!elem.getAttribute("aria-"+_368);},getWaiState:function(elem,_369){return elem.getAttribute("aria-"+_369)||"";},setWaiState:function(elem,_36a,_36b){elem.setAttribute("aria-"+_36a,_36b);},removeWaiState:function(elem,_36c){elem.removeAttribute("aria-"+_36c);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_36d,_36e){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 _36f=dojo.date.stamp._isoRegExp.exec(_36d),_370=null;if(_36f){_36f.shift();if(_36f[1]){_36f[1]--;}if(_36f[6]){_36f[6]*=1000;}if(_36e){_36e=new Date(_36e);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _36e["get"+prop]();}),function(_371,_372){_36f[_372]=_36f[_372]||_371;});}_370=new Date(_36f[0]||1970,_36f[1]||0,_36f[2]||1,_36f[3]||0,_36f[4]||0,_36f[5]||0,_36f[6]||0);if(_36f[0]<100){_370.setFullYear(_36f[0]||1970);}var _373=0,_374=_36f[7]&&_36f[7].charAt(0);if(_374!="Z"){_373=((_36f[8]||0)*60)+(Number(_36f[9])||0);if(_374!="-"){_373*=-1;}}if(_374){_373-=_370.getTimezoneOffset();}if(_373){_370.setTime(_370.getTime()+_373*60000);}}return _370;};dojo.date.stamp.toISOString=function(_375,_376){var _377=function(n){return (n<10)?"0"+n:n;};_376=_376||{};var _378=[],_379=_376.zulu?"getUTC":"get",date="";if(_376.selector!="time"){var year=_375[_379+"FullYear"]();date=["0000".substr((year+"").length)+year,_377(_375[_379+"Month"]()+1),_377(_375[_379+"Date"]())].join("-");}_378.push(date);if(_376.selector!="date"){var time=[_377(_375[_379+"Hours"]()),_377(_375[_379+"Minutes"]()),_377(_375[_379+"Seconds"]())].join(":");var _37a=_375[_379+"Milliseconds"]();if(_376.milliseconds){time+="."+(_37a<100?"0":"")+_377(_37a);}if(_376.zulu){time+="Z";}else{if(_376.selector!="time"){var _37b=_375.getTimezoneOffset();var _37c=Math.abs(_37b);time+=(_37b>0?"-":"+")+_377(Math.floor(_37c/60))+":"+_377(_37c%60);}}_378.push(time);}return _378.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _37d(_37e){if(d.isString(_37e)){return "string";}if(typeof _37e=="number"){return "number";}if(typeof _37e=="boolean"){return "boolean";}if(d.isFunction(_37e)){return "function";}if(d.isArray(_37e)){return "array";}if(_37e instanceof Date){return "date";}if(_37e instanceof d._Url){return "url";}return "object";};function _37f(_380,type){switch(type){case "string":return _380;case "number":return _380.length?Number(_380):NaN;case "boolean":return typeof _380=="boolean"?_380:!(_380.toLowerCase()=="false");case "function":if(d.isFunction(_380)){_380=_380.toString();_380=d.trim(_380.substring(_380.indexOf("{")+1,_380.length-1));}try{if(_380===""||_380.search(/[^\w\.]+/i)!=-1){return new Function(_380);}else{return d.getObject(_380,false)||new Function(_380);}}catch(e){return new Function();}case "array":return _380?_380.split(/\s*,\s*/):[];case "date":switch(_380){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_380);}case "url":return d.baseUrl+_380;default:return d.fromJson(_380);}};var _381={},_382={};d.connect(d,"extend",function(){_382={};});function _383(cls,_384){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _381){continue;}_384[name]=_37d(cls[name]);}return _384;};function _385(_386,_387){var c=_382[_386];if(!c){var cls=d.getObject(_386),_388=null;if(!cls){return null;}if(!_387){_388=_383(cls.prototype,{});}c={cls:cls,params:_388};}else{if(!_387&&!c.params){c.params=_383(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_389,_38a){var _38b="";var _38c="";var _38d=(_389.getAttribute(_38a+"args")||_389.getAttribute("args"));if(_38d){d.forEach(_38d.split(/\s*,\s*/),function(part,idx){_38b+="var "+part+" = arguments["+idx+"]; ";});}var _38e=_389.getAttribute("with");if(_38e&&_38e.length){d.forEach(_38e.split(/\s*,\s*/),function(part){_38b+="with("+part+"){";_38c+="}";});}return new Function(_38b+_389.innerHTML+_38c);};this.instantiate=function(_38f,_390,args){var _391=[],_390=_390||{};args=args||{};var _392=(args.scope||d._scopeName)+"Type",_393="data-"+(args.scope||d._scopeName)+"-";d.forEach(_38f,function(obj){if(!obj){return;}var node,type,_394,_395,_396,_397;if(obj.node){node=obj.node;type=obj.type;_397=obj.fastpath;_394=obj.clsInfo||(type&&_385(type,_397));_395=_394&&_394.cls;_396=obj.scripts;}else{node=obj;type=_392 in _390?_390[_392]:node.getAttribute(_392);_394=type&&_385(type);_395=_394&&_394.cls;_396=(_395&&(_395._noScript||_395.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_394){throw new Error("Could not load class '"+type);}var _398={};if(args.defaults){d._mixin(_398,args.defaults);}if(obj.inherited){d._mixin(_398,obj.inherited);}if(_397){var _399=node.getAttribute(_393+"props");if(_399&&_399.length){try{_399=d.fromJson.call(args.propsThis,"{"+_399+"}");d._mixin(_398,_399);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_399+"'");}}var _39a=node.getAttribute(_393+"attach-point");if(_39a){_398.dojoAttachPoint=_39a;}var _39b=node.getAttribute(_393+"attach-event");if(_39b){_398.dojoAttachEvent=_39b;}dojo.mixin(_398,_390);}else{var _39c=node.attributes;for(var name in _394.params){var item=name in _390?{value:_390[name],specified:true}:_39c.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _39d=item.value;switch(name){case "class":_39d="className" in _390?_390.className:node.className;break;case "style":_39d="style" in _390?_390.style:(node.style&&node.style.cssText);}var _39e=_394.params[name];if(typeof _39d=="string"){_398[name]=_37f(_39d,_39e);}else{_398[name]=_39d;}}}var _39f=[],_3a0=[];d.forEach(_396,function(_3a1){node.removeChild(_3a1);var _3a2=(_3a1.getAttribute(_393+"event")||_3a1.getAttribute("event")),type=_3a1.getAttribute("type"),nf=d.parser._functionFromScript(_3a1,_393);if(_3a2){if(type=="dojo/connect"){_39f.push({event:_3a2,func:nf});}else{_398[_3a2]=nf;}}else{_3a0.push(nf);}});var _3a3=_395.markupFactory||_395.prototype&&_395.prototype.markupFactory;var _3a4=_3a3?_3a3(_398,node,_395):new _395(_398,node);_391.push(_3a4);var _3a5=(node.getAttribute(_393+"id")||node.getAttribute("jsId"));if(_3a5){d.setObject(_3a5,_3a4);}d.forEach(_39f,function(_3a6){d.connect(_3a4,_3a6.event,null,_3a6.func);});d.forEach(_3a0,function(func){func.call(_3a4);});});if(!_390._started){d.forEach(_391,function(_3a7){if(!args.noStart&&_3a7&&dojo.isFunction(_3a7.startup)&&!_3a7._started&&(!_3a7.getParent||!_3a7.getParent())){_3a7.startup();}});}return _391;};this.parse=function(_3a8,args){var root;if(!args&&_3a8&&_3a8.rootNode){args=_3a8;root=args.rootNode;}else{root=_3a8;}root=root?dojo.byId(root):dojo.body();args=args||{};var _3a9=(args.scope||d._scopeName)+"Type",_3aa="data-"+(args.scope||d._scopeName)+"-";function scan(_3ab,list){var _3ac=dojo.clone(_3ab.inherited);dojo.forEach(["dir","lang"],function(name){var val=_3ab.node.getAttribute(name);if(val){_3ac[name]=val;}});var _3ad=_3ab.clsInfo&&!_3ab.clsInfo.cls.prototype._noScript?_3ab.scripts:null;var _3ae=(!_3ab.clsInfo||!_3ab.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _3af=_3ab.node.firstChild;_3af;_3af=_3af.nextSibling){if(_3af.nodeType==1){var type,_3b0=_3ae&&_3af.getAttribute(_3aa+"type");if(_3b0){type=_3b0;}else{type=_3ae&&_3af.getAttribute(_3a9);}var _3b1=_3b0==type;if(type){var _3b2={"type":type,fastpath:_3b1,clsInfo:_385(type,_3b1),node:_3af,scripts:[],inherited:_3ac};list.push(_3b2);scan(_3b2,list);}else{if(_3ad&&_3af.nodeName.toLowerCase()=="script"){type=_3af.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_3ad.push(_3af);}}else{if(_3ae){scan({node:_3af,inherited:_3ac},list);}}}}}};var _3b3={};if(args&&args.inherited){for(var key in args.inherited){if(args.inherited[key]){_3b3[key]=args.inherited[key];}}}var list=[];scan({node:root,inherited:_3b3},list);var _3b4=args&&args.template?{template:true}:null;return this.instantiate(list,_3b4,args);};}();(function(){var _3b5=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_3b5);}else{dojo._loaders.unshift(_3b5);}})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_3b6){if(_3b6){dojo.mixin(this,_3b6);}},get:function(name){return this[name];},set:function(name,_3b7){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _3b8=this[name];this[name]=_3b7;if(this._watchCallbacks){this._watchCallbacks(name,_3b8,_3b7);}return this;},watch:function(name,_3b9){var _3ba=this._watchCallbacks;if(!_3ba){var self=this;_3ba=this._watchCallbacks=function(name,_3bb,_3bc,_3bd){var _3be=function(_3bf){if(_3bf){_3bf=_3bf.slice();for(var i=0,l=_3bf.length;i<l;i++){try{_3bf[i].call(self,name,_3bb,_3bc);}catch(e){console.error(e);}}}};_3be(_3ba["_"+name]);if(!_3bd){_3be(_3ba["*"]);}};}if(!_3b9&&typeof name==="function"){_3b9=name;name="*";}else{name="_"+name;}var _3c0=_3ba[name];if(typeof _3c0!=="object"){_3c0=_3ba[name]=[];}_3c0.push(_3b9);return {unwatch:function(){_3c0.splice(dojo.indexOf(_3c0,_3b9),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_3c1,_3c2){this.create(_3c1,_3c2);},create:function(_3c3,_3c4){this.srcNodeRef=dojo.byId(_3c4);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_3c3){this.params=_3c3;dojo._mixin(this,_3c3);}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 _3c5=this.srcNodeRef;if(_3c5&&_3c5.parentNode&&this.domNode!==_3c5){_3c5.parentNode.replaceChild(this.domNode,_3c5);}}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 _3c6=function(attr,_3c7){if((_3c7.params&&attr in _3c7.params)||_3c7[attr]){_3c7.set(attr,_3c7[attr]);}};for(var attr in this.attributeMap){_3c6(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_3c6(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_3c8,_3c9=ctor.prototype;for(var _3ca in _3c9){if(dojo.isFunction(_3c9[_3ca])&&(_3c8=_3ca.match(/^_set([a-zA-Z]*)Attr$/))&&_3c8[1]){r.push(_3c8[1].charAt(0).toLowerCase()+_3c8[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _3cb=this.baseClass.split(" ");if(!this.isLeftToRight()){_3cb=_3cb.concat(dojo.map(_3cb,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_3cb);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_3cc){this._beingDestroyed=true;this.destroyDescendants(_3cc);this.destroy(_3cc);},destroy:function(_3cd){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_3ce){dfe(_3ce,d.disconnect);});dfe(this._subscribes,function(_3cf){dun(_3cf);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_3cd);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_3d0){if(this.bgIframe){this.bgIframe.destroy(_3d0);delete this.bgIframe;}if(this.domNode){if(_3d0){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_3d0){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_3d1){dojo.forEach(this.getChildren(),function(_3d2){if(_3d2.destroyRecursive){_3d2.destroyRecursive(_3d1);}});},uninitialize:function(){return false;},_setClassAttr:function(_3d3){var _3d4=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_3d4,_3d3,this["class"]);this._set("class",_3d3);},_setStyleAttr:function(_3d5){var _3d6=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_3d5)){dojo.style(_3d6,_3d5);}else{if(_3d6.style.cssText){_3d6.style.cssText+="; "+_3d5;}else{_3d6.style.cssText=_3d5;}}this._set("style",_3d5);},_attrToDom:function(attr,_3d7){var _3d8=this.attributeMap[attr];dojo.forEach(dojo.isArray(_3d8)?_3d8:[_3d8],function(_3d9){var _3da=this[_3d9.node||_3d9||"domNode"];var type=_3d9.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_3d7)){_3d7=dojo.hitch(this,_3d7);}var _3db=_3d9.attribute?_3d9.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_3da,_3db,_3d7);break;case "innerText":_3da.innerHTML="";_3da.appendChild(dojo.doc.createTextNode(_3d7));break;case "innerHTML":_3da.innerHTML=_3d7;break;case "class":dojo.replaceClass(_3da,_3d7,this[attr]);break;}},this);},get:function(name){var _3dc=this._getAttrNames(name);return this[_3dc.g]?this[_3dc.g]():this[name];},set:function(name,_3dd){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _3de=this._getAttrNames(name);if(this[_3de.s]){var _3df=this[_3de.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_3dd);}this._set(name,_3dd);}return _3df||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_3e0){var _3e1=this[name];this[name]=_3e0;if(this._watchCallbacks&&this._created&&_3e0!==_3e1){this._watchCallbacks(name,_3e1,_3e0);}},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):[];},connect:function(obj,_3e2,_3e3){var _3e4=[dojo._connect(obj,_3e2,this,_3e3)];this._connects.push(_3e4);return _3e4;},disconnect:function(_3e5){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_3e5){dojo.forEach(_3e5,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_3e6,_3e7){var _3e8=dojo.subscribe(_3e6,this,_3e7);this._subscribes.push(_3e8);return _3e8;},unsubscribe:function(_3e9){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_3e9){dojo.unsubscribe(_3e9);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_3ea,_3eb){if(_3ea.declaredClass&&_3ea.addChild){_3ea.addChild(this,_3eb);}else{dojo.place(this.domNode,_3ea,_3eb);}return this;},defer:function(fcn,_3ec){var _3ed=setTimeout(dojo.hitch(this,function(){_3ed=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_3ec||0);return {remove:function(){if(_3ed){clearTimeout(_3ed);_3ed=null;}return null;}};}});})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_3ee,_3ef){if(_3ee&&dojo.isFunction(_3ee._onConnect)){_3ee._onConnect(_3ef);}});dijit._connectOnUseEventHandler=function(_3f0){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _3f1=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_3f1);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_3f1);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_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,create:function(_3f2,_3f3){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];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_3f4){if(_3f4 in this._deferredConnects){var _3f5=this[this._deferredConnects[_3f4]||"domNode"];this.connect(_3f5,_3f4.toLowerCase(),_3f4);delete this._deferredConnects[_3f4];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_3f6){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_3f6);},attr:function(name,_3f7){if(dojo.config.isDebug){var _3f8=arguments.callee._ach||(arguments.callee._ach={}),_3f9=(arguments.callee.caller||"unknown caller").toString();if(!_3f8[_3f9]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_3f9,"","2.0");_3f8[_3f9]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_3fa,_3fb){var d=dojo,dc=d._connect,_3fc=this.inherited(arguments,[obj,_3fa=="ondijitclick"?"onclick":_3fa,_3fb]);if(_3fa=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_3fb);_3fc.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;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _3fc;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);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(_3fd,map,_3fe,_3ff){_3ff=_3ff||dojo.global;_3fe=_3fe?dojo.hitch(_3ff,_3fe):function(v){return v;};return _3fd.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_400,key,_401){var _402=dojo.getObject(key,false,map);if(_401){_402=dojo.getObject(_401,false,_3ff).call(_3ff,_402,key);}return _3fe(_402,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.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var _403={};dojo.cache=function(_404,url,_405){if(typeof _404=="string"){var _406=dojo.moduleUrl(_404,url);}else{_406=_404;_405=url;}var key=_406.toString();var val=_405;if(_405!=undefined&&!dojo.isString(_405)){val=("value" in _405?_405.value:undefined);}var _407=_405&&_405.sanitize?true:false;if(typeof val=="string"){val=_403[key]=_407?dojo.cache._sanitize(val):val;}else{if(val===null){delete _403[key];}else{if(!(key in _403)){val=dojo._getText(key);_403[key]=_407?dojo.cache._sanitize(val):val;}val=_403[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _408=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_408){val=_408[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=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _409=this.declaredClass,_40a=this;return dojo.string.substitute(tmpl,this,function(_40b,key){if(key.charAt(0)=="!"){_40b=dojo.getObject(key.substr(1),false,_40a);}if(typeof _40b=="undefined"){throw new Error(_409+" template:"+key);}if(_40b==null){return "";}return key.charAt(0)=="!"?_40b:_40b.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _40c=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_40c)){node=dojo._toDom(this._stringRepl(_40c));if(node.nodeType!=1){throw new Error("Invalid template: "+_40c);}}else{node=_40c.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_40d){var dest=this.containerNode;if(_40d&&dest){while(_40d.hasChildNodes()){dest.appendChild(_40d.firstChild);}}},_attachTemplateNodes:function(_40e,_40f){_40f=_40f||function(n,p){return n.getAttribute(p);};var _410=dojo.isArray(_40e)?_40e:(_40e.all||_40e.getElementsByTagName("*"));var x=dojo.isArray(_40e)?0:-1;for(;x<_410.length;x++){var _411=(x==-1)?_40e:_410[x];if(this.widgetsInTemplate&&(_40f(_411,"dojoType")||_40f(_411,"data-dojo-type"))){continue;}var _412=_40f(_411,"dojoAttachPoint")||_40f(_411,"data-dojo-attach-point");if(_412){var _413,_414=_412.split(/\s*,\s*/);while((_413=_414.shift())){if(dojo.isArray(this[_413])){this[_413].push(_411);}else{this[_413]=_411;}this._attachPoints.push(_413);}}var _415=_40f(_411,"dojoAttachEvent")||_40f(_411,"data-dojo-attach-event");if(_415){var _416,_417=_415.split(/\s*,\s*/);var trim=dojo.trim;while((_416=_417.shift())){if(_416){var _418=null;if(_416.indexOf(":")!=-1){var _419=_416.split(":");_416=trim(_419[0]);_418=trim(_419[1]);}else{_416=trim(_416);}if(!_418){_418=_416;}this._attachEvents.push(this.connect(_411,_416,_418));}}}var role=_40f(_411,"waiRole");if(role){dijit.setWaiRole(_411,role);}var _41a=_40f(_411,"waiState");if(_41a){dojo.forEach(_41a.split(/\s*,\s*/),function(_41b){if(_41b.indexOf("-")!=-1){var pair=_41b.split("-");dijit.setWaiState(_411,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(_41c){delete this[_41c];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_41d,_41e,_41f){var _420=dijit._Templated._templateCache;var key=_41e||_41d;var _421=_420[key];if(_421){try{if(!_421.ownerDocument||_421.ownerDocument==dojo.doc){return _421;}}catch(e){}dojo.destroy(_421);}if(!_41e){_41e=dojo.cache(_41d,{sanitize:true});}_41e=dojo.string.trim(_41e);if(_41f||_41e.match(/\$\{([^\}]+)\}/g)){return (_420[key]=_41e);}else{var node=dojo._toDom(_41e);if(node.nodeType!=1){throw new Error("Invalid template: "+_41e);}return (_420[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _422=dijit._Templated._templateCache;for(var key in _422){var _423=_422[key];if(typeof _423=="object"){dojo.destroy(_423);}delete _422[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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(_424,_425){var _426=this.containerNode;if(_425&&typeof _425=="number"){var _427=this.getChildren();if(_427&&_427.length>=_425){_426=_427[_425-1].domNode;_425="after";}}dojo.place(_424.domNode,_426,_425);if(this._started&&!_424._started){_424.startup();}},removeChild:function(_428){if(typeof _428=="number"){_428=this.getChildren()[_428];}if(_428){var node=_428.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_429){dojo.forEach(this.getChildren(),function(_42a){_42a.destroyRecursive(_429);});},_getSiblingOfChild:function(_42b,dir){var node=_42b.domNode,_42c=(dir>0?"nextSibling":"previousSibling");do{node=node[_42c];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_42d){return dojo.indexOf(this.getChildren(),_42d);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_42e){_42e.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _42f=dijit.getEnclosingWidget(this.domNode.parentNode);return _42f&&_42f.isContainer?_42f:null;},_getSibling:function(_430){var node=this.domNode;do{node=node[_430+"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.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,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _431=this.getParent&&this.getParent();if(!(_431&&_431.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_432,_433){var node=this.domNode;if(_432){dojo.marginBox(node,_432);if(_432.t){node.style.top=_432.t+"px";}if(_432.l){node.style.left=_432.l+"px";}}var mb=_433||{};dojo.mixin(mb,_432||{});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(_434){var cls=this.baseClass+"-child "+(_434.baseClass?this.baseClass+"-"+_434.baseClass:"");dojo.addClass(_434.domNode,cls);},addChild:function(_435,_436){this.inherited(arguments);if(this._started){this._setupChild(_435);}},removeChild:function(_437){var cls=this.baseClass+"-child"+(_437.baseClass?" "+this.baseClass+"-"+_437.baseClass:"");dojo.removeClass(_437.domNode,cls);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 _438=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_439,dim){var _43a=_439.resize?_439.resize(dim):dojo.marginBox(_439.domNode,dim);if(_43a){dojo.mixin(_439,_43a);}else{dojo.mixin(_439,dojo.marginBox(_439.domNode));dojo.mixin(_439,dim);}};dijit.layout.layoutChildren=function(_43b,dim,_43c,_43d,_43e){dim=dojo.mixin({},dim);dojo.addClass(_43b,"dijitLayoutContainer");_43c=dojo.filter(_43c,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_43c,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_43c,function(_43f){var elm=_43f.domNode,pos=(_43f.region||_43f.layoutAlign);var _440=elm.style;_440.left=dim.l+"px";_440.top=dim.t+"px";_440.position="absolute";dojo.addClass(elm,"dijitAlign"+_438(pos));var _441={};if(_43d&&_43d==_43f.id){_441[_43f.region=="top"||_43f.region=="bottom"?"h":"w"]=_43e;}if(pos=="top"||pos=="bottom"){_441.w=dim.w;size(_43f,_441);dim.h-=_43f.h;if(pos=="top"){dim.t+=_43f.h;}else{_440.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_441.h=dim.h;size(_43f,_441);dim.w-=_43f.w;if(pos=="left"){dim.l+=_43f.w;}else{_440.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_43f,dim);}}}});};})();}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_442){if(!this.disabled){switch(_442.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _443=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_443);});break;}}},_setStateClass:function(){var _444=this.baseClass.split(" ");function _445(_446){_444=_444.concat(dojo.map(_444,function(c){return c+_446;}),"dijit"+_446);};if(!this.isLeftToRight()){_445("Rtl");}if(this.checked){_445("Checked");}if(this.state){_445(this.state);}if(this.selected){_445("Selected");}if(this.disabled){_445("Disabled");}else{if(this.readOnly){_445("ReadOnly");}else{if(this.active){_445("Active");}else{if(this.hovering){_445("Hover");}}}}if(this._focused){_445("Focused");}var tn=this.stateNode||this.domNode,_447={};dojo.forEach(tn.className.split(" "),function(c){_447[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _447[c];});}dojo.forEach(_444,function(c){_447[c]=true;});var _448=[];for(var c in _447){_448.push(c);}tn.className=_448.join(" ");this._stateClasses=_444;},_trackMouseState:function(node,_449){var _44a=false,_44b=false,_44c=false;var self=this,cn=dojo.hitch(this,"connect",node);function _44d(){var _44e=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_449+"Hover",_44a&&!_44b&&!_44e);dojo.toggleClass(node,_449+"Active",_44b&&!_44e);dojo.toggleClass(node,_449+"Focused",_44c&&!_44e);};cn("onmouseenter",function(){_44a=true;_44d();});cn("onmouseleave",function(){_44a=false;_44b=false;_44d();});cn("onmousedown",function(){_44b=true;_44d();});cn("onmouseup",function(){_44b=false;_44d();});cn("onfocus",function(){_44c=true;_44d();});cn("onblur",function(){_44c=false;_44d();});this.watch("disabled",_44d);this.watch("readOnly",_44d);}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_44f){this._set("disabled",_44f);dojo.attr(this.focusNode,"disabled",_44f);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_44f);}dijit.setWaiState(this.focusNode,"disabled",_44f);if(_44f){this._set("hovering",false);this._set("active",false);var _450="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_450)?_450:[_450],function(_451){var node=this[_451];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_452){dojo.deprecated("setDisabled("+_452+") is deprecated. Use set('disabled',"+_452+") instead.","","2.0");this.set("disabled",_452);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_453){},_onChangeActive:false,_handleOnChange:function(_454,_455){if(this._lastValueReported==undefined&&(_455===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_454;}this._pendingOnChange=this._pendingOnChange||(typeof _454!=typeof this._lastValueReported)||(this.compare(_454,this._lastValueReported)!=0);if((this.intermediateChanges||_455||_455===undefined)&&this._pendingOnChange){this._lastValueReported=_454;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_454);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_456){dojo.deprecated("dijit.form._FormWidget:setValue("+_456+") is deprecated.  Use set('value',"+_456+") instead.","","2.0");this.set("value",_456);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _457=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_457);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_458){dojo.attr(this.focusNode,"readOnly",_458);dijit.setWaiState(this.focusNode,"readonly",_458);this._set("readOnly",_458);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_459,_45a){this._handleOnChange(_459,_45a);},_handleOnChange:function(_45b,_45c){this._set("value",_45b);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _45d=this.domNode;var _45e=_45d.parentNode;var _45f=_45d.firstChild||_45d;var _460=_45f.style.filter;var _461=this;while(_45e&&_45e.clientHeight==0){(function ping(){var _462=_461.connect(_45e,"onscroll",function(e){_461.disconnect(_462);_45f.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_45f.style.filter=_460;},0);});})();_45e=_45e.parentNode;}}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}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 _463=this;dojo.mixin(_463,args);_463.node=args.node;_463._showArgs=dojo.mixin({},args);_463._showArgs.node=_463.node;_463._showArgs.duration=_463.showDuration;_463.showAnim=_463.showFunc(_463._showArgs);_463._hideArgs=dojo.mixin({},args);_463._hideArgs.node=_463.node;_463._hideArgs.duration=_463.hideDuration;_463.hideAnim=_463.hideFunc(_463._hideArgs);dojo.connect(_463.showAnim,"beforeBegin",dojo.hitch(_463.hideAnim,"stop",true));dojo.connect(_463.hideAnim,"beforeBegin",dojo.hitch(_463.showAnim,"stop",true));},show:function(_464){return this.showAnim.play(_464||0);},hide:function(_465){return this.hideAnim.play(_465||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_466={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _467=function(_468){this._index=-1;this._animations=_468||[];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(_467,{_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(_469,_46a){if(!this._current){this._current=this._animations[this._index=0];}if(!_46a&&this._current.status()=="playing"){return this;}var _46b=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_46c=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_46d=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_46b);d.disconnect(_46c);d.disconnect(_46d);});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(_46e,_46f){this.pause();var _470=this.duration*_46e;this._current=null;d.some(this._animations,function(a){if(a.duration<=_470){this._current=a;return true;}_470-=a.duration;return false;});if(this._current){this._current.gotoPercent(_470/this._current.duration,_46f);}return this;},stop:function(_471){if(this._current){if(_471){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(_467,_466);dojo.fx.chain=function(_472){return new _467(_472);};var _473=function(_474){this._animations=_474||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_474,function(a){var _475=a.duration;if(a.delay){_475+=a.delay;}if(this.duration<_475){this.duration=_475;}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(_473,{_doAction:function(_476,args){d.forEach(this._animations,function(a){a[_476].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_477,args){var t=this._pseudoAnimation;t[_477].apply(t,args);},play:function(_478,_479){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(_47a,_47b){var ms=this.duration*_47a;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_47b);});this._call("gotoPercent",arguments);return this;},stop:function(_47c){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(_473,_466);dojo.fx.combine=function(_47d){return new _473(_47d);};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 _47e=d.style(node,"height");return Math.max(_47e,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["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_47f){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_47f&&_47f.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_480){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_480);};dojo.regexp.group=function(_481,_482){return "("+(_482?"?:":"")+_481+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_483,_484){var c=document.cookie;if(arguments.length==1){var _485=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _485?decodeURIComponent(_485[1]):undefined;}else{_484=_484||{};var exp=_484.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_484.expires=d;}if(exp&&exp.toUTCString){_484.expires=exp.toUTCString();}_483=encodeURIComponent(_483);var _486=name+"="+_483,_487;for(_487 in _484){_486+="; "+_487;var _488=_484[_487];if(_488!==true){_486+="="+_488;}}document.cookie=_486;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_489){var _48a=_489.region;if(_48a){this.inherited(arguments);dojo.addClass(_489.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_48a=="leading"){_48a=ltr?"left":"right";}if(_48a=="trailing"){_48a=ltr?"right":"left";}if(_48a!="center"&&(_489.splitter||this.gutters)&&!_489._splitterWidget){var _48b=dojo.getObject(_489.splitter?this._splitterClass:"dijit.layout._Gutter");var _48c=new _48b({id:_489.id+"_splitter",container:this,child:_489,region:_48a,live:this.liveSplitters});_48c.isSplitter=true;_489._splitterWidget=_48c;dojo.place(_48c.domNode,_489.domNode,"after");_48c.startup();}_489.region=_48a;}},layout:function(){this._layoutChildren();},addChild:function(_48d,_48e){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_48f){var _490=_48f.region;var _491=_48f._splitterWidget;if(_491){_491.destroy();delete _48f._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}dojo.removeClass(_48f.domNode,this.baseClass+"Pane");dojo.style(_48f.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});dojo.style(_48f.domNode,_490=="top"||_490=="bottom"?"width":"height","auto");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_492){return !_492.isSplitter;});},getSplitter:function(_493){return dojo.filter(this.getChildren(),function(_494){return _494.region==_493;})[0]._splitterWidget;},resize:function(_495,_496){if(!this.cs||!this.pe){var node=this.domNode;this.cs=dojo.getComputedStyle(node);this.pe=dojo._getPadExtents(node,this.cs);this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);dojo.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_497,_498){if(!this._borderBox||!this._borderBox.h){return;}var _499=dojo.map(this.getChildren(),function(_49a,idx){return {pane:_49a,weight:[_49a.region=="center"?Infinity:0,_49a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_49a.region)?1:-1),idx]};},this);_499.sort(function(a,b){var aw=a.weight,bw=b.weight;for(var i=0;i<aw.length;i++){if(aw[i]!=bw[i]){return aw[i]-bw[i];}}return 0;});var _49b=[];dojo.forEach(_499,function(_49c){var pane=_49c.pane;_49b.push(pane);if(pane._splitterWidget){_49b.push(pane._splitterWidget);}});var dim={l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h};dijit.layout.layoutChildren(this.domNode,dim,_49b,_497,_498);},destroyRecursive:function(){dojo.forEach(this.getChildren(),function(_49d){var _49e=_49d._splitterWidget;if(_49e){_49e.destroy();}delete _49d._splitterWidget;});this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse\" tabIndex=\"0\" role=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region;},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var _49f=dojo.cookie(this._cookieName);if(_49f){this.child.domNode.style[this.horizontal?"height":"width"]=_49f;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_4a0=dojo.marginBox(this.child.domNode)[dim],_4a1=dojo.filter(this.container.getChildren(),function(_4a2){return _4a2.region=="center";})[0],_4a3=dojo.marginBox(_4a1.domNode)[dim];return Math.min(this.child.maxSize,_4a0+_4a3);},_startDrag:function(e){if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}dojo.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){dojo.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake){dojo.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");}var _4a4=this._factor,_4a5=this.horizontal,axis=_4a5?"pageY":"pageX",_4a6=e[axis],_4a7=this.domNode.style,dim=_4a5?"h":"w",_4a8=dojo.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_4a9=this.region,_4aa=_4a9=="top"||_4a9=="bottom"?"top":"left",_4ab=parseInt(_4a7[_4aa],10),_4ac=this._resize,_4ad=dojo.hitch(this.container,"_layoutChildren",this.child.id),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_4ae){var _4af=e[axis]-_4a6,_4b0=_4a4*_4af+_4a8,_4b1=Math.max(Math.min(_4b0,max),min);if(_4ac||_4ae){_4ad(_4b1);}_4a7[_4aa]=_4af+_4ab+_4a4*(_4b1-_4b0)+"px";}),dojo.connect(de,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_onMouse:function(e){var o=(e.type=="mouseover"||e.type=="mouseenter");dojo.toggleClass(this.domNode,"dijitSplitterHover",o);dojo.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",o);},_stopDrag:function(e){try{if(this.cover){dojo.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){dojo.destroy(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){this._resize=true;var _4b2=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _4b2?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _4b2?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _4b3=dojo._getMarginSize(this.child.domNode)[_4b2?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_4b3,this._computeMaxSize()),this.child.minSize));dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" role=\"presentation\"></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _4b4=this.dropDown,_4b5=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_4b5){if(dojo.hasClass(t,"dijitPopup")){_4b5=true;}else{t=t.parentNode;}}if(_4b5){t=e.target;if(_4b4.onItemClick){var _4b6;while(t&&!(_4b6=dijit.byNode(t))){t=t.parentNode;}if(_4b6&&_4b6.onClick&&_4b6.getParent){_4b6.getParent().onItemClick(_4b6,e);}}return;}}}if(this._opened&&_4b4.focus&&_4b4.autoFocus!==false){window.setTimeout(dojo.hitch(_4b4,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _4b7={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_4b7+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_4b8=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_4b8.tagName||"").toLowerCase()!=="input"||(_4b8.type&&_4b8.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _4b9=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_4b9);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_4ba){_4ba();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _4bb=this.dropDown,_4bc=_4bb.domNode,_4bd=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_4bc.style.width){this._explicitDDWidth=true;}if(_4bc.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _4be={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_4be.width="";}if(!this._explicitDDHeight){_4be.height="";}dojo.style(_4bc,_4be);var _4bf=this.maxHeight;if(_4bf==-1){var _4c0=dojo.window.getBox(),_4c1=dojo.position(_4bd,false);_4bf=Math.floor(Math.max(_4c1.y,_4c0.h-(_4c1.y+_4c1.h)));}if(_4bb.startup&&!_4bb._started){_4bb.startup();}dijit.popup.moveOffScreen(_4bb);var mb=dojo._getMarginSize(_4bc);var _4c2=(_4bf&&mb.h>_4bf);dojo.style(_4bc,{overflowX:"hidden",overflowY:_4c2?"auto":"hidden"});if(_4c2){mb.h=_4bf;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_4bd.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_4bd.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_4bb.resize)){_4bb.resize(mb);}else{dojo.marginBox(_4bc,mb);}}var _4c3=dijit.popup.open({parent:this,popup:_4bb,around:_4bd,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _4c3;},closeDropDown:function(_4c4){if(this._opened){if(_4c4){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _4c5=dijit.byNode(node);if(_4c5&&typeof _4c5._onSubmit=="function"){_4c5._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_4c6){if(_4c6&&(!this.params||!("label" in this.params))){this.set("label",_4c6.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_4c7){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_4c7);},_setLabelAttr:function(_4c8){this._set("label",_4c8);this.containerNode.innerHTML=_4c8;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _4c9=this.iconClass||"dijitNoIcon",_4ca=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_4ca,_4c9);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _4cb=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_4cb[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _4cc=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_4cc);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _4cd=this.dropDown;return (!!_4cd&&(!_4cd.href||_4cd.isLoaded));},loadDropDown:function(){var _4ce=this.dropDown;if(!_4ce){return;}if(!this.isLoaded()){var _4cf=dojo.connect(_4ce,"onLoad",this,function(){dojo.disconnect(_4cf);this.openDropDown();});_4ce.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_4d0){if(!this.disabled){dijit.focus(_4d0=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_4d1,_4d2){this._set("checked",_4d1);dojo.attr(this.focusNode||this.domNode,"checked",_4d1);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_4d1);this._handleOnChange(_4d1,_4d2);},setChecked:function(_4d3){dojo.deprecated("setChecked("+_4d3+") is deprecated. Use set('checked',"+_4d3+") instead.","","2.0");this.set("checked",_4d3);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_4d4,_4d5,_4d6){_4d6=dojo.i18n.normalizeLocale(_4d6);var _4d7=_4d6.split("-");var _4d8=[_4d4,"nls",_4d5].join(".");var _4d9=dojo._loadedModules[_4d8];if(_4d9){var _4da;for(var i=_4d7.length;i>0;i--){var loc=_4d7.slice(0,i).join("_");if(_4d9[loc]){_4da=_4d9[loc];break;}}if(!_4da){_4da=_4d9.ROOT;}if(_4da){var _4db=function(){};_4db.prototype=_4da;return new _4db();}}throw new Error("Bundle not found: "+_4d5+" in "+_4d4+" , locale="+_4d6);};dojo.i18n.normalizeLocale=function(_4dc){var _4dd=(_4dc?_4dc:dojo.locale).toLowerCase();if(_4dd=="root"){_4dd="ROOT";}return _4dd;};dojo.i18n._requireLocalization=function(_4de,_4df,_4e0,_4e1){var _4e2=dojo.i18n.normalizeLocale(_4e0);var _4e3=[_4de,"nls",_4df].join(".");var _4e4="";if(_4e1){var _4e5=_4e1.split(",");for(var i=0;i<_4e5.length;i++){if(_4e2["indexOf"](_4e5[i])==0){if(_4e5[i].length>_4e4.length){_4e4=_4e5[i];}}}if(!_4e4){_4e4="ROOT";}}var _4e6=_4e1?_4e4:_4e2;var _4e7=dojo._loadedModules[_4e3];var _4e8=null;if(_4e7){if(dojo.config.localizationComplete&&_4e7._built){return;}var _4e9=_4e6.replace(/-/g,"_");var _4ea=_4e3+"."+_4e9;_4e8=dojo._loadedModules[_4ea];}if(!_4e8){_4e7=dojo["provide"](_4e3);var syms=dojo._getModuleSymbols(_4de);var _4eb=syms.concat("nls").join("/");var _4ec;dojo.i18n._searchLocalePath(_4e6,_4e1,function(loc){var _4ed=loc.replace(/-/g,"_");var _4ee=_4e3+"."+_4ed;var _4ef=false;if(!dojo._loadedModules[_4ee]){dojo["provide"](_4ee);var _4f0=[_4eb];if(loc!="ROOT"){_4f0.push(loc);}_4f0.push(_4df);var _4f1=_4f0.join("/")+".js";_4ef=dojo._loadPath(_4f1,null,function(hash){hash=hash.root||hash;var _4f2=function(){};_4f2.prototype=_4ec;_4e7[_4ed]=new _4f2();for(var j in hash){_4e7[_4ed][j]=hash[j];}});}else{_4ef=true;}if(_4ef&&_4e7[_4ed]){_4ec=_4e7[_4ed];}else{_4e7[_4ed]=_4ec;}if(_4e1){return true;}});}if(_4e1&&_4e2!=_4e4){_4e7[_4e2.replace(/-/g,"_")]=_4e7[_4e4.replace(/-/g,"_")];}};(function(){var _4f3=dojo.config.extraLocale;if(_4f3){if(!_4f3 instanceof Array){_4f3=[_4f3];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_4f4,_4f5){req(m,b,_4f4,_4f5);if(_4f4){return;}for(var i=0;i<_4f3.length;i++){req(m,b,_4f3[i],_4f5);}};}})();dojo.i18n._searchLocalePath=function(_4f6,down,_4f7){_4f6=dojo.i18n.normalizeLocale(_4f6);var _4f8=_4f6.split("-");var _4f9=[];for(var i=_4f8.length;i>0;i--){_4f9.push(_4f8.slice(0,i).join("-"));}_4f9.push(false);if(down){_4f9.reverse();}for(var j=_4f9.length-1;j>=0;j--){var loc=_4f9[j]||"ROOT";var stop=_4f7(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_4fa,_4fb){function _4fc(_4fd){_4fd=dojo.i18n.normalizeLocale(_4fd);dojo.i18n._searchLocalePath(_4fd,true,function(loc){for(var i=0;i<_4fb.length;i++){if(_4fb[i]==loc){dojo["require"](_4fa+"_"+loc);return true;}}return false;});};_4fc();var _4fe=dojo.config.extraLocale||[];for(var i=0;i<_4fe.length;i++){_4fc(_4fe[i]);}};}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={};},buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(dijit.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_4ff){var cls=dojo.getObject(this.buttonWidget);var _500=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});dijit.setWaiState(_500.focusNode,"selected","false");var _501=["title","showTitle","iconClass","closable","tooltip"],_502=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_501,function(_503,idx){return page.watch(_503,function(name,_504,_505){_500.set(_502[idx],_505);});});this.pane2connects[page.id]=[this.connect(_500,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_500,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_500,_4ff);this.pane2button[page.id]=_500;page.controlButton=_500;if(!this._currentChild){_500.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_500.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2connects[page.id],dojo.hitch(this,"disconnect"));delete this.pane2connects[page.id];dojo.forEach(this.pane2watches[page.id],function(w){w.unwatch();});delete this.pane2watches[page.id];var _506=this.pane2button[page.id];if(_506){this.removeChild(_506);delete this.pane2button[page.id];_506.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _507=this.pane2button[this._currentChild.id];_507.set("checked",false);dijit.setWaiState(_507.focusNode,"selected","false");_507.focusNode.setAttribute("tabIndex","-1");}var _508=this.pane2button[page.id];_508.set("checked",true);dijit.setWaiState(_508.focusNode,"selected","true");this._currentChild=page;_508.focusNode.setAttribute("tabIndex","0");var _509=dijit.byId(this.containerId);dijit.setWaiState(_509.containerNode,"labelledby",_508.id);},onButtonClick:function(page){var _50a=dijit.byId(this.containerId);_50a.selectChild(page);},onCloseButtonClick:function(page){var _50b=dijit.byId(this.containerId);_50b.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_50c){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_50c=!_50c;}var _50d=this.getChildren();var _50e=dojo.indexOf(_50d,this.pane2button[this._currentChild.id]);var _50f=_50c?1:_50d.length-1;return _50d[(_50e+_50f)%_50d.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _510=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_510=false;}break;case k.PAGE_UP:if(e.ctrlKey){_510=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_510=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_510=true;}break;case k.HOME:case k.END:var _511=this.getChildren();if(_511&&_511.length){_511[e.charOrCode==k.HOME?0:_511.length-1].onClick();}dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_510!==null){this.adjacent(_510).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",buildRendering:function(evt){this.inherited(arguments);dijit.setWaiRole((this.focusNode||this.domNode),"tab");},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _512=this.getChildren();dojo.forEach(_512,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_512,function(_513){if(_513.selected){this.selectedChildWidget=_513;}return _513.selected;},this);}var _514=this.selectedChildWidget;if(!_514&&_512[0]){_514=this.selectedChildWidget=_512[0];_514.selected=true;}dojo.publish(this.id+"-startup",[{children:_512,selected:_514}]);this.inherited(arguments);},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=true;var _515=this.selectedChildWidget;if(_515){this._showChild(_515);}}this.inherited(arguments);},_setupChild:function(_516){this.inherited(arguments);dojo.replaceClass(_516.domNode,"dijitHidden","dijitVisible");_516.domNode.title="";},addChild:function(_517,_518){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_517,_518]);this.layout();if(!this.selectedChildWidget){this.selectChild(_517);}}},removeChild:function(page){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _519=this.getChildren();if(_519.length){this.selectChild(_519[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_51a){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_51a);this._set("selectedChildWidget",page);dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}return d;},_transition:function(_51b,_51c,_51d){if(_51c){this._hideChild(_51c);}var d=this._showChild(_51b);if(_51b.resize){if(this.doLayout){_51b.resize(this._containerContentBox||this._contentBox);}else{_51b.resize();}}return d;},_adjacent:function(_51e){var _51f=this.getChildren();var _520=dojo.indexOf(_51f,this.selectedChildWidget);_520+=_51e?1:_51f.length-1;return _51f[_520%_51f.length];},forward:function(){return this.selectChild(this._adjacent(true),true);},back:function(){return this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _521=this.getChildren();page.isFirstChild=(page==_521[0]);page.isLastChild=(page==_521[_521.length-1]);page._set("selected",true);dojo.replaceClass(page.domNode,"dijitVisible","dijitHidden");return page._onShow()||true;},_hideChild:function(page){page._set("selected",false);dojo.replaceClass(page.domNode,"dijitHidden","dijitVisible");page.onHide();},closeChild:function(page){var _522=page.onClose(this,page);if(_522){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_523){dojo.forEach(this.getChildren(),function(_524){this.removeChild(_524);_524.destroyRecursive(_523);},this);}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!dojo._hasResource["dijit.layout._TabContainerBase"]){dojo._hasResource["dijit.layout._TabContainerBase"]=true;dojo.provide("dijit.layout._TabContainerBase");dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _525=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_525;var _526=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_525},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_526);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_526[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _527=dojo.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_527});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_528,_529){var _52a=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_528,function(code){_52a[code]=prev;});dojo.forEach(_529,function(code){_52a[code]=next;});_52a[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_52a[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_52b,_52c){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_52b);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _52d=this._getFirstFocusableChild();if(_52d){this.focusChild(_52d);}},focusLastChild:function(){var _52e=this._getLastFocusableChild();if(_52e){this.focusChild(_52e);}},focusNext:function(){var _52f=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_52f);},focusPrev:function(){var _530=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_530,true);},focusChild:function(_531,last){if(this.focusedChild&&_531!==this.focusedChild){this._onChildBlur(this.focusedChild);}_531.set("tabIndex",this.tabIndex);_531.focus(last?"end":"start");this._set("focusedChild",_531);},_startupChild:function(_532){_532.set("tabIndex","-1");this.connect(_532,"_onFocus",function(){_532.set("tabIndex",this.tabIndex);});this.connect(_532,"_onBlur",function(){_532.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_533){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_534,dir){if(_534){_534=this._getSiblingOfChild(_534,dir);}var _535=this.getChildren();for(var i=0;i<_535.length;i++){if(!_534){_534=_535[(dir>0)?0:(_535.length-1)];}if(_534.isFocusable()){return _534;}_534=this._getSiblingOfChild(_534,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_536){if(_536&&!("label" in this.params)){this.set("label",_536.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _537=this.id+"_text";dojo.attr(this.containerNode,"id",_537);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_537+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_537);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_538){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_538);},setLabel:function(_539){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_539);},setDisabled:function(_53a){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_53a);},_setDisabledAttr:function(_53b){dijit.setWaiState(this.focusNode,"disabled",_53b?"true":"false");this._set("disabled",_53b);},_setAccelKeyAttr:function(_53c){this.accelKeyNode.style.display=_53c?"":"none";this.accelKeyNode.innerHTML=_53c;dojo.attr(this.containerNode,"colSpan",_53c?"1":"2");this._set("accelKey",_53c);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _53d=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_53d[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_53e){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_53e);dijit.setWaiState(this.domNode,"checked",_53e);this._set("checked",_53e);},onChange:function(_53f){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_540){_540.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_541){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _542=this._getTopMenu();if(_542&&_542._isMenuBar){_542.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _543=this.currentPopup.parentMenu;if(_543.focusedChild){_543.focusedChild._setSelected(false);}_543.focusedChild=this.currentPopup.from_item;_543.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _544=item.popup;if(_544){this._stopPendingCloseTimer(_544);_544._pendingClose_timer=setTimeout(function(){_544._pendingClose_timer=null;if(_544.parentMenu){_544.parentMenu.currentPopup=null;}dijit.popup.close(_544);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_545){if(_545._pendingClose_timer){clearTimeout(_545._pendingClose_timer);_545._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _546=this.focusedChild;if(!_546){return;}var _547=_546.popup;if(_547.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_547.parentMenu=this;_547.from_item=_546;var self=this;dijit.popup.open({parent:this,popup:_547,around:_546.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_546);self._cleanUp();_546._setSelected(true);self.focusedChild=_546;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_547;_547.connect(_547.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_547.focus){_547._focus_timer=setTimeout(dojo.hitch(_547,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _548=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_549){var win=dojo.window.get(this._iframeContentDocument(_549))||this._iframeContentDocument(_549)["__parent__"]||(_549.name&&dojo.doc.frames[_549.name])||null;return win;},_iframeContentDocument:function(_54a){var doc=_54a.contentDocument||(_54a.contentWindow&&_54a.contentWindow.document)||(_54a.name&&dojo.doc.frames[_54a.name]&&dojo.doc.frames[_54a.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _54b=node,win=this._iframeContentWindow(_54b);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _54c={node:node,iframe:_54b};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_54c));var _54d=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_54b,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_54b);}})];});_54c.connects=cn?_54d(cn):[];if(_54b){_54c.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_54b);cn=dojo.withGlobal(win,dojo.body);_54c.connects=_54d(cn);});if(_54b.addEventListener){_54b.addEventListener("load",_54c.onloadHandler,false);}else{_54b.attachEvent("onload",_54c.onloadHandler);}}},unBindDomNode:function(_54e){var node;try{node=dojo.byId(_54e);}catch(e){return;}var _54f="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_54f)){var bid=dojo.attr(node,_54f)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _550=b.iframe;if(_550){if(_550.removeEventListener){_550.removeEventListener("load",b.onloadHandler,false);}else{_550.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_54f);delete this._bindings[bid];}},_scheduleOpen:function(_551,_552,_553){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_551,iframe:_552,coords:_553});}),1);}},_openMyself:function(args){var _554=args.target,_555=args.iframe,_556=args.coords;if(_556){if(_555){var od=_554.ownerDocument,ifc=dojo.position(_555,true),win=this._iframeContentWindow(_555),_557=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_555),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_555,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_555,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_555,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_555,cs.borderTopWidth):0);_556.x+=ifc.x+left-_557.x;_556.y+=ifc.y+top-_557.y;}}else{_556=dojo.position(_554,true);_556.x+=10;_556.y+=10;}var self=this;var _558=dijit.getFocus(this);function _559(){if(self.refocus){dijit.focus(_558);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_556.x,y:_556.y,onExecute:_559,onCancel:_559,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _55a=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_55a=Math.max(_55a,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_55a+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div role=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div role=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div role=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n        \t<div role=\"presentation\" dojoAttachPoint='focusNode'>\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" dojoAttachPoint='iconNode' />\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' role=\"presentation\">\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>[x]</span\n\t\t        ></span>\n\t\t\t</div>\n        </div>\n    </div>\n</div>\n"),scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},startup:function(){this.inherited(arguments);var n=this.domNode;setTimeout(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(disp){this._set("closeButton",disp);dojo.toggleClass(this.innerDiv,"dijitClosable",disp);this.closeNode.style.display=disp?"":"none";if(disp){var _55b=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_55b.itemClose);}var _55b=dojo.i18n.getLocalization("dijit","common");this._closeMenu=new dijit.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new dijit.MenuItem({label:_55b.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_55c){this.inherited(arguments);if(this.showLabel==false&&!this.params.title){this.iconNode.alt=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){dojo._hasResource["dijit.layout.ScrollingTabController"]=true;dojo.provide("dijit.layout.ScrollingTabController");dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerMenuButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_menuBtn\" containerId=\"${containerId}\" iconClass=\"dijitTabStripMenuIcon\"\n\t\t\tdropDownPosition=\"below-alt, above-alt\"\n\t\t\tdojoAttachPoint=\"_menuBtn\" showLabel=\"false\">&#9660;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_leftBtn\" iconClass=\"dijitTabStripSlideLeftIcon\"\n\t\t\tdojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=\"false\">&#9664;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_rightBtn\" iconClass=\"dijitTabStripSlideRightIcon\"\n\t\t\tdojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=\"false\">&#9654;</div>\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\n\t\t<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'></div>\n\t</div>\n</div>\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),buildRendering:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";dojo.addClass(n,"tabStrip-disabled");}dojo.addClass(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);dojo.style(this.domNode,"visibility","visible");this._postStartup=true;},onAddChild:function(page,_55d){this.inherited(arguments);dojo.forEach(["label","iconClass"],function(attr){this.pane2watches[page.id].push(this.pane2button[page.id].watch(attr,dojo.hitch(this,function(name,_55e,_55f){if(this._postStartup&&this._dim){this.resize(this._dim);}})));},this);dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");},onRemoveChild:function(page,_560){var _561=this.pane2button[page.id];if(this._selectedTab===_561.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=dojo._getMarginSize(btn).w;return true;}else{dojo.style(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _562=this.getChildren();if(_562.length){var _563=_562[this.isLeftToRight()?0:_562.length-1].domNode,_564=_562[this.isLeftToRight()?_562.length-1:0].domNode;return _564.offsetLeft+dojo.style(_564,"width")-_563.offsetLeft;}else{return 0;}},_enableBtn:function(_565){var _566=this._getTabsWidth();_565=_565||dojo.style(this.scrollNode,"width");return _566>0&&_565<_566;},resize:function(dim){if(this.domNode.offsetWidth==0){return;}this._dim=dim;this.scrollNode.style.height="auto";this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});this._contentBox.h=this.scrollNode.offsetHeight;dojo.contentBox(this.domNode,this._contentBox);var _567=this._enableBtn(this._contentBox.w);this._buttons.style("display",_567?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());w.scrollLeft=sl;}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){var sl=(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;return sl;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit){return val;}else{var _568=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_568);}},onSelectChild:function(page){var tab=this.pane2button[page.id];if(!tab||!page){return;}var node=tab.domNode;if(this._postResize&&node!=this._selectedTab){this._selectedTab=node;var sl=this._getScroll();if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){this.createSmoothScroll().play();}}this.inherited(arguments);},_getScrollBounds:function(){var _569=this.getChildren(),_56a=dojo.style(this.scrollNode,"width"),_56b=dojo.style(this.containerNode,"width"),_56c=_56b-_56a,_56d=this._getTabsWidth();if(_569.length&&_56d>_56a){return {min:this.isLeftToRight()?0:_569[_569.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_569[_569.length-1].domNode.offsetLeft+dojo.style(_569[_569.length-1].domNode,"width"))-_56a:_56c};}else{var _56e=this.isLeftToRight()?0:_56c;return {min:_56e,max:_56e};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_56f=dojo.style(this.scrollNode,"width"),_570=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_56f/2;pos=Math.min(Math.max(pos,_570.min),_570.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _571=this._getScrollBounds();x=Math.min(Math.max(x,_571.min),_571.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);anim.curve=new dojo._Line(oldS,newS);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=anim;this._setButtonClass(x);return anim;},_getBtnNode:function(e){var n=e.target;while(n&&!dojo.hasClass(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_572,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _573=dojo.style(this.scrollNode,"width");var d=(_573*0.75)*_572;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_574){var _575=this._getScrollBounds();this._leftBtn.set("disabled",_574<=_575.min);this._rightBtn.set("disabled",_574>=_575.max);}});dojo.declare("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\n\t<div role=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div role=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img role=\"presentation\" alt=\"\" src=\"${_blankGif}\" class=\"dijitTabStripIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\n\t\t</div>\n\t</div>\n</div>\n"),tabIndex:"",isFocusable:function(){return false;}});dojo.declare("dijit.layout._ScrollingTabControllerButton",[dijit.form.Button,dijit.layout._ScrollingTabControllerButtonMixin]);dojo.declare("dijit.layout._ScrollingTabControllerMenuButton",[dijit.form.Button,dijit._HasDropDown,dijit.layout._ScrollingTabControllerButtonMixin],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_576){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _577=dijit.byId(this.containerId);dojo.forEach(_577.getChildren(),function(page){var _578=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_577.selectChild(page);}});this.dropDown.addChild(_578);},this);_576();},closeDropDown:function(_579){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_57a){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_57b=dojo.getObject(this.controllerWidget);return new _57b({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_57a);},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget){this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";}}});}if(!dojo._hasResource["dojox.widget.Standby"]){dojo._hasResource["dojox.widget.Standby"]=true;dojo.provide("dojox.widget.Standby");dojo.experimental("dojox.widget.Standby");dojo.declare("dojox.widget.Standby",[dijit._Widget,dijit._Templated],{templateString:"<div>"+"<div style=\"display: none; opacity: 0; z-index: 9999; "+"position: absolute; cursor:wait;\" dojoAttachPoint=\"_underlayNode\"></div>"+"<img src=\"${image}\" style=\"opacity: 0; display: none; z-index: -10000; "+"position: absolute; top: 0px; left: 0px; cursor:wait;\" "+"dojoAttachPoint=\"_imageNode\">"+"<div style=\"opacity: 0; display: none; z-index: -10000; position: absolute; "+"top: 0px;\" dojoAttachPoint=\"_textNode\"></div>"+"</div>",_underlayNode:null,_imageNode:null,_textNode:null,_centerNode:null,image:dojo.moduleUrl("dojox","widget/Standby/images/loading.gif").toString(),imageText:"Please Wait...",text:"Please wait...",centerIndicator:"image",_displayed:false,_resizeCheck:null,target:"",color:"#C0C0C0",duration:500,_started:false,_parent:null,zIndex:"auto",startup:function(args){if(!this._started){if(typeof this.target==="string"){var w=dijit.byId(this.target);if(w){this.target=w.domNode;}else{this.target=dojo.byId(this.target);}}if(this.text){this._textNode.innerHTML=this.text;}if(this.centerIndicator==="image"){this._centerNode=this._imageNode;dojo.attr(this._imageNode,"src",this.image);dojo.attr(this._imageNode,"alt",this.imageText);}else{this._centerNode=this._textNode;}dojo.style(this._underlayNode,{display:"none",backgroundColor:this.color});dojo.style(this._centerNode,"display","none");this.connect(this._underlayNode,"onclick","_ignore");if(this.domNode.parentNode&&this.domNode.parentNode!=dojo.body()){dojo.body().appendChild(this.domNode);}if(dojo.isIE==7){this._ieFixNode=dojo.doc.createElement("div");dojo.style(this._ieFixNode,{opacity:"0",zIndex:"-1000",position:"absolute",top:"-1000px"});dojo.body().appendChild(this._ieFixNode);}}},show:function(){if(!this._displayed){if(this._anim){this._anim.stop();delete this._anim;}this._displayed=true;this._size();this._disableOverflow();this._fadeIn();}},hide:function(){if(this._displayed){if(this._anim){this._anim.stop();delete this._anim;}this._size();this._fadeOut();this._displayed=false;if(this._resizeCheck!==null){clearInterval(this._resizeCheck);this._resizeCheck=null;}}},isVisible:function(){return this._displayed;},onShow:function(){},onHide:function(){},uninitialize:function(){this._displayed=false;if(this._resizeCheck){clearInterval(this._resizeCheck);}dojo.style(this._centerNode,"display","none");dojo.style(this._underlayNode,"display","none");if(dojo.isIE==7){dojo.body().removeChild(this._ieFixNode);delete this._ieFixNode;}if(this._anim){this._anim.stop();delete this._anim;}this.target=null;this._imageNode=null;this._textNode=null;this._centerNode=null;this.inherited(arguments);},_size:function(){if(this._displayed){var dir=dojo.attr(dojo.body(),"dir");if(dir){dir=dir.toLowerCase();}var _57c;var _57d=this._scrollerWidths();var _57e=this.target;var _57f=dojo.style(this._centerNode,"display");dojo.style(this._centerNode,"display","block");var box=dojo.position(_57e,true);if(_57e===dojo.body()||_57e===dojo.doc){box=dojo.window.getBox();box.x=box.l;box.y=box.t;}var _580=dojo.marginBox(this._centerNode);dojo.style(this._centerNode,"display",_57f);if(this._ieFixNode){_57c=-this._ieFixNode.offsetTop/1000;box.x=Math.floor((box.x+0.9)/_57c);box.y=Math.floor((box.y+0.9)/_57c);box.w=Math.floor((box.w+0.9)/_57c);box.h=Math.floor((box.h+0.9)/_57c);}var zi=dojo.style(_57e,"zIndex");var ziUl=zi;var ziIn=zi;if(this.zIndex==="auto"){if(zi!="auto"){ziUl=parseInt(ziUl,10)+1;ziIn=parseInt(ziIn,10)+2;}else{var _581=_57e.parentNode;var _582=-100000;while(_581&&_581!==dojo.body()){zi=dojo.style(_581,"zIndex");if(!zi||zi==="auto"){_581=_581.parentNode;}else{var _583=parseInt(zi,10);if(_582<_583){_582=_583;ziUl=_583+1;ziIn=_583+2;}_581=_581.parentNode;}}}}else{ziUl=parseInt(this.zIndex,10)+1;ziIn=parseInt(this.zIndex,10)+2;}dojo.style(this._centerNode,"zIndex",ziIn);dojo.style(this._underlayNode,"zIndex",ziUl);var pn=_57e.parentNode;if(pn&&pn!==dojo.body()&&_57e!==dojo.body()&&_57e!==dojo.doc){var obh=box.h;var obw=box.w;var _584=dojo.position(pn,true);if(this._ieFixNode){_57c=-this._ieFixNode.offsetTop/1000;_584.x=Math.floor((_584.x+0.9)/_57c);_584.y=Math.floor((_584.y+0.9)/_57c);_584.w=Math.floor((_584.w+0.9)/_57c);_584.h=Math.floor((_584.h+0.9)/_57c);}_584.w-=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_57d.v:0;_584.h-=pn.scrollWidth>pn.clientWidth&&pn.clientWidth>0?_57d.h:0;if(dir==="rtl"){if(dojo.isOpera){box.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_57d.v:0;_584.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_57d.v:0;}else{if(dojo.isIE){_584.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_57d.v:0;}else{if(dojo.isWebKit){}}}}if(_584.w<box.w){box.w=box.w-_584.w;}if(_584.h<box.h){box.h=box.h-_584.h;}var _585=_584.y;var _586=_584.y+_584.h;var bTop=box.y;var _587=box.y+obh;var _588=_584.x;var _589=_584.x+_584.w;var _58a=box.x;var _58b=box.x+obw;var _58c;if(_587>_585&&bTop<_585){box.y=_584.y;_58c=_585-bTop;var _58d=obh-_58c;if(_58d<_584.h){box.h=_58d;}else{box.h-=2*(pn.scrollWidth>pn.clientWidth&&pn.clientWidth>0?_57d.h:0);}}else{if(bTop<_586&&_587>_586){box.h=_586-bTop;}else{if(_587<=_585||bTop>=_586){box.h=0;}}}if(_58b>_588&&_58a<_588){box.x=_584.x;_58c=_588-_58a;var _58e=obw-_58c;if(_58e<_584.w){box.w=_58e;}else{box.w-=2*(pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_57d.w:0);}}else{if(_58a<_589&&_58b>_589){box.w=_589-_58a;}else{if(_58b<=_588||_58a>=_589){box.w=0;}}}}if(box.h>0&&box.w>0){dojo.style(this._underlayNode,{display:"block",width:box.w+"px",height:box.h+"px",top:box.y+"px",left:box.x+"px"});var _58f=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"];this._cloneStyles(_58f);if(!dojo.isIE){_58f=["MozBorderRadius","MozBorderRadiusTopleft","MozBorderRadiusTopright","MozBorderRadiusBottomleft","MozBorderRadiusBottomright","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius"];this._cloneStyles(_58f,this);}var _590=(box.h/2)-(_580.h/2);var _591=(box.w/2)-(_580.w/2);if(box.h>=_580.h&&box.w>=_580.w){dojo.style(this._centerNode,{top:(_590+box.y)+"px",left:(_591+box.x)+"px",display:"block"});}else{dojo.style(this._centerNode,"display","none");}}else{dojo.style(this._underlayNode,"display","none");dojo.style(this._centerNode,"display","none");}if(this._resizeCheck===null){var self=this;this._resizeCheck=setInterval(function(){self._size();},100);}}},_cloneStyles:function(list){dojo.forEach(list,function(_592){dojo.style(this._underlayNode,_592,dojo.style(this.target,_592));},this);},_fadeIn:function(){var self=this;var _593=dojo.animateProperty({duration:self.duration,node:self._underlayNode,properties:{opacity:{start:0,end:0.75}}});var _594=dojo.animateProperty({duration:self.duration,node:self._centerNode,properties:{opacity:{start:0,end:1}},onEnd:function(){self.onShow();delete self._anim;}});this._anim=dojo.fx.combine([_593,_594]);this._anim.play();},_fadeOut:function(){var self=this;var _595=dojo.animateProperty({duration:self.duration,node:self._underlayNode,properties:{opacity:{start:0.75,end:0}},onEnd:function(){dojo.style(this.node,{"display":"none","zIndex":"-1000"});}});var _596=dojo.animateProperty({duration:self.duration,node:self._centerNode,properties:{opacity:{start:1,end:0}},onEnd:function(){dojo.style(this.node,{"display":"none","zIndex":"-1000"});self.onHide();self._enableOverflow();delete self._anim;}});this._anim=dojo.fx.combine([_595,_596]);this._anim.play();},_ignore:function(_597){if(_597){dojo.stopEvent(_597);}},_scrollerWidths:function(){var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",opacity:0,overflow:"hidden",width:"50px",height:"50px",zIndex:"-100",top:"-200px",left:"-200px",padding:"0px",margin:"0px"});var iDiv=dojo.doc.createElement("div");dojo.style(iDiv,{width:"200px",height:"10px"});div.appendChild(iDiv);dojo.body().appendChild(div);var b=dojo.contentBox(div);dojo.style(div,"overflow","scroll");var a=dojo.contentBox(div);dojo.body().removeChild(div);return {v:b.w-a.w,h:b.h-a.h};},_setTextAttr:function(text){this._textNode.innerHTML=text;this.text=text;},_setColorAttr:function(c){dojo.style(this._underlayNode,"backgroundColor",c);this.color=c;},_setImageTextAttr:function(text){dojo.attr(this._imageNode,"alt",text);this.imageText=text;},_setImageAttr:function(url){dojo.attr(this._imageNode,"src",url);this.image=url;},_setCenterIndicatorAttr:function(_598){this.centerIndicator=_598;if(_598==="image"){this._centerNode=this._imageNode;dojo.style(this._textNode,"display","none");}else{this._centerNode=this._textNode;dojo.style(this._imageNode,"display","none");}},_disableOverflow:function(){if(this.target===dojo.body()||this.target===dojo.doc){this._overflowDisabled=true;var body=dojo.body();if(body.style&&body.style.overflow){this._oldOverflow=dojo.style(body,"overflow");}else{this._oldOverflow="";}if(dojo.isIE&&!dojo.isQuirks){if(body.parentNode&&body.parentNode.style&&body.parentNode.style.overflow){this._oldBodyParentOverflow=body.parentNode.style.overflow;}else{try{this._oldBodyParentOverflow=dojo.style(body.parentNode,"overflow");}catch(e){this._oldBodyParentOverflow="scroll";}}dojo.style(body.parentNode,"overflow","hidden");}dojo.style(body,"overflow","hidden");}},_enableOverflow:function(){if(this._overflowDisabled){delete this._overflowDisabled;var body=dojo.body();if(dojo.isIE&&!dojo.isQuirks){body.parentNode.style.overflow=this._oldBodyParentOverflow;delete this._oldBodyParentOverflow;}dojo.style(body,"overflow",this._oldOverflow);if(dojo.isWebKit){var div=dojo.create("div",{style:{height:"2px"}});body.appendChild(div);setTimeout(function(){body.removeChild(div);},0);}delete this._oldOverflow;}}});}if(!dojo._hasResource["GeoMOOSE.Popup"]){dojo._hasResource["GeoMOOSE.Popup"]=true;dojo.provide("GeoMOOSE.Popup");dojo.declare("GeoMOOSE.Popup",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("GeoMOOSE","popup_template.html","<div data-dojo-attach-point=\"popupNode\" \n\t\t\tclass=\"GeoMoosePopup Popup ${classNames}\">\n\t<div class=\"Tail\"></div>\n\t<div class=\"PopupContents\">\n\t\t<div data-dojo-attach-point=\"closeBox\" class=\"CloseBox\"></div>\n\t\t<div class=\"title\" data-dojo-attach-point=\"titleNode\"> \n\t\t\t${title}\n\t\t</div>\n\t\t<div class=\"content\" data-dojo-attach-point=\"contentsNode\">\n\t\t</div>\n\t</div>\n</div>\n"),title:"&nbsp;",content:"",classNames:"",x:0,y:0,close:function(){this.destroyRecursive();if(this.clearOnMove){dojo.disconnect(this.clearEvent);dojo.disconnect(this.stickyEvent);}},startMove:function(evt){var pos=dojo.position(this.popupNode);var _599=dojo.position("map");this._offset={x:_599.x+(evt.clientX-pos.x),y:_599.y+(evt.clientY-pos.y)};this._moveEvt=dojo.connect(document,"mousemove",dojo.hitch(this,this.movePopup));this._endEvt=dojo.connect(document,"mouseup",dojo.hitch(this,this.endMove));},endMove:function(evt){dojo.addClass(this.popupNode,"Moved");if(!dojo.hasClass(this.popupNode,"PopupAnchorRight")){var p=dojo.position(this.popupNode);var _59a=dojo.position("map");this.popupNode.style.left=((p.x-_59a.x)+CONFIGURATION.popups.left_offset)+"px";}dojo.removeClass(this.popupNode,["PopupAnchorBottom","PopupAnchorRight"]);dojo.disconnect(this._endEvt);dojo.disconnect(this._moveEvt);},movePopup:function(evt){this.popupNode.style.bottom="auto";this.popupNode.style.right="auto";this.popupNode.style.top=(evt.clientY-this._offset.y)+"px";this.popupNode.style.left=(evt.clientX-this._offset.x)+"px";},position:function(){var _59b=dojo.position(this.domNode.parentNode);var _59c={x:"left",y:"top"};if(this.x+75>_59b.w){_59c.x="right";this.x=_59b.w-this.x;}if(this.y+75>_59b.h){_59c.y="bottom";this.y=_59b.h-this.y;}dojo.toggleClass(this.popupNode,"PopupAnchorBottom",_59c.y=="bottom");dojo.toggleClass(this.popupNode,"PopupAnchorRight",_59c.x=="right");this.popupNode.style[_59c.x]=this.x+"px";this.popupNode.style[_59c.y]=this.y+"px";},constructor:function(args){if(args.renderXY){this.x=args.renderXY.x;this.y=args.renderXY.y;}if(dojo.isArray(args.classNames)){args.classNames=args.classNames.join(" ");}dojo.safeMixin(this,args);},makeSticky:function(){dojo.disconnect(this.clearEvent);dojo.disconnect(this.stickyEvent);},postCreate:function(){this.inherited(arguments);this.contentsNode.innerHTML=this.content;this.position();dojo.connect(this.closeBox,"click",this,this.close);dojo.connect(this.titleNode,"mousedown",this,this.startMove);if(this.clearOnMove){this.clearEvent=dojo.connect(this.popupNode,"mouseleave",this,this.close);this.stickyEvent=dojo.connect(this.popupNode,"click",this,this.makeSticky);}}});}if(!dojo._hasResource["GeoMOOSE.Application"]){dojo._hasResource["GeoMOOSE.Application"]=true;dojo.provide("GeoMOOSE.Application");dojo.declare("GeoMOOSE.Application",null,{_tabContainer:"tabs",mapSources:{},events:null,isPopupSticky:false,popups:{},initialize:function(){},startup:function(){this.popups={};var _59d=GeoMOOSE.UX.getExtensions();for(var i=0;i<_59d.length;i++){var n=new _59d[i]();n.load();}var args=GeoMOOSE.getUrlParameters();if(args.debug){CONFIGURATION["debug"]=true;}var _59e=undefined;if(args.mapbook){_59e=args.mapbook;}this.events=new OpenLayers.Events();this.getMapbook(_59e);},getMapbook:function(url){var _59f=GeoMOOSE.isDefined(url)?url:CONFIGURATION.mapbook;dojo.xhrGet({"url":_59f,"load":dojo.hitch(this,this.gotMapbook),"error":dojo.hitch(this,this.onMapbookLoadError),"handleAs":"xml"});},onGotMapbook:function(_5a0){},gotMapbook:function(_5a1){if(!GeoMOOSE.isDefined(_5a1)){var _5a2=dojo.create("div",{},dojo.body());var _5a3=dojo.create("div",{"innerHTML":CONFIGURATION.messages.mapbook_invalid},_5a2);dojo.style(_5a2,{"position":"absolute","top":"0","left":"0","width":"100%","height":"100%","backgroundColor":"white","fontWeight":"bold","fontSize":"1.5em","opacity":".8","zIndex":"1000"});dojo.style(_5a3,{"position":"absolute","top":"5%","width":"20em","left":"-10em","marginLeft":"50%","backgroundColor":"white","opacity":"1","padding":".5em","border":"solid 1px #444"});return false;}this.parseConfiguration(_5a1);this.configureMap();this.configureMapSources(_5a1);var _5a4=GeoMOOSE.getUrlParameters();if(GeoMOOSE.isDefined(_5a4.extent)){var _5a5=_5a4.extent.split(",");for(var i=0;i<4;i++){_5a5[i]=parseFloat(_5a5[i]);}CONFIGURATION.initial_extent=_5a5;}Map.zoomToExtent(OpenLayers.Bounds.fromArray(CONFIGURATION.initial_extent));this.onGotMapbook(_5a1);if(this.active_map_source){GeoMOOSE.activateMapSource(this.active_map_source);}GeoMOOSE.activateDefaultTool();},onMapbookLoadError:function(_5a6){},_getConfigValue:function(name){var seed=CONFIGURATION;var path=name.split(".");var i=0;while(i<path.length){if(typeof (seed[path[i]])!="undefined"){seed=seed[path[i]];}else{return undefined;}i++;}return seed;},_setConfigValue:function(name,_5a7){var s="CONFIGURATION";var seed=CONFIGURATION;var path=name.split(".");for(var i=0,ii=path.length;i<ii;i++){s+="[\""+path[i]+"\"]";}eval(s+"=arguments[1]");},parseConfiguration:function(_5a8){var _5a9=_5a8.getElementsByTagName("configuration")[0];if(_5a9&&_5a9.childNodes){var _5aa=_5a9.getElementsByTagName("param");var _5ab=_5aa.length;for(var p=0;p<_5ab;p++){var _5ac=_5aa[p];var name=_5ac.getAttribute("name");var _5ad=OpenLayers.Util.getXmlNodeValue(_5ac);var _5ae=this._getConfigValue(name);var _5af=typeof (_5ae);if(_5ae instanceof Array){if(_5ad[0]=="["&&_5ad[_5ad.length-1]=="]"){_5ad=_5ad.substring(1,_5ad.length-1);}_5ad=eval("["+_5ad+"]");}else{if(_5af=="string"){}else{if(_5af=="boolean"){_5ad=parseBoolean(_5ad);}else{if(_5af=="object"){_5ad=dojo.fromJson(_5ad);}else{_5ad=eval("("+_5ad+")");}}}}this._setConfigValue(name,_5ad);try{}catch(e){GeoMOOSE.warning(GeoMOOSE.processTemplate(CONFIGURATION.messages.mapbook_param_error,{"FIELD":name}));}}}},configureMap:function(){CONFIGURATION.scales=CONFIGURATION.scales.sort().reverse();var _5b0={tileManager:null,maxExtent:OpenLayers.Bounds.fromArray(CONFIGURATION.max_extent),resolutions:CONFIGURATION.scales,controls:[new OpenLayers.Control.PanZoomBar()],units:CONFIGURATION.ground_units,projection:new OpenLayers.Projection(CONFIGURATION.projection),displayProjection:new OpenLayers.Projection(CONFIGURATION.projection),fractionalZoom:CONFIGURATION.fractional_zoom};var _5b1={"scales":"resolutions","maxResolution":"maxResolution","numZoomLevels":"numZoomLevels"};for(var key in _5b1){if(GeoMOOSE.isDefined(CONFIGURATION[key])){_5b0[_5b1[key]]=CONFIGURATION[key];}}if(GeoMOOSE.isDefined(_5b0["numZoomLevels"])&&GeoMOOSE.isDefined(_5b0["maxResolution"])){if(GeoMOOSE.isDefined(_5b0["resolutions"])){delete _5b0["resolutions"];}}Map=new OpenLayers.Map("mapContainer",_5b0);_5b0["singleTile"]=true;this.navigationLayer=new OpenLayers.Layer.WMS("GeoMOOSE Navigation Layer","images/blank.gif",{},_5b0);Map.addLayers([this.navigationLayer]);if(CONFIGURATION["debug"]){Map.addControl(new OpenLayers.Control.LayerSwitcher());}this.configureMapTools();this.configureServiceManager();GM_Events.triggerEvent("onMapCreated",Map);dojo.connect(dijit.byId("map"),"resize",function(){Map.updateSize();});Map.addPopup=dojo.hitch(this,this.addPopup);Map.removePopup=dojo.hitch(this,this.removePopup);Map.events.register("moveend",this,this.clearPopups);},configureMapTools:function(){Tools["pan"]=new OpenLayers.Control.Navigation();Tools["zoomin"]=new OpenLayers.Control.ZoomBox();Tools["zoomout"]=new OpenLayers.Control.ZoomBox({out:true});var _5b2=["pan","zoomin","zoomout"];for(var i=0,len=_5b2.length;i<len;i++){Map.addControl(Tools[_5b2[i]]);}if(CONFIGURATION["always_scroll_zoom"]){var nav=new OpenLayers.Control.Navigation();Map.addControl(nav);}var _5b3=new OpenLayers.Control.NavigationHistory();Map.addControl(_5b3);var _5b4={activate:function(){_5b3.previous.trigger();},deactivate:function(){}};var next={activate:function(){_5b3.next.trigger();},deactivate:function(){}};var _5b5={activate:function(){Map.zoomToMaxExtent();},deactivate:function(){}};Tools["previous"]=_5b4;Tools["next"]=next;Tools["fullextent"]=_5b5;if(CONFIGURATION.scale_line&&CONFIGURATION.scale_line.enabled){Map.addControl(new OpenLayers.Control.ScaleLine({bottomOutUnits:CONFIGURATION.scale_line.bottom_units,bottomInUnits:CONFIGURATION.scale_line.bottom_units,topOutUnits:CONFIGURATION.scale_line.top_units,topInUnits:CONFIGURATION.scale_line.top_units,maxWidth:CONFIGURATION.scale_line.width}));}},configureMapSource:function(_5b6,_5b7){var _5b8=GeoMOOSE.getMapSourceType(_5b6.getAttribute("type"));var name=_5b6.getAttribute("name");var _5b9=_5b6.getElementsByTagName("layer");for(var l=0,ll=_5b9.length;l<ll;l++){var _5ba=_5b9[l];var _5bb=_5ba.getAttribute("status");if(!GeoMOOSE.isDefined(_5bb)){_5bb="off";_5ba.setAttribute("status","off");}_5ba.setAttribute("_status",_5bb);var _5bc=_5ba.getAttribute("name");var path=name+"/"+_5bc;if(GeoMOOSE.isDefined(_5b7[path])){_5ba.setAttribute("status",_5b7[path]);}}if(typeof (_5b8)=="undefined"){GeoMOOSE.warning("Undefined Layer Type : "+_5b6.getAttribute("type"));}else{if(this.mapSources[name]){GeoMOOSE.warning("map-source \""+name+"\" is being redefined!.");}this.mapSources[name]=new _5b8(_5b6);this.mapSources[name].addToMap(Map);dojo.connect(this.mapSources[name],"onLayersChange",this.onLayersChange);}},configureMapSources:function(_5bd){this.mapSources={};var _5be=null;var _5bf={};var args=GeoMOOSE.getUrlParameters();if(args.on){var _5c0=new String(args.on).split(";");for(var i=0,ii=_5c0.length;i<ii;i++){_5bf[_5c0[i]]="on";}}if(args.off){var _5c1=new String(args.off).split(";");for(var i=0,ii=_5c1.length;i<ii;i++){_5bf[_5c1[i]]="off";}}var _5c2=_5bd.getElementsByTagName("map-source");for(var i=_5c2.length-1;i>=0;i--){var _5c3=_5c2[i];this.configureMapSource(_5c3,_5bf);if(parseBoolean(_5c3.getAttribute("active"),false)){_5be=_5c2[i].getAttribute("name");}}this.active_map_source=_5be;},getMapSource:function(name){var _5c4=name.split("/");return this.mapSources[_5c4[0]];},onLayersChange:function(path,_5c5){},getVisibleLayers:function(){var _5c6=[];for(var name in this.mapSources){if(this.mapSources[name].isVisible()){_5c6.push(name);}var _5c7=this.mapSources[name]._getLayersList();for(var i=0,len=_5c7.length;i<len;i++){_5c7[i]=name+"/"+_5c7[i];}_5c6=_5c6.concat(_5c7);}return _5c6;},getStatusDifferences:function(){var _5c8={"on":[],"off":[]};for(var name in this.mapSources){var _5c9=this.mapSources[name].getStatusDifferences();for(var stat in _5c8){for(var i=0,ii=_5c9[stat].length;i<ii;i++){if(CONFIGURATION.services.highlight_layer.indexOf(_5c9[stat][i])<0){_5c8[stat].push(_5c9[stat][i]);}}}}return _5c8;},configureServiceManager:function(){},activateMapSource:function(path){this.active_map_source=path;this.onActivateMapSource(path);},getActiveMapSource:function(){return this.active_map_source;},onActivateMapSource:function(path){dojo.publish("geomoose/activate-map-source",[path]);},addPopup:function(_5ca){var _5cb=dojo.create("div",{},Map.div);this.popups[GeoMOOSE.id()]=new GeoMOOSE.Popup(_5ca,_5cb);},removePopup:function(_5cc){if(this.popups[_5cc]){this.popups[_5cc].close();delete this.popups[_5cc];}},clearPopups:function(){var keys=[];for(var key in this.popups){keys.push(key);}for(var i=0,ii=keys.length;i<ii;i++){this.popups[keys[i]].close();delete this.popups[keys[i]];}}});}if(!dojo._hasResource["GeoMOOSE.Layout"]){dojo._hasResource["GeoMOOSE.Layout"]=true;dojo.provide("GeoMOOSE.Layout");dojo.declare("GeoMOOSE.Layout",null,{});}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_5cd){_5cd.startup();_5cd._started=true;});},startup:function(){if(this._started){return;}var _5ce=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_5ce&&_5ce.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _5cf=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_5d0=_5cf.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_5d1=dojo.filter(_5d0.map(dijit.byNode),function(_5d2){return _5d2&&_5d2.domNode&&_5d2.resize;});if(_5cf.length==_5d0.length&&_5d1.length==1){this._singleChild=_5d1[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_5d3,_5d4){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_5d3,_5d4);},_scheduleLayout:function(_5d5,_5d6){if(this._isShown()){this._layout(_5d5,_5d6);}else{this._needLayout=true;this._changeSize=_5d5;this._resultSize=_5d6;}},_layout:function(_5d7,_5d8){if(_5d7){dojo.marginBox(this.domNode,_5d7);}var cn=this.containerNode;if(cn===this.domNode){var mb=_5d8||{};dojo.mixin(mb,_5d7||{});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();delete this._needLayout;},_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(_5d9){if(_5d9.resize){_5d9.resize();}});}},_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,_5da=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_5da&&_5da.style&&(_5da.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _5db=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 _5dc=cont.length,i=0;i<cont.length;i=_5dc==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,parserScope:dojo._scopeName,startup:true,constructor:function(_5dd,node){dojo.mixin(this,_5dd||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_5db++].join("_");}},set:function(cont,_5de){if(undefined!==cont){this.content=cont;}if(_5de){this._mixin(_5de);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _5df=this.onContentError(e);try{node.innerHTML=_5df;}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 _5e0=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_5e0){cont=_5e0[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(_5e1){var _5e2={},key;for(key in _5e1){if(key in _5e2){continue;}this[key]=_5e1[key];}},_parse:function(){var _5e3=this.node;try{var _5e4={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_5e4[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_5e3,noStart:!this.startup,inherited:_5e4,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_5e5){var _5e6=this["on"+type+"Error"].call(this,err);if(_5e5){console.error(_5e5,err);}else{if(_5e6){dojo.html._setNodeContent(this.node,_5e6,true);}}}});dojo.html.set=function(node,cont,_5e7){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_5e7){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_5e7,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_5e8,_5e9){if((!_5e8||!_5e8.template)&&_5e9&&!("href" in _5e8)&&!("content" in _5e8)){var df=dojo.doc.createDocumentFragment();_5e9=dojo.byId(_5e9);while(_5e9.firstChild){df.appendChild(_5e9.firstChild);}_5e8=dojo.delegate(_5e8,{content:df});}this.inherited(arguments,[_5e8,_5e9]);},postMixInProperties:function(){this.inherited(arguments);var _5ea=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_5ea);this.errorMessage=dojo.string.substitute(this.errorMessage,_5ea);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}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(_5eb){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _5ec={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_5ec,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_5ec));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._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("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 _5ed=this._contentSetter;dojo.forEach(this.getChildren(),function(_5ee){if(_5ee.destroyRecursive){_5ee.destroyRecursive();}});if(_5ed){dojo.forEach(_5ed.parseResults,function(_5ef){if(_5ef.destroyRecursive&&_5ef.domNode&&_5ef.domNode.parentNode==dojo.body()){_5ef.destroyRecursive();}});delete _5ed.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_5f0){this.destroyDescendants();var _5f1=this._contentSetter;if(!(_5f1&&_5f1 instanceof dojo.html._ContentSetter)){_5f1=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _5f2=this.onContentError(e);try{this.containerNode.innerHTML=_5f2;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _5f3=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_5f1.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_5f3);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_5f0){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_5f4){this.onLoadDeferred.errback(err);var _5f5=this["on"+type+"Error"].call(this,err);if(_5f4){console.error(_5f4,err);}else{if(_5f5){this._setContent(_5f5,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_5f6){},onDownloadError:function(_5f7){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["GeoMOOSE.Layout.Default"]){dojo._hasResource["GeoMOOSE.Layout.Default"]=true;dojo.provide("GeoMOOSE.Layout.Default");dojo.declare("GeoMOOSE.Layout.Default",[GeoMOOSE.Layout],{constructor:function(){var main=new dijit.layout.BorderContainer({"gutters":false},dojo.byId("main"));main.startup();main.addChild(new dijit.layout.ContentPane({"region":"top"},dojo.byId("header")));main.addChild(new dijit.layout.ContentPane({"region":"bottom"},dojo.byId("footer")));var _5f8=new dijit.layout.BorderContainer({"region":"center","liveSplitters":false,"gutters":false},dojo.byId("middle"));main.addChild(_5f8);_5f8.startup();_5f8.addChild(new dijit.layout.ContentPane({"region":"center"},dojo.byId("map")));var _5f9=new dijit.layout.BorderContainer({"gutters":false,"region":CONFIGURATION.control_panel_side,"splitter":true},dojo.byId("control-panel"));_5f8.addChild(_5f9);_5f9.addChild(new dijit.layout.TabContainer({"region":"center"},dojo.byId("tabs")));},resize:function(){dijit.byId("main").resize();},switchPanelSides:function(_5fa){var _5fb=dijit.byId("middle");var _5fc=dijit.byId("control-panel");_5fb.removeChild(_5fc);_5fc.set("region",_5fa);_5fb.addChild(_5fc);this.resize();},updatePanelSides:function(){this.switchPanelSides(CONFIGURATION.control_panel_side);}});}if(!dojo._hasResource["GeoMOOSE.Handler.Box"]){dojo._hasResource["GeoMOOSE.Handler.Box"]=true;dojo.provide("GeoMOOSE.Handler.Box");GeoMOOSE.Handler.Box=OpenLayers.Class(OpenLayers.Handler.Box,{initialize:function(_5fd,_5fe,_5ff){OpenLayers.Handler.Box.prototype.initialize.apply(this,arguments);},endBox:function(end){var _600;var _601=this.dragHandler.start;var top=Math.min(_601.y,end.y);var _602=Math.max(_601.y,end.y);var left=Math.min(_601.x,end.x);var _603=Math.max(_601.x,end.x);_600=new OpenLayers.Bounds(left,_602,_603,top);this.removeBox();var _604=new OpenLayers.Geometry.Polygon();var _605=[[left,_602],[left,top],[_603,top],[_603,_602]];var ring=new OpenLayers.Geometry.LinearRing();for(var i=0;i<_605.length;i++){var px=new OpenLayers.Pixel(_605[i][0],_605[i][1]);var ll=this.map.getLonLatFromPixel(px);ring.addPoint(new OpenLayers.Geometry.Point(ll.lon,ll.lat));}_604.addComponent(ring);this.geometry=_604;this.callback("done",[_604]);},getGeometry:function(){return this.geometry;},CLASS_NAME:"OpenLayers.Handler.GeomooseBox"});}if(!dojo._hasResource["GeoMOOSE.Handler.MeasurePath"]){dojo._hasResource["GeoMOOSE.Handler.MeasurePath"]=true;dojo.provide("GeoMOOSE.Handler.MeasurePath");GeoMOOSE.Handler.MeasurePath=OpenLayers.Class(OpenLayers.Handler.Path,{mousemove:function(evt){if(this.drawing){this.callback("mousemove",[this.point.geometry,this.getGeometry()]);}OpenLayers.Handler.Path.prototype.mousemove.apply(this,arguments);return true;},mouseup:function(evt){OpenLayers.Handler.Path.prototype.mouseup.apply(this,arguments);},CLASS_NAME:"GeoMOOSE.Handler.MeasurePath"});GeoMOOSE.Handler.MeasurePolygon=OpenLayers.Class(OpenLayers.Handler.Polygon,{mousemove:function(evt){if(this.drawing){this.callback("mousemove",[this.point.geometry,this.getGeometry()]);}OpenLayers.Handler.Polygon.prototype.mousemove.apply(this,arguments);return true;},CLASS_NAME:"GeoMOOSE.Handler.MeasurePolygon"});}if(!dojo._hasResource["GeoMOOSE.Control.Measure"]){dojo._hasResource["GeoMOOSE.Control.Measure"]=true;dojo.provide("GeoMOOSE.Control.Measure");GeoMOOSE.Control.Measure=OpenLayers.Class(OpenLayers.Control.Measure,{EVENT_TYPES:["measuremove"],immediate:true,geodesic:true,partialDelay:100,partials:0,segments:new Array(),total:0,last_move_length:0,activate:function(){this.segments=new Array();this.total=0;this.last_move_length=0;this.partials=0;OpenLayers.Control.Measure.prototype.activate.apply(this,arguments);},initialize:function(_606,_607){this.callbacks=OpenLayers.Util.extend({mousemove:this.measureMove},this.callbacks);OpenLayers.Control.Measure.prototype.initialize.apply(this,[_606,_607]);this.events.addEventType("measuremove");},measureImmediate:function(_608,_609,_60a){if(_60a&&this.delayedTrigger===null&&!this.handler.freehandMode(this.handler.evt)){this.measure(_609.geometry,"measuremove");}},measure:function(_60b,_60c){var stat,_60d;if(_60b.CLASS_NAME.indexOf("LineString")>-1){stat=this.getLength(_60b,"in");_60d=1;}else{stat=this.getArea(_60b,"in");_60d=2;}if(_60c!="measuremove"){var _60e=this.last_move_length;if(_60e!=0){this.segments.push(_60e);}for(var i=0,sum=0;i<this.segments.length;sum+=this.segments[i++]){}this.total=sum;this.last_move_length=0;}if(_60c=="measurepartial"){this.partials++;if(this.partials==1){this.segments=new Array();this.total=0;return false;}}if(_60c=="measuremove"){stat=stat-this.total;this.last_move_length=stat;}this.events.triggerEvent(_60c,{measure:stat,units:"in",order:_60d,geometry:_60b});if(_60c=="measure"){this.partials=0;this.last_move_length=0;}},CLASS_NAME:"GeoMOOSE.Control.Measure"});}if(!dojo._hasResource["GeoMOOSE.Control.DeleteFeature"]){dojo._hasResource["GeoMOOSE.Control.DeleteFeature"]=true;dojo.provide("GeoMOOSE.Control.DeleteFeature");GeoMOOSE.Control.DeleteFeature=OpenLayers.Class(OpenLayers.Control,{initialize:function(_60f,_610){OpenLayers.Control.prototype.initialize.apply(this,[_610]);this.layer=_60f;this.handler=new OpenLayers.Handler.Feature(this,_60f,{click:this.clickFeature});},clickFeature:function(_611){if(_611.fid==undefined){this.layer.destroyFeatures([_611]);}else{_611.state=OpenLayers.State.DELETE;this.layer.events.triggerEvent("afterfeaturemodified",{feature:_611});_611.renderIntent="select";this.layer.drawFeature(_611);}},setMap:function(map){this.handler.setMap(map);OpenLayers.Control.prototype.setMap.apply(this,arguments);},CLASS_NAME:"GeoMOOSE.Control.DeleteFeature"});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;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.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;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.window.getBox(),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 _612=n.scrollLeft,_613=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_612!=n.scrollLeft||_613!=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);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);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(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;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,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},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,_614){this.node=dojo.byId(node);if(!_614){_614={};}this.handle=_614.handle?dojo.byId(_614.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_614.delay>0?_614.delay:0;this.skip=_614.skip;this.mover=_614.mover?_614.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_615,node){return new dojo.dnd.Moveable(node,_615);},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,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.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(_616){dojo.publish("/dnd/move/start",[_616]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_617){dojo.publish("/dnd/move/stop",[_617]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_618,e){},onMove:function(_619,_61a,e){this.onMoving(_619,_61a);var s=_619.node.style;s.left=_61a.l+"px";s.top=_61a.t+"px";this.onMoved(_619,_61a);},onMoving:function(_61b,_61c){},onMoved:function(_61d,_61e){}});}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(_61f,node){return new dojo.dnd.move.constrainedMoveable(node,_61f);},constructor:function(node,_620){if(!_620){_620={};}this.constraints=_620.constraints;this.within=_620.within;},onFirstMove:function(_621){var c=this.constraintBox=this.constraints.call(this,_621);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_621.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_622,_623){var c=this.constraintBox,s=_622.node.style;this.onMoving(_622,_623);_623.l=_623.l<c.l?c.l:c.r<_623.l?c.r:_623.l;_623.t=_623.t<c.t?c.t:c.b<_623.t?c.b:_623.t;s.left=_623.l+"px";s.top=_623.t+"px";this.onMoved(_622,_623);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_624,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_624);},constructor:function(node,_625){var box=_625&&_625.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_626,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_626);},constructor:function(node,_627){var area=_627&&_627.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.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 _628=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_629){if(!_629){_629={};}if(_629.timeout&&typeof _629.timeout=="number"&&_629.timeout>=0){this.timeout=_629.timeout;}},markupFactory:function(_62a,node){return new dojo.dnd.TimedMoveable(node,_62a);},onMoveStop:function(_62b){if(_62b._timer){clearTimeout(_62b._timer);_628.call(this,_62b,_62b._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_62c,_62d){_62c._leftTop=_62d;if(!_62c._timer){var _62e=this;_62c._timer=setTimeout(function(){_62c._timer=null;_628.call(_62e,_62c,_62c._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){dojo.forEach(this.getDescendants(),function(_62f){if(_62f.reset){_62f.reset();}});},validate:function(){var _630=false;return dojo.every(dojo.map(this.getDescendants(),function(_631){_631._hasBeenBlurred=true;var _632=_631.disabled||!_631.validate||_631.validate();if(!_632&&!_630){dojo.window.scrollIntoView(_631.containerNode||_631.domNode);_631.focus();_630=true;}return _632;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_633){if(!_633.name){return;}var _634=map[_633.name]||(map[_633.name]=[]);_634.push(_633);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _635=map[name],_636=dojo.getObject(name,false,obj);if(_636===undefined){continue;}if(!dojo.isArray(_636)){_636=[_636];}if(typeof _635[0].checked=="boolean"){dojo.forEach(_635,function(w,i){w.set("value",dojo.indexOf(_636,w.value)!=-1);});}else{if(_635[0].multiple){_635[0].set("value",_636);}else{dojo.forEach(_635,function(w,i){w.set("value",_636[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_637){var name=_637.name;if(!name||_637.disabled){return;}var _638=_637.get("value");if(typeof _637.checked=="boolean"){if(/Radio/.test(_637.declaredClass)){if(_638!==false){dojo.setObject(name,_638,obj);}else{_638=dojo.getObject(name,false,obj);if(_638===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_638!==false){ary.push(_638);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_638);}else{dojo.setObject(name,[prev,_638],obj);}}else{dojo.setObject(name,_638,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_639){},_getState:function(){var _63a=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_63a,"Error")>=0?"Error":dojo.indexOf(_63a,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_63b){var _63c=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_63b?function(name,val){_63c[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _63d=(this._childConnections=[]),_63e=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_63f){dojo.forEach(["state","disabled"],function(attr){_63e.push(_63f.watch(attr,function(attr,_640,_641){_63c.set("state",_63c._getState());}));});});var _642=function(){if(_63c._onChangeDelayTimer){clearTimeout(_63c._onChangeDelayTimer);}_63c._onChangeDelayTimer=setTimeout(function(){delete _63c._onChangeDelayTimer;_63c._set("value",_63c.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_643){_63d.push(_63c.connect(_643,"onChange",_642));_63e.push(_643.watch("disabled",_642));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_644,_645){this.onValidStateChange(_645=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}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(_646){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _647=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_647.lowest||_647.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_647.last||_647.highest||this._firstFocusItem;}});}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");this._set("dialogId",id);},_setClassAttr:function(_648){this.node.className="dijitDialogUnderlay "+_648;this._set("class",_648);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _649=dojo.window.getBox();os.top=_649.t+"px";os.left=_649.l+"px";is.width=_649.w+"px";is.height=_649.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();delete this.bgIframe;this.domNode.style.display="none";}});}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 role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_64a){this.containerNode.title=_64a;this._set("title",_64a);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_64b,_64c){var newC="dijitTooltipAB"+(_64c.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_64c.charAt(0)=="T"?"Below":"Above");dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},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 _64d=(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(!_64d){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_64d){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,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},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 _64e=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_64e);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();if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}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});this._dndListener=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(" ")};},_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._getMarginSize(this.domNode);var _64f=dojo.window.getBox();if(mb.w>=_64f.w||mb.h>=_64f.h){var w=Math.min(mb.w,Math.floor(_64f.w*0.75)),h=Math.min(mb.h,Math.floor(_64f.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,_650=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_650.l+(p?p.x:(_650.w-bb.w)/2)),t=Math.floor(_650.t+(p?p.y:(_650.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _651=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_651){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_651){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._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _652=dojo.window.getBox();if(!this._oldViewport||_652.h!=this._oldViewport.h||_652.w!=this._oldViewport.w){this.layout();this._oldViewport=_652;}}));this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _653;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_653.stop();delete this._fadeInDeferred;}));_653=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){dijit._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:dojo.hitch(this,function(){if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _654;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_654.stop();delete this._fadeOutDeferred;}));_654=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";dijit._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){dojo.unsubscribe(this._dndListener);}dojo.forEach(this._modalconnects,dojo.disconnect);dijit._DialogLevelManager.hide(this);this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._DialogLevelManager={show:function(_655,_656){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_655);var _657=dijit._underlay;if(!_657||_657._destroyed){_657=dijit._underlay=new dijit.DialogUnderlay(_656);}else{_657.set(_655.underlayAttrs);}var _658=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_657.show();}dojo.style(dijit._underlay.domNode,"zIndex",_658-1);dojo.style(_655.domNode,"zIndex",_658);ds.push({dialog:_655,underlayAttrs:_656,zIndex:_658});},hide:function(_659){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_659){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!dijit._underlay._destroyed){dijit._underlay.hide();}}else{dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);dijit._underlay.set(pd.underlayAttrs);}if(_659.refocus){var _65a=pd.focus;if(!_65a||(pd.dialog&&!dojo.isDescendant(_65a.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_65a=pd.dialog._firstFocusItem;}try{dijit.focus(_65a);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_659);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_65b){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_65b;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:dojo.cache("dijit.form","templates/TextBox.html","<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" dojoAttachPoint=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:dojo.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==dijit.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this._focused&&!this.textbox.value)?"":"none";}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_65c,_65d,_65e){var _65f;if(_65c!==undefined){_65f=this.filter(_65c);if(typeof _65e!="string"){if(_65f!==null&&((typeof _65f!="number")||!isNaN(_65f))){_65e=this.filter(this.format(_65f,this.constraints));}else{_65e="";}}}if(_65e!=null&&_65e!=undefined&&((typeof _65e)!="number"||!isNaN(_65e))&&this.textbox.value!=_65e){this.textbox.value=_65e;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_65f,_65d]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_660){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_660);},_setDisplayedValueAttr:function(_661){if(_661===null||_661===undefined){_661="";}else{if(typeof _661!="string"){_661=String(_661);}}this.textbox.value=_661;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_662,_663){return ((_662==null||_662==undefined)?"":(_662.toString?_662.toString():_662));},parse:function(_664,_665){return _664;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _666=this;setTimeout(function(){_666._handleOnChange(_666.get("value"),false);},0);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){if(dojo.isIE){setTimeout(dojo.hitch(this,function(){var s=dojo.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _667=this.domNode.getElementsByTagName("INPUT");if(_667){for(var i=0;i<_667.length;i++){_667[i].style.fontFamily=ff;}}}}}),0);}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput","_onInput");}else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput");}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&dojo.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}this._updatePlaceHolder();},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var _668;if(dojo.isIE){var _669=dojo.doc.selection.createRange();var _66a=_669.parentElement();_668=_66a==this.textbox&&_669.text.length==0;}else{_668=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_668){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_66b,_66c,stop){var _66d=dojo.global;var _66e=dojo.doc;_66b=dojo.byId(_66b);if(isNaN(_66c)){_66c=0;}if(isNaN(stop)){stop=_66b.value?_66b.value.length:0;}dijit.focus(_66b);if(_66e["selection"]&&dojo.body()["createTextRange"]){if(_66b.createTextRange){var r=_66b.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_66c);r.moveEnd("character",stop-_66c);r.select();}}else{if(_66d["getSelection"]){if(_66b.setSelectionRange){_66b.setSelectionRange(_66c,stop);}}}};}if(!dojo._hasResource["GeoMOOSE.Dialog.AttributeEditor"]){dojo._hasResource["GeoMOOSE.Dialog.AttributeEditor"]=true;dojo.provide("GeoMOOSE.Dialog.AttributeEditor");dojo.declare("GeoMOOSE.Dialog.AttributeEditor",[dijit.Dialog],{closable:true,title:"Edit Attributes",feature_desc:[],layer_path:"",postCreate:function(){this.inherited(arguments);this.content_id=GeoMOOSE.id();var _66f=dojo.create("div",{"id":this.content_id});this.set("content",_66f);dojo.addClass(_66f,["attribute-editor",this.layer_path]);},_updateAttribute:function(attr,_670){this.feature.attributes[attr]=_670;},onSave:function(){},show:function(_671){var _672=_671.feature;var _673=dojo.byId(this.content_id);_673.innerHTML="";var _674=new dijit.layout.BorderContainer({},_673);if(this._main){this._main.destroyRecursive();}var main=dojo.create("div",{});var _675=new dijit.layout.ContentPane({"content":main,"region":"center"});this._main=_675;_674.addChild(_675);_674.startup();this.feature=_672;var _676={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _677=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){_676[_677]=GeoMOOSE.Services.InputType[x];}}}var _678=[];for(var i=0,len=this.feature_desc.length;i<len;i++){var c_id=GeoMOOSE.id();var c=dojo.create("div",{"id":c_id},main);var _679=this.feature_desc[i]["name"];var _67a=this.feature_desc[i]["type"].toLowerCase();if(!GeoMOOSE.isDefined(_676[_67a])){_67a="user";}var _67b={"name":_679,"title":this.feature_desc[i]["label"]};var _67c=["options","url"];for(var x=0,xlen=_67c.length;x<xlen;x++){var _67d=_67c[x];if(GeoMOOSE.isDefined(this.feature_desc[i][_67d])){_67b[_67d]=this.feature_desc[i][_67d];}}var _67e=new _676[_67a](null,_67b);var _67f=this.feature_desc[i]["value"];if(_672.attributes[_679]){_67f=_672.attributes[_679];}_67e.setValue(_67f);if(_67e.requiresRender()){_67e.renderHTML(c_id);}_678.push(_67e);}var _680=new dijit.Toolbar({"region":"top"});_674.addChild(_680);_680.addChild(new dijit.form.Button({"label":"Cancel","iconClass":"dijitIconDelete","onClick":dojo.hitch(this,this.hide)}));_680.addChild(new dijit.form.Button({"label":"Save Changes","iconClass":"dijitIconSave","onClick":dojo.hitch(this,function(){for(var i=0,ii=_678.length;i<ii;i++){this._updateAttribute(_678[i].getName(),_678[i].getValue());}if(this.feature.state!=OpenLayers.State.INSERT){this.feature.state=OpenLayers.State.UPDATE;}this.onSave();this.hide();})}));this.inherited(arguments);}});}if(!dojo._hasResource["GeoMOOSE.Dialog.Download"]){dojo._hasResource["GeoMOOSE.Dialog.Download"]=true;dojo.provide("GeoMOOSE.Dialog.Download");dojo.declare("GeoMOOSE.Dialog.Download",dijit.Dialog,{title:"Download File",download_id:"",download_extension:"",postCreate:function(){this.inherited(arguments);var _681=dojo.create("div",{});this.set("content",_681);dojo.style(_681,{"width":"300px","height":"100px"});var urls=[{label:"View in new Window/Tab",url:"php/download.php?id="+this.download_id+"&ext="+this.download_extension}];urls.push({label:"Download",url:urls[0].url+"&download=true"});urls.push({label:"Close this Window",url:"#"});for(var i=0,ii=urls.length;i<ii;i++){var url=urls[i].url;var _682={"href":url,"innerHTML":urls[i].label};if(url!="#"){_682["target"]="_blank";}var link=dojo.create("a",_682,_681);dojo.addClass(link,"geomooseDownloadLink");dojo.connect(link,"onclick",dojo.hitch(this,this.hide));}}});}if(!dojo._hasResource["GeoMOOSE.Dialog.Error"]){dojo._hasResource["GeoMOOSE.Dialog.Error"]=true;dojo.provide("GeoMOOSE.Dialog.Error");dojo.declare("GeoMOOSE.Dialog.Error",dijit.Dialog,{message:"",postCreate:function(){var _683=dojo.create("div",{"innerHTML":this.message});this.set("content",_683);dojo.style(_683,{"width":"300px","height":"300px"});dojo.addClass(_683,["geomooseErrorMessage"]);}});}if(!dojo._hasResource["GeoMOOSE.Layer"]){dojo._hasResource["GeoMOOSE.Layer"]=true;dojo.provide("GeoMOOSE.Layer");dojo.declare("GeoMOOSE.Layer",null,{label:"",title:"",top:null,controls:{},minscale:null,maxscale:null,drawingTools:false,dynamicLegends:false,legendUrls:[],hasMetadata:false,metadataUrl:"",src:"",displayInCatalog:true,paths:{},_commonParser:function(xml){this.label=xml.getAttribute("title");if(!GeoMOOSE.isDefined(this.label)){this.label=xml.getAttribute("name");}this.title=this.label;this.displayInCatalog=parseBoolean(xml.getAttribute("display-in-catalog"),true);this.tip=xml.getAttribute("tip");this.minscale=parseFloat(xml.getAttribute("minscale"));this.maxscale=parseFloat(xml.getAttribute("maxscale"));this.drawingTools=parseBoolean(xml.getAttribute("drawing"),false);this.controls={};for(var i=0;i<CONFIGURATION.layer_control_order.length;i++){var _684=CONFIGURATION.layer_control_order[i];var _685=parseBoolean(xml.getAttribute(_684),CONFIGURATION.layer_controls[_684].on);this.controls[_684]=_685;}this.showLegends=parseBoolean(xml.getAttribute("show-legend"),true);var _686=xml.getElementsByTagName("legend");this.dynamicLegends=(_686.length<=0);if(!this.dynamicLegends){this.legendUrls=[];for(var i=0,len=_686.length;i<len;i++){this.legendUrls.push(OpenLayers.Util.getXmlNodeValue(_686[i]));}}this.metadataUrl="";var _687=xml.getElementsByTagName("metadata");if(_687.length>0){this.hasMetadata=true;this.metadataUrl=OpenLayers.Util.getXmlNodeValue(_687[0]);}this.autoRefresh=parseFloat(xml.getAttribute("auto-refresh"));if(isNaN(this.autoRefresh)){this.autoRefresh=0;}},saveInitialStatus:function(){this.initialStatus={};for(var path in this.paths){this.initialStatus[path]=this.paths[path];}},getStatusDifference:function(){var ret={"on":[],"off":[]};for(var path in this.paths){if(this.initialStatus[path]!=this.paths[path]){if(this.paths[path]===true){ret["on"].push(path);}else{ret["off"].push(path);}}}return ret;},parseLayerXml:function(_688){this._commonParser(_688);this.paths={};this.src=_688.getAttribute("src");var _689=false;if(_688.hasAttribute("status")){_689=parseBoolean(_688.getAttribute("status"));}var _68a=[];if(GeoMOOSE.isDefined(this.src)){_68a=this.src.split(":");for(var i=0;i<_68a.length;i++){this.paths[_68a[i]]=_689;}}if(this.title==null||!GeoMOOSE.isDefined(this.title)){var _68b="(untitled)";for(var path in this.paths){var _68c=Application.getMapSource(path);if(_68c&&_68c.title){_68b=_68c.title;break;}}this.title=_68b;this.label=_68b;}var _68d={metadataUrl:"metadata",hasMetadata:false,legendUrl:"legend"};for(var name in _68d){if(this[name]==""||this[name]==null||!GeoMOOSE.isDefined(this[name])){for(var path in this.paths){var _68c=Application.getMapSource(path);if(_68c&&_68c._layer&&_68c._layer[name]){this[name]=_68c._layer[name];break;}}}}this.saveInitialStatus();if(_689){GeoMOOSE.changeLayerVisibility(_68a,_689);}},parseFromMapSource:function(_68e){this._commonParser(_68e);var _68f=_68e.getElementsByTagName("layer");var name=_68e.getAttribute("name");this.src=name;this.paths={};for(var i=0;i<_68f.length;i++){var l=_68f[i];var on=parseBoolean(l.getAttribute("status"));var _690=l.getAttribute("name");var path=name+"/"+_690;this.paths[path]=on;}if(_68f.length==0){var _691=parseBoolean(_68e.getAttribute("status"));this.paths[name]=_691;}this.saveInitialStatus();},pathsAsArray:function(){var _692=[];for(var name in this.paths){_692.push(name);}return _692;}});}if(!dojo._hasResource["GeoMOOSE.MapSource"]){dojo._hasResource["GeoMOOSE.MapSource"]=true;dojo.provide("GeoMOOSE.MapSource");dojo.declare("GeoMOOSE._Layer",null,{path:"",name:"",on:false,constructor:function(path,name,on,_693){this.path=path;this.name=name;this.on=on;this.initial_on=_693;this.supports={};},hasChanged:function(){return (this.on==this.initial_on);}});dojo.declare("GeoMOOSE.MapSource",null,{mapbookType:null,_ol_layer:null,_layer:null,path:"",cssName:"",params:{},paths:[],title:null,titles:{},metadata:{},controls:{},clearPopupsOnMove:false,displayInLayerSwitcher:true,_parseParams:function(_694){var _695={};var _696=_694.getElementsByTagName("param");for(var p=0,len=_696.length;p<len;p++){var _697=_696[p];_695[_697.getAttribute("name")]=_697.getAttribute("value");}return _695;},_parseLayers:function(_698){var _699=_698.getElementsByTagName("layer");var _69a=[];for(var i=0,len=_699.length;i<len;i++){var name=_699[i].getAttribute("name");var _69b=_699[i].getAttribute("title");var _69c=_699[i].getAttribute("metadata_url");_69a.push(new GeoMOOSE._Layer(this.path,name,parseBoolean(_699[i].getAttribute("status")),parseBoolean(_699[i].getAttribute("_status"))));this.paths.push(this.path+"/"+name);this.titles[this.path+"/"+name]=_69b;this.metadata[this.path+"/"+name]=_69c;}return _69a;},onLayersChange:function(path,_69d){if(this._ol_layer){this._ol_layer.setVisibility(this.isVisible());}},_getLayersList:function(){var _69e=[];for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].on===true){_69e.push(this.layers[i].name);}}return _69e;},getStatusDifferences:function(){return this._layer.getStatusDifference();},getLayerByName:function(name){for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].name==name){return this.layers[i];}}return null;},isVisible:function(){return (this._getLayersList().length>0);},preParseNode:function(_69f){return _69f;},constructor:function(_6a0){this.clearPopupsOnMove=CONFIGURATION.popups.clearOnMove;this._layer=new GeoMOOSE.Layer();this._layer.parseFromMapSource(_6a0);if(this._layer.autoRefresh>0){setInterval(dojo.hitch(this,this.redraw),this._layer.autoRefresh);}this.paths=[];_6a0=this.preParseNode(_6a0);this.title=_6a0.getAttribute("title");if(!GeoMOOSE.isDefined(this.title)){this.title="layer"+GeoMOOSE.id();}var _6a1=_6a0.getAttribute("hide-from-layers-list");if(GeoMOOSE.isDefined(_6a1)){this.displayInLayerSwitcher=!parseBoolean(_6a1,false);}this.path=_6a0.getAttribute("name");this.cssName=this.path.replace("/","-");this.params=this._parseParams(_6a0);this.layers=this._parseLayers(_6a0);this.attributes={};var _6a2=["opacity","buffer"];for(var i=0,ii=_6a2.length;i<ii;i++){var _6a3=_6a0.getAttribute(_6a2[i]);if(!GeoMOOSE.isDefined(_6a3)){_6a3=null;}this.attributes[_6a2[i]]=_6a3;}this.filter=null;},checkPath:function(path){return (dojo.indexOf(this.paths,path)>=0);},setVisibility:function(path,_6a4){var _6a5=path.split("/");var _6a6=_6a5.pop();var _6a7=false;if(this.checkPath(path)){for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].name==_6a6){if(_6a4!=this.layers[i].on){this.layers[i].on=_6a4;_6a7=true;}}}}if(_6a7){this.onLayersChange(path,_6a4);}},addToMap:function(map){map.addLayers([this._ol_layer]);},setUrl:function(url){},getUrl:function(){return "";},redraw:function(){if(this._ol_layer){this._ol_layer.redraw(true);}},getParameters:function(_6a8){return this.params;},getOpacity:function(){var lay=this._ol_layer;if(lay.opacity!=null){return lay.opacity;}return 1;},setOpacity:function(_6a9){var _6aa=this._ol_layer;if(_6a9>1){_6a9=1;}if(_6a9<0){_6a9=0;}if(_6aa){_6aa.setOpacity(_6a9);}},getLegendUrls:function(_6ab){return [];},moveUp:function(){var _6ac=Map.getLayerIndex(this._ol_layer);var len=Map.layers.length;var _6ad=1;for(var i=_6ac+1;i<len;i++){if(Map.layers[i].getVisibility()){_6ad=i-_6ac;break;}}Map.raiseLayer(this._ol_layer,_6ad);},moveDown:function(){var _6ae=Map.getLayerIndex(this._ol_layer);var _6af=1;for(var i=_6ae-1;i>=0;i--){if(Map.layers[i].getVisibility()){_6af=i-1;break;}}Map.setLayerIndex(this._ol_layer,_6af);},updateParameters:function(_6b0){dojo.mixin(this.params,_6b0);},clearParameters:function(_6b1){this.params={};},printable:false,isPrintable:function(){return this.printable;},print:function(){},_createBlankLayer:function(name){return new OpenLayers.Layer.WMS(name,"images/blank.gif",{},{singleTile:true});},deactivate:function(){for(var _6b2 in this.controls){this.controls[_6b2].deactivate();}},asLayer:function(){return this._layer;},updateFilter:function(_6b3){}});}if(!dojo._hasResource["GeoMOOSE.MapSource.Vector"]){dojo._hasResource["GeoMOOSE.MapSource.Vector"]=true;dojo.provide("GeoMOOSE.MapSource.Vector");dojo.declare("GeoMOOSE.MapSource.Vector",GeoMOOSE.MapSource,{canSave:false,clusteringEnabled:false,popupTemplate:null,displayInLayerSwitcher:false,checkPath:function(path){return (path==this.path);},isVisible:function(){return this.visibility;},setVisibility:function(path,_6b4){if(this.checkPath(path)){if(this.visibility!=_6b4){this.visibility=_6b4;this._ol_layer.setVisibility(this.isVisible());if(_6b4===true){this._ol_layer.refresh({force:true});}this.onLayersChange(path,_6b4);}}},redraw:function(){this._ol_layer.refresh({force:true});},_createOLLayer:function(_6b5){this._ol_layer=new OpenLayers.Layer.Vector(this.title,{styleMap:this.style_map});this._ol_layer.setVisibility(this.isVisible());},_addOLHooks:function(){this._ol_layer.events.register("beforefeatureadded",this,function(_6b6){var _6b7=_6b6.feature;if(!GeoMOOSE.isDefined(_6b7.attributes)){_6b7.attributes={};}for(var i=0,len=this.attributes.length;i<len;i++){var attr=this.attributes[i];var _6b8="";if(GeoMOOSE.isDefined(attr["default"])){_6b8=attr["default"];}if(!GeoMOOSE.isDefined(_6b7.attributes[attr["name"]])){_6b7.attributes[attr["name"]]=_6b8;}}});},addToMap:function(map){this.inherited(arguments);var _6b9=new OpenLayers.Control.ModifyFeature(this._ol_layer,{standalone:true,vertexRenderIntent:"select"});this.controls={"polygon":new OpenLayers.Control.DrawFeature(this._ol_layer,OpenLayers.Handler.Polygon,{}),"line":new OpenLayers.Control.DrawFeature(this._ol_layer,OpenLayers.Handler.Path,{}),"point":new OpenLayers.Control.DrawFeature(this._ol_layer,OpenLayers.Handler.Point,{}),"modify":new OpenLayers.Control.ModifyFeature(this._ol_layer,{vertexRenderIntent:"select"}),"popups":new OpenLayers.Control.SelectFeature(this._ol_layer,{highlightOnly:true,includeXY:true,hover:true}),"edit_attributes":new OpenLayers.Control.SelectFeature(this._ol_layer,{box:true}),"remove":new GeoMOOSE.Control.DeleteFeature(this._ol_layer),"remove_all":{"activate":dojo.hitch(this,function(){this._ol_layer.removeAllFeatures();}),"deactivate":function(){},"setMap":function(){},"draw":function(){}}};var _6ba=function(){dojo.query(".olMap").addClass("editing-mode");};var _6bb=function(){dojo.query(".olMap").removeClass("editing-mode");};var _6bc={"point":"editing-mode","line":"editing-mode","polygon":"editing-mode","modify":"editing-mode"};for(var _6bd in this.controls){map.addControl(this.controls[_6bd]);Tools[this.title+"_"+_6bd]=this.controls[_6bd];}for(var _6bd in _6bc){this.controls[_6bd].events.register("activate",null,_6ba);this.controls[_6bd].events.register("deactivate",null,_6bb);}this.controls["edit_attributes"].events.register("featurehighlighted",this,function(ev){var _6be=new GeoMOOSE.Dialog.AttributeEditor({"feature_desc":this.attributes,"layer_path":this.path});dojo.connect(_6be,"hide",dojo.hitch(this,function(){this.controls["edit_attributes"].unselectAll();}));dojo.connect(_6be,"onSave",dojo.hitch(this,function(){this.save();}));_6be.show(ev);});this.controls["popups"].events.register("featurehighlighted",this,function(ev){var _6bf=[];if(ev.feature.cluster){_6bf=ev.feature.cluster;}else{_6bf.push(ev.feature);}var html="";for(var i=0,ii=_6bf.length;i<ii;i++){var _6c0=_6bf[i];if(_6c0._html){}else{var _6c1=dojo.string.substitute(this.popupTemplate,_6c0.attributes);_6c0._html=_6c1;}html+=_6c0._html;}if(ev.feature._popup){}else{var _6c2="popup"+GeoMOOSE.id();ev.feature._popup=_6c2;this._ol_layer.map.addPopup({clearOnMove:this.clearPopupsOnMove,id:_6c2,classNames:[this.cssName],content:html});}});this.controls["popups"].events.register("featureunhighlighted",this,function(ev){var map=ev.feature.layer.map;var _6c3=ev.feature._popup;map.removePopup(_6c3);ev.feature._popup=null;});},editable:true,constructor:function(_6c4){this.supports={"point":true,"line":true,"polygon":true,"modify":true,"edit_attributes":true,"remove":true,"remove_all":true,"popups":true};var _6c5=_6c4.getAttribute("supports");if(GeoMOOSE.isDefined(_6c5)&&_6c5!=""){_6c5=_6c5.split(",");if(_6c5.length>0){for(var _6c6 in this.supports){this.supports[_6c6]=(dojo.indexOf(_6c5,_6c6)>=0);}}}var urls=_6c4.getElementsByTagName("url");if(urls.length>0){this.url=OpenLayers.Util.getXmlNodeValue(_6c4.getElementsByTagName("url")[0]);}var _6c7=_6c4.getElementsByTagName("attribute");this.attributes=[];for(var i=0,len=_6c7.length;i<len;i++){var attr=_6c7[i];var _6c8=attr.getAttribute("label");var _6c9=attr.getAttribute("name"),_6ca=attr.getAttribute("type");var _6cb=attr.getAttribute("default-value");var _6cc=parseBoolean(attr.getAttribute("mandatory"),false);var desc={"name":_6c9,"type":_6ca,"default":_6cb,"mandatory":_6cc,"label":_6c8};var _6cd=attr.getElementsByTagName("option");if(_6cd.length>0){desc["options"]=[];for(var o=0,oo=_6cd.length;o<oo;o++){desc["options"].push({"value":_6cd[o].getAttribute("value"),"name":_6cd[o].firstChild.nodeValue});}}var _6ce=["url"];for(var ch=0,_6cf=attr.childNodes.length;ch<_6cf;ch++){var _6d0=attr.childNodes[ch];if(_6d0.tagName){var _6d1=_6d0.tagName.toLowerCase();if(_6ce.indexOf(_6d1)>=0){desc[_6d1]=OpenLayers.Util.getXmlNodeValue(_6d0);}}}this.attributes.push(desc);}var _6d2=_6c4.getElementsByTagName("style");var _6d3={};for(var i=0,len=_6d2.length;i<len;i++){var _6d4=_6d2[i].getAttribute("type");var _6d5=_6d2[i].getAttribute("intent");var _6d6=OpenLayers.Util.getXmlNodeValue(_6d2[i]);if(!GeoMOOSE.isDefined(_6d5)||_6d5==""){_6d5="default";}if(_6d4=="stylemap"){var _6d7=dojo.fromJson(_6d6);if(GeoMOOSE.isDefined(_6d3[_6d5])){dojo.mixin(_6d3[_6d5],_6d7);}else{_6d3[_6d5]=_6d7;}}else{if(_6d4=="sld"){}}}if(GeoMOOSE.isDefined(_6d3["select"])){if(!GeoMOOSE.isDefined(_6d3["select"]["label"])){dojo.mixin(_6d3["select"],{"label":""});}}else{_6d3["select"]={"label":""};}var _6d8={defaultStyle:false};var _6d9=_6c4.getElementsByTagName("clustering");if(_6d9.length>0){_6d9=_6d9[0];if(parseBoolean(_6d9.getAttribute("enabled"),false)){this.clusteringEnabled=true;var _6da=_6d9.getAttribute("min-radius");var _6db=_6d9.getAttribute("max-radius");if(!GeoMOOSE.isDefined(_6da)){_6da=10;}else{_6da=parseFloat(_6da);}if(!GeoMOOSE.isDefined(_6db)){_6db=25;}else{_6db=parseFloat(_6db);}var _6dc=function(_6dd){return Math.max(_6da,Math.min(_6dd.attributes.count,_6db));};_6d8.context={radius:_6dc};}}var _6de=new OpenLayers.Style();for(var _6d5 in _6d3){var _6df=dojo.clone(OpenLayers.Feature.Vector.style[_6d5]);dojo.mixin(_6df,_6d3[_6d5]);_6d3[_6d5]=_6df;_6d3[_6d5]=new OpenLayers.Style(_6d3[_6d5],_6d8);}this.style_map=new OpenLayers.StyleMap(_6d3);var _6e0=_6c4.getElementsByTagName("popup-template");if(_6e0.length>0){this.popupTemplate=OpenLayers.Util.getXmlNodeValue(_6e0[0]);}var _6cd={};this.visibility=parseBoolean(_6c4.getAttribute("status"),false);this._createOLLayer(_6cd);this._addOLHooks();},save:function(){},printable:true,print:function(){var _6e1=this._ol_layer;var _6e2={"type":"vector","features":[]};for(var i=0,len=_6e1.features.length;i<len;i++){_6e2.features.push({"geometry":_6e1.features[i].geometry.toString(),"attributes":_6e1.features[i].attributes,"style":_6e1.styleMap.createSymbolizer(_6e1.features[i])});}return _6e2;}});GeoMOOSE.registerMapSourceType("vector",GeoMOOSE.MapSource.Vector);}if(!dojo._hasResource["GeoMOOSE.MapSource.Vector.WFS"]){dojo._hasResource["GeoMOOSE.MapSource.Vector.WFS"]=true;dojo.provide("GeoMOOSE.MapSource.Vector.WFS");dojo.declare("GeoMOOSE.MapSource.Vector.WFS",[GeoMOOSE.MapSource.Vector],{canSave:true,_createOLLayer:function(_6e3){var _6e4=[new OpenLayers.Strategy.BBOX()];if(this.canSave){this.save_strategy=new OpenLayers.Strategy.Save({auto:true});_6e4.push(this.save_strategy);}if(this.clusteringEnabled){_6e4.push(new OpenLayers.Strategy.Cluster());}this._ol_layer=new OpenLayers.Layer.Vector(this.title,{strategies:_6e4,projection:this.srsName,styleMap:this.style_map,visibility:false,protocol:new OpenLayers.Protocol.WFS({version:"1.1.0",srsName:this.srsName,url:this.url,filter:this.filter,featureNS:this.featureNS,featurePrefix:this.featurePrefix,featureType:this.featureType,geometryName:this.featureGeometryName,schema:this.featureSchema})});},preParseNode:function(_6e5){var _6e6={"featureNS":"feature-namespace","featurePrefix":"feature-prefix","featureType":"feature-type","featureSchema":"schema","featureGeometryName":"geometry-name"};var name=_6e5.getAttribute("name");for(var name in _6e6){var _6e7=_6e5.getElementsByTagName(_6e6[name]);if(_6e7.length>0){this[name]=OpenLayers.Util.getXmlNodeValue(_6e7[0]);}else{GeoMOOSE.warning("Missing \""+_6e6[name]+"\" from \""+name+"\", this may cause errors if trying to use this layer for editing.");}}this.srsName=_6e5.getAttribute("srs");if(!GeoMOOSE.isDefined(this.srsName)){this.srsName=CONFIGURATION.projection;}return _6e5;},constructor:function(_6e8){this.filter=null;var _6e9=_6e8.getElementsByTagName("filter");if(_6e9.length>0){var _6ea=_6e9[0];if(_6ea.getAttribute("type")=="cql"){this.updateFilter(OpenLayers.Util.getXmlNodeValue(_6ea));}}},save:function(){this.save_strategy.save();},updateFilter:function(_6eb){var _6ec=new OpenLayers.Filter.Logical();var _6ed=new OpenLayers.Format.CQL();try{_6ec=_6ed.read(_6eb);}catch(err){}if(_6ec){this.filter=_6ec;this._ol_layer.filter=this.filter;this._ol_layer.redraw({force:true});this._ol_layer.refresh({force:true});}}});GeoMOOSE.registerMapSourceType("wfs",GeoMOOSE.MapSource.Vector.WFS);}if(!dojo._hasResource["GeoMOOSE.MapSource.Vector.GeoJSON"]){dojo._hasResource["GeoMOOSE.MapSource.Vector.GeoJSON"]=true;dojo.provide("GeoMOOSE.MapSource.Vector.GeoJSON");dojo.declare("GeoMOOSE.MapSource.Vector.GeoJSON",[GeoMOOSE.MapSource.Vector],{canSave:false,_createOLLayer:function(_6ee){var _6ef=[new OpenLayers.Strategy.Fixed()];this._format=new OpenLayers.Format.GeoJSON();this._ol_layer=new OpenLayers.Layer.Vector(this.title,{strategies:_6ef,projection:new OpenLayers.Projection("EPSG:4326"),styleMap:this.style_map,visibility:false,protocol:new OpenLayers.Protocol.HTTP({url:this.url,format:this._format})});},setUrl:function(url){this._ol_layer.protocol=new OpenLayers.Protocol.HTTP({url:url,format:this._format});this._ol_layer.refresh({force:true});},preParseNode:function(_6f0){return _6f0;},save:function(){this.save_strategy.save();}});GeoMOOSE.registerMapSourceType("geojson",GeoMOOSE.MapSource.Vector.GeoJSON);}if(!dojo._hasResource["GeoMOOSE.MapSource.WMS"]){dojo._hasResource["GeoMOOSE.MapSource.WMS"]=true;dojo.provide("GeoMOOSE.MapSource.WMS");dojo.declare("GeoMOOSE.MapSource.WMS",[GeoMOOSE.MapSource],{_createOLLayer:function(_6f1){this._ol_layer=new OpenLayers.Layer.WMS(this.title,this.urls,this.params,_6f1);},constructor:function(_6f2){this.urls=[];var urls=_6f2.getElementsByTagName("url");for(var i=0,len=urls.length;i<len;i++){this.urls.push(OpenLayers.Util.getXmlNodeValue(urls[i]));}var _6f3=CONFIGURATION.layer_options.transitionEffect;if(_6f3=="null"){_6f3=null;}var _6f4={singleTile:!parseBoolean(_6f2.getAttribute("tiled"),false),isBaseLayer:false,ratio:CONFIGURATION.layer_options.ratio,buffer:CONFIGURATION.layer_options.buffer,transitionEffect:_6f3,visibility:this.isVisible(),popups:parseBoolean(_6f2.getAttribute("popups"),true)};_6f3=_6f2.getAttribute("transitionEffect");if(_6f3){if(_6f3=="null"){_6f3=null;}_6f4.transitionEffect=_6f3;}if(_6f4.singleTile){var _6f5=parseFloat(_6f2.getAttribute("buffer"));if(_6f5){_6f4.ratio=_6f5;}}else{var w=_6f2.getAttribute("width");var h=_6f2.getAttribute("height");if(w&&h){_6f4.tileSize=new OpenLayers.Size(parseFloat(w),parseFloat(h));}var _6f5=parseInt(_6f2.getAttribute("buffer"));if(_6f5){_6f4.buffer=_6f5;}}if(!GeoMOOSE.isDefined(this.params["FORMAT"])){this.params["FORMAT"]="image/png";}if(!GeoMOOSE.isDefined(this.params["TRANSPARENT"])){this.params["TRANSPARENT"]="TRUE";}this._createOLLayer(_6f4);if(GeoMOOSE.isDefined(this.attributes["opacity"])){this.setOpacity(parseFloat(this.attributes["opacity"]));}this.updateParameters({});this.supports={"popups":true};this.onLayersChange();},addToMap:function(map){this.inherited(arguments);var _6f6=new OpenLayers.Control.WMSGetFeatureInfo({"url":this.urls[0],"layers":[this._ol_layer],"hover":true,"queryVisible":true,"vendorParams":this.params});_6f6._activate=_6f6.activate;_6f6.activate=function(_6f7){if(GeoMOOSE.isDefined(_6f7)&&GeoMOOSE.isDefined(_6f7.title)){this.title=_6f7.title;}else{this.title="&nbsp;";}this._activate();};_6f6.handleResponse=function(xy,_6f8,url){this.triggerGetFeatureInfo(_6f8,xy,[]);};_6f6.events.register("getfeatureinfo",{layer:this,control:_6f6},function(ev){var _6f9=this.layer._ol_layer.map;var _6fa="popup"+GeoMOOSE.id();if(ev.text&&ev.text.length>1){_6f9.addPopup({clearOnMove:this.layer.clearPopupsOnMove,renderOnAdd:true,renderXY:ev.xy,id:_6fa,title:this.control.title,classNames:[this.layer.cssName],content:ev.text});}});this.controls={"popups":_6f6};map.addControl(this.controls["popups"]);},onLayersChange:function(path,_6fb){this._ol_layer.params["LAYERS"]=this._getLayersList().join(",");this.inherited(arguments);this._ol_layer.redraw(true);},getUrl:function(){return this.urls;},setUrl:function(url){this.urls=[url];this._ol_layer.url=url;},updateParameters:function(_6fc){this.inherited(arguments);this._ol_layer.mergeNewParams(this.params);},clearParameters:function(){var _6fd=["service","version","request","styles","format"];var _6fe={};for(var i=0,ii=_6fd.length;i<ii;i++){_6fe[_6fd[i]]=this._ol_layer.DEFAULT_PARAMS[_6fd[i]];}this.params={};this._ol_layer.params=_6fe;},getLegendUrls:function(_6ff){var urls=this._ol_layer.url;var _700={};for(var k in this._ol_layer.params){_700[k]=this._ol_layer.params[k];}_700["REQUEST"]="GetLegendGraphic";_700["SCALE"]=GeoMOOSE.getScale();_700["WIDTH"]=250;var ls=_700["LAYERS"].split(",");if(!GeoMOOSE.isDefined(_700["STYLES"])){_700["STYLES"]="";}var ss=_700["STYLES"].split(",");var _701={};for(var i in ls){_701[ls[i]]=ss[i];}delete _700["LAYERS"];delete _700["STYLES"];var _702=[];for(var k in _700){_702.push(k+"="+_700[k]);}var _703=urls[0];if(_703.indexOf("?")>0){_703+="&";}else{_703+="?";}_703+=_702.join("&");var _704=this._getLayersList();var _705=[];var _706=false;if(_6ff instanceof Array){for(var i=0,len=_6ff.length;i<len;i++){_6ff[i]=_6ff[i].split("/")[1];}for(var p=0,plen=_6ff.length;p<plen;p++){if(dojo.indexOf(_704,_6ff[p])>=0){var url=_703;if(GeoMOOSE.isDefined(_6ff[p])){if(GeoMOOSE.isDefined(_701[_6ff[p]])){url+="&STYLE="+_701[_6ff[p]];}_705.push(url+"&LAYER="+_6ff[p]);}}}}else{for(var i=0,len=_704.length;i<len;i++){var st=_701[_704[i]];if(!GeoMOOSE.isDefined(st)){st="";}_705.push(_703+"&LAYER="+_704[i]+"&STYLE="+st);}}return _705;},getLayerParams:function(_707){if(_707===true){var p={};dojo.mixin(p,OpenLayers.Util.upperCaseObject(this._ol_layer.params));dojo.mixin(p,this.params);return p;}return this.params;},printable:true,print:function(){var _708={"type":"wms","url":this.urls[0],"layers":this._getLayersList(),"legends":this.getLegendUrls(),"params":this.getLayerParams(true),"zindex":this._ol_layer.getZIndex(),"opacity":this._ol_layer.opacity};return _708;}});GeoMOOSE.registerMapSourceType("wms",GeoMOOSE.MapSource.WMS);}if(!dojo._hasResource["GeoMOOSE.MapSource.MapServer"]){dojo._hasResource["GeoMOOSE.MapSource.MapServer"]=true;dojo.provide("GeoMOOSE.MapSource.MapServer");dojo.declare("GeoMOOSE.MapSource.MapServer",[GeoMOOSE.MapSource.WMS],{preParseNode:function(_709){var urls=_709.getElementsByTagName("url").length;var doc=_709.ownerDocument;if(urls==0){var _70a=doc.createElement("url");_70a.appendChild(doc.createTextNode(CONFIGURATION.mapserver_url));_709.appendChild(_70a);}var file="";try{file=OpenLayers.Util.getXmlNodeValue(_709.getElementsByTagName("file")[0]);if(file.substring(0,1)=="."){file=CONFIGURATION.mapfile_root+file.substring(1);}}catch(e){GeoMOOSE.warning("No file entry for mapserver-type mapsource: "+_709.getAttribute("name"));}var _70b=doc.createElement("param");_70b.setAttribute("name","MAP");_70b.setAttribute("value",file);_709.appendChild(_70b);return _709;}});GeoMOOSE.registerMapSourceType("mapserver",GeoMOOSE.MapSource.MapServer);}if(!dojo._hasResource["GeoMOOSE.MapSource.TMS"]){dojo._hasResource["GeoMOOSE.MapSource.TMS"]=true;dojo.provide("GeoMOOSE.MapSource.TMS");dojo.declare("GeoMOOSE.MapSource.TMS",[GeoMOOSE.MapSource],{_createOLLayer:function(_70c){this._ol_layer=new OpenLayers.Layer.TMS(this.title,this.urls,_70c);},constructor:function(_70d){this.urls=[];var urls=_70d.getElementsByTagName("url");for(var i=0,len=urls.length;i<len;i++){this.urls.push(OpenLayers.Util.getXmlNodeValue(urls[i]));}var _70e=CONFIGURATION.layer_options.transitionEffect;if(_70e=="null"){_70e=null;}var _70f={visibility:this.isVisible(),isBaseLayer:false,sphericalMercator:true,buffer:CONFIGURATION.layer_options.buffer,transitionEffect:_70e};_70e=_70d.getAttribute("transitionEffect");if(_70e){if(_70e=="null"){_70e=null;}_70f.transitionEffect=_70e;}var w=_70d.getAttribute("width");var h=_70d.getAttribute("height");if(!GeoMOOSE.isDefined(w)){w=256;}if(!GeoMOOSE.isDefined(h)){h=256;}_70f.tileSize=new OpenLayers.Size(parseFloat(w),parseFloat(h));var _710=parseInt(_70d.getAttribute("buffer"));if(_710){_70f.buffer=_710;}var _711="png";if(GeoMOOSE.isDefined(this.params["FORMAT"])){_711=this.params["FORMAT"];delete this.params["FORMAT"];}var _712=_711.indexOf("/");if(_712>0){_711=_711.substring(_712+1);}_70f["type"]=_711;_70f["layername"]=this.layers[0].name;dojo.mixin(_70f,this.params);if(!GeoMOOSE.isDefined(this.title)){this.title=this.path;}this._createOLLayer(_70f);this.onLayersChange();},onLayersChange:function(path,_713){this.inherited(arguments);this._ol_layer.redraw();},getUrl:function(){return this.urls;},setUrl:function(url){this.urls=url;this._ol_layer.url=url;}});GeoMOOSE.registerMapSourceType("tms",GeoMOOSE.MapSource.TMS);}if(!dojo._hasResource["GeoMOOSE.MapSource.XYZ"]){dojo._hasResource["GeoMOOSE.MapSource.XYZ"]=true;dojo.provide("GeoMOOSE.MapSource.XYZ");dojo.declare("GeoMOOSE.MapSource.XYZ",[GeoMOOSE.MapSource.TMS],{_createOLLayer:function(_714){this._ol_layer=new OpenLayers.Layer.XYZ(this.title,this.urls,_714);}});GeoMOOSE.registerMapSourceType("xyz",GeoMOOSE.MapSource.XYZ);}if(!dojo._hasResource["GeoMOOSE.MapSource.Google"]){dojo._hasResource["GeoMOOSE.MapSource.Google"]=true;dojo.provide("GeoMOOSE.MapSource.Google");dojo.declare("GeoMOOSE.MapSource.Google",[GeoMOOSE.MapSource],{googleAvailable:false,showWarningMessage:true,_createOLLayer:function(_715){this._ol_layer=new OpenLayers.Layer.Google(this.title,_715);},constructor:function(_716){this.googleAvailable=!(!GeoMOOSE.isDefined(window.google)||!GeoMOOSE.isDefined(google.maps)||!GeoMOOSE.isDefined(google.maps.MapTypeId.TERRAIN));if(!this.googleAvailable){this._ol_layer=this._createBlankLayer(this.title);return false;}var _717={visibility:this.isVisible(),isBaseLayer:false};var _718={"physical":google.maps.MapTypeId.TERRAIN,"streets":null,"hybrid":google.maps.MapTypeId.HYBRID,"satellite":google.maps.MapTypeId.SATELLITE};var _719=_716.getAttribute("google-type");var _71a=_718[_719];if(GeoMOOSE.isDefined(_71a)){_717["type"]=_71a;}this._createOLLayer(_717);},addToMap:function(map){this.inherited(arguments);this.showWarningMessage=false;this.onLayersChange();},onLayersChange:function(path,_71b){if(this.googleAvailable){this.inherited(arguments);this._ol_layer.redraw();}else{if(this.showWarningMessage){var _71c="Warning, this application has a Google Maps layer defined in the mapbook, but the Google Maps library has not been included. This could be due to a configuration error by the Administrator or a lack of access to the Internet.";GeoMOOSE.error(_71c);}}this.showWarningMessage=true;}});GeoMOOSE.registerMapSourceType("google",GeoMOOSE.MapSource.Google);}if(!dojo._hasResource["GeoMOOSE.MapSource.AGS"]){dojo._hasResource["GeoMOOSE.MapSource.AGS"]=true;dojo.provide("GeoMOOSE.MapSource.AGS");dojo.declare("GeoMOOSE.MapSource.AGS",[GeoMOOSE.MapSource.WMS],{_createOLLayer:function(_71d){this._ol_layer=new OpenLayers.Layer.ArcGIS93Rest(this.title,this.urls,this.params,_71d);},printable:true,print:function(){var _71e={"type":"ags","url":this.urls[0],"layers":this._getLayersList()};return _71e;}});GeoMOOSE.registerMapSourceType("ags",GeoMOOSE.MapSource.AGS);}if(!dojo._hasResource["GeoMOOSE.Tab"]){dojo._hasResource["GeoMOOSE.Tab"]=true;dojo.provide("GeoMOOSE.Tab");dojo.declare("GeoMOOSE.Tab",[dijit.layout.ContentPane],{targetId:null,title:"GmTabUndefined",postCreate:function(){this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_71f){this._set("readOnly",_71f);dojo.attr(this.focusNode,"readOnly",_71f);dijit.setWaiState(this.focusNode,"readonly",_71f);},_setValueAttr:function(_720,_721){if(typeof _720=="string"){this._set("value",_720);dojo.attr(this.focusNode,"value",_720);_720=true;}if(this._created){this.set("checked",_720,_721);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_722){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this._set("value",this.params.value||"on");dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);},_onClick:function(e){if(this.readOnly){dojo.stopEvent(e);return false;}return this.inherited(arguments);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_723){this.inherited(arguments);if(!this._created){return;}if(_723){var _724=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_725){if(_725.name==_724.name&&_725!=_724.focusNode&&_725.form==_724.focusNode.form){var _726=dijit.getEnclosingWidget(_725);if(_726&&_726.checked){_726.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!dojo._hasResource["dijit.form.DropDownButton"]){dojo._hasResource["dijit.form.DropDownButton"]=true;dojo.provide("dijit.form.DropDownButton");}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");dojo.getObject("colors",true,dojo);(function(){var _727=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_728,obj){var m=_728.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_727(m1,m2,H+1/3)*256,_727(m1,m2,H)*256,_727(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _729=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_729(t.r,0,255));t.g=Math.round(_729(t.g,0,255));t.b=Math.round(_729(t.b,0,255));t.a=_729(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dijit._PaletteMixin"]){dojo._hasResource["dijit._PaletteMixin"]=true;dojo.provide("dijit._PaletteMixin");dojo.declare("dijit._PaletteMixin",[dijit._CssStateMixin],{defaultTimeout:500,timeoutChangeRate:0.9,value:null,_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:"",_preparePalette:function(_72a,_72b,_72c){this._cells=[];var url=this._blankGif;_72c=_72c||dojo.getObject(this.dyeClass);for(var row=0;row<_72a.length;row++){var _72d=dojo.create("tr",{tabIndex:"-1"},this.gridNode);for(var col=0;col<_72a[row].length;col++){var _72e=_72a[row][col];if(_72e){var _72f=new _72c(_72e,row,col);var _730=dojo.create("td",{"class":this.cellClass,tabIndex:"-1",title:_72b[_72e],role:"presentation"});_72f.fillCell(_730,url);this.connect(_730,"ondijitclick","_onCellClick");this._trackMouseState(_730,this.cellClass);dojo.place(_730,_72d);_730.index=this._cells.length;this._cells.push({node:_730,dye:_72f});}}}this._xDim=_72a[0].length;this._yDim=_72a.length;var _731={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1};for(var key in _731){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _732=_731[key];return function(_733){this._navigateByKey(_732,_733);};}(),this.timeoutChangeRate,this.defaultTimeout));}},postCreate:function(){this.inherited(arguments);this._setCurrent(this._cells[0].node);},focus:function(){dijit.focus(this._currentFocus);},_onCellClick:function(evt){var _734=evt.currentTarget,_735=this._getDye(_734).getValue();this._setCurrent(_734);setTimeout(dojo.hitch(this,function(){dijit.focus(_734);this._setValueAttr(_735,true);}));dojo.removeClass(_734,"dijitPaletteCellHover");dojo.stopEvent(evt);},_setCurrent:function(node){if("_currentFocus" in this){dojo.attr(this._currentFocus,"tabIndex","-1");}this._currentFocus=node;if(node){dojo.attr(node,"tabIndex",this.tabIndex);}},_setValueAttr:function(_736,_737){if(this._selectedCell>=0){dojo.removeClass(this._cells[this._selectedCell].node,"dijitPaletteCellSelected");}this._selectedCell=-1;if(_736){for(var i=0;i<this._cells.length;i++){if(_736==this._cells[i].dye.getValue()){this._selectedCell=i;dojo.addClass(this._cells[i].node,"dijitPaletteCellSelected");break;}}}this._set("value",this._selectedCell>=0?_736:null);if(_737||_737===undefined){this.onChange(_736);}},onChange:function(_738){},_navigateByKey:function(_739,_73a){if(_73a==-1){return;}var _73b=this._currentFocus.index+_739;if(_73b<this._cells.length&&_73b>-1){var _73c=this._cells[_73b].node;this._setCurrent(_73c);setTimeout(dojo.hitch(dijit,"focus",_73c),0);}},_getDye:function(cell){return this._cells[cell.index].dye;}});}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated,dijit._PaletteMixin],{palette:"7x10",_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},templateString:dojo.cache("dijit","templates/ColorPalette.html","<div class=\"dijitInline dijitColorPalette\">\n\t<table class=\"dijitPaletteTable\" cellSpacing=\"0\" cellPadding=\"0\">\n\t\t<tbody dojoAttachPoint=\"gridNode\"></tbody>\n\t</table>\n</div>\n"),baseClass:"dijitColorPalette",buildRendering:function(){this.inherited(arguments);this._preparePalette(this._palettes[this.palette],dojo.i18n.getLocalization("dojo","colors",this.lang),dojo.declare(dijit._Color,{hc:dojo.hasClass(dojo.body(),"dijit_a11y"),palette:this.palette}));}});dojo.declare("dijit._Color",dojo.Color,{template:"<span class='dijitInline dijitPaletteImg'>"+"<img src='${blankGif}' alt='${alt}' class='dijitColorPaletteSwatch' style='background-color: ${color}'/>"+"</span>",hcTemplate:"<span class='dijitInline dijitPaletteImg' style='position: relative; overflow: hidden; height: 12px; width: 14px;'>"+"<img src='${image}' alt='${alt}' style='position: absolute; left: ${left}px; top: ${top}px; ${size}'/>"+"</span>",_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},constructor:function(_73d,row,col){this._alias=_73d;this._row=row;this._col=col;this.setColor(dojo.Color.named[_73d]);},getValue:function(){return this.toHex();},fillCell:function(cell,_73e){var html=dojo.string.substitute(this.hc?this.hcTemplate:this.template,{color:this.toHex(),blankGif:_73e,alt:this._alias,image:this._imagePaths[this.palette].toString(),left:this._col*-20-5,top:this._row*-20-5,size:this.palette=="7x10"?"height: 145px; width: 206px":"height: 64px; width: 86px"});dojo.place(html,cell);}});}if(!dojo._hasResource["GeoMOOSE.ServiceInputTypes"]){dojo._hasResource["GeoMOOSE.ServiceInputTypes"]=true;dojo.provide("GeoMOOSE.ServiceInputTypes");GeoMOOSE.Services={};GeoMOOSE.Services.InputType=OpenLayers.Class({value:null,input:null,initialize:function(_73f,_740){this.input=_73f;this.options={renderable:false,title:""};OpenLayers.Util.extend(this.options,_740||{});if(_73f!=null){if(_73f.getAttribute("value")){this.value=_73f.getAttribute("value");}if(_73f.childNodes.length>0){this.value=OpenLayers.Util.getXmlNodeValue(_73f);}}},requiresRender:function(){return this.options.renderable;},setValue:function(_741){this.value=_741;if(this.input){var node=this.input;if(node.childNodes){while(node.childNodes.length>0){node.removeChild(node.childNodes[0]);}}node.appendChild(node.ownerDocument.createCDATASection(this.getValue()));}},getValue:function(){if(!GeoMOOSE.isDefined(this.value)){return "";}return this.value;},getName:function(){if(GeoMOOSE.isDefined(this.options.name)){return this.options.name;}if(!GeoMOOSE.isDefined(this.input)){return "";}return this.input.getAttribute("name");},renderHTML:function(_742){},getTitle:function(){if(this.input){return this.input.getAttribute("title");}else{if(this.options.title){return this.options.title;}}return "";},MAPBOOK_NAME:null});GeoMOOSE.Services.InputType.Hidden=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"hidden"});GeoMOOSE.Services.InputType.Extent=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"extent",getValue:function(){var _743=this.input.getAttribute("delim");if(!_743){_743=",";}return Map.getExtent().toArray().join(_743);}});GeoMOOSE.Services.InputType.VisibleLayers=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"visiblelayers",getValue:function(){var _744=this.input.getAttribute("delim");if(!_744){_744=":";}return GeoMOOSE.getVisibleLayers().join(_744);}});GeoMOOSE.Services.InputType.Sketches=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"sketches",getValue:function(){var _745=Map.getLayersByName("sketchlayer")[0];var wkt=new OpenLayers.Format.WKT();var _746=[];for(var i=0;i<_745.features.length;i++){var _747=_745.features[i];var _748={};_748["wkt"]=wkt.write(_747);for(var k in _747.attributes){_748[k]=_747.attributes[k];}_746.push(_748);}var json=new OpenLayers.Format.JSON();return json.write(_746);}});GeoMOOSE.Services.InputType.PrintInfo=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"print_info",getValue:function(){var _749=Application.mapSources;var _74a=[];for(var src in _749){if(_749[src].printable&&_749[src].isVisible()){_74a.push(_749[src].print());}}return dojo.toJson(_74a);}});GeoMOOSE.Services.InputType.MapInfo=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"map_info",getValue:function(){var _74b={extent:Map.getExtent().toArray(),img_size:[Map.getSize().w,Map.getSize().h],center:[Map.getCenter().lon,Map.getCenter().lat],scale_denom:Map.getScale(),resolution:Map.getResolution(),projection:Map.getProjection().toString()};return dojo.toJson(_74b);}});GeoMOOSE.Services.InputType.User=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"user",initialize:function(_74c,_74d){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;},updateServiceSetting:function(){this.input_obj.setValue(this.value);},keyCallService:function(_74e){if(window.event){_74e=window.event;}var _74f=null;if(_74e.which){_74f=_74e.which;}else{if(_74e.keyCode){_74f=_74e.keyCode;}}if(_74f==13){this.onchange();var _750=document.getElementById("submit-service");if(GeoMOOSE.isDefined(_750)){_750.onclick();}}},renderHTML:function(_751){var p=document.getElementById(_751);var _752=document.createElement("span");_752.className="service-input-parent";p.appendChild(_752);var i=document.createElement("input");i.className="service-input";i.input_obj=this;var name=this.getName();if(name==""){name=GeoMOOSE.id();}i.id="service-input-"+name;if(GeoMOOSE.isDefined(this.getValue())){i.value=this.getValue();}i.onchange=this.updateServiceSetting;i.onkeypress=this.keyCallService;var _753=document.createElement("span");_753.className="service-input-title";_752.appendChild(_753);_753.innerHTML=this.getTitle();_752.appendChild(i);}});GeoMOOSE.Services.InputType.Select=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"select",initialize:function(_754,_755){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;},getValue:function(){if(this.input){return this.input.getAttribute("value");}return this.value;},getOptions:function(){if(GeoMOOSE.isDefined(this.options["options"])){return this.options["options"];}else{var opts=this.input.getElementsByTagName("option");var _756=[];for(var i=0;i<opts.length;i++){_756.push({value:opts[i].getAttribute("value"),name:OpenLayers.Util.getXmlNodeValue(opts[i])});}return _756;}},setValue:function(v){this.value=v;if(this.input){this.input.setAttribute("value",v);}},updateSettings:function(){this.input_obj.setValue(this.getElementsByTagName("option")[this.selectedIndex].value);},renderHTML:function(_757){var p=document.getElementById(_757);var _758=document.createElement("span");_758.className="service-input-parent";p.appendChild(_758);var _759=document.createElement("select");_759.input_obj=this;var _75a=document.createElement("span");_75a.className="service-input-title";_758.appendChild(_75a);_75a.innerHTML=this.getTitle();_758.appendChild(_759);var _75b=this.getOptions();var _75c=0;var val=this.getValue();for(var i=0;i<_75b.length;i++){if(_75b[i].value==val){_75c=i;}var opt=document.createElement("option");opt.selected=false;opt.setAttribute("value",_75b[i].value);_759.appendChild(opt);opt.appendChild(document.createTextNode(_75b[i].name));}var _75d=_759.getElementsByTagName("option")[_75c];_75d.selected=true;this.setValue(_75d.value);_759.onchange=this.updateSettings;}});GeoMOOSE.Services.InputType.AjaxSelect=OpenLayers.Class(GeoMOOSE.Services.InputType.Select,{MAPBOOK_NAME:"ajax_select",options:[],initialize:function(_75e,_75f){GeoMOOSE.Services.InputType.Select.prototype.initialize.apply(this,arguments);if(_75f&&_75f.url){this.url=_75f.url;}else{if(_75e){var url=_75e.getElementsByTagName("url")[0];this.url=OpenLayers.Util.getXmlNodeValue(url);}}},got_opts_from_req:function(_760){var _761=[];var _762=_760.responseXML;var opts=_762.getElementsByTagName("option");for(var i=0;i<opts.length;i++){_761.push({value:opts[i].getAttribute("value"),name:OpenLayers.Util.getXmlNodeValue(opts[i])});}this.options["options"]=_761;},getOptions:function(){var _763=new OpenLayers.Request.GET({url:this.url,async:false,success:OpenLayers.Function.bind(this.got_opts_from_req,this)});return this.options["options"];}});GeoMOOSE.Services.InputType.Tolerance=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"tolerance",getValue:function(){return Map.getResolution()*10;}});GeoMOOSE.Services.InputType.Text=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"text",initialize:function(_764,_765){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;},getValue:function(){if(this.input){return OpenLayers.Util.getXmlNodeValue(this.input);}else{return this.value;}},renderHTML:function(_766){var p=document.getElementById(_766);var _767=document.createElement("span");_767.className="service-input-parent";p.appendChild(_767);var text=document.createElement("span");text.className="service-input-text";_767.appendChild(text);text.innerHTML=this.getValue();}});GeoMOOSE.Services.InputType.TextArea=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"textarea",renderHTML:function(_768){var p=document.getElementById(_768);var _769=document.createElement("span");_769.className="service-input-parent";p.appendChild(_769);var i=document.createElement("textarea");i.className="service-input";i.input_obj=this;i.id="service-input-"+this.getName();i.rows=3;if(this.input.getAttribute("rows")){i.rows=this.input.getAttribute("rows");}if(this.getValue()){i.value=this.getValue();}i.onchange=this.updateServiceSetting;i.onkeypress=this.keyCallService;var _76a=document.createElement("span");_76a.className="service-input-title";_769.appendChild(_76a);_76a.innerHTML=this.getTitle();_769.appendChild(i);}});GeoMOOSE.Services.InputType.Checkbox=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"checkbox",renderHTML:function(_76b){var p=document.getElementById(_76b);var _76c=document.createElement("span");_76c.className="service-input-parent";p.appendChild(_76c);var _76d=document.createElement("span");_76d.className="service-input-title";_76c.appendChild(_76d);_76d.innerHTML=this.getTitle();var i=dojo.create("input",{"type":"checkbox"},_76c);this._input=new dijit.form.CheckBox({"checked":parseBoolean(this.getValue())},i);dojo.connect(this._input,"onChange",dojo.hitch(this,this._setValue));},_setValue:function(_76e){this.setValue(_76e);}});GeoMOOSE.Services.InputType.Color=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"color",_labelHTML:"<span class=\"dijitInline\" style=\"border: solid 1px black; width: 18px; height: 1em; background-color: ${color}\"></span>",renderHTML:function(_76f){var p=dojo.byId(_76f);var _770=dojo.create("span",{},p);dojo.addClass(_770,"service-input-parent");var _771=dojo.create("span",{innerHTML:this.getTitle()},_770);dojo.addClass(_771,"service-input-title");this.color_value_id=GeoMOOSE.id();this._dropdown=new dijit.form.DropDownButton({"label":dojo.string.substitute(this._labelHTML,{"color":this.getValue()}),"dropDown":new dijit.ColorPalette({onChange:dojo.hitch(this,this._setValue)})},dojo.create("span",{"id":this.color_value_id},_770));},_setValue:function(_772){this.setValue(_772);dijit.byId(this.color_value_id).set("label",dojo.string.substitute(this._labelHTML,{"color":this.getValue()}));}});GeoMOOSE.Services.InputType.Projection=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"projection",getValue:function(){return Map.getProjection();}});GeoMOOSE.Services.InputType.Length=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"length",unit_order:["ft","yd","mi","in","m","km"],unit_labels:{"ft":"Feet","yd":"Yards","mi":"Miles","in":"Inches","m":"Meters","km":"Kilometers"},units:null,initialize:function(_773,_774){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;this.units=CONFIGURATION.measure_tool.line_units;if(_773&&_773.getAttribute("units")){this.units=_773.getAttribute("units");}if(_774){if(_774.units){this.units=_774.units;}if(_774.value){this.value=_774.value;}}},renderHTML:function(_775){var p=dojo.byId(_775);var _776=dojo.create("span",{},p);dojo.addClass(_776,"service-input-parent");var _777=dojo.create("span",{innerHTML:this.getTitle()},_776);dojo.addClass(_777,"service-input-title");this.color_value_id=GeoMOOSE.id();this._textbox=new dijit.form.TextBox({value:GeoMOOSE.convertLength(this.getValue(),"m",this.units),onChange:dojo.hitch(this,this._setValue)},dojo.create("span",{},_776));dojo.style(this._textbox.domNode,{"width":"5em"});var _778=[];for(var i=0,ii=this.unit_order.length;i<ii;i++){var unit=this.unit_order[i];_778.push({"value":unit,"label":this.unit_labels[unit]});}this._select=new dijit.form.Select({onChange:dojo.hitch(this,this._setValue),options:_778,value:this.units},dojo.create("span",{},_776));},_setValue:function(_779){var unit=this._select.get("value");var _77a=parseFloat(this._textbox.get("value"));this.input.setAttribute("units",unit);this.setValue(GeoMOOSE.convertLength(_77a,unit,"m"));}});}if(!dojo._hasResource["GeoMOOSE.Tab.Service"]){dojo._hasResource["GeoMOOSE.Tab.Service"]=true;dojo.provide("GeoMOOSE.Tab.Service");dojo.declare("GeoMOOSE.Tab.Service",[dijit.layout.BorderContainer],{service_xml:null,postCreate:function(){this.header=new dijit.layout.ContentPane({"region":"top"});this.content=new dijit.layout.ContentPane({"region":"center"});this.footer=new dijit.layout.ContentPane({"region":"bottom"});this.addChild(this.content);this.drawing_layer=new OpenLayers.Layer.Vector(GeoMOOSE.id());Map.addLayers([this.drawing_layer]);this.tools={};this.tools["pan"]={activate:function(){Tools["pan"].activate();},deactivate:function(){Tools["pan"].deactivate();},setMap:function(){},draw:function(){}};this.tools["point"]=new OpenLayers.Control.DrawFeature(this.drawing_layer,OpenLayers.Handler.Point);this.tools["line"]=new OpenLayers.Control.DrawFeature(this.drawing_layer,OpenLayers.Handler.Path);this.tools["polygon"]=new OpenLayers.Control.DrawFeature(this.drawing_layer,OpenLayers.Handler.Polygon);this.tools["box"]=new OpenLayers.Control.DrawFeature(this.drawing_layer,GeoMOOSE.Handler.Box);this.tools["edit-polygon"]=new OpenLayers.Control.ModifyFeature(this.drawing_layer);var _77b=[];var _77c=GeoMOOSE.getVisibleLayers();for(var i=0;i<_77c.length;i++){if(GeoMOOSE.isEditable(_77c[i])){_77b.push(Application.getMapSource(_77c[i])._ol_layer);}}this.tools["select_feature"]=new OpenLayers.Control.SelectFeature(_77b,{highlightOnly:true,multiple:false});this.unique_name=GeoMOOSE.id();for(var t in this.tools){Map.addControl(this.tools[t]);}var _77d=["point","line","polygon","box"];for(var i=0;i<4;i++){this.tools[_77d[i]].events.register("featureadded",this,this._onFeatureAdded);}this.drawing_layer.events.register("afterfeaturemodified",this,this._onFeatureAdded);this.tools["select_feature"].events.register("featurehighlighted",this,function(_77e){this.tools["select_feature"].unselect(_77e.feature);var _77f=_77e.feature.clone();this._onFeatureAdded({feature:_77f});});},constructor:function(){this.input_types={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _780=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){this.input_types[_780]=GeoMOOSE.Services.InputType[x];}}}},start:function(_781,_782){var _783=GeoMOOSE.id();var _784=dojo.create("div",{"id":_783});this.content.set("content",_784);this.removeChild(this.header);this.removeChild(this.footer);this._settingsObj=_781;this._forceStart=_782;this._clearHighlightOnClose=parseBoolean(this.service_xml.getAttribute("clear-highlight"),false);var _785=this.service_xml.getElementsByTagName("step");var _786=0;var _787=_783;this.steps=[];var _788="service-"+this.unique_name;if(CONFIGURATION.services.disable_others){dijit.byId("toolbar").disableTools();}dojo.query(".olMap").addClass("service-"+this.service_xml.getAttribute("name"));if(_785.length==0){var _789=_788+"0";var _78a=dojo.create("div",{"id":_789},_784);_786+=this.renderInputStep(this.service_xml,_789,_781);this.steps.push(_789);}else{for(var i=0;i<_785.length;i++){var _78b=new String(_785[i].getAttribute("type")).toLowerCase();var div=document.createElement("div");if(i>0){div.className="service-step-hidden";}else{div.className="service-step-visible";}div.id=_788+i;_784.appendChild(div);this.steps.push(div.id);var _78c=_785[i].getElementsByTagName("help-text");var _78d="";for(var h=0,hh=_78c.length;h<hh;h++){_78d=OpenLayers.Util.getXmlNodeValue(_78c[h]);}if(_78d!=""){var _78e=document.createElement("div");div.appendChild(_78e);_78e.className="help-text";_78e.innerHTML=_78d;}if(_78b=="input"){_786+=this.renderInputStep(_785[i],div.id,_781);}else{if(_78b=="select"||_78b=="spatial"){_786+=this.renderSpatialStep(_785[i],div.id,_781);}}var _78f=document.createElement("table");_78f.width="95%";var _790=document.createElement("tbody");div.appendChild(_78f);_78f.appendChild(_790);var tr=document.createElement("tr");_790.appendChild(tr);var left=document.createElement("td");left.align="left";tr.appendChild(left);var _791=document.createElement("td");_791.align="right";tr.appendChild(_791);_791.id=_788+"-right-"+i;if(i>0){var _792=document.createElement("input");_792.value="Back";_792.type="button";left.appendChild(_792);_792.className="service-button-back";_792.step=i-1;_792.onclick=this._changeStep;}else{new dijit.form.Button({label:CONFIGURATION.services.cancel_label,onClick:dojo.hitch(this,this._closeMe),"iconClass":"dijitIconDelete","class":"service-button"},dojo.create("button",{},left));}if(i<_785.length-1){var _793=document.createElement("button");_793.innerHTML="Next";_791.appendChild(_793);_793.className="service-button-next";_793.parent=this;_793.step=i+1;_793.onclick=this._changeStep;}}_787=_788+"-right-"+(_785.length-1);}var _794=this.service_xml.getAttribute("submit");if(!_794){_794="Go!";}if(parseBoolean(this.service_xml.getAttribute("display-submit"),true)&&parseBoolean(this.service_xml.getAttribute("display"),true)){var _795=dojo.hitch(this,function(){if(this.meetsRequirements()){this.callService();}else{alert(CONFIGURATION.messages.requirement_failure);}});new dijit.form.Button({onClick:_795,"class":"service-button","iconClass":"dijitIconFunction",label:_794},dojo.create("button",{},_787));if(_786<=0||_782){_795();}}else{if(_786<=0||_782){this.callService();}}},meetsRequirements:function(){var _796=this.service_xml;var _797=_796.getElementsByTagName("input");var _798=true;for(var i=0;i<_797.length;i++){if(parseBoolean(_797[i].getAttribute("required"))){var v=_797[i].getAttribute("value");if(!(v&&v!="")){_798=false;}}}var _799=_796.getElementsByTagName("step");for(var i=0;i<_799.length;i++){if(parseBoolean(_799[i].getAttribute("required"))){var v=_799[i].getAttribute("wkt");if(!(v&&v!="")){_798=false;}}}return _798;},renderInputStep:function(step,_79a,_79b){var _79c=step.getElementsByTagName("input");var _79d=0;var _79e=step.getElementsByTagName("header");var p=document.getElementById(_79a);for(var i=0;i<_79e.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-header";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_79e[i]);}var _79f=[];var _7a0=[];for(var i=0;i<_79c.length;i++){var _7a1=new String(_79c[i].getAttribute("type")).toLowerCase();if(this.input_types[_7a1]){var _7a2=new this.input_types[_7a1](_79c[i]);_79f.push(_7a2);if(_7a2.requiresRender()){_7a0.push(_7a2);_79d++;}var name=_7a2.getName();if(_79b&&_79b[name]){_7a2.setValue(_79b[name]);}}}for(var i=0;i<_7a0.length;i++){_7a0[i].renderHTML(_79a);}var _7a3=step.getElementsByTagName("footnote");var p=document.getElementById(_79a);if(GeoMOOSE.isDefined(p)){for(var i=0;i<_7a3.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-footnote";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_7a3[i]);}var _79c=p.getElementsByTagName("input");var _7a4=true;for(var i=0;i<_79c.length&&_7a4;i++){if(_79c[i].type!="hidden"&&_79c[i].type!="radio"){_79c[i].focus();_7a4=false;}}}this.afterInputStep(step,_79a,_79b);return _79d;},afterInputStep:function(){},renderSpatialStep:function(step,_7a5,_7a6){Map.setLayerIndex(this.drawing_layer,Map.getNumLayers());var wkt=false;var _7a7=false;if(_7a6&&_7a6[step.getAttribute("name")]){wkt=_7a6[step.getAttribute("name")];_7a7=true;}else{if(step.getAttribute("wkt")){wkt=step.getAttribute("wkt");if(!step.getAttribute("format")||step.getAttribute("format").toLowerCase()=="wkt"){_7a7=true;}}}var _7a8=new OpenLayers.Format.WKT();if(wkt){if(!this.drawing_layer.getVisibility()){this.drawing_layer.addFeatures(_7a8.read(wkt));}var _7a9=step.getElementsByTagName("input");var _7aa=false;for(var i=0;i<_7a9.length;i++){if(_7a9[i].getAttribute("name")==step.getAttribute("name")){_7aa=_7a9[i];}}if(_7a7){if(_7aa){step.removeChild(_7aa);}var _7aa=step.ownerDocument.createElement("input");_7aa.setAttribute("name",step.getAttribute("name"));_7aa.setAttribute("type","hidden");_7aa.appendChild(step.ownerDocument.createCDATASection(wkt));step.appendChild(_7aa);}}this.drawing_layer.setVisibility(true);var p=dojo.byId(_7a5);if(!parseBoolean(step.getAttribute("show-tools"),true)){p.appendChild(dojo.create("div",{"style":"display:none;"}));p=p.children[0];}p.appendChild(document.createTextNode("Available Tools: "));p.appendChild(document.createElement("br"));var _7ab=GeoMOOSE.id();var _7ac={};var _7ad=null;var _7ae=CONFIGURATION.services.tools;for(var v in _7ae){var _7af=_7ae[v];if(parseBoolean(step.getAttribute(v),_7ae[v]["status"])){var _7b0=dojo.create("div",{},p);var _7b1=dojo.create("span",{},_7b0);var _7b2=dojo.create("span",{"innerHTML":_7ae[v].title},_7b0);if(!GeoMOOSE.isDefined(_7ad)&&v!="pan"){_7ad=v;}_7ac[v]=new dijit.form.RadioButton({"name":_7ab,"onChange":dojo.hitch({"drawing_tools":this.tools,"tool":v},function(isMe){if(isMe){for(var tool in Tools){Tools[tool].deactivate();}for(var tool in this.drawing_tools){this.drawing_tools[tool].deactivate();}if(GeoMOOSE.isDefined(this.drawing_tools[this.tool])){this.drawing_tools[this.tool].activate();}}})},_7b1);}}p.appendChild(document.createElement("br"));var _7b3=step.getAttribute("default");if(GeoMOOSE.isDefined(_7b3)&&GeoMOOSE.isDefined(_7ac[_7b3])){_7ac[_7b3].set("checked",true);}else{_7ac[_7ad].set("checked",true);}this.afterSpatialStep(step,_7a5,_7a6);return 1+this.renderInputStep(step,_7a5,_7a6);},afterSpatialStep:function(step,_7b4,_7b5){},callService:function(_7b6){var _7b7=this.service_xml;var _7b8=_7b7.getElementsByTagName("input");var url=OpenLayers.Util.getXmlNodeValue(_7b7.getElementsByTagName("url")[0]);var _7b9={};for(var i=0;i<_7b8.length;i++){var _7ba=new String(_7b8[i].getAttribute("type")).toLowerCase();if(this.input_types[_7ba]){var _7bb=new this.input_types[_7ba](_7b8[i]);var _7bc=_7bb.getName();var _7bd=_7bb.getValue();if(_7b6&&_7b6[_7bc]){_7bd=_7b6[_7bc];}if(_7b9[_7bc]){_7b9[_7bc].push(_7bd);}else{_7b9[_7bc]=[_7bd];}}}this.lastServiceParams=_7b9;this.onStart();if(_7b7.getAttribute("target")=="_blank"){dijit.byId("tabs").closeChild(GeoMOOSE.getTab(this.name));var _7be="";for(var p in _7b9){for(var i in _7b9[p]){_7be+="&"+p+"="+_7b9[p][i];}}window.open(url+"?"+_7be);}else{this.query=dojo.xhrPost({"url":url,"preventCache":true,"content":_7b9,"load":dojo.hitch(this,this.onServiceReturn),"error":dojo.hitch(this,this.onServiceError)});}this.onFinish();},onServiceError:function(_7bf){GeoMOOSE.error("Error Calling the server:\n"+_7bf);},_concatChildValues:function(node){var xml=new OpenLayers.Format.XML();var res=xml.getChildValue(node);if(node.children){for(var i=0;i<node.children.length;i++){res+=xml.getChildValue(node.children[i]);}}return res;},onServiceReturn:function(_7c0){var _7c1=false;try{var xml=new OpenLayers.Format.XML();_7c0=xml.read(_7c0);if(_7c0.getElementsByTagName("results").length<1){_7c1=true;}}catch(e){_7c1=true;}var html="";if(!GeoMOOSE.isDefined(_7c0)||_7c1){html=CONFIGURATION.messages.service_return_error;}else{var _7c2=_7c0.getElementsByTagName("script");var js="";for(var s=0;s<_7c2.length;s++){js+=this._concatChildValues(_7c2[s]);}if(_7c2.length>0){eval(js);}var _7c3=_7c0.getElementsByTagName("html");for(var h=0;h<_7c3.length;h++){html+=this._concatChildValues(_7c3[h]);}var _7c4=_7c0.getElementsByTagName("popup");for(var p=0;p<_7c4.length;p++){var pp=_7c4[p];}}if(!GeoMOOSE.isDefined(this.domNode.parentNode)){return false;}if(html!=""){if(!this._isJumpStart){this.disableTools();}this.addChild(this.header);var _7c5=dojo.create("div",{innerHTML:"Back to Settings"});var _7c6=dojo.create("span",{},_7c5,"first");this.header.set("content",_7c5);dojo.addClass(_7c6,["dijitIcon","sprite-control","sprite-control-previous"]);dojo.style(_7c6,{"vertical-align":"middle","height":"16px"});dojo.style(_7c5,{"cursor":"pointer","fontSize":"1.1em","textDecoration":"underline"});dojo.connect(_7c5,"onclick",dojo.hitch(this,this.toBeginning));this.content.set("content",html);this.resize();dijit.byId("tabs").selectChild(this);}else{}if(GeoMOOSE.isDefined(_7c0)){this.renderReturnFooter(_7c0);}},renderReturnFooter:function(_7c7){var _7c8=_7c7.getElementsByTagName("footer");var _7c9="";for(var i=0,ii=_7c8.length;i<ii;i++){_7c9+=this._concatChildValues(_7c8[i]);}if(_7c9!=""){this.addChild(this.footer);this.footer.set("content",_7c9);this.resize();}},disableTools:function(){for(var t in this.tools){if(this.tools[t].deactivate()){this._lastTool=t;}}if(CONFIGURATION.services.disable_others){dijit.byId("toolbar").restoreTools();}},restoreTools:function(){if(GeoMOOSE.isDefined(this._lastTool)){this.tools[this._lastTool].activate();}if(CONFIGURATION.services.disable_others){dijit.byId("toolbar").disableTools();}},onStart:function(){this.content.set("content",CONFIGURATION.waiting_html);},onFinish:function(){},onSelectionFeatureChanged:function(_7ca){},_onFeatureAdded:function(_7cb){while(this.drawing_layer.features.length>0){this.drawing_layer.removeFeatures(this.drawing_layer.features[0]);}this.drawing_layer.addFeatures([_7cb.feature],{silent:true});var _7cc=new OpenLayers.Format.WKT();var wkt=_7cc.write(_7cb.feature);var step=null;var _7cd=this.service_xml.getElementsByTagName("step");for(var i=0,_7ce=_7cd.length;i<_7ce;i++){if(_7cd[i].getAttribute("type")=="spatial"){step=_7cd[i];}}step.setAttribute("wkt",wkt);this.onSelectionFeatureChanged(_7cb);var _7cf=OpenLayers.Format.WKT;var _7d0=new String(step.getAttribute("format")).toLowerCase();if(_7d0=="kml"){_7cf=OpenLayers.Format.KML;}else{if(_7d0=="wfs"){_7cf=OpenLayers.Format.WFS;}else{if(_7d0=="json"){_7cf=OpenLayers.Format.JSON;}else{if(_7d0=="delim"){_7cf=OpenLayers.Format.Text;var _7d1=step.getAttribute("delim");var _7d2=step.getAttribute("point-delim");if(!_7d1){_7d1=",";}if(!_7d2){_7d2=",";}var _7d3=function(g){var _7d4=[];if(g.components){for(var i=0;i<g.components.length;i++){if(g.components[i] instanceof OpenLayers.Geometry.Point){_7d4+=g.components[i];}else{if(g.components){this(g);}}}}else{if(g instanceof OpenLayers.Geometry.Point){return [g];}}return _7d4;};_7cf=function(){this.write=function(f){var _7d5=_7d3(f.geometry);for(var i=0;i<_7d5.length;i++){_7d5[i]=_7d5[i].x+_7d1+_7d5[i].y;}return _7d5.join(_7d2);};};}}}}var _7d6=new _7cf();var _7d7=step.getElementsByTagName("input");var _7d8=step.getAttribute("name");for(var i=0,len=_7d7.length;i<len;i++){if(_7d7[i].getAttribute("name")==_7d8){step.removeChild(_7d7[i]);}}if(GeoMOOSE.isDefined(step.getAttribute("reproject"))){var _7d9=step.getAttribute("reproject");if(_7d9=="EPSG:4326"||_7d9=="WGS84"){dest_proj=new OpenLayers.Projection("EPSG:4326");}else{dest_proj=OpenLayers.Projection(_7d9);}_7cb.feature.geometry=OpenLayers.Projection.transform(_7cb.feature.geometry,Map.getProjectionObject(),dest_proj);}var doc=this.service_xml.ownerDocument;var _7da=doc.createElement("input");_7da.setAttribute("name",_7d8);_7da.setAttribute("type","hidden");_7da.appendChild(doc.createCDATASection(_7d6.write(_7cb.feature)));step.appendChild(_7da);if(parseBoolean(step.getAttribute("jump-start"),false)){this._isJumpStart=true;this.callService();}else{this._isJumpStart=false;}},onClose:function(){dojo.query(".olMap").removeClass("service-"+this.service_xml.getAttribute("name"));this.disableTools();for(var t in this.tools){Map.removeControl(this.tools[t]);delete this.tools[t];}if(this.drawing_layer!=null){Map.removeLayer(this.drawing_layer);this.drawing_layer=null;}var _7db=this.inherited(arguments);if(this.header){this.header.destroyRecursive();}if(this.footer){this.footer.destroyRecursive();}if(this._clearHighlightOnClose){if(GeoMOOSE.isDefined(CONFIGURATION.services.highlight_layer)){var _7dc=CONFIGURATION.services.highlight_layer;if(!dojo.isArray(_7dc)){_7dc=[_7dc];}for(var i=0,ii=_7dc.length;i<ii;i++){var _7dd=_7dc[i];GeoMOOSE.clearLayerParameters(_7dd);GeoMOOSE.changeLayerVisibility(_7dd,false);}}}GeoMOOSE.activateDefaultTool();return _7db;},onHide:function(){this.drawing_layer.setVisibility(false);this.disableTools();this.inherited(arguments);},onShow:function(){this.inherited(arguments);this.restoreTools();this.drawing_layer.setVisibility(true);},_closeMe:function(){this.disableTools();dijit.byId("tabs").closeChild(this);},_changeStep:function(){this.parent.changeStep(this.step);},changeStep:function(step){var _7de=document.getElementById(this.steps[step]);var _7df=this.content.domNode.getElementsByTagName("div");for(var i=0;i<_7df.length;i++){if(_7df[i].className=="service-step-visible"){_7df[i].className="service-step-hidden";}}_7de.className="service-step-visible";},toBeginning:function(){this.start(this._settingsObj,false);}});}if(!dojo._hasResource["dijit.form.RadioButton"]){dojo._hasResource["dijit.form.RadioButton"]=true;dojo.provide("dijit.form.RadioButton");}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog"]){dojo._hasResource["GeoMOOSE.Tab.Catalog"]=true;dojo.provide("GeoMOOSE.Tab.Catalog");dojo.declare("GeoMOOSE.Tab._CatalogLayer",null,{parent_id:"",paths:{},visible_paths:[],checkbox_id:"",onRefreshMap:function(){dojo.query(".catalog-layer-title",this.parent_id).forEach(function(_7e0){var _7e1=parseFloat(_7e0.getAttribute("data-minscale"));var _7e2=parseFloat(_7e0.getAttribute("data-maxscale"));if(GeoMOOSE.inScale(_7e1,_7e2)){dojo.removeClass(_7e0,"catalog-outscale");}else{dojo.addClass(_7e0,"catalog-outscale");}});this.updateLegends();},constructor:function(_7e3,_7e4,_7e5,_7e6){this.layer=_7e4;this.parent_id=_7e3;var p=dojo.byId(_7e3);var _7e7={className:"catalog-layer"};if(_7e4.tip!=null){_7e7.title=_7e4.tip;}var _7e8=dojo.create("div",_7e7,p);this.div=_7e8;var _7e9=dojo.create("div",{className:"catalog-layer-titlebar"},_7e8);this.checkbox_id=GeoMOOSE.id();var _7ea=dojo.create("span",{"id":this.checkbox_id},_7e9);var _7eb=dijit.form.CheckBox;var _7ec={};if(_7e5===false){var _7eb=dijit.form.RadioButton;_7ec["name"]=_7e6;}var _7ed=GeoMOOSE.getVisibleLayers();for(var l=0,ll=_7ed.length;l<ll;l++){if(GeoMOOSE.isDefined(this.layer.paths[_7ed[l]])){this.layer.paths[_7ed[l]]=true;}}for(var path in this.layer.paths){if(this.layer.paths[path]===true){_7ec["checked"]=true;break;}}var cbox=new _7eb(_7ec,_7ea);dojo.connect(cbox,"onChange",dojo.hitch(this,function(v){var _7ee=[];for(var src in this.layer.paths){this.layer.paths[src]=v;_7ee.push(src);}GeoMOOSE.changeLayerVisibility(_7ee,v);if(v===false){this.updateLegends();}}));var _7ef=dojo.create("span",{"innerHTML":_7e4.label,"data-minscale":_7e4.minscale,"data-maxscale":_7e4.maxscale},_7e9);dojo.addClass(_7ef,"catalog-layer-title");if(!GeoMOOSE.inScale(parseFloat(_7e4.minscale),parseFloat(_7e4.maxscale))){dojo.addClass(_7ef,"catalog-outscale");}var _7f0=GeoMOOSE.id();var _7f1=dojo.create("div",{id:_7f0,className:"catalog-layer-controls"},_7e8);if(CONFIGURATION.catalog.show_controls===false){dojo.addClass(_7f1,"hide");}for(var i=0;i<CONFIGURATION.layer_control_order.length;i++){var _7f2=CONFIGURATION.layer_control_order[i];if(_7e4.controls[_7f2]){var _7f3=GeoMOOSE._getLayerControl(_7f2);if(GeoMOOSE.isDefined(_7f3)){var _7f4=new _7f3({layer:_7e4,catalogLayer:this});_7f4.draw(_7f1);}}}if(CONFIGURATION.catalog.toggle_controls){_7ef.style.cursor="pointer";_7ef.setAttribute("data-control-id",_7f0);dojo.connect(_7ef,"click",this.toggleControls);}if(_7e4.drawingTools){if(!GeoMOOSE.isDefined(_7e4.src)){GeoMOOSE.warning("Cannot draw on this layer, the SRC is not defined.");}else{if(GeoMOOSE.isEditable(_7e4.src)){}else{GeoMOOSE.warning("Drawing tool will not work on layer \""+_7e4.src+"\", it is not an editable map source type.");}}}this.legends_id=GeoMOOSE.id();var _7f5=dojo.create("div",{"id":this.legends_id},_7e8);dojo.addClass(_7f5,["catalog_legend_container"]);if(!_7e4.showLegends){dojo.style(_7f5,{"height":"auto","display":"none"});}p=null;dojo.subscribe("geomoose/activate-map-source",dojo.hitch(this,this.activateMapSource));},activateMapSource:function(_7f6){var _7f7=false;for(var p in this.layer.paths){if(_7f6==p){_7f7=true;break;}}if(_7f7){dojo.addClass(this.div,"catalog-active-map-source");}else{dojo.removeClass(this.div,"catalog-active-map-source");}},updateListing:function(_7f8,_7f9){this.active_paths=[];var _7fa=false;for(var i=0;i<_7f8.length;i++){if(typeof (this.layer.paths[_7f8[i]])=="boolean"){this.layer.paths[_7f8[i]]=_7f9;_7fa=true;}}for(var path in this.layer.paths){if(this.layer.paths[path]===true){this.active_paths.push(path);}}var _7fb=dijit.byId(this.checkbox_id);if(_7fa){_7fb.set("checked",_7f9);}if(this.active_paths.length>0){this.updateLegends();}},updateLegends:function(){var _7fc=dojo.byId(this.legends_id);if(!_7fc){return false;}while(_7fc.firstChild){_7fc.removeChild(_7fc.firstChild);}if(dijit.byId(this.checkbox_id).get("checked")&&this.layer.showLegends){_7fc.style.display="block";var _7fd=[];if(this.layer.dynamicLegends){var _7fe=[];for(var path in this.layer.paths){if(this.layer.paths[path]===true){_7fe.push(path);}}_7fd=GeoMOOSE.getLegendUrls(_7fe);}else{_7fd=this.layer.legendUrls;}for(var i=0,ii=_7fd.length;i<ii;i++){var _7ff=dojo.create("img",{"src":_7fd[i]},_7fc);dojo.addClass(_7ff,["catalog-legend-image"]);}}else{_7fc.style.display="none";}},toggleControls:function(){var _800=this.getAttribute("data-control-id");var _801=dojo.byId(_800);if(dojo.hasClass(_801,"hide")){dojo.removeClass(_801,"hide");}else{dojo.addClass(_801,"hide");}}});dojo.declare("GeoMOOSE.Tab.Catalog",[GeoMOOSE.Tab],{targetId:"catalog",title:"Catalog",mapbook:null,catalog_layers:null,startup:function(){this.inherited(arguments);var _802=GeoMOOSE.id();this.main_id=_802;var main=dojo.create("div",{"id":_802});this.set("content",main);this.catalog_layers=new Array();this.set("title",CONFIGURATION["catalog_name"]);},renderLayer:function(_803,_804,_805){var _806=parseBoolean(_804.parentNode.getAttribute("multiple"),true);var _807="";if(_806==false){_807=_804.parentNode.getAttribute("title");}var _808=new GeoMOOSE.Layer();_808.parseLayerXml(_804);var _809=new GeoMOOSE.Tab._CatalogLayer(_803,_808,_806,_807);this.catalog_layers.push(_809);},_hideGroup:function(id){var _80a=dojo.byId(id);var _80b={"node":id};if(CONFIGURATION.flashy_bits){dojo.fx.wipeOut(_80b).play();}else{_80a.style.display="none";}},_showGroup:function(id){var _80c=dojo.byId(id);var _80d={"node":id};if(CONFIGURATION.flashy_bits){dojo.fx.wipeIn(_80d).play();}else{_80c.style.display="block";}},toggleGroup:function(){var _80e=dojo.byId(this.children_id);if(_80e.style.display!="none"){this._hideGroup(this.children_id);}else{this._showGroup(this.children_id);}},renderGroup:function(_80f,_810){var p=document.getElementById(_80f);var ul=document.createElement("ul");ul.className="catalog";var _811=GeoMOOSE.id();if(_810.getAttribute("title")){var li=document.createElement("li");p.appendChild(li);var _812=dojo.create("a",{"innerHTML":_810.getAttribute("title")},li);dojo.addClass(_812,["catalog-group"]);_812._hideGroup=this._hideGroup;_812._showGroup=this._showGroup;_812.onclick=this.toggleGroup;var _813=dojo.create("div",{"id":_811},li);dojo.addClass(_813,"catalog-indent");_812.children_id=_811;if(!parseBoolean(_810.getAttribute("expand"),true)){this._hideGroup(_811);}li=null;}else{ul.className+=" catalog-group-expanded";ul.id=_811;}p.appendChild(ul);var args=GeoMOOSE.getUrlParameters();var _814={};if(args.on){var _815=new String(args.on).split(";");for(var i=0;i<_815.length;i++){_814[_815[i]]="on";}}if(args.off){var _816=new String(args.off).split(";");for(var i=0;i<_816.length;i++){_814[_816[i]]="off";}}for(var i=0;i<_810.childNodes.length;i++){var _817=_810.childNodes[i].tagName;if(_817){if(_817=="group"){this.renderGroup(_811,_810.childNodes[i]);}else{if(_817=="layer"){this.renderLayer(_811,_810.childNodes[i],_814);}}}}ul=null;p=null;},onLayersChange:function(path,vis){if(this.catalog_layers&&this.catalog_layers.length>0){this.updateListing(path,vis);}},updateListing:function(_818,_819){var _81a=GeoMOOSE.asArray(_818);if(typeof (_819)=="undefined"){_819=true;}for(var i=0,len=this.catalog_layers.length;i<len;i++){this.catalog_layers[i].updateListing(_81a,_819);}},onGotMapbook:function(_81b){this.mapbook=_81b;var _81c=this.mapbook.getElementsByTagName("catalog")[0];this.renderGroup(this.main_id,_81c);this.updateListing(GeoMOOSE.getVisibleLayers());},onRefreshMap:function(){for(var i=0,ii=this.catalog_layers.length;i<ii;i++){this.catalog_layers[i].onRefreshMap();}}});}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl",null,{layer:null,tip:"",control_id:null,classes:[],constructor:function(args){dojo.mixin(this,args);},draw:function(_81d){this.control_id=GeoMOOSE.id();this.parentNode=_81d;var _81e=dojo.create("div",{"id":this.control_id},_81d);dojo.addClass(_81e,"sprite-control");dojo.addClass(_81e,this.classes);dojo.connect(_81e,"onclick",dojo.hitch(this,this.onClick));if(this.tip!=""){var _81f=dojo.string.substitute(eval(this.tip),{"layer":this.layer.title});_81e.title=_81f;}_81e=null;},onClick:function(){}});}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Activate"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Activate"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Activate");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Activate",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-activate"],tip:"CONFIGURATION.layer_controls.activate.tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);}});GeoMOOSE._registerLayerControl("activate",GeoMOOSE.Tab.Catalog.LayerControl.Activate);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Selectable"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Selectable"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Selectable");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Selectable",[GeoMOOSE.Tab.Catalog.LayerControl],{constructor:function(){dojo.subscribe("/geomoose/deactivate-tools",dojo.hitch(this,this.removeSelected));},removeSelected:function(){if(this.control_id){var e=dojo.byId(this.control_id);if(e){dojo.removeClass(e,"selected");}}},onClick:function(){dojo.addClass(dojo.byId(this.control_id),"selected");}});}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Popups"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Popups"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Popups");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Popups",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-popups"],tip:"CONFIGURATION.layer_controls.popups.tip",onClick:function(){if(GeoMOOSE.getActiveMapSource()!=this.layer.src){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("popups",{title:this.layer.title});}else{GeoMOOSE.deactiveMapSource(this.layer.src);}this.inherited(arguments);}});GeoMOOSE._registerLayerControl("popups",GeoMOOSE.Tab.Catalog.LayerControl.Popups);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Up"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Up"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Up");dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Down");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Up",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-up"],tip:"CONFIGURATION.layer_controls.up.tip",getRepresentativePaths:function(){var _820={};var _821={};for(var path in this.layer.paths){var src=path.split("/")[0];if(!_820[src]){_820[src]=true;_821[path]=true;}}return _821;},onClick:function(){for(var path in this.getRepresentativePaths()){GeoMOOSE.moveLayerUp(path);}}});dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Down",[GeoMOOSE.Tab.Catalog.LayerControl.Up],{classes:["sprite-control-down"],tip:"CONFIGURATION.layer_controls.down.tip",onClick:function(){for(var path in this.getRepresentativePaths()){GeoMOOSE.moveLayerDown(path);}}});GeoMOOSE._registerLayerControl("up",GeoMOOSE.Tab.Catalog.LayerControl.Up);GeoMOOSE._registerLayerControl("down",GeoMOOSE.Tab.Catalog.LayerControl.Down);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Fade"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Fade"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Fade");dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Unfade");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Fade",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-fade"],tip:"CONFIGURATION.layer_controls.fade.tip",onClick:function(){for(var path in this.layer.paths){GeoMOOSE.fadeLayer(path);}}});dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Unfade",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-unfade"],tip:"CONFIGURATION.layer_controls.unfade.tip",onClick:function(){for(var path in this.layer.paths){GeoMOOSE.unfadeLayer(path);}}});GeoMOOSE._registerLayerControl("fade",GeoMOOSE.Tab.Catalog.LayerControl.Fade);GeoMOOSE._registerLayerControl("unfade",GeoMOOSE.Tab.Catalog.LayerControl.Unfade);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Legend"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.Legend"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Legend");dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.Metadata");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Legend",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-legend"],tip:"CONFIGURATION.layer_controls.legend.tip",onClick:function(){var _822=dojo.query(".catalog_legend_container",this.parentNode.parentNode)[0];var _823={"node":_822};var _824=!this.layer.showLegends;this.layer.showLegends=_824;if(!_824){if(CONFIGURATION.flashy_bits){dojo.fx.wipeOut(_823).play();}else{_822.style.display="none";}}else{if(CONFIGURATION.flashy_bits){dojo.fx.wipeIn(_823).play();}else{_822.style.display="block";}this.catalogLayer.updateLegends();}}});dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Metadata",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-metadata"],tip:"CONFIGURATION.layer_controls.metadata.tip",onClick:function(){if(this.layer.metadataUrl!=""){window.open(this.layer.metadataUrl);}else{alert("No metadata available for "+this.layer.title);}}});GeoMOOSE._registerLayerControl("legend",GeoMOOSE.Tab.Catalog.LayerControl.Legend);GeoMOOSE._registerLayerControl("metadata",GeoMOOSE.Tab.Catalog.LayerControl.Metadata);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.DrawPoint"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.DrawPoint"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.DrawPoint");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.DrawPoint",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-drawPoint"],tip:"CONFIGURATION.layer_controls[\"draw-point\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("point",{title:this.layer.title});this.inherited(arguments);}});GeoMOOSE._registerLayerControl("draw-point",GeoMOOSE.Tab.Catalog.LayerControl.DrawPoint);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.DrawLine"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.DrawLine"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.DrawLine");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.DrawLine",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-drawPath"],tip:"CONFIGURATION.layer_controls[\"draw-line\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("line",{title:this.layer.title});this.inherited(arguments);}});GeoMOOSE._registerLayerControl("draw-line",GeoMOOSE.Tab.Catalog.LayerControl.DrawLine);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.DrawPolygon"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.DrawPolygon"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.DrawPolygon");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.DrawPolygon",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-drawPolygon"],tip:"CONFIGURATION.layer_controls[\"draw-polygon\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("polygon",{title:this.layer.title});this.inherited(arguments);}});GeoMOOSE._registerLayerControl("draw-polygon",GeoMOOSE.Tab.Catalog.LayerControl.DrawPolygon);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.EditShape"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.EditShape"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.EditShape");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.EditShape",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-draw_edit"],tip:"CONFIGURATION.layer_controls[\"edit-shape\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("modify",{title:this.layer.title});this.inherited(arguments);}});GeoMOOSE._registerLayerControl("edit-shape",GeoMOOSE.Tab.Catalog.LayerControl.EditShape);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.EditAttributes"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.EditAttributes"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.EditAttributes");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.EditAttributes",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-draw_edit_attributes"],tip:"CONFIGURATION.layer_controls[\"edit-attributes\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("edit_attributes",{title:this.layer.title});this.inherited(arguments);}});GeoMOOSE._registerLayerControl("edit-attributes",GeoMOOSE.Tab.Catalog.LayerControl.EditAttributes);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.RemoveFeature"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.RemoveFeature"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.RemoveFeature");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.RemoveFeature",[GeoMOOSE.Tab.Catalog.LayerControl.Selectable],{classes:["sprite-control-draw_remove"],tip:"CONFIGURATION.layer_controls[\"remove-feature\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("remove",{title:this.layer.title});this.inherited(arguments);}});GeoMOOSE._registerLayerControl("remove-feature",GeoMOOSE.Tab.Catalog.LayerControl.RemoveFeature);}if(!dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.RemoveAllFeatures"]){dojo._hasResource["GeoMOOSE.Tab.Catalog.LayerControl.RemoveAllFeatures"]=true;dojo.provide("GeoMOOSE.Tab.Catalog.LayerControl.RemoveAllFeatures");dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.RemoveAllFeatures",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-clear_drawings"],tip:"CONFIGURATION.layer_controls[\"remove-all-features\"].tip",onClick:function(){GeoMOOSE.activateMapSource(this.layer.src);GeoMOOSE.activateLayerTool("remove_all",{title:this.layer.title});}});GeoMOOSE._registerLayerControl("remove-all-features",GeoMOOSE.Tab.Catalog.LayerControl.RemoveAllFeatures);}if(!dojo._hasResource["GeoMOOSE.ServiceManager"]){dojo._hasResource["GeoMOOSE.ServiceManager"]=true;dojo.provide("GeoMOOSE.ServiceManager");window.ServiceManager=function(_825,_826){var _827=this;var _828=false;this.ServiceTabClass=GeoMOOSE.Tab.Service;function _829(_82a){var _82b=_825.getElementsByTagName("service");for(var i=0;i<_82b.length;i++){if(_82b[i].getAttribute("name")==_82a){return _82b[i];}}return null;};this.onStart=function(_82c){};this.onFinish=function(){};this.startService=function(_82d,_82e,_82f){var _830=_829(_82d);if(!GeoMOOSE.isDefined(this.service_tabs)){this.service_tabs=[];}if(_830){_828=false;this.onStart(_830);var _831=_830.getAttribute("title");if(!GeoMOOSE.isDefined(_831)){_831=_82d;}var _832=GeoMOOSE.getTab(_82d);var _833=GeoMOOSE.id();var p=dojo.create("div",{"id":_833});if(GeoMOOSE.isDefined(_832)){GeoMOOSE.changeTab(_82d);}else{if(!parseBoolean(_830.getAttribute("keep-others"),false)){while(this.service_tabs.length>0){var _834=this.service_tabs.pop();GeoMOOSE.closeTab(_834);}}_832=new this.ServiceTabClass({"title":_831,"closable":true,"name":_82d,"service_xml":_830});dojo.connect(_832,"onServiceReturn",dojo.hitch(_832,this.onServiceReturn));if(parseBoolean(_830.getAttribute("display"),true)){this.service_tabs.push(_82d);GeoMOOSE.addTab(_82d,_832);}}if(parseBoolean(_830.getAttribute("display"),true)){dijit.byId("tabs").selectChild(_832);}_832.start(_82e,_82f);}},this.onServiceReturn=function(_835){};};}if(!dojo._hasResource["dijit.ToolbarSeparator"]){dojo._hasResource["dijit.ToolbarSeparator"]=true;dojo.provide("dijit.ToolbarSeparator");dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\" role=\"presentation\"></div>",buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit\" role=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",baseClass:"dijitToolbar",postCreate:function(){this.inherited(arguments);this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}if(!dojo._hasResource["GeoMOOSE.Tool"]){dojo._hasResource["GeoMOOSE.Tool"]=true;dojo.provide("GeoMOOSE.Tool");dojo.declare("GeoMOOSE._Tool",null,{tool_xml:null,selectable:false,doStyle:function(){var _836=this.tool_xml.getAttribute("icon-class");if(_836){this.iconClass=_836;}else{this.iconClass="sprite-control sprite-control-"+this.name;}},constructor:function(){dojo.mixin(this,arguments[0]);this.name=this.tool_xml.getAttribute("name");var _837=this.tool_xml.getAttribute("title");var _838=parseBoolean(this.tool_xml.getAttribute("show-label"),CONFIGURATION.toolbar.show_labels);if(_838){this.label=_837;}this.title=_837;this.doStyle();if(this.selectable){dojo.subscribe("/geomoose/deactivate-tools",dojo.hitch(this,function(){this.set("checked",false);}));}}});dojo.declare("GeoMOOSE.Tool",[GeoMOOSE._Tool,dijit.form.ToggleButton],{selectable:true,onStart:function(){},onClick:function(){if(!this.get("checked")){this.set("checked",true);}else{this.onStart();}}});dojo.declare("GeoMOOSE.UnselectableTool",[GeoMOOSE.Tool],{selectable:false,onClick:function(){this.set("checked",false);this.onStart();}});dojo.declare("GeoMOOSE.ToolMenu",[GeoMOOSE.Tool,dijit.CheckedMenuItem],{selectable:true,postCreate:function(){this.inherited(arguments);var icon=dojo.create("div",{},this.labelNode,"first");dojo.addClass(icon,this.iconClass);dojo.addClass(icon,"dijitInline");},onClick:function(){this.inherited(arguments);}});dojo.declare("GeoMOOSE.UnselectableToolMenu",[GeoMOOSE._Tool,dijit.MenuItem],{selectable:false,onClick:function(){this.onStart();}});}if(!dojo._hasResource["GeoMOOSE.UI.Toolbar"]){dojo._hasResource["GeoMOOSE.UI.Toolbar"]=true;dojo.provide("GeoMOOSE.UI.Toolbar");dojo.declare("GeoMOOSE.UI.Toolbar",[dijit.Toolbar],{activeLayer:null,untoggleOthers:function(){for(var _839 in this.parent.tools){var tool=this.parent.tools[_839];tool.set("checked",tool==this);}},_deactivateTools:function(){var map=dojo.query(".olMap");for(var _83a in Tools){Tools[_83a].deactivate();map.removeClass("tool-"+_83a);}dojo.publish("/geomoose/deactivate-tools");},_internalToolAction:function(){if(GeoMOOSE.isDefined(Tools[this.action])){if(this.selectable){this._deactivateTools();}Tools[this.action].activate();dojo.query(".olMap").addClass("tool-"+this.action);}else{GeoMOOSE.warning("The tool \""+this.action+"\" is undefined!");}},_serviceToolAction:function(){GeoMOOSE.startService(this.service_name);},_javascriptToolAction:function(){eval(this.stuff_to_do);},_layerToolAction:function(){GeoMOOSE.activateLayerTool(this.action);},_addTool:function(_83b,_83c,_83d){var _83e=_83c.getAttribute("type");var name=_83c.getAttribute("name");var _83f=parseBoolean(_83c.getAttribute("selectable"),true);var tool=null;if(_83d===true){if(_83f){tool=new GeoMOOSE.ToolMenu({"tool_xml":_83c,"parent":this});dojo.connect(tool,"onClick",this.untoggleOthers);}else{tool=new GeoMOOSE.UnselectableToolMenu({"tool_xml":_83c,"parent":this});}}else{if(_83f){tool=new GeoMOOSE.Tool({"tool_xml":_83c,"parent":this});dojo.connect(tool,"onClick",this.untoggleOthers);}else{tool=new GeoMOOSE.UnselectableTool({"tool_xml":_83c,"parent":this});}}if(tool!=null){if(_83e=="internal"){tool.action=_83c.getAttribute("action");dojo.connect(tool,"onStart",this._internalToolAction);}else{if(_83e=="service"){tool.service_name=_83c.getAttribute("service");dojo.connect(tool,"onStart",this._serviceToolAction);}else{if(_83e=="javascript"){tool.stuff_to_do=OpenLayers.Util.getXmlNodeValue(_83c);dojo.connect(tool,"onStart",this._javascriptToolAction);}else{if(_83e=="layer"){tool.action=_83c.getAttribute("action");dojo.connect(tool,"onStart",this._layerToolAction);}}}}tool._deactivateTools=this._deactivateTools;this.parent=this;this.tools[name]=tool;_83b.addChild(tool);}},onMapbookLoaded:function(_840){var _841=_840.getElementsByTagName("toolbar")[0];this.tools={};this.drawers=[];for(var i=0,len=_841.childNodes.length;i<len;i++){var node=_841.childNodes[i];if(node.tagName&&node.tagName=="tool"){this._addTool(this,node);}else{if(node.tagName&&node.tagName=="drawer"){var _842=node.getAttribute("icon-class");if(!GeoMOOSE.isDefined(_842)){_842="spite-control sprite-control-down";}var _843="";var _844=parseBoolean(node.getAttribute("show-label"),CONFIGURATION.toolbar.show_labels);if(_844){_843=node.getAttribute("title");}var _845=new dijit.Menu();var _846=new dijit.form.DropDownButton({"label":_843,"iconClass":_842,"dropDown":_845});this.addChild(_846);this.drawers.push(_846);var _847=node.getElementsByTagName("tool");for(var t=0,tt=_847.length;t<tt;t++){this._addTool(_845,_847[t],true);}}}}this.layout.resize();},activeMapSource:null,onActivateMapSource:function(_848){this.activeMapSource=_848;},toolsDisabled:false,disableTools:function(){if(!this.toolsDisabled){for(var tool in this.tools){var t=this.tools[tool];t.set("old-state",t.get("disabled"));t.set("disabled",true);}for(var d=0,dd=this.drawers.length;d<dd;d++){var drw=this.drawers[d];drw.set("old-state",drw.get("disabled"));drw.set("disabled",true);}this.toolsDisabled=true;}},restoreTools:function(){if(this.toolsDisabled){for(var tool in this.tools){var t=this.tools[tool];t.set("disabled",t.get("old-state"));}for(var d=0,dd=this.drawers.length;d<dd;d++){var drw=this.drawers[d];drw.set("disabled",drw.get("old-state"));}this.toolsDisabled=false;}}});}if(!dojo._hasResource["GeoMOOSE.UI.CoordinateDisplay"]){dojo._hasResource["GeoMOOSE.UI.CoordinateDisplay"]=true;dojo.provide("GeoMOOSE.UI.CoordinateDisplay");dojo.declare("GeoMOOSE.UI.CoordinateDisplay",null,{constructor:function(){var _849=dojo.byId("footer");this.coordinate_display=dojo.create("span",{"id":"coordinate-display"},_849);if(CONFIGURATION.coordinate_display.usng){var _84a=true;try{eval("new USNG2()");}catch(err){GeoMOOSE.error("usng display requested but USNG2 Library is not included.");_84a=false;}if(_84a){this.usng=new USNG2();}}GeoMOOSE.register("onMapbookLoaded",this,this.gotMapbook);},gotMapbook:function(){this.map_proj=Map.getProjectionObject();this.lat_long=new OpenLayers.Projection("WGS84");var _84b=new OpenLayers.Control.MousePosition({div:this.coordinate_display});_84b.formatOutput=dojo.hitch(this,this.displayCoordinates);Map.addControl(_84b);},displayCoordinates:function(_84c){var _84d=parseInt(this.numDigits);var html="";if(CONFIGURATION.coordinate_display.xy){html+="<span class=\"coordinate-type\">X,Y: </span>";html+=_84c.lon.toFixed(_84d)+", "+_84c.lat.toFixed(_84d);}var _84e=new OpenLayers.Geometry.Point(_84c.lon,_84c.lat);var _84f=OpenLayers.Projection.transform(_84e,this.map_proj,this.lat_long);if(CONFIGURATION.coordinate_display.latlon){html+="<span class=\"coordinate-type\">Lat, Lon: </span>";html+=_84f.y.toFixed(3)+", "+_84f.x.toFixed(3);}if(CONFIGURATION.coordinate_display.usng){html+="<span class=\"coordinate-type\">USNG: </span>";var _850=OpenLayers.INCHES_PER_UNIT;var _851=Map.getResolution()*(_850[Map.getUnits()]*(1/_850["m"]));var _84d=6-Math.ceil(Math.log(_851)/2.302585092994046);try{var _852=this.usng.fromLonLat({lon:_84f.x,lat:_84f.y},_84d);html+=_852;}catch(err){html+=err;}}return html;}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_853,_854){var _855=[];function _856(attr,dir,comp,s){return function(_857,_858){var a=s.getValue(_857,attr);var b=s.getValue(_858,attr);return dir*comp(a,b);};};var _859;var map=_854.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_853.length;i++){_859=_853[i];var attr=_859.attribute;if(attr){var dir=(_859.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_855.push(_856(attr,dir,comp,_854));}}return function(rowA,rowB){var i=0;while(i<_855.length){var ret=_855[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_85a){_85a=_85a||{};if(!_85a.store){_85a.store=this;}var self=this;var _85b=function(_85c,_85d){if(_85d.onError){var _85e=_85d.scope||dojo.global;_85d.onError.call(_85e,_85c,_85d);}};var _85f=function(_860,_861){var _862=_861.abort||null;var _863=false;var _864=_861.start?_861.start:0;var _865=(_861.count&&(_861.count!==Infinity))?(_864+_861.count):_860.length;_861.abort=function(){_863=true;if(_862){_862.call(_861);}};var _866=_861.scope||dojo.global;if(!_861.store){_861.store=self;}if(_861.onBegin){_861.onBegin.call(_866,_860.length,_861);}if(_861.sort){_860.sort(dojo.data.util.sorter.createSortFunction(_861.sort,self));}if(_861.onItem){for(var i=_864;(i<_860.length)&&(i<_865);++i){var item=_860[i];if(!_863){_861.onItem.call(_866,item,_861);}}}if(_861.onComplete&&!_863){var _867=null;if(!_861.onItem){_867=_860.slice(_864,_865);}_861.onComplete.call(_866,_867,_861);}};this._fetchItems(_85a,_85f,_85b);return _85a;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_868,_869){var rxp="^";var c=null;for(var i=0;i<_868.length;i++){c=_868.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_868.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_869){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}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\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\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(_86a,_86b,_86c,rtl){if(this.aroundNode&&this.aroundNode===_86b){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_86a;var pos=dijit.placeOnScreenAroundElement(this.domNode,_86b,dijit.getPopupAroundAlignment((_86c&&_86c.length)?_86c:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_86b;},orient:function(node,_86d,_86e,_86f,_870){this.connectorNode.style.top="";var _871=_86f.w-this.connectorNode.offsetWidth;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"}[_86d+"-"+_86e];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _872=Math.min((Math.max(_871,1)),size.w);var _873=_872<size.w;this.domNode.style.width=_872+"px";if(_873){this.containerNode.style.overflow="auto";var _874=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_874>_872){_874=_874+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_874+"px";}}if(_86e.charAt(0)=="B"&&_86d.charAt(0)=="B"){var mb=dojo.marginBox(node);var _875=this.connectorNode.offsetHeight;if(mb.h>_86f.h){var _876=_86f.h-(_870.h/2)-(_875/2);this.connectorNode.style.top=_876+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_870.h/2-_875/2,0),mb.h-_875)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_871);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_877){if(this._onDeck&&this._onDeck[1]==_877){this._onDeck=null;}else{if(this.aroundNode===_877){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_878,_879,_87a,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_878,_879,_87a,rtl);};dijit.hideTooltip=function(_87b){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_87b);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_87c){dojo.forEach(this._connections||[],function(_87d){dojo.forEach(_87d,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_87c)?_87c:(_87c?[_87c]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_87c);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);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 _87e=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_87e);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_87f){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_87f,this.position,!this.isLeftToRight());this._connectNode=_87f;this.onShow(_87f,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(_880,_881){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_882){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_883,_884){return (new RegExp("^(?:"+this.regExpGen(_884)+")"+(this.required?"":"?")+"$")).test(_883)&&(!this.required||!this._isEmpty(_883))&&(this._isEmpty(_883)||this.parse(_883,_884)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_885){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_886){return (this.trim?/^\s*$/:/^$/).test(_886);},getErrorMessage:function(_887){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_888){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_889){var _88a="";var _88b=this.disabled||this.isValid(_889);if(_88b){this._maskValidSubsetError=true;}var _88c=this._isEmpty(this.textbox.value);var _88d=!_88b&&_889&&this._isValidSubset();this._set("state",_88b?"":(((((!this._hasBeenBlurred||_889)&&_88c)||_88d)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_88b?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_889&&_88d;_88a=this.getErrorMessage(_889);}else{if(this.state=="Incomplete"){_88a=this.getPromptMessage(_889);this._maskValidSubsetError=!this._hasBeenBlurred||_889;}else{if(_88c){_88a=this.getPromptMessage(_889);}}}this.set("message",_88a);return _88b;},displayMessage:function(_88e){dijit.hideTooltip(this.domNode);if(_88e&&this._focused){dijit.showTooltip(_88e,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_88f){if(!_88f.locale&&this.lang){_88f.locale=this.lang;}this._set("constraints",_88f);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _890="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_890+=re;break;case ")":_890+="|$)";break;default:_890+="(?:"+re+"|$)";break;}});}try{"".search(_890);}catch(e){_890=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_890+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_891){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_892){this._set("required",_892);dijit.setWaiState(this.focusNode,"required",_892);this._refreshState();},_setMessageAttr:function(_893){this._set("message",_893);this.displayMessage(_893);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_894){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_895,_896){return ("min" in _896?(this.compare(_895,_896.min)>=0):true)&&("max" in _896?(this.compare(_895,_896.max)<=0):true);},isInRange:function(_897){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _898=false;var _899=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_898=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_899=(typeof max=="number")&&max>0;}return _898||_899;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_89a){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_89a));},getErrorMessage:function(_89b){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_89b)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_89c){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{dijit.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{dijit.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_89d,_89e){dijit.setWaiState(this.focusNode,"valuenow",_89d);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_89f){var pos=0;if(typeof (_89f.selectionStart)=="number"){pos=_89f.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_89f.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_8a0,_8a1){_8a1=parseInt(_8a1);dijit.selectInputText(_8a0,_8a1,_8a1);},_setDisabledAttr:function(_8a2){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_8a2);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(dojo.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _8a3=false;var pw=this.dropDown;var dk=dojo.keys;var _8a4=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_8a4=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_8a4);}dojo.stopEvent(evt);break;case dk.ENTER:if(_8a4){if(_8a4==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_8a4==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _8a5=this.get("displayedValue");if(pw&&(_8a5==pw._messages["previousMessage"]||_8a5==pw._messages["nextMessage"])){break;}if(_8a4){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_8a4){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_8a3=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_8a3=true;break;default:_8a3=typeof key=="string"||key==229;}if(_8a3){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _8a6=this.ignoreCase?"toLowerCase":"substr";if(text[_8a6](0).indexOf(this.focusNode.value[_8a6](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_8a7,_8a8){this._fetchHandle=null;if(this.disabled||this.readOnly||(_8a8.query[this.searchAttr]!=this._lastQuery)){return;}var _8a9=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_8a7.length&&!this._maxOptions){this.closeDropDown();return;}_8a8._maxOptions=this._maxOptions;var _8aa=this.dropDown.createOptions(_8a7,_8a8,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_8a8.direction){if(1==_8a8.direction){this.dropDown.highlightFirstOption();}else{if(-1==_8a8.direction){this.dropDown.highlightLastOption();}}if(_8a9){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_8a8.query[this.searchAttr])){this._announceOption(_8aa[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_8ab){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _8ac=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_8ac==pw._messages["previousMessage"]||_8ac==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_8ac);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_8ad,_8ae){if(!_8ae){_8ae=this.store.getValue(item,this.searchAttr);}var _8af=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_8ae;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_8af,_8ad,_8ae);},_announceOption:function(node){if(!node){return;}var _8b0;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_8b0=node.innerHTML;this.item=undefined;this.value="";}else{_8b0=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_8b0);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_8b0);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _8b1=this.id+"_popup",_8b2=dojo.getObject(this.dropDownClass,false);this.dropDown=new _8b2({onChange:dojo.hitch(this,this._selectOption),id:_8b1,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_8b1);}var _8b3=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_8b3[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_8b4,_8b5){this.searchTimer=null;var _8b6={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_8b4,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_8b7){_8b5._fetchHandle=null;console.error("dijit.form.ComboBox: "+_8b7);_8b5.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_8b6,_8b5.fetchProperties);this._fetchHandle=_8b5.store.fetch(_8b6);var _8b8=function(_8b9,_8ba){_8b9.start+=_8b9.count*_8ba;_8b9.direction=_8ba;this._fetchHandle=this.store.fetch(_8b9);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_8b8,this._fetchHandle);},_8b3,this),this.searchDelay);},_setMaxOptions:function(size,_8bb){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _8bc=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_8bc);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _8bd=this._getValueField();this.value=this.store.getValue(item,_8bd);}}}this.inherited(arguments);},postCreate:function(){var _8be=dojo.query("label[for=\""+this.id+"\"]");if(_8be.length){_8be[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_8be[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _8bf=this.labelFunc(item,this.store),_8c0=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_8bf=this.doHighlight(_8bf,this._escapeHtml(this._lastInput));_8c0="html";}return {html:_8c0=="html",label:_8bf};},doHighlight:function(_8c1,find){var _8c2=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_8c1).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_8c2),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_8c3){return _8c3.getValue(item,this.labelAttr||this.searchAttr).toString();}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_8c4){this.value=_8c4;this.onChange(_8c4);},onChange:function(_8c5){},onPage:function(_8c6){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_8c7){var _8c8=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _8c9=_8c7(item);if(_8c9.html){_8c8.innerHTML=_8c9.label;}else{_8c8.appendChild(dojo.doc.createTextNode(_8c9.label));}if(_8c8.innerHTML==""){_8c8.innerHTML="&nbsp;";}_8c8.item=item;return _8c8;},createOptions:function(_8ca,_8cb,_8cc){this.previousButton.style.display=(_8cb.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_8ca,function(item,i){var _8cd=this._createOption(item,_8cc);dojo.attr(_8cd,"id",this.id+i);this.domNode.insertBefore(_8cd,this.nextButton);},this);var _8ce=false;if(_8cb._maxOptions&&_8cb._maxOptions!=-1){if((_8cb.start+_8cb.count)<_8cb._maxOptions){_8ce=true;}else{if((_8cb.start+_8cb.count)>_8cb._maxOptions&&_8cb.count==_8ca.length){_8ce=true;}}}else{if(_8cb.count==_8ca.length){_8ce=true;}}this.nextButton.style.display=_8ce?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}dojo.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _8cf=this.domNode.firstChild;var _8d0=_8cf.nextSibling;this._focusOptionNode(_8d0.style.display=="none"?_8cf:_8d0);dojo.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dojo.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}dojo.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _8d1=0;var _8d2=this.domNode.scrollTop;var _8d3=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_8d1<_8d3){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _8d4=this.domNode.scrollTop;_8d1+=(_8d4-_8d2)*(up?-1:1);_8d2=_8d4;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_8d5,_8d6,_8d7){this._set("item",null);if(!_8d5){_8d5="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_8d5,_8d6,_8d7);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=dojo.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_8d8,_8d9){return (_8d8=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_8da){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_8db,_8dc){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _8dd=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_8de=dojo.query("> option",this.root).filter(function(_8df){return (_8df.innerText||_8df.textContent||"").match(_8dd);});if(args.sort){_8de.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_8db(_8de,args);},close:function(_8e0){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_8e1){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_8e1.url;this._ccUrl=_8e1.url;this.url=_8e1.url;this._jsonData=_8e1.data;this.data=null;this._datatypeMap=_8e1.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_8e2){return dojo.date.stamp.fromISOString(_8e2);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_8e1.urlPreventCache!==undefined){this.urlPreventCache=_8e1.urlPreventCache?true:false;}if(_8e1.hierarchical!==undefined){this.hierarchical=_8e1.hierarchical?true:false;}if(_8e1.clearOnClose){this.clearOnClose=true;}if("failOk" in _8e1){this.failOk=_8e1.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_8e3){if(typeof _8e3!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_8e4,_8e5){var _8e6=this.getValues(item,_8e4);return (_8e6.length>0)?_8e6[0]:_8e5;},getValues:function(item,_8e7){this._assertIsItem(item);this._assertIsAttribute(_8e7);return (item[_8e7]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _8e8=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_8e8.push(key);}}return _8e8;},hasAttribute:function(item,_8e9){this._assertIsItem(item);this._assertIsAttribute(_8e9);return (_8e9 in item);},containsValue:function(item,_8ea,_8eb){var _8ec=undefined;if(typeof _8eb==="string"){_8ec=dojo.data.util.filter.patternToRegExp(_8eb,false);}return this._containsValue(item,_8ea,_8eb,_8ec);},_containsValue:function(item,_8ed,_8ee,_8ef){return dojo.some(this.getValues(item,_8ed),function(_8f0){if(_8f0!==null&&!dojo.isObject(_8f0)&&_8ef){if(_8f0.toString().match(_8ef)){return true;}}else{if(_8ee===_8f0){return true;}}});},isItem:function(_8f1){if(_8f1&&_8f1[this._storeRefPropName]===this){if(this._arrayOfAllItems[_8f1[this._itemNumPropName]]===_8f1){return true;}}return false;},isItemLoaded:function(_8f2){return this.isItem(_8f2);},loadItem:function(_8f3){this._assertIsItem(_8f3.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_8f4,_8f5,_8f6){var self=this,_8f7=function(_8f8,_8f9){var _8fa=[],i,key;if(_8f8.query){var _8fb,_8fc=_8f8.queryOptions?_8f8.queryOptions.ignoreCase:false;var _8fd={};for(key in _8f8.query){_8fb=_8f8.query[key];if(typeof _8fb==="string"){_8fd[key]=dojo.data.util.filter.patternToRegExp(_8fb,_8fc);}else{if(_8fb instanceof RegExp){_8fd[key]=_8fb;}}}for(i=0;i<_8f9.length;++i){var _8fe=true;var _8ff=_8f9[i];if(_8ff===null){_8fe=false;}else{for(key in _8f8.query){_8fb=_8f8.query[key];if(!self._containsValue(_8ff,key,_8fb,_8fd[key])){_8fe=false;}}}if(_8fe){_8fa.push(_8ff);}}_8f5(_8fa,_8f8);}else{for(i=0;i<_8f9.length;++i){var item=_8f9[i];if(item!==null){_8fa.push(item);}}_8f5(_8fa,_8f8);}};if(this._loadFinished){_8f7(_8f4,this._getItemsArray(_8f4.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_8f4,filter:_8f7});}else{this._loadInProgress=true;var _900={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _901=dojo.xhrGet(_900);_901.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_8f7(_8f4,self._getItemsArray(_8f4.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_8f6(e,_8f4);}});_901.addErrback(function(_902){self._loadInProgress=false;_8f6(_902,_8f4);});var _903=null;if(_8f4.abort){_903=_8f4.abort;}_8f4.abort=function(){var df=_901;if(df&&df.fired===-1){df.cancel();df=null;}if(_903){_903.call(_8f4);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_8f7(_8f4,this._getItemsArray(_8f4.queryOptions));}catch(e){_8f6(e,_8f4);}}else{_8f6(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_8f4);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _904=this._queuedFetches[i],_905=_904.args,_906=_904.filter;if(_906){_906(_905,this._getItemsArray(_905.queryOptions));}else{this.fetchItemByIdentity(_905);}}this._queuedFetches=[];}},_getItemsArray:function(_907){if(_907&&_907.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_908){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_909){var _90a=false,self=this;function _90b(_90c){var _90d=((_90c!==null)&&(typeof _90c==="object")&&(!dojo.isArray(_90c)||_90a)&&(!dojo.isFunction(_90c))&&(_90c.constructor==Object||dojo.isArray(_90c))&&(typeof _90c._reference==="undefined")&&(typeof _90c._type==="undefined")&&(typeof _90c._value==="undefined")&&self.hierarchical);return _90d;};function _90e(_90f){self._arrayOfAllItems.push(_90f);for(var _910 in _90f){var _911=_90f[_910];if(_911){if(dojo.isArray(_911)){var _912=_911;for(var k=0;k<_912.length;++k){var _913=_912[k];if(_90b(_913)){_90e(_913);}}}else{if(_90b(_911)){_90e(_911);}}}}};this._labelAttr=_909.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_909.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_90a=true;}_90e(item);item[this._rootItemPropName]=true;}var _914={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _915=item[key];if(_915!==null){if(!dojo.isArray(_915)){item[key]=[_915];}}else{item[key]=[null];}}_914[key]=key;}}while(_914[this._storeRefPropName]){this._storeRefPropName+="_";}while(_914[this._itemNumPropName]){this._itemNumPropName+="_";}while(_914[this._reverseRefMap]){this._reverseRefMap+="_";}var _916;var _917=_909.identifier;if(_917){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_917;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_916=item[_917];var _918=_916[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_918)){this._itemsByIdentity[_918]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_917+"].  Value collided: ["+_918+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_917+"].  Value collided: ["+_918+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_916=item[key];for(var j=0;j<_916.length;++j){_915=_916[j];if(_915!==null&&typeof _915=="object"){if(("_type" in _915)&&("_value" in _915)){var type=_915._type;var _919=this._datatypeMap[type];if(!_919){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_919)){_916[j]=new _919(_915._value);}else{if(dojo.isFunction(_919.deserialize)){_916[j]=_919.deserialize(_915._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_915._reference){var _91a=_915._reference;if(!dojo.isObject(_91a)){_916[j]=this._getItemByIdentity(_91a);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _91b=this._arrayOfAllItems[k],_91c=true;for(var _91d in _91a){if(_91b[_91d]!=_91a[_91d]){_91c=false;}}if(_91c){_916[j]=_91b;}}}if(this.referenceIntegrity){var _91e=_916[j];if(this.isItem(_91e)){this._addReferenceToMap(_91e,item,key);}}}else{if(this.isItem(_915)){if(this.referenceIntegrity){this._addReferenceToMap(_915,item,key);}}}}}}}},_addReferenceToMap:function(_91f,_920,_921){},getIdentity:function(item){var _922=this._features["dojo.data.api.Identity"];if(_922===Number){return item[this._itemNumPropName];}else{var _923=item[_922];if(_923){return _923[0];}}return null;},fetchItemByIdentity:function(_924){var item,_925;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_924});}else{this._loadInProgress=true;var _926={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _927=dojo.xhrGet(_926);_927.addCallback(function(data){var _928=_924.scope?_924.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_924.identity);if(_924.onItem){_924.onItem.call(_928,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_924.onError){_924.onError.call(_928,error);}}});_927.addErrback(function(_929){self._loadInProgress=false;if(_924.onError){var _92a=_924.scope?_924.scope:dojo.global;_924.onError.call(_92a,_929);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_924.identity);if(_924.onItem){_925=_924.scope?_924.scope:dojo.global;_924.onItem.call(_925,item);}}}}else{item=this._getItemByIdentity(_924.identity);if(_924.onItem){_925=_924.scope?_924.scope:dojo.global;_924.onItem.call(_925,item);}}},_getItemByIdentity:function(_92b){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_92b)){item=this._itemsByIdentity[_92b];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_92b)){item=this._arrayOfAllItems[_92b];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _92c=this._features["dojo.data.api.Identity"];if(_92c===Number){return null;}else{return [_92c];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _92d={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _92e=dojo.xhrGet(_92d);_92e.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){throw e;}});_92e.addErrback(function(_92f){throw _92f;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["GeoMOOSE.UI.ScaleJumper"]){dojo._hasResource["GeoMOOSE.UI.ScaleJumper"]=true;dojo.provide("GeoMOOSE.UI.ScaleJumper");dojo.declare("GeoMOOSE.UI.ScaleJumper",null,{select:null,draw:function(){var _930={"label":"name","items":[]};for(var e in CONFIGURATION.jumpto_scales){_930.items.push({"name":e,"value":CONFIGURATION.jumpto_scales[e]});}var _931=dojo.byId("footer");var _932=dojo.create("span",{},_931,1);dojo.style(_932,{"position":"absolute","right":"0px","padding":"2px","paddingRight":"3px"});var _933=dojo.create("span",{},_932);this.select=new dijit.form.ComboBox({"store":new dojo.data.ItemFileReadStore({data:_930}),"query":{name:"*"},"style":"width: 150px; color: black; textAlign: right","parseScale":function(_934){return parseFloat(_934.replace("1:",""));},"onChange":function(){var _935=Map.getScale().toFixed(0);var _936=this.parseScale(this.get("value")).toFixed(0);if(_935!=_936){Map.zoomToScale(_936,!CONFIGURATION.franctional_zoom);}}},_933);},onGotMapbook:function(){this.draw();this.setScale();Map.events.register("moveend",this,this.setScale);},setScale:function(){this.select.set("value","1:"+Map.getScale().toFixed(0));}});}if(!dojo._hasResource["dijit.form._FormSelectWidget"]){dojo._hasResource["dijit.form._FormSelectWidget"]=true;dojo.provide("dijit.form._FormSelectWidget");dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_937){var _938=_937,opts=this.options||[],l=opts.length;if(_938===undefined){return opts;}if(dojo.isArray(_938)){return dojo.map(_938,"return this.getOptions(item);",this);}if(dojo.isObject(_937)){if(!dojo.some(this.options,function(o,idx){if(o===_938||(o.value&&o.value===_938.value)){_938=idx;return true;}return false;})){_938=-1;}}if(typeof _938=="string"){for(var i=0;i<l;i++){if(opts[i].value===_938){_938=i;break;}}}if(typeof _938=="number"&&_938>=0&&_938<l){return this.options[_938];}return null;},addOption:function(_939){if(!dojo.isArray(_939)){_939=[_939];}dojo.forEach(_939,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_93a){if(!dojo.isArray(_93a)){_93a=[_93a];}var _93b=this.getOptions(_93a);dojo.forEach(_93b,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_93c){if(!dojo.isArray(_93c)){_93c=[_93c];}dojo.forEach(_93c,function(i){var _93d=this.getOptions(i),k;if(_93d){for(k in i){_93d[k]=i[k];}}},this);this._loadChildren();},setStore:function(_93e,_93f,_940){var _941=this.store;_940=_940||{};if(_941!==_93e){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_93e&&_93e.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_93e,"onNew",this,"_onNewItem"),dojo.connect(_93e,"onDelete",this,"_onDeleteItem"),dojo.connect(_93e,"onSet",this,"_onSetItem")];}this._set("store",_93e);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_93e){this._loadingStore=true;_93e.fetch(dojo.delegate(_940,{onComplete:function(_942,opts){if(this.sortByLabel&&!_940.sort&&_942.length){_942.sort(dojo.data.util.sorter.createSortFunction([{attribute:_93e.getLabelAttributes(_942[0])[0]}],_93e));}if(_940.onFetch){_942=_940.onFetch.call(this,_942,opts);}dojo.forEach(_942,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_93f);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_942);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _941;},_setValueAttr:function(_943,_944){if(this._loadingStore){this._pendingValue=_943;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_943)){_943=[_943];}dojo.forEach(_943,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_943[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_943=dojo.filter(_943,function(i){return i&&i.value;});if(!this.multiple&&(!_943[0]||!_943[0].value)&&opts.length){_943[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_943,function(v){return v.value===i.value;});});var val=dojo.map(_943,function(i){return i.value;}),disp=dojo.map(_943,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_944);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!dojo.isArray(val)){val=[val];}var ret=dojo.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_945){_945.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_946){var _947=dojo.some(val,function(v){return _946.option&&(v===_946.option.value);});dojo.toggleClass(_946.domNode,this.baseClass+"SelectedOption",_947);dijit.setWaiState(_946.domNode,"selected",_947);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=dojo.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return dojo.map(dojo.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_948){if(!_948||!_948.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _949=this.store;this.removeOption(_949.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _94a=this.store,_94b=_94a.getLabel(item),_94c=(_94b?_94a.getIdentity(item):null);return {value:_94c,label:_94b,item:item};},_addOptionForItem:function(item){var _94d=this.store;if(!_94d.isItemLoaded(item)){_94d.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _94e=this._getOptionObjForItem(item);this.addOption(_94e);},constructor:function(_94f){this._oValue=(_94f||{}).value||null;},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+dojo._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this._set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _950=this.store,_951={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_951[i]=this[i];}delete this[i];},this);if(_950&&_950.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_950,this._oValue,_951);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_952){},_removeOptionItem:function(_953){},_setDisplay:function(_954){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_955){},onSetStore:function(){}});}if(!dojo._hasResource["dijit.form.Select"]){dojo._hasResource["dijit.form.Select"]=true;dojo.provide("dijit.form.Select");dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){this.inherited(arguments);var o=(this.menuTableNode=this.domNode);var n=(this.domNode=dojo.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}}));if(o.parentNode){o.parentNode.replaceChild(n,o);}dojo.removeClass(o,"dijitMenuTable");n.className=o.className+" dijitSelectMenu";o.className="dijitReset dijitMenuTable";dijit.setWaiRole(o,"listbox");dijit.setWaiRole(n,"presentation");n.appendChild(o);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},resize:function(mb){if(mb){dojo.marginBox(this.domNode,mb);if("w" in mb){this.menuTableNode.style.width="100%";}}}});dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\n\trole=\"combobox\" aria-haspopup=\"true\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" role=\"presentation\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" aria-hidden=\"true\"\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" role=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex||0;this.value=this.options[si>=0?si:0].value;}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_956){if(!_956.value&&!_956.label){return new dijit.MenuSeparator();}else{var _957=dojo.hitch(this,"_setValueAttr",_956);var item=new dijit.MenuItem({option:_956,label:_956.label||this.emptyLabel,onClick:_957,disabled:_956.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_958){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_958));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_959){if(_959===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_95a){_95a.destroyRecursive();});var item=new dijit.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_95b){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_95c){var lbl=_95c||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_95d){var _95e=this.isValid(_95d);this._set("state",_95e?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_95e?"false":"true");var _95f=_95e?"":this._missingMsg;if(this.message!==_95f){this._set("message",_95f);dijit.hideTooltip(this.domNode);if(_95f){dijit.showTooltip(_95f,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _95e;},isValid:function(_960){return (!this.required||this.value===0||!(/^\s*$/.test(this.value||"")));},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);this._set("state","");this._set("message","");},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},_setStyleAttr:function(_961){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_962){this._loadChildren(true);this._isLoaded=true;_962();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_963){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_963);delete this.dropDown;}this.inherited(arguments);}});}if(!dojo._hasResource["GeoMOOSE.UI.ZoomTo"]){dojo._hasResource["GeoMOOSE.UI.ZoomTo"]=true;dojo.provide("GeoMOOSE.UI.ZoomTo");dojo.declare("GeoMOOSE.UI.ZoomTo",[dijit.layout.ContentPane],{zoomTo:function(){var _964=dijit.byId(this.select_id);var v=_964.get("value");if(v instanceof Array){Map.zoomToExtent(OpenLayers.Bounds.fromArray(v));_964.set("value","reset");}},postCreate:function(){var p=dojo.create("div",{});this.set("content",p);for(var _965 in CONFIGURATION["zoomto"]){var _966=CONFIGURATION["zoomto"][_965];var _967=dojo.create("div",{},p);dojo.style(_967,{"padding":".5em"});var _968=dojo.create("span",{"innerHTML":_965},_967);var _969=[{"label":"","value":"reset"}];for(var _96a in CONFIGURATION["zoomto"][_965]){_969.push({"label":_96a,"value":_966[_96a]});}this.select_id=GeoMOOSE.id();var _96b=dojo.create("span",{"id":this.select_id},_967);var _96c=new dijit.form.Select({maxHeight:160,options:_969},_96b);dojo.connect(_96c,"onChange",dojo.hitch(this,this.zoomTo));dojo.addClass(_96c.domNode,["zoomto_select"]);}}});}if(!dojo._hasResource["GeoMOOSE.UI.LinksBar"]){dojo._hasResource["GeoMOOSE.UI.LinksBar"]=true;dojo.provide("GeoMOOSE.UI.LinksBar");dojo.declare("GeoMOOSE.UI.LinksBar",null,{gotMapbook:function(){var _96d=dojo.byId("menubar");if(GeoMOOSE.isDefined(CONFIGURATION["links_bar_html"])){_96d.innerHTML=CONFIGURATION["links_bar_html"];}},constructor:function(){GeoMOOSE.register("onMapbookLoaded",this,this.gotMapbook);}});}if(!dojo._hasResource["GeoMOOSE.Tool.MeasureArea"]){dojo._hasResource["GeoMOOSE.Tool.MeasureArea"]=true;dojo.provide("GeoMOOSE.Tool.MeasureArea");dojo.declare("GeoMOOSE.Tool.MeasureArea",null,{show_segments:true,default_units:"yd",units:[{"unit":"a","label":"Acres"},{"unit":"ft","label":"Square Feet"},{"unit":"m","label":"Square Meters"},{"unit":"km","label":"Square Kilometers"},{"unit":"yd","label":"Square Yards"},{"unit":"mi","label":"Square Miles"}],conversion:{"a":6272640,"ft":144,"m":1550.0031,"km":1550003100,"yd":1296,"mi":4014489600},helpText:"Click on the map to start measuring. Double-click to finish measuring.",start_measure:function(){var _96e=GeoMOOSE.getTab("measure_area_tab");var p=null;if(!GeoMOOSE.isDefined(_96e)){p=dojo.create("div",{});_96e=new dijit.layout.ContentPane({"title":"Measure Area","closable":true,"content":p});GeoMOOSE.addTab("measure_area_tab",_96e);dojo.connect(_96e,"onClose",dojo.hitch(this,this.onClose));dojo.connect(_96e,"onHide",dojo.hitch(this,this.onHide));dojo.connect(_96e,"onShow",dojo.hitch(this,this.onShow));}else{p=_96e.content;}p.innerHTML="";var _96f=dojo.create("div",{},p);var _970=dojo.create("div",{},_96f);var _971=dojo.create("span",{"innerHTML":"Total:"},_970);dojo.addClass(_971,["dijitInline","measure_header_label"]);this.total_display=new dijit.form.TextBox({"style":{"width":"10em"},"readOnly":true},dojo.create("span",{},_970));if(this.show_segments){var _972=dojo.create("div",{},_96f);var _973=dojo.create("span",{"innerHTML":"Segment:"},_972);dojo.addClass(_973,["dijitInline","measure_header_label"]);this.segment_display=new dijit.form.TextBox({"style":{"width":"10em"},"readOnly":true},dojo.create("span",{},_972));}var _974=dojo.create("div",{},_96f);var _975=dojo.create("span",{"innerHTML":"Units:"},_974);dojo.addClass(_975,["dijitInline","measure_header_label"]);var _976=[];for(var i=0,ii=this.units.length;i<ii;i++){_976.push({"label":this.units[i].label,"value":this.units[i].unit});}this.units_select=new dijit.form.Select({"style":{"width":"10em"},"options":_976,"onChange":dojo.hitch(this,this.change_units)},dojo.create("span",{},_974));this.units_select.set("value",CONFIGURATION.measure_tool.area_units);var _977=dojo.create("div",{},_96f);dojo.addClass(dojo.create("span",{},_977),["dijitInline","measure_header_label"]);this.clear_button=new dijit.form.Button({"label":"Clear","onClick":dojo.hitch(this,this.clear_log)},dojo.create("span",{},_977));var help=dojo.create("div",{},p);dojo.addClass(help,["help-text"]);help.innerHTML=this.helpText;this.tbody_id=GeoMOOSE.id();var body=dojo.create("div",{},p);var _978=dojo.create("table",{},body);var _979=dojo.create("thead",{},_978);var _97a=dojo.create("tr",{},_979);var _97b={"#":"measure_segment_id_column","Segment":"measure_segment_column","Total":"measure_total_column"};if(!this.show_segments){delete _97b["Segment"];}for(var _97c in _97b){dojo.addClass(dojo.create("th",{"innerHTML":_97c},_97a),_97b[_97c]);}var _97d=dojo.create("tbody",{"id":this.tbody_id},_978);if(!this.show_segments){dojo.style(_978,{"display":"none"});}GeoMOOSE.selectTab("measure_area_tab");},constructor:function(map,_97e){dojo.mixin(this,_97e);this.measures=[];if(parseBoolean(CONFIGURATION.measure_tool.show_area_segments,true)===false){this.show_segments=false;}var _97f=new OpenLayers.Style();_97f.addRules([new OpenLayers.Rule({symbolizer:CONFIGURATION.measure_tool.style})]);var _980=new OpenLayers.StyleMap({"default":_97f});var _981={geodesic:true,handlerOptions:{style:"default",layerOptions:{styleMap:_980},persist:true}};this.measure_tool=new GeoMOOSE.Control.Measure(GeoMOOSE.Handler.MeasurePolygon,_981);var self=this;Tools["measurearea"]={active:false,activate:function(){if(!this.active){self.start_measure();}this.active=true;},deactivate:function(){if(this.active){self.closeMeasure();}this.active=false;},draw:function(){},setMap:function(){}};this.measure_tool.events.register("measure",this,this.finish_measure);this.measure_tool.events.register("measuremove",this,this.show_measure);this.measure_tool.events.register("measurepartial",this,this.log_measure);this.onMapCreated(map);},onHide:function(){this.measure_tool.deactivate();},onShow:function(){this.measure_tool.activate();},onMapCreated:function(map){map.addControl(this.measure_tool);},onClose:function(){GeoMOOSE.activateDefaultTool();},closeMeasure:function(map){this.measure_tool.deactivate();GeoMOOSE.closeTab("measure_area_tab");},_convertUnits:function(area){var _982=this.conversion[Map.units];var _983=area/this.conversion[this.units_select.get("value")];return _983;},show_measure:function(_984){this.current_segment=_984.measure;if(this.show_segments){this.segment_display.set("value",this._convertUnits(_984.measure).toFixed(CONFIGURATION.measure_tool.precision));}},log_measure:function(_985){if(this.reset_measure){this.clear_log();}this.reset_measure=false;if(_985.measure.toFixed()!=0){this.measures.push(_985.measure);}this.current_total=_985.measure;this.total_display.set("value",this._convertUnits(_985.measure).toFixed(CONFIGURATION.measure_tool.precision));this.render_log();},render_log:function(){var _986=dojo.byId(this.tbody_id);while(_986.firstChild){_986.removeChild(_986.firstChild);}var _987=0;for(var i=0,ii=this.measures.length;i<ii;i++){var row=dojo.create("tr",{},_986);var seg=this.measures[i]-_987;dojo.create("td",{"innerHTML":i+1},row);if(this.show_segments){dojo.create("td",{"innerHTML":this._convertUnits(seg).toFixed(CONFIGURATION.measure_tool.precision)},row);}dojo.create("td",{"innerHTML":this._convertUnits(this.measures[i]).toFixed(CONFIGURATION.measure_tool.precision)},row);_987=this.measures[i];}},clear_log:function(){this.measures=[];this.render_log();this.total_display.set("value","");if(this.show_segments){this.segment_display.set("value","");}},change_units:function(){this.render_log();var _988=this._convertUnits(this.current_total).toFixed(CONFIGURATION.measure_tool.precision);if(isNaN(_988)){_988="";}this.total_display.set("value",_988);if(this.show_segments){var _989=this._convertUnits(this.current_segment).toFixed(CONFIGURATION.measure_tool.precision);if(isNaN(_989)){_989="";}this.segment_display.set("value",_989);}},finish_measure:function(){this.reset_measure=true;}});}dojo.registerModulePath("GeoMOOSE","../../../geomoose/GeoMOOSE");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","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);if(dojo.isBrowser&&(document.readyState==="complete"||dojo.config.afterOnLoad)){window.setTimeout(dojo._loadInit,100);}})();
