Changeset 878


Ignore:
Timestamp:
Aug 23, 2012, 12:47:29 PM (12 years ago)
Author:
theduckylittle
Message:

Removed some develoeprs cruft from mapbook.xml, added opacity back in for WMS + MapServer layers, refs: #127

Location:
geomoose2/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • geomoose2/trunk/conf/mapbook.xml

    r877 r878  
    5252
    5353        </configuration>
    54 
    55  <service name="newservice" title="My Service">
    56   <url>php/myservice.php</url> <!-- The URL to our service -->
    57   <!--
    58    This will prompt the user to create a shape.  The shape
    59    will be stored in WKT and sent to the script in a field named wkt
    60   -->
    61   <step type="spatial" name="wkt">
    62   </step>
    63   <!--
    64     This will ask the user to enter a user name.
    65   -->
    66   <step type="input">
    67    <input name="username" type="user" title="Username:"/>
    68   </step>
    69  </service>
    70 
    7154        <!--
    7255                The mapping services define the source of the mapping data.
     
    467450                <tool name="search_parcels" title="Search Parcels" type="service" service="search_parcels" selectable="false" show-label="true"/>
    468451
    469                 <tool name="my_tool" title="My service" type="service" selectable="false" service="newservice" show-label="true" icon-class="my_tool_icon"/>
    470452        </toolbar>
    471453</mapbook>
  • geomoose2/trunk/htdocs/build/dojo/dojo.js

    r877 r878  
    1212*/
    1313
    14 (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: 24595 $".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;var _164=null,_165;d.addOnWindowUnload(function(){_164=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_164||_165!=doc){_164=doc.createElement("div");_165=doc;}_164.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_164.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_166){try{node=byId(node);_166=byId(_166);while(node){if(node==_166){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_167){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_167?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_167?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_167?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _168=function(node,ref){var _169=ref.parentNode;if(_169){_169.insertBefore(node,ref);}};var _16a=function(node,ref){var _16b=ref.parentNode;if(_16b){if(_16b.lastChild==ref){_16b.appendChild(node);}else{_16b.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_16c,_16d){_16c=byId(_16c);if(typeof node=="string"){node=/^\s*</.test(node)?d._toDom(node,_16c.ownerDocument):byId(node);}if(typeof _16d=="number"){var cn=_16c.childNodes;if(!cn.length||cn.length<=_16d){_16c.appendChild(node);}else{_168(node,cn[_16d<0?0:_16d]);}}else{switch(_16d){case "before":_168(node,_16c);break;case "after":_16a(node,_16c);break;case "replace":_16c.parentNode.replaceChild(node,_16c);break;case "only":d.empty(_16c);_16c.appendChild(node);break;case "first":if(_16c.firstChild){_168(node,_16c.firstChild);break;}default:_16c.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_16e,_16f){return parseFloat(_16f)||0;};}else{d._toPixelValue=function(_170,_171){if(!_171){return 0;}if(_171=="medium"){return 4;}if(_171.slice&&_171.slice(-2)=="px"){return parseFloat(_171);}with(_170){var _172=style.left;var _173=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_171;_171=style.pixelLeft;}catch(e){_171=0;}style.left=_172;runtimeStyle.left=_173;}return _171;};}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?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE<9?function(node,_174){var ov=_174*100,_175=_174==1;node.style.zoom=_175?"":1;if(!af(node)){if(_175){return _174;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_175;if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_174);});}return _174;}:function(node,_176){return node.style.opacity=_176;};var _177={left:true,top:true};var _178=/margin|padding|width|height|max|min|offset/;var _179=function(node,type,_17a){type=type.toLowerCase();if(d.isIE){if(_17a=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_17a){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _177)){_177[type]=_178.test(type);}return _177[type]?px(node,_17a):_17a;};var _17b=d.isIE?"styleFloat":"cssFloat",_17c={"cssFloat":_17b,"styleFloat":_17b,"float":_17b};dojo.style=function(node,_17d,_17e){var n=byId(node),args=arguments.length,op=(_17d=="opacity");_17d=_17c[_17d]||_17d;if(args==3){return op?d._setOpacity(n,_17e):n.style[_17d]=_17e;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _17d!="string"){for(var x in _17d){d.style(node,x,_17d[x]);}return s;}return (args==1)?s:_179(n,_17d,s[_17d]||n.style[_17d]);};dojo._getPadExtents=function(n,_17f){var s=_17f||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,_180){var ne="none",s=_180||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,_181){var s=_181||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,_182){var s=_182||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,_183){var s=_183||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getMarginSize=function(node,_184){node=byId(node);var me=d._getMarginExtents(node,_184||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,_185){var s=_185||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,_186){var s=_186||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,_187,_188,_189){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_189);if(_187>=0){_187+=pb.w;}if(_188>=0){_188+=pb.h;}}d._setBox(node,NaN,NaN,_187,_188);};dojo._setMarginBox=function(node,_18a,_18b,_18c,_18d,_18e){var s=_18e||gcs(node),bb=d._usesBorderBox(node),pb=bb?_18f:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_18c>=0&&!ns.width){ns.width="4px";}if(_18d>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_18c>=0){_18c=Math.max(_18c-pb.w-mb.w,0);}if(_18d>=0){_18d=Math.max(_18d-pb.h-mb.h,0);}d._setBox(node,_18a,_18b,_18c,_18d);};var _18f={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 _190=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_191=0,_192=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_191+=val-0;if(node==_192){break;}}node=node.parentNode;}return _191;};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(_193){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){_193+=de.clientLeft;}return (ie<8||qk)?(_193+de.clientWidth-de.scrollWidth):-_193;}return _193;};dojo._abs=dojo.position=function(node,_194){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){var _195=d._getIeDocumentElementOffset();ret.x-=_195.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_195.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(_194){var _196=d._docScroll();ret.x+=_196.x;ret.y+=_196.y;}return ret;};dojo.coords=function(node,_197){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_197);mb.x=abs.x;mb.y=abs.y;return mb;};var _198={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_199={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_19a={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _19b=function(name){return _199[name.toLowerCase()]||name;};var _19c=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _19a[_198[lc]||name]||_19c(byId(node),_199[lc]||name);};var _19d={},_19e=0,_19f=dojo._scopeName+"attrid",_1a0={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_1a1){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(),_1a2=_198[lc]||name,_1a3=_19a[_1a2],_1a4=_199[lc]||name;if(args==3){do{if(_1a2=="style"&&typeof _1a1!="string"){d.style(node,_1a1);break;}if(_1a2=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _1a0){d.empty(node);node.appendChild(d._toDom(_1a1,node.ownerDocument));}else{node[_1a2]=_1a1;}break;}if(d.isFunction(_1a1)){var _1a5=d.attr(node,_19f);if(!_1a5){_1a5=_19e++;d.attr(node,_19f,_1a5);}if(!_19d[_1a5]){_19d[_1a5]={};}var h=_19d[_1a5][_1a2];if(h){d.disconnect(h);}else{try{delete node[_1a2];}catch(e){}}_19d[_1a5][_1a2]=d.connect(node,_1a2,_1a1);break;}if(_1a3||typeof _1a1=="boolean"){node[_1a2]=_1a1;break;}node.setAttribute(_1a4,_1a1);}while(false);return node;}_1a1=node[_1a2];if(_1a3&&typeof _1a1!="undefined"){return _1a1;}if(_1a2!="href"&&(typeof _1a1=="boolean"||d.isFunction(_1a1))){return _1a1;}return _19c(node,_1a4)?node.getAttribute(_1a4):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_19b(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_1a6=_198[lc]||name;if((_1a6 in node)&&_1a6!="href"){return node[_1a6];}var _1a7=_199[lc]||name;return _19c(node,_1a7)?node.getAttribute(_1a7):null;};dojo.create=function(tag,_1a8,_1a9,pos){var doc=d.doc;if(_1a9){_1a9=byId(_1a9);doc=_1a9.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1a8){d.attr(tag,_1a8);}if(_1a9){d.place(tag,_1a9,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _1aa={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"]},_1ab=/<\s*([\w\:]+)/,_1ac={},_1ad=0,_1ae="__"+d._scopeName+"ToDomId";for(var _1af in _1aa){if(_1aa.hasOwnProperty(_1af)){var tw=_1aa[_1af];tw.pre=_1af=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}d._toDom=function(frag,doc){doc=doc||d.doc;var _1b0=doc[_1ae];if(!_1b0){doc[_1ae]=_1b0=++_1ad+"";_1ac[_1b0]=doc.createElement("div");}frag+="";var _1b1=frag.match(_1ab),tag=_1b1?_1b1[1].toLowerCase():"",_1b2=_1ac[_1b0],wrap,i,fc,df;if(_1b1&&_1aa[tag]){wrap=_1aa[tag];_1b2.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_1b2=_1b2.firstChild;}}else{_1b2.innerHTML=frag;}if(_1b2.childNodes.length==1){return _1b2.removeChild(_1b2.firstChild);}df=doc.createDocumentFragment();while(fc=_1b2.firstChild){df.appendChild(fc);}return df;};var _1b3="className";dojo.hasClass=function(node,_1b4){return ((" "+byId(node)[_1b3]+" ").indexOf(" "+_1b4+" ")>=0);};var _1b5=/\s+/,a1=[""],_1b6={},_1b7=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_1b5);}}return s||"";};dojo.addClass=function(node,_1b8){node=byId(node);_1b8=_1b7(_1b8);var cls=node[_1b3],_1b9;cls=cls?" "+cls+" ":" ";_1b9=cls.length;for(var i=0,len=_1b8.length,c;i<len;++i){c=_1b8[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_1b9<cls.length){node[_1b3]=cls.substr(1,cls.length-2);}};dojo.removeClass=function(node,_1ba){node=byId(node);var cls;if(_1ba!==undefined){_1ba=_1b7(_1ba);cls=" "+node[_1b3]+" ";for(var i=0,len=_1ba.length;i<len;++i){cls=cls.replace(" "+_1ba[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_1b3]!=cls){node[_1b3]=cls;}};dojo.replaceClass=function(node,_1bb,_1bc){node=byId(node);_1b6.className=node.className;dojo.removeClass(_1b6,_1bc);dojo.addClass(_1b6,_1bb);if(node.className!==_1b6.className){node.className=_1b6.className;}};dojo.toggleClass=function(node,_1bd,_1be){if(_1be===undefined){_1be=!d.hasClass(node,_1bd);}d[_1be?"addClass":"removeClass"](node,_1bd);};})();}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,_1bf,_1c0){if(!a.sort){a=aps.call(a,0);}var ctor=_1c0||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _1bf?a._stash(_1bf):a;};var _1c1=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 _1c2=function(f,o){return function(){this.forEach(_1c1(f,arguments,o));return this;};};var _1c3=function(f,o){return function(){return this.map(_1c1(f,arguments,o));};};var _1c4=function(f,o){return function(){return this.filter(_1c1(f,arguments,o));};};var _1c5=function(f,g,o){return function(){var a=arguments,body=_1c1(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _1c6=function(a){return a.length==1&&(typeof a[0]=="string");};var _1c7=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=_1c3;nl._adaptAsForEach=_1c2;nl._adaptAsFilter=_1c4;nl._adaptWithCondition=_1c5;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]=_1c5(d[name],_1c6);});d.forEach(["connect","addClass","removeClass","replaceClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_1c2(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_1c8,_1c9){var _1ca=_1c8.parse===true?true:false;if(typeof _1c8.template=="string"){var _1cb=_1c8.templateFunc||(dojo.string&&dojo.string.substitute);_1c8=_1cb?_1cb(_1c8.template,_1c8):_1c8;}var type=(typeof _1c8);if(type=="string"||type=="number"){_1c8=dojo._toDom(_1c8,(_1c9&&_1c9.ownerDocument));if(_1c8.nodeType==11){_1c8=dojo._toArray(_1c8.childNodes);}else{_1c8=[_1c8];}}else{if(!dojo.isArrayLike(_1c8)){_1c8=[_1c8];}else{if(!dojo.isArray(_1c8)){_1c8=dojo._toArray(_1c8);}}}if(_1ca){_1c8._runParse=true;}return _1c8;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1cc,_1cd,_1ce){if(_1cc.nodeType!=1&&_1cd=="only"){return;}var _1cf=_1cc,_1d0;var _1d1=ary.length;for(var i=_1d1-1;i>=0;i--){var node=(_1ce?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1d0){_1d0=_1cf.ownerDocument.createElement("div");}_1d0.appendChild(node);dojo.parser.parse(_1d0);node=_1d0.firstChild;while(_1d0.firstChild){_1d0.removeChild(_1d0.firstChild);}}if(i==_1d1-1){dojo.place(node,_1cf,_1cd);}else{_1cf.parentNode.insertBefore(node,_1cf);}_1cf=node;}},_stash:function(_1d2){this._parent=_1d2;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(_1d3,_1d4){d.forEach(this,_1d3,_1d4);return this;},coords:_1c3(d.coords),position:_1c3(d.position),place:function(_1d5,_1d6){var item=d.query(_1d5)[0];return this.forEach(function(node){d.place(node,item,_1d6);});},orphan:function(_1d7){return (_1d7?d._filterQueryResult(this,_1d7):this).forEach(_1c7);},adopt:function(_1d8,_1d9){return d.query(_1d8).place(this[0],_1d9)._stash(this);},query:function(_1da){if(!_1da){return this;}var ret=this.map(function(node){return d.query(_1da,node).filter(function(_1db){return _1db!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1dc){var a=arguments,_1dd=this,_1de=0;if(typeof _1dc=="string"){_1dd=d._filterQueryResult(this,a[0]);if(a.length==1){return _1dd._stash(this);}_1de=1;}return this._wrap(d.filter(_1dd,a[_1de],a[_1de+1]),this);},addContent:function(_1df,_1e0){_1df=this._normalize(_1df,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_1df,node,_1e0,i>0);}return this;},instantiate:function(_1e1,_1e2){var c=d.isFunction(_1e1)?_1e1:d.getObject(_1e1);_1e2=_1e2||{};return this.forEach(function(node){new c(_1e2,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 _1e3="on"+evt;nlp[_1e3]=function(a,b){return this.connect(_1e3,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;(function(){var _1e4=function(d){var trim=d.trim;var each=d.forEach;var qlc=(d._NodeListCtor=d.NodeList);var _1e5=function(){return d.doc;};var _1e6=((d.isWebKit||d.isMozilla)&&((_1e5().compatMode)=="BackCompat"));var _1e7=!!_1e5().firstChild["children"]?"children":"childNodes";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 _1e5().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[_1e7],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||(dojo.isIE&&dojo.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[_1e7];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=_1e5()["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&&!_1e6){_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=(!!_1e5()[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))&&(!(_1e6&&(_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||_1e5();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");_1e4(this["queryPortability"]||this["acme"]||dojo);}else{_1e4(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){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK||dojo.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _2bf=doc.compatMode=="BackCompat",_2c0=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_2bf?body:html),_2c1=isWK?body:_2c0,_2c2=_2c0.clientWidth,_2c3=_2c0.clientHeight,rtl=!dojo._isBodyLtr(),_2c4=pos||dojo.position(node),el=node.parentNode,_2c5=function(el){return ((isIE<=6||(isIE&&_2bf))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_2c5(node)){return;}while(el){if(el==body){el=_2c1;}var _2c6=dojo.position(el),_2c7=_2c5(el);if(el==_2c1){_2c6.w=_2c2;_2c6.h=_2c3;if(_2c1==html&&isIE&&rtl){_2c6.x+=_2c1.offsetWidth-_2c6.w;}if(_2c6.x<0||!isIE){_2c6.x=0;}if(_2c6.y<0||!isIE){_2c6.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_2c6.w-=pb.w;_2c6.h-=pb.h;_2c6.x+=pb.l;_2c6.y+=pb.t;var _2c8=el.clientWidth,_2c9=_2c6.w-_2c8;if(_2c8>0&&_2c9>0){_2c6.w=_2c8;_2c6.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_2c9:0;}_2c8=el.clientHeight;_2c9=_2c6.h-_2c8;if(_2c8>0&&_2c9>0){_2c6.h=_2c8;}}if(_2c7){if(_2c6.y<0){_2c6.h+=_2c6.y;_2c6.y=0;}if(_2c6.x<0){_2c6.w+=_2c6.x;_2c6.x=0;}if(_2c6.y+_2c6.h>_2c3){_2c6.h=_2c3-_2c6.y;}if(_2c6.x+_2c6.w>_2c2){_2c6.w=_2c2-_2c6.x;}}var l=_2c4.x-_2c6.x,t=_2c4.y-Math.max(_2c6.y,0),r=l+_2c4.w-_2c6.w,bot=t+_2c4.h-_2c6.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_2bf)||isIE>=9)){s=-s;}_2c4.x+=el.scrollLeft;el.scrollLeft+=s;_2c4.x-=el.scrollLeft;}if(bot*t>0){_2c4.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_2c4.y-=el.scrollTop;}el=(el!=_2c1)&&!_2c7&&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(_2ca){if(this._hash[_2ca.id]){throw new Error("Tried to register widget with id=="+_2ca.id+" but that id is already registered");}this._hash[_2ca.id]=_2ca;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2cb){_2cb=_2cb||dojo.global;var i=0,id;for(id in this._hash){func.call(_2cb,this._hash[id],i++,this._hash);}return this;},filter:function(_2cc,_2cd){_2cd=_2cd||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2cc.call(_2cd,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,_2ce;for(id in this._hash){_2ce=this._hash[id];if(_2ce.declaredClass==cls){res.add(_2ce);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2cf){return dojo.map(this.toArray(),func,_2cf);},every:function(func,_2d0){_2d0=_2d0||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_2d0,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2d1){_2d1=_2d1||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_2d1,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_2d2=dojo.hasAttr,_2d3=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _2d4={};dijit.getUniqueId=function(_2d5){var id;do{id=_2d5+"_"+(_2d5 in _2d4?++_2d4[_2d5]:_2d4[_2d5]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _2d6=[];function _2d7(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _2d8=node.getAttribute("widgetId");if(_2d8){var _2d9=hash[_2d8];if(_2d9){_2d6.push(_2d9);}}else{_2d7(node);}}}};_2d7(root);return _2d6;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2da){if(!_2da._destroyed){if(_2da.destroyRecursive){_2da.destroyRecursive();}else{if(_2da.destroy){_2da.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 _2db=(dijit._isElementShown=function(elem){var s=_2d3(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 _2d2(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2dc=elem.contentDocument;if("designMode" in _2dc&&_2dc.designMode=="on"){return true;}body=_2dc.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 _2dd=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_2d2(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _2de,last,_2df,_2e0,_2e1,_2e2,_2e3={};function _2e4(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2e5=function(_2e6){dojo.query("> *",_2e6).forEach(function(_2e7){if((dojo.isIE&&_2e7.scopeName!=="HTML")||!_2db(_2e7)){return;}if(_2dd(_2e7)){var _2e8=attr(_2e7,"tabIndex");if(!_2d2(_2e7,"tabIndex")||_2e8==0){if(!_2de){_2de=_2e7;}last=_2e7;}else{if(_2e8>0){if(!_2df||_2e8<_2e0){_2e0=_2e8;_2df=_2e7;}if(!_2e1||_2e8>=_2e2){_2e2=_2e8;_2e1=_2e7;}}}var rn=_2e4(_2e7);if(dojo.attr(_2e7,"checked")&&rn){_2e3[rn]=_2e7;}}if(_2e7.nodeName.toUpperCase()!="SELECT"){_2e5(_2e7);}});};if(_2db(root)){_2e5(root);}function rs(node){return _2e3[_2e4(node)]||node;};return {first:rs(_2de),last:rs(last),lowest:rs(_2df),highest:rs(_2e1)};};dijit.getFirstInTabbingOrder=function(root){var _2e9=dijit._getTabNavigable(dojo.byId(root));return _2e9.lowest?_2e9.lowest:_2e9.first;};dijit.getLastInTabbingOrder=function(root){var _2ea=dijit._getTabNavigable(dojo.byId(root));return _2ea.last?_2ea.last:_2ea.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(_2eb){var _2ec=dojo.doc,mark=_2eb.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(_2ec.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_2ec.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2ec.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2ed){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2ed||dojo.global,dijit.getBookmark),openedForWindow:_2ed};},focus:function(_2ee){if(!_2ee){return;}var node="node" in _2ee?_2ee.node:_2ee,_2ef=_2ee.bookmark,_2f0=_2ee.openedForWindow,_2f1=_2ef?_2ef.isCollapsed:false;if(node){var _2f2=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2f2&&_2f2.focus){try{_2f2.focus();}catch(e){}}dijit._onFocusNode(node);}if(_2ef&&dojo.withGlobal(_2f0||dojo.global,dijit.isCollapsed)&&!_2f1){if(_2f0){_2f0.focus();}try{dojo.withGlobal(_2f0||dojo.global,dijit.moveToBookmark,null,[_2ef]);}catch(e2){}}},_activeStack:[],registerIframe:function(_2f3){return dijit.registerWin(_2f3.contentWindow,_2f3);},unregisterIframe:function(_2f4){dijit.unregisterWin(_2f4);},registerWin:function(_2f5,_2f6){var _2f7=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_2f6||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_2f5.document.documentElement:_2f5.document;if(doc){if(dojo.isIE){_2f5.document.body.attachEvent("onmousedown",_2f7);var _2f8=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_2f6||evt.srcElement);}else{dijit._onTouchNode(_2f6||evt.srcElement);}};doc.attachEvent("onactivate",_2f8);var _2f9=function(evt){dijit._onBlurNode(_2f6||evt.srcElement);};doc.attachEvent("ondeactivate",_2f9);return function(){_2f5.document.detachEvent("onmousedown",_2f7);doc.detachEvent("onactivate",_2f8);doc.detachEvent("ondeactivate",_2f9);doc=null;};}else{doc.body.addEventListener("mousedown",_2f7,true);var _2fa=function(evt){dijit._onFocusNode(_2f6||evt.target);};doc.addEventListener("focus",_2fa,true);var _2fb=function(evt){dijit._onBlurNode(_2f6||evt.target);};doc.addEventListener("blur",_2fb,true);return function(){doc.body.removeEventListener("mousedown",_2f7,true);doc.removeEventListener("focus",_2fa,true);doc.removeEventListener("blur",_2fb,true);doc=null;};}}},unregisterWin:function(_2fc){_2fc&&_2fc();},_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 _2fd=[];try{while(node){var _2fe=dojo.attr(node,"dijitPopupParent");if(_2fe){node=dijit.byId(_2fe).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"),_2ff=id&&dijit.byId(id);if(_2ff&&!(by=="mouse"&&_2ff.get("disabled"))){_2fd.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_2fd,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(_300,by){var _301=dijit._activeStack;dijit._activeStack=_300;for(var _302=0;_302<Math.min(_301.length,_300.length);_302++){if(_301[_302]!=_300[_302]){break;}}var _303;for(var i=_301.length-1;i>=_302;i--){_303=dijit.byId(_301[i]);if(_303){_303._focused=false;_303.set("focused",false);_303._hasBeenBlurred=true;if(_303._onBlur){_303._onBlur(by);}dojo.publish("widgetBlur",[_303,by]);}}for(i=_302;i<_300.length;i++){_303=dijit.byId(_300[i]);if(_303){_303._focused=true;_303.set("focused",true);if(_303._onFocus){_303._onFocus(by);}dojo.publish("widgetFocus",[_303,by]);}}}});dojo.addOnLoad(function(){var _304=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_304);_304=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_305){this.pairs=[];this.returnWrappers=_305||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_306,wrap,_307,_308){this.pairs[((_308)?"unshift":"push")]([name,_306,wrap,_307]);},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,_309,_30a){var _30b=dojo.map(_309,function(_30c){var c={corner:_30c,pos:{x:pos.x,y:pos.y}};if(_30a){c.pos.x+=_30c.charAt(1)=="L"?_30a.x:-_30a.x;c.pos.y+=_30c.charAt(0)=="T"?_30a.y:-_30a.y;}return c;});return dijit._place(node,_30b);};dijit._place=function(node,_30d,_30e,_30f){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_30d,function(_310){var _311=_310.corner;var pos=_310.pos;var _312=0;var _313={w:_311.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_311.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_30e){var res=_30e(node,_310.aroundCorner,_311,_313,_30f);_312=typeof res=="undefined"?0:res;}var _314=node.style;var _315=_314.display;var _316=_314.visibility;_314.visibility="hidden";_314.display="";var mb=dojo.marginBox(node);_314.display=_315;_314.visibility=_316;var _317=Math.max(view.l,_311.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_318=Math.max(view.t,_311.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_311.charAt(1)=="L"?(_317+mb.w):pos.x),endY=Math.min(view.t+view.h,_311.charAt(0)=="T"?(_318+mb.h):pos.y),_319=endX-_317,_31a=endY-_318;_312+=(mb.w-_319)+(mb.h-_31a);if(best==null||_312<best.overflow){best={corner:_311,aroundCorner:_310.aroundCorner,x:_317,y:_318,w:_319,h:_31a,overflow:_312,spaceAvailable:_313};}return !_312;});if(best.overflow&&_30e){_30e(node,best.aroundCorner,best.corner,best.spaceAvailable,_30f);}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";return best;};dijit.placeOnScreenAroundNode=function(node,_31b,_31c,_31d){_31b=dojo.byId(_31b);var _31e=dojo.position(_31b,true);return dijit._placeOnScreenAroundRect(node,_31e.x,_31e.y,_31e.w,_31e.h,_31c,_31d);};dijit.placeOnScreenAroundRectangle=function(node,_31f,_320,_321){return dijit._placeOnScreenAroundRect(node,_31f.x,_31f.y,_31f.width,_31f.height,_320,_321);};dijit._placeOnScreenAroundRect=function(node,x,y,_322,_323,_324,_325){var _326=[];for(var _327 in _324){_326.push({aroundCorner:_327,corner:_324[_327],pos:{x:x+(_327.charAt(1)=="L"?0:_322),y:y+(_327.charAt(0)=="T"?0:_323)}});}return dijit._place(node,_326,_325,{w:_322,h:_323});};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,_328,_329,_32a){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_32b,_32c){var _32d={};dojo.forEach(_32b,function(pos){switch(pos){case "after":_32d[_32c?"BR":"BL"]=_32c?"BL":"BR";break;case "before":_32d[_32c?"BL":"BR"]=_32c?"BR":"BL";break;case "below-alt":_32c=!_32c;case "below":_32d[_32c?"BL":"BR"]=_32c?"TL":"TR";_32d[_32c?"BR":"BL"]=_32c?"TR":"TL";break;case "above-alt":_32c=!_32c;case "above":default:_32d[_32c?"TL":"TR"]=_32c?"BL":"BR";_32d[_32c?"TR":"TL"]=_32c?"BR":"BL";break;}});return _32d;};}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(_32e){var _32f=_32e.declaredClass?_32e._popupWrapper:(_32e.parentNode&&dojo.hasClass(_32e.parentNode,"dijitPopup")),node=_32e.domNode||_32e;if(!_32f){_32f=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_32f.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_32e.declaredClass){_32e._popupWrapper=_32f;dojo.connect(_32e,"destroy",function(){dojo.destroy(_32f);delete _32e._popupWrapper;});}}return _32f;},moveOffScreen:function(_330){var _331=this._createWrapper(_330);dojo.style(_331,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_332){var _333=this._createWrapper(_332);dojo.style(_333,"display","none");},getTopPopup:function(){var _334=this._stack;for(var pi=_334.length-1;pi>0&&_334[pi].parent===_334[pi-1].widget;pi--){}return _334[pi];},open:function(args){var _335=this._stack,_336=args.popup,_337=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"}),_338=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_335.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_335[_335.length-1].widget.domNode))){dijit.popup.close(_335[_335.length-1].widget);}var _339=this._createWrapper(_336);dojo.attr(_339,{id:id,style:{zIndex:this._beginZIndex+_335.length},"class":"dijitPopup "+(_336.baseClass||_336["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_336.bgIframe){_336.bgIframe=new dijit.BackgroundIframe(_339);}}var best=_338?dijit.placeOnScreenAroundElement(_339,_338,_337,_336.orient?dojo.hitch(_336,"orient"):null):dijit.placeOnScreen(_339,args,_337=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_339.style.display="";_339.style.visibility="visible";_336.domNode.style.visibility="visible";var _33a=[];_33a.push(dojo.connect(_339,"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 _33b=this.getTopPopup();if(_33b&&_33b.onCancel){_33b.onCancel();}}}}));if(_336.onCancel){_33a.push(dojo.connect(_336,"onCancel",args.onCancel));}_33a.push(dojo.connect(_336,_336.onExecute?"onExecute":"onChange",this,function(){var _33c=this.getTopPopup();if(_33c&&_33c.onExecute){_33c.onExecute();}}));_335.push({widget:_336,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_33a});if(_336.onOpen){_336.onOpen(best);}return best;},close:function(_33d){var _33e=this._stack;while((_33d&&dojo.some(_33e,function(elem){return elem.widget==_33d;}))||(!_33d&&_33e.length)){var top=_33e.pop(),_33f=top.widget,_340=top.onClose;if(_33f.onClose){_33f.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_33f&&_33f.domNode){this.hide(_33f);}if(_340){_340();}}}};dijit._frames=new function(){var _341=[];this.pop=function(){var _342;if(_341.length){_342=_341.pop();_342.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\");'>";_342=dojo.doc.createElement(html);}else{_342=dojo.create("iframe");_342.src="javascript:\"\"";_342.className="dijitBackgroundIframe";dojo.style(_342,"opacity",0.1);}_342.tabIndex=-1;dijit.setWaiRole(_342,"presentation");}return _342;};this.push=function(_343){_343.style.display="none";_341.push(_343);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _344=(this.iframe=dijit._frames.pop());node.appendChild(_344);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_344,{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,_345=d.isOpera,maj=Math.floor,ff=d.isFF,_346=d.boxModel.replace(/-/,""),_347={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_345,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_347["dj_"+_346]=true;var _348="";for(var clz in _347){if(_347[clz]){_348+=clz+" ";}}html.className=d.trim(html.className+" "+_348);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _349="dj_rtl dijitRtl "+_348.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_349);}});})();}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,_34a,node,_34b,obj,_34c,_34d,_34e){if(obj!=this._obj){this.stop();this._initialDelay=_34d||500;this._subsequentDelay=_34c||0.9;this._minDelay=_34e||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_34a,_34b);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,_34f,_350,_351,_352,_353,_354){if(_34f.keyCode){_34f.charOrCode=_34f.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_34f.charCode){_34f.charOrCode=String.fromCharCode(_34f.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==_34f.charOrCode&&(_34f.ctrlKey===undefined||_34f.ctrlKey==evt.ctrlKey)&&(_34f.altKey===undefined||_34f.altKey==evt.altKey)&&(_34f.metaKey===undefined||_34f.metaKey==(evt.metaKey||false))&&(_34f.shiftKey===undefined||_34f.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_350,node,_351,_34f,_352,_353,_354);}else{if(dijit.typematic._obj==_34f){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_34f){dijit.typematic.stop();}})];},addMouseListener:function(node,_355,_356,_357,_358,_359){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_355,node,_356,node,_357,_358,_359);}),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){dijit.typematic.trigger(evt,_355,node,_356,node,_357,_358,_359);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_35a,_35b,_35c,_35d,_35e,_35f,_360,_361){return this.addKeyListener(_35b,_35c,_35d,_35e,_35f,_360,_361).concat(this.addMouseListener(_35a,_35d,_35e,_35f,_360,_361));}};}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 _362=cs.backgroundImage;var _363=(cs.borderTopColor==cs.borderRightColor)||(_362!=null&&(_362=="none"||_362=="url(invalid-url:)"));dojo[_363?"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 _364=this.getWaiRole(elem);return role?(_364.indexOf(role)>-1):(_364.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 _365=dojo.attr(elem,"role");if(!_365){return;}if(role){var t=dojo.trim((" "+_365+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_366){return elem.hasAttribute?elem.hasAttribute("aria-"+_366):!!elem.getAttribute("aria-"+_366);},getWaiState:function(elem,_367){return elem.getAttribute("aria-"+_367)||"";},setWaiState:function(elem,_368,_369){elem.setAttribute("aria-"+_368,_369);},removeWaiState:function(elem,_36a){elem.removeAttribute("aria-"+_36a);}});}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(_36b,_36c){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 _36d=dojo.date.stamp._isoRegExp.exec(_36b),_36e=null;if(_36d){_36d.shift();if(_36d[1]){_36d[1]--;}if(_36d[6]){_36d[6]*=1000;}if(_36c){_36c=new Date(_36c);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _36c["get"+prop]();}),function(_36f,_370){_36d[_370]=_36d[_370]||_36f;});}_36e=new Date(_36d[0]||1970,_36d[1]||0,_36d[2]||1,_36d[3]||0,_36d[4]||0,_36d[5]||0,_36d[6]||0);if(_36d[0]<100){_36e.setFullYear(_36d[0]||1970);}var _371=0,_372=_36d[7]&&_36d[7].charAt(0);if(_372!="Z"){_371=((_36d[8]||0)*60)+(Number(_36d[9])||0);if(_372!="-"){_371*=-1;}}if(_372){_371-=_36e.getTimezoneOffset();}if(_371){_36e.setTime(_36e.getTime()+_371*60000);}}return _36e;};dojo.date.stamp.toISOString=function(_373,_374){var _375=function(n){return (n<10)?"0"+n:n;};_374=_374||{};var _376=[],_377=_374.zulu?"getUTC":"get",date="";if(_374.selector!="time"){var year=_373[_377+"FullYear"]();date=["0000".substr((year+"").length)+year,_375(_373[_377+"Month"]()+1),_375(_373[_377+"Date"]())].join("-");}_376.push(date);if(_374.selector!="date"){var time=[_375(_373[_377+"Hours"]()),_375(_373[_377+"Minutes"]()),_375(_373[_377+"Seconds"]())].join(":");var _378=_373[_377+"Milliseconds"]();if(_374.milliseconds){time+="."+(_378<100?"0":"")+_375(_378);}if(_374.zulu){time+="Z";}else{if(_374.selector!="time"){var _379=_373.getTimezoneOffset();var _37a=Math.abs(_379);time+=(_379>0?"-":"+")+_375(Math.floor(_37a/60))+":"+_375(_37a%60);}}_376.push(time);}return _376.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 _37b(_37c){if(d.isString(_37c)){return "string";}if(typeof _37c=="number"){return "number";}if(typeof _37c=="boolean"){return "boolean";}if(d.isFunction(_37c)){return "function";}if(d.isArray(_37c)){return "array";}if(_37c instanceof Date){return "date";}if(_37c instanceof d._Url){return "url";}return "object";};function _37d(_37e,type){switch(type){case "string":return _37e;case "number":return _37e.length?Number(_37e):NaN;case "boolean":return typeof _37e=="boolean"?_37e:!(_37e.toLowerCase()=="false");case "function":if(d.isFunction(_37e)){_37e=_37e.toString();_37e=d.trim(_37e.substring(_37e.indexOf("{")+1,_37e.length-1));}try{if(_37e===""||_37e.search(/[^\w\.]+/i)!=-1){return new Function(_37e);}else{return d.getObject(_37e,false)||new Function(_37e);}}catch(e){return new Function();}case "array":return _37e?_37e.split(/\s*,\s*/):[];case "date":switch(_37e){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_37e);}case "url":return d.baseUrl+_37e;default:return d.fromJson(_37e);}};var _37f={},_380={};d.connect(d,"extend",function(){_380={};});function _381(cls,_382){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _37f){continue;}_382[name]=_37b(cls[name]);}return _382;};function _383(_384,_385){var c=_380[_384];if(!c){var cls=d.getObject(_384),_386=null;if(!cls){return null;}if(!_385){_386=_381(cls.prototype,{});}c={cls:cls,params:_386};}else{if(!_385&&!c.params){c.params=_381(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_387,_388){var _389="";var _38a="";var _38b=(_387.getAttribute(_388+"args")||_387.getAttribute("args"));if(_38b){d.forEach(_38b.split(/\s*,\s*/),function(part,idx){_389+="var "+part+" = arguments["+idx+"]; ";});}var _38c=_387.getAttribute("with");if(_38c&&_38c.length){d.forEach(_38c.split(/\s*,\s*/),function(part){_389+="with("+part+"){";_38a+="}";});}return new Function(_389+_387.innerHTML+_38a);};this.instantiate=function(_38d,_38e,args){var _38f=[],_38e=_38e||{};args=args||{};var _390=(args.scope||d._scopeName)+"Type",_391="data-"+(args.scope||d._scopeName)+"-";d.forEach(_38d,function(obj){if(!obj){return;}var node,type,_392,_393,_394,_395;if(obj.node){node=obj.node;type=obj.type;_395=obj.fastpath;_392=obj.clsInfo||(type&&_383(type,_395));_393=_392&&_392.cls;_394=obj.scripts;}else{node=obj;type=_390 in _38e?_38e[_390]:node.getAttribute(_390);_392=type&&_383(type);_393=_392&&_392.cls;_394=(_393&&(_393._noScript||_393.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_392){throw new Error("Could not load class '"+type);}var _396={};if(args.defaults){d._mixin(_396,args.defaults);}if(obj.inherited){d._mixin(_396,obj.inherited);}if(_395){var _397=node.getAttribute(_391+"props");if(_397&&_397.length){try{_397=d.fromJson.call(args.propsThis,"{"+_397+"}");d._mixin(_396,_397);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_397+"'");}}var _398=node.getAttribute(_391+"attach-point");if(_398){_396.dojoAttachPoint=_398;}var _399=node.getAttribute(_391+"attach-event");if(_399){_396.dojoAttachEvent=_399;}dojo.mixin(_396,_38e);}else{var _39a=node.attributes;for(var name in _392.params){var item=name in _38e?{value:_38e[name],specified:true}:_39a.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _39b=item.value;switch(name){case "class":_39b="className" in _38e?_38e.className:node.className;break;case "style":_39b="style" in _38e?_38e.style:(node.style&&node.style.cssText);}var _39c=_392.params[name];if(typeof _39b=="string"){_396[name]=_37d(_39b,_39c);}else{_396[name]=_39b;}}}var _39d=[],_39e=[];d.forEach(_394,function(_39f){node.removeChild(_39f);var _3a0=(_39f.getAttribute(_391+"event")||_39f.getAttribute("event")),type=_39f.getAttribute("type"),nf=d.parser._functionFromScript(_39f,_391);if(_3a0){if(type=="dojo/connect"){_39d.push({event:_3a0,func:nf});}else{_396[_3a0]=nf;}}else{_39e.push(nf);}});var _3a1=_393.markupFactory||_393.prototype&&_393.prototype.markupFactory;var _3a2=_3a1?_3a1(_396,node,_393):new _393(_396,node);_38f.push(_3a2);var _3a3=(node.getAttribute(_391+"id")||node.getAttribute("jsId"));if(_3a3){d.setObject(_3a3,_3a2);}d.forEach(_39d,function(_3a4){d.connect(_3a2,_3a4.event,null,_3a4.func);});d.forEach(_39e,function(func){func.call(_3a2);});});if(!_38e._started){d.forEach(_38f,function(_3a5){if(!args.noStart&&_3a5&&dojo.isFunction(_3a5.startup)&&!_3a5._started&&(!_3a5.getParent||!_3a5.getParent())){_3a5.startup();}});}return _38f;};this.parse=function(_3a6,args){var root;if(!args&&_3a6&&_3a6.rootNode){args=_3a6;root=args.rootNode;}else{root=_3a6;}root=root?dojo.byId(root):dojo.body();args=args||{};var _3a7=(args.scope||d._scopeName)+"Type",_3a8="data-"+(args.scope||d._scopeName)+"-";function scan(_3a9,list){var _3aa=dojo.clone(_3a9.inherited);dojo.forEach(["dir","lang"],function(name){var val=_3a9.node.getAttribute(name);if(val){_3aa[name]=val;}});var _3ab=_3a9.clsInfo&&!_3a9.clsInfo.cls.prototype._noScript?_3a9.scripts:null;var _3ac=(!_3a9.clsInfo||!_3a9.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _3ad=_3a9.node.firstChild;_3ad;_3ad=_3ad.nextSibling){if(_3ad.nodeType==1){var type,_3ae=_3ac&&_3ad.getAttribute(_3a8+"type");if(_3ae){type=_3ae;}else{type=_3ac&&_3ad.getAttribute(_3a7);}var _3af=_3ae==type;if(type){var _3b0={"type":type,fastpath:_3af,clsInfo:_383(type,_3af),node:_3ad,scripts:[],inherited:_3aa};list.push(_3b0);scan(_3b0,list);}else{if(_3ab&&_3ad.nodeName.toLowerCase()=="script"){type=_3ad.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_3ab.push(_3ad);}}else{if(_3ac){scan({node:_3ad,inherited:_3aa},list);}}}}}};var _3b1={};if(args&&args.inherited){for(var key in args.inherited){if(args.inherited[key]){_3b1[key]=args.inherited[key];}}}var list=[];scan({node:root,inherited:_3b1},list);var _3b2=args&&args.template?{template:true}:null;return this.instantiate(list,_3b2,args);};}();(function(){var _3b3=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_3b3);}else{dojo._loaders.unshift(_3b3);}})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_3b4){if(_3b4){dojo.mixin(this,_3b4);}},get:function(name){return this[name];},set:function(name,_3b5){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _3b6=this[name];this[name]=_3b5;if(this._watchCallbacks){this._watchCallbacks(name,_3b6,_3b5);}return this;},watch:function(name,_3b7){var _3b8=this._watchCallbacks;if(!_3b8){var self=this;_3b8=this._watchCallbacks=function(name,_3b9,_3ba,_3bb){var _3bc=function(_3bd){if(_3bd){_3bd=_3bd.slice();for(var i=0,l=_3bd.length;i<l;i++){try{_3bd[i].call(self,name,_3b9,_3ba);}catch(e){console.error(e);}}}};_3bc(_3b8["_"+name]);if(!_3bb){_3bc(_3b8["*"]);}};}if(!_3b7&&typeof name==="function"){_3b7=name;name="*";}else{name="_"+name;}var _3be=_3b8[name];if(typeof _3be!=="object"){_3be=_3b8[name]=[];}_3be.push(_3b7);return {unwatch:function(){_3be.splice(dojo.indexOf(_3be,_3b7),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(_3bf,_3c0){this.create(_3bf,_3c0);},create:function(_3c1,_3c2){this.srcNodeRef=dojo.byId(_3c2);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_3c1){this.params=_3c1;dojo._mixin(this,_3c1);}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 _3c3=this.srcNodeRef;if(_3c3&&_3c3.parentNode&&this.domNode!==_3c3){_3c3.parentNode.replaceChild(this.domNode,_3c3);}}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 _3c4=function(attr,_3c5){if((_3c5.params&&attr in _3c5.params)||_3c5[attr]){_3c5.set(attr,_3c5[attr]);}};for(var attr in this.attributeMap){_3c4(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_3c4(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_3c6,_3c7=ctor.prototype;for(var _3c8 in _3c7){if(dojo.isFunction(_3c7[_3c8])&&(_3c6=_3c8.match(/^_set([a-zA-Z]*)Attr$/))&&_3c6[1]){r.push(_3c6[1].charAt(0).toLowerCase()+_3c6[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _3c9=this.baseClass.split(" ");if(!this.isLeftToRight()){_3c9=_3c9.concat(dojo.map(_3c9,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_3c9);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_3ca){this._beingDestroyed=true;this.destroyDescendants(_3ca);this.destroy(_3ca);},destroy:function(_3cb){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_3cc){dfe(_3cc,d.disconnect);});dfe(this._subscribes,function(_3cd){dun(_3cd);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_3cb);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_3ce){if(this.bgIframe){this.bgIframe.destroy(_3ce);delete this.bgIframe;}if(this.domNode){if(_3ce){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_3ce){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_3cf){dojo.forEach(this.getChildren(),function(_3d0){if(_3d0.destroyRecursive){_3d0.destroyRecursive(_3cf);}});},uninitialize:function(){return false;},_setClassAttr:function(_3d1){var _3d2=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_3d2,_3d1,this["class"]);this._set("class",_3d1);},_setStyleAttr:function(_3d3){var _3d4=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_3d3)){dojo.style(_3d4,_3d3);}else{if(_3d4.style.cssText){_3d4.style.cssText+="; "+_3d3;}else{_3d4.style.cssText=_3d3;}}this._set("style",_3d3);},_attrToDom:function(attr,_3d5){var _3d6=this.attributeMap[attr];dojo.forEach(dojo.isArray(_3d6)?_3d6:[_3d6],function(_3d7){var _3d8=this[_3d7.node||_3d7||"domNode"];var type=_3d7.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_3d5)){_3d5=dojo.hitch(this,_3d5);}var _3d9=_3d7.attribute?_3d7.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_3d8,_3d9,_3d5);break;case "innerText":_3d8.innerHTML="";_3d8.appendChild(dojo.doc.createTextNode(_3d5));break;case "innerHTML":_3d8.innerHTML=_3d5;break;case "class":dojo.replaceClass(_3d8,_3d5,this[attr]);break;}},this);},get:function(name){var _3da=this._getAttrNames(name);return this[_3da.g]?this[_3da.g]():this[name];},set:function(name,_3db){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _3dc=this._getAttrNames(name);if(this[_3dc.s]){var _3dd=this[_3dc.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_3db);}this._set(name,_3db);}return _3dd||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,_3de){var _3df=this[name];this[name]=_3de;if(this._watchCallbacks&&this._created&&_3de!==_3df){this._watchCallbacks(name,_3df,_3de);}},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,_3e0,_3e1){var _3e2=[dojo._connect(obj,_3e0,this,_3e1)];this._connects.push(_3e2);return _3e2;},disconnect:function(_3e3){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_3e3){dojo.forEach(_3e3,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_3e4,_3e5){var _3e6=dojo.subscribe(_3e4,this,_3e5);this._subscribes.push(_3e6);return _3e6;},unsubscribe:function(_3e7){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_3e7){dojo.unsubscribe(_3e7);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_3e8,_3e9){if(_3e8.declaredClass&&_3e8.addChild){_3e8.addChild(this,_3e9);}else{dojo.place(this.domNode,_3e8,_3e9);}return this;}});})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_3ea,_3eb){if(_3ea&&dojo.isFunction(_3ea._onConnect)){_3ea._onConnect(_3eb);}});dijit._connectOnUseEventHandler=function(_3ec){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _3ed=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_3ed);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_3ed);});})();}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(_3ee,_3ef){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(_3f0){if(_3f0 in this._deferredConnects){var _3f1=this[this._deferredConnects[_3f0]||"domNode"];this.connect(_3f1,_3f0.toLowerCase(),_3f0);delete this._deferredConnects[_3f0];}},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,_3f2){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_3f2);},attr:function(name,_3f3){if(dojo.config.isDebug){var _3f4=arguments.callee._ach||(arguments.callee._ach={}),_3f5=(arguments.callee.caller||"unknown caller").toString();if(!_3f4[_3f5]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_3f5,"","2.0");_3f4[_3f5]=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,_3f6,_3f7){var d=dojo,dc=d._connect,_3f8=this.inherited(arguments,[obj,_3f6=="ondijitclick"?"onclick":_3f6,_3f7]);if(_3f6=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_3f7);_3f8.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 _3f8;},_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(_3f9,map,_3fa,_3fb){_3fb=_3fb||dojo.global;_3fa=_3fa?dojo.hitch(_3fb,_3fa):function(v){return v;};return _3f9.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_3fc,key,_3fd){var _3fe=dojo.getObject(key,false,map);if(_3fd){_3fe=dojo.getObject(_3fd,false,_3fb).call(_3fb,_3fe,key);}return _3fa(_3fe,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 _3ff={};dojo.cache=function(_400,url,_401){if(typeof _400=="string"){var _402=dojo.moduleUrl(_400,url);}else{_402=_400;_401=url;}var key=_402.toString();var val=_401;if(_401!=undefined&&!dojo.isString(_401)){val=("value" in _401?_401.value:undefined);}var _403=_401&&_401.sanitize?true:false;if(typeof val=="string"){val=_3ff[key]=_403?dojo.cache._sanitize(val):val;}else{if(val===null){delete _3ff[key];}else{if(!(key in _3ff)){val=dojo._getText(key);_3ff[key]=_403?dojo.cache._sanitize(val):val;}val=_3ff[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _404=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_404){val=_404[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 _405=this.declaredClass,_406=this;return dojo.string.substitute(tmpl,this,function(_407,key){if(key.charAt(0)=="!"){_407=dojo.getObject(key.substr(1),false,_406);}if(typeof _407=="undefined"){throw new Error(_405+" template:"+key);}if(_407==null){return "";}return key.charAt(0)=="!"?_407:_407.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _408=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_408)){node=dojo._toDom(this._stringRepl(_408));if(node.nodeType!=1){throw new Error("Invalid template: "+_408);}}else{node=_408.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(_409){var dest=this.containerNode;if(_409&&dest){while(_409.hasChildNodes()){dest.appendChild(_409.firstChild);}}},_attachTemplateNodes:function(_40a,_40b){_40b=_40b||function(n,p){return n.getAttribute(p);};var _40c=dojo.isArray(_40a)?_40a:(_40a.all||_40a.getElementsByTagName("*"));var x=dojo.isArray(_40a)?0:-1;for(;x<_40c.length;x++){var _40d=(x==-1)?_40a:_40c[x];if(this.widgetsInTemplate&&(_40b(_40d,"dojoType")||_40b(_40d,"data-dojo-type"))){continue;}var _40e=_40b(_40d,"dojoAttachPoint")||_40b(_40d,"data-dojo-attach-point");if(_40e){var _40f,_410=_40e.split(/\s*,\s*/);while((_40f=_410.shift())){if(dojo.isArray(this[_40f])){this[_40f].push(_40d);}else{this[_40f]=_40d;}this._attachPoints.push(_40f);}}var _411=_40b(_40d,"dojoAttachEvent")||_40b(_40d,"data-dojo-attach-event");if(_411){var _412,_413=_411.split(/\s*,\s*/);var trim=dojo.trim;while((_412=_413.shift())){if(_412){var _414=null;if(_412.indexOf(":")!=-1){var _415=_412.split(":");_412=trim(_415[0]);_414=trim(_415[1]);}else{_412=trim(_412);}if(!_414){_414=_412;}this._attachEvents.push(this.connect(_40d,_412,_414));}}}var role=_40b(_40d,"waiRole");if(role){dijit.setWaiRole(_40d,role);}var _416=_40b(_40d,"waiState");if(_416){dojo.forEach(_416.split(/\s*,\s*/),function(_417){if(_417.indexOf("-")!=-1){var pair=_417.split("-");dijit.setWaiState(_40d,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(_418){delete this[_418];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_419,_41a,_41b){var _41c=dijit._Templated._templateCache;var key=_41a||_419;var _41d=_41c[key];if(_41d){try{if(!_41d.ownerDocument||_41d.ownerDocument==dojo.doc){return _41d;}}catch(e){}dojo.destroy(_41d);}if(!_41a){_41a=dojo.cache(_419,{sanitize:true});}_41a=dojo.string.trim(_41a);if(_41b||_41a.match(/\$\{([^\}]+)\}/g)){return (_41c[key]=_41a);}else{var node=dojo._toDom(_41a);if(node.nodeType!=1){throw new Error("Invalid template: "+_41a);}return (_41c[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _41e=dijit._Templated._templateCache;for(var key in _41e){var _41f=_41e[key];if(typeof _41f=="object"){dojo.destroy(_41f);}delete _41e[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(_420,_421){var _422=this.containerNode;if(_421&&typeof _421=="number"){var _423=this.getChildren();if(_423&&_423.length>=_421){_422=_423[_421-1].domNode;_421="after";}}dojo.place(_420.domNode,_422,_421);if(this._started&&!_420._started){_420.startup();}},removeChild:function(_424){if(typeof _424=="number"){_424=this.getChildren()[_424];}if(_424){var node=_424.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_425){dojo.forEach(this.getChildren(),function(_426){_426.destroyRecursive(_425);});},_getSiblingOfChild:function(_427,dir){var node=_427.domNode,_428=(dir>0?"nextSibling":"previousSibling");do{node=node[_428];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_429){return dojo.indexOf(this.getChildren(),_429);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_42a){_42a.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 _42b=dijit.getEnclosingWidget(this.domNode.parentNode);return _42b&&_42b.isContainer?_42b:null;},_getSibling:function(_42c){var node=this.domNode;do{node=node[_42c+"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 _42d=this.getParent&&this.getParent();if(!(_42d&&_42d.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_42e,_42f){var node=this.domNode;if(_42e){dojo.marginBox(node,_42e);if(_42e.t){node.style.top=_42e.t+"px";}if(_42e.l){node.style.left=_42e.l+"px";}}var mb=_42f||{};dojo.mixin(mb,_42e||{});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(_430){var cls=this.baseClass+"-child "+(_430.baseClass?this.baseClass+"-"+_430.baseClass:"");dojo.addClass(_430.domNode,cls);},addChild:function(_431,_432){this.inherited(arguments);if(this._started){this._setupChild(_431);}},removeChild:function(_433){var cls=this.baseClass+"-child"+(_433.baseClass?" "+this.baseClass+"-"+_433.baseClass:"");dojo.removeClass(_433.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 _434=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_435,dim){var _436=_435.resize?_435.resize(dim):dojo.marginBox(_435.domNode,dim);if(_436){dojo.mixin(_435,_436);}else{dojo.mixin(_435,dojo.marginBox(_435.domNode));dojo.mixin(_435,dim);}};dijit.layout.layoutChildren=function(_437,dim,_438,_439,_43a){dim=dojo.mixin({},dim);dojo.addClass(_437,"dijitLayoutContainer");_438=dojo.filter(_438,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_438,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_438,function(_43b){var elm=_43b.domNode,pos=(_43b.region||_43b.layoutAlign);var _43c=elm.style;_43c.left=dim.l+"px";_43c.top=dim.t+"px";_43c.position="absolute";dojo.addClass(elm,"dijitAlign"+_434(pos));var _43d={};if(_439&&_439==_43b.id){_43d[_43b.region=="top"||_43b.region=="bottom"?"h":"w"]=_43a;}if(pos=="top"||pos=="bottom"){_43d.w=dim.w;size(_43b,_43d);dim.h-=_43b.h;if(pos=="top"){dim.t+=_43b.h;}else{_43c.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_43d.h=dim.h;size(_43b,_43d);dim.w-=_43b.w;if(pos=="left"){dim.l+=_43b.w;}else{_43c.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_43b,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(_43e){if(!this.disabled){switch(_43e.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 _43f=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_43f);});break;}}},_setStateClass:function(){var _440=this.baseClass.split(" ");function _441(_442){_440=_440.concat(dojo.map(_440,function(c){return c+_442;}),"dijit"+_442);};if(!this.isLeftToRight()){_441("Rtl");}if(this.checked){_441("Checked");}if(this.state){_441(this.state);}if(this.selected){_441("Selected");}if(this.disabled){_441("Disabled");}else{if(this.readOnly){_441("ReadOnly");}else{if(this.active){_441("Active");}else{if(this.hovering){_441("Hover");}}}}if(this._focused){_441("Focused");}var tn=this.stateNode||this.domNode,_443={};dojo.forEach(tn.className.split(" "),function(c){_443[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _443[c];});}dojo.forEach(_440,function(c){_443[c]=true;});var _444=[];for(var c in _443){_444.push(c);}tn.className=_444.join(" ");this._stateClasses=_440;},_trackMouseState:function(node,_445){var _446=false,_447=false,_448=false;var self=this,cn=dojo.hitch(this,"connect",node);function _449(){var _44a=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_445+"Hover",_446&&!_447&&!_44a);dojo.toggleClass(node,_445+"Active",_447&&!_44a);dojo.toggleClass(node,_445+"Focused",_448&&!_44a);};cn("onmouseenter",function(){_446=true;_449();});cn("onmouseleave",function(){_446=false;_447=false;_449();});cn("onmousedown",function(){_447=true;_449();});cn("onmouseup",function(){_447=false;_449();});cn("onfocus",function(){_448=true;_449();});cn("onblur",function(){_448=false;_449();});this.watch("disabled",_449);this.watch("readOnly",_449);}});}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(_44b){this._set("disabled",_44b);dojo.attr(this.focusNode,"disabled",_44b);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_44b);}dijit.setWaiState(this.focusNode,"disabled",_44b);if(_44b){this._set("hovering",false);this._set("active",false);var _44c="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_44c)?_44c:[_44c],function(_44d){var node=this[_44d];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(_44e){dojo.deprecated("setDisabled("+_44e+") is deprecated. Use set('disabled',"+_44e+") instead.","","2.0");this.set("disabled",_44e);},_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(_44f){},_onChangeActive:false,_handleOnChange:function(_450,_451){if(this._lastValueReported==undefined&&(_451===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_450;}this._pendingOnChange=this._pendingOnChange||(typeof _450!=typeof this._lastValueReported)||(this.compare(_450,this._lastValueReported)!=0);if((this.intermediateChanges||_451||_451===undefined)&&this._pendingOnChange){this._lastValueReported=_450;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_450);}),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(_452){dojo.deprecated("dijit.form._FormWidget:setValue("+_452+") is deprecated.  Use set('value',"+_452+") instead.","","2.0");this.set("value",_452);},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 _453=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_453);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_454){dojo.attr(this.focusNode,"readOnly",_454);dijit.setWaiState(this.focusNode,"readonly",_454);this._set("readOnly",_454);},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(_455,_456){this._handleOnChange(_455,_456);},_handleOnChange:function(_457,_458){this._set("value",_457);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 _459=this.domNode;var _45a=_459.parentNode;var _45b=_459.firstChild||_459;var _45c=_45b.style.filter;var _45d=this;while(_45a&&_45a.clientHeight==0){(function ping(){var _45e=_45d.connect(_45a,"onscroll",function(e){_45d.disconnect(_45e);_45b.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_45b.style.filter=_45c;},0);});})();_45a=_45a.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 _45f=this;dojo.mixin(_45f,args);_45f.node=args.node;_45f._showArgs=dojo.mixin({},args);_45f._showArgs.node=_45f.node;_45f._showArgs.duration=_45f.showDuration;_45f.showAnim=_45f.showFunc(_45f._showArgs);_45f._hideArgs=dojo.mixin({},args);_45f._hideArgs.node=_45f.node;_45f._hideArgs.duration=_45f.hideDuration;_45f.hideAnim=_45f.hideFunc(_45f._hideArgs);dojo.connect(_45f.showAnim,"beforeBegin",dojo.hitch(_45f.hideAnim,"stop",true));dojo.connect(_45f.hideAnim,"beforeBegin",dojo.hitch(_45f.showAnim,"stop",true));},show:function(_460){return this.showAnim.play(_460||0);},hide:function(_461){return this.hideAnim.play(_461||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_462={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _463=function(_464){this._index=-1;this._animations=_464||[];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(_463,{_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(_465,_466){if(!this._current){this._current=this._animations[this._index=0];}if(!_466&&this._current.status()=="playing"){return this;}var _467=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_468=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_469=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_467);d.disconnect(_468);d.disconnect(_469);});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(_46a,_46b){this.pause();var _46c=this.duration*_46a;this._current=null;d.some(this._animations,function(a){if(a.duration<=_46c){this._current=a;return true;}_46c-=a.duration;return false;});if(this._current){this._current.gotoPercent(_46c/this._current.duration,_46b);}return this;},stop:function(_46d){if(this._current){if(_46d){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(_463,_462);dojo.fx.chain=function(_46e){return new _463(_46e);};var _46f=function(_470){this._animations=_470||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_470,function(a){var _471=a.duration;if(a.delay){_471+=a.delay;}if(this.duration<_471){this.duration=_471;}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(_46f,{_doAction:function(_472,args){d.forEach(this._animations,function(a){a[_472].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_473,args){var t=this._pseudoAnimation;t[_473].apply(t,args);},play:function(_474,_475){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(_476,_477){var ms=this.duration*_476;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_477);});this._call("gotoPercent",arguments);return this;},stop:function(_478){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(_46f,_462);dojo.fx.combine=function(_479){return new _46f(_479);};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 _47a=d.style(node,"height");return Math.max(_47a,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,_47b){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_47b&&_47b.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_47c){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("|"),_47c);};dojo.regexp.group=function(_47d,_47e){return "("+(_47e?"?:":"")+_47d+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_47f,_480){var c=document.cookie;if(arguments.length==1){var _481=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _481?decodeURIComponent(_481[1]):undefined;}else{_480=_480||{};var exp=_480.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_480.expires=d;}if(exp&&exp.toUTCString){_480.expires=exp.toUTCString();}_47f=encodeURIComponent(_47f);var _482=name+"="+_47f,_483;for(_483 in _480){_482+="; "+_483;var _484=_480[_483];if(_484!==true){_482+="="+_484;}}document.cookie=_482;}};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(_485){var _486=_485.region;if(_486){this.inherited(arguments);dojo.addClass(_485.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_486=="leading"){_486=ltr?"left":"right";}if(_486=="trailing"){_486=ltr?"right":"left";}if(_486!="center"&&(_485.splitter||this.gutters)&&!_485._splitterWidget){var _487=dojo.getObject(_485.splitter?this._splitterClass:"dijit.layout._Gutter");var _488=new _487({id:_485.id+"_splitter",container:this,child:_485,region:_486,live:this.liveSplitters});_488.isSplitter=true;_485._splitterWidget=_488;dojo.place(_488.domNode,_485.domNode,"after");_488.startup();}_485.region=_486;}},layout:function(){this._layoutChildren();},addChild:function(_489,_48a){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_48b){var _48c=_48b.region;var _48d=_48b._splitterWidget;if(_48d){_48d.destroy();delete _48b._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}dojo.removeClass(_48b.domNode,this.baseClass+"Pane");dojo.style(_48b.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});dojo.style(_48b.domNode,_48c=="top"||_48c=="bottom"?"width":"height","auto");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_48e){return !_48e.isSplitter;});},getSplitter:function(_48f){return dojo.filter(this.getChildren(),function(_490){return _490.region==_48f;})[0]._splitterWidget;},resize:function(_491,_492){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(_493,_494){if(!this._borderBox||!this._borderBox.h){return;}var _495=dojo.map(this.getChildren(),function(_496,idx){return {pane:_496,weight:[_496.region=="center"?Infinity:0,_496.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_496.region)?1:-1),idx]};},this);_495.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 _497=[];dojo.forEach(_495,function(_498){var pane=_498.pane;_497.push(pane);if(pane._splitterWidget){_497.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,_497,_493,_494);},destroyRecursive:function(){dojo.forEach(this.getChildren(),function(_499){var _49a=_499._splitterWidget;if(_49a){_49a.destroy();}delete _499._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 _49b=dojo.cookie(this._cookieName);if(_49b){this.child.domNode.style[this.horizontal?"height":"width"]=_49b;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_49c=dojo.marginBox(this.child.domNode)[dim],_49d=dojo.filter(this.container.getChildren(),function(_49e){return _49e.region=="center";})[0],_49f=dojo.marginBox(_49d.domNode)[dim];return Math.min(this.child.maxSize,_49c+_49f);},_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 _4a0=this._factor,_4a1=this.horizontal,axis=_4a1?"pageY":"pageX",_4a2=e[axis],_4a3=this.domNode.style,dim=_4a1?"h":"w",_4a4=dojo.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_4a5=this.region,_4a6=_4a5=="top"||_4a5=="bottom"?"top":"left",_4a7=parseInt(_4a3[_4a6],10),_4a8=this._resize,_4a9=dojo.hitch(this.container,"_layoutChildren",this.child.id),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_4aa){var _4ab=e[axis]-_4a2,_4ac=_4a0*_4ab+_4a4,_4ad=Math.max(Math.min(_4ac,max),min);if(_4a8||_4aa){_4a9(_4ad);}_4a3[_4a6]=_4ab+_4a7+_4a0*(_4ad-_4ac)+"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 _4ae=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _4ae?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _4ae?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _4af=dojo._getMarginSize(this.child.domNode)[_4ae?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_4af,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;}dojo.stopEvent(e);this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _4b0=this.dropDown,_4b1=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&&!_4b1){if(dojo.hasClass(t,"dijitPopup")){_4b1=true;}else{t=t.parentNode;}}if(_4b1){t=e.target;if(_4b0.onItemClick){var _4b2;while(t&&!(_4b2=dijit.byNode(t))){t=t.parentNode;}if(_4b2&&_4b2.onClick&&_4b2.getParent){_4b2.getParent().onItemClick(_4b2,e);}}return;}}}if(this._opened&&_4b0.focus&&_4b0.autoFocus!==false){window.setTimeout(dojo.hitch(_4b0,"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 _4b3={"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"+_4b3+"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,_4b4=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==" ")&&((_4b4.tagName||"").toLowerCase()!=="input"||(_4b4.type&&_4b4.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 _4b5=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_4b5);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_4b6){_4b6();},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 _4b7=this.dropDown,_4b8=_4b7.domNode,_4b9=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_4b8.style.width){this._explicitDDWidth=true;}if(_4b8.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _4ba={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_4ba.width="";}if(!this._explicitDDHeight){_4ba.height="";}dojo.style(_4b8,_4ba);var _4bb=this.maxHeight;if(_4bb==-1){var _4bc=dojo.window.getBox(),_4bd=dojo.position(_4b9,false);_4bb=Math.floor(Math.max(_4bd.y,_4bc.h-(_4bd.y+_4bd.h)));}if(_4b7.startup&&!_4b7._started){_4b7.startup();}dijit.popup.moveOffScreen(_4b7);var mb=dojo._getMarginSize(_4b8);var _4be=(_4bb&&mb.h>_4bb);dojo.style(_4b8,{overflowX:"hidden",overflowY:_4be?"auto":"hidden"});if(_4be){mb.h=_4bb;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_4b9.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_4b9.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_4b7.resize)){_4b7.resize(mb);}else{dojo.marginBox(_4b8,mb);}}var _4bf=dijit.popup.open({parent:this,popup:_4b7,around:_4b9,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 _4bf;},closeDropDown:function(_4c0){if(this._opened){if(_4c0){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 _4c1=dijit.byNode(node);if(_4c1&&typeof _4c1._onSubmit=="function"){_4c1._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_4c2){if(_4c2&&(!this.params||!("label" in this.params))){this.set("label",_4c2.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(_4c3){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_4c3);},_setLabelAttr:function(_4c4){this._set("label",_4c4);this.containerNode.innerHTML=_4c4;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _4c5=this.iconClass||"dijitNoIcon",_4c6=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_4c6,_4c5);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 _4c7=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_4c7[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _4c8=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_4c8);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _4c9=this.dropDown;return (!!_4c9&&(!_4c9.href||_4c9.isLoaded));},loadDropDown:function(){var _4ca=this.dropDown;if(!_4ca){return;}if(!this.isLoaded()){var _4cb=dojo.connect(_4ca,"onLoad",this,function(){dojo.disconnect(_4cb);this.openDropDown();});_4ca.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(_4cc){if(!this.disabled){dijit.focus(_4cc=="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(_4cd,_4ce){this._set("checked",_4cd);dojo.attr(this.focusNode||this.domNode,"checked",_4cd);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_4cd);this._handleOnChange(_4cd,_4ce);},setChecked:function(_4cf){dojo.deprecated("setChecked("+_4cf+") is deprecated. Use set('checked',"+_4cf+") instead.","","2.0");this.set("checked",_4cf);},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(_4d0,_4d1,_4d2){_4d2=dojo.i18n.normalizeLocale(_4d2);var _4d3=_4d2.split("-");var _4d4=[_4d0,"nls",_4d1].join(".");var _4d5=dojo._loadedModules[_4d4];if(_4d5){var _4d6;for(var i=_4d3.length;i>0;i--){var loc=_4d3.slice(0,i).join("_");if(_4d5[loc]){_4d6=_4d5[loc];break;}}if(!_4d6){_4d6=_4d5.ROOT;}if(_4d6){var _4d7=function(){};_4d7.prototype=_4d6;return new _4d7();}}throw new Error("Bundle not found: "+_4d1+" in "+_4d0+" , locale="+_4d2);};dojo.i18n.normalizeLocale=function(_4d8){var _4d9=_4d8?_4d8.toLowerCase():dojo.locale;if(_4d9=="root"){_4d9="ROOT";}return _4d9;};dojo.i18n._requireLocalization=function(_4da,_4db,_4dc,_4dd){var _4de=dojo.i18n.normalizeLocale(_4dc);var _4df=[_4da,"nls",_4db].join(".");var _4e0="";if(_4dd){var _4e1=_4dd.split(",");for(var i=0;i<_4e1.length;i++){if(_4de["indexOf"](_4e1[i])==0){if(_4e1[i].length>_4e0.length){_4e0=_4e1[i];}}}if(!_4e0){_4e0="ROOT";}}var _4e2=_4dd?_4e0:_4de;var _4e3=dojo._loadedModules[_4df];var _4e4=null;if(_4e3){if(dojo.config.localizationComplete&&_4e3._built){return;}var _4e5=_4e2.replace(/-/g,"_");var _4e6=_4df+"."+_4e5;_4e4=dojo._loadedModules[_4e6];}if(!_4e4){_4e3=dojo["provide"](_4df);var syms=dojo._getModuleSymbols(_4da);var _4e7=syms.concat("nls").join("/");var _4e8;dojo.i18n._searchLocalePath(_4e2,_4dd,function(loc){var _4e9=loc.replace(/-/g,"_");var _4ea=_4df+"."+_4e9;var _4eb=false;if(!dojo._loadedModules[_4ea]){dojo["provide"](_4ea);var _4ec=[_4e7];if(loc!="ROOT"){_4ec.push(loc);}_4ec.push(_4db);var _4ed=_4ec.join("/")+".js";_4eb=dojo._loadPath(_4ed,null,function(hash){hash=hash.root||hash;var _4ee=function(){};_4ee.prototype=_4e8;_4e3[_4e9]=new _4ee();for(var j in hash){_4e3[_4e9][j]=hash[j];}});}else{_4eb=true;}if(_4eb&&_4e3[_4e9]){_4e8=_4e3[_4e9];}else{_4e3[_4e9]=_4e8;}if(_4dd){return true;}});}if(_4dd&&_4de!=_4e0){_4e3[_4de.replace(/-/g,"_")]=_4e3[_4e0.replace(/-/g,"_")];}};(function(){var _4ef=dojo.config.extraLocale;if(_4ef){if(!_4ef instanceof Array){_4ef=[_4ef];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_4f0,_4f1){req(m,b,_4f0,_4f1);if(_4f0){return;}for(var i=0;i<_4ef.length;i++){req(m,b,_4ef[i],_4f1);}};}})();dojo.i18n._searchLocalePath=function(_4f2,down,_4f3){_4f2=dojo.i18n.normalizeLocale(_4f2);var _4f4=_4f2.split("-");var _4f5=[];for(var i=_4f4.length;i>0;i--){_4f5.push(_4f4.slice(0,i).join("-"));}_4f5.push(false);if(down){_4f5.reverse();}for(var j=_4f5.length-1;j>=0;j--){var loc=_4f5[j]||"ROOT";var stop=_4f3(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_4f6,_4f7){function _4f8(_4f9){_4f9=dojo.i18n.normalizeLocale(_4f9);dojo.i18n._searchLocalePath(_4f9,true,function(loc){for(var i=0;i<_4f7.length;i++){if(_4f7[i]==loc){dojo["require"](_4f6+"_"+loc);return true;}}return false;});};_4f8();var _4fa=dojo.config.extraLocale||[];for(var i=0;i<_4fa.length;i++){_4f8(_4fa[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,_4fb){var cls=dojo.getObject(this.buttonWidget);var _4fc=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(_4fc.focusNode,"selected","false");var _4fd=["title","showTitle","iconClass","closable","tooltip"],_4fe=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_4fd,function(_4ff,idx){return page.watch(_4ff,function(name,_500,_501){_4fc.set(_4fe[idx],_501);});});this.pane2connects[page.id]=[this.connect(_4fc,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_4fc,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_4fc,_4fb);this.pane2button[page.id]=_4fc;page.controlButton=_4fc;if(!this._currentChild){_4fc.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_4fc.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 _502=this.pane2button[page.id];if(_502){this.removeChild(_502);delete this.pane2button[page.id];_502.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _503=this.pane2button[this._currentChild.id];_503.set("checked",false);dijit.setWaiState(_503.focusNode,"selected","false");_503.focusNode.setAttribute("tabIndex","-1");}var _504=this.pane2button[page.id];_504.set("checked",true);dijit.setWaiState(_504.focusNode,"selected","true");this._currentChild=page;_504.focusNode.setAttribute("tabIndex","0");var _505=dijit.byId(this.containerId);dijit.setWaiState(_505.containerNode,"labelledby",_504.id);},onButtonClick:function(page){var _506=dijit.byId(this.containerId);_506.selectChild(page);},onCloseButtonClick:function(page){var _507=dijit.byId(this.containerId);_507.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_508){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_508=!_508;}var _509=this.getChildren();var _50a=dojo.indexOf(_509,this.pane2button[this._currentChild.id]);var _50b=_508?1:_509.length-1;return _509[(_50a+_50b)%_509.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _50c=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_50c=false;}break;case k.PAGE_UP:if(e.ctrlKey){_50c=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_50c=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_50c=true;}break;case k.HOME:case k.END:var _50d=this.getChildren();if(_50d&&_50d.length){_50d[e.charOrCode==k.HOME?0:_50d.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(_50c!==null){this.adjacent(_50c).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 _50e=this.getChildren();dojo.forEach(_50e,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_50e,function(_50f){if(_50f.selected){this.selectedChildWidget=_50f;}return _50f.selected;},this);}var _510=this.selectedChildWidget;if(!_510&&_50e[0]){_510=this.selectedChildWidget=_50e[0];_510.selected=true;}dojo.publish(this.id+"-startup",[{children:_50e,selected:_510}]);this.inherited(arguments);},resize:function(){var _511=this.selectedChildWidget;if(_511&&!this._hasBeenShown){this._hasBeenShown=true;this._showChild(_511);}this.inherited(arguments);},_setupChild:function(_512){this.inherited(arguments);dojo.replaceClass(_512.domNode,"dijitHidden","dijitVisible");_512.domNode.title="";},addChild:function(_513,_514){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_513,_514]);this.layout();if(!this.selectedChildWidget){this.selectChild(_513);}}},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 _515=this.getChildren();if(_515.length){this.selectChild(_515[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_516){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_516);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(_517,_518,_519){if(_518){this._hideChild(_518);}var d=this._showChild(_517);if(_517.resize){if(this.doLayout){_517.resize(this._containerContentBox||this._contentBox);}else{_517.resize();}}return d;},_adjacent:function(_51a){var _51b=this.getChildren();var _51c=dojo.indexOf(_51b,this.selectedChildWidget);_51c+=_51a?1:_51b.length-1;return _51b[_51c%_51b.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 _51d=this.getChildren();page.isFirstChild=(page==_51d[0]);page.isLastChild=(page==_51d[_51d.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 _51e=page.onClose(this,page);if(_51e){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_51f){dojo.forEach(this.getChildren(),function(_520){this.removeChild(_520);_520.destroyRecursive(_51f);},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 _521=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_521;var _522=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_521},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_522);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_522[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _523=dojo.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_523});}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(_524,_525){var _526=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_524,function(code){_526[code]=prev;});dojo.forEach(_525,function(code){_526[code]=next;});_526[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_526[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(_527,_528){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_527);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _529=this._getFirstFocusableChild();if(_529){this.focusChild(_529);}},focusLastChild:function(){var _52a=this._getLastFocusableChild();if(_52a){this.focusChild(_52a);}},focusNext:function(){var _52b=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_52b);},focusPrev:function(){var _52c=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_52c,true);},focusChild:function(_52d,last){if(this.focusedChild&&_52d!==this.focusedChild){this._onChildBlur(this.focusedChild);}_52d.set("tabIndex",this.tabIndex);_52d.focus(last?"end":"start");this._set("focusedChild",_52d);},_startupChild:function(_52e){_52e.set("tabIndex","-1");this.connect(_52e,"_onFocus",function(){_52e.set("tabIndex",this.tabIndex);});this.connect(_52e,"_onBlur",function(){_52e.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(_52f){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_530,dir){if(_530){_530=this._getSiblingOfChild(_530,dir);}var _531=this.getChildren();for(var i=0;i<_531.length;i++){if(!_530){_530=_531[(dir>0)?0:(_531.length-1)];}if(_530.isFocusable()){return _530;}_530=this._getSiblingOfChild(_530,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(_532){if(_532&&!("label" in this.params)){this.set("label",_532.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _533=this.id+"_text";dojo.attr(this.containerNode,"id",_533);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_533+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_533);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(_534){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_534);},setLabel:function(_535){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_535);},setDisabled:function(_536){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_536);},_setDisabledAttr:function(_537){dijit.setWaiState(this.focusNode,"disabled",_537?"true":"false");this._set("disabled",_537);},_setAccelKeyAttr:function(_538){this.accelKeyNode.style.display=_538?"":"none";this.accelKeyNode.innerHTML=_538;dojo.attr(this.containerNode,"colSpan",_538?"1":"2");this._set("accelKey",_538);}});}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 _539=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_539[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(_53a){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_53a);dijit.setWaiState(this.domNode,"checked",_53a);this._set("checked",_53a);},onChange:function(_53b){},_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(_53c){_53c.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_53d){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _53e=this._getTopMenu();if(_53e&&_53e._isMenuBar){_53e.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _53f=this.currentPopup.parentMenu;if(_53f.focusedChild){_53f.focusedChild._setSelected(false);}_53f.focusedChild=this.currentPopup.from_item;_53f.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 _540=item.popup;if(_540){this._stopPendingCloseTimer(_540);_540._pendingClose_timer=setTimeout(function(){_540._pendingClose_timer=null;if(_540.parentMenu){_540.parentMenu.currentPopup=null;}dijit.popup.close(_540);},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(_541){if(_541._pendingClose_timer){clearTimeout(_541._pendingClose_timer);_541._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 _542=this.focusedChild;if(!_542){return;}var _543=_542.popup;if(_543.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_543.parentMenu=this;_543.from_item=_542;var self=this;dijit.popup.open({parent:this,popup:_543,around:_542.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(_542);self._cleanUp();_542._setSelected(true);self.focusedChild=_542;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_543;_543.connect(_543.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_543.focus){_543._focus_timer=setTimeout(dojo.hitch(_543,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 _544=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(_545){var win=dojo.window.get(this._iframeContentDocument(_545))||this._iframeContentDocument(_545)["__parent__"]||(_545.name&&dojo.doc.frames[_545.name])||null;return win;},_iframeContentDocument:function(_546){var doc=_546.contentDocument||(_546.contentWindow&&_546.contentWindow.document)||(_546.name&&dojo.doc.frames[_546.name]&&dojo.doc.frames[_546.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _547=node,win=this._iframeContentWindow(_547);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _548={node:node,iframe:_547};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_548));var _549=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_547,{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,_547);}})];});_548.connects=cn?_549(cn):[];if(_547){_548.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_547);cn=dojo.withGlobal(win,dojo.body);_548.connects=_549(cn);});if(_547.addEventListener){_547.addEventListener("load",_548.onloadHandler,false);}else{_547.attachEvent("onload",_548.onloadHandler);}}},unBindDomNode:function(_54a){var node;try{node=dojo.byId(_54a);}catch(e){return;}var _54b="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_54b)){var bid=dojo.attr(node,_54b)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _54c=b.iframe;if(_54c){if(_54c.removeEventListener){_54c.removeEventListener("load",b.onloadHandler,false);}else{_54c.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_54b);delete this._bindings[bid];}},_scheduleOpen:function(_54d,_54e,_54f){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_54d,iframe:_54e,coords:_54f});}),1);}},_openMyself:function(args){var _550=args.target,_551=args.iframe,_552=args.coords;if(_552){if(_551){var od=_550.ownerDocument,ifc=dojo.position(_551,true),win=this._iframeContentWindow(_551),_553=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_551),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_551,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_551,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_551,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_551,cs.borderTopWidth):0);_552.x+=ifc.x+left-_553.x;_552.y+=ifc.y+top-_553.y;}}else{_552=dojo.position(_550,true);_552.x+=10;_552.y+=10;}var self=this;var _554=dijit.getFocus(this);function _555(){if(self.refocus){dijit.focus(_554);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_552.x,y:_552.y,onExecute:_555,onCancel:_555,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 _556=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_556=Math.max(_556,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_556+"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 _557=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_557.itemClose);}var _557=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:_557.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_558){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,_559){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,_55a,_55b){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,_55c){var _55d=this.pane2button[page.id];if(this._selectedTab===_55d.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 _55e=this.getChildren();if(_55e.length){var _55f=_55e[this.isLeftToRight()?0:_55e.length-1].domNode,_560=_55e[this.isLeftToRight()?_55e.length-1:0].domNode;return _560.offsetLeft+dojo.style(_560,"width")-_55f.offsetLeft;}else{return 0;}},_enableBtn:function(_561){var _562=this._getTabsWidth();_561=_561||dojo.style(this.scrollNode,"width");return _562>0&&_561<_562;},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 _563=this._enableBtn(this._contentBox.w);this._buttons.style("display",_563?"":"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 _564=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_564);}},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 _565=this.getChildren(),_566=dojo.style(this.scrollNode,"width"),_567=dojo.style(this.containerNode,"width"),_568=_567-_566,_569=this._getTabsWidth();if(_565.length&&_569>_566){return {min:this.isLeftToRight()?0:_565[_565.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_565[_565.length-1].domNode.offsetLeft+dojo.style(_565[_565.length-1].domNode,"width"))-_566:_568};}else{var _56a=this.isLeftToRight()?0:_568;return {min:_56a,max:_56a};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_56b=dojo.style(this.scrollNode,"width"),_56c=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_56b/2;pos=Math.min(Math.max(pos,_56c.min),_56c.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _56d=this._getScrollBounds();x=Math.min(Math.max(x,_56d.min),_56d.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(_56e,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _56f=dojo.style(this.scrollNode,"width");var d=(_56f*0.75)*_56e;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_570){var _571=this._getScrollBounds();this._leftBtn.set("disabled",_570<=_571.min);this._rightBtn.set("disabled",_570>=_571.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(_572){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _573=dijit.byId(this.containerId);dojo.forEach(_573.getChildren(),function(page){var _574=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_573.selectChild(page);}});this.dropDown.addChild(_574);},this);_572();},closeDropDown:function(_575){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(_576){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_577=dojo.getObject(this.controllerWidget);return new _577({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},_576);},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 _578;var _579=this._scrollerWidths();var _57a=this.target;var _57b=dojo.style(this._centerNode,"display");dojo.style(this._centerNode,"display","block");var box=dojo.position(_57a,true);if(_57a===dojo.body()||_57a===dojo.doc){box=dojo.window.getBox();box.x=box.l;box.y=box.t;}var _57c=dojo.marginBox(this._centerNode);dojo.style(this._centerNode,"display",_57b);if(this._ieFixNode){_578=-this._ieFixNode.offsetTop/1000;box.x=Math.floor((box.x+0.9)/_578);box.y=Math.floor((box.y+0.9)/_578);box.w=Math.floor((box.w+0.9)/_578);box.h=Math.floor((box.h+0.9)/_578);}var zi=dojo.style(_57a,"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 _57d=_57a.parentNode;var _57e=-100000;while(_57d&&_57d!==dojo.body()){zi=dojo.style(_57d,"zIndex");if(!zi||zi==="auto"){_57d=_57d.parentNode;}else{var _57f=parseInt(zi,10);if(_57e<_57f){_57e=_57f;ziUl=_57f+1;ziIn=_57f+2;}_57d=_57d.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=_57a.parentNode;if(pn&&pn!==dojo.body()&&_57a!==dojo.body()&&_57a!==dojo.doc){var obh=box.h;var obw=box.w;var _580=dojo.position(pn,true);if(this._ieFixNode){_578=-this._ieFixNode.offsetTop/1000;_580.x=Math.floor((_580.x+0.9)/_578);_580.y=Math.floor((_580.y+0.9)/_578);_580.w=Math.floor((_580.w+0.9)/_578);_580.h=Math.floor((_580.h+0.9)/_578);}_580.w-=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;_580.h-=pn.scrollWidth>pn.clientWidth&&pn.clientWidth>0?_579.h:0;if(dir==="rtl"){if(dojo.isOpera){box.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;_580.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;}else{if(dojo.isIE){_580.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;}else{if(dojo.isWebKit){}}}}if(_580.w<box.w){box.w=box.w-_580.w;}if(_580.h<box.h){box.h=box.h-_580.h;}var _581=_580.y;var _582=_580.y+_580.h;var bTop=box.y;var _583=box.y+obh;var _584=_580.x;var _585=_580.x+_580.w;var _586=box.x;var _587=box.x+obw;var _588;if(_583>_581&&bTop<_581){box.y=_580.y;_588=_581-bTop;var _589=obh-_588;if(_589<_580.h){box.h=_589;}else{box.h-=2*(pn.scrollWidth>pn.clientWidth&&pn.clientWidth>0?_579.h:0);}}else{if(bTop<_582&&_583>_582){box.h=_582-bTop;}else{if(_583<=_581||bTop>=_582){box.h=0;}}}if(_587>_584&&_586<_584){box.x=_580.x;_588=_584-_586;var _58a=obw-_588;if(_58a<_580.w){box.w=_58a;}else{box.w-=2*(pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.w:0);}}else{if(_586<_585&&_587>_585){box.w=_585-_586;}else{if(_587<=_584||_586>=_585){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 _58b=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"];this._cloneStyles(_58b);if(!dojo.isIE){_58b=["MozBorderRadius","MozBorderRadiusTopleft","MozBorderRadiusTopright","MozBorderRadiusBottomleft","MozBorderRadiusBottomright","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius"];this._cloneStyles(_58b,this);}var _58c=(box.h/2)-(_57c.h/2);var _58d=(box.w/2)-(_57c.w/2);if(box.h>=_57c.h&&box.w>=_57c.w){dojo.style(this._centerNode,{top:(_58c+box.y)+"px",left:(_58d+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(_58e){dojo.style(this._underlayNode,_58e,dojo.style(this.target,_58e));},this);},_fadeIn:function(){var self=this;var _58f=dojo.animateProperty({duration:self.duration,node:self._underlayNode,properties:{opacity:{start:0,end:0.75}}});var _590=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([_58f,_590]);this._anim.play();},_fadeOut:function(){var self=this;var _591=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 _592=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([_591,_592]);this._anim.play();},_ignore:function(_593){if(_593){dojo.stopEvent(_593);}},_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(_594){this.centerIndicator=_594;if(_594==="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.Application"]){dojo._hasResource["GeoMOOSE.Application"]=true;dojo.provide("GeoMOOSE.Application");dojo.declare("GeoMOOSE.Application",null,{_tabContainer:"tabs",mapSources:{},events:null,initialize:function(){},startup:function(){var _595=GeoMOOSE.UX.getExtensions();for(var i=0;i<_595.length;i++){var n=new _595[i]();n.load();}var args=GeoMOOSE.getUrlParameters();if(args.debug){CONFIGURATION["debug"]=true;}var _596=undefined;if(args.mapbook){_596=args.mapbook;}this.events=new OpenLayers.Events();this.getMapbook(_596);},getMapbook:function(url){var _597=GeoMOOSE.isDefined(url)?url:CONFIGURATION.mapbook;dojo.xhrGet({"url":_597,"load":dojo.hitch(this,this.gotMapbook),"error":dojo.hitch(this,this.onMapbookLoadError),"handleAs":"xml"});},onGotMapbook:function(_598){},gotMapbook:function(_599){if(!GeoMOOSE.isDefined(_599)){var _59a=dojo.create("div",{},dojo.body());var _59b=dojo.create("div",{"innerHTML":CONFIGURATION.messages.mapbook_invalid},_59a);dojo.style(_59a,{"position":"absolute","top":"0","left":"0","width":"100%","height":"100%","backgroundColor":"white","fontWeight":"bold","fontSize":"1.5em","opacity":".8","zIndex":"1000"});dojo.style(_59b,{"position":"absolute","top":"5%","width":"20em","left":"-10em","marginLeft":"50%","backgroundColor":"white","opacity":"1","padding":".5em","border":"solid 1px #444"});return false;}this.parseConfiguration(_599);this.configureMap();this.configureMapSources(_599);var _59c=GeoMOOSE.getUrlParameters();if(GeoMOOSE.isDefined(_59c.extent)){var _59d=_59c.extent.split(",");for(var i=0;i<4;i++){_59d[i]=parseFloat(_59d[i]);}CONFIGURATION.initial_extent=_59d;}Map.zoomToExtent(OpenLayers.Bounds.fromArray(CONFIGURATION.initial_extent));this.onGotMapbook(_599);if(this.active_map_source){GeoMOOSE.activateMapSource(this.active_map_source);}},onMapbookLoadError:function(_59e){},_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,_59f){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(_5a0){var _5a1=_5a0.getElementsByTagName("configuration")[0];if(_5a1&&_5a1.childNodes){var _5a2=_5a1.getElementsByTagName("param");var _5a3=_5a2.length;for(var p=0;p<_5a3;p++){var _5a4=_5a2[p];var name=_5a4.getAttribute("name");var _5a5=OpenLayers.Util.getXmlNodeValue(_5a4);var _5a6=this._getConfigValue(name);var _5a7=typeof (_5a6);if(_5a6 instanceof Array){if(_5a5[0]=="["&&_5a5[_5a5.length-1]=="]"){_5a5=_5a5.substring(1,_5a5.length-1);}_5a5=eval("["+_5a5+"]");}else{if(_5a7=="string"){}else{if(_5a7=="boolean"){_5a5=parseBoolean(_5a5);}else{if(_5a7=="object"){_5a5=dojo.fromJson(_5a5);}else{_5a5=eval("("+_5a5+")");}}}}this._setConfigValue(name,_5a5);try{}catch(e){GeoMOOSE.warning(GeoMOOSE.processTemplate(CONFIGURATION.messages.mapbook_param_error,{"FIELD":name}));}}}},configureMap:function(){CONFIGURATION.scales=CONFIGURATION.scales.sort().reverse();var _5a8={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 _5a9={"scales":"resolutions","maxResolution":"maxResolution","numZoomLevels":"numZoomLevels"};for(var key in _5a9){if(GeoMOOSE.isDefined(CONFIGURATION[key])){_5a8[_5a9[key]]=CONFIGURATION[key];}}if(GeoMOOSE.isDefined(_5a8["numZoomLevels"])&&GeoMOOSE.isDefined(_5a8["maxResolution"])){if(GeoMOOSE.isDefined(_5a8["resolutions"])){delete _5a8["resolutions"];}}Map=new OpenLayers.Map("mapContainer",_5a8);_5a8["singleTile"]=true;this.navigationLayer=new OpenLayers.Layer.WMS("GeoMOOSE Navigation Layer","images/blank.gif",{},_5a8);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();});},configureMapTools:function(){Tools["pan"]=new OpenLayers.Control.Navigation();Tools["zoomin"]=new OpenLayers.Control.ZoomBox();Tools["zoomout"]=new OpenLayers.Control.ZoomBox({out:true});var _5aa=["pan","zoomin","zoomout"];for(var i=0,len=_5aa.length;i<len;i++){Map.addControl(Tools[_5aa[i]]);}if(CONFIGURATION["always_scroll_zoom"]){var nav=new OpenLayers.Control.Navigation();Map.addControl(nav);}var _5ab=new OpenLayers.Control.NavigationHistory();Map.addControl(_5ab);var _5ac={activate:function(){_5ab.previous.trigger();},deactivate:function(){}};var next={activate:function(){_5ab.next.trigger();},deactivate:function(){}};var _5ad={activate:function(){Map.zoomToMaxExtent();},deactivate:function(){}};Tools["previous"]=_5ac;Tools["next"]=next;Tools["fullextent"]=_5ad;},configureMapSources:function(_5ae){this.mapSources={};var _5af=null;var _5b0=_5ae.getElementsByTagName("map-source");for(var i=_5b0.length-1;i>=0;i--){var _5b1=_5b0[i];var _5b2=GeoMOOSE.getMapSourceType(_5b1.getAttribute("type"));var name=_5b1.getAttribute("name");if(typeof (_5b2)=="undefined"){GeoMOOSE.warning("Undefined Layer Type : "+_5b1.getAttribute("type"));}else{if(this.mapSources[name]){GeoMOOSE.warning("map-source \""+name+"\" is being redefined!.");}this.mapSources[name]=new _5b2(_5b1);this.mapSources[name].addToMap(Map);dojo.connect(this.mapSources[name],"onLayersChange",this.onLayersChange);}if(parseBoolean(_5b1.getAttribute("active"),false)){_5af=name;}}this.active_map_source=_5af;},getMapSource:function(name){var _5b3=name.split("/");return this.mapSources[_5b3[0]];},onLayersChange:function(path,_5b4){},getVisibleLayers:function(){var _5b5=[];for(var name in this.mapSources){if(this.mapSources[name].isVisible()){_5b5.push(name);}var _5b6=this.mapSources[name]._getLayersList();for(var i=0,len=_5b6.length;i<len;i++){_5b6[i]=name+"/"+_5b6[i];}_5b5=_5b5.concat(_5b6);}return _5b5;},configureServiceManager:function(){},activateMapSource:function(path){this.active_map_source=path;this.onActivateMapSource(path);},getActiveMapSource:function(){return this.active_map_source;},onActivateMapSource:function(path){}});}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(_5b7,_5b8,_5b9){OpenLayers.Handler.Box.prototype.initialize.apply(this,arguments);},endBox:function(end){var _5ba;var _5bb=this.dragHandler.start;var top=Math.min(_5bb.y,end.y);var _5bc=Math.max(_5bb.y,end.y);var left=Math.min(_5bb.x,end.x);var _5bd=Math.max(_5bb.x,end.x);_5ba=new OpenLayers.Bounds(left,_5bc,_5bd,top);this.removeBox();var _5be=new OpenLayers.Geometry.Polygon();var _5bf=[[left,_5bc],[left,top],[_5bd,top],[_5bd,_5bc]];var ring=new OpenLayers.Geometry.LinearRing();for(var i=0;i<_5bf.length;i++){var px=new OpenLayers.Pixel(_5bf[i][0],_5bf[i][1]);var ll=this.map.getLonLatFromPixel(px);ring.addPoint(new OpenLayers.Geometry.Point(ll.lon,ll.lat));}_5be.addComponent(ring);this.geometry=_5be;this.callback("done",[_5be]);},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.9;OpenLayers.Control.Measure.prototype.activate.apply(this,arguments);},initialize:function(_5c0,_5c1){this.callbacks=OpenLayers.Util.extend({mousemove:this.measureMove},this.callbacks);OpenLayers.Control.Measure.prototype.initialize.apply(this,[_5c0,_5c1]);this.events.addEventType("measuremove");},measureImmediate:function(_5c2,_5c3,_5c4){if(_5c4&&this.delayedTrigger===null&&!this.handler.freehandMode(this.handler.evt)){this.measure(_5c3.geometry,"measuremove");}},measure:function(_5c5,_5c6){var stat,_5c7;if(_5c5.CLASS_NAME.indexOf("LineString")>-1){stat=this.getLength(_5c5,"in");_5c7=1;}else{stat=this.getArea(_5c5,"in");_5c7=2;}if(_5c6!="measuremove"){var _5c8=this.last_move_length;if(_5c8!=0){this.segments.push(_5c8);}for(var i=0,sum=0;i<this.segments.length;sum+=this.segments[i++]){}this.total=sum;this.last_move_length=0;}if(_5c6=="measurepartial"){this.partials++;if(this.partials==1){this.segments=new Array();this.total=0;return false;}}if(_5c6=="measuremove"){stat=stat-this.total;this.last_move_length=stat;}this.events.triggerEvent(_5c6,{measure:stat,units:"in",order:_5c7,geometry:_5c5});if(_5c6=="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(_5c9,_5ca){OpenLayers.Control.prototype.initialize.apply(this,[_5ca]);this.layer=_5c9;this.handler=new OpenLayers.Handler.Feature(this,_5c9,{click:this.clickFeature});},clickFeature:function(_5cb){if(_5cb.fid==undefined){this.layer.destroyFeatures([_5cb]);}else{_5cb.state=OpenLayers.State.DELETE;this.layer.events.triggerEvent("afterfeaturemodified",{feature:_5cb});_5cb.renderIntent="select";this.layer.drawFeature(_5cb);}},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 _5cc=n.scrollLeft,_5cd=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_5cc!=n.scrollLeft||_5cd!=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,_5ce){this.node=dojo.byId(node);if(!_5ce){_5ce={};}this.handle=_5ce.handle?dojo.byId(_5ce.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_5ce.delay>0?_5ce.delay:0;this.skip=_5ce.skip;this.mover=_5ce.mover?_5ce.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(_5cf,node){return new dojo.dnd.Moveable(node,_5cf);},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(_5d0){dojo.publish("/dnd/move/start",[_5d0]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_5d1){dojo.publish("/dnd/move/stop",[_5d1]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_5d2,e){},onMove:function(_5d3,_5d4,e){this.onMoving(_5d3,_5d4);var s=_5d3.node.style;s.left=_5d4.l+"px";s.top=_5d4.t+"px";this.onMoved(_5d3,_5d4);},onMoving:function(_5d5,_5d6){},onMoved:function(_5d7,_5d8){}});}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(_5d9,node){return new dojo.dnd.move.constrainedMoveable(node,_5d9);},constructor:function(node,_5da){if(!_5da){_5da={};}this.constraints=_5da.constraints;this.within=_5da.within;},onFirstMove:function(_5db){var c=this.constraintBox=this.constraints.call(this,_5db);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_5db.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_5dc,_5dd){var c=this.constraintBox,s=_5dc.node.style;this.onMoving(_5dc,_5dd);_5dd.l=_5dd.l<c.l?c.l:c.r<_5dd.l?c.r:_5dd.l;_5dd.t=_5dd.t<c.t?c.t:c.b<_5dd.t?c.b:_5dd.t;s.left=_5dd.l+"px";s.top=_5dd.t+"px";this.onMoved(_5dc,_5dd);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_5de,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_5de);},constructor:function(node,_5df){var box=_5df&&_5df.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_5e0,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_5e0);},constructor:function(node,_5e1){var area=_5e1&&_5e1.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 _5e2=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_5e3){if(!_5e3){_5e3={};}if(_5e3.timeout&&typeof _5e3.timeout=="number"&&_5e3.timeout>=0){this.timeout=_5e3.timeout;}},markupFactory:function(_5e4,node){return new dojo.dnd.TimedMoveable(node,_5e4);},onMoveStop:function(_5e5){if(_5e5._timer){clearTimeout(_5e5._timer);_5e2.call(this,_5e5,_5e5._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_5e6,_5e7){_5e6._leftTop=_5e7;if(!_5e6._timer){var _5e8=this;_5e6._timer=setTimeout(function(){_5e6._timer=null;_5e2.call(_5e8,_5e6,_5e6._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(_5e9){if(_5e9.reset){_5e9.reset();}});},validate:function(){var _5ea=false;return dojo.every(dojo.map(this.getDescendants(),function(_5eb){_5eb._hasBeenBlurred=true;var _5ec=_5eb.disabled||!_5eb.validate||_5eb.validate();if(!_5ec&&!_5ea){dojo.window.scrollIntoView(_5eb.containerNode||_5eb.domNode);_5eb.focus();_5ea=true;}return _5ec;}),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(_5ed){if(!_5ed.name){return;}var _5ee=map[_5ed.name]||(map[_5ed.name]=[]);_5ee.push(_5ed);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _5ef=map[name],_5f0=dojo.getObject(name,false,obj);if(_5f0===undefined){continue;}if(!dojo.isArray(_5f0)){_5f0=[_5f0];}if(typeof _5ef[0].checked=="boolean"){dojo.forEach(_5ef,function(w,i){w.set("value",dojo.indexOf(_5f0,w.value)!=-1);});}else{if(_5ef[0].multiple){_5ef[0].set("value",_5f0);}else{dojo.forEach(_5ef,function(w,i){w.set("value",_5f0[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(_5f1){var name=_5f1.name;if(!name||_5f1.disabled){return;}var _5f2=_5f1.get("value");if(typeof _5f1.checked=="boolean"){if(/Radio/.test(_5f1.declaredClass)){if(_5f2!==false){dojo.setObject(name,_5f2,obj);}else{_5f2=dojo.getObject(name,false,obj);if(_5f2===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_5f2!==false){ary.push(_5f2);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_5f2);}else{dojo.setObject(name,[prev,_5f2],obj);}}else{dojo.setObject(name,_5f2,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_5f3){},_getState:function(){var _5f4=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_5f4,"Error")>=0?"Error":dojo.indexOf(_5f4,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_5f5){var _5f6=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_5f5?function(name,val){_5f6[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _5f7=(this._childConnections=[]),_5f8=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_5f9){dojo.forEach(["state","disabled"],function(attr){_5f8.push(_5f9.watch(attr,function(attr,_5fa,_5fb){_5f6.set("state",_5f6._getState());}));});});var _5fc=function(){if(_5f6._onChangeDelayTimer){clearTimeout(_5f6._onChangeDelayTimer);}_5f6._onChangeDelayTimer=setTimeout(function(){delete _5f6._onChangeDelayTimer;_5f6._set("value",_5f6.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_5fd){_5f7.push(_5f6.connect(_5fd,"onChange",_5fc));_5f8.push(_5fd.watch("disabled",_5fc));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_5fe,_5ff){this.onValidStateChange(_5ff=="");});},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(_600){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _601=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_601.lowest||_601.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_601.last||_601.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(_602){this.node.className="dijitDialogUnderlay "+_602;this._set("class",_602);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _603=dojo.window.getBox();os.top=_603.t+"px";os.left=_603.l+"px";is.width=_603.w+"px";is.height=_603.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.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(_604){_604.startup();_604._started=true;});},startup:function(){if(this._started){return;}var _605=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_605&&_605.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 _606=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_607=_606.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_608=dojo.filter(_607.map(dijit.byNode),function(_609){return _609&&_609.domNode&&_609.resize;});if(_606.length==_607.length&&_608.length==1){this._singleChild=_608[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_60a,_60b){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_60a,_60b);},_scheduleLayout:function(_60c,_60d){if(this._isShown()){this._layout(_60c,_60d);}else{this._needLayout=true;this._changeSize=_60c;this._resultSize=_60d;}},_layout:function(_60e,_60f){if(_60e){dojo.marginBox(this.domNode,_60e);}var cn=this.containerNode;if(cn===this.domNode){var mb=_60f||{};dojo.mixin(mb,_60e||{});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(_610){if(_610.resize){_610.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,_611=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_611&&_611.style&&(_611.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 _612=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 _613=cont.length,i=0;i<cont.length;i=_613==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(_614,node){dojo.mixin(this,_614||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_612++].join("_");}},set:function(cont,_615){if(undefined!==cont){this.content=cont;}if(_615){this._mixin(_615);}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 _616=this.onContentError(e);try{node.innerHTML=_616;}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 _617=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_617){cont=_617[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(_618){var _619={},key;for(key in _618){if(key in _619){continue;}this[key]=_618[key];}},_parse:function(){var _61a=this.node;try{var _61b={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_61b[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_61a,noStart:!this.startup,inherited:_61b,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_61c){var _61d=this["on"+type+"Error"].call(this,err);if(_61c){console.error(_61c,err);}else{if(_61d){dojo.html._setNodeContent(this.node,_61d,true);}}}});dojo.html.set=function(node,cont,_61e){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_61e){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_61e,{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(_61f,_620){if((!_61f||!_61f.template)&&_620&&!("href" in _61f)&&!("content" in _61f)){var df=dojo.doc.createDocumentFragment();_620=dojo.byId(_620);while(_620.firstChild){df.appendChild(_620.firstChild);}_61f=dojo.delegate(_61f,{content:df});}this.inherited(arguments,[_61f,_620]);},postMixInProperties:function(){this.inherited(arguments);var _621=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_621);this.errorMessage=dojo.string.substitute(this.errorMessage,_621);},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(_622){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 _623={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_623,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_623));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 _624=this._contentSetter;dojo.forEach(this.getChildren(),function(_625){if(_625.destroyRecursive){_625.destroyRecursive();}});if(_624){dojo.forEach(_624.parseResults,function(_626){if(_626.destroyRecursive&&_626.domNode&&_626.domNode.parentNode==dojo.body()){_626.destroyRecursive();}});delete _624.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_627){this.destroyDescendants();var _628=this._contentSetter;if(!(_628&&_628 instanceof dojo.html._ContentSetter)){_628=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _629=this.onContentError(e);try{this.containerNode.innerHTML=_629;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _62a=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_628.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_62a);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_627){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_62b){this.onLoadDeferred.errback(err);var _62c=this["on"+type+"Error"].call(this,err);if(_62b){console.error(_62b,err);}else{if(_62c){this._setContent(_62c,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_62d){},onDownloadError:function(_62e){return this.errorMessage;},onDownloadEnd:function(){}});}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(_62f){this.containerNode.title=_62f;this._set("title",_62f);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_630,_631){var newC="dijitTooltipAB"+(_631.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_631.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 _632=(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(!_632){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_632){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 _633=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_633);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 _634=dojo.window.getBox();if(mb.w>=_634.w||mb.h>=_634.h){var w=Math.min(mb.w,Math.floor(_634.w*0.75)),h=Math.min(mb.h,Math.floor(_634.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,_635=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_635.l+(p?p.x:(_635.w-bb.w)/2)),t=Math.floor(_635.t+(p?p.y:(_635.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 _636=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_636){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_636){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 _637=dojo.window.getBox();if(!this._oldViewport||_637.h!=this._oldViewport.h||_637.w!=this._oldViewport.w){this.layout();this._oldViewport=_637;}}));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 _638;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_638.stop();delete this._fadeInDeferred;}));_638=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 _639;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_639.stop();delete this._fadeOutDeferred;}));_639=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(_63a,_63b){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_63a);var _63c=dijit._underlay;if(!_63c||_63c._destroyed){_63c=dijit._underlay=new dijit.DialogUnderlay(_63b);}else{_63c.set(_63a.underlayAttrs);}var _63d=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_63c.show();}dojo.style(dijit._underlay.domNode,"zIndex",_63d-1);dojo.style(_63a.domNode,"zIndex",_63d);ds.push({dialog:_63a,underlayAttrs:_63b,zIndex:_63d});},hide:function(_63e){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_63e){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(_63e.refocus){var _63f=pd.focus;if(!_63f||(pd.dialog&&!dojo.isDescendant(_63f.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_63f=pd.dialog._firstFocusItem;}try{dijit.focus(_63f);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_63e);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_640){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_640;}};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(_641,_642,_643){var _644;if(_641!==undefined){_644=this.filter(_641);if(typeof _643!="string"){if(_644!==null&&((typeof _644!="number")||!isNaN(_644))){_643=this.filter(this.format(_644,this.constraints));}else{_643="";}}}if(_643!=null&&_643!=undefined&&((typeof _643)!="number"||!isNaN(_643))&&this.textbox.value!=_643){this.textbox.value=_643;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_644,_642]);},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(_645){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_645);},_setDisplayedValueAttr:function(_646){if(_646===null||_646===undefined){_646="";}else{if(typeof _646!="string"){_646=String(_646);}}this.textbox.value=_646;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_647,_648){return ((_647==null||_647==undefined)?"":(_647.toString?_647.toString():_647));},parse:function(_649,_64a){return _649;},_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 _64b=this;setTimeout(function(){_64b._handleOnChange(_64b.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 _64c=this.domNode.getElementsByTagName("INPUT");if(_64c){for(var i=0;i<_64c.length;i++){_64c[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 _64d;if(dojo.isIE){var _64e=dojo.doc.selection.createRange();var _64f=_64e.parentElement();_64d=_64f==this.textbox&&_64e.text.length==0;}else{_64d=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_64d){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_650,_651,stop){var _652=dojo.global;var _653=dojo.doc;_650=dojo.byId(_650);if(isNaN(_651)){_651=0;}if(isNaN(stop)){stop=_650.value?_650.value.length:0;}dijit.focus(_650);if(_653["selection"]&&dojo.body()["createTextRange"]){if(_650.createTextRange){var r=_650.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_651);r.moveEnd("character",stop-_651);r.select();}}else{if(_652["getSelection"]){if(_650.setSelectionRange){_650.setSelectionRange(_651,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:[],postCreate:function(){this.inherited(arguments);this.content_id=GeoMOOSE.id();var _654=dojo.create("div",{"id":this.content_id});this.set("content",_654);var pos=dojo.position(dojo.body());dojo.style(_654,{"width":"300px","height":"300px"});dojo.style(_654,{"padding":"2px"});},_updateAttribute:function(attr,_655){this.feature.attributes[attr]=_655;},show:function(_656){var _657=_656.feature;var _658=dojo.byId(this.content_id);_658.innerHTML="";var _659=new dijit.layout.BorderContainer({},_658);if(this._main){this._main.destroyRecursive();}var main=dojo.create("div",{});var _65a=new dijit.layout.ContentPane({"content":main,"region":"center"});this._main=_65a;_659.addChild(_65a);_659.startup();this.feature=_657;var _65b={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _65c=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){_65b[_65c]=GeoMOOSE.Services.InputType[x];}}}var _65d=[];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 _65e=this.feature_desc[i]["name"];var _65f=this.feature_desc[i]["type"].toLowerCase();if(!GeoMOOSE.isDefined(_65b[_65f])){_65f="user";}var _660=new _65b[_65f](null,{"name":_65e,"title":this.feature_desc[i]["label"]});var _661=this.feature_desc[i]["value"];if(_657.attributes[_65e]){_661=_657.attributes[_65e];}_660.setValue(_661);if(_660.requiresRender()){_660.renderHTML(c_id);}_65d.push(_660);}var _662=new dijit.Toolbar({"region":"top"});_659.addChild(_662);_662.addChild(new dijit.form.Button({"label":"Cancel","iconClass":"dijitIconDelete","onClick":dojo.hitch(this,this.hide)}));_662.addChild(new dijit.form.Button({"label":"Save Changes","iconClass":"dijitIconSave","onClick":dojo.hitch(this,function(){for(var i=0,ii=_65d.length;i<ii;i++){this._updateAttribute(_65d[i].getName(),_65d[i].getValue());}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 _663=dojo.create("div",{});this.set("content",_663);dojo.style(_663,{"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 _664={"href":url,"innerHTML":urls[i].label};if(url!="#"){_664["target"]="_blank";}var link=dojo.create("a",_664,_663);dojo.addClass(link,"geomooseDownloadLink");dojo.connect(link,"onclick",dojo.hitch(this,this.hide));}}});}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){this.path=path;this.name=name;this.on=on;}});dojo.declare("GeoMOOSE.MapSource",null,{mapbookType:null,_ol_layer:null,path:"",params:{},paths:[],_parseParams:function(_665){var _666={};var _667=_665.getElementsByTagName("param");for(var p=0,len=_667.length;p<len;p++){var _668=_667[p];_666[_668.getAttribute("name")]=_668.getAttribute("value");}return _666;},_parseLayers:function(_669){var _66a=_669.getElementsByTagName("layer");var _66b=[];for(var i=0,len=_66a.length;i<len;i++){var name=_66a[i].getAttribute("name");_66b.push(new GeoMOOSE._Layer(this.path,name,parseBoolean(_66a[i].getAttribute("status"))));this.paths.push(this.path+"/"+name);}return _66b;},onLayersChange:function(path,_66c){if(this._ol_layer){this._ol_layer.setVisibility(this.isVisible());}},_getLayersList:function(){var _66d=[];for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].on===true){_66d.push(this.layers[i].name);}}return _66d;},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(_66e){return _66e;},constructor:function(_66f){this.paths=[];_66f=this.preParseNode(_66f);this.path=_66f.getAttribute("name");this.params=this._parseParams(_66f);this.layers=this._parseLayers(_66f);},checkPath:function(path){return (dojo.indexOf(this.paths,path)>=0);},setVisibility:function(path,_670){var _671=path.split("/");var _672=_671.pop();var _673=false;if(this.checkPath(path)){for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].name==_672){if(_670!=this.layers[i].on){this.layers[i].on=_670;_673=true;}}}}if(_673){this.onLayersChange(path,_670);}},addToMap:function(map){map.addLayers([this._ol_layer]);},setUrl:function(url){},getUrl:function(){return "";},redraw:function(){if(this._ol_layer){this._ol_layer.redraw();}},getParameters:function(_674){return this.params;},getOpacity:function(){var lay=this._ol_layer;if(lay.opacity!=null){return lay.opacity;}return 1;},setOpacity:function(_675){var _676=this._ol_layer;if(_675>1){_675=1;}if(_675<0){_675=0;}if(_676){_676.setOpacity(_675);}},getLegendUrls:function(_677){return [];},moveUp:function(){Map.raiseLayer(this._ol_layer,1);},moveDown:function(){Map.raiseLayer(this._ol_layer,-1);},updateParameters:function(_678){dojo.mixin(this.params,_678);},clearParameters:function(_679){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});}});}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,checkPath:function(path){return (path==this.path);},isVisible:function(){return this.visibility;},setVisibility:function(path,_67a){if(this.checkPath(path)){if(this.visibility!=_67a){this.visibility=_67a;this._ol_layer.setVisibility(this.isVisible());if(_67a===true){this._ol_layer.redraw({force:true});}}}},_createOLLayer:function(_67b){this._ol_layer_name="vector"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.Vector(this._ol_layer_name,{styleMap:this.style_map});this._ol_layer.setVisibility(this.isVisible());},_addOLHooks:function(){this._ol_layer.events.register("beforefeatureadded",this,function(_67c){var _67d=_67c.feature;if(!GeoMOOSE.isDefined(_67d.attributes)){_67d.attributes={};}for(var i=0,len=this.attributes.length;i<len;i++){var attr=this.attributes[i];var _67e="";if(GeoMOOSE.isDefined(attr["default"])){_67e=attr["default"];}if(!GeoMOOSE.isDefined(_67d.attributes[attr["name"]])){_67d.attributes[attr["name"]]=_67e;}}});},addToMap:function(map){this.inherited(arguments);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"}),"edit_attributes":new OpenLayers.Control.SelectFeature(this._ol_layer),"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(){}}};for(var _67f in this.controls){map.addControl(this.controls[_67f]);Tools[this._ol_layer_name+"_"+_67f]=this.controls[_67f];}this.controls["edit_attributes"].events.register("featurehighlighted",this,function(ev){var _680=new GeoMOOSE.Dialog.AttributeEditor({"feature_desc":this.attributes});_680.show(ev);});},editable:true,constructor:function(_681){this.supports={"point":true,"line":true,"polygon":true,"modify":true,"edit_attributes":true,"remove":true,"remove_all":true};var _682=_681.getAttribute("supports");if(GeoMOOSE.isDefined(_682)&&_682!=""){_682=_682.split(",");if(_682.length>0){for(var _683 in this.supports){this.supports[_683]=(dojo.indexOf(_682,_683)>=0);}}}var urls=_681.getElementsByTagName("url");if(urls.length>0){this.url=OpenLayers.Util.getXmlNodeValue(_681.getElementsByTagName("url")[0]);}var _684=_681.getElementsByTagName("attribute");this.attributes=[];for(var i=0,len=_684.length;i<len;i++){var attr=_684[i];var _685=attr.getAttribute("label");var _686=attr.getAttribute("name"),_687=attr.getAttribute("type");var _688=attr.getAttribute("default-value");var _689=parseBoolean(attr.getAttribute("mandatory"),false);this.attributes.push({"name":_686,"type":_687,"default":_688,"mandatory":_689,"label":_685});}var _68a=_681.getElementsByTagName("style");var _68b={};for(var i=0,len=_68a.length;i<len;i++){var _68c=_68a[i].getAttribute("type");var _68d=_68a[i].getAttribute("intent");var _68e=OpenLayers.Util.getXmlNodeValue(_68a[i]);if(!GeoMOOSE.isDefined(_68d)||_68d==""){_68d="default";}if(_68c=="stylemap"){var _68f=dojo.fromJson(_68e);if(GeoMOOSE.isDefined(_68b[_68d])){dojo.mixin(_68b[_68d],_68f);}else{_68b[_68d]=_68f;}}else{if(_68c=="sld"){}}}if(GeoMOOSE.isDefined(_68b["select"])){if(!GeoMOOSE.isDefined(_68b["select"]["label"])){dojo.mixin(_68b["select"],{"label":""});}}else{_68b["select"]={"label":""};}var _690=new OpenLayers.Style();for(var _68d in _68b){var _691=dojo.clone(OpenLayers.Feature.Vector.style[_68d]);dojo.mixin(_691,_68b[_68d]);_68b[_68d]=_691;_68b[_68d]=new OpenLayers.Style(_68b[_68d],{defaultStyle:false});}this.style_map=new OpenLayers.StyleMap(_68b);var _692={};this.visibility=parseBoolean(_681.getAttribute("status"),false);this._createOLLayer(_692);this._addOLHooks();},save:function(){},printable:true,print:function(){var _693=this._ol_layer;var _694={"type":"vector","features":[]};for(var i=0,len=_693.features.length;i<len;i++){_694.features.push({"geometry":_693.features[i].geometry.toString(),"attributes":_693.features[i].attributes,"style":_693.styleMap.createSymbolizer(_693.features[i])});}return _694;}});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(_695){this._ol_layer_name="wfs"+GeoMOOSE.id();this.save_strategy=new OpenLayers.Strategy.Save();this._ol_layer=new OpenLayers.Layer.Vector(this._ol_layer_name,{strategies:[new OpenLayers.Strategy.BBOX(),this.save_strategy],projection:new OpenLayers.Projection(CONFIGURATION.projection),styleMap:this.style_map,visibility:false,protocol:new OpenLayers.Protocol.WFS({version:"1.1.0",srsName:this.srsName,url:this.url,featureNS:this.featureNS,featureType:this.featureType,geometryName:this.featureGeometryName,schema:this.featureSchema})});},preParseNode:function(_696){var _697={"featureNS":"feature-namespace","featureType":"feature-type","featureSchema":"schema","featureGeometryName":"geometry-name"};var name=_696.getAttribute("name");for(var name in _697){var _698=_696.getElementsByTagName(_697[name]);if(_698.length>0){this[name]=OpenLayers.Util.getXmlNodeValue(_698[0]);}else{GeoMOOSE.warning("Missing \""+_697[name]+"\" from \""+name+"\", this may cause errors if trying to use this layer for editing.");}}this.srsName=_696.getAttribute("srs");if(!GeoMOOSE.isDefined(this.srsName)){this.srsName=CONFIGURATION.projection;}return _696;},save:function(){this.save_strategy.save();}});GeoMOOSE.registerMapSourceType("wfs",GeoMOOSE.MapSource.Vector.WFS);}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(_699){this._ol_layer_name=GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.WMS(this._ol_layer_name,this.urls,this.params,_699);},constructor:function(_69a){this.urls=[];var urls=_69a.getElementsByTagName("url");for(var i=0,len=urls.length;i<len;i++){this.urls.push(OpenLayers.Util.getXmlNodeValue(urls[i]));}var _69b={singleTile:!parseBoolean(_69a.getAttribute("tiled"),false),isBaseLayer:false,ratio:1,visibility:this.isVisible()};var _69c=parseFloat(_69a.getAttribute("buffer"));if(_69c){_69b.ratio=_69c;}if(!_69b.singleTile){var w=_69a.getAttribute("width");var h=_69a.getAttribute("height");if(w&&h){_69b.tileSize=new OpenLayers.Size(parseFloat(w),parseFloat(h));}}if(!GeoMOOSE.isDefined(this.params["FORMAT"])){this.params["FORMAT"]="image/png";}if(!GeoMOOSE.isDefined(this.params["TRANSPARENT"])){this.params["TRANSPARENT"]="TRUE";}this._createOLLayer(_69b);this.updateParameters({});this.onLayersChange();},onLayersChange:function(path,_69d){this._ol_layer.params["LAYERS"]=this._getLayersList().join(",");this.inherited(arguments);this._ol_layer.redraw();},getUrl:function(){return this.urls;},setUrl:function(url){this.urls=[url];this._ol_layer.url=url;},updateParameters:function(_69e){this.inherited(arguments);this._ol_layer.mergeNewParams(this.params);},clearParameters:function(){var _69f=["service","version","request","styles","format"];var _6a0={};for(var i=0,ii=_69f.length;i<ii;i++){_6a0[_69f[i]]=this._ol_layer.DEFAULT_PARAMS[_69f[i]];}this._ol_layer.params=_6a0;},getLegendUrls:function(_6a1){var _6a2=this._ol_layer.getURL(OpenLayers.Bounds.fromArray(GeoMOOSE.getExtent())).replace("REQUEST=GetMap","REQUEST=GetLegendGraphic");_6a2+="&SCALE="+GeoMOOSE.getScale();var _6a3=this._getLayersList();var _6a4=[];var _6a5=false;if(_6a1 instanceof Array){for(var i=0,len=_6a1.length;i<len;i++){_6a1[i]=_6a1[i].split("/")[1];}for(var p=0,plen=_6a1.length;p<plen;p++){if(dojo.indexOf(_6a3,_6a1[p])>=0){_6a4.push(_6a2+"&LAYER="+_6a1[p]);}}}else{for(var i=0,len=_6a3.length;i<len;i++){_6a4.push(_6a2+"&LAYER="+_6a3[i]);}}return _6a4;},getLayerParams:function(_6a6){if(_6a6===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 _6a7={"type":"wms","url":this.urls[0],"layers":this._getLayersList(),"legends":this.getLegendUrls(),"params":this.getLayerParams(true)};return _6a7;}});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(_6a8){var urls=_6a8.getElementsByTagName("url").length;var doc=_6a8.ownerDocument;if(urls==0){var _6a9=doc.createElement("url");_6a9.appendChild(doc.createTextNode(CONFIGURATION.mapserver_url));_6a8.appendChild(_6a9);}var file="";try{file=OpenLayers.Util.getXmlNodeValue(_6a8.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: "+_6a8.getAttribute("name"));}var _6aa=doc.createElement("param");_6aa.setAttribute("name","map");_6aa.setAttribute("value",file);_6a8.appendChild(_6aa);return _6a8;}});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(_6ab){this._ol_layer_name="tms"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.TMS(this._ol_layer_name,this.urls,_6ab);},constructor:function(_6ac){this.urls=[];var urls=_6ac.getElementsByTagName("url");for(var i=0,len=urls.length;i<len;i++){this.urls.push(OpenLayers.Util.getXmlNodeValue(urls[i]));}var _6ad={visibility:this.isVisible(),isBaseLayer:false,sphericalMercator:true};var w=_6ac.getAttribute("width");var h=_6ac.getAttribute("height");if(!GeoMOOSE.isDefined(w)){w=256;}if(!GeoMOOSE.isDefined(h)){h=256;}_6ad.tileSize=new OpenLayers.Size(parseFloat(w),parseFloat(h));var _6ae="png";if(GeoMOOSE.isDefined(this.params["FORMAT"])){_6ae=this.params["FORMAT"];delete this.params["FORMAT"];}var _6af=_6ae.indexOf("/");if(_6af>0){_6ae=_6ae.substring(_6af+1);}_6ad["type"]=_6ae;_6ad["layername"]=this.layers[0].name;dojo.mixin(_6ad,this.params);this._createOLLayer(_6ad);this.onLayersChange();},onLayersChange:function(path,_6b0){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(_6b1){this._ol_layer_name="xyz"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.XYZ(this._ol_layer_name,this.urls,_6b1);}});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],{_createOLLayer:function(_6b2){this._ol_layer_name="google"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.Google(this._ol_layer_name,_6b2);},constructor:function(_6b3){if(!GeoMOOSE.isDefined(window.google)||!GeoMOOSE.isDefined(google.maps)||!GeoMOOSE.isDefined(google.maps.MapTypeId.TERRAIN)){var _6b4="Warning, this application has a Google Maps layer defined in the mapbook, but the Google Maps library has not been included.";GeoMOOSE.error(_6b4);this._ol_layer_name="goog_error"+GeoMOOSE.id();this._ol_layer=this._createBlankLayer(this._ol_layer_name);return false;}var _6b5={visibility:this.isVisible(),isBaseLayer:false};var _6b6={"physical":google.maps.MapTypeId.TERRAIN,"streets":null,"hybrid":google.maps.MapTypeId.HYBRID,"satellite":google.maps.MapTypeId.SATELLITE};var _6b7=_6b3.getAttribute("google-type");var _6b8=_6b6[_6b7];if(GeoMOOSE.isDefined(_6b8)){_6b5["type"]=_6b8;}this._createOLLayer(_6b5);this.onLayersChange();},onLayersChange:function(path,_6b9){this.inherited(arguments);this._ol_layer.redraw();}});GeoMOOSE.registerMapSourceType("google",GeoMOOSE.MapSource.Google);}if(!dojo._hasResource["GeoMOOSE.MapSource.Yahoo"]){dojo._hasResource["GeoMOOSE.MapSource.Yahoo"]=true;dojo.provide("GeoMOOSE.MapSource.Yahoo");dojo.declare("GeoMOOSE.MapSource.Yahoo",[GeoMOOSE.MapSource],{_createOLLayer:function(_6ba){this._ol_layer_name="yahoo"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.Yahoo(this._ol_layer_name,_6ba);},constructor:function(_6bb){if(!GeoMOOSE.isDefined(window.YAHOO_MAP_REG)){var _6bc="Warning, this application has a Yahoo Maps layer defined in the mapbook, but the Yahoo Maps library has not been included.";GeoMOOSE.error(_6bc);this._ol_layer_name="yaho_error"+GeoMOOSE.id();this._ol_layer=this._createBlankLayer(this._ol_layer_name);return false;}var _6bd={visibility:this.isVisible(),sphericalMercator:true,isBaseLayer:false};var _6be={"map":YAHOO_MAP_REG,"hybrid":YAHOO_MAP_HYB,"satellite":YAHOO_MAP_SAT};var _6bf=_6bb.getAttribute("yahoo-type");var _6c0=_6be[_6bf];if(GeoMOOSE.isDefined(_6c0)){_6bd["type"]=_6c0;}this._createOLLayer(_6bd);this.onLayersChange();},onLayersChange:function(path,_6c1){this.inherited(arguments);this._ol_layer.redraw();}});GeoMOOSE.registerMapSourceType("yahoo",GeoMOOSE.MapSource.Yahoo);}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(_6c2){this._ol_layer_name="ags"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.ArcGIS93Rest(this._ol_layer_name,this.urls,this.params,_6c2);},printable:false});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(_6c3){this._set("readOnly",_6c3);dojo.attr(this.focusNode,"readOnly",_6c3);dijit.setWaiState(this.focusNode,"readonly",_6c3);},_setValueAttr:function(_6c4,_6c5){if(typeof _6c4=="string"){this._set("value",_6c4);dojo.attr(this.focusNode,"value",_6c4);_6c4=true;}if(this._created){this.set("checked",_6c4,_6c5);}},_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(_6c6){},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(_6c7){this.inherited(arguments);if(!this._created){return;}if(_6c7){var _6c8=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_6c9){if(_6c9.name==_6c8.name&&_6c9!=_6c8.focusNode&&_6c9.form==_6c8.focusNode.form){var _6ca=dijit.getEnclosingWidget(_6c9);if(_6ca&&_6ca.checked){_6ca.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 _6cb=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(_6cc,obj){var m=_6cc.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=[_6cb(m1,m2,H+1/3)*256,_6cb(m1,m2,H)*256,_6cb(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _6cd=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(_6cd(t.r,0,255));t.g=Math.round(_6cd(t.g,0,255));t.b=Math.round(_6cd(t.b,0,255));t.a=_6cd(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(_6ce,_6cf,_6d0){this._cells=[];var url=this._blankGif;_6d0=_6d0||dojo.getObject(this.dyeClass);for(var row=0;row<_6ce.length;row++){var _6d1=dojo.create("tr",{tabIndex:"-1"},this.gridNode);for(var col=0;col<_6ce[row].length;col++){var _6d2=_6ce[row][col];if(_6d2){var _6d3=new _6d0(_6d2,row,col);var _6d4=dojo.create("td",{"class":this.cellClass,tabIndex:"-1",title:_6cf[_6d2]});_6d3.fillCell(_6d4,url);this.connect(_6d4,"ondijitclick","_onCellClick");this._trackMouseState(_6d4,this.cellClass);dojo.place(_6d4,_6d1);_6d4.index=this._cells.length;this._cells.push({node:_6d4,dye:_6d3});}}}this._xDim=_6ce[0].length;this._yDim=_6ce.length;var _6d5={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1};for(var key in _6d5){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _6d6=_6d5[key];return function(_6d7){this._navigateByKey(_6d6,_6d7);};}(),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 _6d8=evt.currentTarget,_6d9=this._getDye(_6d8).getValue();this._setCurrent(_6d8);setTimeout(dojo.hitch(this,function(){dijit.focus(_6d8);this._setValueAttr(_6d9,true);}));dojo.removeClass(_6d8,"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(_6da,_6db){if(this._selectedCell>=0){dojo.removeClass(this._cells[this._selectedCell].node,"dijitPaletteCellSelected");}this._selectedCell=-1;if(_6da){for(var i=0;i<this._cells.length;i++){if(_6da==this._cells[i].dye.getValue()){this._selectedCell=i;dojo.addClass(this._cells[i].node,"dijitPaletteCellSelected");break;}}}this._set("value",this._selectedCell>=0?_6da:null);if(_6db||_6db===undefined){this.onChange(_6da);}},onChange:function(_6dc){},_navigateByKey:function(_6dd,_6de){if(_6de==-1){return;}var _6df=this._currentFocus.index+_6dd;if(_6df<this._cells.length&&_6df>-1){var _6e0=this._cells[_6df].node;this._setCurrent(_6e0);setTimeout(dojo.hitch(dijit,"focus",_6e0),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(_6e1,row,col){this._alias=_6e1;this._row=row;this._col=col;this.setColor(dojo.Color.named[_6e1]);},getValue:function(){return this.toHex();},fillCell:function(cell,_6e2){var html=dojo.string.substitute(this.hc?this.hcTemplate:this.template,{color:this.toHex(),blankGif:_6e2,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(_6e3,_6e4){this.input=_6e3;this.options={renderable:false,title:""};OpenLayers.Util.extend(this.options,_6e4||{});if(_6e3!=null){if(_6e3.getAttribute("value")){this.value=_6e3.getAttribute("value");}if(_6e3.childNodes.length>0){this.value=OpenLayers.Util.getXmlNodeValue(_6e3);}}},requiresRender:function(){return this.options.renderable;},setValue:function(_6e5){this.value=_6e5;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(_6e6){},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 _6e7=this.input.getAttribute("delim");if(!_6e7){_6e7=",";}return Map.getExtent().toArray().join(_6e7);}});GeoMOOSE.Services.InputType.VisibleLayers=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"visiblelayers",getValue:function(){var _6e8=this.input.getAttribute("delim");if(!_6e8){_6e8=":";}return GeoMOOSE.getVisibleLayers().join(_6e8);}});GeoMOOSE.Services.InputType.Sketches=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"sketches",getValue:function(){var _6e9=Map.getLayersByName("sketchlayer")[0];var wkt=new OpenLayers.Format.WKT();var _6ea=[];for(var i=0;i<_6e9.features.length;i++){var _6eb=_6e9.features[i];var _6ec={};_6ec["wkt"]=wkt.write(_6eb);for(var k in _6eb.attributes){_6ec[k]=_6eb.attributes[k];}_6ea.push(_6ec);}var json=new OpenLayers.Format.JSON();return json.write(_6ea);}});GeoMOOSE.Services.InputType.PrintInfo=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"print_info",getValue:function(){var _6ed=Application.mapSources;var _6ee=[];for(var src in _6ed){if(_6ed[src].printable&&_6ed[src].isVisible()){_6ee.push(_6ed[src].print());}}return dojo.toJson(_6ee);}});GeoMOOSE.Services.InputType.User=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"user",initialize:function(_6ef,_6f0){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;},updateServiceSetting:function(){this.input_obj.setValue(this.value);},keyCallService:function(_6f1){if(window.event){_6f1=window.event;}var _6f2=null;if(_6f1.which){_6f2=_6f1.which;}else{if(_6f1.keyCode){_6f2=_6f1.keyCode;}}if(_6f2==13){this.onchange();var _6f3=document.getElementById("submit-service");if(GeoMOOSE.isDefined(_6f3)){_6f3.onclick();}}},renderHTML:function(_6f4){var p=document.getElementById(_6f4);var _6f5=document.createElement("span");_6f5.className="service-input-parent";p.appendChild(_6f5);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 _6f6=document.createElement("span");_6f6.className="service-input-title";_6f5.appendChild(_6f6);_6f6.innerHTML=this.getTitle();_6f5.appendChild(i);}});GeoMOOSE.Services.InputType.Select=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"select",input:null,initialize:function(_6f7,_6f8){this.options={renderable:true,title:""};OpenLayers.Util.extend(this.options,_6f8||{});this.input=_6f7;},getValue:function(){if(this.input){return this.input.getAttribute("value");}return this.value;},getOptions:function(){var opts=this.input.getElementsByTagName("option");var _6f9=[];for(var i=0;i<opts.length;i++){_6f9.push({value:opts[i].getAttribute("value"),name:OpenLayers.Util.getXmlNodeValue(opts[i])});}return _6f9;},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(_6fa){var p=document.getElementById(_6fa);var _6fb=document.createElement("span");_6fb.className="service-input-parent";p.appendChild(_6fb);var _6fc=document.createElement("select");_6fc.input_obj=this;var _6fd=document.createElement("span");_6fd.className="service-input-title";_6fb.appendChild(_6fd);_6fd.innerHTML=this.getTitle();_6fb.appendChild(_6fc);var _6fe=this.getOptions();var _6ff=0;var val=this.getValue();for(var i=0;i<_6fe.length;i++){if(_6fe[i].value==val){_6ff=i;}var opt=document.createElement("option");opt.selected=false;opt.setAttribute("value",_6fe[i].value);_6fc.appendChild(opt);opt.appendChild(document.createTextNode(_6fe[i].name));}var _700=_6fc.getElementsByTagName("option")[_6ff];_700.selected=true;this.setValue(_700.value);_6fc.onchange=this.updateSettings;}});GeoMOOSE.Services.InputType.AjaxSelect=OpenLayers.Class(GeoMOOSE.Services.InputType.Select,{MAPBOOK_NAME:"ajax_select",options:[],got_opts_from_req:function(_701){var _702=[];var _703=_701.responseXML;var opts=_703.getElementsByTagName("option");for(var i=0;i<opts.length;i++){_702.push({value:opts[i].getAttribute("value"),name:OpenLayers.Util.getXmlNodeValue(opts[i])});}this.options=_702;},getOptions:function(){var url=this.input.getElementsByTagName("url")[0];url=OpenLayers.Util.getXmlNodeValue(url);var _704=new OpenLayers.Request.GET({url:url,async:false,success:OpenLayers.Function.bind(this.got_opts_from_req,this)});return this.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(_705,_706){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(_707){var p=document.getElementById(_707);var _708=document.createElement("span");_708.className="service-input-parent";p.appendChild(_708);var text=document.createElement("span");text.className="service-input-text";_708.appendChild(text);text.innerHTML=this.getValue();}});GeoMOOSE.Services.InputType.TextArea=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"textarea",renderHTML:function(_709){var p=document.getElementById(_709);var _70a=document.createElement("span");_70a.className="service-input-parent";p.appendChild(_70a);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 _70b=document.createElement("span");_70b.className="service-input-title";_70a.appendChild(_70b);_70b.innerHTML=this.getTitle();_70a.appendChild(i);}});GeoMOOSE.Services.InputType.Checkbox=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"checkbox",renderHTML:function(_70c){var p=document.getElementById(_70c);var _70d=document.createElement("span");_70d.className="service-input-parent";p.appendChild(_70d);var _70e=document.createElement("span");_70e.className="service-input-title";_70d.appendChild(_70e);_70e.innerHTML=this.getTitle();var i=dojo.create("input",{"type":"checkbox"},_70d);this._input=new dijit.form.CheckBox({"checked":parseBoolean(this.getValue())},i);dojo.connect(this._input,"onChange",dojo.hitch(this,this._setValue));},_setValue:function(_70f){this.setValue(_70f);}});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(_710){var p=dojo.byId(_710);var _711=dojo.create("span",{},p);dojo.addClass(_711,"service-input-parent");var _712=dojo.create("span",{innerHTML:this.getTitle()},_711);dojo.addClass(_712,"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},_711));},_setValue:function(_713){this.setValue(_713);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(_714,_715){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;this.units=CONFIGURATION.measure_tool.line_units;if(_714.getAttribute("units")){this.units=_714.getAttribute("units");}},renderHTML:function(_716){var p=dojo.byId(_716);var _717=dojo.create("span",{},p);dojo.addClass(_717,"service-input-parent");var _718=dojo.create("span",{innerHTML:this.getTitle()},_717);dojo.addClass(_718,"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",{},_717));dojo.style(this._textbox.domNode,{"width":"5em"});var _719=[];for(var i=0,ii=this.unit_order.length;i<ii;i++){var unit=this.unit_order[i];_719.push({"value":unit,"label":this.unit_labels[unit]});}this._select=new dijit.form.Select({onChange:dojo.hitch(this,this._setValue),options:_719,value:this.units},dojo.create("span",{},_717));},_setValue:function(_71a){var unit=this._select.get("value");var _71b=parseFloat(this._textbox.get("value"));this.input.setAttribute("units",unit);this.setValue(GeoMOOSE.convertLength(_71b,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);},constructor:function(){this.drawing_layer=new OpenLayers.Layer.Vector(GeoMOOSE.id());Map.addLayers([this.drawing_layer]);this.tools={};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);this.unique_name=GeoMOOSE.id();for(var t in this.tools){Map.addControl(this.tools[t]);}var _71c=["point","line","polygon","box"];for(var i=0;i<4;i++){this.tools[_71c[i]].events.register("featureadded",this,this._onFeatureAdded);}this.input_types={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _71d=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){this.input_types[_71d]=GeoMOOSE.Services.InputType[x];}}}},start:function(_71e,_71f){var _720=GeoMOOSE.id();var _721=dojo.create("div",{"id":_720});this.content.set("content",_721);this.removeChild(this.header);this.removeChild(this.footer);this._settingsObj=_71e;this._forceStart=_71f;var _722=this.service_xml.getElementsByTagName("step");var _723=0;var _724=_720;this.steps=[];var _725="service-"+this.unique_name;if(_722.length==0){var _726=_725+"0";var _727=dojo.create("div",{"id":_726},_721);_723+=this.renderInputStep(this.service_xml,_726,_71e);this.steps.push(_726);}else{for(var i=0;i<_722.length;i++){var _728=new String(_722[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=_725+i;_721.appendChild(div);this.steps.push(div.id);if(_728=="input"){_723+=this.renderInputStep(_722[i],div.id,_71e);}else{if(_728=="select"||_728=="spatial"){_723+=this.renderSpatialStep(_722[i],div.id,_71e);}}var _729=document.createElement("table");_729.width="95%";var _72a=document.createElement("tbody");div.appendChild(_729);_729.appendChild(_72a);var tr=document.createElement("tr");_72a.appendChild(tr);var left=document.createElement("td");left.align="left";tr.appendChild(left);var _72b=document.createElement("td");_72b.align="right";tr.appendChild(_72b);_72b.id=_725+"-right-"+i;if(i>0){var _72c=document.createElement("input");_72c.value="Back";_72c.type="button";left.appendChild(_72c);_72c.className="service-button-back";_72c.step=i-1;_72c.onclick=this._changeStep;}else{var _72d=document.createElement("input");_72d.type="button";_72d.value="Cancel";left.appendChild(_72d);_72d.className="service-button-back";dojo.connect(_72d,"onclick",dojo.hitch(this,this._closeMe));}if(i<_722.length-1){var _72e=document.createElement("button");_72e.innerHTML="Next";_72b.appendChild(_72e);_72e.className="service-button-next";_72e.parent=this;_72e.step=i+1;_72e.onclick=this._changeStep;}}_724=_725+"-right-"+(_722.length-1);}var _72f=this.service_xml.getAttribute("submit");if(!_72f){_72f="Go!";}if(parseBoolean(this.service_xml.getAttribute("display-submit"),true)&&parseBoolean(this.service_xml.getAttribute("display"),true)){var _730=document.createElement("button");_730.id="submit-service";_730.innerHTML=_72f;_730.onclick=dojo.hitch(this,function(){if(this.meetsRequirements()){this.callService();}else{alert(CONFIGURATION.messages.requirement_failure);}});var _731=document.getElementById(_724);_731.appendChild(_730);if(_723<=0||_71f){_730.onclick();}}else{if(_723<=0||_71f){this.callService();}}},meetsRequirements:function(){var _732=this.service_xml;var _733=_732.getElementsByTagName("input");var _734=true;for(var i=0;i<_733.length;i++){if(parseBoolean(_733[i].getAttribute("required"))){var v=_733[i].getAttribute("value");if(!(v&&v!="")){_734=false;}}}var _735=_732.getElementsByTagName("step");for(var i=0;i<_735.length;i++){if(parseBoolean(_735[i].getAttribute("required"))){var v=_735[i].getAttribute("wkt");if(!(v&&v!="")){_734=false;}}}return _734;},renderInputStep:function(step,_736,_737){var _738=step.getElementsByTagName("input");var _739=0;var _73a=step.getElementsByTagName("header");var p=document.getElementById(_736);for(var i=0;i<_73a.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-header";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_73a[i]);}var _73b=[];var _73c=[];for(var i=0;i<_738.length;i++){var _73d=new String(_738[i].getAttribute("type")).toLowerCase();if(this.input_types[_73d]){var _73e=new this.input_types[_73d](_738[i]);_73b.push(_73e);if(_73e.requiresRender()){_73c.push(_73e);_739++;}var name=_73e.getName();if(_737&&_737[name]){_73e.setValue(_737[name]);}}}for(var i=0;i<_73c.length;i++){_73c[i].renderHTML(_736);}var _73f=step.getElementsByTagName("footnote");var p=document.getElementById(_736);if(GeoMOOSE.isDefined(p)){for(var i=0;i<_73f.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-footnote";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_73f[i]);}var _738=p.getElementsByTagName("input");var _740=true;for(var i=0;i<_738.length&&_740;i++){if(_738[i].type!="hidden"&&_738[i].type!="radio"){_738[i].focus();_740=false;}}}return _739;},geotools:{"pan":{"status":true,"title":"Navigate"},"edit-polygon":{"status":false,"title":"Edit Polygon"},"point":{"status":true,"title":"Draw Point"},"line":{"status":true,"title":"Draw Line"},"polygon":{"status":true,"title":"Draw Polygon"},"box":{"status":false,"title":"Draw Box"}},renderSpatialStep:function(step,_741,_742){Map.setLayerIndex(this.drawing_layer,Map.getNumLayers());var wkt=false;var _743=false;if(_742&&_742[step.getAttribute("name")]){wkt=_742[step.getAttribute("name")];_743=true;}else{if(step.getAttribute("wkt")){wkt=step.getAttribute("wkt");if(!step.getAttribute("format")||step.getAttribute("format").toLowerCase()=="wkt"){_743=true;}}}var _744=new OpenLayers.Format.WKT();if(wkt){if(!this.drawing_layer.getVisibility()){this.drawing_layer.addFeatures(_744.read(wkt));}var _745=step.getElementsByTagName("input");var _746=false;for(var i=0;i<_745.length;i++){if(_745[i].getAttribute("name")==step.getAttribute("name")){_746=_745[i];}}if(_743){if(_746){step.removeChild(_746);}var _746=step.ownerDocument.createElement("input");_746.setAttribute("name",step.getAttribute("name"));_746.setAttribute("type","hidden");_746.appendChild(step.ownerDocument.createCDATASection(wkt));step.appendChild(_746);}}this.drawing_layer.setVisibility(true);if(parseBoolean(step.getAttribute("show-tools"),true)){var p=document.getElementById(_741);p.appendChild(document.createTextNode("Available Tools: "));p.appendChild(document.createElement("br"));var _747=GeoMOOSE.id();var _748={};var _749=null;for(var v in this.geotools){if(parseBoolean(step.getAttribute(v),this.geotools[v]["status"])){var _74a=dojo.create("div",{},p);var _74b=dojo.create("span",{},_74a);var _74c=dojo.create("span",{"innerHTML":this.geotools[v].title},_74a);if(!GeoMOOSE.isDefined(_749)&&v!="pan"){_749=v;}_748[v]=new dijit.form.RadioButton({"name":_747,"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();}}})},_74b);}}p.appendChild(document.createElement("br"));var _74d=step.getAttribute("default");if(GeoMOOSE.isDefined(_74d)&&GeoMOOSE.isDefined(_748[_74d])){_748[_74d].set("checked",true);}else{_748[_749].set("checked",true);}}else{if(step.getAttribute("default")){}else{alert(CONFIGURATION.messages.service_config_error);}}return 1+this.renderInputStep(step,_741,_742);},callService:function(_74e){var _74f=this.service_xml;var _750=_74f.getElementsByTagName("input");var url=OpenLayers.Util.getXmlNodeValue(_74f.getElementsByTagName("url")[0]);var _751={};for(var i=0;i<_750.length;i++){var _752=new String(_750[i].getAttribute("type")).toLowerCase();if(this.input_types[_752]){var _753=new this.input_types[_752](_750[i]);var _754=_753.getName();var _755=_753.getValue();if(_74e&&_74e[_754]){_755=_74e[_754];}_751[_754]=escape(_755);}}this.lastServiceParams=_751;this.onStart();if(_74f.getAttribute("target")=="_blank"){dijit.byId("tabs").closeChild(GeoMOOSE.getTab(this.name));var _756="";for(var p in _751){_756+="&"+p+"="+_751[p];}window.open(url+"?"+_756);}else{this.query=dojo.xhrPost({"url":url,"preventCache":true,"content":_751,"load":dojo.hitch(this,this.onServiceReturn),"error":dojo.hitch(this,this.onServiceError),"handleAs":"xml"});}this.onFinish();},onServiceError:function(_757){GeoMOOSE.error("Error Calling the server:\n"+_757);},onServiceReturn:function(_758){var xml=new OpenLayers.Format.XML();var html="";if(!GeoMOOSE.isDefined(_758)){html=CONFIGURATION.messages.service_return_error;}else{var _759=_758.getElementsByTagName("script");var js="";for(var s=0;s<_759.length;s++){js+=xml.concatChildValues(_759[s]);}if(_759.length>0){eval(js);}var _75a=_758.getElementsByTagName("html");for(var h=0;h<_75a.length;h++){html+=xml.concatChildValues(_75a[h]);}var _75b=_758.getElementsByTagName("popup");for(var p=0;p<_75b.length;p++){var pp=_75b[p];}}if(!GeoMOOSE.isDefined(this.domNode.parentNode)){return false;}if(html!=""){if(!this._isJumpStart){this.disableTools();}this.addChild(this.header);var _75c=dojo.create("div",{innerHTML:"Back to Settings"});var _75d=dojo.create("span",{},_75c,"first");this.header.set("content",_75c);dojo.addClass(_75d,["dijitIcon","sprite-control","sprite-control-previous"]);dojo.style(_75d,{"vertical-align":"middle","height":"16px"});dojo.style(_75c,{"cursor":"pointer","fontSize":"1.1em","textDecoration":"underline"});dojo.connect(_75c,"onclick",dojo.hitch(this,this.toBeginning));this.content.set("content",html);this.resize();dijit.byId("tabs").selectChild(this);}else{}if(GeoMOOSE.isDefined(_758)){this.renderReturnFooter(_758);}},renderReturnFooter:function(_75e){var xml=new OpenLayers.Format.XML();var _75f=_75e.getElementsByTagName("footer");var _760="";for(var i=0,ii=_75f.length;i<ii;i++){_760+=xml.concatChildValues(_75f[i]);}if(_760!=""){this.addChild(this.footer);this.footer.set("content",_760);this.resize();}},disableTools:function(){for(var t in this.tools){if(this.tools[t].deactivate()){this._lastTool=t;}}},restoreTools:function(){if(GeoMOOSE.isDefined(this._lastTool)){this.tools[this._lastTool].activate();}},onStart:function(){this.content.set("content",CONFIGURATION.waiting_html);},onFinish:function(){},_onFeatureAdded:function(_761){while(this.drawing_layer.features.length>0){this.drawing_layer.removeFeatures(this.drawing_layer.features[0]);}this.drawing_layer.addFeatures([_761.feature],{silent:true});var _762=new OpenLayers.Format.WKT();var wkt=_762.write(_761.feature);var step=null;var _763=this.service_xml.getElementsByTagName("step");for(var i=0,_764=_763.length;i<_764;i++){if(_763[i].getAttribute("type")=="spatial"){step=_763[i];}}step.setAttribute("wkt",wkt);var _765=OpenLayers.Format.WKT;var _766=new String(step.getAttribute("format")).toLowerCase();if(_766=="kml"){_765=OpenLayers.Format.KML;}else{if(_766=="wfs"){_765=OpenLayers.Format.WFS;}else{if(_766=="json"){_765=OpenLayers.Format.JSON;}else{if(_766=="delim"){_765=OpenLayers.Format.Text;var _767=step.getAttribute("delim");var _768=step.getAttribute("point-delim");if(!_767){_767=",";}if(!_768){_768=",";}var _769=function(g){var _76a=[];if(g.components){for(var i=0;i<g.components.length;i++){if(g.components[i] instanceof OpenLayers.Geometry.Point){_76a+=g.components[i];}else{if(g.components){this(g);}}}}else{if(g instanceof OpenLayers.Geometry.Point){return [g];}}return _76a;};_765=function(){this.write=function(f){var _76b=_769(f.geometry);for(var i=0;i<_76b.length;i++){_76b[i]=_76b[i].x+_767+_76b[i].y;}return _76b.join(_768);};};}}}}var _76c=new _765();var _76d=step.getElementsByTagName("input");var _76e=step.getAttribute("name");for(var i=0,len=_76d.length;i<len;i++){if(_76d[i].getAttribute("name")==_76e){step.removeChild(_76d[i]);}}if(GeoMOOSE.isDefined(step.getAttribute("reproject"))){var _76f=step.getAttribute("reproject");if(_76f=="EPSG:4326"||_76f=="WGS84"){dest_proj=new OpenLayers.Projection("EPSG:4326");}else{dest_proj=OpenLayers.Projection(_76f);}_761.feature.geometry=OpenLayers.Projection.transform(_761.feature.geometry,Map.getProjectionObject(),dest_proj);}var doc=this.service_xml.ownerDocument;var _770=doc.createElement("input");_770.setAttribute("name",_76e);_770.setAttribute("type","hidden");_770.appendChild(doc.createCDATASection(_76c.write(_761.feature)));step.appendChild(_770);if(parseBoolean(step.getAttribute("jump-start"),false)){this._isJumpStart=true;this.callService();}else{this._isJumpStart=false;}},onClose:function(){for(var t in this.tools){this.tools[t].deactivate();Map.removeControl(this.tools[t]);delete this.tools[t];}if(GeoMOOSE.isDefined(this.drawing_layer)){Map.removeLayer(this.drawing_layer);this.drawing_layer=null;}var _771=this.inherited(arguments);if(this.header){this.header.destroyRecursive();}if(this.footer){this.footer.destroyRecursive();}return _771;},onHide:function(){this.inherited(arguments);this.disableTools();},onShow:function(){this.inherited(arguments);this.restoreTools();},_closeMe:function(){dijit.byId("tabs").closeChild(this);},_changeStep:function(){this.parent.changeStep(this.step);},changeStep:function(step){var _772=document.getElementById(this.steps[step]);var _773=this.content.domNode.getElementsByTagName("div");for(var i=0;i<_773.length;i++){if(_773[i].className=="service-step-visible"){_773[i].className="service-step-hidden";}}_772.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:"",constructor:function(_774,_775,_776){var p=dojo.byId(_774);var _777=_775.getAttribute("title");var tip=_775.getAttribute("tip");this.title=_777;var _778=dojo.create("div",{title:tip},p);this.div=_778;var _779=dojo.create("div",{},_778);this.checkbox_id=GeoMOOSE.id();var _77a=dojo.create("span",{"id":this.checkbox_id},_779);this.paths={};var src=_775.getAttribute("src");this.src=src;if(GeoMOOSE.isDefined(src)){var _77b=src.split(":");for(var i=0;i<_77b.length;i++){this.paths[_77b[i]]=false;}}var _77c=dijit.form.CheckBox;if(_776===false){var _77c=dijit.form.RadioButton;}var cbox=new _77c({},_77a);dojo.connect(cbox,"onChange",dojo.hitch(this,function(v){var _77d=[];for(var src in this.paths){this.paths[src]=v;_77d.push(src);}GeoMOOSE.changeLayerVisibility(_77d,v);}));var _777=dojo.create("span",{"innerHTML":_777},_779);var _77e=dojo.create("div",{},_778);for(var i=0;i<CONFIGURATION.layer_control_order.length;i++){var _77f=CONFIGURATION.layer_control_order[i];var _780=parseBoolean(_775.getAttribute(_77f),CONFIGURATION.layer_controls[_77f].on);if(_780){var _781=GeoMOOSE._getLayerControl(_77f);if(GeoMOOSE.isDefined(_781)){var _782=new _781({layer:this});_782.draw(_77e);}}}var _783=parseBoolean(_775.getAttribute("drawing"),false);if(_783){if(!GeoMOOSE.isDefined(src)){GeoMOOSE.warning("Cannot draw on this layer, the SRC is not defined.");}else{if(GeoMOOSE.isEditable(src)){}else{GeoMOOSE.warning("Drawing tool will not work on layer \""+src+"\", it is not an editable map source type.");}}}this.legends_id=GeoMOOSE.id();var _784=dojo.create("div",{"id":this.legends_id},_778);dojo.addClass(_784,["catalog_legend_container"]);var _785=parseBoolean(_775.getAttribute("show-legend"),true);if(!_785){dojo.style(_784,{"height":"auto","display":"none"});}var _786=_775.getElementsByTagName("legend");this.dynamic_legends=(_786.length<=0);for(var i=0,len=_786.length;i<len;i++){dojo.create("img",{"src":OpenLayers.Util.getXmlNodeValue(_786[i])},_784);}this.metadata_url="";var _787=_775.getElementsByTagName("metadata");if(_787.length>0){this.metadata_url=OpenLayers.Util.getXmlNodeValue(_787[0]);}p=null;},activateMapSource:function(_788){var _789=false;for(var p in this.paths){if(_788==p){_789=true;break;}}if(_789){dojo.addClass(this.div,"catalog-active-map-source");}else{dojo.removeClass(this.div,"catalog-active-map-source");}},updateListing:function(_78a,_78b){this.active_paths=[];var _78c=false;for(var i=0;i<_78a.length;i++){if(typeof (this.paths[_78a[i]])=="boolean"){this.paths[_78a[i]]=_78b;_78c=true;}}for(var path in this.paths){if(this.paths[path]===true){this.active_paths.push(path);}}var _78d=dijit.byId(this.checkbox_id);if(_78c){_78d.set("checked",_78b);}if(this.dynamic_legends&&_78c){var _78e=dojo.byId(this.legends_id);while(_78e.firstChild){_78e.removeChild(_78e.firstChild);}var _78f=GeoMOOSE.getLegendUrls(this.active_paths);for(var i=0;i<_78f.length;i++){var _790=dojo.create("img",{"src":_78f[i]},_78e);dojo.addClass(_790,["catalog-legend-image"]);}}}});dojo.declare("GeoMOOSE.Tab.Catalog",[GeoMOOSE.Tab],{targetId:"catalog",title:"Catalog",mapbook:null,catalog_layers:null,startup:function(){this.inherited(arguments);var _791=GeoMOOSE.id();this.main_id=_791;var main=dojo.create("div",{"id":_791});this.set("content",main);this.catalog_layers=new Array();this.set("title",CONFIGURATION["catalog_name"]);},renderLayer:function(_792,_793,_794){var _795=parseBoolean(_793.parentNode.getAttribute("multiple"),true);var _796=new GeoMOOSE.Tab._CatalogLayer(_792,_793,_795);this.catalog_layers.push(_796);},_hideGroup:function(id){var _797=dojo.byId(id);var _798={"node":id};if(CONFIGURATION.flashy_bits){dojo.fx.wipeOut(_798).play();}else{_797.style.display="none";}},_showGroup:function(id){var _799=dojo.byId(id);var _79a={"node":id};if(CONFIGURATION.flashy_bits){dojo.fx.wipeIn(_79a).play();}else{_799.style.display="block";}},toggleGroup:function(){var _79b=dojo.byId(this.children_id);if(_79b.style.display!="none"){this._hideGroup(this.children_id);}else{this._showGroup(this.children_id);}},renderGroup:function(_79c,_79d){var p=document.getElementById(_79c);var ul=document.createElement("ul");ul.className="catalog";var _79e=GeoMOOSE.id();if(_79d.getAttribute("title")){var li=document.createElement("li");p.appendChild(li);var _79f=dojo.create("div",{"innerHTML":_79d.getAttribute("title")},li);dojo.addClass(_79f,["catalog-group"]);_79f._hideGroup=this._hideGroup;_79f._showGroup=this._showGroup;_79f.onclick=this.toggleGroup;li.className="catalog-group";var _7a0=dojo.create("div",{"id":_79e},li);_79f.children_id=_79e;if(!parseBoolean(_79d.getAttribute("expand"),true)){this._hideGroup(_79e);}li=null;}else{ul.className+=" catalog-group-expanded";ul.id=_79e;}p.appendChild(ul);var args=GeoMOOSE.getUrlParameters();var _7a1={};if(args.on){var _7a2=new String(args.on).split(";");for(var i=0;i<_7a2.length;i++){_7a1[_7a2[i]]="on";}}if(args.off){var _7a3=new String(args.off).split(";");for(var i=0;i<_7a3.length;i++){_7a1[_7a3[i]]="off";}}for(var i=0;i<_79d.childNodes.length;i++){var _7a4=_79d.childNodes[i].tagName;if(_7a4){if(_7a4=="group"){this.renderGroup(_79e,_79d.childNodes[i]);}else{if(_7a4=="layer"){this.renderLayer(_79e,_79d.childNodes[i],_7a1);}}}}ul=null;p=null;},onLayersChange:function(path,vis){if(this.catalog_layers&&this.catalog_layers.length>0){this.updateListing(path,vis);}},updateListing:function(_7a5,_7a6){var _7a7=GeoMOOSE.asArray(_7a5);if(typeof (_7a6)=="undefined"){_7a6=true;}for(var i=0,len=this.catalog_layers.length;i<len;i++){this.catalog_layers[i].updateListing(_7a7,_7a6);}},onActivateMapSource:function(_7a8){for(var i=0,len=this.catalog_layers.length;i<len;i++){this.catalog_layers[i].activateMapSource(_7a8);}},onGotMapbook:function(_7a9){this.mapbook=_7a9;var _7aa=this.mapbook.getElementsByTagName("catalog")[0];this.renderGroup(this.main_id,_7aa);this.updateListing(GeoMOOSE.getVisibleLayers());}});}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(_7ab){this.control_id=GeoMOOSE.id();var _7ac=dojo.create("div",{"id":this.control_id},_7ab);dojo.addClass(_7ac,"sprite-control");dojo.addClass(_7ac,this.classes);dojo.connect(_7ac,"onclick",dojo.hitch(this,this.onClick));if(this.tip!=""){var _7ad=dojo.string.substitute(eval(this.tip),{"layer":this.layer.title});_7ac.title=_7ad;}_7ac=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.provide("GeoMOOSE.Tab.Catalog.LayerControl.Unfade");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.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",onClick:function(){for(var path in this.layer.paths){GeoMOOSE.moveLayerUp(path);}}});dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Down",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-down"],tip:"CONFIGURATION.layer_controls.down.tip",onClick:function(){for(var path in this.layer.paths){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 _7ae=dojo.byId(this.layer.legends_id);var _7af={"node":this.layer.legends_id};if(_7ae.style.display!="none"){if(CONFIGURATION.flashy_bits){dojo.fx.wipeOut(_7af).play();}else{_7ae.style.display="none";}}else{if(CONFIGURATION.flashy_bits){dojo.fx.wipeIn(_7af).play();}else{_7ae.style.display="block";}}}});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.metadata_url!=""){window.open(this.layer.metadata_url);}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.ServiceManager"]){dojo._hasResource["GeoMOOSE.ServiceManager"]=true;dojo.provide("GeoMOOSE.ServiceManager");window.ServiceManager=function(_7b0,_7b1){var _7b2=this;var _7b3=false;function _7b4(_7b5){var _7b6=_7b0.getElementsByTagName("service");for(var i=0;i<_7b6.length;i++){if(_7b6[i].getAttribute("name")==_7b5){return _7b6[i];}}return null;};var _7b7={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _7b8=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){_7b7[_7b8]=GeoMOOSE.Services.InputType[x];}}}function _7b9(step,_7ba,_7bb){var _7bc=step.getElementsByTagName("input");var _7bd=0;var _7be=step.getElementsByTagName("header");var p=document.getElementById(_7ba);for(var i=0;i<_7be.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-header";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_7be[i]);}var _7bf=[];var _7c0=[];for(var i=0;i<_7bc.length;i++){var _7c1=new String(_7bc[i].getAttribute("type")).toLowerCase();if(_7b7[_7c1]){var _7c2=new _7b7[_7c1](_7bc[i]);_7bf.push(_7c2);if(_7c2.requiresRender()){_7c0.push(_7c2);_7bd++;}var name=_7c2.getName();if(_7bb&&_7bb[name]){_7c2.setValue(_7bb[name]);}}}for(var i=0;i<_7c0.length;i++){_7c0[i].renderHTML(_7ba);}var _7c3=step.getElementsByTagName("footnote");var p=document.getElementById(_7ba);for(var i=0;i<_7c3.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-footnote";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_7c3[i]);}var _7bc=p.getElementsByTagName("input");var _7c4=true;for(var i=0;i<_7bc.length&&_7c4;i++){if(_7bc[i].type!="hidden"&&_7bc[i].type!="radio"){_7bc[i].focus();_7c4=false;}}return _7bd;};function _7c5(f){while(this.layer.features.length>0){this.layer.removeFeatures(this.layer.features[0]);}this.layer.addFeatures(f);var _7c6=new OpenLayers.Format.WKT();var str=_7c6.write(f);this.xml.setAttribute("wkt",str);var _7c7=OpenLayers.Format.WKT;var _7c8=new String(this.xml.getAttribute("format")).toLowerCase();if(_7c8=="kml"){_7c7=OpenLayers.Format.KML;}else{if(_7c8=="wfs"){_7c7=OpenLayers.Format.WFS;}else{if(_7c8=="json"){_7c7=OpenLayers.Format.JSON;}else{if(_7c8=="delim"){_7c7=OpenLayers.Format.Text;var _7c9=this.xml.getAttribute("delim");var _7ca=this.xml.getAttribute("point-delim");if(!_7c9){_7c9=",";}if(!_7ca){_7ca=",";}var _7cb=function(g){var _7cc=[];if(g.components){for(var i=0;i<g.components.length;i++){if(g.components[i] instanceof OpenLayers.Geometry.Point){_7cc+=g.components[i];}else{if(g.components){this(g);}}}}else{if(g instanceof OpenLayers.Geometry.Point){return [g];}}return _7cc;};_7c7=function(){this.write=function(f){var _7cd=_7cb(f.geometry);for(var i=0;i<_7cd.length;i++){_7cd[i]=_7cd[i].x+_7c9+_7cd[i].y;}return _7cd.join(_7ca);};};}}}}var _7ce=new _7c7();var _7cf=this.xml.getElementsByTagName("input");var _7d0=this.xml.getAttribute("name");for(var i=0;i<_7cf.length;i++){if(_7cf[i].getAttribute("name")==_7d0){this.xml.removeChild(_7cf[i]);}}if(this.xml.getAttribute("reproject")){var _7d1=this.xml.getAttribute("reproject");if(_7d1=="EPSG:4326"||_7d1=="WGS84"){dest_proj=LatLongProjection;}else{dest_proj=OpenLayers.Projection(_7d1);}OpenLayers.Projection.transform(f.geometry,Map.getProjectionObject(),dest_proj);}var _7d2=_7b0.createElement("input");_7d2.setAttribute("name",_7d0);_7d2.setAttribute("type","hidden");_7d2.appendChild(_7b0.createCDATASection(_7ce.write(f)));this.xml.appendChild(_7d2);if(parseBoolean(this.xml.getAttribute("jump-start"),false)){_7b2.callService(this.xml.parentNode.getAttribute("name"));}else{if(_7b3){_7b2.startService(this.xml.parentNode.getAttribute("name"),{},false);}}};function _7d3(tool,xml){for(var t in _7b2.tools){_7b2.tools[t].deactivate();}if(GeoMOOSE.isDefined(_7b2.tools[tool])){_7b2.tools[tool].activate();if(_7b2.tools[tool].featureAdded){_7b2.tools[tool].featureAdded=_7c5;}else{_7b2.tools[tool].onModificationEnd=_7c5;}_7b2.tools[tool].xml=xml;}else{alert(GeoMOOSE.processTemplate(CONFIGURATION.messages.invalid_tool,{"TOOL":tool}));}};function _7d4(){if(this.type=="radio"){var _7d5=this.parentNode.getElementsByTagName("input");for(var i=0;i<_7d5.length;i++){if(_7d5[i].name==this.name){_7d5[i].checked=false;}}this.checked=true;}if(this.value){_7d3(this.value,this.xml);}};function _7d6(step,_7d7,_7d8){Map.setLayerIndex(_7b2.drawing_layer,Map.getNumLayers());_7b2.drawing_layer.setVisibility(true);var wkt=false;var _7d9=false;if(_7d8&&_7d8[step.getAttribute("name")]){wkt=_7d8[step.getAttribute("name")];_7d9=true;}else{if(step.getAttribute("wkt")){wkt=step.getAttribute("wkt");if(!step.getAttribute("format")||step.getAttribute("format").toLowerCase()=="wkt"){_7d9=true;}}}var _7da=new OpenLayers.Format.WKT();if(wkt){this.drawing_layer.addFeatures(_7da.read(wkt));var _7db=step.getElementsByTagName("input");var _7dc=false;for(var i=0;i<_7db.length;i++){if(_7db[i].getAttribute("name")==step.getAttribute("name")){_7dc=_7db[i];}}if(_7d9){if(_7dc){step.removeChild(_7dc);}var _7dc=_7b0.createElement("input");_7dc.setAttribute("name",step.getAttribute("name"));_7dc.setAttribute("type","hidden");_7dc.appendChild(_7b0.createCDATASection(wkt));step.appendChild(_7dc);}}var _7dd={"pan":{"status":true,"title":"Navigate"},"edit-polygon":{"status":false,"title":"Edit Polygon"},"point":{"status":true,"title":"Draw Point"},"line":{"status":true,"title":"Draw Line"},"polygon":{"status":true,"title":"Draw Polygon"},"box":{"status":false,"title":"Draw Box"}};if(parseBoolean(step.getAttribute("show-tools"),true)){var p=document.getElementById(_7d7);p.appendChild(document.createTextNode("Available Tools: "));p.appendChild(document.createElement("br"));for(var v in _7dd){if(parseBoolean(step.getAttribute(v),_7dd[v]["status"])){var _7de=document.createElement("input");_7de.name="drawing-tools";_7de.type="radio";_7de.value=v;_7de.onclick=_7d4;_7de.xml=step;p.appendChild(_7de);p.appendChild(document.createTextNode(_7dd[v].title));p.appendChild(document.createElement("br"));}}p.appendChild(document.createElement("br"));if(step.getAttribute("default")){var def=step.getAttribute("default");var _7db=p.getElementsByTagName("input");for(var _7dc=0;_7dc<_7db.length;_7dc++){if(_7db[_7dc].name=="drawing-tools"&&_7db[_7dc].value==def){_7db[_7dc].onclick();}}}}else{if(step.getAttribute("default")){_7d3(step.getAttribute("default"),step);}else{alert(CONFIGURATION.messages.service_config_error);}}return 1+_7b9(step,_7d7,_7d8);};this.onStart=function(_7df){};this.onFinish=function(){};function _7e0(){var _7e1=document.getElementById(this.step);var _7e2=document.getElementsByTagName("div");for(var i=0;i<_7e2.length;i++){if(_7e2[i].className=="service-step-visible"){_7e2[i].className="service-step-hidden";}}_7e1.className="service-step-visible";_7e3();};function _7e3(){for(var t in this.tools){this.tools[t].deactivate();}this.drawing_layer.setVisibility(false);var _7e4=this.drawing_layer;while(_7e4.features.length>0){_7e4.removeFeatures(_7e4.features[0]);}};function _7e5(){var p=document.getElementById(_7b1);p.innerHTML="";_7e3();Tabs.showTab(CONFIGURATION.default_tab);};this.startService=function(_7e6,_7e7,_7e8){var _7e9=_7b4(_7e6);if(!GeoMOOSE.isDefined(this.service_tabs)){this.service_tabs=[];}if(_7e9){_7b3=false;this.onStart(_7e9);var _7ea=_7e9.getAttribute("title");if(!GeoMOOSE.isDefined(_7ea)){_7ea=_7e6;}var _7eb=GeoMOOSE.getTab(_7e6);var _7ec=GeoMOOSE.id();var p=dojo.create("div",{"id":_7ec});if(GeoMOOSE.isDefined(_7eb)){GeoMOOSE.changeTab(_7e6);}else{if(!parseBoolean(_7e9.getAttribute("keep-others"),false)){while(this.service_tabs.length>0){var _7ed=this.service_tabs.pop();GeoMOOSE.closeTab(_7ed);}}_7eb=new GeoMOOSE.Tab.Service({"title":_7ea,"closable":true,"name":_7e6,"service_xml":_7e9});dojo.connect(_7eb,"onServiceReturn",dojo.hitch(_7eb,this.onServiceReturn));if(parseBoolean(_7e9.getAttribute("display"),true)){this.service_tabs.push(_7e6);GeoMOOSE.addTab(_7e6,_7eb);}}if(parseBoolean(_7e9.getAttribute("display"),true)){dijit.byId("tabs").selectChild(_7eb);}_7eb.start(_7e7,_7e8);}},this.onServiceReturn=function(_7ee){};};}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,doStyle:function(){var _7ef=this.tool_xml.getAttribute("icon-class");if(_7ef){this.iconClass=_7ef;}else{this.iconClass="sprite-control sprite-control-"+this.name;}},constructor:function(){dojo.mixin(this,arguments[0]);this.name=this.tool_xml.getAttribute("name");var _7f0=this.tool_xml.getAttribute("title");var _7f1=parseBoolean(this.tool_xml.getAttribute("show-label"),CONFIGURATION.toolbar.show_labels);if(_7f1){this.label=_7f0;}this.title=_7f0;this.doStyle();this.cursor_css="default";if(GeoMOOSE.isDefined(CONFIGURATION.cursor[this.name])){this.cursor_css=CONFIGURATION.cursor[this.name];}else{if(GeoMOOSE.isDefined(this.tool_xml.getAttribute("cursor"))){this.cursor_css=this.tool_xml.getAttribute("cursor");}}},changeCursor:function(){dojo.style(dojo.byId("mapContainer"),{"cursor":this.cursor_css});}});dojo.declare("GeoMOOSE.Tool",[GeoMOOSE._Tool,dijit.form.ToggleButton],{selectable:true,onClick:function(){if(!this.get("checked")){this.set("checked",true);}else{this.inherited(arguments);}this.changeCursor();}});dojo.declare("GeoMOOSE.UnselectableTool",[GeoMOOSE._Tool,dijit.form.Button],{selectable:false});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);this.changeCursor();}});dojo.declare("GeoMOOSE.UnselectableToolMenu",[GeoMOOSE._Tool,dijit.MenuItem],{selectable:false});}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 _7f2 in this.parent.tools){var tool=this.parent.tools[_7f2];if(tool!=this){tool.set("checked",false);}}},_deactivateTools:function(){for(var _7f3 in Tools){Tools[_7f3].deactivate();}},_internalToolAction:function(){if(GeoMOOSE.isDefined(Tools[this.action])){if(this.selectable){this._deactivateTools();}Tools[this.action].activate();}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(){var _7f4=GeoMOOSE.getActiveMapSource();if(!GeoMOOSE.isDefined(_7f4)){GeoMOOSE.error("There is no actively selected layer.  Please activate a layer from the catalog.");}else{var _7f5=this.parent.application.getMapSource(this.parent.activeMapSource);if(_7f5.supports[this.action]===true){if(this.selectable){this._deactivateTools();}_7f5.controls[this.action].activate();}else{GeoMOOSE.error("The current active layer does not support your selected action.");}}},_addTool:function(_7f6,_7f7,_7f8){var _7f9=_7f7.getAttribute("type");var name=_7f7.getAttribute("name");var _7fa=parseBoolean(_7f7.getAttribute("selectable"),true);var tool=null;if(_7f8===true){if(_7fa){tool=new GeoMOOSE.ToolMenu({"tool_xml":_7f7,"parent":this});dojo.connect(tool,"onClick",this.untoggleOthers);}else{tool=new GeoMOOSE.UnselectableToolMenu({"tool_xml":_7f7,"parent":this});}}else{if(_7fa){tool=new GeoMOOSE.Tool({"tool_xml":_7f7,"parent":this});dojo.connect(tool,"onClick",this.untoggleOthers);}else{tool=new GeoMOOSE.UnselectableTool({"tool_xml":_7f7,"parent":this});}}if(tool!=null){if(_7f9=="internal"){tool.action=_7f7.getAttribute("action");dojo.connect(tool,"onClick",this._internalToolAction);}else{if(_7f9=="service"){tool.service_name=_7f7.getAttribute("service");dojo.connect(tool,"onClick",this._serviceToolAction);}else{if(_7f9=="javascript"){tool.stuff_to_do=OpenLayers.Util.getXmlNodeValue(_7f7);dojo.connect(tool,"onClick",this._javascriptToolAction);}else{if(_7f9=="layer"){tool.action=_7f7.getAttribute("action");dojo.connect(tool,"onClick",this._layerToolAction);}}}}tool._deactivateTools=this._deactivateTools;this.parent=this;this.tools[name]=tool;_7f6.addChild(tool);}},onMapbookLoaded:function(_7fb){var _7fc=_7fb.getElementsByTagName("toolbar")[0];this.tools={};for(var i=0,len=_7fc.childNodes.length;i<len;i++){var node=_7fc.childNodes[i];if(node.tagName&&node.tagName=="tool"){this._addTool(this,node);}else{if(node.tagName&&node.tagName=="drawer"){var _7fd=node.getAttribute("icon-class");if(!GeoMOOSE.isDefined(_7fd)){_7fd="spite-control sprite-control-down";}var _7fe="";var _7ff=parseBoolean(node.getAttribute("show-label"),CONFIGURATION.toolbar.show_labels);if(_7ff){_7fe=node.getAttribute("title");}var _800=new dijit.Menu();var _801=new dijit.form.DropDownButton({"label":_7fe,"iconClass":_7fd,"dropDown":_800});this.addChild(_801);var _802=node.getElementsByTagName("tool");for(var t=0,tt=_802.length;t<tt;t++){this._addTool(_800,_802[t],true);}}}}this.layout.resize();},activeMapSource:null,onActivateMapSource:function(_803){this.activeMapSource=_803;}});}if(!dojo._hasResource["GeoMOOSE.Layout.Default"]){dojo._hasResource["GeoMOOSE.Layout.Default"]=true;dojo.provide("GeoMOOSE.Layout.Default");dojo.declare("GeoMOOSE.Layout.Default",null,{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 _804=new dijit.layout.BorderContainer({"region":"center","liveSplitters":false,"gutters":false},dojo.byId("middle"));main.addChild(_804);_804.startup();_804.addChild(new dijit.layout.ContentPane({"region":"center"},dojo.byId("map")));var _805=new dijit.layout.BorderContainer({"gutters":false,"region":CONFIGURATION.control_panel_side,"splitter":true},dojo.byId("control-panel"));_804.addChild(_805);_805.addChild(new dijit.layout.TabContainer({"region":"center"},dojo.byId("tabs")));},resize:function(){dijit.byId("main").resize();},switchPanelSides:function(_806){var _807=dijit.byId("middle");var _808=dijit.byId("control-panel");_807.removeChild(_808);_808.set("region",_806);_807.addChild(_808);this.resize();},updatePanelSides:function(){this.switchPanelSides(CONFIGURATION.control_panel_side);}});}if(!dojo._hasResource["GeoMOOSE.USNG"]){dojo._hasResource["GeoMOOSE.USNG"]=true;dojo.provide("GeoMOOSE.USNG");window.UTM=function(){var _809=6378137;var _80a=6356752.3;var Ecc=(_809*_809-_80a*_80a)/(_809*_809);var Ecc2=Ecc/(1-Ecc);var K0=0.9996;var E4=Ecc*Ecc;var E6=Ecc*E4;var _80b=Math.PI/180;function _80c(lat){var c1=_809*(1-Ecc/4-3*E4/64-5*E6/256);var c2=-_809*(3*Ecc/8+3*E4/32+45*E6/1024);var c3=_809*(15*E4/256+45*E6/1024);var c4=-_809*35*E6/3072;return (c1*lat+c2*Math.sin(lat*2)+c3*Math.sin(lat*4)+c4*Math.sin(lat*6));};this.fromLatLong=function(zone,_80d){var utm=new OpenLayers.Geometry.Point();var _80e=-((30-zone)*6+3)*_80b;var lat=_80d.y*_80b;var lon=_80d.x*_80b;var _80f=Math.sin(lat);var _810=Math.cos(lat);var _811=_80f/_810;var _812=_811*_811;var _813=_812*_812;var N=_809/Math.sqrt(1-Ecc*(_80f*_80f));var c=Ecc2*_810*_810;var a=_810*(lon-_80e);var m=_80c(lat);var _814=1-_812+c;var _815=5-18*_812+_813+72*c-58*Ecc2;var _816=Math.pow(a,5);utm.x=K0*N*(a+(_814*Math.pow(a,3))/6+_815*_816/120)+500000;var _817=(5-_812+9*c+4*(c*c))*Math.pow(a,4)/24;var _818=61-58*_812+_813+600*c-330*Ecc2;var _819=_816*a/720;utm.y=K0*(m+N*_811*((a*a)/2+_817+_818*_819));return (utm);};function CSq(_81a){return _81a*_81a;};this.toLatLong=function(zone,utm){var _81b=new Point();var _81c=-((30-zone)*6+3)*_80b;var _81d=Math.sqrt(1-Ecc);var ecc1=(1-_81d)/(1+_81d);var _81e=ecc1*ecc1;var _81f=ecc1*_81e;var _820=_81e*_81e;utm.x=utm.x-500000;var m=utm.y/K0;var um=m/(_809*(1-(Ecc/4)-3*(E4/64)-5*(E6/256)));var _821=(1.5*ecc1)-(27/32)*_81f;var _822=((21/16)*_81e)-((55/32)*_820);var _823=um+_821*Math.sin(2*um)+_822*Math.sin(4*um)+(151*_81f/96)*Math.sin(6*um);var _824=Math.sin(_823);var _825=Math.cos(_823);var _826=_824/_825;var n1=_809/Math.sqrt(1-Ecc*CSq(_824));var t2=CSq(_826);var c1=Ecc2*CSq(_825);var _827=(1-Ecc*CSq(_824));var r1=_809*(1-Ecc)/Math.sqrt(CSq(_827)*_827);var d1=utm.x/(n1*K0);var d2=CSq(d1);var d3=d1*d2;var d4=CSq(d2);var d5=d1*d4;var d6=CSq(d3);var t12=CSq(t2);var c12=CSq(c1);_81d=n1*_826/r1;temp2=5+3*t2+10*c1-4*c12-9*Ecc2;temp4=61+90*t2+298*c1+45*t12-252*Ecc2-3*c12;temp5=(1+2*t2+c1)*d3/6;temp6=5-2*c1+28*t2-3*c12+8*Ecc2+24*t12;_81b.y=(_823-_81d*(d2/2-temp2*(d4/24)+temp4*d6/720))*180/Math.PI;_81b.x=(_81c+(d1-temp5+temp6*d5/120)/_825)*180/Math.PI;utm.x=utm.x+500000;return (_81b);};};window.USNG=function(){this.fromLatLong=function(_828,_829){usng_string=new String();var lon=_828.x;var lat=_828.y;var _82a;var _82b;while(lon<-180){lon+=180;}while(lon>180){lon-=180;}_82a=Math.floor((lon-(-180))/6)+1;if(!((lat>-90)&&(lat<90))){return ("error lat"+lat+" must be between in (-90,90)... no playing at the poles, yet");}else{a=new Array();a=["C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X"];_82b=a[Math.floor((lat-(-80))/8)];}var utm=new UTM();utm_pt=utm.fromLatLong(_82a,_828);var _82c="";var _82d=(_82a%6);if(_82d==0){_82d=6;}var _82e=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V"];var _82f=["F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","A","B","C","D","E"];var _830=["A","B","C","D","E","F","G","H"];var _831=["J","K","L","M","N","P","Q","R"];var _832=["S","T","U","V","W","X","Y","Z"];var _833=Math.floor(utm_pt.x/100000)-1;var _834=Math.floor((utm_pt.y%2000000)/100000);switch(_82d){case 1:_82c=_830[_833]+_82e[_834];break;case 2:_82c=_831[_833]+_82f[_834];break;case 3:_82c=_832[_833]+_82e[_834];break;case 4:_82c=_830[_833]+_82f[_834];break;case 5:_82c=_831[_833]+_82e[_834];break;case 6:_82c=_832[_833]+_82f[_834];break;default:alert("shouldn't get here");}var _835=Math.floor(utm_pt.x%100000).toString();var _836=Math.floor(utm_pt.y%100000).toString();while(_835.length<5){_835="0"+_835;}while(_836.length<5){_836="0"+_836;}_835=_835.substr(0,_829);_836=_836.substr(0,_829);usng_string=String(_82a)+_82b+_82c+_835+_836;return (usng_string);};};}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 _837=dojo.byId("footer");this.coordinate_display=dojo.create("span",{"id":"coordinate-display"},_837);GeoMOOSE.register("onMapbookLoaded",this,this.gotMapbook);},gotMapbook:function(){this.map_proj=Map.getProjectionObject();this.lat_long=new OpenLayers.Projection("WGS84");var _838=new OpenLayers.Control.MousePosition({div:this.coordinate_display});_838.formatOutput=dojo.hitch(this,this.displayCoordinates);Map.addControl(_838);},displayCoordinates:function(_839){var _83a=parseInt(this.numDigits);var html="";if(CONFIGURATION.coordinate_display.xy){html+="<span class=\"coordinate-type\">X,Y: </span>";html+=_839.lon.toFixed(_83a)+", "+_839.lat.toFixed(_83a);}var _83b=new OpenLayers.Geometry.Point(_839.lon,_839.lat);var _83c=OpenLayers.Projection.transform(_83b,this.map_proj,this.lat_long);if(CONFIGURATION.coordinate_display.latlon){html+="<span class=\"coordinate-type\">Lat, Lon: </span>";html+=_83c.y.toFixed(3)+", "+_83c.x.toFixed(3);}if(CONFIGURATION.coordinate_display.usng){html+="<span class=\"coordinate-type\">USNG: </span>";var _83d=OpenLayers.INCHES_PER_UNIT;var _83a=6-Math.ceil(Math.log(Map.getResolution())/2.302585092994046);html+=(new USNG()).fromLatLong(_83c,_83a);}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(_83e,_83f){var _840=[];function _841(attr,dir,comp,s){return function(_842,_843){var a=s.getValue(_842,attr);var b=s.getValue(_843,attr);return dir*comp(a,b);};};var _844;var map=_83f.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_83e.length;i++){_844=_83e[i];var attr=_844.attribute;if(attr){var dir=(_844.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_840.push(_841(attr,dir,comp,_83f));}}return function(rowA,rowB){var i=0;while(i<_840.length){var ret=_840[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(_845){_845=_845||{};if(!_845.store){_845.store=this;}var self=this;var _846=function(_847,_848){if(_848.onError){var _849=_848.scope||dojo.global;_848.onError.call(_849,_847,_848);}};var _84a=function(_84b,_84c){var _84d=_84c.abort||null;var _84e=false;var _84f=_84c.start?_84c.start:0;var _850=(_84c.count&&(_84c.count!==Infinity))?(_84f+_84c.count):_84b.length;_84c.abort=function(){_84e=true;if(_84d){_84d.call(_84c);}};var _851=_84c.scope||dojo.global;if(!_84c.store){_84c.store=self;}if(_84c.onBegin){_84c.onBegin.call(_851,_84b.length,_84c);}if(_84c.sort){_84b.sort(dojo.data.util.sorter.createSortFunction(_84c.sort,self));}if(_84c.onItem){for(var i=_84f;(i<_84b.length)&&(i<_850);++i){var item=_84b[i];if(!_84e){_84c.onItem.call(_851,item,_84c);}}}if(_84c.onComplete&&!_84e){var _852=null;if(!_84c.onItem){_852=_84b.slice(_84f,_850);}_84c.onComplete.call(_851,_852,_84c);}};this._fetchItems(_845,_84a,_846);return _845;};}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(_853,_854){var rxp="^";var c=null;for(var i=0;i<_853.length;i++){c=_853.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_853.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(_854){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(_855,_856,_857,rtl){if(this.aroundNode&&this.aroundNode===_856){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_855;var pos=dijit.placeOnScreenAroundElement(this.domNode,_856,dijit.getPopupAroundAlignment((_857&&_857.length)?_857:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_856;},orient:function(node,_858,_859,_85a,_85b){this.connectorNode.style.top="";var _85c=_85a.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"}[_858+"-"+_859];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _85d=Math.min((Math.max(_85c,1)),size.w);var _85e=_85d<size.w;this.domNode.style.width=_85d+"px";if(_85e){this.containerNode.style.overflow="auto";var _85f=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_85f>_85d){_85f=_85f+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_85f+"px";}}if(_859.charAt(0)=="B"&&_858.charAt(0)=="B"){var mb=dojo.marginBox(node);var _860=this.connectorNode.offsetHeight;if(mb.h>_85a.h){var _861=_85a.h-(_85b.h/2)-(_860/2);this.connectorNode.style.top=_861+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_85b.h/2-_860/2,0),mb.h-_860)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_85c);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_862){if(this._onDeck&&this._onDeck[1]==_862){this._onDeck=null;}else{if(this.aroundNode===_862){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(_863,_864,_865,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_863,_864,_865,rtl);};dijit.hideTooltip=function(_866){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_866);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_867){dojo.forEach(this._connections||[],function(_868){dojo.forEach(_868,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_867)?_867:(_867?[_867]:[]);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",_867);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 _869=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_869);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_86a){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_86a,this.position,!this.isLeftToRight());this._connectNode=_86a;this.onShow(_86a,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(_86b,_86c){},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(_86d){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_86e,_86f){return (new RegExp("^(?:"+this.regExpGen(_86f)+")"+(this.required?"":"?")+"$")).test(_86e)&&(!this.required||!this._isEmpty(_86e))&&(this._isEmpty(_86e)||this.parse(_86e,_86f)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_870){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_871){return (this.trim?/^\s*$/:/^$/).test(_871);},getErrorMessage:function(_872){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_873){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_874){var _875="";var _876=this.disabled||this.isValid(_874);if(_876){this._maskValidSubsetError=true;}var _877=this._isEmpty(this.textbox.value);var _878=!_876&&_874&&this._isValidSubset();this._set("state",_876?"":(((((!this._hasBeenBlurred||_874)&&_877)||_878)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_876?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_874&&_878;_875=this.getErrorMessage(_874);}else{if(this.state=="Incomplete"){_875=this.getPromptMessage(_874);this._maskValidSubsetError=!this._hasBeenBlurred||_874;}else{if(_877){_875=this.getPromptMessage(_874);}}}this.set("message",_875);return _876;},displayMessage:function(_879){dijit.hideTooltip(this.domNode);if(_879&&this._focused){dijit.showTooltip(_879,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_87a){if(!_87a.locale&&this.lang){_87a.locale=this.lang;}this._set("constraints",_87a);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _87b="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_87b+=re;break;case ")":_87b+="|$)";break;default:_87b+="(?:"+re+"|$)";break;}});}try{"".search(_87b);}catch(e){_87b=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_87b+")$";},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(_87c){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_87d){this._set("required",_87d);dijit.setWaiState(this.focusNode,"required",_87d);this._refreshState();},_setMessageAttr:function(_87e){this._set("message",_87e);this.displayMessage(_87e);},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,_87f){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(_880,_881){return ("min" in _881?(this.compare(_880,_881.min)>=0):true)&&("max" in _881?(this.compare(_880,_881.max)<=0):true);},isInRange:function(_882){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _883=false;var _884=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_883=(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);_884=(typeof max=="number")&&max>0;}return _883||_884;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_885){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_885));},getErrorMessage:function(_886){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_886)){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(_887){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(_888,_889){dijit.setWaiState(this.focusNode,"valuenow",_888);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(_88a){var pos=0;if(typeof (_88a.selectionStart)=="number"){pos=_88a.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_88a.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(_88b,_88c){_88c=parseInt(_88c);dijit.selectInputText(_88b,_88c,_88c);},_setDisabledAttr:function(_88d){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_88d);},_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 _88e=false;var pw=this.dropDown;var dk=dojo.keys;var _88f=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_88f=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(_88f);}dojo.stopEvent(evt);break;case dk.ENTER:if(_88f){if(_88f==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_88f==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 _890=this.get("displayedValue");if(pw&&(_890==pw._messages["previousMessage"]||_890==pw._messages["nextMessage"])){break;}if(_88f){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_88f){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_88e=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_88e=true;break;default:_88e=typeof key=="string"||key==229;}if(_88e){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 _891=this.ignoreCase?"toLowerCase":"substr";if(text[_891](0).indexOf(this.focusNode.value[_891](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(_892,_893){this._fetchHandle=null;if(this.disabled||this.readOnly||(_893.query[this.searchAttr]!=this._lastQuery)){return;}var _894=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_892.length&&!this._maxOptions){this.closeDropDown();return;}_893._maxOptions=this._maxOptions;var _895=this.dropDown.createOptions(_892,_893,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_893.direction){if(1==_893.direction){this.dropDown.highlightFirstOption();}else{if(-1==_893.direction){this.dropDown.highlightLastOption();}}if(_894){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_893.query[this.searchAttr])){this._announceOption(_895[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_896){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 _897=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_897==pw._messages["previousMessage"]||_897==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_897);}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,_898,_899){if(!_899){_899=this.store.getValue(item,this.searchAttr);}var _89a=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_899;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_89a,_898,_899);},_announceOption:function(node){if(!node){return;}var _89b;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_89b=node.innerHTML;this.item=undefined;this.value="";}else{_89b=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_89b);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_89b);},_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 _89c=this.id+"_popup",_89d=dojo.getObject(this.dropDownClass,false);this.dropDown=new _89d({onChange:dojo.hitch(this,this._selectOption),id:_89c,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_89c);}var _89e=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_89e[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_89f,_8a0){this.searchTimer=null;var _8a1={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_89f,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_8a2){_8a0._fetchHandle=null;console.error("dijit.form.ComboBox: "+_8a2);_8a0.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_8a1,_8a0.fetchProperties);this._fetchHandle=_8a0.store.fetch(_8a1);var _8a3=function(_8a4,_8a5){_8a4.start+=_8a4.count*_8a5;_8a4.direction=_8a5;this._fetchHandle=this.store.fetch(_8a4);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_8a3,this._fetchHandle);},_89e,this),this.searchDelay);},_setMaxOptions:function(size,_8a6){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _8a7=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_8a7);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _8a8=this._getValueField();this.value=this.store.getValue(item,_8a8);}}}this.inherited(arguments);},postCreate:function(){var _8a9=dojo.query("label[for=\""+this.id+"\"]");if(_8a9.length){_8a9[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_8a9[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _8aa=this.labelFunc(item,this.store),_8ab=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_8aa=this.doHighlight(_8aa,this._escapeHtml(this._lastInput));_8ab="html";}return {html:_8ab=="html",label:_8aa};},doHighlight:function(_8ac,find){var _8ad=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_8ac).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_8ad),"<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,_8ae){return _8ae.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(_8af){this.value=_8af;this.onChange(_8af);},onChange:function(_8b0){},onPage:function(_8b1){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_8b2){var _8b3=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _8b4=_8b2(item);if(_8b4.html){_8b3.innerHTML=_8b4.label;}else{_8b3.appendChild(dojo.doc.createTextNode(_8b4.label));}if(_8b3.innerHTML==""){_8b3.innerHTML="&nbsp;";}_8b3.item=item;return _8b3;},createOptions:function(_8b5,_8b6,_8b7){this.previousButton.style.display=(_8b6.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_8b5,function(item,i){var _8b8=this._createOption(item,_8b7);dojo.attr(_8b8,"id",this.id+i);this.domNode.insertBefore(_8b8,this.nextButton);},this);var _8b9=false;if(_8b6._maxOptions&&_8b6._maxOptions!=-1){if((_8b6.start+_8b6.count)<_8b6._maxOptions){_8b9=true;}else{if((_8b6.start+_8b6.count)>_8b6._maxOptions&&_8b6.count==_8b5.length){_8b9=true;}}}else{if(_8b6.count==_8b5.length){_8b9=true;}}this.nextButton.style.display=_8b9?"":"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 _8ba=this.domNode.firstChild;var _8bb=_8ba.nextSibling;this._focusOptionNode(_8bb.style.display=="none"?_8ba:_8bb);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 _8bc=0;var _8bd=this.domNode.scrollTop;var _8be=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_8bc<_8be){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 _8bf=this.domNode.scrollTop;_8bc+=(_8bf-_8bd)*(up?-1:1);_8bd=_8bf;}},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(_8c0,_8c1,_8c2){this._set("item",null);if(!_8c0){_8c0="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_8c0,_8c1,_8c2);}});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,_8c3,_8c4){return (_8c3=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_8c5){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_8c6,_8c7){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _8c8=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_8c9=dojo.query("> option",this.root).filter(function(_8ca){return (_8ca.innerText||_8ca.textContent||"").match(_8c8);});if(args.sort){_8c9.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_8c6(_8c9,args);},close:function(_8cb){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(_8cc){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_8cc.url;this._ccUrl=_8cc.url;this.url=_8cc.url;this._jsonData=_8cc.data;this.data=null;this._datatypeMap=_8cc.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_8cd){return dojo.date.stamp.fromISOString(_8cd);}};}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(_8cc.urlPreventCache!==undefined){this.urlPreventCache=_8cc.urlPreventCache?true:false;}if(_8cc.hierarchical!==undefined){this.hierarchical=_8cc.hierarchical?true:false;}if(_8cc.clearOnClose){this.clearOnClose=true;}if("failOk" in _8cc){this.failOk=_8cc.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(_8ce){if(typeof _8ce!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_8cf,_8d0){var _8d1=this.getValues(item,_8cf);return (_8d1.length>0)?_8d1[0]:_8d0;},getValues:function(item,_8d2){this._assertIsItem(item);this._assertIsAttribute(_8d2);return (item[_8d2]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _8d3=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_8d3.push(key);}}return _8d3;},hasAttribute:function(item,_8d4){this._assertIsItem(item);this._assertIsAttribute(_8d4);return (_8d4 in item);},containsValue:function(item,_8d5,_8d6){var _8d7=undefined;if(typeof _8d6==="string"){_8d7=dojo.data.util.filter.patternToRegExp(_8d6,false);}return this._containsValue(item,_8d5,_8d6,_8d7);},_containsValue:function(item,_8d8,_8d9,_8da){return dojo.some(this.getValues(item,_8d8),function(_8db){if(_8db!==null&&!dojo.isObject(_8db)&&_8da){if(_8db.toString().match(_8da)){return true;}}else{if(_8d9===_8db){return true;}}});},isItem:function(_8dc){if(_8dc&&_8dc[this._storeRefPropName]===this){if(this._arrayOfAllItems[_8dc[this._itemNumPropName]]===_8dc){return true;}}return false;},isItemLoaded:function(_8dd){return this.isItem(_8dd);},loadItem:function(_8de){this._assertIsItem(_8de.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(_8df,_8e0,_8e1){var self=this,_8e2=function(_8e3,_8e4){var _8e5=[],i,key;if(_8e3.query){var _8e6,_8e7=_8e3.queryOptions?_8e3.queryOptions.ignoreCase:false;var _8e8={};for(key in _8e3.query){_8e6=_8e3.query[key];if(typeof _8e6==="string"){_8e8[key]=dojo.data.util.filter.patternToRegExp(_8e6,_8e7);}else{if(_8e6 instanceof RegExp){_8e8[key]=_8e6;}}}for(i=0;i<_8e4.length;++i){var _8e9=true;var _8ea=_8e4[i];if(_8ea===null){_8e9=false;}else{for(key in _8e3.query){_8e6=_8e3.query[key];if(!self._containsValue(_8ea,key,_8e6,_8e8[key])){_8e9=false;}}}if(_8e9){_8e5.push(_8ea);}}_8e0(_8e5,_8e3);}else{for(i=0;i<_8e4.length;++i){var item=_8e4[i];if(item!==null){_8e5.push(item);}}_8e0(_8e5,_8e3);}};if(this._loadFinished){_8e2(_8df,this._getItemsArray(_8df.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:_8df,filter:_8e2});}else{this._loadInProgress=true;var _8eb={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _8ec=dojo.xhrGet(_8eb);_8ec.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_8e2(_8df,self._getItemsArray(_8df.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_8e1(e,_8df);}});_8ec.addErrback(function(_8ed){self._loadInProgress=false;_8e1(_8ed,_8df);});var _8ee=null;if(_8df.abort){_8ee=_8df.abort;}_8df.abort=function(){var df=_8ec;if(df&&df.fired===-1){df.cancel();df=null;}if(_8ee){_8ee.call(_8df);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_8e2(_8df,this._getItemsArray(_8df.queryOptions));}catch(e){_8e1(e,_8df);}}else{_8e1(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_8df);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _8ef=this._queuedFetches[i],_8f0=_8ef.args,_8f1=_8ef.filter;if(_8f1){_8f1(_8f0,this._getItemsArray(_8f0.queryOptions));}else{this.fetchItemByIdentity(_8f0);}}this._queuedFetches=[];}},_getItemsArray:function(_8f2){if(_8f2&&_8f2.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_8f3){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(_8f4){var _8f5=false,self=this;function _8f6(_8f7){var _8f8=((_8f7!==null)&&(typeof _8f7==="object")&&(!dojo.isArray(_8f7)||_8f5)&&(!dojo.isFunction(_8f7))&&(_8f7.constructor==Object||dojo.isArray(_8f7))&&(typeof _8f7._reference==="undefined")&&(typeof _8f7._type==="undefined")&&(typeof _8f7._value==="undefined")&&self.hierarchical);return _8f8;};function _8f9(_8fa){self._arrayOfAllItems.push(_8fa);for(var _8fb in _8fa){var _8fc=_8fa[_8fb];if(_8fc){if(dojo.isArray(_8fc)){var _8fd=_8fc;for(var k=0;k<_8fd.length;++k){var _8fe=_8fd[k];if(_8f6(_8fe)){_8f9(_8fe);}}}else{if(_8f6(_8fc)){_8f9(_8fc);}}}}};this._labelAttr=_8f4.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_8f4.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_8f5=true;}_8f9(item);item[this._rootItemPropName]=true;}var _8ff={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _900=item[key];if(_900!==null){if(!dojo.isArray(_900)){item[key]=[_900];}}else{item[key]=[null];}}_8ff[key]=key;}}while(_8ff[this._storeRefPropName]){this._storeRefPropName+="_";}while(_8ff[this._itemNumPropName]){this._itemNumPropName+="_";}while(_8ff[this._reverseRefMap]){this._reverseRefMap+="_";}var _901;var _902=_8f4.identifier;if(_902){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_902;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_901=item[_902];var _903=_901[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_903)){this._itemsByIdentity[_903]=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: ["+_902+"].  Value collided: ["+_903+"]");}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: ["+_902+"].  Value collided: ["+_903+"]");}}}}}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){_901=item[key];for(var j=0;j<_901.length;++j){_900=_901[j];if(_900!==null&&typeof _900=="object"){if(("_type" in _900)&&("_value" in _900)){var type=_900._type;var _904=this._datatypeMap[type];if(!_904){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_904)){_901[j]=new _904(_900._value);}else{if(dojo.isFunction(_904.deserialize)){_901[j]=_904.deserialize(_900._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(_900._reference){var _905=_900._reference;if(!dojo.isObject(_905)){_901[j]=this._getItemByIdentity(_905);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _906=this._arrayOfAllItems[k],_907=true;for(var _908 in _905){if(_906[_908]!=_905[_908]){_907=false;}}if(_907){_901[j]=_906;}}}if(this.referenceIntegrity){var _909=_901[j];if(this.isItem(_909)){this._addReferenceToMap(_909,item,key);}}}else{if(this.isItem(_900)){if(this.referenceIntegrity){this._addReferenceToMap(_900,item,key);}}}}}}}},_addReferenceToMap:function(_90a,_90b,_90c){},getIdentity:function(item){var _90d=this._features["dojo.data.api.Identity"];if(_90d===Number){return item[this._itemNumPropName];}else{var _90e=item[_90d];if(_90e){return _90e[0];}}return null;},fetchItemByIdentity:function(_90f){var item,_910;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:_90f});}else{this._loadInProgress=true;var _911={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _912=dojo.xhrGet(_911);_912.addCallback(function(data){var _913=_90f.scope?_90f.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_90f.identity);if(_90f.onItem){_90f.onItem.call(_913,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_90f.onError){_90f.onError.call(_913,error);}}});_912.addErrback(function(_914){self._loadInProgress=false;if(_90f.onError){var _915=_90f.scope?_90f.scope:dojo.global;_90f.onError.call(_915,_914);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_90f.identity);if(_90f.onItem){_910=_90f.scope?_90f.scope:dojo.global;_90f.onItem.call(_910,item);}}}}else{item=this._getItemByIdentity(_90f.identity);if(_90f.onItem){_910=_90f.scope?_90f.scope:dojo.global;_90f.onItem.call(_910,item);}}},_getItemByIdentity:function(_916){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_916)){item=this._itemsByIdentity[_916];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_916)){item=this._arrayOfAllItems[_916];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _917=this._features["dojo.data.api.Identity"];if(_917===Number){return null;}else{return [_917];}},_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 _918={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _919=dojo.xhrGet(_918);_919.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;}});_919.addErrback(function(_91a){throw _91a;});}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 _91b={"label":"name","items":[]};for(var e in CONFIGURATION.jumpto_scales){_91b.items.push({"name":e,"value":CONFIGURATION.jumpto_scales[e]});}var _91c=dojo.byId("footer");var _91d=dojo.create("span",{},_91c,1);dojo.style(_91d,{"position":"absolute","right":"0px","padding":"2px","paddingRight":"3px"});var _91e=dojo.create("span",{},_91d);this.select=new dijit.form.ComboBox({"store":new dojo.data.ItemFileReadStore({data:_91b}),"query":{name:"*"},"style":"width: 150px; color: black; textAlign: right","parseScale":function(_91f){return parseFloat(_91f.replace("1:",""));},"onChange":function(){var _920=Map.getScale().toFixed(0);var _921=this.parseScale(this.get("value")).toFixed(0);if(_920!=_921){Map.zoomToScale(_921,!CONFIGURATION.franctional_zoom);}}},_91e);},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(_922){var _923=_922,opts=this.options||[],l=opts.length;if(_923===undefined){return opts;}if(dojo.isArray(_923)){return dojo.map(_923,"return this.getOptions(item);",this);}if(dojo.isObject(_922)){if(!dojo.some(this.options,function(o,idx){if(o===_923||(o.value&&o.value===_923.value)){_923=idx;return true;}return false;})){_923=-1;}}if(typeof _923=="string"){for(var i=0;i<l;i++){if(opts[i].value===_923){_923=i;break;}}}if(typeof _923=="number"&&_923>=0&&_923<l){return this.options[_923];}return null;},addOption:function(_924){if(!dojo.isArray(_924)){_924=[_924];}dojo.forEach(_924,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_925){if(!dojo.isArray(_925)){_925=[_925];}var _926=this.getOptions(_925);dojo.forEach(_926,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(_927){if(!dojo.isArray(_927)){_927=[_927];}dojo.forEach(_927,function(i){var _928=this.getOptions(i),k;if(_928){for(k in i){_928[k]=i[k];}}},this);this._loadChildren();},setStore:function(_929,_92a,_92b){var _92c=this.store;_92b=_92b||{};if(_92c!==_929){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_929&&_929.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_929,"onNew",this,"_onNewItem"),dojo.connect(_929,"onDelete",this,"_onDeleteItem"),dojo.connect(_929,"onSet",this,"_onSetItem")];}this._set("store",_929);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_929){this._loadingStore=true;_929.fetch(dojo.delegate(_92b,{onComplete:function(_92d,opts){if(this.sortByLabel&&!_92b.sort&&_92d.length){_92d.sort(dojo.data.util.sorter.createSortFunction([{attribute:_929.getLabelAttributes(_92d[0])[0]}],_929));}if(_92b.onFetch){_92d=_92b.onFetch.call(this,_92d,opts);}dojo.forEach(_92d,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_92a);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_92d);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _92c;},_setValueAttr:function(_92e,_92f){if(this._loadingStore){this._pendingValue=_92e;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_92e)){_92e=[_92e];}dojo.forEach(_92e,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_92e[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_92e=dojo.filter(_92e,function(i){return i&&i.value;});if(!this.multiple&&(!_92e[0]||!_92e[0].value)&&opts.length){_92e[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_92e,function(v){return v.value===i.value;});});var val=dojo.map(_92e,function(i){return i.value;}),disp=dojo.map(_92e,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,_92f);},_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(_930){_930.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(_931){var _932=dojo.some(val,function(v){return _931.option&&(v===_931.option.value);});dojo.toggleClass(_931.domNode,this.baseClass+"SelectedOption",_932);dijit.setWaiState(_931.domNode,"selected",_932);},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,_933){if(!_933||!_933.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _934=this.store;this.removeOption(_934.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _935=this.store,_936=_935.getLabel(item),_937=(_936?_935.getIdentity(item):null);return {value:_937,label:_936,item:item};},_addOptionForItem:function(item){var _938=this.store;if(!_938.isItemLoaded(item)){_938.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _939=this._getOptionObjForItem(item);this.addOption(_939);},constructor:function(_93a){this._oValue=(_93a||{}).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 _93b=this.store,_93c={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_93c[i]=this[i];}delete this[i];},this);if(_93b&&_93b.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_93b,this._oValue,_93c);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_93d){},_removeOptionItem:function(_93e){},_setDisplay:function(_93f){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_940){},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(_941){if(!_941.value&&!_941.label){return new dijit.MenuSeparator();}else{var _942=dojo.hitch(this,"_setValueAttr",_941);var item=new dijit.MenuItem({option:_941,label:_941.label||this.emptyLabel,onClick:_942,disabled:_941.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_943){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_943));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_944){if(_944===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_945){_945.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(_946){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_947){var lbl=_947||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_948){var _949=this.isValid(_948);this._set("state",_949?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_949?"false":"true");var _94a=_949?"":this._missingMsg;if(this.message!==_94a){this._set("message",_94a);dijit.hideTooltip(this.domNode);if(_94a){dijit.showTooltip(_94a,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _949;},isValid:function(_94b){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(_94c){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_94d){this._loadChildren(true);this._isLoaded=true;_94d();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_94e){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_94e);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 _94f=dijit.byId(this.select_id);var v=_94f.get("value");if(v instanceof Array){Map.zoomToExtent(OpenLayers.Bounds.fromArray(v));_94f.set("value","reset");}},postCreate:function(){var p=dojo.create("div",{});this.set("content",p);for(var _950 in CONFIGURATION["zoomto"]){var _951=CONFIGURATION["zoomto"][_950];var _952=dojo.create("div",{},p);dojo.style(_952,{"padding":".5em"});var _953=dojo.create("span",{"innerHTML":_950},_952);var _954=[{"label":"","value":"reset"}];for(var _955 in CONFIGURATION["zoomto"][_950]){_954.push({"label":_955,"value":_951[_955]});}this.select_id=GeoMOOSE.id();var _956=dojo.create("span",{"id":this.select_id},_952);var _957=new dijit.form.Select({maxHeight:160,options:_954},_956);dojo.connect(_957,"onChange",dojo.hitch(this,this.zoomTo));dojo.addClass(_957.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 _958=dojo.byId("menubar");if(GeoMOOSE.isDefined(CONFIGURATION["links_bar_html"])){_958.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},start_measure:function(){var _959=GeoMOOSE.getTab("measure_area_tab");var p=null;if(!GeoMOOSE.isDefined(_959)){p=dojo.create("div",{});_959=new dijit.layout.ContentPane({"title":"Measure Area","closable":false,"content":p});GeoMOOSE.addTab("measure_area_tab",_959);dojo.connect(_959,"onHide",dojo.hitch(this,this.onHide));dojo.connect(_959,"onClose",dojo.hitch(this,this.onHide));dojo.connect(_959,"onShow",dojo.hitch(this,this.onShow));}else{p=_959.content;}p.innerHTML="";var _95a=dojo.create("div",{},p);var _95b=dojo.create("div",{},_95a);var _95c=dojo.create("span",{"innerHTML":"Total:"},_95b);dojo.addClass(_95c,["dijitInline","measure_header_label"]);this.total_display=new dijit.form.TextBox({"style":{"width":"10em"},"readOnly":true},dojo.create("span",{},_95b));if(this.show_segments){var _95d=dojo.create("div",{},_95a);var _95e=dojo.create("span",{"innerHTML":"Segment:"},_95d);dojo.addClass(_95e,["dijitInline","measure_header_label"]);this.segment_display=new dijit.form.TextBox({"style":{"width":"10em"},"readOnly":true},dojo.create("span",{},_95d));}var _95f=dojo.create("div",{},_95a);var _960=dojo.create("span",{"innerHTML":"Units:"},_95f);dojo.addClass(_960,["dijitInline","measure_header_label"]);var _961=[];for(var i=0,ii=this.units.length;i<ii;i++){_961.push({"label":this.units[i].label,"value":this.units[i].unit});}this.units_select=new dijit.form.Select({"style":{"width":"10em"},"options":_961,"onChange":dojo.hitch(this,this.change_units)},dojo.create("span",{},_95f));this.units_select.set("value",CONFIGURATION.measure_tool.area_units);var _962=dojo.create("div",{},_95a);dojo.addClass(dojo.create("span",{},_962),["dijitInline","measure_header_label"]);this.clear_button=new dijit.form.Button({"label":"Clear","onClick":dojo.hitch(this,this.clear_log)},dojo.create("span",{},_962));this.tbody_id=GeoMOOSE.id();var body=dojo.create("div",{},p);var _963=dojo.create("table",{},body);var _964=dojo.create("thead",{},_963);var _965=dojo.create("tr",{},_964);var _966={"#":"measure_segment_id_column","Segment":"measure_segment_column","Total":"measure_total_column"};if(!this.show_segments){delete _966["Segment"];}for(var _967 in _966){dojo.addClass(dojo.create("th",{"innerHTML":_967},_965),_966[_967]);}var _968=dojo.create("tbody",{"id":this.tbody_id},_963);if(!this.show_segments){dojo.style(_963,{"display":"none"});}GeoMOOSE.selectTab("measure_area_tab");},constructor:function(map,_969){dojo.mixin(this,_969);this.measures=[];if(parseBoolean(CONFIGURATION.measure_tool.show_area_segments,true)===false){this.show_segments=false;}var _96a=new OpenLayers.Style();_96a.addRules([new OpenLayers.Rule({symbolizer:CONFIGURATION.measure_tool.style})]);var _96b=new OpenLayers.StyleMap({"default":_96a});var _96c={geodesic:true,handlerOptions:{style:"default",layerOptions:{styleMap:_96b},persist:true}};this.measure_tool=new GeoMOOSE.Control.Measure(GeoMOOSE.Handler.MeasurePolygon,_96c);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);},closeMeasure:function(map){dijit.byId("tabs").closeChild(GeoMOOSE.getTab("measure_area_tab"));},_convertUnits:function(area){var _96d=this.conversion[Map.units];var _96e=area/this.conversion[this.units_select.get("value")];return _96e;},show_measure:function(_96f){this.current_segment=_96f.measure;if(this.show_segments){this.segment_display.set("value",this._convertUnits(_96f.measure).toFixed(CONFIGURATION.measure_tool.precision));}},log_measure:function(_970){if(this.reset_measure){this.clear_log();}this.reset_measure=false;if(_970.measure.toFixed()!=0){this.measures.push(_970.measure);}this.current_total=_970.measure;this.total_display.set("value",this._convertUnits(_970.measure).toFixed(CONFIGURATION.measure_tool.precision));this.render_log();},render_log:function(){var _971=dojo.byId(this.tbody_id);while(_971.firstChild){_971.removeChild(_971.firstChild);}var _972=0;for(var i=0,ii=this.measures.length;i<ii;i++){var row=dojo.create("tr",{},_971);var seg=this.measures[i]-_972;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);_972=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 _973=this._convertUnits(this.current_total).toFixed(CONFIGURATION.measure_tool.precision);if(isNaN(_973)){_973="";}this.total_display.set("value",_973);if(this.show_segments){var _974=this._convertUnits(this.current_segment).toFixed(CONFIGURATION.measure_tool.precision);if(isNaN(_974)){_974="";}this.segment_display.set("value",_974);}},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);}})();
     14(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: 24595 $".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;var _164=null,_165;d.addOnWindowUnload(function(){_164=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_164||_165!=doc){_164=doc.createElement("div");_165=doc;}_164.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_164.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_166){try{node=byId(node);_166=byId(_166);while(node){if(node==_166){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_167){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_167?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_167?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_167?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _168=function(node,ref){var _169=ref.parentNode;if(_169){_169.insertBefore(node,ref);}};var _16a=function(node,ref){var _16b=ref.parentNode;if(_16b){if(_16b.lastChild==ref){_16b.appendChild(node);}else{_16b.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_16c,_16d){_16c=byId(_16c);if(typeof node=="string"){node=/^\s*</.test(node)?d._toDom(node,_16c.ownerDocument):byId(node);}if(typeof _16d=="number"){var cn=_16c.childNodes;if(!cn.length||cn.length<=_16d){_16c.appendChild(node);}else{_168(node,cn[_16d<0?0:_16d]);}}else{switch(_16d){case "before":_168(node,_16c);break;case "after":_16a(node,_16c);break;case "replace":_16c.parentNode.replaceChild(node,_16c);break;case "only":d.empty(_16c);_16c.appendChild(node);break;case "first":if(_16c.firstChild){_168(node,_16c.firstChild);break;}default:_16c.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_16e,_16f){return parseFloat(_16f)||0;};}else{d._toPixelValue=function(_170,_171){if(!_171){return 0;}if(_171=="medium"){return 4;}if(_171.slice&&_171.slice(-2)=="px"){return parseFloat(_171);}with(_170){var _172=style.left;var _173=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_171;_171=style.pixelLeft;}catch(e){_171=0;}style.left=_172;runtimeStyle.left=_173;}return _171;};}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?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE<9?function(node,_174){var ov=_174*100,_175=_174==1;node.style.zoom=_175?"":1;if(!af(node)){if(_175){return _174;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_175;if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_174);});}return _174;}:function(node,_176){return node.style.opacity=_176;};var _177={left:true,top:true};var _178=/margin|padding|width|height|max|min|offset/;var _179=function(node,type,_17a){type=type.toLowerCase();if(d.isIE){if(_17a=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_17a){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _177)){_177[type]=_178.test(type);}return _177[type]?px(node,_17a):_17a;};var _17b=d.isIE?"styleFloat":"cssFloat",_17c={"cssFloat":_17b,"styleFloat":_17b,"float":_17b};dojo.style=function(node,_17d,_17e){var n=byId(node),args=arguments.length,op=(_17d=="opacity");_17d=_17c[_17d]||_17d;if(args==3){return op?d._setOpacity(n,_17e):n.style[_17d]=_17e;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _17d!="string"){for(var x in _17d){d.style(node,x,_17d[x]);}return s;}return (args==1)?s:_179(n,_17d,s[_17d]||n.style[_17d]);};dojo._getPadExtents=function(n,_17f){var s=_17f||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,_180){var ne="none",s=_180||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,_181){var s=_181||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,_182){var s=_182||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,_183){var s=_183||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getMarginSize=function(node,_184){node=byId(node);var me=d._getMarginExtents(node,_184||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,_185){var s=_185||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,_186){var s=_186||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,_187,_188,_189){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_189);if(_187>=0){_187+=pb.w;}if(_188>=0){_188+=pb.h;}}d._setBox(node,NaN,NaN,_187,_188);};dojo._setMarginBox=function(node,_18a,_18b,_18c,_18d,_18e){var s=_18e||gcs(node),bb=d._usesBorderBox(node),pb=bb?_18f:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_18c>=0&&!ns.width){ns.width="4px";}if(_18d>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_18c>=0){_18c=Math.max(_18c-pb.w-mb.w,0);}if(_18d>=0){_18d=Math.max(_18d-pb.h-mb.h,0);}d._setBox(node,_18a,_18b,_18c,_18d);};var _18f={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 _190=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_191=0,_192=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_191+=val-0;if(node==_192){break;}}node=node.parentNode;}return _191;};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(_193){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){_193+=de.clientLeft;}return (ie<8||qk)?(_193+de.clientWidth-de.scrollWidth):-_193;}return _193;};dojo._abs=dojo.position=function(node,_194){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){var _195=d._getIeDocumentElementOffset();ret.x-=_195.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_195.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(_194){var _196=d._docScroll();ret.x+=_196.x;ret.y+=_196.y;}return ret;};dojo.coords=function(node,_197){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_197);mb.x=abs.x;mb.y=abs.y;return mb;};var _198={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_199={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_19a={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _19b=function(name){return _199[name.toLowerCase()]||name;};var _19c=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _19a[_198[lc]||name]||_19c(byId(node),_199[lc]||name);};var _19d={},_19e=0,_19f=dojo._scopeName+"attrid",_1a0={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_1a1){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(),_1a2=_198[lc]||name,_1a3=_19a[_1a2],_1a4=_199[lc]||name;if(args==3){do{if(_1a2=="style"&&typeof _1a1!="string"){d.style(node,_1a1);break;}if(_1a2=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _1a0){d.empty(node);node.appendChild(d._toDom(_1a1,node.ownerDocument));}else{node[_1a2]=_1a1;}break;}if(d.isFunction(_1a1)){var _1a5=d.attr(node,_19f);if(!_1a5){_1a5=_19e++;d.attr(node,_19f,_1a5);}if(!_19d[_1a5]){_19d[_1a5]={};}var h=_19d[_1a5][_1a2];if(h){d.disconnect(h);}else{try{delete node[_1a2];}catch(e){}}_19d[_1a5][_1a2]=d.connect(node,_1a2,_1a1);break;}if(_1a3||typeof _1a1=="boolean"){node[_1a2]=_1a1;break;}node.setAttribute(_1a4,_1a1);}while(false);return node;}_1a1=node[_1a2];if(_1a3&&typeof _1a1!="undefined"){return _1a1;}if(_1a2!="href"&&(typeof _1a1=="boolean"||d.isFunction(_1a1))){return _1a1;}return _19c(node,_1a4)?node.getAttribute(_1a4):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_19b(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_1a6=_198[lc]||name;if((_1a6 in node)&&_1a6!="href"){return node[_1a6];}var _1a7=_199[lc]||name;return _19c(node,_1a7)?node.getAttribute(_1a7):null;};dojo.create=function(tag,_1a8,_1a9,pos){var doc=d.doc;if(_1a9){_1a9=byId(_1a9);doc=_1a9.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1a8){d.attr(tag,_1a8);}if(_1a9){d.place(tag,_1a9,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _1aa={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"]},_1ab=/<\s*([\w\:]+)/,_1ac={},_1ad=0,_1ae="__"+d._scopeName+"ToDomId";for(var _1af in _1aa){if(_1aa.hasOwnProperty(_1af)){var tw=_1aa[_1af];tw.pre=_1af=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}d._toDom=function(frag,doc){doc=doc||d.doc;var _1b0=doc[_1ae];if(!_1b0){doc[_1ae]=_1b0=++_1ad+"";_1ac[_1b0]=doc.createElement("div");}frag+="";var _1b1=frag.match(_1ab),tag=_1b1?_1b1[1].toLowerCase():"",_1b2=_1ac[_1b0],wrap,i,fc,df;if(_1b1&&_1aa[tag]){wrap=_1aa[tag];_1b2.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_1b2=_1b2.firstChild;}}else{_1b2.innerHTML=frag;}if(_1b2.childNodes.length==1){return _1b2.removeChild(_1b2.firstChild);}df=doc.createDocumentFragment();while(fc=_1b2.firstChild){df.appendChild(fc);}return df;};var _1b3="className";dojo.hasClass=function(node,_1b4){return ((" "+byId(node)[_1b3]+" ").indexOf(" "+_1b4+" ")>=0);};var _1b5=/\s+/,a1=[""],_1b6={},_1b7=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_1b5);}}return s||"";};dojo.addClass=function(node,_1b8){node=byId(node);_1b8=_1b7(_1b8);var cls=node[_1b3],_1b9;cls=cls?" "+cls+" ":" ";_1b9=cls.length;for(var i=0,len=_1b8.length,c;i<len;++i){c=_1b8[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_1b9<cls.length){node[_1b3]=cls.substr(1,cls.length-2);}};dojo.removeClass=function(node,_1ba){node=byId(node);var cls;if(_1ba!==undefined){_1ba=_1b7(_1ba);cls=" "+node[_1b3]+" ";for(var i=0,len=_1ba.length;i<len;++i){cls=cls.replace(" "+_1ba[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_1b3]!=cls){node[_1b3]=cls;}};dojo.replaceClass=function(node,_1bb,_1bc){node=byId(node);_1b6.className=node.className;dojo.removeClass(_1b6,_1bc);dojo.addClass(_1b6,_1bb);if(node.className!==_1b6.className){node.className=_1b6.className;}};dojo.toggleClass=function(node,_1bd,_1be){if(_1be===undefined){_1be=!d.hasClass(node,_1bd);}d[_1be?"addClass":"removeClass"](node,_1bd);};})();}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,_1bf,_1c0){if(!a.sort){a=aps.call(a,0);}var ctor=_1c0||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _1bf?a._stash(_1bf):a;};var _1c1=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 _1c2=function(f,o){return function(){this.forEach(_1c1(f,arguments,o));return this;};};var _1c3=function(f,o){return function(){return this.map(_1c1(f,arguments,o));};};var _1c4=function(f,o){return function(){return this.filter(_1c1(f,arguments,o));};};var _1c5=function(f,g,o){return function(){var a=arguments,body=_1c1(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _1c6=function(a){return a.length==1&&(typeof a[0]=="string");};var _1c7=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=_1c3;nl._adaptAsForEach=_1c2;nl._adaptAsFilter=_1c4;nl._adaptWithCondition=_1c5;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]=_1c5(d[name],_1c6);});d.forEach(["connect","addClass","removeClass","replaceClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_1c2(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_1c8,_1c9){var _1ca=_1c8.parse===true?true:false;if(typeof _1c8.template=="string"){var _1cb=_1c8.templateFunc||(dojo.string&&dojo.string.substitute);_1c8=_1cb?_1cb(_1c8.template,_1c8):_1c8;}var type=(typeof _1c8);if(type=="string"||type=="number"){_1c8=dojo._toDom(_1c8,(_1c9&&_1c9.ownerDocument));if(_1c8.nodeType==11){_1c8=dojo._toArray(_1c8.childNodes);}else{_1c8=[_1c8];}}else{if(!dojo.isArrayLike(_1c8)){_1c8=[_1c8];}else{if(!dojo.isArray(_1c8)){_1c8=dojo._toArray(_1c8);}}}if(_1ca){_1c8._runParse=true;}return _1c8;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1cc,_1cd,_1ce){if(_1cc.nodeType!=1&&_1cd=="only"){return;}var _1cf=_1cc,_1d0;var _1d1=ary.length;for(var i=_1d1-1;i>=0;i--){var node=(_1ce?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1d0){_1d0=_1cf.ownerDocument.createElement("div");}_1d0.appendChild(node);dojo.parser.parse(_1d0);node=_1d0.firstChild;while(_1d0.firstChild){_1d0.removeChild(_1d0.firstChild);}}if(i==_1d1-1){dojo.place(node,_1cf,_1cd);}else{_1cf.parentNode.insertBefore(node,_1cf);}_1cf=node;}},_stash:function(_1d2){this._parent=_1d2;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(_1d3,_1d4){d.forEach(this,_1d3,_1d4);return this;},coords:_1c3(d.coords),position:_1c3(d.position),place:function(_1d5,_1d6){var item=d.query(_1d5)[0];return this.forEach(function(node){d.place(node,item,_1d6);});},orphan:function(_1d7){return (_1d7?d._filterQueryResult(this,_1d7):this).forEach(_1c7);},adopt:function(_1d8,_1d9){return d.query(_1d8).place(this[0],_1d9)._stash(this);},query:function(_1da){if(!_1da){return this;}var ret=this.map(function(node){return d.query(_1da,node).filter(function(_1db){return _1db!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1dc){var a=arguments,_1dd=this,_1de=0;if(typeof _1dc=="string"){_1dd=d._filterQueryResult(this,a[0]);if(a.length==1){return _1dd._stash(this);}_1de=1;}return this._wrap(d.filter(_1dd,a[_1de],a[_1de+1]),this);},addContent:function(_1df,_1e0){_1df=this._normalize(_1df,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_1df,node,_1e0,i>0);}return this;},instantiate:function(_1e1,_1e2){var c=d.isFunction(_1e1)?_1e1:d.getObject(_1e1);_1e2=_1e2||{};return this.forEach(function(node){new c(_1e2,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 _1e3="on"+evt;nlp[_1e3]=function(a,b){return this.connect(_1e3,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;(function(){var _1e4=function(d){var trim=d.trim;var each=d.forEach;var qlc=(d._NodeListCtor=d.NodeList);var _1e5=function(){return d.doc;};var _1e6=((d.isWebKit||d.isMozilla)&&((_1e5().compatMode)=="BackCompat"));var _1e7=!!_1e5().firstChild["children"]?"children":"childNodes";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 _1e5().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[_1e7],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||(dojo.isIE&&dojo.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[_1e7];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=_1e5()["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&&!_1e6){_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=(!!_1e5()[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))&&(!(_1e6&&(_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||_1e5();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");_1e4(this["queryPortability"]||this["acme"]||dojo);}else{_1e4(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){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK||dojo.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _2bf=doc.compatMode=="BackCompat",_2c0=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_2bf?body:html),_2c1=isWK?body:_2c0,_2c2=_2c0.clientWidth,_2c3=_2c0.clientHeight,rtl=!dojo._isBodyLtr(),_2c4=pos||dojo.position(node),el=node.parentNode,_2c5=function(el){return ((isIE<=6||(isIE&&_2bf))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_2c5(node)){return;}while(el){if(el==body){el=_2c1;}var _2c6=dojo.position(el),_2c7=_2c5(el);if(el==_2c1){_2c6.w=_2c2;_2c6.h=_2c3;if(_2c1==html&&isIE&&rtl){_2c6.x+=_2c1.offsetWidth-_2c6.w;}if(_2c6.x<0||!isIE){_2c6.x=0;}if(_2c6.y<0||!isIE){_2c6.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_2c6.w-=pb.w;_2c6.h-=pb.h;_2c6.x+=pb.l;_2c6.y+=pb.t;var _2c8=el.clientWidth,_2c9=_2c6.w-_2c8;if(_2c8>0&&_2c9>0){_2c6.w=_2c8;_2c6.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_2c9:0;}_2c8=el.clientHeight;_2c9=_2c6.h-_2c8;if(_2c8>0&&_2c9>0){_2c6.h=_2c8;}}if(_2c7){if(_2c6.y<0){_2c6.h+=_2c6.y;_2c6.y=0;}if(_2c6.x<0){_2c6.w+=_2c6.x;_2c6.x=0;}if(_2c6.y+_2c6.h>_2c3){_2c6.h=_2c3-_2c6.y;}if(_2c6.x+_2c6.w>_2c2){_2c6.w=_2c2-_2c6.x;}}var l=_2c4.x-_2c6.x,t=_2c4.y-Math.max(_2c6.y,0),r=l+_2c4.w-_2c6.w,bot=t+_2c4.h-_2c6.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_2bf)||isIE>=9)){s=-s;}_2c4.x+=el.scrollLeft;el.scrollLeft+=s;_2c4.x-=el.scrollLeft;}if(bot*t>0){_2c4.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_2c4.y-=el.scrollTop;}el=(el!=_2c1)&&!_2c7&&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(_2ca){if(this._hash[_2ca.id]){throw new Error("Tried to register widget with id=="+_2ca.id+" but that id is already registered");}this._hash[_2ca.id]=_2ca;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2cb){_2cb=_2cb||dojo.global;var i=0,id;for(id in this._hash){func.call(_2cb,this._hash[id],i++,this._hash);}return this;},filter:function(_2cc,_2cd){_2cd=_2cd||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2cc.call(_2cd,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,_2ce;for(id in this._hash){_2ce=this._hash[id];if(_2ce.declaredClass==cls){res.add(_2ce);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2cf){return dojo.map(this.toArray(),func,_2cf);},every:function(func,_2d0){_2d0=_2d0||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_2d0,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2d1){_2d1=_2d1||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_2d1,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_2d2=dojo.hasAttr,_2d3=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _2d4={};dijit.getUniqueId=function(_2d5){var id;do{id=_2d5+"_"+(_2d5 in _2d4?++_2d4[_2d5]:_2d4[_2d5]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _2d6=[];function _2d7(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _2d8=node.getAttribute("widgetId");if(_2d8){var _2d9=hash[_2d8];if(_2d9){_2d6.push(_2d9);}}else{_2d7(node);}}}};_2d7(root);return _2d6;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2da){if(!_2da._destroyed){if(_2da.destroyRecursive){_2da.destroyRecursive();}else{if(_2da.destroy){_2da.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 _2db=(dijit._isElementShown=function(elem){var s=_2d3(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 _2d2(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2dc=elem.contentDocument;if("designMode" in _2dc&&_2dc.designMode=="on"){return true;}body=_2dc.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 _2dd=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_2d2(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _2de,last,_2df,_2e0,_2e1,_2e2,_2e3={};function _2e4(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2e5=function(_2e6){dojo.query("> *",_2e6).forEach(function(_2e7){if((dojo.isIE&&_2e7.scopeName!=="HTML")||!_2db(_2e7)){return;}if(_2dd(_2e7)){var _2e8=attr(_2e7,"tabIndex");if(!_2d2(_2e7,"tabIndex")||_2e8==0){if(!_2de){_2de=_2e7;}last=_2e7;}else{if(_2e8>0){if(!_2df||_2e8<_2e0){_2e0=_2e8;_2df=_2e7;}if(!_2e1||_2e8>=_2e2){_2e2=_2e8;_2e1=_2e7;}}}var rn=_2e4(_2e7);if(dojo.attr(_2e7,"checked")&&rn){_2e3[rn]=_2e7;}}if(_2e7.nodeName.toUpperCase()!="SELECT"){_2e5(_2e7);}});};if(_2db(root)){_2e5(root);}function rs(node){return _2e3[_2e4(node)]||node;};return {first:rs(_2de),last:rs(last),lowest:rs(_2df),highest:rs(_2e1)};};dijit.getFirstInTabbingOrder=function(root){var _2e9=dijit._getTabNavigable(dojo.byId(root));return _2e9.lowest?_2e9.lowest:_2e9.first;};dijit.getLastInTabbingOrder=function(root){var _2ea=dijit._getTabNavigable(dojo.byId(root));return _2ea.last?_2ea.last:_2ea.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(_2eb){var _2ec=dojo.doc,mark=_2eb.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(_2ec.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_2ec.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2ec.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2ed){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2ed||dojo.global,dijit.getBookmark),openedForWindow:_2ed};},focus:function(_2ee){if(!_2ee){return;}var node="node" in _2ee?_2ee.node:_2ee,_2ef=_2ee.bookmark,_2f0=_2ee.openedForWindow,_2f1=_2ef?_2ef.isCollapsed:false;if(node){var _2f2=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2f2&&_2f2.focus){try{_2f2.focus();}catch(e){}}dijit._onFocusNode(node);}if(_2ef&&dojo.withGlobal(_2f0||dojo.global,dijit.isCollapsed)&&!_2f1){if(_2f0){_2f0.focus();}try{dojo.withGlobal(_2f0||dojo.global,dijit.moveToBookmark,null,[_2ef]);}catch(e2){}}},_activeStack:[],registerIframe:function(_2f3){return dijit.registerWin(_2f3.contentWindow,_2f3);},unregisterIframe:function(_2f4){dijit.unregisterWin(_2f4);},registerWin:function(_2f5,_2f6){var _2f7=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_2f6||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_2f5.document.documentElement:_2f5.document;if(doc){if(dojo.isIE){_2f5.document.body.attachEvent("onmousedown",_2f7);var _2f8=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_2f6||evt.srcElement);}else{dijit._onTouchNode(_2f6||evt.srcElement);}};doc.attachEvent("onactivate",_2f8);var _2f9=function(evt){dijit._onBlurNode(_2f6||evt.srcElement);};doc.attachEvent("ondeactivate",_2f9);return function(){_2f5.document.detachEvent("onmousedown",_2f7);doc.detachEvent("onactivate",_2f8);doc.detachEvent("ondeactivate",_2f9);doc=null;};}else{doc.body.addEventListener("mousedown",_2f7,true);var _2fa=function(evt){dijit._onFocusNode(_2f6||evt.target);};doc.addEventListener("focus",_2fa,true);var _2fb=function(evt){dijit._onBlurNode(_2f6||evt.target);};doc.addEventListener("blur",_2fb,true);return function(){doc.body.removeEventListener("mousedown",_2f7,true);doc.removeEventListener("focus",_2fa,true);doc.removeEventListener("blur",_2fb,true);doc=null;};}}},unregisterWin:function(_2fc){_2fc&&_2fc();},_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 _2fd=[];try{while(node){var _2fe=dojo.attr(node,"dijitPopupParent");if(_2fe){node=dijit.byId(_2fe).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"),_2ff=id&&dijit.byId(id);if(_2ff&&!(by=="mouse"&&_2ff.get("disabled"))){_2fd.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_2fd,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(_300,by){var _301=dijit._activeStack;dijit._activeStack=_300;for(var _302=0;_302<Math.min(_301.length,_300.length);_302++){if(_301[_302]!=_300[_302]){break;}}var _303;for(var i=_301.length-1;i>=_302;i--){_303=dijit.byId(_301[i]);if(_303){_303._focused=false;_303.set("focused",false);_303._hasBeenBlurred=true;if(_303._onBlur){_303._onBlur(by);}dojo.publish("widgetBlur",[_303,by]);}}for(i=_302;i<_300.length;i++){_303=dijit.byId(_300[i]);if(_303){_303._focused=true;_303.set("focused",true);if(_303._onFocus){_303._onFocus(by);}dojo.publish("widgetFocus",[_303,by]);}}}});dojo.addOnLoad(function(){var _304=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_304);_304=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_305){this.pairs=[];this.returnWrappers=_305||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_306,wrap,_307,_308){this.pairs[((_308)?"unshift":"push")]([name,_306,wrap,_307]);},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,_309,_30a){var _30b=dojo.map(_309,function(_30c){var c={corner:_30c,pos:{x:pos.x,y:pos.y}};if(_30a){c.pos.x+=_30c.charAt(1)=="L"?_30a.x:-_30a.x;c.pos.y+=_30c.charAt(0)=="T"?_30a.y:-_30a.y;}return c;});return dijit._place(node,_30b);};dijit._place=function(node,_30d,_30e,_30f){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_30d,function(_310){var _311=_310.corner;var pos=_310.pos;var _312=0;var _313={w:_311.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_311.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_30e){var res=_30e(node,_310.aroundCorner,_311,_313,_30f);_312=typeof res=="undefined"?0:res;}var _314=node.style;var _315=_314.display;var _316=_314.visibility;_314.visibility="hidden";_314.display="";var mb=dojo.marginBox(node);_314.display=_315;_314.visibility=_316;var _317=Math.max(view.l,_311.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_318=Math.max(view.t,_311.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_311.charAt(1)=="L"?(_317+mb.w):pos.x),endY=Math.min(view.t+view.h,_311.charAt(0)=="T"?(_318+mb.h):pos.y),_319=endX-_317,_31a=endY-_318;_312+=(mb.w-_319)+(mb.h-_31a);if(best==null||_312<best.overflow){best={corner:_311,aroundCorner:_310.aroundCorner,x:_317,y:_318,w:_319,h:_31a,overflow:_312,spaceAvailable:_313};}return !_312;});if(best.overflow&&_30e){_30e(node,best.aroundCorner,best.corner,best.spaceAvailable,_30f);}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";return best;};dijit.placeOnScreenAroundNode=function(node,_31b,_31c,_31d){_31b=dojo.byId(_31b);var _31e=dojo.position(_31b,true);return dijit._placeOnScreenAroundRect(node,_31e.x,_31e.y,_31e.w,_31e.h,_31c,_31d);};dijit.placeOnScreenAroundRectangle=function(node,_31f,_320,_321){return dijit._placeOnScreenAroundRect(node,_31f.x,_31f.y,_31f.width,_31f.height,_320,_321);};dijit._placeOnScreenAroundRect=function(node,x,y,_322,_323,_324,_325){var _326=[];for(var _327 in _324){_326.push({aroundCorner:_327,corner:_324[_327],pos:{x:x+(_327.charAt(1)=="L"?0:_322),y:y+(_327.charAt(0)=="T"?0:_323)}});}return dijit._place(node,_326,_325,{w:_322,h:_323});};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,_328,_329,_32a){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_32b,_32c){var _32d={};dojo.forEach(_32b,function(pos){switch(pos){case "after":_32d[_32c?"BR":"BL"]=_32c?"BL":"BR";break;case "before":_32d[_32c?"BL":"BR"]=_32c?"BR":"BL";break;case "below-alt":_32c=!_32c;case "below":_32d[_32c?"BL":"BR"]=_32c?"TL":"TR";_32d[_32c?"BR":"BL"]=_32c?"TR":"TL";break;case "above-alt":_32c=!_32c;case "above":default:_32d[_32c?"TL":"TR"]=_32c?"BL":"BR";_32d[_32c?"TR":"TL"]=_32c?"BR":"BL";break;}});return _32d;};}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(_32e){var _32f=_32e.declaredClass?_32e._popupWrapper:(_32e.parentNode&&dojo.hasClass(_32e.parentNode,"dijitPopup")),node=_32e.domNode||_32e;if(!_32f){_32f=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_32f.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_32e.declaredClass){_32e._popupWrapper=_32f;dojo.connect(_32e,"destroy",function(){dojo.destroy(_32f);delete _32e._popupWrapper;});}}return _32f;},moveOffScreen:function(_330){var _331=this._createWrapper(_330);dojo.style(_331,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_332){var _333=this._createWrapper(_332);dojo.style(_333,"display","none");},getTopPopup:function(){var _334=this._stack;for(var pi=_334.length-1;pi>0&&_334[pi].parent===_334[pi-1].widget;pi--){}return _334[pi];},open:function(args){var _335=this._stack,_336=args.popup,_337=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"}),_338=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_335.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_335[_335.length-1].widget.domNode))){dijit.popup.close(_335[_335.length-1].widget);}var _339=this._createWrapper(_336);dojo.attr(_339,{id:id,style:{zIndex:this._beginZIndex+_335.length},"class":"dijitPopup "+(_336.baseClass||_336["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_336.bgIframe){_336.bgIframe=new dijit.BackgroundIframe(_339);}}var best=_338?dijit.placeOnScreenAroundElement(_339,_338,_337,_336.orient?dojo.hitch(_336,"orient"):null):dijit.placeOnScreen(_339,args,_337=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_339.style.display="";_339.style.visibility="visible";_336.domNode.style.visibility="visible";var _33a=[];_33a.push(dojo.connect(_339,"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 _33b=this.getTopPopup();if(_33b&&_33b.onCancel){_33b.onCancel();}}}}));if(_336.onCancel){_33a.push(dojo.connect(_336,"onCancel",args.onCancel));}_33a.push(dojo.connect(_336,_336.onExecute?"onExecute":"onChange",this,function(){var _33c=this.getTopPopup();if(_33c&&_33c.onExecute){_33c.onExecute();}}));_335.push({widget:_336,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_33a});if(_336.onOpen){_336.onOpen(best);}return best;},close:function(_33d){var _33e=this._stack;while((_33d&&dojo.some(_33e,function(elem){return elem.widget==_33d;}))||(!_33d&&_33e.length)){var top=_33e.pop(),_33f=top.widget,_340=top.onClose;if(_33f.onClose){_33f.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_33f&&_33f.domNode){this.hide(_33f);}if(_340){_340();}}}};dijit._frames=new function(){var _341=[];this.pop=function(){var _342;if(_341.length){_342=_341.pop();_342.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\");'>";_342=dojo.doc.createElement(html);}else{_342=dojo.create("iframe");_342.src="javascript:\"\"";_342.className="dijitBackgroundIframe";dojo.style(_342,"opacity",0.1);}_342.tabIndex=-1;dijit.setWaiRole(_342,"presentation");}return _342;};this.push=function(_343){_343.style.display="none";_341.push(_343);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _344=(this.iframe=dijit._frames.pop());node.appendChild(_344);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_344,{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,_345=d.isOpera,maj=Math.floor,ff=d.isFF,_346=d.boxModel.replace(/-/,""),_347={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_345,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_347["dj_"+_346]=true;var _348="";for(var clz in _347){if(_347[clz]){_348+=clz+" ";}}html.className=d.trim(html.className+" "+_348);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _349="dj_rtl dijitRtl "+_348.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_349);}});})();}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,_34a,node,_34b,obj,_34c,_34d,_34e){if(obj!=this._obj){this.stop();this._initialDelay=_34d||500;this._subsequentDelay=_34c||0.9;this._minDelay=_34e||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_34a,_34b);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,_34f,_350,_351,_352,_353,_354){if(_34f.keyCode){_34f.charOrCode=_34f.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_34f.charCode){_34f.charOrCode=String.fromCharCode(_34f.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==_34f.charOrCode&&(_34f.ctrlKey===undefined||_34f.ctrlKey==evt.ctrlKey)&&(_34f.altKey===undefined||_34f.altKey==evt.altKey)&&(_34f.metaKey===undefined||_34f.metaKey==(evt.metaKey||false))&&(_34f.shiftKey===undefined||_34f.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_350,node,_351,_34f,_352,_353,_354);}else{if(dijit.typematic._obj==_34f){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_34f){dijit.typematic.stop();}})];},addMouseListener:function(node,_355,_356,_357,_358,_359){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_355,node,_356,node,_357,_358,_359);}),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){dijit.typematic.trigger(evt,_355,node,_356,node,_357,_358,_359);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_35a,_35b,_35c,_35d,_35e,_35f,_360,_361){return this.addKeyListener(_35b,_35c,_35d,_35e,_35f,_360,_361).concat(this.addMouseListener(_35a,_35d,_35e,_35f,_360,_361));}};}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 _362=cs.backgroundImage;var _363=(cs.borderTopColor==cs.borderRightColor)||(_362!=null&&(_362=="none"||_362=="url(invalid-url:)"));dojo[_363?"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 _364=this.getWaiRole(elem);return role?(_364.indexOf(role)>-1):(_364.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 _365=dojo.attr(elem,"role");if(!_365){return;}if(role){var t=dojo.trim((" "+_365+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_366){return elem.hasAttribute?elem.hasAttribute("aria-"+_366):!!elem.getAttribute("aria-"+_366);},getWaiState:function(elem,_367){return elem.getAttribute("aria-"+_367)||"";},setWaiState:function(elem,_368,_369){elem.setAttribute("aria-"+_368,_369);},removeWaiState:function(elem,_36a){elem.removeAttribute("aria-"+_36a);}});}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(_36b,_36c){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 _36d=dojo.date.stamp._isoRegExp.exec(_36b),_36e=null;if(_36d){_36d.shift();if(_36d[1]){_36d[1]--;}if(_36d[6]){_36d[6]*=1000;}if(_36c){_36c=new Date(_36c);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _36c["get"+prop]();}),function(_36f,_370){_36d[_370]=_36d[_370]||_36f;});}_36e=new Date(_36d[0]||1970,_36d[1]||0,_36d[2]||1,_36d[3]||0,_36d[4]||0,_36d[5]||0,_36d[6]||0);if(_36d[0]<100){_36e.setFullYear(_36d[0]||1970);}var _371=0,_372=_36d[7]&&_36d[7].charAt(0);if(_372!="Z"){_371=((_36d[8]||0)*60)+(Number(_36d[9])||0);if(_372!="-"){_371*=-1;}}if(_372){_371-=_36e.getTimezoneOffset();}if(_371){_36e.setTime(_36e.getTime()+_371*60000);}}return _36e;};dojo.date.stamp.toISOString=function(_373,_374){var _375=function(n){return (n<10)?"0"+n:n;};_374=_374||{};var _376=[],_377=_374.zulu?"getUTC":"get",date="";if(_374.selector!="time"){var year=_373[_377+"FullYear"]();date=["0000".substr((year+"").length)+year,_375(_373[_377+"Month"]()+1),_375(_373[_377+"Date"]())].join("-");}_376.push(date);if(_374.selector!="date"){var time=[_375(_373[_377+"Hours"]()),_375(_373[_377+"Minutes"]()),_375(_373[_377+"Seconds"]())].join(":");var _378=_373[_377+"Milliseconds"]();if(_374.milliseconds){time+="."+(_378<100?"0":"")+_375(_378);}if(_374.zulu){time+="Z";}else{if(_374.selector!="time"){var _379=_373.getTimezoneOffset();var _37a=Math.abs(_379);time+=(_379>0?"-":"+")+_375(Math.floor(_37a/60))+":"+_375(_37a%60);}}_376.push(time);}return _376.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 _37b(_37c){if(d.isString(_37c)){return "string";}if(typeof _37c=="number"){return "number";}if(typeof _37c=="boolean"){return "boolean";}if(d.isFunction(_37c)){return "function";}if(d.isArray(_37c)){return "array";}if(_37c instanceof Date){return "date";}if(_37c instanceof d._Url){return "url";}return "object";};function _37d(_37e,type){switch(type){case "string":return _37e;case "number":return _37e.length?Number(_37e):NaN;case "boolean":return typeof _37e=="boolean"?_37e:!(_37e.toLowerCase()=="false");case "function":if(d.isFunction(_37e)){_37e=_37e.toString();_37e=d.trim(_37e.substring(_37e.indexOf("{")+1,_37e.length-1));}try{if(_37e===""||_37e.search(/[^\w\.]+/i)!=-1){return new Function(_37e);}else{return d.getObject(_37e,false)||new Function(_37e);}}catch(e){return new Function();}case "array":return _37e?_37e.split(/\s*,\s*/):[];case "date":switch(_37e){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_37e);}case "url":return d.baseUrl+_37e;default:return d.fromJson(_37e);}};var _37f={},_380={};d.connect(d,"extend",function(){_380={};});function _381(cls,_382){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _37f){continue;}_382[name]=_37b(cls[name]);}return _382;};function _383(_384,_385){var c=_380[_384];if(!c){var cls=d.getObject(_384),_386=null;if(!cls){return null;}if(!_385){_386=_381(cls.prototype,{});}c={cls:cls,params:_386};}else{if(!_385&&!c.params){c.params=_381(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_387,_388){var _389="";var _38a="";var _38b=(_387.getAttribute(_388+"args")||_387.getAttribute("args"));if(_38b){d.forEach(_38b.split(/\s*,\s*/),function(part,idx){_389+="var "+part+" = arguments["+idx+"]; ";});}var _38c=_387.getAttribute("with");if(_38c&&_38c.length){d.forEach(_38c.split(/\s*,\s*/),function(part){_389+="with("+part+"){";_38a+="}";});}return new Function(_389+_387.innerHTML+_38a);};this.instantiate=function(_38d,_38e,args){var _38f=[],_38e=_38e||{};args=args||{};var _390=(args.scope||d._scopeName)+"Type",_391="data-"+(args.scope||d._scopeName)+"-";d.forEach(_38d,function(obj){if(!obj){return;}var node,type,_392,_393,_394,_395;if(obj.node){node=obj.node;type=obj.type;_395=obj.fastpath;_392=obj.clsInfo||(type&&_383(type,_395));_393=_392&&_392.cls;_394=obj.scripts;}else{node=obj;type=_390 in _38e?_38e[_390]:node.getAttribute(_390);_392=type&&_383(type);_393=_392&&_392.cls;_394=(_393&&(_393._noScript||_393.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_392){throw new Error("Could not load class '"+type);}var _396={};if(args.defaults){d._mixin(_396,args.defaults);}if(obj.inherited){d._mixin(_396,obj.inherited);}if(_395){var _397=node.getAttribute(_391+"props");if(_397&&_397.length){try{_397=d.fromJson.call(args.propsThis,"{"+_397+"}");d._mixin(_396,_397);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_397+"'");}}var _398=node.getAttribute(_391+"attach-point");if(_398){_396.dojoAttachPoint=_398;}var _399=node.getAttribute(_391+"attach-event");if(_399){_396.dojoAttachEvent=_399;}dojo.mixin(_396,_38e);}else{var _39a=node.attributes;for(var name in _392.params){var item=name in _38e?{value:_38e[name],specified:true}:_39a.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _39b=item.value;switch(name){case "class":_39b="className" in _38e?_38e.className:node.className;break;case "style":_39b="style" in _38e?_38e.style:(node.style&&node.style.cssText);}var _39c=_392.params[name];if(typeof _39b=="string"){_396[name]=_37d(_39b,_39c);}else{_396[name]=_39b;}}}var _39d=[],_39e=[];d.forEach(_394,function(_39f){node.removeChild(_39f);var _3a0=(_39f.getAttribute(_391+"event")||_39f.getAttribute("event")),type=_39f.getAttribute("type"),nf=d.parser._functionFromScript(_39f,_391);if(_3a0){if(type=="dojo/connect"){_39d.push({event:_3a0,func:nf});}else{_396[_3a0]=nf;}}else{_39e.push(nf);}});var _3a1=_393.markupFactory||_393.prototype&&_393.prototype.markupFactory;var _3a2=_3a1?_3a1(_396,node,_393):new _393(_396,node);_38f.push(_3a2);var _3a3=(node.getAttribute(_391+"id")||node.getAttribute("jsId"));if(_3a3){d.setObject(_3a3,_3a2);}d.forEach(_39d,function(_3a4){d.connect(_3a2,_3a4.event,null,_3a4.func);});d.forEach(_39e,function(func){func.call(_3a2);});});if(!_38e._started){d.forEach(_38f,function(_3a5){if(!args.noStart&&_3a5&&dojo.isFunction(_3a5.startup)&&!_3a5._started&&(!_3a5.getParent||!_3a5.getParent())){_3a5.startup();}});}return _38f;};this.parse=function(_3a6,args){var root;if(!args&&_3a6&&_3a6.rootNode){args=_3a6;root=args.rootNode;}else{root=_3a6;}root=root?dojo.byId(root):dojo.body();args=args||{};var _3a7=(args.scope||d._scopeName)+"Type",_3a8="data-"+(args.scope||d._scopeName)+"-";function scan(_3a9,list){var _3aa=dojo.clone(_3a9.inherited);dojo.forEach(["dir","lang"],function(name){var val=_3a9.node.getAttribute(name);if(val){_3aa[name]=val;}});var _3ab=_3a9.clsInfo&&!_3a9.clsInfo.cls.prototype._noScript?_3a9.scripts:null;var _3ac=(!_3a9.clsInfo||!_3a9.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _3ad=_3a9.node.firstChild;_3ad;_3ad=_3ad.nextSibling){if(_3ad.nodeType==1){var type,_3ae=_3ac&&_3ad.getAttribute(_3a8+"type");if(_3ae){type=_3ae;}else{type=_3ac&&_3ad.getAttribute(_3a7);}var _3af=_3ae==type;if(type){var _3b0={"type":type,fastpath:_3af,clsInfo:_383(type,_3af),node:_3ad,scripts:[],inherited:_3aa};list.push(_3b0);scan(_3b0,list);}else{if(_3ab&&_3ad.nodeName.toLowerCase()=="script"){type=_3ad.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_3ab.push(_3ad);}}else{if(_3ac){scan({node:_3ad,inherited:_3aa},list);}}}}}};var _3b1={};if(args&&args.inherited){for(var key in args.inherited){if(args.inherited[key]){_3b1[key]=args.inherited[key];}}}var list=[];scan({node:root,inherited:_3b1},list);var _3b2=args&&args.template?{template:true}:null;return this.instantiate(list,_3b2,args);};}();(function(){var _3b3=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_3b3);}else{dojo._loaders.unshift(_3b3);}})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_3b4){if(_3b4){dojo.mixin(this,_3b4);}},get:function(name){return this[name];},set:function(name,_3b5){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _3b6=this[name];this[name]=_3b5;if(this._watchCallbacks){this._watchCallbacks(name,_3b6,_3b5);}return this;},watch:function(name,_3b7){var _3b8=this._watchCallbacks;if(!_3b8){var self=this;_3b8=this._watchCallbacks=function(name,_3b9,_3ba,_3bb){var _3bc=function(_3bd){if(_3bd){_3bd=_3bd.slice();for(var i=0,l=_3bd.length;i<l;i++){try{_3bd[i].call(self,name,_3b9,_3ba);}catch(e){console.error(e);}}}};_3bc(_3b8["_"+name]);if(!_3bb){_3bc(_3b8["*"]);}};}if(!_3b7&&typeof name==="function"){_3b7=name;name="*";}else{name="_"+name;}var _3be=_3b8[name];if(typeof _3be!=="object"){_3be=_3b8[name]=[];}_3be.push(_3b7);return {unwatch:function(){_3be.splice(dojo.indexOf(_3be,_3b7),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(_3bf,_3c0){this.create(_3bf,_3c0);},create:function(_3c1,_3c2){this.srcNodeRef=dojo.byId(_3c2);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_3c1){this.params=_3c1;dojo._mixin(this,_3c1);}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 _3c3=this.srcNodeRef;if(_3c3&&_3c3.parentNode&&this.domNode!==_3c3){_3c3.parentNode.replaceChild(this.domNode,_3c3);}}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 _3c4=function(attr,_3c5){if((_3c5.params&&attr in _3c5.params)||_3c5[attr]){_3c5.set(attr,_3c5[attr]);}};for(var attr in this.attributeMap){_3c4(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_3c4(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_3c6,_3c7=ctor.prototype;for(var _3c8 in _3c7){if(dojo.isFunction(_3c7[_3c8])&&(_3c6=_3c8.match(/^_set([a-zA-Z]*)Attr$/))&&_3c6[1]){r.push(_3c6[1].charAt(0).toLowerCase()+_3c6[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _3c9=this.baseClass.split(" ");if(!this.isLeftToRight()){_3c9=_3c9.concat(dojo.map(_3c9,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_3c9);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_3ca){this._beingDestroyed=true;this.destroyDescendants(_3ca);this.destroy(_3ca);},destroy:function(_3cb){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_3cc){dfe(_3cc,d.disconnect);});dfe(this._subscribes,function(_3cd){dun(_3cd);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_3cb);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_3ce){if(this.bgIframe){this.bgIframe.destroy(_3ce);delete this.bgIframe;}if(this.domNode){if(_3ce){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_3ce){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_3cf){dojo.forEach(this.getChildren(),function(_3d0){if(_3d0.destroyRecursive){_3d0.destroyRecursive(_3cf);}});},uninitialize:function(){return false;},_setClassAttr:function(_3d1){var _3d2=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_3d2,_3d1,this["class"]);this._set("class",_3d1);},_setStyleAttr:function(_3d3){var _3d4=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_3d3)){dojo.style(_3d4,_3d3);}else{if(_3d4.style.cssText){_3d4.style.cssText+="; "+_3d3;}else{_3d4.style.cssText=_3d3;}}this._set("style",_3d3);},_attrToDom:function(attr,_3d5){var _3d6=this.attributeMap[attr];dojo.forEach(dojo.isArray(_3d6)?_3d6:[_3d6],function(_3d7){var _3d8=this[_3d7.node||_3d7||"domNode"];var type=_3d7.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_3d5)){_3d5=dojo.hitch(this,_3d5);}var _3d9=_3d7.attribute?_3d7.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_3d8,_3d9,_3d5);break;case "innerText":_3d8.innerHTML="";_3d8.appendChild(dojo.doc.createTextNode(_3d5));break;case "innerHTML":_3d8.innerHTML=_3d5;break;case "class":dojo.replaceClass(_3d8,_3d5,this[attr]);break;}},this);},get:function(name){var _3da=this._getAttrNames(name);return this[_3da.g]?this[_3da.g]():this[name];},set:function(name,_3db){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _3dc=this._getAttrNames(name);if(this[_3dc.s]){var _3dd=this[_3dc.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_3db);}this._set(name,_3db);}return _3dd||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,_3de){var _3df=this[name];this[name]=_3de;if(this._watchCallbacks&&this._created&&_3de!==_3df){this._watchCallbacks(name,_3df,_3de);}},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,_3e0,_3e1){var _3e2=[dojo._connect(obj,_3e0,this,_3e1)];this._connects.push(_3e2);return _3e2;},disconnect:function(_3e3){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_3e3){dojo.forEach(_3e3,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_3e4,_3e5){var _3e6=dojo.subscribe(_3e4,this,_3e5);this._subscribes.push(_3e6);return _3e6;},unsubscribe:function(_3e7){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_3e7){dojo.unsubscribe(_3e7);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_3e8,_3e9){if(_3e8.declaredClass&&_3e8.addChild){_3e8.addChild(this,_3e9);}else{dojo.place(this.domNode,_3e8,_3e9);}return this;}});})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_3ea,_3eb){if(_3ea&&dojo.isFunction(_3ea._onConnect)){_3ea._onConnect(_3eb);}});dijit._connectOnUseEventHandler=function(_3ec){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _3ed=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_3ed);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_3ed);});})();}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(_3ee,_3ef){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(_3f0){if(_3f0 in this._deferredConnects){var _3f1=this[this._deferredConnects[_3f0]||"domNode"];this.connect(_3f1,_3f0.toLowerCase(),_3f0);delete this._deferredConnects[_3f0];}},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,_3f2){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_3f2);},attr:function(name,_3f3){if(dojo.config.isDebug){var _3f4=arguments.callee._ach||(arguments.callee._ach={}),_3f5=(arguments.callee.caller||"unknown caller").toString();if(!_3f4[_3f5]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_3f5,"","2.0");_3f4[_3f5]=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,_3f6,_3f7){var d=dojo,dc=d._connect,_3f8=this.inherited(arguments,[obj,_3f6=="ondijitclick"?"onclick":_3f6,_3f7]);if(_3f6=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_3f7);_3f8.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 _3f8;},_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(_3f9,map,_3fa,_3fb){_3fb=_3fb||dojo.global;_3fa=_3fa?dojo.hitch(_3fb,_3fa):function(v){return v;};return _3f9.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_3fc,key,_3fd){var _3fe=dojo.getObject(key,false,map);if(_3fd){_3fe=dojo.getObject(_3fd,false,_3fb).call(_3fb,_3fe,key);}return _3fa(_3fe,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 _3ff={};dojo.cache=function(_400,url,_401){if(typeof _400=="string"){var _402=dojo.moduleUrl(_400,url);}else{_402=_400;_401=url;}var key=_402.toString();var val=_401;if(_401!=undefined&&!dojo.isString(_401)){val=("value" in _401?_401.value:undefined);}var _403=_401&&_401.sanitize?true:false;if(typeof val=="string"){val=_3ff[key]=_403?dojo.cache._sanitize(val):val;}else{if(val===null){delete _3ff[key];}else{if(!(key in _3ff)){val=dojo._getText(key);_3ff[key]=_403?dojo.cache._sanitize(val):val;}val=_3ff[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _404=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_404){val=_404[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 _405=this.declaredClass,_406=this;return dojo.string.substitute(tmpl,this,function(_407,key){if(key.charAt(0)=="!"){_407=dojo.getObject(key.substr(1),false,_406);}if(typeof _407=="undefined"){throw new Error(_405+" template:"+key);}if(_407==null){return "";}return key.charAt(0)=="!"?_407:_407.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _408=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_408)){node=dojo._toDom(this._stringRepl(_408));if(node.nodeType!=1){throw new Error("Invalid template: "+_408);}}else{node=_408.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(_409){var dest=this.containerNode;if(_409&&dest){while(_409.hasChildNodes()){dest.appendChild(_409.firstChild);}}},_attachTemplateNodes:function(_40a,_40b){_40b=_40b||function(n,p){return n.getAttribute(p);};var _40c=dojo.isArray(_40a)?_40a:(_40a.all||_40a.getElementsByTagName("*"));var x=dojo.isArray(_40a)?0:-1;for(;x<_40c.length;x++){var _40d=(x==-1)?_40a:_40c[x];if(this.widgetsInTemplate&&(_40b(_40d,"dojoType")||_40b(_40d,"data-dojo-type"))){continue;}var _40e=_40b(_40d,"dojoAttachPoint")||_40b(_40d,"data-dojo-attach-point");if(_40e){var _40f,_410=_40e.split(/\s*,\s*/);while((_40f=_410.shift())){if(dojo.isArray(this[_40f])){this[_40f].push(_40d);}else{this[_40f]=_40d;}this._attachPoints.push(_40f);}}var _411=_40b(_40d,"dojoAttachEvent")||_40b(_40d,"data-dojo-attach-event");if(_411){var _412,_413=_411.split(/\s*,\s*/);var trim=dojo.trim;while((_412=_413.shift())){if(_412){var _414=null;if(_412.indexOf(":")!=-1){var _415=_412.split(":");_412=trim(_415[0]);_414=trim(_415[1]);}else{_412=trim(_412);}if(!_414){_414=_412;}this._attachEvents.push(this.connect(_40d,_412,_414));}}}var role=_40b(_40d,"waiRole");if(role){dijit.setWaiRole(_40d,role);}var _416=_40b(_40d,"waiState");if(_416){dojo.forEach(_416.split(/\s*,\s*/),function(_417){if(_417.indexOf("-")!=-1){var pair=_417.split("-");dijit.setWaiState(_40d,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(_418){delete this[_418];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_419,_41a,_41b){var _41c=dijit._Templated._templateCache;var key=_41a||_419;var _41d=_41c[key];if(_41d){try{if(!_41d.ownerDocument||_41d.ownerDocument==dojo.doc){return _41d;}}catch(e){}dojo.destroy(_41d);}if(!_41a){_41a=dojo.cache(_419,{sanitize:true});}_41a=dojo.string.trim(_41a);if(_41b||_41a.match(/\$\{([^\}]+)\}/g)){return (_41c[key]=_41a);}else{var node=dojo._toDom(_41a);if(node.nodeType!=1){throw new Error("Invalid template: "+_41a);}return (_41c[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _41e=dijit._Templated._templateCache;for(var key in _41e){var _41f=_41e[key];if(typeof _41f=="object"){dojo.destroy(_41f);}delete _41e[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(_420,_421){var _422=this.containerNode;if(_421&&typeof _421=="number"){var _423=this.getChildren();if(_423&&_423.length>=_421){_422=_423[_421-1].domNode;_421="after";}}dojo.place(_420.domNode,_422,_421);if(this._started&&!_420._started){_420.startup();}},removeChild:function(_424){if(typeof _424=="number"){_424=this.getChildren()[_424];}if(_424){var node=_424.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_425){dojo.forEach(this.getChildren(),function(_426){_426.destroyRecursive(_425);});},_getSiblingOfChild:function(_427,dir){var node=_427.domNode,_428=(dir>0?"nextSibling":"previousSibling");do{node=node[_428];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_429){return dojo.indexOf(this.getChildren(),_429);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_42a){_42a.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 _42b=dijit.getEnclosingWidget(this.domNode.parentNode);return _42b&&_42b.isContainer?_42b:null;},_getSibling:function(_42c){var node=this.domNode;do{node=node[_42c+"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 _42d=this.getParent&&this.getParent();if(!(_42d&&_42d.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_42e,_42f){var node=this.domNode;if(_42e){dojo.marginBox(node,_42e);if(_42e.t){node.style.top=_42e.t+"px";}if(_42e.l){node.style.left=_42e.l+"px";}}var mb=_42f||{};dojo.mixin(mb,_42e||{});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(_430){var cls=this.baseClass+"-child "+(_430.baseClass?this.baseClass+"-"+_430.baseClass:"");dojo.addClass(_430.domNode,cls);},addChild:function(_431,_432){this.inherited(arguments);if(this._started){this._setupChild(_431);}},removeChild:function(_433){var cls=this.baseClass+"-child"+(_433.baseClass?" "+this.baseClass+"-"+_433.baseClass:"");dojo.removeClass(_433.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 _434=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_435,dim){var _436=_435.resize?_435.resize(dim):dojo.marginBox(_435.domNode,dim);if(_436){dojo.mixin(_435,_436);}else{dojo.mixin(_435,dojo.marginBox(_435.domNode));dojo.mixin(_435,dim);}};dijit.layout.layoutChildren=function(_437,dim,_438,_439,_43a){dim=dojo.mixin({},dim);dojo.addClass(_437,"dijitLayoutContainer");_438=dojo.filter(_438,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_438,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_438,function(_43b){var elm=_43b.domNode,pos=(_43b.region||_43b.layoutAlign);var _43c=elm.style;_43c.left=dim.l+"px";_43c.top=dim.t+"px";_43c.position="absolute";dojo.addClass(elm,"dijitAlign"+_434(pos));var _43d={};if(_439&&_439==_43b.id){_43d[_43b.region=="top"||_43b.region=="bottom"?"h":"w"]=_43a;}if(pos=="top"||pos=="bottom"){_43d.w=dim.w;size(_43b,_43d);dim.h-=_43b.h;if(pos=="top"){dim.t+=_43b.h;}else{_43c.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_43d.h=dim.h;size(_43b,_43d);dim.w-=_43b.w;if(pos=="left"){dim.l+=_43b.w;}else{_43c.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_43b,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(_43e){if(!this.disabled){switch(_43e.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 _43f=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_43f);});break;}}},_setStateClass:function(){var _440=this.baseClass.split(" ");function _441(_442){_440=_440.concat(dojo.map(_440,function(c){return c+_442;}),"dijit"+_442);};if(!this.isLeftToRight()){_441("Rtl");}if(this.checked){_441("Checked");}if(this.state){_441(this.state);}if(this.selected){_441("Selected");}if(this.disabled){_441("Disabled");}else{if(this.readOnly){_441("ReadOnly");}else{if(this.active){_441("Active");}else{if(this.hovering){_441("Hover");}}}}if(this._focused){_441("Focused");}var tn=this.stateNode||this.domNode,_443={};dojo.forEach(tn.className.split(" "),function(c){_443[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _443[c];});}dojo.forEach(_440,function(c){_443[c]=true;});var _444=[];for(var c in _443){_444.push(c);}tn.className=_444.join(" ");this._stateClasses=_440;},_trackMouseState:function(node,_445){var _446=false,_447=false,_448=false;var self=this,cn=dojo.hitch(this,"connect",node);function _449(){var _44a=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_445+"Hover",_446&&!_447&&!_44a);dojo.toggleClass(node,_445+"Active",_447&&!_44a);dojo.toggleClass(node,_445+"Focused",_448&&!_44a);};cn("onmouseenter",function(){_446=true;_449();});cn("onmouseleave",function(){_446=false;_447=false;_449();});cn("onmousedown",function(){_447=true;_449();});cn("onmouseup",function(){_447=false;_449();});cn("onfocus",function(){_448=true;_449();});cn("onblur",function(){_448=false;_449();});this.watch("disabled",_449);this.watch("readOnly",_449);}});}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(_44b){this._set("disabled",_44b);dojo.attr(this.focusNode,"disabled",_44b);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_44b);}dijit.setWaiState(this.focusNode,"disabled",_44b);if(_44b){this._set("hovering",false);this._set("active",false);var _44c="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_44c)?_44c:[_44c],function(_44d){var node=this[_44d];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(_44e){dojo.deprecated("setDisabled("+_44e+") is deprecated. Use set('disabled',"+_44e+") instead.","","2.0");this.set("disabled",_44e);},_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(_44f){},_onChangeActive:false,_handleOnChange:function(_450,_451){if(this._lastValueReported==undefined&&(_451===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_450;}this._pendingOnChange=this._pendingOnChange||(typeof _450!=typeof this._lastValueReported)||(this.compare(_450,this._lastValueReported)!=0);if((this.intermediateChanges||_451||_451===undefined)&&this._pendingOnChange){this._lastValueReported=_450;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_450);}),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(_452){dojo.deprecated("dijit.form._FormWidget:setValue("+_452+") is deprecated.  Use set('value',"+_452+") instead.","","2.0");this.set("value",_452);},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 _453=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_453);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_454){dojo.attr(this.focusNode,"readOnly",_454);dijit.setWaiState(this.focusNode,"readonly",_454);this._set("readOnly",_454);},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(_455,_456){this._handleOnChange(_455,_456);},_handleOnChange:function(_457,_458){this._set("value",_457);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 _459=this.domNode;var _45a=_459.parentNode;var _45b=_459.firstChild||_459;var _45c=_45b.style.filter;var _45d=this;while(_45a&&_45a.clientHeight==0){(function ping(){var _45e=_45d.connect(_45a,"onscroll",function(e){_45d.disconnect(_45e);_45b.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_45b.style.filter=_45c;},0);});})();_45a=_45a.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 _45f=this;dojo.mixin(_45f,args);_45f.node=args.node;_45f._showArgs=dojo.mixin({},args);_45f._showArgs.node=_45f.node;_45f._showArgs.duration=_45f.showDuration;_45f.showAnim=_45f.showFunc(_45f._showArgs);_45f._hideArgs=dojo.mixin({},args);_45f._hideArgs.node=_45f.node;_45f._hideArgs.duration=_45f.hideDuration;_45f.hideAnim=_45f.hideFunc(_45f._hideArgs);dojo.connect(_45f.showAnim,"beforeBegin",dojo.hitch(_45f.hideAnim,"stop",true));dojo.connect(_45f.hideAnim,"beforeBegin",dojo.hitch(_45f.showAnim,"stop",true));},show:function(_460){return this.showAnim.play(_460||0);},hide:function(_461){return this.hideAnim.play(_461||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_462={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _463=function(_464){this._index=-1;this._animations=_464||[];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(_463,{_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(_465,_466){if(!this._current){this._current=this._animations[this._index=0];}if(!_466&&this._current.status()=="playing"){return this;}var _467=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_468=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_469=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_467);d.disconnect(_468);d.disconnect(_469);});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(_46a,_46b){this.pause();var _46c=this.duration*_46a;this._current=null;d.some(this._animations,function(a){if(a.duration<=_46c){this._current=a;return true;}_46c-=a.duration;return false;});if(this._current){this._current.gotoPercent(_46c/this._current.duration,_46b);}return this;},stop:function(_46d){if(this._current){if(_46d){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(_463,_462);dojo.fx.chain=function(_46e){return new _463(_46e);};var _46f=function(_470){this._animations=_470||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_470,function(a){var _471=a.duration;if(a.delay){_471+=a.delay;}if(this.duration<_471){this.duration=_471;}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(_46f,{_doAction:function(_472,args){d.forEach(this._animations,function(a){a[_472].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_473,args){var t=this._pseudoAnimation;t[_473].apply(t,args);},play:function(_474,_475){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(_476,_477){var ms=this.duration*_476;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_477);});this._call("gotoPercent",arguments);return this;},stop:function(_478){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(_46f,_462);dojo.fx.combine=function(_479){return new _46f(_479);};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 _47a=d.style(node,"height");return Math.max(_47a,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,_47b){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_47b&&_47b.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_47c){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("|"),_47c);};dojo.regexp.group=function(_47d,_47e){return "("+(_47e?"?:":"")+_47d+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_47f,_480){var c=document.cookie;if(arguments.length==1){var _481=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _481?decodeURIComponent(_481[1]):undefined;}else{_480=_480||{};var exp=_480.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_480.expires=d;}if(exp&&exp.toUTCString){_480.expires=exp.toUTCString();}_47f=encodeURIComponent(_47f);var _482=name+"="+_47f,_483;for(_483 in _480){_482+="; "+_483;var _484=_480[_483];if(_484!==true){_482+="="+_484;}}document.cookie=_482;}};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(_485){var _486=_485.region;if(_486){this.inherited(arguments);dojo.addClass(_485.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_486=="leading"){_486=ltr?"left":"right";}if(_486=="trailing"){_486=ltr?"right":"left";}if(_486!="center"&&(_485.splitter||this.gutters)&&!_485._splitterWidget){var _487=dojo.getObject(_485.splitter?this._splitterClass:"dijit.layout._Gutter");var _488=new _487({id:_485.id+"_splitter",container:this,child:_485,region:_486,live:this.liveSplitters});_488.isSplitter=true;_485._splitterWidget=_488;dojo.place(_488.domNode,_485.domNode,"after");_488.startup();}_485.region=_486;}},layout:function(){this._layoutChildren();},addChild:function(_489,_48a){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_48b){var _48c=_48b.region;var _48d=_48b._splitterWidget;if(_48d){_48d.destroy();delete _48b._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}dojo.removeClass(_48b.domNode,this.baseClass+"Pane");dojo.style(_48b.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});dojo.style(_48b.domNode,_48c=="top"||_48c=="bottom"?"width":"height","auto");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_48e){return !_48e.isSplitter;});},getSplitter:function(_48f){return dojo.filter(this.getChildren(),function(_490){return _490.region==_48f;})[0]._splitterWidget;},resize:function(_491,_492){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(_493,_494){if(!this._borderBox||!this._borderBox.h){return;}var _495=dojo.map(this.getChildren(),function(_496,idx){return {pane:_496,weight:[_496.region=="center"?Infinity:0,_496.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_496.region)?1:-1),idx]};},this);_495.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 _497=[];dojo.forEach(_495,function(_498){var pane=_498.pane;_497.push(pane);if(pane._splitterWidget){_497.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,_497,_493,_494);},destroyRecursive:function(){dojo.forEach(this.getChildren(),function(_499){var _49a=_499._splitterWidget;if(_49a){_49a.destroy();}delete _499._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 _49b=dojo.cookie(this._cookieName);if(_49b){this.child.domNode.style[this.horizontal?"height":"width"]=_49b;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_49c=dojo.marginBox(this.child.domNode)[dim],_49d=dojo.filter(this.container.getChildren(),function(_49e){return _49e.region=="center";})[0],_49f=dojo.marginBox(_49d.domNode)[dim];return Math.min(this.child.maxSize,_49c+_49f);},_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 _4a0=this._factor,_4a1=this.horizontal,axis=_4a1?"pageY":"pageX",_4a2=e[axis],_4a3=this.domNode.style,dim=_4a1?"h":"w",_4a4=dojo.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_4a5=this.region,_4a6=_4a5=="top"||_4a5=="bottom"?"top":"left",_4a7=parseInt(_4a3[_4a6],10),_4a8=this._resize,_4a9=dojo.hitch(this.container,"_layoutChildren",this.child.id),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_4aa){var _4ab=e[axis]-_4a2,_4ac=_4a0*_4ab+_4a4,_4ad=Math.max(Math.min(_4ac,max),min);if(_4a8||_4aa){_4a9(_4ad);}_4a3[_4a6]=_4ab+_4a7+_4a0*(_4ad-_4ac)+"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 _4ae=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _4ae?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _4ae?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _4af=dojo._getMarginSize(this.child.domNode)[_4ae?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_4af,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;}dojo.stopEvent(e);this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _4b0=this.dropDown,_4b1=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&&!_4b1){if(dojo.hasClass(t,"dijitPopup")){_4b1=true;}else{t=t.parentNode;}}if(_4b1){t=e.target;if(_4b0.onItemClick){var _4b2;while(t&&!(_4b2=dijit.byNode(t))){t=t.parentNode;}if(_4b2&&_4b2.onClick&&_4b2.getParent){_4b2.getParent().onItemClick(_4b2,e);}}return;}}}if(this._opened&&_4b0.focus&&_4b0.autoFocus!==false){window.setTimeout(dojo.hitch(_4b0,"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 _4b3={"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"+_4b3+"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,_4b4=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==" ")&&((_4b4.tagName||"").toLowerCase()!=="input"||(_4b4.type&&_4b4.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 _4b5=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_4b5);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_4b6){_4b6();},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 _4b7=this.dropDown,_4b8=_4b7.domNode,_4b9=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_4b8.style.width){this._explicitDDWidth=true;}if(_4b8.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _4ba={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_4ba.width="";}if(!this._explicitDDHeight){_4ba.height="";}dojo.style(_4b8,_4ba);var _4bb=this.maxHeight;if(_4bb==-1){var _4bc=dojo.window.getBox(),_4bd=dojo.position(_4b9,false);_4bb=Math.floor(Math.max(_4bd.y,_4bc.h-(_4bd.y+_4bd.h)));}if(_4b7.startup&&!_4b7._started){_4b7.startup();}dijit.popup.moveOffScreen(_4b7);var mb=dojo._getMarginSize(_4b8);var _4be=(_4bb&&mb.h>_4bb);dojo.style(_4b8,{overflowX:"hidden",overflowY:_4be?"auto":"hidden"});if(_4be){mb.h=_4bb;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_4b9.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_4b9.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_4b7.resize)){_4b7.resize(mb);}else{dojo.marginBox(_4b8,mb);}}var _4bf=dijit.popup.open({parent:this,popup:_4b7,around:_4b9,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 _4bf;},closeDropDown:function(_4c0){if(this._opened){if(_4c0){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 _4c1=dijit.byNode(node);if(_4c1&&typeof _4c1._onSubmit=="function"){_4c1._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_4c2){if(_4c2&&(!this.params||!("label" in this.params))){this.set("label",_4c2.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(_4c3){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_4c3);},_setLabelAttr:function(_4c4){this._set("label",_4c4);this.containerNode.innerHTML=_4c4;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _4c5=this.iconClass||"dijitNoIcon",_4c6=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_4c6,_4c5);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 _4c7=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_4c7[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _4c8=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_4c8);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _4c9=this.dropDown;return (!!_4c9&&(!_4c9.href||_4c9.isLoaded));},loadDropDown:function(){var _4ca=this.dropDown;if(!_4ca){return;}if(!this.isLoaded()){var _4cb=dojo.connect(_4ca,"onLoad",this,function(){dojo.disconnect(_4cb);this.openDropDown();});_4ca.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(_4cc){if(!this.disabled){dijit.focus(_4cc=="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(_4cd,_4ce){this._set("checked",_4cd);dojo.attr(this.focusNode||this.domNode,"checked",_4cd);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_4cd);this._handleOnChange(_4cd,_4ce);},setChecked:function(_4cf){dojo.deprecated("setChecked("+_4cf+") is deprecated. Use set('checked',"+_4cf+") instead.","","2.0");this.set("checked",_4cf);},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(_4d0,_4d1,_4d2){_4d2=dojo.i18n.normalizeLocale(_4d2);var _4d3=_4d2.split("-");var _4d4=[_4d0,"nls",_4d1].join(".");var _4d5=dojo._loadedModules[_4d4];if(_4d5){var _4d6;for(var i=_4d3.length;i>0;i--){var loc=_4d3.slice(0,i).join("_");if(_4d5[loc]){_4d6=_4d5[loc];break;}}if(!_4d6){_4d6=_4d5.ROOT;}if(_4d6){var _4d7=function(){};_4d7.prototype=_4d6;return new _4d7();}}throw new Error("Bundle not found: "+_4d1+" in "+_4d0+" , locale="+_4d2);};dojo.i18n.normalizeLocale=function(_4d8){var _4d9=_4d8?_4d8.toLowerCase():dojo.locale;if(_4d9=="root"){_4d9="ROOT";}return _4d9;};dojo.i18n._requireLocalization=function(_4da,_4db,_4dc,_4dd){var _4de=dojo.i18n.normalizeLocale(_4dc);var _4df=[_4da,"nls",_4db].join(".");var _4e0="";if(_4dd){var _4e1=_4dd.split(",");for(var i=0;i<_4e1.length;i++){if(_4de["indexOf"](_4e1[i])==0){if(_4e1[i].length>_4e0.length){_4e0=_4e1[i];}}}if(!_4e0){_4e0="ROOT";}}var _4e2=_4dd?_4e0:_4de;var _4e3=dojo._loadedModules[_4df];var _4e4=null;if(_4e3){if(dojo.config.localizationComplete&&_4e3._built){return;}var _4e5=_4e2.replace(/-/g,"_");var _4e6=_4df+"."+_4e5;_4e4=dojo._loadedModules[_4e6];}if(!_4e4){_4e3=dojo["provide"](_4df);var syms=dojo._getModuleSymbols(_4da);var _4e7=syms.concat("nls").join("/");var _4e8;dojo.i18n._searchLocalePath(_4e2,_4dd,function(loc){var _4e9=loc.replace(/-/g,"_");var _4ea=_4df+"."+_4e9;var _4eb=false;if(!dojo._loadedModules[_4ea]){dojo["provide"](_4ea);var _4ec=[_4e7];if(loc!="ROOT"){_4ec.push(loc);}_4ec.push(_4db);var _4ed=_4ec.join("/")+".js";_4eb=dojo._loadPath(_4ed,null,function(hash){hash=hash.root||hash;var _4ee=function(){};_4ee.prototype=_4e8;_4e3[_4e9]=new _4ee();for(var j in hash){_4e3[_4e9][j]=hash[j];}});}else{_4eb=true;}if(_4eb&&_4e3[_4e9]){_4e8=_4e3[_4e9];}else{_4e3[_4e9]=_4e8;}if(_4dd){return true;}});}if(_4dd&&_4de!=_4e0){_4e3[_4de.replace(/-/g,"_")]=_4e3[_4e0.replace(/-/g,"_")];}};(function(){var _4ef=dojo.config.extraLocale;if(_4ef){if(!_4ef instanceof Array){_4ef=[_4ef];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_4f0,_4f1){req(m,b,_4f0,_4f1);if(_4f0){return;}for(var i=0;i<_4ef.length;i++){req(m,b,_4ef[i],_4f1);}};}})();dojo.i18n._searchLocalePath=function(_4f2,down,_4f3){_4f2=dojo.i18n.normalizeLocale(_4f2);var _4f4=_4f2.split("-");var _4f5=[];for(var i=_4f4.length;i>0;i--){_4f5.push(_4f4.slice(0,i).join("-"));}_4f5.push(false);if(down){_4f5.reverse();}for(var j=_4f5.length-1;j>=0;j--){var loc=_4f5[j]||"ROOT";var stop=_4f3(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_4f6,_4f7){function _4f8(_4f9){_4f9=dojo.i18n.normalizeLocale(_4f9);dojo.i18n._searchLocalePath(_4f9,true,function(loc){for(var i=0;i<_4f7.length;i++){if(_4f7[i]==loc){dojo["require"](_4f6+"_"+loc);return true;}}return false;});};_4f8();var _4fa=dojo.config.extraLocale||[];for(var i=0;i<_4fa.length;i++){_4f8(_4fa[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,_4fb){var cls=dojo.getObject(this.buttonWidget);var _4fc=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(_4fc.focusNode,"selected","false");var _4fd=["title","showTitle","iconClass","closable","tooltip"],_4fe=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_4fd,function(_4ff,idx){return page.watch(_4ff,function(name,_500,_501){_4fc.set(_4fe[idx],_501);});});this.pane2connects[page.id]=[this.connect(_4fc,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_4fc,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_4fc,_4fb);this.pane2button[page.id]=_4fc;page.controlButton=_4fc;if(!this._currentChild){_4fc.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_4fc.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 _502=this.pane2button[page.id];if(_502){this.removeChild(_502);delete this.pane2button[page.id];_502.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _503=this.pane2button[this._currentChild.id];_503.set("checked",false);dijit.setWaiState(_503.focusNode,"selected","false");_503.focusNode.setAttribute("tabIndex","-1");}var _504=this.pane2button[page.id];_504.set("checked",true);dijit.setWaiState(_504.focusNode,"selected","true");this._currentChild=page;_504.focusNode.setAttribute("tabIndex","0");var _505=dijit.byId(this.containerId);dijit.setWaiState(_505.containerNode,"labelledby",_504.id);},onButtonClick:function(page){var _506=dijit.byId(this.containerId);_506.selectChild(page);},onCloseButtonClick:function(page){var _507=dijit.byId(this.containerId);_507.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_508){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_508=!_508;}var _509=this.getChildren();var _50a=dojo.indexOf(_509,this.pane2button[this._currentChild.id]);var _50b=_508?1:_509.length-1;return _509[(_50a+_50b)%_509.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _50c=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_50c=false;}break;case k.PAGE_UP:if(e.ctrlKey){_50c=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_50c=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_50c=true;}break;case k.HOME:case k.END:var _50d=this.getChildren();if(_50d&&_50d.length){_50d[e.charOrCode==k.HOME?0:_50d.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(_50c!==null){this.adjacent(_50c).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 _50e=this.getChildren();dojo.forEach(_50e,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_50e,function(_50f){if(_50f.selected){this.selectedChildWidget=_50f;}return _50f.selected;},this);}var _510=this.selectedChildWidget;if(!_510&&_50e[0]){_510=this.selectedChildWidget=_50e[0];_510.selected=true;}dojo.publish(this.id+"-startup",[{children:_50e,selected:_510}]);this.inherited(arguments);},resize:function(){var _511=this.selectedChildWidget;if(_511&&!this._hasBeenShown){this._hasBeenShown=true;this._showChild(_511);}this.inherited(arguments);},_setupChild:function(_512){this.inherited(arguments);dojo.replaceClass(_512.domNode,"dijitHidden","dijitVisible");_512.domNode.title="";},addChild:function(_513,_514){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_513,_514]);this.layout();if(!this.selectedChildWidget){this.selectChild(_513);}}},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 _515=this.getChildren();if(_515.length){this.selectChild(_515[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_516){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_516);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(_517,_518,_519){if(_518){this._hideChild(_518);}var d=this._showChild(_517);if(_517.resize){if(this.doLayout){_517.resize(this._containerContentBox||this._contentBox);}else{_517.resize();}}return d;},_adjacent:function(_51a){var _51b=this.getChildren();var _51c=dojo.indexOf(_51b,this.selectedChildWidget);_51c+=_51a?1:_51b.length-1;return _51b[_51c%_51b.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 _51d=this.getChildren();page.isFirstChild=(page==_51d[0]);page.isLastChild=(page==_51d[_51d.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 _51e=page.onClose(this,page);if(_51e){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_51f){dojo.forEach(this.getChildren(),function(_520){this.removeChild(_520);_520.destroyRecursive(_51f);},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 _521=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_521;var _522=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_521},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_522);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_522[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _523=dojo.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_523});}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(_524,_525){var _526=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_524,function(code){_526[code]=prev;});dojo.forEach(_525,function(code){_526[code]=next;});_526[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_526[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(_527,_528){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_527);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _529=this._getFirstFocusableChild();if(_529){this.focusChild(_529);}},focusLastChild:function(){var _52a=this._getLastFocusableChild();if(_52a){this.focusChild(_52a);}},focusNext:function(){var _52b=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_52b);},focusPrev:function(){var _52c=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_52c,true);},focusChild:function(_52d,last){if(this.focusedChild&&_52d!==this.focusedChild){this._onChildBlur(this.focusedChild);}_52d.set("tabIndex",this.tabIndex);_52d.focus(last?"end":"start");this._set("focusedChild",_52d);},_startupChild:function(_52e){_52e.set("tabIndex","-1");this.connect(_52e,"_onFocus",function(){_52e.set("tabIndex",this.tabIndex);});this.connect(_52e,"_onBlur",function(){_52e.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(_52f){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_530,dir){if(_530){_530=this._getSiblingOfChild(_530,dir);}var _531=this.getChildren();for(var i=0;i<_531.length;i++){if(!_530){_530=_531[(dir>0)?0:(_531.length-1)];}if(_530.isFocusable()){return _530;}_530=this._getSiblingOfChild(_530,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(_532){if(_532&&!("label" in this.params)){this.set("label",_532.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _533=this.id+"_text";dojo.attr(this.containerNode,"id",_533);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_533+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_533);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(_534){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_534);},setLabel:function(_535){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_535);},setDisabled:function(_536){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_536);},_setDisabledAttr:function(_537){dijit.setWaiState(this.focusNode,"disabled",_537?"true":"false");this._set("disabled",_537);},_setAccelKeyAttr:function(_538){this.accelKeyNode.style.display=_538?"":"none";this.accelKeyNode.innerHTML=_538;dojo.attr(this.containerNode,"colSpan",_538?"1":"2");this._set("accelKey",_538);}});}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 _539=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_539[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(_53a){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_53a);dijit.setWaiState(this.domNode,"checked",_53a);this._set("checked",_53a);},onChange:function(_53b){},_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(_53c){_53c.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_53d){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _53e=this._getTopMenu();if(_53e&&_53e._isMenuBar){_53e.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _53f=this.currentPopup.parentMenu;if(_53f.focusedChild){_53f.focusedChild._setSelected(false);}_53f.focusedChild=this.currentPopup.from_item;_53f.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 _540=item.popup;if(_540){this._stopPendingCloseTimer(_540);_540._pendingClose_timer=setTimeout(function(){_540._pendingClose_timer=null;if(_540.parentMenu){_540.parentMenu.currentPopup=null;}dijit.popup.close(_540);},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(_541){if(_541._pendingClose_timer){clearTimeout(_541._pendingClose_timer);_541._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 _542=this.focusedChild;if(!_542){return;}var _543=_542.popup;if(_543.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_543.parentMenu=this;_543.from_item=_542;var self=this;dijit.popup.open({parent:this,popup:_543,around:_542.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(_542);self._cleanUp();_542._setSelected(true);self.focusedChild=_542;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_543;_543.connect(_543.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_543.focus){_543._focus_timer=setTimeout(dojo.hitch(_543,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 _544=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(_545){var win=dojo.window.get(this._iframeContentDocument(_545))||this._iframeContentDocument(_545)["__parent__"]||(_545.name&&dojo.doc.frames[_545.name])||null;return win;},_iframeContentDocument:function(_546){var doc=_546.contentDocument||(_546.contentWindow&&_546.contentWindow.document)||(_546.name&&dojo.doc.frames[_546.name]&&dojo.doc.frames[_546.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _547=node,win=this._iframeContentWindow(_547);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _548={node:node,iframe:_547};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_548));var _549=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_547,{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,_547);}})];});_548.connects=cn?_549(cn):[];if(_547){_548.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_547);cn=dojo.withGlobal(win,dojo.body);_548.connects=_549(cn);});if(_547.addEventListener){_547.addEventListener("load",_548.onloadHandler,false);}else{_547.attachEvent("onload",_548.onloadHandler);}}},unBindDomNode:function(_54a){var node;try{node=dojo.byId(_54a);}catch(e){return;}var _54b="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_54b)){var bid=dojo.attr(node,_54b)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _54c=b.iframe;if(_54c){if(_54c.removeEventListener){_54c.removeEventListener("load",b.onloadHandler,false);}else{_54c.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_54b);delete this._bindings[bid];}},_scheduleOpen:function(_54d,_54e,_54f){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_54d,iframe:_54e,coords:_54f});}),1);}},_openMyself:function(args){var _550=args.target,_551=args.iframe,_552=args.coords;if(_552){if(_551){var od=_550.ownerDocument,ifc=dojo.position(_551,true),win=this._iframeContentWindow(_551),_553=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_551),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_551,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_551,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_551,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_551,cs.borderTopWidth):0);_552.x+=ifc.x+left-_553.x;_552.y+=ifc.y+top-_553.y;}}else{_552=dojo.position(_550,true);_552.x+=10;_552.y+=10;}var self=this;var _554=dijit.getFocus(this);function _555(){if(self.refocus){dijit.focus(_554);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_552.x,y:_552.y,onExecute:_555,onCancel:_555,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 _556=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_556=Math.max(_556,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_556+"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 _557=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_557.itemClose);}var _557=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:_557.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_558){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,_559){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,_55a,_55b){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,_55c){var _55d=this.pane2button[page.id];if(this._selectedTab===_55d.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 _55e=this.getChildren();if(_55e.length){var _55f=_55e[this.isLeftToRight()?0:_55e.length-1].domNode,_560=_55e[this.isLeftToRight()?_55e.length-1:0].domNode;return _560.offsetLeft+dojo.style(_560,"width")-_55f.offsetLeft;}else{return 0;}},_enableBtn:function(_561){var _562=this._getTabsWidth();_561=_561||dojo.style(this.scrollNode,"width");return _562>0&&_561<_562;},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 _563=this._enableBtn(this._contentBox.w);this._buttons.style("display",_563?"":"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 _564=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_564);}},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 _565=this.getChildren(),_566=dojo.style(this.scrollNode,"width"),_567=dojo.style(this.containerNode,"width"),_568=_567-_566,_569=this._getTabsWidth();if(_565.length&&_569>_566){return {min:this.isLeftToRight()?0:_565[_565.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_565[_565.length-1].domNode.offsetLeft+dojo.style(_565[_565.length-1].domNode,"width"))-_566:_568};}else{var _56a=this.isLeftToRight()?0:_568;return {min:_56a,max:_56a};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_56b=dojo.style(this.scrollNode,"width"),_56c=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_56b/2;pos=Math.min(Math.max(pos,_56c.min),_56c.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _56d=this._getScrollBounds();x=Math.min(Math.max(x,_56d.min),_56d.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(_56e,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _56f=dojo.style(this.scrollNode,"width");var d=(_56f*0.75)*_56e;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_570){var _571=this._getScrollBounds();this._leftBtn.set("disabled",_570<=_571.min);this._rightBtn.set("disabled",_570>=_571.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(_572){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _573=dijit.byId(this.containerId);dojo.forEach(_573.getChildren(),function(page){var _574=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_573.selectChild(page);}});this.dropDown.addChild(_574);},this);_572();},closeDropDown:function(_575){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(_576){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_577=dojo.getObject(this.controllerWidget);return new _577({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},_576);},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 _578;var _579=this._scrollerWidths();var _57a=this.target;var _57b=dojo.style(this._centerNode,"display");dojo.style(this._centerNode,"display","block");var box=dojo.position(_57a,true);if(_57a===dojo.body()||_57a===dojo.doc){box=dojo.window.getBox();box.x=box.l;box.y=box.t;}var _57c=dojo.marginBox(this._centerNode);dojo.style(this._centerNode,"display",_57b);if(this._ieFixNode){_578=-this._ieFixNode.offsetTop/1000;box.x=Math.floor((box.x+0.9)/_578);box.y=Math.floor((box.y+0.9)/_578);box.w=Math.floor((box.w+0.9)/_578);box.h=Math.floor((box.h+0.9)/_578);}var zi=dojo.style(_57a,"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 _57d=_57a.parentNode;var _57e=-100000;while(_57d&&_57d!==dojo.body()){zi=dojo.style(_57d,"zIndex");if(!zi||zi==="auto"){_57d=_57d.parentNode;}else{var _57f=parseInt(zi,10);if(_57e<_57f){_57e=_57f;ziUl=_57f+1;ziIn=_57f+2;}_57d=_57d.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=_57a.parentNode;if(pn&&pn!==dojo.body()&&_57a!==dojo.body()&&_57a!==dojo.doc){var obh=box.h;var obw=box.w;var _580=dojo.position(pn,true);if(this._ieFixNode){_578=-this._ieFixNode.offsetTop/1000;_580.x=Math.floor((_580.x+0.9)/_578);_580.y=Math.floor((_580.y+0.9)/_578);_580.w=Math.floor((_580.w+0.9)/_578);_580.h=Math.floor((_580.h+0.9)/_578);}_580.w-=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;_580.h-=pn.scrollWidth>pn.clientWidth&&pn.clientWidth>0?_579.h:0;if(dir==="rtl"){if(dojo.isOpera){box.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;_580.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;}else{if(dojo.isIE){_580.x+=pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.v:0;}else{if(dojo.isWebKit){}}}}if(_580.w<box.w){box.w=box.w-_580.w;}if(_580.h<box.h){box.h=box.h-_580.h;}var _581=_580.y;var _582=_580.y+_580.h;var bTop=box.y;var _583=box.y+obh;var _584=_580.x;var _585=_580.x+_580.w;var _586=box.x;var _587=box.x+obw;var _588;if(_583>_581&&bTop<_581){box.y=_580.y;_588=_581-bTop;var _589=obh-_588;if(_589<_580.h){box.h=_589;}else{box.h-=2*(pn.scrollWidth>pn.clientWidth&&pn.clientWidth>0?_579.h:0);}}else{if(bTop<_582&&_583>_582){box.h=_582-bTop;}else{if(_583<=_581||bTop>=_582){box.h=0;}}}if(_587>_584&&_586<_584){box.x=_580.x;_588=_584-_586;var _58a=obw-_588;if(_58a<_580.w){box.w=_58a;}else{box.w-=2*(pn.scrollHeight>pn.clientHeight&&pn.clientHeight>0?_579.w:0);}}else{if(_586<_585&&_587>_585){box.w=_585-_586;}else{if(_587<=_584||_586>=_585){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 _58b=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"];this._cloneStyles(_58b);if(!dojo.isIE){_58b=["MozBorderRadius","MozBorderRadiusTopleft","MozBorderRadiusTopright","MozBorderRadiusBottomleft","MozBorderRadiusBottomright","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius"];this._cloneStyles(_58b,this);}var _58c=(box.h/2)-(_57c.h/2);var _58d=(box.w/2)-(_57c.w/2);if(box.h>=_57c.h&&box.w>=_57c.w){dojo.style(this._centerNode,{top:(_58c+box.y)+"px",left:(_58d+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(_58e){dojo.style(this._underlayNode,_58e,dojo.style(this.target,_58e));},this);},_fadeIn:function(){var self=this;var _58f=dojo.animateProperty({duration:self.duration,node:self._underlayNode,properties:{opacity:{start:0,end:0.75}}});var _590=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([_58f,_590]);this._anim.play();},_fadeOut:function(){var self=this;var _591=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 _592=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([_591,_592]);this._anim.play();},_ignore:function(_593){if(_593){dojo.stopEvent(_593);}},_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(_594){this.centerIndicator=_594;if(_594==="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.Application"]){dojo._hasResource["GeoMOOSE.Application"]=true;dojo.provide("GeoMOOSE.Application");dojo.declare("GeoMOOSE.Application",null,{_tabContainer:"tabs",mapSources:{},events:null,initialize:function(){},startup:function(){var _595=GeoMOOSE.UX.getExtensions();for(var i=0;i<_595.length;i++){var n=new _595[i]();n.load();}var args=GeoMOOSE.getUrlParameters();if(args.debug){CONFIGURATION["debug"]=true;}var _596=undefined;if(args.mapbook){_596=args.mapbook;}this.events=new OpenLayers.Events();this.getMapbook(_596);},getMapbook:function(url){var _597=GeoMOOSE.isDefined(url)?url:CONFIGURATION.mapbook;dojo.xhrGet({"url":_597,"load":dojo.hitch(this,this.gotMapbook),"error":dojo.hitch(this,this.onMapbookLoadError),"handleAs":"xml"});},onGotMapbook:function(_598){},gotMapbook:function(_599){if(!GeoMOOSE.isDefined(_599)){var _59a=dojo.create("div",{},dojo.body());var _59b=dojo.create("div",{"innerHTML":CONFIGURATION.messages.mapbook_invalid},_59a);dojo.style(_59a,{"position":"absolute","top":"0","left":"0","width":"100%","height":"100%","backgroundColor":"white","fontWeight":"bold","fontSize":"1.5em","opacity":".8","zIndex":"1000"});dojo.style(_59b,{"position":"absolute","top":"5%","width":"20em","left":"-10em","marginLeft":"50%","backgroundColor":"white","opacity":"1","padding":".5em","border":"solid 1px #444"});return false;}this.parseConfiguration(_599);this.configureMap();this.configureMapSources(_599);var _59c=GeoMOOSE.getUrlParameters();if(GeoMOOSE.isDefined(_59c.extent)){var _59d=_59c.extent.split(",");for(var i=0;i<4;i++){_59d[i]=parseFloat(_59d[i]);}CONFIGURATION.initial_extent=_59d;}Map.zoomToExtent(OpenLayers.Bounds.fromArray(CONFIGURATION.initial_extent));this.onGotMapbook(_599);if(this.active_map_source){GeoMOOSE.activateMapSource(this.active_map_source);}},onMapbookLoadError:function(_59e){},_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,_59f){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(_5a0){var _5a1=_5a0.getElementsByTagName("configuration")[0];if(_5a1&&_5a1.childNodes){var _5a2=_5a1.getElementsByTagName("param");var _5a3=_5a2.length;for(var p=0;p<_5a3;p++){var _5a4=_5a2[p];var name=_5a4.getAttribute("name");var _5a5=OpenLayers.Util.getXmlNodeValue(_5a4);var _5a6=this._getConfigValue(name);var _5a7=typeof (_5a6);if(_5a6 instanceof Array){if(_5a5[0]=="["&&_5a5[_5a5.length-1]=="]"){_5a5=_5a5.substring(1,_5a5.length-1);}_5a5=eval("["+_5a5+"]");}else{if(_5a7=="string"){}else{if(_5a7=="boolean"){_5a5=parseBoolean(_5a5);}else{if(_5a7=="object"){_5a5=dojo.fromJson(_5a5);}else{_5a5=eval("("+_5a5+")");}}}}this._setConfigValue(name,_5a5);try{}catch(e){GeoMOOSE.warning(GeoMOOSE.processTemplate(CONFIGURATION.messages.mapbook_param_error,{"FIELD":name}));}}}},configureMap:function(){CONFIGURATION.scales=CONFIGURATION.scales.sort().reverse();var _5a8={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 _5a9={"scales":"resolutions","maxResolution":"maxResolution","numZoomLevels":"numZoomLevels"};for(var key in _5a9){if(GeoMOOSE.isDefined(CONFIGURATION[key])){_5a8[_5a9[key]]=CONFIGURATION[key];}}if(GeoMOOSE.isDefined(_5a8["numZoomLevels"])&&GeoMOOSE.isDefined(_5a8["maxResolution"])){if(GeoMOOSE.isDefined(_5a8["resolutions"])){delete _5a8["resolutions"];}}Map=new OpenLayers.Map("mapContainer",_5a8);_5a8["singleTile"]=true;this.navigationLayer=new OpenLayers.Layer.WMS("GeoMOOSE Navigation Layer","images/blank.gif",{},_5a8);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();});},configureMapTools:function(){Tools["pan"]=new OpenLayers.Control.Navigation();Tools["zoomin"]=new OpenLayers.Control.ZoomBox();Tools["zoomout"]=new OpenLayers.Control.ZoomBox({out:true});var _5aa=["pan","zoomin","zoomout"];for(var i=0,len=_5aa.length;i<len;i++){Map.addControl(Tools[_5aa[i]]);}if(CONFIGURATION["always_scroll_zoom"]){var nav=new OpenLayers.Control.Navigation();Map.addControl(nav);}var _5ab=new OpenLayers.Control.NavigationHistory();Map.addControl(_5ab);var _5ac={activate:function(){_5ab.previous.trigger();},deactivate:function(){}};var next={activate:function(){_5ab.next.trigger();},deactivate:function(){}};var _5ad={activate:function(){Map.zoomToMaxExtent();},deactivate:function(){}};Tools["previous"]=_5ac;Tools["next"]=next;Tools["fullextent"]=_5ad;},configureMapSources:function(_5ae){this.mapSources={};var _5af=null;var _5b0=_5ae.getElementsByTagName("map-source");for(var i=_5b0.length-1;i>=0;i--){var _5b1=_5b0[i];var _5b2=GeoMOOSE.getMapSourceType(_5b1.getAttribute("type"));var name=_5b1.getAttribute("name");if(typeof (_5b2)=="undefined"){GeoMOOSE.warning("Undefined Layer Type : "+_5b1.getAttribute("type"));}else{if(this.mapSources[name]){GeoMOOSE.warning("map-source \""+name+"\" is being redefined!.");}this.mapSources[name]=new _5b2(_5b1);this.mapSources[name].addToMap(Map);dojo.connect(this.mapSources[name],"onLayersChange",this.onLayersChange);}if(parseBoolean(_5b1.getAttribute("active"),false)){_5af=name;}}this.active_map_source=_5af;},getMapSource:function(name){var _5b3=name.split("/");return this.mapSources[_5b3[0]];},onLayersChange:function(path,_5b4){},getVisibleLayers:function(){var _5b5=[];for(var name in this.mapSources){if(this.mapSources[name].isVisible()){_5b5.push(name);}var _5b6=this.mapSources[name]._getLayersList();for(var i=0,len=_5b6.length;i<len;i++){_5b6[i]=name+"/"+_5b6[i];}_5b5=_5b5.concat(_5b6);}return _5b5;},configureServiceManager:function(){},activateMapSource:function(path){this.active_map_source=path;this.onActivateMapSource(path);},getActiveMapSource:function(){return this.active_map_source;},onActivateMapSource:function(path){}});}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(_5b7,_5b8,_5b9){OpenLayers.Handler.Box.prototype.initialize.apply(this,arguments);},endBox:function(end){var _5ba;var _5bb=this.dragHandler.start;var top=Math.min(_5bb.y,end.y);var _5bc=Math.max(_5bb.y,end.y);var left=Math.min(_5bb.x,end.x);var _5bd=Math.max(_5bb.x,end.x);_5ba=new OpenLayers.Bounds(left,_5bc,_5bd,top);this.removeBox();var _5be=new OpenLayers.Geometry.Polygon();var _5bf=[[left,_5bc],[left,top],[_5bd,top],[_5bd,_5bc]];var ring=new OpenLayers.Geometry.LinearRing();for(var i=0;i<_5bf.length;i++){var px=new OpenLayers.Pixel(_5bf[i][0],_5bf[i][1]);var ll=this.map.getLonLatFromPixel(px);ring.addPoint(new OpenLayers.Geometry.Point(ll.lon,ll.lat));}_5be.addComponent(ring);this.geometry=_5be;this.callback("done",[_5be]);},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.9;OpenLayers.Control.Measure.prototype.activate.apply(this,arguments);},initialize:function(_5c0,_5c1){this.callbacks=OpenLayers.Util.extend({mousemove:this.measureMove},this.callbacks);OpenLayers.Control.Measure.prototype.initialize.apply(this,[_5c0,_5c1]);this.events.addEventType("measuremove");},measureImmediate:function(_5c2,_5c3,_5c4){if(_5c4&&this.delayedTrigger===null&&!this.handler.freehandMode(this.handler.evt)){this.measure(_5c3.geometry,"measuremove");}},measure:function(_5c5,_5c6){var stat,_5c7;if(_5c5.CLASS_NAME.indexOf("LineString")>-1){stat=this.getLength(_5c5,"in");_5c7=1;}else{stat=this.getArea(_5c5,"in");_5c7=2;}if(_5c6!="measuremove"){var _5c8=this.last_move_length;if(_5c8!=0){this.segments.push(_5c8);}for(var i=0,sum=0;i<this.segments.length;sum+=this.segments[i++]){}this.total=sum;this.last_move_length=0;}if(_5c6=="measurepartial"){this.partials++;if(this.partials==1){this.segments=new Array();this.total=0;return false;}}if(_5c6=="measuremove"){stat=stat-this.total;this.last_move_length=stat;}this.events.triggerEvent(_5c6,{measure:stat,units:"in",order:_5c7,geometry:_5c5});if(_5c6=="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(_5c9,_5ca){OpenLayers.Control.prototype.initialize.apply(this,[_5ca]);this.layer=_5c9;this.handler=new OpenLayers.Handler.Feature(this,_5c9,{click:this.clickFeature});},clickFeature:function(_5cb){if(_5cb.fid==undefined){this.layer.destroyFeatures([_5cb]);}else{_5cb.state=OpenLayers.State.DELETE;this.layer.events.triggerEvent("afterfeaturemodified",{feature:_5cb});_5cb.renderIntent="select";this.layer.drawFeature(_5cb);}},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 _5cc=n.scrollLeft,_5cd=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_5cc!=n.scrollLeft||_5cd!=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,_5ce){this.node=dojo.byId(node);if(!_5ce){_5ce={};}this.handle=_5ce.handle?dojo.byId(_5ce.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_5ce.delay>0?_5ce.delay:0;this.skip=_5ce.skip;this.mover=_5ce.mover?_5ce.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(_5cf,node){return new dojo.dnd.Moveable(node,_5cf);},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(_5d0){dojo.publish("/dnd/move/start",[_5d0]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_5d1){dojo.publish("/dnd/move/stop",[_5d1]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_5d2,e){},onMove:function(_5d3,_5d4,e){this.onMoving(_5d3,_5d4);var s=_5d3.node.style;s.left=_5d4.l+"px";s.top=_5d4.t+"px";this.onMoved(_5d3,_5d4);},onMoving:function(_5d5,_5d6){},onMoved:function(_5d7,_5d8){}});}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(_5d9,node){return new dojo.dnd.move.constrainedMoveable(node,_5d9);},constructor:function(node,_5da){if(!_5da){_5da={};}this.constraints=_5da.constraints;this.within=_5da.within;},onFirstMove:function(_5db){var c=this.constraintBox=this.constraints.call(this,_5db);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_5db.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_5dc,_5dd){var c=this.constraintBox,s=_5dc.node.style;this.onMoving(_5dc,_5dd);_5dd.l=_5dd.l<c.l?c.l:c.r<_5dd.l?c.r:_5dd.l;_5dd.t=_5dd.t<c.t?c.t:c.b<_5dd.t?c.b:_5dd.t;s.left=_5dd.l+"px";s.top=_5dd.t+"px";this.onMoved(_5dc,_5dd);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_5de,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_5de);},constructor:function(node,_5df){var box=_5df&&_5df.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_5e0,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_5e0);},constructor:function(node,_5e1){var area=_5e1&&_5e1.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 _5e2=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_5e3){if(!_5e3){_5e3={};}if(_5e3.timeout&&typeof _5e3.timeout=="number"&&_5e3.timeout>=0){this.timeout=_5e3.timeout;}},markupFactory:function(_5e4,node){return new dojo.dnd.TimedMoveable(node,_5e4);},onMoveStop:function(_5e5){if(_5e5._timer){clearTimeout(_5e5._timer);_5e2.call(this,_5e5,_5e5._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_5e6,_5e7){_5e6._leftTop=_5e7;if(!_5e6._timer){var _5e8=this;_5e6._timer=setTimeout(function(){_5e6._timer=null;_5e2.call(_5e8,_5e6,_5e6._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(_5e9){if(_5e9.reset){_5e9.reset();}});},validate:function(){var _5ea=false;return dojo.every(dojo.map(this.getDescendants(),function(_5eb){_5eb._hasBeenBlurred=true;var _5ec=_5eb.disabled||!_5eb.validate||_5eb.validate();if(!_5ec&&!_5ea){dojo.window.scrollIntoView(_5eb.containerNode||_5eb.domNode);_5eb.focus();_5ea=true;}return _5ec;}),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(_5ed){if(!_5ed.name){return;}var _5ee=map[_5ed.name]||(map[_5ed.name]=[]);_5ee.push(_5ed);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _5ef=map[name],_5f0=dojo.getObject(name,false,obj);if(_5f0===undefined){continue;}if(!dojo.isArray(_5f0)){_5f0=[_5f0];}if(typeof _5ef[0].checked=="boolean"){dojo.forEach(_5ef,function(w,i){w.set("value",dojo.indexOf(_5f0,w.value)!=-1);});}else{if(_5ef[0].multiple){_5ef[0].set("value",_5f0);}else{dojo.forEach(_5ef,function(w,i){w.set("value",_5f0[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(_5f1){var name=_5f1.name;if(!name||_5f1.disabled){return;}var _5f2=_5f1.get("value");if(typeof _5f1.checked=="boolean"){if(/Radio/.test(_5f1.declaredClass)){if(_5f2!==false){dojo.setObject(name,_5f2,obj);}else{_5f2=dojo.getObject(name,false,obj);if(_5f2===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_5f2!==false){ary.push(_5f2);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_5f2);}else{dojo.setObject(name,[prev,_5f2],obj);}}else{dojo.setObject(name,_5f2,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_5f3){},_getState:function(){var _5f4=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_5f4,"Error")>=0?"Error":dojo.indexOf(_5f4,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_5f5){var _5f6=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_5f5?function(name,val){_5f6[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _5f7=(this._childConnections=[]),_5f8=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_5f9){dojo.forEach(["state","disabled"],function(attr){_5f8.push(_5f9.watch(attr,function(attr,_5fa,_5fb){_5f6.set("state",_5f6._getState());}));});});var _5fc=function(){if(_5f6._onChangeDelayTimer){clearTimeout(_5f6._onChangeDelayTimer);}_5f6._onChangeDelayTimer=setTimeout(function(){delete _5f6._onChangeDelayTimer;_5f6._set("value",_5f6.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_5fd){_5f7.push(_5f6.connect(_5fd,"onChange",_5fc));_5f8.push(_5fd.watch("disabled",_5fc));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_5fe,_5ff){this.onValidStateChange(_5ff=="");});},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(_600){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _601=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_601.lowest||_601.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_601.last||_601.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(_602){this.node.className="dijitDialogUnderlay "+_602;this._set("class",_602);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _603=dojo.window.getBox();os.top=_603.t+"px";os.left=_603.l+"px";is.width=_603.w+"px";is.height=_603.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.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(_604){_604.startup();_604._started=true;});},startup:function(){if(this._started){return;}var _605=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_605&&_605.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 _606=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_607=_606.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_608=dojo.filter(_607.map(dijit.byNode),function(_609){return _609&&_609.domNode&&_609.resize;});if(_606.length==_607.length&&_608.length==1){this._singleChild=_608[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_60a,_60b){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_60a,_60b);},_scheduleLayout:function(_60c,_60d){if(this._isShown()){this._layout(_60c,_60d);}else{this._needLayout=true;this._changeSize=_60c;this._resultSize=_60d;}},_layout:function(_60e,_60f){if(_60e){dojo.marginBox(this.domNode,_60e);}var cn=this.containerNode;if(cn===this.domNode){var mb=_60f||{};dojo.mixin(mb,_60e||{});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(_610){if(_610.resize){_610.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,_611=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_611&&_611.style&&(_611.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 _612=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 _613=cont.length,i=0;i<cont.length;i=_613==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(_614,node){dojo.mixin(this,_614||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_612++].join("_");}},set:function(cont,_615){if(undefined!==cont){this.content=cont;}if(_615){this._mixin(_615);}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 _616=this.onContentError(e);try{node.innerHTML=_616;}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 _617=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_617){cont=_617[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(_618){var _619={},key;for(key in _618){if(key in _619){continue;}this[key]=_618[key];}},_parse:function(){var _61a=this.node;try{var _61b={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_61b[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_61a,noStart:!this.startup,inherited:_61b,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_61c){var _61d=this["on"+type+"Error"].call(this,err);if(_61c){console.error(_61c,err);}else{if(_61d){dojo.html._setNodeContent(this.node,_61d,true);}}}});dojo.html.set=function(node,cont,_61e){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_61e){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_61e,{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(_61f,_620){if((!_61f||!_61f.template)&&_620&&!("href" in _61f)&&!("content" in _61f)){var df=dojo.doc.createDocumentFragment();_620=dojo.byId(_620);while(_620.firstChild){df.appendChild(_620.firstChild);}_61f=dojo.delegate(_61f,{content:df});}this.inherited(arguments,[_61f,_620]);},postMixInProperties:function(){this.inherited(arguments);var _621=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_621);this.errorMessage=dojo.string.substitute(this.errorMessage,_621);},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(_622){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 _623={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_623,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_623));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 _624=this._contentSetter;dojo.forEach(this.getChildren(),function(_625){if(_625.destroyRecursive){_625.destroyRecursive();}});if(_624){dojo.forEach(_624.parseResults,function(_626){if(_626.destroyRecursive&&_626.domNode&&_626.domNode.parentNode==dojo.body()){_626.destroyRecursive();}});delete _624.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_627){this.destroyDescendants();var _628=this._contentSetter;if(!(_628&&_628 instanceof dojo.html._ContentSetter)){_628=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _629=this.onContentError(e);try{this.containerNode.innerHTML=_629;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _62a=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_628.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_62a);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_627){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_62b){this.onLoadDeferred.errback(err);var _62c=this["on"+type+"Error"].call(this,err);if(_62b){console.error(_62b,err);}else{if(_62c){this._setContent(_62c,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_62d){},onDownloadError:function(_62e){return this.errorMessage;},onDownloadEnd:function(){}});}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(_62f){this.containerNode.title=_62f;this._set("title",_62f);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_630,_631){var newC="dijitTooltipAB"+(_631.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_631.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 _632=(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(!_632){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_632){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 _633=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_633);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 _634=dojo.window.getBox();if(mb.w>=_634.w||mb.h>=_634.h){var w=Math.min(mb.w,Math.floor(_634.w*0.75)),h=Math.min(mb.h,Math.floor(_634.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,_635=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_635.l+(p?p.x:(_635.w-bb.w)/2)),t=Math.floor(_635.t+(p?p.y:(_635.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 _636=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_636){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_636){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 _637=dojo.window.getBox();if(!this._oldViewport||_637.h!=this._oldViewport.h||_637.w!=this._oldViewport.w){this.layout();this._oldViewport=_637;}}));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 _638;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_638.stop();delete this._fadeInDeferred;}));_638=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 _639;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_639.stop();delete this._fadeOutDeferred;}));_639=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(_63a,_63b){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_63a);var _63c=dijit._underlay;if(!_63c||_63c._destroyed){_63c=dijit._underlay=new dijit.DialogUnderlay(_63b);}else{_63c.set(_63a.underlayAttrs);}var _63d=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_63c.show();}dojo.style(dijit._underlay.domNode,"zIndex",_63d-1);dojo.style(_63a.domNode,"zIndex",_63d);ds.push({dialog:_63a,underlayAttrs:_63b,zIndex:_63d});},hide:function(_63e){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_63e){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(_63e.refocus){var _63f=pd.focus;if(!_63f||(pd.dialog&&!dojo.isDescendant(_63f.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_63f=pd.dialog._firstFocusItem;}try{dijit.focus(_63f);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_63e);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_640){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_640;}};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(_641,_642,_643){var _644;if(_641!==undefined){_644=this.filter(_641);if(typeof _643!="string"){if(_644!==null&&((typeof _644!="number")||!isNaN(_644))){_643=this.filter(this.format(_644,this.constraints));}else{_643="";}}}if(_643!=null&&_643!=undefined&&((typeof _643)!="number"||!isNaN(_643))&&this.textbox.value!=_643){this.textbox.value=_643;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_644,_642]);},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(_645){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_645);},_setDisplayedValueAttr:function(_646){if(_646===null||_646===undefined){_646="";}else{if(typeof _646!="string"){_646=String(_646);}}this.textbox.value=_646;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_647,_648){return ((_647==null||_647==undefined)?"":(_647.toString?_647.toString():_647));},parse:function(_649,_64a){return _649;},_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 _64b=this;setTimeout(function(){_64b._handleOnChange(_64b.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 _64c=this.domNode.getElementsByTagName("INPUT");if(_64c){for(var i=0;i<_64c.length;i++){_64c[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 _64d;if(dojo.isIE){var _64e=dojo.doc.selection.createRange();var _64f=_64e.parentElement();_64d=_64f==this.textbox&&_64e.text.length==0;}else{_64d=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_64d){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_650,_651,stop){var _652=dojo.global;var _653=dojo.doc;_650=dojo.byId(_650);if(isNaN(_651)){_651=0;}if(isNaN(stop)){stop=_650.value?_650.value.length:0;}dijit.focus(_650);if(_653["selection"]&&dojo.body()["createTextRange"]){if(_650.createTextRange){var r=_650.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_651);r.moveEnd("character",stop-_651);r.select();}}else{if(_652["getSelection"]){if(_650.setSelectionRange){_650.setSelectionRange(_651,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:[],postCreate:function(){this.inherited(arguments);this.content_id=GeoMOOSE.id();var _654=dojo.create("div",{"id":this.content_id});this.set("content",_654);var pos=dojo.position(dojo.body());dojo.style(_654,{"width":"300px","height":"300px"});dojo.style(_654,{"padding":"2px"});},_updateAttribute:function(attr,_655){this.feature.attributes[attr]=_655;},show:function(_656){var _657=_656.feature;var _658=dojo.byId(this.content_id);_658.innerHTML="";var _659=new dijit.layout.BorderContainer({},_658);if(this._main){this._main.destroyRecursive();}var main=dojo.create("div",{});var _65a=new dijit.layout.ContentPane({"content":main,"region":"center"});this._main=_65a;_659.addChild(_65a);_659.startup();this.feature=_657;var _65b={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _65c=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){_65b[_65c]=GeoMOOSE.Services.InputType[x];}}}var _65d=[];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 _65e=this.feature_desc[i]["name"];var _65f=this.feature_desc[i]["type"].toLowerCase();if(!GeoMOOSE.isDefined(_65b[_65f])){_65f="user";}var _660=new _65b[_65f](null,{"name":_65e,"title":this.feature_desc[i]["label"]});var _661=this.feature_desc[i]["value"];if(_657.attributes[_65e]){_661=_657.attributes[_65e];}_660.setValue(_661);if(_660.requiresRender()){_660.renderHTML(c_id);}_65d.push(_660);}var _662=new dijit.Toolbar({"region":"top"});_659.addChild(_662);_662.addChild(new dijit.form.Button({"label":"Cancel","iconClass":"dijitIconDelete","onClick":dojo.hitch(this,this.hide)}));_662.addChild(new dijit.form.Button({"label":"Save Changes","iconClass":"dijitIconSave","onClick":dojo.hitch(this,function(){for(var i=0,ii=_65d.length;i<ii;i++){this._updateAttribute(_65d[i].getName(),_65d[i].getValue());}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 _663=dojo.create("div",{});this.set("content",_663);dojo.style(_663,{"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 _664={"href":url,"innerHTML":urls[i].label};if(url!="#"){_664["target"]="_blank";}var link=dojo.create("a",_664,_663);dojo.addClass(link,"geomooseDownloadLink");dojo.connect(link,"onclick",dojo.hitch(this,this.hide));}}});}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){this.path=path;this.name=name;this.on=on;}});dojo.declare("GeoMOOSE.MapSource",null,{mapbookType:null,_ol_layer:null,path:"",params:{},paths:[],_parseParams:function(_665){var _666={};var _667=_665.getElementsByTagName("param");for(var p=0,len=_667.length;p<len;p++){var _668=_667[p];_666[_668.getAttribute("name")]=_668.getAttribute("value");}return _666;},_parseLayers:function(_669){var _66a=_669.getElementsByTagName("layer");var _66b=[];for(var i=0,len=_66a.length;i<len;i++){var name=_66a[i].getAttribute("name");_66b.push(new GeoMOOSE._Layer(this.path,name,parseBoolean(_66a[i].getAttribute("status"))));this.paths.push(this.path+"/"+name);}return _66b;},onLayersChange:function(path,_66c){if(this._ol_layer){this._ol_layer.setVisibility(this.isVisible());}},_getLayersList:function(){var _66d=[];for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].on===true){_66d.push(this.layers[i].name);}}return _66d;},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(_66e){return _66e;},constructor:function(_66f){this.paths=[];_66f=this.preParseNode(_66f);this.path=_66f.getAttribute("name");this.params=this._parseParams(_66f);this.layers=this._parseLayers(_66f);this.attributes={};var _670=["opacity","buffer"];for(var i=0,ii=_670.length;i<ii;i++){var _671=_66f.getAttribute(_670[i]);if(!GeoMOOSE.isDefined(_671)){_671=null;}this.attributes[_670[i]]=_671;}},checkPath:function(path){return (dojo.indexOf(this.paths,path)>=0);},setVisibility:function(path,_672){var _673=path.split("/");var _674=_673.pop();var _675=false;if(this.checkPath(path)){for(var i=0,len=this.layers.length;i<len;i++){if(this.layers[i].name==_674){if(_672!=this.layers[i].on){this.layers[i].on=_672;_675=true;}}}}if(_675){this.onLayersChange(path,_672);}},addToMap:function(map){map.addLayers([this._ol_layer]);},setUrl:function(url){},getUrl:function(){return "";},redraw:function(){if(this._ol_layer){this._ol_layer.redraw();}},getParameters:function(_676){return this.params;},getOpacity:function(){var lay=this._ol_layer;if(lay.opacity!=null){return lay.opacity;}return 1;},setOpacity:function(_677){var _678=this._ol_layer;if(_677>1){_677=1;}if(_677<0){_677=0;}if(_678){_678.setOpacity(_677);}},getLegendUrls:function(_679){return [];},moveUp:function(){Map.raiseLayer(this._ol_layer,1);},moveDown:function(){Map.raiseLayer(this._ol_layer,-1);},updateParameters:function(_67a){dojo.mixin(this.params,_67a);},clearParameters:function(_67b){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});}});}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,checkPath:function(path){return (path==this.path);},isVisible:function(){return this.visibility;},setVisibility:function(path,_67c){if(this.checkPath(path)){if(this.visibility!=_67c){this.visibility=_67c;this._ol_layer.setVisibility(this.isVisible());if(_67c===true){this._ol_layer.redraw({force:true});}}}},_createOLLayer:function(_67d){this._ol_layer_name="vector"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.Vector(this._ol_layer_name,{styleMap:this.style_map});this._ol_layer.setVisibility(this.isVisible());},_addOLHooks:function(){this._ol_layer.events.register("beforefeatureadded",this,function(_67e){var _67f=_67e.feature;if(!GeoMOOSE.isDefined(_67f.attributes)){_67f.attributes={};}for(var i=0,len=this.attributes.length;i<len;i++){var attr=this.attributes[i];var _680="";if(GeoMOOSE.isDefined(attr["default"])){_680=attr["default"];}if(!GeoMOOSE.isDefined(_67f.attributes[attr["name"]])){_67f.attributes[attr["name"]]=_680;}}});},addToMap:function(map){this.inherited(arguments);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"}),"edit_attributes":new OpenLayers.Control.SelectFeature(this._ol_layer),"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(){}}};for(var _681 in this.controls){map.addControl(this.controls[_681]);Tools[this._ol_layer_name+"_"+_681]=this.controls[_681];}this.controls["edit_attributes"].events.register("featurehighlighted",this,function(ev){var _682=new GeoMOOSE.Dialog.AttributeEditor({"feature_desc":this.attributes});_682.show(ev);});},editable:true,constructor:function(_683){this.supports={"point":true,"line":true,"polygon":true,"modify":true,"edit_attributes":true,"remove":true,"remove_all":true};var _684=_683.getAttribute("supports");if(GeoMOOSE.isDefined(_684)&&_684!=""){_684=_684.split(",");if(_684.length>0){for(var _685 in this.supports){this.supports[_685]=(dojo.indexOf(_684,_685)>=0);}}}var urls=_683.getElementsByTagName("url");if(urls.length>0){this.url=OpenLayers.Util.getXmlNodeValue(_683.getElementsByTagName("url")[0]);}var _686=_683.getElementsByTagName("attribute");this.attributes=[];for(var i=0,len=_686.length;i<len;i++){var attr=_686[i];var _687=attr.getAttribute("label");var _688=attr.getAttribute("name"),_689=attr.getAttribute("type");var _68a=attr.getAttribute("default-value");var _68b=parseBoolean(attr.getAttribute("mandatory"),false);this.attributes.push({"name":_688,"type":_689,"default":_68a,"mandatory":_68b,"label":_687});}var _68c=_683.getElementsByTagName("style");var _68d={};for(var i=0,len=_68c.length;i<len;i++){var _68e=_68c[i].getAttribute("type");var _68f=_68c[i].getAttribute("intent");var _690=OpenLayers.Util.getXmlNodeValue(_68c[i]);if(!GeoMOOSE.isDefined(_68f)||_68f==""){_68f="default";}if(_68e=="stylemap"){var _691=dojo.fromJson(_690);if(GeoMOOSE.isDefined(_68d[_68f])){dojo.mixin(_68d[_68f],_691);}else{_68d[_68f]=_691;}}else{if(_68e=="sld"){}}}if(GeoMOOSE.isDefined(_68d["select"])){if(!GeoMOOSE.isDefined(_68d["select"]["label"])){dojo.mixin(_68d["select"],{"label":""});}}else{_68d["select"]={"label":""};}var _692=new OpenLayers.Style();for(var _68f in _68d){var _693=dojo.clone(OpenLayers.Feature.Vector.style[_68f]);dojo.mixin(_693,_68d[_68f]);_68d[_68f]=_693;_68d[_68f]=new OpenLayers.Style(_68d[_68f],{defaultStyle:false});}this.style_map=new OpenLayers.StyleMap(_68d);var _694={};this.visibility=parseBoolean(_683.getAttribute("status"),false);this._createOLLayer(_694);this._addOLHooks();},save:function(){},printable:true,print:function(){var _695=this._ol_layer;var _696={"type":"vector","features":[]};for(var i=0,len=_695.features.length;i<len;i++){_696.features.push({"geometry":_695.features[i].geometry.toString(),"attributes":_695.features[i].attributes,"style":_695.styleMap.createSymbolizer(_695.features[i])});}return _696;}});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(_697){this._ol_layer_name="wfs"+GeoMOOSE.id();this.save_strategy=new OpenLayers.Strategy.Save();this._ol_layer=new OpenLayers.Layer.Vector(this._ol_layer_name,{strategies:[new OpenLayers.Strategy.BBOX(),this.save_strategy],projection:new OpenLayers.Projection(CONFIGURATION.projection),styleMap:this.style_map,visibility:false,protocol:new OpenLayers.Protocol.WFS({version:"1.1.0",srsName:this.srsName,url:this.url,featureNS:this.featureNS,featureType:this.featureType,geometryName:this.featureGeometryName,schema:this.featureSchema})});},preParseNode:function(_698){var _699={"featureNS":"feature-namespace","featureType":"feature-type","featureSchema":"schema","featureGeometryName":"geometry-name"};var name=_698.getAttribute("name");for(var name in _699){var _69a=_698.getElementsByTagName(_699[name]);if(_69a.length>0){this[name]=OpenLayers.Util.getXmlNodeValue(_69a[0]);}else{GeoMOOSE.warning("Missing \""+_699[name]+"\" from \""+name+"\", this may cause errors if trying to use this layer for editing.");}}this.srsName=_698.getAttribute("srs");if(!GeoMOOSE.isDefined(this.srsName)){this.srsName=CONFIGURATION.projection;}return _698;},save:function(){this.save_strategy.save();}});GeoMOOSE.registerMapSourceType("wfs",GeoMOOSE.MapSource.Vector.WFS);}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(_69b){this._ol_layer_name=GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.WMS(this._ol_layer_name,this.urls,this.params,_69b);},constructor:function(_69c){this.urls=[];var urls=_69c.getElementsByTagName("url");for(var i=0,len=urls.length;i<len;i++){this.urls.push(OpenLayers.Util.getXmlNodeValue(urls[i]));}var _69d={singleTile:!parseBoolean(_69c.getAttribute("tiled"),false),isBaseLayer:false,ratio:1,visibility:this.isVisible()};var _69e=parseFloat(_69c.getAttribute("buffer"));if(_69e){_69d.ratio=_69e;}if(!_69d.singleTile){var w=_69c.getAttribute("width");var h=_69c.getAttribute("height");if(w&&h){_69d.tileSize=new OpenLayers.Size(parseFloat(w),parseFloat(h));}}if(!GeoMOOSE.isDefined(this.params["FORMAT"])){this.params["FORMAT"]="image/png";}if(!GeoMOOSE.isDefined(this.params["TRANSPARENT"])){this.params["TRANSPARENT"]="TRUE";}this._createOLLayer(_69d);if(GeoMOOSE.isDefined(this.attributes["opacity"])){this.setOpacity(parseFloat(this.attributes["opacity"]));}this.updateParameters({});this.onLayersChange();},onLayersChange:function(path,_69f){this._ol_layer.params["LAYERS"]=this._getLayersList().join(",");this.inherited(arguments);this._ol_layer.redraw();},getUrl:function(){return this.urls;},setUrl:function(url){this.urls=[url];this._ol_layer.url=url;},updateParameters:function(_6a0){this.inherited(arguments);this._ol_layer.mergeNewParams(this.params);},clearParameters:function(){var _6a1=["service","version","request","styles","format"];var _6a2={};for(var i=0,ii=_6a1.length;i<ii;i++){_6a2[_6a1[i]]=this._ol_layer.DEFAULT_PARAMS[_6a1[i]];}this._ol_layer.params=_6a2;},getLegendUrls:function(_6a3){var _6a4=this._ol_layer.getURL(OpenLayers.Bounds.fromArray(GeoMOOSE.getExtent())).replace("REQUEST=GetMap","REQUEST=GetLegendGraphic");_6a4+="&SCALE="+GeoMOOSE.getScale();var _6a5=this._getLayersList();var _6a6=[];var _6a7=false;if(_6a3 instanceof Array){for(var i=0,len=_6a3.length;i<len;i++){_6a3[i]=_6a3[i].split("/")[1];}for(var p=0,plen=_6a3.length;p<plen;p++){if(dojo.indexOf(_6a5,_6a3[p])>=0){_6a6.push(_6a4+"&LAYER="+_6a3[p]);}}}else{for(var i=0,len=_6a5.length;i<len;i++){_6a6.push(_6a4+"&LAYER="+_6a5[i]);}}return _6a6;},getLayerParams:function(_6a8){if(_6a8===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 _6a9={"type":"wms","url":this.urls[0],"layers":this._getLayersList(),"legends":this.getLegendUrls(),"params":this.getLayerParams(true)};return _6a9;}});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(_6aa){var urls=_6aa.getElementsByTagName("url").length;var doc=_6aa.ownerDocument;if(urls==0){var _6ab=doc.createElement("url");_6ab.appendChild(doc.createTextNode(CONFIGURATION.mapserver_url));_6aa.appendChild(_6ab);}var file="";try{file=OpenLayers.Util.getXmlNodeValue(_6aa.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: "+_6aa.getAttribute("name"));}var _6ac=doc.createElement("param");_6ac.setAttribute("name","map");_6ac.setAttribute("value",file);_6aa.appendChild(_6ac);return _6aa;}});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(_6ad){this._ol_layer_name="tms"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.TMS(this._ol_layer_name,this.urls,_6ad);},constructor:function(_6ae){this.urls=[];var urls=_6ae.getElementsByTagName("url");for(var i=0,len=urls.length;i<len;i++){this.urls.push(OpenLayers.Util.getXmlNodeValue(urls[i]));}var _6af={visibility:this.isVisible(),isBaseLayer:false,sphericalMercator:true};var w=_6ae.getAttribute("width");var h=_6ae.getAttribute("height");if(!GeoMOOSE.isDefined(w)){w=256;}if(!GeoMOOSE.isDefined(h)){h=256;}_6af.tileSize=new OpenLayers.Size(parseFloat(w),parseFloat(h));var _6b0="png";if(GeoMOOSE.isDefined(this.params["FORMAT"])){_6b0=this.params["FORMAT"];delete this.params["FORMAT"];}var _6b1=_6b0.indexOf("/");if(_6b1>0){_6b0=_6b0.substring(_6b1+1);}_6af["type"]=_6b0;_6af["layername"]=this.layers[0].name;dojo.mixin(_6af,this.params);this._createOLLayer(_6af);this.onLayersChange();},onLayersChange:function(path,_6b2){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(_6b3){this._ol_layer_name="xyz"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.XYZ(this._ol_layer_name,this.urls,_6b3);}});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],{_createOLLayer:function(_6b4){this._ol_layer_name="google"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.Google(this._ol_layer_name,_6b4);},constructor:function(_6b5){if(!GeoMOOSE.isDefined(window.google)||!GeoMOOSE.isDefined(google.maps)||!GeoMOOSE.isDefined(google.maps.MapTypeId.TERRAIN)){var _6b6="Warning, this application has a Google Maps layer defined in the mapbook, but the Google Maps library has not been included.";GeoMOOSE.error(_6b6);this._ol_layer_name="goog_error"+GeoMOOSE.id();this._ol_layer=this._createBlankLayer(this._ol_layer_name);return false;}var _6b7={visibility:this.isVisible(),isBaseLayer:false};var _6b8={"physical":google.maps.MapTypeId.TERRAIN,"streets":null,"hybrid":google.maps.MapTypeId.HYBRID,"satellite":google.maps.MapTypeId.SATELLITE};var _6b9=_6b5.getAttribute("google-type");var _6ba=_6b8[_6b9];if(GeoMOOSE.isDefined(_6ba)){_6b7["type"]=_6ba;}this._createOLLayer(_6b7);this.onLayersChange();},onLayersChange:function(path,_6bb){this.inherited(arguments);this._ol_layer.redraw();}});GeoMOOSE.registerMapSourceType("google",GeoMOOSE.MapSource.Google);}if(!dojo._hasResource["GeoMOOSE.MapSource.Yahoo"]){dojo._hasResource["GeoMOOSE.MapSource.Yahoo"]=true;dojo.provide("GeoMOOSE.MapSource.Yahoo");dojo.declare("GeoMOOSE.MapSource.Yahoo",[GeoMOOSE.MapSource],{_createOLLayer:function(_6bc){this._ol_layer_name="yahoo"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.Yahoo(this._ol_layer_name,_6bc);},constructor:function(_6bd){if(!GeoMOOSE.isDefined(window.YAHOO_MAP_REG)){var _6be="Warning, this application has a Yahoo Maps layer defined in the mapbook, but the Yahoo Maps library has not been included.";GeoMOOSE.error(_6be);this._ol_layer_name="yaho_error"+GeoMOOSE.id();this._ol_layer=this._createBlankLayer(this._ol_layer_name);return false;}var _6bf={visibility:this.isVisible(),sphericalMercator:true,isBaseLayer:false};var _6c0={"map":YAHOO_MAP_REG,"hybrid":YAHOO_MAP_HYB,"satellite":YAHOO_MAP_SAT};var _6c1=_6bd.getAttribute("yahoo-type");var _6c2=_6c0[_6c1];if(GeoMOOSE.isDefined(_6c2)){_6bf["type"]=_6c2;}this._createOLLayer(_6bf);this.onLayersChange();},onLayersChange:function(path,_6c3){this.inherited(arguments);this._ol_layer.redraw();}});GeoMOOSE.registerMapSourceType("yahoo",GeoMOOSE.MapSource.Yahoo);}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(_6c4){this._ol_layer_name="ags"+GeoMOOSE.id();this._ol_layer=new OpenLayers.Layer.ArcGIS93Rest(this._ol_layer_name,this.urls,this.params,_6c4);},printable:false});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(_6c5){this._set("readOnly",_6c5);dojo.attr(this.focusNode,"readOnly",_6c5);dijit.setWaiState(this.focusNode,"readonly",_6c5);},_setValueAttr:function(_6c6,_6c7){if(typeof _6c6=="string"){this._set("value",_6c6);dojo.attr(this.focusNode,"value",_6c6);_6c6=true;}if(this._created){this.set("checked",_6c6,_6c7);}},_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(_6c8){},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(_6c9){this.inherited(arguments);if(!this._created){return;}if(_6c9){var _6ca=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_6cb){if(_6cb.name==_6ca.name&&_6cb!=_6ca.focusNode&&_6cb.form==_6ca.focusNode.form){var _6cc=dijit.getEnclosingWidget(_6cb);if(_6cc&&_6cc.checked){_6cc.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 _6cd=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(_6ce,obj){var m=_6ce.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=[_6cd(m1,m2,H+1/3)*256,_6cd(m1,m2,H)*256,_6cd(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _6cf=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(_6cf(t.r,0,255));t.g=Math.round(_6cf(t.g,0,255));t.b=Math.round(_6cf(t.b,0,255));t.a=_6cf(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(_6d0,_6d1,_6d2){this._cells=[];var url=this._blankGif;_6d2=_6d2||dojo.getObject(this.dyeClass);for(var row=0;row<_6d0.length;row++){var _6d3=dojo.create("tr",{tabIndex:"-1"},this.gridNode);for(var col=0;col<_6d0[row].length;col++){var _6d4=_6d0[row][col];if(_6d4){var _6d5=new _6d2(_6d4,row,col);var _6d6=dojo.create("td",{"class":this.cellClass,tabIndex:"-1",title:_6d1[_6d4]});_6d5.fillCell(_6d6,url);this.connect(_6d6,"ondijitclick","_onCellClick");this._trackMouseState(_6d6,this.cellClass);dojo.place(_6d6,_6d3);_6d6.index=this._cells.length;this._cells.push({node:_6d6,dye:_6d5});}}}this._xDim=_6d0[0].length;this._yDim=_6d0.length;var _6d7={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1};for(var key in _6d7){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _6d8=_6d7[key];return function(_6d9){this._navigateByKey(_6d8,_6d9);};}(),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 _6da=evt.currentTarget,_6db=this._getDye(_6da).getValue();this._setCurrent(_6da);setTimeout(dojo.hitch(this,function(){dijit.focus(_6da);this._setValueAttr(_6db,true);}));dojo.removeClass(_6da,"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(_6dc,_6dd){if(this._selectedCell>=0){dojo.removeClass(this._cells[this._selectedCell].node,"dijitPaletteCellSelected");}this._selectedCell=-1;if(_6dc){for(var i=0;i<this._cells.length;i++){if(_6dc==this._cells[i].dye.getValue()){this._selectedCell=i;dojo.addClass(this._cells[i].node,"dijitPaletteCellSelected");break;}}}this._set("value",this._selectedCell>=0?_6dc:null);if(_6dd||_6dd===undefined){this.onChange(_6dc);}},onChange:function(_6de){},_navigateByKey:function(_6df,_6e0){if(_6e0==-1){return;}var _6e1=this._currentFocus.index+_6df;if(_6e1<this._cells.length&&_6e1>-1){var _6e2=this._cells[_6e1].node;this._setCurrent(_6e2);setTimeout(dojo.hitch(dijit,"focus",_6e2),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(_6e3,row,col){this._alias=_6e3;this._row=row;this._col=col;this.setColor(dojo.Color.named[_6e3]);},getValue:function(){return this.toHex();},fillCell:function(cell,_6e4){var html=dojo.string.substitute(this.hc?this.hcTemplate:this.template,{color:this.toHex(),blankGif:_6e4,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(_6e5,_6e6){this.input=_6e5;this.options={renderable:false,title:""};OpenLayers.Util.extend(this.options,_6e6||{});if(_6e5!=null){if(_6e5.getAttribute("value")){this.value=_6e5.getAttribute("value");}if(_6e5.childNodes.length>0){this.value=OpenLayers.Util.getXmlNodeValue(_6e5);}}},requiresRender:function(){return this.options.renderable;},setValue:function(_6e7){this.value=_6e7;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(_6e8){},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 _6e9=this.input.getAttribute("delim");if(!_6e9){_6e9=",";}return Map.getExtent().toArray().join(_6e9);}});GeoMOOSE.Services.InputType.VisibleLayers=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"visiblelayers",getValue:function(){var _6ea=this.input.getAttribute("delim");if(!_6ea){_6ea=":";}return GeoMOOSE.getVisibleLayers().join(_6ea);}});GeoMOOSE.Services.InputType.Sketches=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"sketches",getValue:function(){var _6eb=Map.getLayersByName("sketchlayer")[0];var wkt=new OpenLayers.Format.WKT();var _6ec=[];for(var i=0;i<_6eb.features.length;i++){var _6ed=_6eb.features[i];var _6ee={};_6ee["wkt"]=wkt.write(_6ed);for(var k in _6ed.attributes){_6ee[k]=_6ed.attributes[k];}_6ec.push(_6ee);}var json=new OpenLayers.Format.JSON();return json.write(_6ec);}});GeoMOOSE.Services.InputType.PrintInfo=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"print_info",getValue:function(){var _6ef=Application.mapSources;var _6f0=[];for(var src in _6ef){if(_6ef[src].printable&&_6ef[src].isVisible()){_6f0.push(_6ef[src].print());}}return dojo.toJson(_6f0);}});GeoMOOSE.Services.InputType.User=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"user",initialize:function(_6f1,_6f2){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;},updateServiceSetting:function(){this.input_obj.setValue(this.value);},keyCallService:function(_6f3){if(window.event){_6f3=window.event;}var _6f4=null;if(_6f3.which){_6f4=_6f3.which;}else{if(_6f3.keyCode){_6f4=_6f3.keyCode;}}if(_6f4==13){this.onchange();var _6f5=document.getElementById("submit-service");if(GeoMOOSE.isDefined(_6f5)){_6f5.onclick();}}},renderHTML:function(_6f6){var p=document.getElementById(_6f6);var _6f7=document.createElement("span");_6f7.className="service-input-parent";p.appendChild(_6f7);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 _6f8=document.createElement("span");_6f8.className="service-input-title";_6f7.appendChild(_6f8);_6f8.innerHTML=this.getTitle();_6f7.appendChild(i);}});GeoMOOSE.Services.InputType.Select=OpenLayers.Class(GeoMOOSE.Services.InputType,{MAPBOOK_NAME:"select",input:null,initialize:function(_6f9,_6fa){this.options={renderable:true,title:""};OpenLayers.Util.extend(this.options,_6fa||{});this.input=_6f9;},getValue:function(){if(this.input){return this.input.getAttribute("value");}return this.value;},getOptions:function(){var opts=this.input.getElementsByTagName("option");var _6fb=[];for(var i=0;i<opts.length;i++){_6fb.push({value:opts[i].getAttribute("value"),name:OpenLayers.Util.getXmlNodeValue(opts[i])});}return _6fb;},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(_6fc){var p=document.getElementById(_6fc);var _6fd=document.createElement("span");_6fd.className="service-input-parent";p.appendChild(_6fd);var _6fe=document.createElement("select");_6fe.input_obj=this;var _6ff=document.createElement("span");_6ff.className="service-input-title";_6fd.appendChild(_6ff);_6ff.innerHTML=this.getTitle();_6fd.appendChild(_6fe);var _700=this.getOptions();var _701=0;var val=this.getValue();for(var i=0;i<_700.length;i++){if(_700[i].value==val){_701=i;}var opt=document.createElement("option");opt.selected=false;opt.setAttribute("value",_700[i].value);_6fe.appendChild(opt);opt.appendChild(document.createTextNode(_700[i].name));}var _702=_6fe.getElementsByTagName("option")[_701];_702.selected=true;this.setValue(_702.value);_6fe.onchange=this.updateSettings;}});GeoMOOSE.Services.InputType.AjaxSelect=OpenLayers.Class(GeoMOOSE.Services.InputType.Select,{MAPBOOK_NAME:"ajax_select",options:[],got_opts_from_req:function(_703){var _704=[];var _705=_703.responseXML;var opts=_705.getElementsByTagName("option");for(var i=0;i<opts.length;i++){_704.push({value:opts[i].getAttribute("value"),name:OpenLayers.Util.getXmlNodeValue(opts[i])});}this.options=_704;},getOptions:function(){var url=this.input.getElementsByTagName("url")[0];url=OpenLayers.Util.getXmlNodeValue(url);var _706=new OpenLayers.Request.GET({url:url,async:false,success:OpenLayers.Function.bind(this.got_opts_from_req,this)});return this.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(_707,_708){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(_709){var p=document.getElementById(_709);var _70a=document.createElement("span");_70a.className="service-input-parent";p.appendChild(_70a);var text=document.createElement("span");text.className="service-input-text";_70a.appendChild(text);text.innerHTML=this.getValue();}});GeoMOOSE.Services.InputType.TextArea=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"textarea",renderHTML:function(_70b){var p=document.getElementById(_70b);var _70c=document.createElement("span");_70c.className="service-input-parent";p.appendChild(_70c);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 _70d=document.createElement("span");_70d.className="service-input-title";_70c.appendChild(_70d);_70d.innerHTML=this.getTitle();_70c.appendChild(i);}});GeoMOOSE.Services.InputType.Checkbox=OpenLayers.Class(GeoMOOSE.Services.InputType.User,{MAPBOOK_NAME:"checkbox",renderHTML:function(_70e){var p=document.getElementById(_70e);var _70f=document.createElement("span");_70f.className="service-input-parent";p.appendChild(_70f);var _710=document.createElement("span");_710.className="service-input-title";_70f.appendChild(_710);_710.innerHTML=this.getTitle();var i=dojo.create("input",{"type":"checkbox"},_70f);this._input=new dijit.form.CheckBox({"checked":parseBoolean(this.getValue())},i);dojo.connect(this._input,"onChange",dojo.hitch(this,this._setValue));},_setValue:function(_711){this.setValue(_711);}});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(_712){var p=dojo.byId(_712);var _713=dojo.create("span",{},p);dojo.addClass(_713,"service-input-parent");var _714=dojo.create("span",{innerHTML:this.getTitle()},_713);dojo.addClass(_714,"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},_713));},_setValue:function(_715){this.setValue(_715);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(_716,_717){GeoMOOSE.Services.InputType.prototype.initialize.apply(this,arguments);this.options.renderable=true;this.units=CONFIGURATION.measure_tool.line_units;if(_716.getAttribute("units")){this.units=_716.getAttribute("units");}},renderHTML:function(_718){var p=dojo.byId(_718);var _719=dojo.create("span",{},p);dojo.addClass(_719,"service-input-parent");var _71a=dojo.create("span",{innerHTML:this.getTitle()},_719);dojo.addClass(_71a,"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",{},_719));dojo.style(this._textbox.domNode,{"width":"5em"});var _71b=[];for(var i=0,ii=this.unit_order.length;i<ii;i++){var unit=this.unit_order[i];_71b.push({"value":unit,"label":this.unit_labels[unit]});}this._select=new dijit.form.Select({onChange:dojo.hitch(this,this._setValue),options:_71b,value:this.units},dojo.create("span",{},_719));},_setValue:function(_71c){var unit=this._select.get("value");var _71d=parseFloat(this._textbox.get("value"));this.input.setAttribute("units",unit);this.setValue(GeoMOOSE.convertLength(_71d,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);},constructor:function(){this.drawing_layer=new OpenLayers.Layer.Vector(GeoMOOSE.id());Map.addLayers([this.drawing_layer]);this.tools={};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);this.unique_name=GeoMOOSE.id();for(var t in this.tools){Map.addControl(this.tools[t]);}var _71e=["point","line","polygon","box"];for(var i=0;i<4;i++){this.tools[_71e[i]].events.register("featureadded",this,this._onFeatureAdded);}this.input_types={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _71f=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){this.input_types[_71f]=GeoMOOSE.Services.InputType[x];}}}},start:function(_720,_721){var _722=GeoMOOSE.id();var _723=dojo.create("div",{"id":_722});this.content.set("content",_723);this.removeChild(this.header);this.removeChild(this.footer);this._settingsObj=_720;this._forceStart=_721;var _724=this.service_xml.getElementsByTagName("step");var _725=0;var _726=_722;this.steps=[];var _727="service-"+this.unique_name;if(_724.length==0){var _728=_727+"0";var _729=dojo.create("div",{"id":_728},_723);_725+=this.renderInputStep(this.service_xml,_728,_720);this.steps.push(_728);}else{for(var i=0;i<_724.length;i++){var _72a=new String(_724[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=_727+i;_723.appendChild(div);this.steps.push(div.id);if(_72a=="input"){_725+=this.renderInputStep(_724[i],div.id,_720);}else{if(_72a=="select"||_72a=="spatial"){_725+=this.renderSpatialStep(_724[i],div.id,_720);}}var _72b=document.createElement("table");_72b.width="95%";var _72c=document.createElement("tbody");div.appendChild(_72b);_72b.appendChild(_72c);var tr=document.createElement("tr");_72c.appendChild(tr);var left=document.createElement("td");left.align="left";tr.appendChild(left);var _72d=document.createElement("td");_72d.align="right";tr.appendChild(_72d);_72d.id=_727+"-right-"+i;if(i>0){var _72e=document.createElement("input");_72e.value="Back";_72e.type="button";left.appendChild(_72e);_72e.className="service-button-back";_72e.step=i-1;_72e.onclick=this._changeStep;}else{var _72f=document.createElement("input");_72f.type="button";_72f.value="Cancel";left.appendChild(_72f);_72f.className="service-button-back";dojo.connect(_72f,"onclick",dojo.hitch(this,this._closeMe));}if(i<_724.length-1){var _730=document.createElement("button");_730.innerHTML="Next";_72d.appendChild(_730);_730.className="service-button-next";_730.parent=this;_730.step=i+1;_730.onclick=this._changeStep;}}_726=_727+"-right-"+(_724.length-1);}var _731=this.service_xml.getAttribute("submit");if(!_731){_731="Go!";}if(parseBoolean(this.service_xml.getAttribute("display-submit"),true)&&parseBoolean(this.service_xml.getAttribute("display"),true)){var _732=document.createElement("button");_732.id="submit-service";_732.innerHTML=_731;_732.onclick=dojo.hitch(this,function(){if(this.meetsRequirements()){this.callService();}else{alert(CONFIGURATION.messages.requirement_failure);}});var _733=document.getElementById(_726);_733.appendChild(_732);if(_725<=0||_721){_732.onclick();}}else{if(_725<=0||_721){this.callService();}}},meetsRequirements:function(){var _734=this.service_xml;var _735=_734.getElementsByTagName("input");var _736=true;for(var i=0;i<_735.length;i++){if(parseBoolean(_735[i].getAttribute("required"))){var v=_735[i].getAttribute("value");if(!(v&&v!="")){_736=false;}}}var _737=_734.getElementsByTagName("step");for(var i=0;i<_737.length;i++){if(parseBoolean(_737[i].getAttribute("required"))){var v=_737[i].getAttribute("wkt");if(!(v&&v!="")){_736=false;}}}return _736;},renderInputStep:function(step,_738,_739){var _73a=step.getElementsByTagName("input");var _73b=0;var _73c=step.getElementsByTagName("header");var p=document.getElementById(_738);for(var i=0;i<_73c.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-header";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_73c[i]);}var _73d=[];var _73e=[];for(var i=0;i<_73a.length;i++){var _73f=new String(_73a[i].getAttribute("type")).toLowerCase();if(this.input_types[_73f]){var _740=new this.input_types[_73f](_73a[i]);_73d.push(_740);if(_740.requiresRender()){_73e.push(_740);_73b++;}var name=_740.getName();if(_739&&_739[name]){_740.setValue(_739[name]);}}}for(var i=0;i<_73e.length;i++){_73e[i].renderHTML(_738);}var _741=step.getElementsByTagName("footnote");var p=document.getElementById(_738);if(GeoMOOSE.isDefined(p)){for(var i=0;i<_741.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-footnote";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_741[i]);}var _73a=p.getElementsByTagName("input");var _742=true;for(var i=0;i<_73a.length&&_742;i++){if(_73a[i].type!="hidden"&&_73a[i].type!="radio"){_73a[i].focus();_742=false;}}}return _73b;},geotools:{"pan":{"status":true,"title":"Navigate"},"edit-polygon":{"status":false,"title":"Edit Polygon"},"point":{"status":true,"title":"Draw Point"},"line":{"status":true,"title":"Draw Line"},"polygon":{"status":true,"title":"Draw Polygon"},"box":{"status":false,"title":"Draw Box"}},renderSpatialStep:function(step,_743,_744){Map.setLayerIndex(this.drawing_layer,Map.getNumLayers());var wkt=false;var _745=false;if(_744&&_744[step.getAttribute("name")]){wkt=_744[step.getAttribute("name")];_745=true;}else{if(step.getAttribute("wkt")){wkt=step.getAttribute("wkt");if(!step.getAttribute("format")||step.getAttribute("format").toLowerCase()=="wkt"){_745=true;}}}var _746=new OpenLayers.Format.WKT();if(wkt){if(!this.drawing_layer.getVisibility()){this.drawing_layer.addFeatures(_746.read(wkt));}var _747=step.getElementsByTagName("input");var _748=false;for(var i=0;i<_747.length;i++){if(_747[i].getAttribute("name")==step.getAttribute("name")){_748=_747[i];}}if(_745){if(_748){step.removeChild(_748);}var _748=step.ownerDocument.createElement("input");_748.setAttribute("name",step.getAttribute("name"));_748.setAttribute("type","hidden");_748.appendChild(step.ownerDocument.createCDATASection(wkt));step.appendChild(_748);}}this.drawing_layer.setVisibility(true);if(parseBoolean(step.getAttribute("show-tools"),true)){var p=document.getElementById(_743);p.appendChild(document.createTextNode("Available Tools: "));p.appendChild(document.createElement("br"));var _749=GeoMOOSE.id();var _74a={};var _74b=null;for(var v in this.geotools){if(parseBoolean(step.getAttribute(v),this.geotools[v]["status"])){var _74c=dojo.create("div",{},p);var _74d=dojo.create("span",{},_74c);var _74e=dojo.create("span",{"innerHTML":this.geotools[v].title},_74c);if(!GeoMOOSE.isDefined(_74b)&&v!="pan"){_74b=v;}_74a[v]=new dijit.form.RadioButton({"name":_749,"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();}}})},_74d);}}p.appendChild(document.createElement("br"));var _74f=step.getAttribute("default");if(GeoMOOSE.isDefined(_74f)&&GeoMOOSE.isDefined(_74a[_74f])){_74a[_74f].set("checked",true);}else{_74a[_74b].set("checked",true);}}else{if(step.getAttribute("default")){}else{alert(CONFIGURATION.messages.service_config_error);}}return 1+this.renderInputStep(step,_743,_744);},callService:function(_750){var _751=this.service_xml;var _752=_751.getElementsByTagName("input");var url=OpenLayers.Util.getXmlNodeValue(_751.getElementsByTagName("url")[0]);var _753={};for(var i=0;i<_752.length;i++){var _754=new String(_752[i].getAttribute("type")).toLowerCase();if(this.input_types[_754]){var _755=new this.input_types[_754](_752[i]);var _756=_755.getName();var _757=_755.getValue();if(_750&&_750[_756]){_757=_750[_756];}_753[_756]=escape(_757);}}this.lastServiceParams=_753;this.onStart();if(_751.getAttribute("target")=="_blank"){dijit.byId("tabs").closeChild(GeoMOOSE.getTab(this.name));var _758="";for(var p in _753){_758+="&"+p+"="+_753[p];}window.open(url+"?"+_758);}else{this.query=dojo.xhrPost({"url":url,"preventCache":true,"content":_753,"load":dojo.hitch(this,this.onServiceReturn),"error":dojo.hitch(this,this.onServiceError),"handleAs":"xml"});}this.onFinish();},onServiceError:function(_759){GeoMOOSE.error("Error Calling the server:\n"+_759);},onServiceReturn:function(_75a){var xml=new OpenLayers.Format.XML();var html="";if(!GeoMOOSE.isDefined(_75a)){html=CONFIGURATION.messages.service_return_error;}else{var _75b=_75a.getElementsByTagName("script");var js="";for(var s=0;s<_75b.length;s++){js+=xml.concatChildValues(_75b[s]);}if(_75b.length>0){eval(js);}var _75c=_75a.getElementsByTagName("html");for(var h=0;h<_75c.length;h++){html+=xml.concatChildValues(_75c[h]);}var _75d=_75a.getElementsByTagName("popup");for(var p=0;p<_75d.length;p++){var pp=_75d[p];}}if(!GeoMOOSE.isDefined(this.domNode.parentNode)){return false;}if(html!=""){if(!this._isJumpStart){this.disableTools();}this.addChild(this.header);var _75e=dojo.create("div",{innerHTML:"Back to Settings"});var _75f=dojo.create("span",{},_75e,"first");this.header.set("content",_75e);dojo.addClass(_75f,["dijitIcon","sprite-control","sprite-control-previous"]);dojo.style(_75f,{"vertical-align":"middle","height":"16px"});dojo.style(_75e,{"cursor":"pointer","fontSize":"1.1em","textDecoration":"underline"});dojo.connect(_75e,"onclick",dojo.hitch(this,this.toBeginning));this.content.set("content",html);this.resize();dijit.byId("tabs").selectChild(this);}else{}if(GeoMOOSE.isDefined(_75a)){this.renderReturnFooter(_75a);}},renderReturnFooter:function(_760){var xml=new OpenLayers.Format.XML();var _761=_760.getElementsByTagName("footer");var _762="";for(var i=0,ii=_761.length;i<ii;i++){_762+=xml.concatChildValues(_761[i]);}if(_762!=""){this.addChild(this.footer);this.footer.set("content",_762);this.resize();}},disableTools:function(){for(var t in this.tools){if(this.tools[t].deactivate()){this._lastTool=t;}}},restoreTools:function(){if(GeoMOOSE.isDefined(this._lastTool)){this.tools[this._lastTool].activate();}},onStart:function(){this.content.set("content",CONFIGURATION.waiting_html);},onFinish:function(){},_onFeatureAdded:function(_763){while(this.drawing_layer.features.length>0){this.drawing_layer.removeFeatures(this.drawing_layer.features[0]);}this.drawing_layer.addFeatures([_763.feature],{silent:true});var _764=new OpenLayers.Format.WKT();var wkt=_764.write(_763.feature);var step=null;var _765=this.service_xml.getElementsByTagName("step");for(var i=0,_766=_765.length;i<_766;i++){if(_765[i].getAttribute("type")=="spatial"){step=_765[i];}}step.setAttribute("wkt",wkt);var _767=OpenLayers.Format.WKT;var _768=new String(step.getAttribute("format")).toLowerCase();if(_768=="kml"){_767=OpenLayers.Format.KML;}else{if(_768=="wfs"){_767=OpenLayers.Format.WFS;}else{if(_768=="json"){_767=OpenLayers.Format.JSON;}else{if(_768=="delim"){_767=OpenLayers.Format.Text;var _769=step.getAttribute("delim");var _76a=step.getAttribute("point-delim");if(!_769){_769=",";}if(!_76a){_76a=",";}var _76b=function(g){var _76c=[];if(g.components){for(var i=0;i<g.components.length;i++){if(g.components[i] instanceof OpenLayers.Geometry.Point){_76c+=g.components[i];}else{if(g.components){this(g);}}}}else{if(g instanceof OpenLayers.Geometry.Point){return [g];}}return _76c;};_767=function(){this.write=function(f){var _76d=_76b(f.geometry);for(var i=0;i<_76d.length;i++){_76d[i]=_76d[i].x+_769+_76d[i].y;}return _76d.join(_76a);};};}}}}var _76e=new _767();var _76f=step.getElementsByTagName("input");var _770=step.getAttribute("name");for(var i=0,len=_76f.length;i<len;i++){if(_76f[i].getAttribute("name")==_770){step.removeChild(_76f[i]);}}if(GeoMOOSE.isDefined(step.getAttribute("reproject"))){var _771=step.getAttribute("reproject");if(_771=="EPSG:4326"||_771=="WGS84"){dest_proj=new OpenLayers.Projection("EPSG:4326");}else{dest_proj=OpenLayers.Projection(_771);}_763.feature.geometry=OpenLayers.Projection.transform(_763.feature.geometry,Map.getProjectionObject(),dest_proj);}var doc=this.service_xml.ownerDocument;var _772=doc.createElement("input");_772.setAttribute("name",_770);_772.setAttribute("type","hidden");_772.appendChild(doc.createCDATASection(_76e.write(_763.feature)));step.appendChild(_772);if(parseBoolean(step.getAttribute("jump-start"),false)){this._isJumpStart=true;this.callService();}else{this._isJumpStart=false;}},onClose:function(){for(var t in this.tools){this.tools[t].deactivate();Map.removeControl(this.tools[t]);delete this.tools[t];}if(GeoMOOSE.isDefined(this.drawing_layer)){Map.removeLayer(this.drawing_layer);this.drawing_layer=null;}var _773=this.inherited(arguments);if(this.header){this.header.destroyRecursive();}if(this.footer){this.footer.destroyRecursive();}return _773;},onHide:function(){this.inherited(arguments);this.disableTools();},onShow:function(){this.inherited(arguments);this.restoreTools();},_closeMe:function(){dijit.byId("tabs").closeChild(this);},_changeStep:function(){this.parent.changeStep(this.step);},changeStep:function(step){var _774=document.getElementById(this.steps[step]);var _775=this.content.domNode.getElementsByTagName("div");for(var i=0;i<_775.length;i++){if(_775[i].className=="service-step-visible"){_775[i].className="service-step-hidden";}}_774.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:"",constructor:function(_776,_777,_778){var p=dojo.byId(_776);var _779=_777.getAttribute("title");var tip=_777.getAttribute("tip");this.title=_779;var _77a=dojo.create("div",{title:tip},p);this.div=_77a;var _77b=dojo.create("div",{},_77a);this.checkbox_id=GeoMOOSE.id();var _77c=dojo.create("span",{"id":this.checkbox_id},_77b);this.paths={};var src=_777.getAttribute("src");this.src=src;if(GeoMOOSE.isDefined(src)){var _77d=src.split(":");for(var i=0;i<_77d.length;i++){this.paths[_77d[i]]=false;}}var _77e=dijit.form.CheckBox;if(_778===false){var _77e=dijit.form.RadioButton;}var cbox=new _77e({},_77c);dojo.connect(cbox,"onChange",dojo.hitch(this,function(v){var _77f=[];for(var src in this.paths){this.paths[src]=v;_77f.push(src);}GeoMOOSE.changeLayerVisibility(_77f,v);}));var _779=dojo.create("span",{"innerHTML":_779},_77b);var _780=dojo.create("div",{},_77a);for(var i=0;i<CONFIGURATION.layer_control_order.length;i++){var _781=CONFIGURATION.layer_control_order[i];var _782=parseBoolean(_777.getAttribute(_781),CONFIGURATION.layer_controls[_781].on);if(_782){var _783=GeoMOOSE._getLayerControl(_781);if(GeoMOOSE.isDefined(_783)){var _784=new _783({layer:this});_784.draw(_780);}}}var _785=parseBoolean(_777.getAttribute("drawing"),false);if(_785){if(!GeoMOOSE.isDefined(src)){GeoMOOSE.warning("Cannot draw on this layer, the SRC is not defined.");}else{if(GeoMOOSE.isEditable(src)){}else{GeoMOOSE.warning("Drawing tool will not work on layer \""+src+"\", it is not an editable map source type.");}}}this.legends_id=GeoMOOSE.id();var _786=dojo.create("div",{"id":this.legends_id},_77a);dojo.addClass(_786,["catalog_legend_container"]);var _787=parseBoolean(_777.getAttribute("show-legend"),true);if(!_787){dojo.style(_786,{"height":"auto","display":"none"});}var _788=_777.getElementsByTagName("legend");this.dynamic_legends=(_788.length<=0);for(var i=0,len=_788.length;i<len;i++){dojo.create("img",{"src":OpenLayers.Util.getXmlNodeValue(_788[i])},_786);}this.metadata_url="";var _789=_777.getElementsByTagName("metadata");if(_789.length>0){this.metadata_url=OpenLayers.Util.getXmlNodeValue(_789[0]);}p=null;},activateMapSource:function(_78a){var _78b=false;for(var p in this.paths){if(_78a==p){_78b=true;break;}}if(_78b){dojo.addClass(this.div,"catalog-active-map-source");}else{dojo.removeClass(this.div,"catalog-active-map-source");}},updateListing:function(_78c,_78d){this.active_paths=[];var _78e=false;for(var i=0;i<_78c.length;i++){if(typeof (this.paths[_78c[i]])=="boolean"){this.paths[_78c[i]]=_78d;_78e=true;}}for(var path in this.paths){if(this.paths[path]===true){this.active_paths.push(path);}}var _78f=dijit.byId(this.checkbox_id);if(_78e){_78f.set("checked",_78d);}if(this.dynamic_legends&&_78e){var _790=dojo.byId(this.legends_id);while(_790.firstChild){_790.removeChild(_790.firstChild);}var _791=GeoMOOSE.getLegendUrls(this.active_paths);for(var i=0;i<_791.length;i++){var _792=dojo.create("img",{"src":_791[i]},_790);dojo.addClass(_792,["catalog-legend-image"]);}}}});dojo.declare("GeoMOOSE.Tab.Catalog",[GeoMOOSE.Tab],{targetId:"catalog",title:"Catalog",mapbook:null,catalog_layers:null,startup:function(){this.inherited(arguments);var _793=GeoMOOSE.id();this.main_id=_793;var main=dojo.create("div",{"id":_793});this.set("content",main);this.catalog_layers=new Array();this.set("title",CONFIGURATION["catalog_name"]);},renderLayer:function(_794,_795,_796){var _797=parseBoolean(_795.parentNode.getAttribute("multiple"),true);var _798=new GeoMOOSE.Tab._CatalogLayer(_794,_795,_797);this.catalog_layers.push(_798);},_hideGroup:function(id){var _799=dojo.byId(id);var _79a={"node":id};if(CONFIGURATION.flashy_bits){dojo.fx.wipeOut(_79a).play();}else{_799.style.display="none";}},_showGroup:function(id){var _79b=dojo.byId(id);var _79c={"node":id};if(CONFIGURATION.flashy_bits){dojo.fx.wipeIn(_79c).play();}else{_79b.style.display="block";}},toggleGroup:function(){var _79d=dojo.byId(this.children_id);if(_79d.style.display!="none"){this._hideGroup(this.children_id);}else{this._showGroup(this.children_id);}},renderGroup:function(_79e,_79f){var p=document.getElementById(_79e);var ul=document.createElement("ul");ul.className="catalog";var _7a0=GeoMOOSE.id();if(_79f.getAttribute("title")){var li=document.createElement("li");p.appendChild(li);var _7a1=dojo.create("div",{"innerHTML":_79f.getAttribute("title")},li);dojo.addClass(_7a1,["catalog-group"]);_7a1._hideGroup=this._hideGroup;_7a1._showGroup=this._showGroup;_7a1.onclick=this.toggleGroup;li.className="catalog-group";var _7a2=dojo.create("div",{"id":_7a0},li);_7a1.children_id=_7a0;if(!parseBoolean(_79f.getAttribute("expand"),true)){this._hideGroup(_7a0);}li=null;}else{ul.className+=" catalog-group-expanded";ul.id=_7a0;}p.appendChild(ul);var args=GeoMOOSE.getUrlParameters();var _7a3={};if(args.on){var _7a4=new String(args.on).split(";");for(var i=0;i<_7a4.length;i++){_7a3[_7a4[i]]="on";}}if(args.off){var _7a5=new String(args.off).split(";");for(var i=0;i<_7a5.length;i++){_7a3[_7a5[i]]="off";}}for(var i=0;i<_79f.childNodes.length;i++){var _7a6=_79f.childNodes[i].tagName;if(_7a6){if(_7a6=="group"){this.renderGroup(_7a0,_79f.childNodes[i]);}else{if(_7a6=="layer"){this.renderLayer(_7a0,_79f.childNodes[i],_7a3);}}}}ul=null;p=null;},onLayersChange:function(path,vis){if(this.catalog_layers&&this.catalog_layers.length>0){this.updateListing(path,vis);}},updateListing:function(_7a7,_7a8){var _7a9=GeoMOOSE.asArray(_7a7);if(typeof (_7a8)=="undefined"){_7a8=true;}for(var i=0,len=this.catalog_layers.length;i<len;i++){this.catalog_layers[i].updateListing(_7a9,_7a8);}},onActivateMapSource:function(_7aa){for(var i=0,len=this.catalog_layers.length;i<len;i++){this.catalog_layers[i].activateMapSource(_7aa);}},onGotMapbook:function(_7ab){this.mapbook=_7ab;var _7ac=this.mapbook.getElementsByTagName("catalog")[0];this.renderGroup(this.main_id,_7ac);this.updateListing(GeoMOOSE.getVisibleLayers());}});}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(_7ad){this.control_id=GeoMOOSE.id();var _7ae=dojo.create("div",{"id":this.control_id},_7ad);dojo.addClass(_7ae,"sprite-control");dojo.addClass(_7ae,this.classes);dojo.connect(_7ae,"onclick",dojo.hitch(this,this.onClick));if(this.tip!=""){var _7af=dojo.string.substitute(eval(this.tip),{"layer":this.layer.title});_7ae.title=_7af;}_7ae=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.provide("GeoMOOSE.Tab.Catalog.LayerControl.Unfade");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.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",onClick:function(){for(var path in this.layer.paths){GeoMOOSE.moveLayerUp(path);}}});dojo.declare("GeoMOOSE.Tab.Catalog.LayerControl.Down",[GeoMOOSE.Tab.Catalog.LayerControl],{classes:["sprite-control-down"],tip:"CONFIGURATION.layer_controls.down.tip",onClick:function(){for(var path in this.layer.paths){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 _7b0=dojo.byId(this.layer.legends_id);var _7b1={"node":this.layer.legends_id};if(_7b0.style.display!="none"){if(CONFIGURATION.flashy_bits){dojo.fx.wipeOut(_7b1).play();}else{_7b0.style.display="none";}}else{if(CONFIGURATION.flashy_bits){dojo.fx.wipeIn(_7b1).play();}else{_7b0.style.display="block";}}}});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.metadata_url!=""){window.open(this.layer.metadata_url);}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.ServiceManager"]){dojo._hasResource["GeoMOOSE.ServiceManager"]=true;dojo.provide("GeoMOOSE.ServiceManager");window.ServiceManager=function(_7b2,_7b3){var _7b4=this;var _7b5=false;function _7b6(_7b7){var _7b8=_7b2.getElementsByTagName("service");for(var i=0;i<_7b8.length;i++){if(_7b8[i].getAttribute("name")==_7b7){return _7b8[i];}}return null;};var _7b9={};for(var x in GeoMOOSE.Services.InputType){if(GeoMOOSE.Services.InputType[x].prototype&&GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){var _7ba=GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME;if(GeoMOOSE.Services.InputType[x].prototype.MAPBOOK_NAME){_7b9[_7ba]=GeoMOOSE.Services.InputType[x];}}}function _7bb(step,_7bc,_7bd){var _7be=step.getElementsByTagName("input");var _7bf=0;var _7c0=step.getElementsByTagName("header");var p=document.getElementById(_7bc);for(var i=0;i<_7c0.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-header";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_7c0[i]);}var _7c1=[];var _7c2=[];for(var i=0;i<_7be.length;i++){var _7c3=new String(_7be[i].getAttribute("type")).toLowerCase();if(_7b9[_7c3]){var _7c4=new _7b9[_7c3](_7be[i]);_7c1.push(_7c4);if(_7c4.requiresRender()){_7c2.push(_7c4);_7bf++;}var name=_7c4.getName();if(_7bd&&_7bd[name]){_7c4.setValue(_7bd[name]);}}}for(var i=0;i<_7c2.length;i++){_7c2[i].renderHTML(_7bc);}var _7c5=step.getElementsByTagName("footnote");var p=document.getElementById(_7bc);for(var i=0;i<_7c5.length;i++){var span=document.createElement("span");p.appendChild(span);span.className="service-footnote";span.innerHTML=OpenLayers.Util.getXmlNodeValue(_7c5[i]);}var _7be=p.getElementsByTagName("input");var _7c6=true;for(var i=0;i<_7be.length&&_7c6;i++){if(_7be[i].type!="hidden"&&_7be[i].type!="radio"){_7be[i].focus();_7c6=false;}}return _7bf;};function _7c7(f){while(this.layer.features.length>0){this.layer.removeFeatures(this.layer.features[0]);}this.layer.addFeatures(f);var _7c8=new OpenLayers.Format.WKT();var str=_7c8.write(f);this.xml.setAttribute("wkt",str);var _7c9=OpenLayers.Format.WKT;var _7ca=new String(this.xml.getAttribute("format")).toLowerCase();if(_7ca=="kml"){_7c9=OpenLayers.Format.KML;}else{if(_7ca=="wfs"){_7c9=OpenLayers.Format.WFS;}else{if(_7ca=="json"){_7c9=OpenLayers.Format.JSON;}else{if(_7ca=="delim"){_7c9=OpenLayers.Format.Text;var _7cb=this.xml.getAttribute("delim");var _7cc=this.xml.getAttribute("point-delim");if(!_7cb){_7cb=",";}if(!_7cc){_7cc=",";}var _7cd=function(g){var _7ce=[];if(g.components){for(var i=0;i<g.components.length;i++){if(g.components[i] instanceof OpenLayers.Geometry.Point){_7ce+=g.components[i];}else{if(g.components){this(g);}}}}else{if(g instanceof OpenLayers.Geometry.Point){return [g];}}return _7ce;};_7c9=function(){this.write=function(f){var _7cf=_7cd(f.geometry);for(var i=0;i<_7cf.length;i++){_7cf[i]=_7cf[i].x+_7cb+_7cf[i].y;}return _7cf.join(_7cc);};};}}}}var _7d0=new _7c9();var _7d1=this.xml.getElementsByTagName("input");var _7d2=this.xml.getAttribute("name");for(var i=0;i<_7d1.length;i++){if(_7d1[i].getAttribute("name")==_7d2){this.xml.removeChild(_7d1[i]);}}if(this.xml.getAttribute("reproject")){var _7d3=this.xml.getAttribute("reproject");if(_7d3=="EPSG:4326"||_7d3=="WGS84"){dest_proj=LatLongProjection;}else{dest_proj=OpenLayers.Projection(_7d3);}OpenLayers.Projection.transform(f.geometry,Map.getProjectionObject(),dest_proj);}var _7d4=_7b2.createElement("input");_7d4.setAttribute("name",_7d2);_7d4.setAttribute("type","hidden");_7d4.appendChild(_7b2.createCDATASection(_7d0.write(f)));this.xml.appendChild(_7d4);if(parseBoolean(this.xml.getAttribute("jump-start"),false)){_7b4.callService(this.xml.parentNode.getAttribute("name"));}else{if(_7b5){_7b4.startService(this.xml.parentNode.getAttribute("name"),{},false);}}};function _7d5(tool,xml){for(var t in _7b4.tools){_7b4.tools[t].deactivate();}if(GeoMOOSE.isDefined(_7b4.tools[tool])){_7b4.tools[tool].activate();if(_7b4.tools[tool].featureAdded){_7b4.tools[tool].featureAdded=_7c7;}else{_7b4.tools[tool].onModificationEnd=_7c7;}_7b4.tools[tool].xml=xml;}else{alert(GeoMOOSE.processTemplate(CONFIGURATION.messages.invalid_tool,{"TOOL":tool}));}};function _7d6(){if(this.type=="radio"){var _7d7=this.parentNode.getElementsByTagName("input");for(var i=0;i<_7d7.length;i++){if(_7d7[i].name==this.name){_7d7[i].checked=false;}}this.checked=true;}if(this.value){_7d5(this.value,this.xml);}};function _7d8(step,_7d9,_7da){Map.setLayerIndex(_7b4.drawing_layer,Map.getNumLayers());_7b4.drawing_layer.setVisibility(true);var wkt=false;var _7db=false;if(_7da&&_7da[step.getAttribute("name")]){wkt=_7da[step.getAttribute("name")];_7db=true;}else{if(step.getAttribute("wkt")){wkt=step.getAttribute("wkt");if(!step.getAttribute("format")||step.getAttribute("format").toLowerCase()=="wkt"){_7db=true;}}}var _7dc=new OpenLayers.Format.WKT();if(wkt){this.drawing_layer.addFeatures(_7dc.read(wkt));var _7dd=step.getElementsByTagName("input");var _7de=false;for(var i=0;i<_7dd.length;i++){if(_7dd[i].getAttribute("name")==step.getAttribute("name")){_7de=_7dd[i];}}if(_7db){if(_7de){step.removeChild(_7de);}var _7de=_7b2.createElement("input");_7de.setAttribute("name",step.getAttribute("name"));_7de.setAttribute("type","hidden");_7de.appendChild(_7b2.createCDATASection(wkt));step.appendChild(_7de);}}var _7df={"pan":{"status":true,"title":"Navigate"},"edit-polygon":{"status":false,"title":"Edit Polygon"},"point":{"status":true,"title":"Draw Point"},"line":{"status":true,"title":"Draw Line"},"polygon":{"status":true,"title":"Draw Polygon"},"box":{"status":false,"title":"Draw Box"}};if(parseBoolean(step.getAttribute("show-tools"),true)){var p=document.getElementById(_7d9);p.appendChild(document.createTextNode("Available Tools: "));p.appendChild(document.createElement("br"));for(var v in _7df){if(parseBoolean(step.getAttribute(v),_7df[v]["status"])){var _7e0=document.createElement("input");_7e0.name="drawing-tools";_7e0.type="radio";_7e0.value=v;_7e0.onclick=_7d6;_7e0.xml=step;p.appendChild(_7e0);p.appendChild(document.createTextNode(_7df[v].title));p.appendChild(document.createElement("br"));}}p.appendChild(document.createElement("br"));if(step.getAttribute("default")){var def=step.getAttribute("default");var _7dd=p.getElementsByTagName("input");for(var _7de=0;_7de<_7dd.length;_7de++){if(_7dd[_7de].name=="drawing-tools"&&_7dd[_7de].value==def){_7dd[_7de].onclick();}}}}else{if(step.getAttribute("default")){_7d5(step.getAttribute("default"),step);}else{alert(CONFIGURATION.messages.service_config_error);}}return 1+_7bb(step,_7d9,_7da);};this.onStart=function(_7e1){};this.onFinish=function(){};function _7e2(){var _7e3=document.getElementById(this.step);var _7e4=document.getElementsByTagName("div");for(var i=0;i<_7e4.length;i++){if(_7e4[i].className=="service-step-visible"){_7e4[i].className="service-step-hidden";}}_7e3.className="service-step-visible";_7e5();};function _7e5(){for(var t in this.tools){this.tools[t].deactivate();}this.drawing_layer.setVisibility(false);var _7e6=this.drawing_layer;while(_7e6.features.length>0){_7e6.removeFeatures(_7e6.features[0]);}};function _7e7(){var p=document.getElementById(_7b3);p.innerHTML="";_7e5();Tabs.showTab(CONFIGURATION.default_tab);};this.startService=function(_7e8,_7e9,_7ea){var _7eb=_7b6(_7e8);if(!GeoMOOSE.isDefined(this.service_tabs)){this.service_tabs=[];}if(_7eb){_7b5=false;this.onStart(_7eb);var _7ec=_7eb.getAttribute("title");if(!GeoMOOSE.isDefined(_7ec)){_7ec=_7e8;}var _7ed=GeoMOOSE.getTab(_7e8);var _7ee=GeoMOOSE.id();var p=dojo.create("div",{"id":_7ee});if(GeoMOOSE.isDefined(_7ed)){GeoMOOSE.changeTab(_7e8);}else{if(!parseBoolean(_7eb.getAttribute("keep-others"),false)){while(this.service_tabs.length>0){var _7ef=this.service_tabs.pop();GeoMOOSE.closeTab(_7ef);}}_7ed=new GeoMOOSE.Tab.Service({"title":_7ec,"closable":true,"name":_7e8,"service_xml":_7eb});dojo.connect(_7ed,"onServiceReturn",dojo.hitch(_7ed,this.onServiceReturn));if(parseBoolean(_7eb.getAttribute("display"),true)){this.service_tabs.push(_7e8);GeoMOOSE.addTab(_7e8,_7ed);}}if(parseBoolean(_7eb.getAttribute("display"),true)){dijit.byId("tabs").selectChild(_7ed);}_7ed.start(_7e9,_7ea);}},this.onServiceReturn=function(_7f0){};};}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,doStyle:function(){var _7f1=this.tool_xml.getAttribute("icon-class");if(_7f1){this.iconClass=_7f1;}else{this.iconClass="sprite-control sprite-control-"+this.name;}},constructor:function(){dojo.mixin(this,arguments[0]);this.name=this.tool_xml.getAttribute("name");var _7f2=this.tool_xml.getAttribute("title");var _7f3=parseBoolean(this.tool_xml.getAttribute("show-label"),CONFIGURATION.toolbar.show_labels);if(_7f3){this.label=_7f2;}this.title=_7f2;this.doStyle();this.cursor_css="default";if(GeoMOOSE.isDefined(CONFIGURATION.cursor[this.name])){this.cursor_css=CONFIGURATION.cursor[this.name];}else{if(GeoMOOSE.isDefined(this.tool_xml.getAttribute("cursor"))){this.cursor_css=this.tool_xml.getAttribute("cursor");}}},changeCursor:function(){dojo.style(dojo.byId("mapContainer"),{"cursor":this.cursor_css});}});dojo.declare("GeoMOOSE.Tool",[GeoMOOSE._Tool,dijit.form.ToggleButton],{selectable:true,onClick:function(){if(!this.get("checked")){this.set("checked",true);}else{this.inherited(arguments);}this.changeCursor();}});dojo.declare("GeoMOOSE.UnselectableTool",[GeoMOOSE._Tool,dijit.form.Button],{selectable:false});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);this.changeCursor();}});dojo.declare("GeoMOOSE.UnselectableToolMenu",[GeoMOOSE._Tool,dijit.MenuItem],{selectable:false});}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 _7f4 in this.parent.tools){var tool=this.parent.tools[_7f4];if(tool!=this){tool.set("checked",false);}}},_deactivateTools:function(){for(var _7f5 in Tools){Tools[_7f5].deactivate();}},_internalToolAction:function(){if(GeoMOOSE.isDefined(Tools[this.action])){if(this.selectable){this._deactivateTools();}Tools[this.action].activate();}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(){var _7f6=GeoMOOSE.getActiveMapSource();if(!GeoMOOSE.isDefined(_7f6)){GeoMOOSE.error("There is no actively selected layer.  Please activate a layer from the catalog.");}else{var _7f7=this.parent.application.getMapSource(this.parent.activeMapSource);if(_7f7.supports[this.action]===true){if(this.selectable){this._deactivateTools();}_7f7.controls[this.action].activate();}else{GeoMOOSE.error("The current active layer does not support your selected action.");}}},_addTool:function(_7f8,_7f9,_7fa){var _7fb=_7f9.getAttribute("type");var name=_7f9.getAttribute("name");var _7fc=parseBoolean(_7f9.getAttribute("selectable"),true);var tool=null;if(_7fa===true){if(_7fc){tool=new GeoMOOSE.ToolMenu({"tool_xml":_7f9,"parent":this});dojo.connect(tool,"onClick",this.untoggleOthers);}else{tool=new GeoMOOSE.UnselectableToolMenu({"tool_xml":_7f9,"parent":this});}}else{if(_7fc){tool=new GeoMOOSE.Tool({"tool_xml":_7f9,"parent":this});dojo.connect(tool,"onClick",this.untoggleOthers);}else{tool=new GeoMOOSE.UnselectableTool({"tool_xml":_7f9,"parent":this});}}if(tool!=null){if(_7fb=="internal"){tool.action=_7f9.getAttribute("action");dojo.connect(tool,"onClick",this._internalToolAction);}else{if(_7fb=="service"){tool.service_name=_7f9.getAttribute("service");dojo.connect(tool,"onClick",this._serviceToolAction);}else{if(_7fb=="javascript"){tool.stuff_to_do=OpenLayers.Util.getXmlNodeValue(_7f9);dojo.connect(tool,"onClick",this._javascriptToolAction);}else{if(_7fb=="layer"){tool.action=_7f9.getAttribute("action");dojo.connect(tool,"onClick",this._layerToolAction);}}}}tool._deactivateTools=this._deactivateTools;this.parent=this;this.tools[name]=tool;_7f8.addChild(tool);}},onMapbookLoaded:function(_7fd){var _7fe=_7fd.getElementsByTagName("toolbar")[0];this.tools={};for(var i=0,len=_7fe.childNodes.length;i<len;i++){var node=_7fe.childNodes[i];if(node.tagName&&node.tagName=="tool"){this._addTool(this,node);}else{if(node.tagName&&node.tagName=="drawer"){var _7ff=node.getAttribute("icon-class");if(!GeoMOOSE.isDefined(_7ff)){_7ff="spite-control sprite-control-down";}var _800="";var _801=parseBoolean(node.getAttribute("show-label"),CONFIGURATION.toolbar.show_labels);if(_801){_800=node.getAttribute("title");}var _802=new dijit.Menu();var _803=new dijit.form.DropDownButton({"label":_800,"iconClass":_7ff,"dropDown":_802});this.addChild(_803);var _804=node.getElementsByTagName("tool");for(var t=0,tt=_804.length;t<tt;t++){this._addTool(_802,_804[t],true);}}}}this.layout.resize();},activeMapSource:null,onActivateMapSource:function(_805){this.activeMapSource=_805;}});}if(!dojo._hasResource["GeoMOOSE.Layout.Default"]){dojo._hasResource["GeoMOOSE.Layout.Default"]=true;dojo.provide("GeoMOOSE.Layout.Default");dojo.declare("GeoMOOSE.Layout.Default",null,{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 _806=new dijit.layout.BorderContainer({"region":"center","liveSplitters":false,"gutters":false},dojo.byId("middle"));main.addChild(_806);_806.startup();_806.addChild(new dijit.layout.ContentPane({"region":"center"},dojo.byId("map")));var _807=new dijit.layout.BorderContainer({"gutters":false,"region":CONFIGURATION.control_panel_side,"splitter":true},dojo.byId("control-panel"));_806.addChild(_807);_807.addChild(new dijit.layout.TabContainer({"region":"center"},dojo.byId("tabs")));},resize:function(){dijit.byId("main").resize();},switchPanelSides:function(_808){var _809=dijit.byId("middle");var _80a=dijit.byId("control-panel");_809.removeChild(_80a);_80a.set("region",_808);_809.addChild(_80a);this.resize();},updatePanelSides:function(){this.switchPanelSides(CONFIGURATION.control_panel_side);}});}if(!dojo._hasResource["GeoMOOSE.USNG"]){dojo._hasResource["GeoMOOSE.USNG"]=true;dojo.provide("GeoMOOSE.USNG");window.UTM=function(){var _80b=6378137;var _80c=6356752.3;var Ecc=(_80b*_80b-_80c*_80c)/(_80b*_80b);var Ecc2=Ecc/(1-Ecc);var K0=0.9996;var E4=Ecc*Ecc;var E6=Ecc*E4;var _80d=Math.PI/180;function _80e(lat){var c1=_80b*(1-Ecc/4-3*E4/64-5*E6/256);var c2=-_80b*(3*Ecc/8+3*E4/32+45*E6/1024);var c3=_80b*(15*E4/256+45*E6/1024);var c4=-_80b*35*E6/3072;return (c1*lat+c2*Math.sin(lat*2)+c3*Math.sin(lat*4)+c4*Math.sin(lat*6));};this.fromLatLong=function(zone,_80f){var utm=new OpenLayers.Geometry.Point();var _810=-((30-zone)*6+3)*_80d;var lat=_80f.y*_80d;var lon=_80f.x*_80d;var _811=Math.sin(lat);var _812=Math.cos(lat);var _813=_811/_812;var _814=_813*_813;var _815=_814*_814;var N=_80b/Math.sqrt(1-Ecc*(_811*_811));var c=Ecc2*_812*_812;var a=_812*(lon-_810);var m=_80e(lat);var _816=1-_814+c;var _817=5-18*_814+_815+72*c-58*Ecc2;var _818=Math.pow(a,5);utm.x=K0*N*(a+(_816*Math.pow(a,3))/6+_817*_818/120)+500000;var _819=(5-_814+9*c+4*(c*c))*Math.pow(a,4)/24;var _81a=61-58*_814+_815+600*c-330*Ecc2;var _81b=_818*a/720;utm.y=K0*(m+N*_813*((a*a)/2+_819+_81a*_81b));return (utm);};function CSq(_81c){return _81c*_81c;};this.toLatLong=function(zone,utm){var _81d=new Point();var _81e=-((30-zone)*6+3)*_80d;var _81f=Math.sqrt(1-Ecc);var ecc1=(1-_81f)/(1+_81f);var _820=ecc1*ecc1;var _821=ecc1*_820;var _822=_820*_820;utm.x=utm.x-500000;var m=utm.y/K0;var um=m/(_80b*(1-(Ecc/4)-3*(E4/64)-5*(E6/256)));var _823=(1.5*ecc1)-(27/32)*_821;var _824=((21/16)*_820)-((55/32)*_822);var _825=um+_823*Math.sin(2*um)+_824*Math.sin(4*um)+(151*_821/96)*Math.sin(6*um);var _826=Math.sin(_825);var _827=Math.cos(_825);var _828=_826/_827;var n1=_80b/Math.sqrt(1-Ecc*CSq(_826));var t2=CSq(_828);var c1=Ecc2*CSq(_827);var _829=(1-Ecc*CSq(_826));var r1=_80b*(1-Ecc)/Math.sqrt(CSq(_829)*_829);var d1=utm.x/(n1*K0);var d2=CSq(d1);var d3=d1*d2;var d4=CSq(d2);var d5=d1*d4;var d6=CSq(d3);var t12=CSq(t2);var c12=CSq(c1);_81f=n1*_828/r1;temp2=5+3*t2+10*c1-4*c12-9*Ecc2;temp4=61+90*t2+298*c1+45*t12-252*Ecc2-3*c12;temp5=(1+2*t2+c1)*d3/6;temp6=5-2*c1+28*t2-3*c12+8*Ecc2+24*t12;_81d.y=(_825-_81f*(d2/2-temp2*(d4/24)+temp4*d6/720))*180/Math.PI;_81d.x=(_81e+(d1-temp5+temp6*d5/120)/_827)*180/Math.PI;utm.x=utm.x+500000;return (_81d);};};window.USNG=function(){this.fromLatLong=function(_82a,_82b){usng_string=new String();var lon=_82a.x;var lat=_82a.y;var _82c;var _82d;while(lon<-180){lon+=180;}while(lon>180){lon-=180;}_82c=Math.floor((lon-(-180))/6)+1;if(!((lat>-90)&&(lat<90))){return ("error lat"+lat+" must be between in (-90,90)... no playing at the poles, yet");}else{a=new Array();a=["C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X"];_82d=a[Math.floor((lat-(-80))/8)];}var utm=new UTM();utm_pt=utm.fromLatLong(_82c,_82a);var _82e="";var _82f=(_82c%6);if(_82f==0){_82f=6;}var _830=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V"];var _831=["F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","A","B","C","D","E"];var _832=["A","B","C","D","E","F","G","H"];var _833=["J","K","L","M","N","P","Q","R"];var _834=["S","T","U","V","W","X","Y","Z"];var _835=Math.floor(utm_pt.x/100000)-1;var _836=Math.floor((utm_pt.y%2000000)/100000);switch(_82f){case 1:_82e=_832[_835]+_830[_836];break;case 2:_82e=_833[_835]+_831[_836];break;case 3:_82e=_834[_835]+_830[_836];break;case 4:_82e=_832[_835]+_831[_836];break;case 5:_82e=_833[_835]+_830[_836];break;case 6:_82e=_834[_835]+_831[_836];break;default:alert("shouldn't get here");}var _837=Math.floor(utm_pt.x%100000).toString();var _838=Math.floor(utm_pt.y%100000).toString();while(_837.length<5){_837="0"+_837;}while(_838.length<5){_838="0"+_838;}_837=_837.substr(0,_82b);_838=_838.substr(0,_82b);usng_string=String(_82c)+_82d+_82e+_837+_838;return (usng_string);};};}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 _839=dojo.byId("footer");this.coordinate_display=dojo.create("span",{"id":"coordinate-display"},_839);GeoMOOSE.register("onMapbookLoaded",this,this.gotMapbook);},gotMapbook:function(){this.map_proj=Map.getProjectionObject();this.lat_long=new OpenLayers.Projection("WGS84");var _83a=new OpenLayers.Control.MousePosition({div:this.coordinate_display});_83a.formatOutput=dojo.hitch(this,this.displayCoordinates);Map.addControl(_83a);},displayCoordinates:function(_83b){var _83c=parseInt(this.numDigits);var html="";if(CONFIGURATION.coordinate_display.xy){html+="<span class=\"coordinate-type\">X,Y: </span>";html+=_83b.lon.toFixed(_83c)+", "+_83b.lat.toFixed(_83c);}var _83d=new OpenLayers.Geometry.Point(_83b.lon,_83b.lat);var _83e=OpenLayers.Projection.transform(_83d,this.map_proj,this.lat_long);if(CONFIGURATION.coordinate_display.latlon){html+="<span class=\"coordinate-type\">Lat, Lon: </span>";html+=_83e.y.toFixed(3)+", "+_83e.x.toFixed(3);}if(CONFIGURATION.coordinate_display.usng){html+="<span class=\"coordinate-type\">USNG: </span>";var _83f=OpenLayers.INCHES_PER_UNIT;var _83c=6-Math.ceil(Math.log(Map.getResolution())/2.302585092994046);html+=(new USNG()).fromLatLong(_83e,_83c);}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(_840,_841){var _842=[];function _843(attr,dir,comp,s){return function(_844,_845){var a=s.getValue(_844,attr);var b=s.getValue(_845,attr);return dir*comp(a,b);};};var _846;var map=_841.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_840.length;i++){_846=_840[i];var attr=_846.attribute;if(attr){var dir=(_846.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_842.push(_843(attr,dir,comp,_841));}}return function(rowA,rowB){var i=0;while(i<_842.length){var ret=_842[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(_847){_847=_847||{};if(!_847.store){_847.store=this;}var self=this;var _848=function(_849,_84a){if(_84a.onError){var _84b=_84a.scope||dojo.global;_84a.onError.call(_84b,_849,_84a);}};var _84c=function(_84d,_84e){var _84f=_84e.abort||null;var _850=false;var _851=_84e.start?_84e.start:0;var _852=(_84e.count&&(_84e.count!==Infinity))?(_851+_84e.count):_84d.length;_84e.abort=function(){_850=true;if(_84f){_84f.call(_84e);}};var _853=_84e.scope||dojo.global;if(!_84e.store){_84e.store=self;}if(_84e.onBegin){_84e.onBegin.call(_853,_84d.length,_84e);}if(_84e.sort){_84d.sort(dojo.data.util.sorter.createSortFunction(_84e.sort,self));}if(_84e.onItem){for(var i=_851;(i<_84d.length)&&(i<_852);++i){var item=_84d[i];if(!_850){_84e.onItem.call(_853,item,_84e);}}}if(_84e.onComplete&&!_850){var _854=null;if(!_84e.onItem){_854=_84d.slice(_851,_852);}_84e.onComplete.call(_853,_854,_84e);}};this._fetchItems(_847,_84c,_848);return _847;};}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(_855,_856){var rxp="^";var c=null;for(var i=0;i<_855.length;i++){c=_855.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_855.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(_856){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(_857,_858,_859,rtl){if(this.aroundNode&&this.aroundNode===_858){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_857;var pos=dijit.placeOnScreenAroundElement(this.domNode,_858,dijit.getPopupAroundAlignment((_859&&_859.length)?_859:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_858;},orient:function(node,_85a,_85b,_85c,_85d){this.connectorNode.style.top="";var _85e=_85c.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"}[_85a+"-"+_85b];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _85f=Math.min((Math.max(_85e,1)),size.w);var _860=_85f<size.w;this.domNode.style.width=_85f+"px";if(_860){this.containerNode.style.overflow="auto";var _861=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_861>_85f){_861=_861+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_861+"px";}}if(_85b.charAt(0)=="B"&&_85a.charAt(0)=="B"){var mb=dojo.marginBox(node);var _862=this.connectorNode.offsetHeight;if(mb.h>_85c.h){var _863=_85c.h-(_85d.h/2)-(_862/2);this.connectorNode.style.top=_863+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_85d.h/2-_862/2,0),mb.h-_862)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_85e);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_864){if(this._onDeck&&this._onDeck[1]==_864){this._onDeck=null;}else{if(this.aroundNode===_864){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(_865,_866,_867,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_865,_866,_867,rtl);};dijit.hideTooltip=function(_868){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_868);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_869){dojo.forEach(this._connections||[],function(_86a){dojo.forEach(_86a,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_869)?_869:(_869?[_869]:[]);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",_869);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 _86b=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_86b);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_86c){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_86c,this.position,!this.isLeftToRight());this._connectNode=_86c;this.onShow(_86c,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(_86d,_86e){},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(_86f){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_870,_871){return (new RegExp("^(?:"+this.regExpGen(_871)+")"+(this.required?"":"?")+"$")).test(_870)&&(!this.required||!this._isEmpty(_870))&&(this._isEmpty(_870)||this.parse(_870,_871)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_872){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_873){return (this.trim?/^\s*$/:/^$/).test(_873);},getErrorMessage:function(_874){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_875){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_876){var _877="";var _878=this.disabled||this.isValid(_876);if(_878){this._maskValidSubsetError=true;}var _879=this._isEmpty(this.textbox.value);var _87a=!_878&&_876&&this._isValidSubset();this._set("state",_878?"":(((((!this._hasBeenBlurred||_876)&&_879)||_87a)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_878?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_876&&_87a;_877=this.getErrorMessage(_876);}else{if(this.state=="Incomplete"){_877=this.getPromptMessage(_876);this._maskValidSubsetError=!this._hasBeenBlurred||_876;}else{if(_879){_877=this.getPromptMessage(_876);}}}this.set("message",_877);return _878;},displayMessage:function(_87b){dijit.hideTooltip(this.domNode);if(_87b&&this._focused){dijit.showTooltip(_87b,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_87c){if(!_87c.locale&&this.lang){_87c.locale=this.lang;}this._set("constraints",_87c);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _87d="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_87d+=re;break;case ")":_87d+="|$)";break;default:_87d+="(?:"+re+"|$)";break;}});}try{"".search(_87d);}catch(e){_87d=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_87d+")$";},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(_87e){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_87f){this._set("required",_87f);dijit.setWaiState(this.focusNode,"required",_87f);this._refreshState();},_setMessageAttr:function(_880){this._set("message",_880);this.displayMessage(_880);},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,_881){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(_882,_883){return ("min" in _883?(this.compare(_882,_883.min)>=0):true)&&("max" in _883?(this.compare(_882,_883.max)<=0):true);},isInRange:function(_884){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _885=false;var _886=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_885=(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);_886=(typeof max=="number")&&max>0;}return _885||_886;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_887){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_887));},getErrorMessage:function(_888){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_888)){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(_889){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(_88a,_88b){dijit.setWaiState(this.focusNode,"valuenow",_88a);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(_88c){var pos=0;if(typeof (_88c.selectionStart)=="number"){pos=_88c.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_88c.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(_88d,_88e){_88e=parseInt(_88e);dijit.selectInputText(_88d,_88e,_88e);},_setDisabledAttr:function(_88f){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_88f);},_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 _890=false;var pw=this.dropDown;var dk=dojo.keys;var _891=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_891=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(_891);}dojo.stopEvent(evt);break;case dk.ENTER:if(_891){if(_891==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_891==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 _892=this.get("displayedValue");if(pw&&(_892==pw._messages["previousMessage"]||_892==pw._messages["nextMessage"])){break;}if(_891){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_891){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_890=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_890=true;break;default:_890=typeof key=="string"||key==229;}if(_890){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 _893=this.ignoreCase?"toLowerCase":"substr";if(text[_893](0).indexOf(this.focusNode.value[_893](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(_894,_895){this._fetchHandle=null;if(this.disabled||this.readOnly||(_895.query[this.searchAttr]!=this._lastQuery)){return;}var _896=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_894.length&&!this._maxOptions){this.closeDropDown();return;}_895._maxOptions=this._maxOptions;var _897=this.dropDown.createOptions(_894,_895,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_895.direction){if(1==_895.direction){this.dropDown.highlightFirstOption();}else{if(-1==_895.direction){this.dropDown.highlightLastOption();}}if(_896){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_895.query[this.searchAttr])){this._announceOption(_897[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_898){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 _899=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_899==pw._messages["previousMessage"]||_899==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_899);}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,_89a,_89b){if(!_89b){_89b=this.store.getValue(item,this.searchAttr);}var _89c=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_89b;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_89c,_89a,_89b);},_announceOption:function(node){if(!node){return;}var _89d;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_89d=node.innerHTML;this.item=undefined;this.value="";}else{_89d=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_89d);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_89d);},_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 _89e=this.id+"_popup",_89f=dojo.getObject(this.dropDownClass,false);this.dropDown=new _89f({onChange:dojo.hitch(this,this._selectOption),id:_89e,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_89e);}var _8a0=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_8a0[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_8a1,_8a2){this.searchTimer=null;var _8a3={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_8a1,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_8a4){_8a2._fetchHandle=null;console.error("dijit.form.ComboBox: "+_8a4);_8a2.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_8a3,_8a2.fetchProperties);this._fetchHandle=_8a2.store.fetch(_8a3);var _8a5=function(_8a6,_8a7){_8a6.start+=_8a6.count*_8a7;_8a6.direction=_8a7;this._fetchHandle=this.store.fetch(_8a6);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_8a5,this._fetchHandle);},_8a0,this),this.searchDelay);},_setMaxOptions:function(size,_8a8){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _8a9=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_8a9);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _8aa=this._getValueField();this.value=this.store.getValue(item,_8aa);}}}this.inherited(arguments);},postCreate:function(){var _8ab=dojo.query("label[for=\""+this.id+"\"]");if(_8ab.length){_8ab[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_8ab[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _8ac=this.labelFunc(item,this.store),_8ad=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_8ac=this.doHighlight(_8ac,this._escapeHtml(this._lastInput));_8ad="html";}return {html:_8ad=="html",label:_8ac};},doHighlight:function(_8ae,find){var _8af=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_8ae).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_8af),"<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,_8b0){return _8b0.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(_8b1){this.value=_8b1;this.onChange(_8b1);},onChange:function(_8b2){},onPage:function(_8b3){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_8b4){var _8b5=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _8b6=_8b4(item);if(_8b6.html){_8b5.innerHTML=_8b6.label;}else{_8b5.appendChild(dojo.doc.createTextNode(_8b6.label));}if(_8b5.innerHTML==""){_8b5.innerHTML="&nbsp;";}_8b5.item=item;return _8b5;},createOptions:function(_8b7,_8b8,_8b9){this.previousButton.style.display=(_8b8.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_8b7,function(item,i){var _8ba=this._createOption(item,_8b9);dojo.attr(_8ba,"id",this.id+i);this.domNode.insertBefore(_8ba,this.nextButton);},this);var _8bb=false;if(_8b8._maxOptions&&_8b8._maxOptions!=-1){if((_8b8.start+_8b8.count)<_8b8._maxOptions){_8bb=true;}else{if((_8b8.start+_8b8.count)>_8b8._maxOptions&&_8b8.count==_8b7.length){_8bb=true;}}}else{if(_8b8.count==_8b7.length){_8bb=true;}}this.nextButton.style.display=_8bb?"":"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 _8bc=this.domNode.firstChild;var _8bd=_8bc.nextSibling;this._focusOptionNode(_8bd.style.display=="none"?_8bc:_8bd);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 _8be=0;var _8bf=this.domNode.scrollTop;var _8c0=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_8be<_8c0){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 _8c1=this.domNode.scrollTop;_8be+=(_8c1-_8bf)*(up?-1:1);_8bf=_8c1;}},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(_8c2,_8c3,_8c4){this._set("item",null);if(!_8c2){_8c2="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_8c2,_8c3,_8c4);}});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,_8c5,_8c6){return (_8c5=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_8c7){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_8c8,_8c9){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _8ca=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_8cb=dojo.query("> option",this.root).filter(function(_8cc){return (_8cc.innerText||_8cc.textContent||"").match(_8ca);});if(args.sort){_8cb.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_8c8(_8cb,args);},close:function(_8cd){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(_8ce){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_8ce.url;this._ccUrl=_8ce.url;this.url=_8ce.url;this._jsonData=_8ce.data;this.data=null;this._datatypeMap=_8ce.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_8cf){return dojo.date.stamp.fromISOString(_8cf);}};}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(_8ce.urlPreventCache!==undefined){this.urlPreventCache=_8ce.urlPreventCache?true:false;}if(_8ce.hierarchical!==undefined){this.hierarchical=_8ce.hierarchical?true:false;}if(_8ce.clearOnClose){this.clearOnClose=true;}if("failOk" in _8ce){this.failOk=_8ce.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(_8d0){if(typeof _8d0!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_8d1,_8d2){var _8d3=this.getValues(item,_8d1);return (_8d3.length>0)?_8d3[0]:_8d2;},getValues:function(item,_8d4){this._assertIsItem(item);this._assertIsAttribute(_8d4);return (item[_8d4]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _8d5=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_8d5.push(key);}}return _8d5;},hasAttribute:function(item,_8d6){this._assertIsItem(item);this._assertIsAttribute(_8d6);return (_8d6 in item);},containsValue:function(item,_8d7,_8d8){var _8d9=undefined;if(typeof _8d8==="string"){_8d9=dojo.data.util.filter.patternToRegExp(_8d8,false);}return this._containsValue(item,_8d7,_8d8,_8d9);},_containsValue:function(item,_8da,_8db,_8dc){return dojo.some(this.getValues(item,_8da),function(_8dd){if(_8dd!==null&&!dojo.isObject(_8dd)&&_8dc){if(_8dd.toString().match(_8dc)){return true;}}else{if(_8db===_8dd){return true;}}});},isItem:function(_8de){if(_8de&&_8de[this._storeRefPropName]===this){if(this._arrayOfAllItems[_8de[this._itemNumPropName]]===_8de){return true;}}return false;},isItemLoaded:function(_8df){return this.isItem(_8df);},loadItem:function(_8e0){this._assertIsItem(_8e0.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(_8e1,_8e2,_8e3){var self=this,_8e4=function(_8e5,_8e6){var _8e7=[],i,key;if(_8e5.query){var _8e8,_8e9=_8e5.queryOptions?_8e5.queryOptions.ignoreCase:false;var _8ea={};for(key in _8e5.query){_8e8=_8e5.query[key];if(typeof _8e8==="string"){_8ea[key]=dojo.data.util.filter.patternToRegExp(_8e8,_8e9);}else{if(_8e8 instanceof RegExp){_8ea[key]=_8e8;}}}for(i=0;i<_8e6.length;++i){var _8eb=true;var _8ec=_8e6[i];if(_8ec===null){_8eb=false;}else{for(key in _8e5.query){_8e8=_8e5.query[key];if(!self._containsValue(_8ec,key,_8e8,_8ea[key])){_8eb=false;}}}if(_8eb){_8e7.push(_8ec);}}_8e2(_8e7,_8e5);}else{for(i=0;i<_8e6.length;++i){var item=_8e6[i];if(item!==null){_8e7.push(item);}}_8e2(_8e7,_8e5);}};if(this._loadFinished){_8e4(_8e1,this._getItemsArray(_8e1.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:_8e1,filter:_8e4});}else{this._loadInProgress=true;var _8ed={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _8ee=dojo.xhrGet(_8ed);_8ee.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_8e4(_8e1,self._getItemsArray(_8e1.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_8e3(e,_8e1);}});_8ee.addErrback(function(_8ef){self._loadInProgress=false;_8e3(_8ef,_8e1);});var _8f0=null;if(_8e1.abort){_8f0=_8e1.abort;}_8e1.abort=function(){var df=_8ee;if(df&&df.fired===-1){df.cancel();df=null;}if(_8f0){_8f0.call(_8e1);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_8e4(_8e1,this._getItemsArray(_8e1.queryOptions));}catch(e){_8e3(e,_8e1);}}else{_8e3(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_8e1);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _8f1=this._queuedFetches[i],_8f2=_8f1.args,_8f3=_8f1.filter;if(_8f3){_8f3(_8f2,this._getItemsArray(_8f2.queryOptions));}else{this.fetchItemByIdentity(_8f2);}}this._queuedFetches=[];}},_getItemsArray:function(_8f4){if(_8f4&&_8f4.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_8f5){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(_8f6){var _8f7=false,self=this;function _8f8(_8f9){var _8fa=((_8f9!==null)&&(typeof _8f9==="object")&&(!dojo.isArray(_8f9)||_8f7)&&(!dojo.isFunction(_8f9))&&(_8f9.constructor==Object||dojo.isArray(_8f9))&&(typeof _8f9._reference==="undefined")&&(typeof _8f9._type==="undefined")&&(typeof _8f9._value==="undefined")&&self.hierarchical);return _8fa;};function _8fb(_8fc){self._arrayOfAllItems.push(_8fc);for(var _8fd in _8fc){var _8fe=_8fc[_8fd];if(_8fe){if(dojo.isArray(_8fe)){var _8ff=_8fe;for(var k=0;k<_8ff.length;++k){var _900=_8ff[k];if(_8f8(_900)){_8fb(_900);}}}else{if(_8f8(_8fe)){_8fb(_8fe);}}}}};this._labelAttr=_8f6.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_8f6.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_8f7=true;}_8fb(item);item[this._rootItemPropName]=true;}var _901={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _902=item[key];if(_902!==null){if(!dojo.isArray(_902)){item[key]=[_902];}}else{item[key]=[null];}}_901[key]=key;}}while(_901[this._storeRefPropName]){this._storeRefPropName+="_";}while(_901[this._itemNumPropName]){this._itemNumPropName+="_";}while(_901[this._reverseRefMap]){this._reverseRefMap+="_";}var _903;var _904=_8f6.identifier;if(_904){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_904;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_903=item[_904];var _905=_903[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_905)){this._itemsByIdentity[_905]=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: ["+_904+"].  Value collided: ["+_905+"]");}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: ["+_904+"].  Value collided: ["+_905+"]");}}}}}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){_903=item[key];for(var j=0;j<_903.length;++j){_902=_903[j];if(_902!==null&&typeof _902=="object"){if(("_type" in _902)&&("_value" in _902)){var type=_902._type;var _906=this._datatypeMap[type];if(!_906){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_906)){_903[j]=new _906(_902._value);}else{if(dojo.isFunction(_906.deserialize)){_903[j]=_906.deserialize(_902._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(_902._reference){var _907=_902._reference;if(!dojo.isObject(_907)){_903[j]=this._getItemByIdentity(_907);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _908=this._arrayOfAllItems[k],_909=true;for(var _90a in _907){if(_908[_90a]!=_907[_90a]){_909=false;}}if(_909){_903[j]=_908;}}}if(this.referenceIntegrity){var _90b=_903[j];if(this.isItem(_90b)){this._addReferenceToMap(_90b,item,key);}}}else{if(this.isItem(_902)){if(this.referenceIntegrity){this._addReferenceToMap(_902,item,key);}}}}}}}},_addReferenceToMap:function(_90c,_90d,_90e){},getIdentity:function(item){var _90f=this._features["dojo.data.api.Identity"];if(_90f===Number){return item[this._itemNumPropName];}else{var _910=item[_90f];if(_910){return _910[0];}}return null;},fetchItemByIdentity:function(_911){var item,_912;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:_911});}else{this._loadInProgress=true;var _913={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _914=dojo.xhrGet(_913);_914.addCallback(function(data){var _915=_911.scope?_911.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_911.identity);if(_911.onItem){_911.onItem.call(_915,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_911.onError){_911.onError.call(_915,error);}}});_914.addErrback(function(_916){self._loadInProgress=false;if(_911.onError){var _917=_911.scope?_911.scope:dojo.global;_911.onError.call(_917,_916);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_911.identity);if(_911.onItem){_912=_911.scope?_911.scope:dojo.global;_911.onItem.call(_912,item);}}}}else{item=this._getItemByIdentity(_911.identity);if(_911.onItem){_912=_911.scope?_911.scope:dojo.global;_911.onItem.call(_912,item);}}},_getItemByIdentity:function(_918){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_918)){item=this._itemsByIdentity[_918];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_918)){item=this._arrayOfAllItems[_918];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _919=this._features["dojo.data.api.Identity"];if(_919===Number){return null;}else{return [_919];}},_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 _91a={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _91b=dojo.xhrGet(_91a);_91b.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;}});_91b.addErrback(function(_91c){throw _91c;});}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 _91d={"label":"name","items":[]};for(var e in CONFIGURATION.jumpto_scales){_91d.items.push({"name":e,"value":CONFIGURATION.jumpto_scales[e]});}var _91e=dojo.byId("footer");var _91f=dojo.create("span",{},_91e,1);dojo.style(_91f,{"position":"absolute","right":"0px","padding":"2px","paddingRight":"3px"});var _920=dojo.create("span",{},_91f);this.select=new dijit.form.ComboBox({"store":new dojo.data.ItemFileReadStore({data:_91d}),"query":{name:"*"},"style":"width: 150px; color: black; textAlign: right","parseScale":function(_921){return parseFloat(_921.replace("1:",""));},"onChange":function(){var _922=Map.getScale().toFixed(0);var _923=this.parseScale(this.get("value")).toFixed(0);if(_922!=_923){Map.zoomToScale(_923,!CONFIGURATION.franctional_zoom);}}},_920);},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(_924){var _925=_924,opts=this.options||[],l=opts.length;if(_925===undefined){return opts;}if(dojo.isArray(_925)){return dojo.map(_925,"return this.getOptions(item);",this);}if(dojo.isObject(_924)){if(!dojo.some(this.options,function(o,idx){if(o===_925||(o.value&&o.value===_925.value)){_925=idx;return true;}return false;})){_925=-1;}}if(typeof _925=="string"){for(var i=0;i<l;i++){if(opts[i].value===_925){_925=i;break;}}}if(typeof _925=="number"&&_925>=0&&_925<l){return this.options[_925];}return null;},addOption:function(_926){if(!dojo.isArray(_926)){_926=[_926];}dojo.forEach(_926,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_927){if(!dojo.isArray(_927)){_927=[_927];}var _928=this.getOptions(_927);dojo.forEach(_928,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(_929){if(!dojo.isArray(_929)){_929=[_929];}dojo.forEach(_929,function(i){var _92a=this.getOptions(i),k;if(_92a){for(k in i){_92a[k]=i[k];}}},this);this._loadChildren();},setStore:function(_92b,_92c,_92d){var _92e=this.store;_92d=_92d||{};if(_92e!==_92b){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_92b&&_92b.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_92b,"onNew",this,"_onNewItem"),dojo.connect(_92b,"onDelete",this,"_onDeleteItem"),dojo.connect(_92b,"onSet",this,"_onSetItem")];}this._set("store",_92b);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_92b){this._loadingStore=true;_92b.fetch(dojo.delegate(_92d,{onComplete:function(_92f,opts){if(this.sortByLabel&&!_92d.sort&&_92f.length){_92f.sort(dojo.data.util.sorter.createSortFunction([{attribute:_92b.getLabelAttributes(_92f[0])[0]}],_92b));}if(_92d.onFetch){_92f=_92d.onFetch.call(this,_92f,opts);}dojo.forEach(_92f,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_92c);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_92f);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _92e;},_setValueAttr:function(_930,_931){if(this._loadingStore){this._pendingValue=_930;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_930)){_930=[_930];}dojo.forEach(_930,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_930[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_930=dojo.filter(_930,function(i){return i&&i.value;});if(!this.multiple&&(!_930[0]||!_930[0].value)&&opts.length){_930[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_930,function(v){return v.value===i.value;});});var val=dojo.map(_930,function(i){return i.value;}),disp=dojo.map(_930,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,_931);},_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(_932){_932.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(_933){var _934=dojo.some(val,function(v){return _933.option&&(v===_933.option.value);});dojo.toggleClass(_933.domNode,this.baseClass+"SelectedOption",_934);dijit.setWaiState(_933.domNode,"selected",_934);},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,_935){if(!_935||!_935.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _936=this.store;this.removeOption(_936.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _937=this.store,_938=_937.getLabel(item),_939=(_938?_937.getIdentity(item):null);return {value:_939,label:_938,item:item};},_addOptionForItem:function(item){var _93a=this.store;if(!_93a.isItemLoaded(item)){_93a.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _93b=this._getOptionObjForItem(item);this.addOption(_93b);},constructor:function(_93c){this._oValue=(_93c||{}).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 _93d=this.store,_93e={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_93e[i]=this[i];}delete this[i];},this);if(_93d&&_93d.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_93d,this._oValue,_93e);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_93f){},_removeOptionItem:function(_940){},_setDisplay:function(_941){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_942){},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(_943){if(!_943.value&&!_943.label){return new dijit.MenuSeparator();}else{var _944=dojo.hitch(this,"_setValueAttr",_943);var item=new dijit.MenuItem({option:_943,label:_943.label||this.emptyLabel,onClick:_944,disabled:_943.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_945){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_945));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_946){if(_946===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_947){_947.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(_948){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_949){var lbl=_949||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_94a){var _94b=this.isValid(_94a);this._set("state",_94b?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_94b?"false":"true");var _94c=_94b?"":this._missingMsg;if(this.message!==_94c){this._set("message",_94c);dijit.hideTooltip(this.domNode);if(_94c){dijit.showTooltip(_94c,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _94b;},isValid:function(_94d){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(_94e){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_94f){this._loadChildren(true);this._isLoaded=true;_94f();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_950){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_950);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 _951=dijit.byId(this.select_id);var v=_951.get("value");if(v instanceof Array){Map.zoomToExtent(OpenLayers.Bounds.fromArray(v));_951.set("value","reset");}},postCreate:function(){var p=dojo.create("div",{});this.set("content",p);for(var _952 in CONFIGURATION["zoomto"]){var _953=CONFIGURATION["zoomto"][_952];var _954=dojo.create("div",{},p);dojo.style(_954,{"padding":".5em"});var _955=dojo.create("span",{"innerHTML":_952},_954);var _956=[{"label":"","value":"reset"}];for(var _957 in CONFIGURATION["zoomto"][_952]){_956.push({"label":_957,"value":_953[_957]});}this.select_id=GeoMOOSE.id();var _958=dojo.create("span",{"id":this.select_id},_954);var _959=new dijit.form.Select({maxHeight:160,options:_956},_958);dojo.connect(_959,"onChange",dojo.hitch(this,this.zoomTo));dojo.addClass(_959.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 _95a=dojo.byId("menubar");if(GeoMOOSE.isDefined(CONFIGURATION["links_bar_html"])){_95a.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},start_measure:function(){var _95b=GeoMOOSE.getTab("measure_area_tab");var p=null;if(!GeoMOOSE.isDefined(_95b)){p=dojo.create("div",{});_95b=new dijit.layout.ContentPane({"title":"Measure Area","closable":false,"content":p});GeoMOOSE.addTab("measure_area_tab",_95b);dojo.connect(_95b,"onHide",dojo.hitch(this,this.onHide));dojo.connect(_95b,"onClose",dojo.hitch(this,this.onHide));dojo.connect(_95b,"onShow",dojo.hitch(this,this.onShow));}else{p=_95b.content;}p.innerHTML="";var _95c=dojo.create("div",{},p);var _95d=dojo.create("div",{},_95c);var _95e=dojo.create("span",{"innerHTML":"Total:"},_95d);dojo.addClass(_95e,["dijitInline","measure_header_label"]);this.total_display=new dijit.form.TextBox({"style":{"width":"10em"},"readOnly":true},dojo.create("span",{},_95d));if(this.show_segments){var _95f=dojo.create("div",{},_95c);var _960=dojo.create("span",{"innerHTML":"Segment:"},_95f);dojo.addClass(_960,["dijitInline","measure_header_label"]);this.segment_display=new dijit.form.TextBox({"style":{"width":"10em"},"readOnly":true},dojo.create("span",{},_95f));}var _961=dojo.create("div",{},_95c);var _962=dojo.create("span",{"innerHTML":"Units:"},_961);dojo.addClass(_962,["dijitInline","measure_header_label"]);var _963=[];for(var i=0,ii=this.units.length;i<ii;i++){_963.push({"label":this.units[i].label,"value":this.units[i].unit});}this.units_select=new dijit.form.Select({"style":{"width":"10em"},"options":_963,"onChange":dojo.hitch(this,this.change_units)},dojo.create("span",{},_961));this.units_select.set("value",CONFIGURATION.measure_tool.area_units);var _964=dojo.create("div",{},_95c);dojo.addClass(dojo.create("span",{},_964),["dijitInline","measure_header_label"]);this.clear_button=new dijit.form.Button({"label":"Clear","onClick":dojo.hitch(this,this.clear_log)},dojo.create("span",{},_964));this.tbody_id=GeoMOOSE.id();var body=dojo.create("div",{},p);var _965=dojo.create("table",{},body);var _966=dojo.create("thead",{},_965);var _967=dojo.create("tr",{},_966);var _968={"#":"measure_segment_id_column","Segment":"measure_segment_column","Total":"measure_total_column"};if(!this.show_segments){delete _968["Segment"];}for(var _969 in _968){dojo.addClass(dojo.create("th",{"innerHTML":_969},_967),_968[_969]);}var _96a=dojo.create("tbody",{"id":this.tbody_id},_965);if(!this.show_segments){dojo.style(_965,{"display":"none"});}GeoMOOSE.selectTab("measure_area_tab");},constructor:function(map,_96b){dojo.mixin(this,_96b);this.measures=[];if(parseBoolean(CONFIGURATION.measure_tool.show_area_segments,true)===false){this.show_segments=false;}var _96c=new OpenLayers.Style();_96c.addRules([new OpenLayers.Rule({symbolizer:CONFIGURATION.measure_tool.style})]);var _96d=new OpenLayers.StyleMap({"default":_96c});var _96e={geodesic:true,handlerOptions:{style:"default",layerOptions:{styleMap:_96d},persist:true}};this.measure_tool=new GeoMOOSE.Control.Measure(GeoMOOSE.Handler.MeasurePolygon,_96e);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);},closeMeasure:function(map){dijit.byId("tabs").closeChild(GeoMOOSE.getTab("measure_area_tab"));},_convertUnits:function(area){var _96f=this.conversion[Map.units];var _970=area/this.conversion[this.units_select.get("value")];return _970;},show_measure:function(_971){this.current_segment=_971.measure;if(this.show_segments){this.segment_display.set("value",this._convertUnits(_971.measure).toFixed(CONFIGURATION.measure_tool.precision));}},log_measure:function(_972){if(this.reset_measure){this.clear_log();}this.reset_measure=false;if(_972.measure.toFixed()!=0){this.measures.push(_972.measure);}this.current_total=_972.measure;this.total_display.set("value",this._convertUnits(_972.measure).toFixed(CONFIGURATION.measure_tool.precision));this.render_log();},render_log:function(){var _973=dojo.byId(this.tbody_id);while(_973.firstChild){_973.removeChild(_973.firstChild);}var _974=0;for(var i=0,ii=this.measures.length;i<ii;i++){var row=dojo.create("tr",{},_973);var seg=this.measures[i]-_974;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);_974=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 _975=this._convertUnits(this.current_total).toFixed(CONFIGURATION.measure_tool.precision);if(isNaN(_975)){_975="";}this.total_display.set("value",_975);if(this.show_segments){var _976=this._convertUnits(this.current_segment).toFixed(CONFIGURATION.measure_tool.precision);if(isNaN(_976)){_976="";}this.segment_display.set("value",_976);}},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);}})();
  • geomoose2/trunk/htdocs/geomoose/GeoMOOSE/MapSource.js

    r754 r878  
    217217                this.params = this._parseParams(mapbook_entry);
    218218                this.layers = this._parseLayers(mapbook_entry);
     219
     220                this.attributes = {};
     221                var valid_attributes = ['opacity', 'buffer'];
     222                for(var i = 0, ii = valid_attributes.length; i < ii; i++) {
     223                        var attr_value = mapbook_entry.getAttribute(valid_attributes[i]);
     224                        if(!GeoMOOSE.isDefined(attr_value)) {
     225                                attr_value = null;
     226                        }
     227                        this.attributes[valid_attributes[i]] = attr_value;
     228                }
    219229
    220230        },
  • geomoose2/trunk/htdocs/geomoose/GeoMOOSE/MapSource/WMS.js

    r791 r878  
    100100
    101101                this._createOLLayer(options);
     102
     103                if(GeoMOOSE.isDefined(this.attributes['opacity'])) {
     104                        this.setOpacity(parseFloat(this.attributes['opacity']));
     105                }
     106
    102107                this.updateParameters({});
    103108
Note: See TracChangeset for help on using the changeset viewer.