;(function(){eval("var djConfig = {parseOnLoad:true, isDebug:false};");var sMap=null;if((sMap||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var scopeDef="",scopePrefix="",scopeSuffix="",scopeMap={},scopeMapRev={};sMap=sMap||djConfig.scopeMap;for(var i=0;i<sMap.length;i++){var newScope=sMap[i];scopeDef+="var "+newScope[0]+" = {}; "+newScope[1]+" = "+newScope[0]+";"+newScope[1]+"._scopeName = '"+newScope[1]+"';";scopePrefix+=(i==0?"":",")+newScope[0];scopeSuffix+=(i==0?"":",")+newScope[1];scopeMap[newScope[0]]=newScope[1];scopeMapRev[newScope[1]]=newScope[0];}
eval(scopeDef+"dojo._scopeArgs = ["+scopeSuffix+"];");dojo._scopePrefixArgs=scopePrefix;dojo._scopePrefix="(function("+scopePrefix+"){";dojo._scopeSuffix="})("+scopeSuffix+")";dojo._scopeMap=scopeMap;dojo._scopeMapRev=scopeMapRev;}
(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 tcn=tn+"";console[tcn]=('log'in console)?function(){var a=Array.apply({},arguments);a.unshift(tcn+":");console["log"](a.join(" "));}:function(){}})();}}}
if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}
var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}
if(typeof dojox=="undefined"){this.dojox={_scopeName:"dojox"};}
if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}
d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var opt in djConfig){d.config[opt]=djConfig[opt];}}
dojo.locale=d.config.locale;var rev="$Rev: 17136 $".match(/\d+/);dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:rev?+rev[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 tobj={};dojo._mixin=function(obj,props){for(var x in props){if(tobj[x]===undefined||tobj[x]!=props[x]){obj[x]=props[x];}}
if(d.isIE&&props){var p=props.toString;if(typeof p=="function"&&p!=obj.toString&&p!=tobj.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){obj.toString=props.toString;}}
return obj;}
dojo.mixin=function(obj,props){if(!obj){obj={};}
for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}
return obj;}
dojo._getProp=function(parts,create,context){var obj=context||d.global;for(var i=0,p;obj&&(p=parts[i]);i++){if(i==0&&this._scopeMap[p]){p=this._scopeMap[p];}
obj=(p in obj?obj[p]:(create?obj[p]={}:undefined));}
return obj;}
dojo.setObject=function(name,value,context){var parts=name.split("."),p=parts.pop(),obj=d._getProp(parts,true,context);return obj&&p?(obj[p]=value):undefined;}
dojo.getObject=function(name,create,context){return d._getProp(name.split("."),create,context);}
dojo.exists=function(name,obj){return!!d.getObject(name,false,obj);}
dojo["eval"]=function(scriptFragment){return d.global.eval?d.global.eval(scriptFragment):eval(scriptFragment);}
d.deprecated=d.experimental=function(){};})();(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(module){var mp=this._modulePrefixes;return!!(mp[module]&&mp[module].value);},_getModulePrefix:function(module){var mp=this._modulePrefixes;if(this._moduleHasPrefix(module)){return mp[module].value;}
return module;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(relpath,module,cb){var uri=((relpath.charAt(0)=='/'||relpath.match(/^\w+:/))?"":this.baseUrl)+relpath;try{return!module?this._loadUri(uri,cb):this._loadUriAndCheck(uri,module,cb);}catch(e){console.error(e);return false;}}
dojo._loadUri=function(uri,cb){if(this._loadedUrls[uri]){return true;}
var contents=this._getText(uri,true);if(!contents){return false;}
this._loadedUrls[uri]=true;this._loadedUrls.push(uri);if(cb){contents='('+contents+')';}else{contents=this._scopePrefix+contents+this._scopeSuffix;}
if(d.isMoz){contents+="\r\n//@ sourceURL="+uri;}
var value=d["eval"](contents);if(cb){cb(value);}
return true;}
dojo._loadUriAndCheck=function(uri,moduleName,cb){var ok=false;try{ok=this._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}
return!!(ok&&this._loadedModules[moduleName]);}
dojo.loaded=function(){this._loadNotifying=true;this._postLoad=true;var mll=d._loaders;this._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}
this._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 func=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){func.call(obj);});}}
dojo.addOnLoad=function(obj,functionName){d._onto(d._loaders,obj,functionName);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"||(dojo.config.useXDomain&&d.isOpera)){if(dojo.isAIR){setTimeout(function(){dojo.loaded();},0);}else{setTimeout(dojo._scopeName+".loaded();",0);}}else{d.loaded();}}
dojo._getModuleSymbols=function(modulename){var syms=modulename.split(".");for(var i=syms.length;i>0;i--){var parentModule=syms.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(parentModule)){syms[0]="../"+syms[0];}else{var parentModulePath=this._getModulePrefix(parentModule);if(parentModulePath!=parentModule){syms.splice(0,i,parentModulePath);break;}}}
return syms;}
dojo._global_omit_module_check=false;dojo.loadInit=function(init){init();}
dojo._loadModule=dojo.require=function(moduleName,omitModuleCheck){omitModuleCheck=this._global_omit_module_check||omitModuleCheck;var module=this._loadedModules[moduleName];if(module){return module;}
var relpath=this._getModuleSymbols(moduleName).join("/")+'.js';var modArg=(!omitModuleCheck)?moduleName:null;var ok=this._loadPath(relpath,modArg);if(!ok&&!omitModuleCheck){throw new Error("Could not load '"+moduleName+"'; last tried '"+relpath+"'");}
if(!omitModuleCheck&&!this._isXDomain){module=this._loadedModules[moduleName];if(!module){throw new Error("symbol '"+moduleName+"' is not defined after loading '"+relpath+"'");}}
return module;}
dojo.provide=function(resourceName){resourceName=resourceName+"";return(d._loadedModules[resourceName]=d.getObject(resourceName,true));}
dojo.platformRequire=function(modMap){var common=modMap.common||[];var result=common.concat(modMap[d._name]||modMap["default"]||[]);for(var x=0;x<result.length;x++){var curr=result[x];if(curr.constructor==Array){d._loadModule.apply(d,curr);}else{d._loadModule(curr);}}}
dojo.requireIf=function(condition,resourceName){if(condition===true){var args=[];for(var i=1;i<arguments.length;i++){args.push(arguments[i]);}
d.require.apply(d,args);}}
dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(module,prefix){d._modulePrefixes[module]={name:module,value:prefix};}
dojo.requireLocalization=function(moduleName,bundleName,locale,availableFlatLocales){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");var ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null;var _a=arguments;var uri=[_a[0]];for(var i=1;i<_a.length;i++){if(!_a[i]){continue;}
var relobj=new d._Url(_a[i]+"");var uriobj=new d._Url(uri[0]+"");if(relobj.path==""&&!relobj.scheme&&!relobj.authority&&!relobj.query){if(relobj.fragment!=n){uriobj.fragment=relobj.fragment;}
relobj=uriobj;}else if(!relobj.scheme){relobj.scheme=uriobj.scheme;if(!relobj.authority){relobj.authority=uriobj.authority;if(relobj.path.charAt(0)!="/"){var path=uriobj.path.substring(0,uriobj.path.lastIndexOf("/")+1)+relobj.path;var segs=path.split("/");for(var j=0;j<segs.length;j++){if(segs[j]=="."){if(j==segs.length-1){segs[j]="";}else{segs.splice(j,1);j--;}}else if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){if(j==(segs.length-1)){segs.splice(j,1);segs[j-1]="";}else{segs.splice(j-1,2);j-=2;}}}
relobj.path=segs.join("/");}}}
uri=[];if(relobj.scheme){uri.push(relobj.scheme,":");}
if(relobj.authority){uri.push("//",relobj.authority);}
uri.push(relobj.path);if(relobj.query){uri.push("?",relobj.query);}
if(relobj.fragment){uri.push("#",relobj.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(module,url){var loc=d._getModuleSymbols(module).join('/');if(!loc){return null;}
if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}
var colonIndex=loc.indexOf(":");if(loc.charAt(0)!="/"&&(colonIndex==-1||colonIndex>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 scripts=document.getElementsByTagName("script");var rePkg=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<scripts.length;i++){var src=scripts[i].getAttribute("src");if(!src){continue;}
var m=src.match(rePkg);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}
var cfg=scripts[i].getAttribute("djConfig");if(cfg){var cfgo=eval("({ "+cfg+" })");for(var x in cfgo){dojo.config[x]=cfgo[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;var index=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(index&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(index+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]||dua.split("Shiretoko/")[1])||undefined;}
if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;if(d.isIE>=8&&document.documentMode!=5){d.isIE=document.documentMode;}}
if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}
var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;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 http,last_e;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{http=new XMLHttpRequest();}catch(e){}}
if(!http){for(var i=0;i<3;++i){var progid=d._XMLHTTP_PROGIDS[i];try{http=new ActiveXObject(progid);}catch(e){last_e=e;}
if(http){d._XMLHTTP_PROGIDS=[progid];break;}}}
if(!http){throw new Error("XMLHTTP not available: "+last_e);}
return http;}
d._isDocumentOk=function(http){var stat=http.status||0;return(stat>=200&&stat<300)||stat==304||stat==1223||(!stat&&(location.protocol=="file:"||location.protocol=="chrome:"));}
var owloc=window.location+"";var base=document.getElementsByTagName("base");var hasBase=(base&&base.length>0);d._getText=function(uri,fail_ok){var http=this._xhrObj();if(!hasBase&&dojo._Url){uri=(new dojo._Url(owloc,uri)).toString();}
if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}
http.open('GET',uri,false);try{http.send(null);if(!d._isDocumentOk(http)){var err=Error("Unable to load "+uri+" status:"+http.status);err.status=http.status;err.responseText=http.responseText;throw err;}}catch(e){if(fail_ok){return null;}
throw e;}
return http.responseText;}
var _w=window;var _handleNodeEvent=function(evtName,fp){var oldHandler=_w[evtName]||function(){};_w[evtName]=function(){fp.apply(_w,arguments);oldHandler.apply(_w,arguments);};};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};var _onWindowUnloadAttached=0;d.addOnWindowUnload=function(obj,functionName){d._onto(d._windowUnloaders,obj,functionName);if(!_onWindowUnloadAttached){_onWindowUnloadAttached=1;_handleNodeEvent("onunload",d.windowUnloaded);}};var _onUnloadAttached=0;d.addOnUnload=function(obj,functionName){d._onto(d._unloaders,obj,functionName);if(!_onUnloadAttached){_onUnloadAttached=1;_handleNodeEvent("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var type=e&&e.type?e.type.toLowerCase():"load";if(arguments.callee.initialized||(type!="domcontentloaded"&&type!="load")){return;}
arguments.callee.initialized=true;if("_khtmlTimer"in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}
if(dojo._inFlightCount==0){dojo._modulesLoaded();}}
if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isWebKit>525||dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}
window.addEventListener("load",dojo._loadInit,null);}
if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else if((dojo.isWebKit<525)||dojo.isKhtml){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}
if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write('<scr'+'ipt defer src="//:" '
+'onreadystatechange="if(this.readyState==\'complete\'){'+dojo._scopeName+'._loadInit();}">'
+'</scr'+'ipt>');}
try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML);  display:inline-block");}catch(e){}}}
(function(){var mp=dojo.config["modulePaths"];if(mp){for(var param in mp){dojo.registerModulePath(param,mp[param]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}
if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");dojo.require("dojo.i18n");}
if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");dojo.isString=function(it){return!!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);}
dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");}
dojo.isFunction=(function(){var _isFunction=function(it){var t=typeof it;return it&&(t=="function"||it instanceof Function);};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}
return _isFunction(it);}:_isFunction;})();dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));}
dojo.isArrayLike=function(it){var d=dojo;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&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));}
dojo.extend=function(constructor,props){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(constructor.prototype,arguments[i]);}
return constructor;}
dojo._hitchArgs=function(scope,method){var pre=dojo._toArray(arguments,2);var named=dojo.isString(method);return function(){var args=dojo._toArray(arguments);var f=named?(scope||dojo.global)[method]:method;return f&&f.apply(scope||this,pre.concat(args));}}
dojo.hitch=function(scope,method){if(arguments.length>2){return dojo._hitchArgs.apply(dojo,arguments);}
if(!method){method=scope;scope=null;}
if(dojo.isString(method)){scope=scope||dojo.global;if(!scope[method]){throw(['dojo.hitch: scope["',method,'"] is null (scope="',scope,'")'].join(''));}
return function(){return scope[method].apply(scope,arguments||[]);};}
return!scope?method:function(){return method.apply(scope,arguments||[]);};}
dojo.delegate=dojo._delegate=(function(){function TMP(){}
return function(obj,props){TMP.prototype=obj;var tmp=new TMP();if(props){dojo._mixin(tmp,props);}
return tmp;}})();(function(){var efficient=function(obj,offset,startWith){return(startWith||[]).concat(Array.prototype.slice.call(obj,offset||0));};var slow=function(obj,offset,startWith){var arr=startWith||[];for(var x=offset||0;x<obj.length;x++){arr.push(obj[x]);}
return arr;};dojo._toArray=dojo.isIE?function(obj){return((obj.item)?slow:efficient).apply(this,arguments);}:efficient;})();dojo.partial=function(method){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));}
dojo.clone=function(o){if(!o){return o;}
if(dojo.isArray(o)){var r=[];for(var i=0;i<o.length;++i){r.push(dojo.clone(o[i]));}
return r;}
if(!dojo.isObject(o)){return o;}
if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}
if(o instanceof Date){return new Date(o.getTime());}
r=new o.constructor();for(i in o){if(!(i in r)||r[i]!=o[i]){r[i]=dojo.clone(o[i]);}}
return r;}
dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,'').replace(/\s\s*$/,'');};}
if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");dojo.declare=function(className,superclass,props){var dd=arguments.callee,mixins;if(dojo.isArray(superclass)){mixins=superclass;superclass=mixins.shift();}
if(mixins){dojo.forEach(mixins,function(m,i){if(!m){throw(className+": mixin #"+i+" is null");}
superclass=dd._delegate(superclass,m);});}
var ctor=dd._delegate(superclass);props=props||{};ctor.extend(props);dojo.extend(ctor,{declaredClass:className,_constructor:props.constructor});ctor.prototype.constructor=ctor;return dojo.setObject(className,ctor);};dojo.mixin(dojo.declare,{_delegate:function(base,mixin){var bp=(base||0).prototype,mp=(mixin||0).prototype,dd=dojo.declare;var ctor=dd._makeCtor();dojo.mixin(ctor,{superclass:bp,mixin:mp,extend:dd._extend});if(base){ctor.prototype=dojo._delegate(bp);}
dojo.extend(ctor,dd._core,mp||0,{_constructor:null,preamble:null});ctor.prototype.constructor=ctor;ctor.prototype.declaredClass=(bp||0).declaredClass+'_'+(mp||0).declaredClass;return ctor;},_extend:function(props){var i,fn;for(i in props){if(dojo.isFunction(fn=props[i])&&!0[i]){fn.nom=i;fn.ctor=this;}}
dojo.extend(this,props);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(args){var c=args.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=args,ii,fn;if(a[0]){if(((fn=a[0].preamble))){a=fn.apply(this,a)||a;}}
if((fn=c.prototype.preamble)){a=fn.apply(this,a)||a;}
if(ct&&ct.apply){ct.apply(this,a);}
if(mct&&mct.apply){mct.apply(this,a);}
if((ii=c.prototype._constructor)){ii.apply(this,args);}
if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,args);}},_findMixin:function(mixin){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==mixin||(m instanceof mixin.constructor)){return p;}
if(m&&m._findMixin&&(m=m._findMixin(mixin))){return m;}
c=p&&p.constructor;}},_findMethod:function(name,method,ptype,has){var p=ptype,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(name,method,m,has))){return m;}
if((f=p[name])&&(has==(f==method))){return p;}
p=c.superclass;}while(p);return!has&&(p=this._findMixin(ptype))&&this._findMethod(name,method,p,has);},inherited:function(name,args,newArgs){var a=arguments;if(!dojo.isString(a[0])){newArgs=args;args=name;name=args.callee.nom;}
a=newArgs||args;var c=args.callee,p=this.constructor.prototype,fn,mp;if(this[name]!=c||p[name]==c){mp=(c.ctor||0).superclass||this._findMethod(name,c,p,true);if(!mp){throw(this.declaredClass+': inherited method "'+name+'" mismatch');}
p=this._findMethod(name,c,mp,false);}
fn=p&&p[name];if(!fn){throw(mp.declaredClass+': inherited method "'+name+'" not found');}
return fn.apply(this,a);}}});}
if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var lls;lls=[].concat(ls);for(var i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}
return r;}},add:function(source,method,listener){source=source||dojo.global;var f=source[method];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=source[method]=d;}
return f._listeners.push(listener);},remove:function(source,method,handle){var f=(source||dojo.global)[method];if(f&&f._listeners&&handle--){delete f._listeners[handle];}}};dojo.connect=function(obj,event,context,method,dontFix){var a=arguments,args=[],i=0;args.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}
return dojo._connect.apply(this,args);}
dojo._connect=function(obj,event,context,method){var l=dojo._listener,h=l.add(obj,event,dojo.hitch(context,method));return[obj,event,h,l];}
dojo.disconnect=function(handle){if(handle&&handle[0]!==undefined){dojo._disconnect.apply(this,handle);delete handle[0];}}
dojo._disconnect=function(obj,event,handle,listener){listener.remove(obj,event,handle);}
dojo._topics={};dojo.subscribe=function(topic,context,method){return[topic,dojo._listener.add(dojo._topics,topic,dojo.hitch(context,method))];}
dojo.unsubscribe=function(handle){if(handle){dojo._listener.remove(dojo._topics,handle[0],handle[1]);}}
dojo.publish=function(topic,args){var f=dojo._topics[topic];if(f){f.apply(this,args||[]);}}
dojo.connectPublisher=function(topic,obj,event){var pf=function(){dojo.publish(topic,arguments);}
return(event)?dojo.connect(obj,event,pf):dojo.connect(obj,pf);};}
if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(canceller){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=canceller;this.silentlyCancelled=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}
if(this.fired==-1){if(!(err instanceof Error)){var res=err;var msg="Deferred Cancelled";if(err&&err.toString){msg+=": "+err.toString();}
err=new Error(msg);err.dojoType="cancel";err.cancelResult=res;}
this.errback(err);}}else if((this.fired==0)&&(this.results[0]instanceof dojo.Deferred)){this.results[0].cancel();}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}
this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}
this._resback(res);},addBoth:function(cb,cbfn){var enclosed=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(enclosed,enclosed);},addCallback:function(cb,cbfn){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,cbfn){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb])
if(this.fired>=0){this._fire();}
return this;},_fire:function(){var chain=this.chain;var fired=this.fired;var res=this.results[fired];var self=this;var cb=null;while((chain.length>0)&&(this.paused==0)){var f=chain.shift()[fired];if(!f){continue;}
var func=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}
fired=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire();}}
this.paused++;}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(err){fired=1;res=err;}}}
this.fired=fired;this.results[fired]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});}
if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(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,prettyPrint,_indentStr){if(it===undefined){return"undefined";}
var objtype=typeof it;if(objtype=="number"||objtype=="boolean"){return it+"";}
if(it===null){return"null";}
if(dojo.isString(it)){return dojo._escapeString(it);}
var recurse=arguments.callee;var newObj;_indentStr=_indentStr||"";var nextIndent=prettyPrint?_indentStr+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){newObj=tf.call(it);if(it!==newObj){return recurse(newObj,prettyPrint,nextIndent);}}
if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}
var sep=prettyPrint?" ":"";var newLine=prettyPrint?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=recurse(obj,prettyPrint,nextIndent);if(typeof val!="string"){val="undefined";}
return newLine+nextIndent+val;});return"["+res.join(","+sep)+newLine+_indentStr+"]";}
if(objtype=="function"){return null;}
var output=[],key;for(key in it){var keyStr,val;if(typeof key=="number"){keyStr='"'+key+'"';}else if(typeof key=="string"){keyStr=dojo._escapeString(key);}else{continue;}
val=recurse(it[key],prettyPrint,nextIndent);if(typeof val!="string"){continue;}
output.push(newLine+nextIndent+keyStr+":"+sep+val);}
return"{"+output.join(","+sep)+newLine+_indentStr+"}";}}
if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _getParts=function(arr,obj,cb){return[dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];};dojo.mixin(dojo,{indexOf:function(array,value,fromIndex,findLast){var step=1,end=array.length||0,i=0;if(findLast){i=end-1;step=end=-1;}
if(fromIndex!=undefined){i=fromIndex;}
if((findLast&&i>end)||i<end){for(;i!=end;i+=step){if(array[i]==value){return i;}}}
return-1;},lastIndexOf:function(array,value,fromIndex){return dojo.indexOf(array,value,fromIndex,true);},forEach:function(arr,callback,thisObject){if(!arr||!arr.length){return;}
var _p=_getParts(arr,thisObject,callback);arr=_p[0];for(var i=0,l=arr.length;i<l;++i){_p[2].call(_p[1],arr[i],i,arr);}},_everyOrSome:function(every,arr,callback,thisObject){var _p=_getParts(arr,thisObject,callback);arr=_p[0];for(var i=0,l=arr.length;i<l;++i){var result=!!_p[2].call(_p[1],arr[i],i,arr);if(every^result){return result;}}
return every;},every:function(arr,callback,thisObject){return this._everyOrSome(true,arr,callback,thisObject);},some:function(arr,callback,thisObject){return this._everyOrSome(false,arr,callback,thisObject);},map:function(arr,callback,thisObject){var _p=_getParts(arr,thisObject,callback);arr=_p[0];var outArr=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){outArr.push(_p[2].call(_p[1],arr[i],i,arr));}
return outArr;},filter:function(arr,callback,thisObject){var _p=_getParts(arr,thisObject,callback);arr=_p[0];var outArr=[];for(var i=0,l=arr.length;i<l;++i){if(_p[2].call(_p[1],arr[i],i,arr)){outArr.push(arr[i]);}}
return outArr;}});})();}
if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(color){if(color){this.setColor(color);}};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]};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(color){if(d.isString(color)){d.colorFromString(color,this);}else if(d.isArray(color)){d.colorFromArray(color,this);}else{this._set(color.r,color.g,color.b,color.a);if(!(color 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(includeAlpha){var t=this,rgb=t.r+", "+t.g+", "+t.b;return(includeAlpha?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(start,end,weight,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=start[x]+(end[x]-start[x])*weight;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(color,obj){var m=color.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(color,obj){var t=obj||new d.Color(),bits=(color.length==4)?4:8,mask=(1<<bits)-1;color=Number("0x"+color.substr(1));if(isNaN(color)){return null;}
d.forEach(["b","g","r"],function(x){var c=color&mask;color>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}
return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}
if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}
if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];}
dojo.setContext=function(globalObject,globalDocument){dojo.global=globalObject;dojo.doc=globalDocument;};dojo.withGlobal=function(globalObject,callback,thisObject,cbArguments){var oldGlob=dojo.global;try{dojo.global=globalObject;return dojo.withDoc.call(null,globalObject.document,callback,thisObject,cbArguments);}finally{dojo.global=oldGlob;}}
dojo.withDoc=function(documentObject,callback,thisObject,cbArguments){var oldDoc=dojo.doc,oldLtr=dojo._bodyLtr;try{dojo.doc=documentObject;delete dojo._bodyLtr;if(thisObject&&dojo.isString(callback)){callback=thisObject[callback];}
return callback.apply(thisObject,cbArguments||[]);}finally{dojo.doc=oldDoc;if(oldLtr!==undefined){dojo._bodyLtr=oldLtr;}}};}
if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}
name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var oname=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(dojo.isFF<=2){try{e.relatedTarget.tagName;}catch(e2){return;}}
if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}}}
node.addEventListener(name,fp,false);return fp;},remove:function(node,event,handle){if(node){event=del._normalizeEventName(event);if(!dojo.isIE&&(event=="mouseenter"||event=="mouseleave")){event=(event=="mouseenter")?"mouseover":"mouseout";}
node.removeEventListener(event,handle,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,sender){switch(evt.type){case"keypress":del._setKeyChar(evt);break;}
return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):'';evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,sender){return del._fixEvent(evt,sender);}
dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();}
var node_listener=dojo._listener;dojo._connect=function(obj,event,context,method,dontFix){var isNode=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=isNode?(dontFix?2:1):0,l=[dojo._listener,del,node_listener][lid];var h=l.add(obj,event,dojo.hitch(context,method));return[obj,event,h,lid];}
dojo._disconnect=function(obj,event,handle,listener){([dojo._listener,del,node_listener][listener]).remove(obj,event,handle);}
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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};if(dojo.isIE){var _trySetKeyCode=function(e,code){try{return(e.keyCode=code);}catch(e){return 0;}}
var iel=dojo._listener;var listenersName=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){node_listener=iel=dojo._ie_listener={handlers:[],add:function(source,method,listener){source=source||dojo.global;var f=source[method];if(!f||!f[listenersName]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[listenersName]=[];f=source[method]=d;}
return f[listenersName].push(ieh.push(listener)-1);},remove:function(source,method,handle){var f=(source||dojo.global)[method],l=f&&f[listenersName];if(f&&l&&handle--){delete ieh[l[handle]];delete l[handle];}}};var ieh=iel.handlers;}
dojo.mixin(del,{add:function(node,event,fp){if(!node){return;}
event=del._normalizeEventName(event);if(event=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[listenersName]||!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,event,del._fixCallback(fp));},remove:function(node,event,handle){event=del._normalizeEventName(event);iel.remove(node,event,handle);if(event=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(eventName){return eventName.slice(0,2)!="on"?"on"+eventName:eventName;},_nop:function(){},_fixEvent:function(evt,sender){if(!evt){var w=sender&&(sender.ownerDocument||sender.document||sender).parentWindow||window;evt=w.event;}
if(!evt){return(evt);}
evt.target=evt.srcElement;evt.currentTarget=(sender||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var docBody=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var offset=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(docBody.scrollLeft||0)-offset.x;evt.pageY=evt.clientY+(docBody.scrollTop||0)-offset.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}
if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}
evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case"keypress":var c=("charCode"in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else if(c==13||c==27){c=0;}else if(c==3){c=99;}
evt.charCode=c;del._setKeyChar(evt);break;}
return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[listenersName]){return;}
var k=evt.keyCode;var unprintable=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(unprintable||evt.ctrlKey){var c=unprintable?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else if(c>95&&c<106){c-=48;}else if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}
var faux=del._synthesizeEvent(evt,{type:'keypress',faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_trySetKeyCode(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_trySetKeyCode(this,0);}
this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);}}
del._synthesizeEvent=function(evt,props){var faux=dojo.mixin({},evt,props);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;}
if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,sender){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,event,fp){if(!node){return;}
var handle=del._add(node,event,fp);if(del._normalizeEventName(event)=="keypress"){handle._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var unprintable=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(unprintable||evt.ctrlKey){var c=unprintable?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 handle;},remove:function(node,event,handle){if(node){if(handle._stealthKeyDownHandle){del._remove(node,"keydown",handle._stealthKeyDownHandle);}
del._remove(node,event,handle);}},_fixEvent:function(evt,sender){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,sender){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(sender,args);var lls=[].concat(ls);for(var i in lls){if(!(i in ap)){h[lls[i]].apply(sender,args);}}
return r;}
dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");}
dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};}}}
if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}
if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(dojo.isString(id)){var _d=doc||dojo.doc;var te=_d.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_d.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{return id;}};}else{dojo.byId=function(id,doc){return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;};}
(function(){var d=dojo;var _destroyContainer=null;d.addOnWindowUnload(function(){_destroyContainer=null;});dojo._destroyElement=dojo.destroy=function(node){node=d.byId(node);try{if(!_destroyContainer||_destroyContainer.ownerDocument!=node.ownerDocument){_destroyContainer=node.ownerDocument.createElement("div");}
_destroyContainer.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_destroyContainer.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,ancestor){try{node=d.byId(node);ancestor=d.byId(ancestor);while(node){if(node===ancestor){return true;}
node=node.parentNode;}}catch(e){}
return false;};dojo.setSelectable=function(node,selectable){node=d.byId(node);if(d.isMozilla){node.style.MozUserSelect=selectable?"":"none";}else if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=selectable?"auto":"none";}else if(d.isIE){var v=(node.unselectable=selectable?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}};var _insertBefore=function(node,ref){var parent=ref.parentNode;if(parent){parent.insertBefore(node,ref);}}
var _insertAfter=function(node,ref){var parent=ref.parentNode;if(parent){if(parent.lastChild==ref){parent.appendChild(node);}else{parent.insertBefore(node,ref.nextSibling);}}}
dojo.place=function(node,refNode,position){refNode=d.byId(refNode);if(d.isString(node)){node=node.charAt(0)=="<"?d._toDom(node,refNode.ownerDocument):d.byId(node);}
if(typeof position=="number"){var cn=refNode.childNodes;if(!cn.length||cn.length<=position){refNode.appendChild(node);}else{_insertBefore(node,cn[position<0?0:position]);}}else{switch(position){case"before":_insertBefore(node,refNode);break;case"after":_insertAfter(node,refNode);break;case"replace":refNode.parentNode.replaceChild(node,refNode);break;case"only":d.empty(refNode);refNode.appendChild(node);break;case"first":if(refNode.firstChild){_insertBefore(node,refNode.firstChild);break;}
default:refNode.appendChild(node);}}
return node;}
dojo.boxModel="content-box";if(d.isIE){var _dcm=document.compatMode;d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"border-box":"content-box";}
var gcs;if(d.isWebKit){gcs=function(node){var s;if(node instanceof HTMLElement){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 instanceof HTMLElement?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}
dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(element,value){return parseFloat(value)||0;};}else{d._toPixelValue=function(element,avalue){if(!avalue){return 0;}
if(avalue=="medium"){return 4;}
if(avalue.slice&&avalue.slice(-2)=='px'){return parseFloat(avalue);}
with(element){var sLeft=style.left;var rsLeft=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=avalue;avalue=style.pixelLeft;}catch(e){avalue=0;}
style.left=sLeft;runtimeStyle.left=rsLeft;}
return avalue;}}
var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}}
dojo._getOpacity=d.isIE?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,opacity){var ov=opacity*100;node.style.zoom=1.0;af(node,1).Enabled=!(opacity==1);if(!af(node)){node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}
if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,opacity);});}
return opacity;}:function(node,opacity){return node.style.opacity=opacity;};var _pixelNamesCache={left:true,top:true};var _pixelRegExp=/margin|padding|width|height|max|min|offset/;var _toStyleValue=function(node,type,value){type=type.toLowerCase();if(d.isIE){if(value=="auto"){if(type=="height"){return node.offsetHeight;}
if(type=="width"){return node.offsetWidth;}}
if(type=="fontweight"){switch(value){case 700:return"bold";case 400:default:return"normal";}}}
if(!(type in _pixelNamesCache)){_pixelNamesCache[type]=_pixelRegExp.test(type);}
return _pixelNamesCache[type]?px(node,value):value;}
var _floatStyle=d.isIE?"styleFloat":"cssFloat",_floatAliases={"cssFloat":_floatStyle,"styleFloat":_floatStyle,"float":_floatStyle};dojo.style=function(node,style,value){var n=d.byId(node),args=arguments.length,op=(style=="opacity");style=_floatAliases[style]||style;if(args==3){return op?d._setOpacity(n,value):n.style[style]=value;}
if(args==2&&op){return d._getOpacity(n);}
var s=gcs(n);if(args==2&&!d.isString(style)){for(var x in style){d.style(node,x,style[x]);}
return s;}
return(args==1)?s:_toStyleValue(n,style,s[style]||n.style[style]);}
dojo._getPadExtents=function(n,computedStyle){var
s=computedStyle||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,computedStyle){var
ne="none",s=computedStyle||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,computedStyle){var
s=computedStyle||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,computedStyle){var
s=computedStyle||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,computedStyle){var s=computedStyle||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}
return{l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};}
dojo._getContentBox=function(node,computedStyle){var s=computedStyle||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,computedStyle){var s=computedStyle||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,widthPx,heightPx,computedStyle){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,computedStyle);if(widthPx>=0){widthPx+=pb.w;}
if(heightPx>=0){heightPx+=pb.h;}}
d._setBox(node,NaN,NaN,widthPx,heightPx);}
dojo._setMarginBox=function(node,leftPx,topPx,widthPx,heightPx,computedStyle){var s=computedStyle||gcs(node),bb=d._usesBorderBox(node),pb=bb?_nilExtents:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(widthPx>=0&&!ns.width){ns.width="4px";}
if(heightPx>=0&&!ns.height){ns.height="4px";}}}
var mb=d._getMarginExtents(node,s);if(widthPx>=0){widthPx=Math.max(widthPx-pb.w-mb.w,0);}
if(heightPx>=0){heightPx=Math.max(heightPx-pb.h-mb.h,0);}
d._setBox(node,leftPx,topPx,widthPx,heightPx);}
var _nilExtents={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=d.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=d.byId(node),s=gcs(n),b=box;return!b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);}
var _sumAncestorProperties=function(node,prop){if(!(node=(node||0).parentNode)){return 0}
var val,retVal=0,_b=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}
val=node[prop];if(val){retVal+=val-0;if(node==_b){break;}}
node=node.parentNode;}
return retVal;}
dojo._docScroll=function(){var
_b=d.body(),_w=d.global,de=d.doc.documentElement;return{y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};};dojo._isBodyLtr=function(){return("_bodyLtr"in d)?d._bodyLtr:d._bodyLtr=gcs(d.body()).direction=="ltr";}
dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<7){return{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};}else if(d.isIE<8){return{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top};}else{return{x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(scrollLeft){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return scrollLeft+de.clientWidth-de.scrollWidth;}
return scrollLeft;}
dojo._abs=function(node,includeScroll){var db=d.body(),dh=d.body().parentNode,ret;if(node["getBoundingClientRect"]){var client=node.getBoundingClientRect();ret={x:client.left,y:client.top};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(d.isIE){var offset=d._getIeDocumentElementOffset();ret.x-=offset.x+(d.isQuirks?db.clientLeft:0);ret.y-=offset.y+(d.isQuirks?db.clientTop:0);}}else{ret={x:0,y:0};if(node["offsetParent"]){ret.x-=_sumAncestorProperties(node,"scrollLeft");ret.y-=_sumAncestorProperties(node,"scrollTop");var curnode=node;do{var n=curnode.offsetLeft,t=curnode.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(curnode);if(curnode!=node){if(d.isFF){ret.x+=2*px(curnode,cs.borderLeftWidth);ret.y+=2*px(curnode,cs.borderTopWidth);}else{ret.x+=px(curnode,cs.borderLeftWidth);ret.y+=px(curnode,cs.borderTopWidth);}}
if(d.isFF&&cs.position=="static"){var parent=curnode.parentNode;while(parent!=curnode.offsetParent){var pcs=gcs(parent);if(pcs.position=="static"){ret.x+=px(curnode,pcs.borderLeftWidth);ret.y+=px(curnode,pcs.borderTopWidth);}
parent=parent.parentNode;}}
curnode=curnode.offsetParent;}while((curnode!=dh)&&curnode);}else if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}
if(includeScroll){var scroll=d._docScroll();ret.x+=scroll.x;ret.y+=scroll.y;}
return ret;}
dojo.coords=function(node,includeScroll){var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,includeScroll);mb.x=abs.x;mb.y=abs.y;return mb;}
var ieLT8=d.isIE<8;var _fixAttrName=function(name){switch(name.toLowerCase()){case"tabindex":return ieLT8?"tabIndex":"tabindex";case"readonly":return"readOnly";case"class":return"className";case"for":case"htmlfor":return ieLT8?"htmlFor":"for";default:return name;}}
var _attrProps={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType",classname:"className",innerhtml:"innerHTML"}
dojo.hasAttr=function(node,name){node=d.byId(node);var fixName=_fixAttrName(name);fixName=fixName=="htmlFor"?"for":fixName;var attr=node.getAttributeNode&&node.getAttributeNode(fixName);return attr?attr.specified:false;}
var _evtHdlrMap={},_ctr=0,_attrId=dojo._scopeName+"attrid",_roInnerHtml={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,value){node=d.byId(node);var args=arguments.length;if(args==2&&!d.isString(name)){for(var x in name){d.attr(node,x,name[x]);}
return;}
name=_fixAttrName(name);if(args==3){if(d.isFunction(value)){var attrId=d.attr(node,_attrId);if(!attrId){attrId=_ctr++;d.attr(node,_attrId,attrId);}
if(!_evtHdlrMap[attrId]){_evtHdlrMap[attrId]={};}
var h=_evtHdlrMap[attrId][name];if(h){d.disconnect(h);}else{try{delete node[name];}catch(e){}}
_evtHdlrMap[attrId][name]=d.connect(node,name,value);}else if(typeof value=="boolean"){node[name]=value;}else if(name==="style"&&!d.isString(value)){d.style(node,value);}else if(name=="className"){node.className=value;}else if(name==="innerHTML"){if(d.isIE&&node.tagName.toLowerCase()in _roInnerHtml){d.empty(node);node.appendChild(d._toDom(value,node.ownerDocument));}else{node[name]=value;}}else{node.setAttribute(name,value);}}else{var prop=_attrProps[name.toLowerCase()];if(prop){return node[prop];}
var attrValue=node[name];return(typeof attrValue=='boolean'||typeof attrValue=='function')?attrValue:(d.hasAttr(node,name)?node.getAttribute(name):null);}}
dojo.removeAttr=function(node,name){d.byId(node).removeAttribute(_fixAttrName(name));}
dojo.create=function(tag,attrs,refNode,pos){var doc=d.doc;if(refNode){refNode=d.byId(refNode);doc=refNode.ownerDocument;}
if(d.isString(tag)){tag=doc.createElement(tag);}
if(attrs){d.attr(tag,attrs);}
if(refNode){d.place(tag,refNode,pos);}
return tag;}
d.empty=d.isIE?function(node){node=d.byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){d.byId(node).innerHTML="";};var tagWrap={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"]},reTag=/<\s*([\w\:]+)/,masterNode={},masterNum=0,masterName="__"+d._scopeName+"ToDomId";for(var param in tagWrap){var tw=tagWrap[param];tw.pre=param=="option"?'<select multiple="multiple">':"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}
d._toDom=function(frag,doc){doc=doc||d.doc;var masterId=doc[masterName];if(!masterId){doc[masterName]=masterId=++masterNum+"";masterNode[masterId]=doc.createElement("div");}
frag+="";var match=frag.match(reTag),tag=match?match[1].toLowerCase():"",master=masterNode[masterId],wrap,i,fc,df;if(match&&tagWrap[tag]){wrap=tagWrap[tag];master.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){master=master.firstChild;}}else{master.innerHTML=frag;}
if(master.childNodes.length==1){return master.removeChild(master.firstChild);}
df=doc.createDocumentFragment();while(fc=master.firstChild){df.appendChild(fc);}
return df;}
var _className="className";dojo.hasClass=function(node,classStr){return((" "+d.byId(node)[_className]+" ").indexOf(" "+classStr+" ")>=0);};dojo.addClass=function(node,classStr){node=d.byId(node);var cls=node[_className];if((" "+cls+" ").indexOf(" "+classStr+" ")<0){node[_className]=cls+(cls?' ':'')+classStr;}};dojo.removeClass=function(node,classStr){node=d.byId(node);var t=d.trim((" "+node[_className]+" ").replace(" "+classStr+" "," "));if(node[_className]!=t){node[_className]=t;}};dojo.toggleClass=function(node,classStr,condition){if(condition===undefined){condition=!d.hasClass(node,classStr);}
d[condition?"addClass":"removeClass"](node,classStr);};})();}
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){a.constructor=d.NodeList;dojo._mixin(a,d.NodeList.prototype);return a;};var loopBody=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 adaptAsForEach=function(f,o){return function(){this.forEach(loopBody(f,arguments,o));return this;};};var adaptAsMap=function(f,o){return function(){return this.map(loopBody(f,arguments,o));};};var adaptAsFilter=function(f,o){return function(){return this.filter(loopBody(f,arguments,o));};};var adaptWithCondition=function(f,g,o){return function(){var a=arguments,body=loopBody(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}
this.forEach(body);return this;};};var magicGuard=function(a){return a.length==1&&d.isString(a[0])};var orphan=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};var nl=d.NodeList,nlp=nl.prototype;nl._wrap=tnl;nl._adaptAsMap=adaptAsMap;nl._adaptAsForEach=adaptAsForEach;nl._adaptAsFilter=adaptAsFilter;nl._adaptWithCondition=adaptWithCondition;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return tnl(f.apply(this,arguments));};});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]=adaptWithCondition(d[name],magicGuard);});d.forEach(["connect","addClass","removeClass","toggleClass","empty"],function(name){nlp[name]=adaptAsForEach(d[name]);});dojo.extend(dojo.NodeList,{concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(a.constructor===NodeList||a.constructor==nl)?aps.call(a,0):a;});return tnl(apc.apply(t,m));},map:function(func,obj){return tnl(d.map(this,func,obj));},forEach:function(callback,thisObj){d.forEach(this,callback,thisObj);return this;},coords:adaptAsMap(d.coords),place:function(queryOrNode,position){var item=d.query(queryOrNode)[0];return this.forEach(function(node){d.place(node,item,position);});},orphan:function(simpleFilter){return(simpleFilter?d._filterQueryResult(this,simpleFilter):this).forEach(orphan);},adopt:function(queryOrListOrNode,position){return d.query(queryOrListOrNode).place(item[0],position);},query:function(queryStr){if(!queryStr){return this;}
var ret=this.map(function(node){return d.query(queryStr,node).filter(function(subNode){return subNode!==undefined;});});return tnl(apc.apply([],ret));},filter:function(simpleFilter){var a=arguments,items=this,start=0;if(d.isString(simpleFilter)){items=d._filterQueryResult(this,a[0]);if(a.length==1){return items;}
start=1;}
return tnl(d.filter(items,a[start],a[start+1]));},addContent:function(content,position){var c=d.isString(content)?d._toDom(content,this[0]&&this[0].ownerDocument):content,i,l=this.length-1;for(i=0;i<l;++i){d.place(c.cloneNode(true),this[i],position);}
if(l>=0){d.place(c,this[l],position);}
return this;},instantiate:function(declaredClass,properties){var c=d.isFunction(declaredClass)?declaredClass:d.getObject(declaredClass);properties=properties||{};return this.forEach(function(node){new c(properties,node);});},at:function(){var t=new dojo.NodeList();d.forEach(arguments,function(i){if(this[i]){t.push(this[i]);}},this);return t;}});d.forEach(["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"],function(evt){var _oe="on"+evt;nlp[_oe]=function(a,b){return this.connect(_oe,a,b);}});})();}
if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;if(typeof dojo!="undefined"){dojo.provide("dojo._base.query");};(function(d){var trim=d.trim;var each=d.forEach;var qlc=d._queryListCtor=d.NodeList;var isString=d.isString;var getDoc=function(){return d.doc;};var cssCaseBug=(d.isWebKit&&((getDoc().compatMode)=="BackCompat"));var childNodesName=!!getDoc().firstChild["children"]?"children":"childNodes";var specials=">~+";var caseSensitive=false;var yesman=function(){return true;};var getQueryParts=function(query){if(specials.indexOf(query.slice(-1))>=0){query+=" * "}else{query+=" ";}
var ts=function(s,e){return trim(query.slice(s,e));}
var queryParts=[];var inBrackets=-1,inParens=-1,inMatchFor=-1,inPseudo=-1,inClass=-1,inId=-1,inTag=-1,lc="",cc="",pStart;var x=0,ql=query.length,currentPart=null,_cp=null;var endTag=function(){if(inTag>=0){var tv=(inTag==x)?null:ts(inTag,x);currentPart[(specials.indexOf(tv)<0)?"tag":"oper"]=tv;inTag=-1;}}
var endId=function(){if(inId>=0){currentPart.id=ts(inId,x).replace(/\\/g,"");inId=-1;}}
var endClass=function(){if(inClass>=0){currentPart.classes.push(ts(inClass+1,x).replace(/\\/g,""));inClass=-1;}}
var endAll=function(){endId();endTag();endClass();}
var endPart=function(){endAll();if(inPseudo>=0){currentPart.pseudos.push({name:ts(inPseudo+1,x)});}
currentPart.loops=(currentPart.pseudos.length||currentPart.attrs.length||currentPart.classes.length);currentPart.oquery=currentPart.query=ts(pStart,x);currentPart.otag=currentPart.tag=(currentPart["oper"])?null:(currentPart.tag||"*");if(currentPart.tag){currentPart.tag=currentPart.tag.toUpperCase();}
if(queryParts.length&&(queryParts[queryParts.length-1].oper)){currentPart.infixOper=queryParts.pop();currentPart.query=currentPart.infixOper.query+" "+currentPart.query;}
queryParts.push(currentPart);currentPart=null;}
for(;lc=cc,cc=query.charAt(x),x<ql;x++){if(lc=="\\"){continue;}
if(!currentPart){pStart=x;currentPart={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return(caseSensitive)?this.otag:this.tag;}};inTag=x;}
if(inBrackets>=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(inBrackets+1,x);}else{_cp.matchFor=ts((inMatchFor||inBrackets+1),x);}
var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=='"')||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.slice(1,-1);}}
currentPart.attrs.push(_cp);_cp=null;inBrackets=inMatchFor=-1;}else if(cc=="="){var addToCc=("|~^$*".indexOf(lc)>=0)?lc:"";_cp.type=addToCc+cc;_cp.attr=ts(inBrackets+1,x-addToCc.length);inMatchFor=x+1;}}else if(inParens>=0){if(cc==")"){if(inPseudo>=0){_cp.value=ts(inParens+1,x);}
inPseudo=inParens=-1;}}else if(cc=="#"){endAll();inId=x+1;}else if(cc=="."){endAll();inClass=x;}else if(cc==":"){endAll();inPseudo=x;}else if(cc=="["){endAll();inBrackets=x;_cp={};}else if(cc=="("){if(inPseudo>=0){_cp={name:ts(inPseudo+1,x),value:null}
currentPart.pseudos.push(_cp);}
inParens=x;}else if((cc==" ")&&(lc!=cc)){endPart();}}
return queryParts;};var agree=function(first,second){if(!first){return second;}
if(!second){return first;}
return function(){return first.apply(window,arguments)&&second.apply(window,arguments);}};var getArr=function(i,arr){var r=arr||[];if(i){r.push(i);}
return r;};var _isElement=function(n){return(1==n.nodeType);};var blank="";var _getAttr=function(elem,attr){if(!elem){return blank;}
if(attr=="class"){return elem.className||blank;}
if(attr=="for"){return elem.htmlFor||blank;}
if(attr=="style"){return elem.style.cssText||blank;}
return(caseSensitive?elem.getAttribute(attr):elem.getAttribute(attr,2))||blank;};var attrs={"*=":function(attr,value){return function(elem){return(_getAttr(elem,attr).indexOf(value)>=0);}},"^=":function(attr,value){return function(elem){return(_getAttr(elem,attr).indexOf(value)==0);}},"$=":function(attr,value){var tval=" "+value;return function(elem){var ea=" "+_getAttr(elem,attr);return(ea.lastIndexOf(value)==(ea.length-value.length));}},"~=":function(attr,value){var tval=" "+value+" ";return function(elem){var ea=" "+_getAttr(elem,attr)+" ";return(ea.indexOf(tval)>=0);}},"|=":function(attr,value){var valueDash=" "+value+"-";return function(elem){var ea=" "+_getAttr(elem,attr);return((ea==value)||(ea.indexOf(valueDash)==0));}},"=":function(attr,value){return function(elem){return(_getAttr(elem,attr)==value);}}};var _noNES=(typeof getDoc().firstChild.nextElementSibling=="undefined");var _ns=!_noNES?"nextElementSibling":"nextSibling";var _ps=!_noNES?"previousElementSibling":"previousSibling";var _simpleNodeTest=(_noNES?_isElement:yesman);var _lookLeft=function(node){while(node=node[_ps]){if(_simpleNodeTest(node)){return false;}}
return true;};var _lookRight=function(node){while(node=node[_ns]){if(_simpleNodeTest(node)){return false;}}
return true;};var getNodeIndex=function(node){var root=node.parentNode;var i=0,tret=root[childNodesName],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[_ns]){if(_simpleNodeTest(te)){te["_i"]=++i;if(node===te){ci=i;}}}
return ci;};var isEven=function(elem){return!((getNodeIndex(elem))%2);};var isOdd=function(elem){return((getNodeIndex(elem))%2);};var pseudos={"checked":function(name,condition){return function(elem){return!!d.attr(elem,"checked");}},"first-child":function(){return _lookLeft;},"last-child":function(){return _lookRight;},"only-child":function(name,condition){return function(node){if(!_lookLeft(node)){return false;}
if(!_lookRight(node)){return false;}
return true;};},"empty":function(name,condition){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,condition){var cz=condition.charAt(0);if(cz=='"'||cz=="'"){condition=condition.slice(1,-1);}
return function(elem){return(elem.innerHTML.indexOf(condition)>=0);}},"not":function(name,condition){var p=getQueryParts(condition)[0];var ignores={el:1};if(p.tag!="*"){ignores.tag=1;}
if(!p.classes.length){ignores.classes=1;}
var ntf=getSimpleFilterFunc(p,ignores);return function(elem){return(!ntf(elem));}},"nth-child":function(name,condition){var pi=parseInt;if(condition=="odd"){return isOdd;}else if(condition=="even"){return isEven;}
if(condition.indexOf("n")!=-1){var tparts=condition.split("n",2);var pred=tparts[0]?((tparts[0]=='-')?-1:pi(tparts[0])):1;var idx=tparts[1]?pi(tparts[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=getNodeIndex(elem);return(i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);}}else{condition=idx;}}
var ncount=pi(condition);return function(elem){return(getNodeIndex(elem)==ncount);}}};var defaultGetter=(d.isIE)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}
return function(elem){return(caseSensitive?elem.getAttribute(cond):elem[cond]||elem[clc]);}}:function(cond){return function(elem){return(elem&&elem.getAttribute&&elem.hasAttribute(cond));}};var getSimpleFilterFunc=function(query,ignores){if(!query){return yesman;}
ignores=ignores||{};var ff=null;if(!("el"in ignores)){ff=agree(ff,_isElement);}
if(!("tag"in ignores)){if(query.tag!="*"){ff=agree(ff,function(elem){return(elem&&(elem.tagName==query.getTag()));});}}
if(!("classes"in ignores)){each(query.classes,function(cname,idx,arr){var re=new RegExp("(?:^|\\s)"+cname+"(?:\\s|$)");ff=agree(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}
if(!("pseudos"in ignores)){each(query.pseudos,function(pseudo){var pn=pseudo.name;if(pseudos[pn]){ff=agree(ff,pseudos[pn](pn,pseudo.value));}});}
if(!("attrs"in ignores)){each(query.attrs,function(attr){var matcher;var a=attr.attr;if(attr.type&&attrs[attr.type]){matcher=attrs[attr.type](a,attr.matchFor);}else if(a.length){matcher=defaultGetter(a);}
if(matcher){ff=agree(ff,matcher);}});}
if(!("id"in ignores)){if(query.id){ff=agree(ff,function(elem){return(!!elem&&(elem.id==query.id));});}}
if(!ff){if(!("default"in ignores)){ff=yesman;}}
return ff;};var _nextSibling=function(filterFunc){return function(node,ret,bag){while(node=node[_ns]){if(_noNES&&(!_isElement(node))){continue;}
if((!bag||_isUnique(node,bag))&&filterFunc(node)){ret.push(node);}
break;}
return ret;}};var _nextSiblings=function(filterFunc){return function(root,ret,bag){var te=root[_ns];while(te){if(_simpleNodeTest(te)){if(bag&&!_isUnique(te,bag)){break;}
if(filterFunc(te)){ret.push(te);}}
te=te[_ns];}
return ret;}};var _childElements=function(filterFunc){filterFunc=filterFunc||yesman;return function(root,ret,bag){var te,x=0,tret=root[childNodesName];while(te=tret[x++]){if(_simpleNodeTest(te)&&(!bag||_isUnique(te,bag))&&(filterFunc(te,x))){ret.push(te);}}
return ret;};};var _isDescendant=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}
pn=pn.parentNode;}
return!!pn;};var _getElementsFuncCache={};var getElementsFunc=function(query){var retFunc=_getElementsFuncCache[query.query];if(retFunc){return retFunc;}
var io=query.infixOper;var oper=(io?io.oper:"");var filterFunc=getSimpleFilterFunc(query,{el:1});var qt=query.tag;var wildcardTag=("*"==qt);var ecs=getDoc()["getElementsByClassName"];if(!oper){if(query.id){filterFunc=(!query.loops&&wildcardTag)?yesman:getSimpleFilterFunc(query,{el:1,id:1});retFunc=function(root,arr){var te=d.byId(query.id,(root.ownerDocument||root));if(!te||!filterFunc(te)){return;}
if(9==root.nodeType){return getArr(te,arr);}else{if(_isDescendant(te,root)){return getArr(te,arr);}}}}else if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&query.classes.length&&!cssCaseBug){filterFunc=getSimpleFilterFunc(query,{el:1,classes:1,id:1});var classesString=query.classes.join(" ");retFunc=function(root,arr){var ret=getArr(0,arr),te,x=0;var tret=root.getElementsByClassName(classesString);while((te=tret[x++])){if(filterFunc(te,root)){ret.push(te);}}
return ret;};}else if(!wildcardTag&&!query.loops){retFunc=function(root,arr){var ret=getArr(0,arr),te,x=0;var tret=root.getElementsByTagName(query.getTag());while((te=tret[x++])){ret.push(te);}
return ret;};}else{filterFunc=getSimpleFilterFunc(query,{el:1,tag:1,id:1});retFunc=function(root,arr){var ret=getArr(0,arr),te,x=0;var tret=root.getElementsByTagName(query.getTag());while((te=tret[x++])){if(filterFunc(te,root)){ret.push(te);}}
return ret;};}}else{var skipFilters={el:1};if(wildcardTag){skipFilters.tag=1;}
filterFunc=getSimpleFilterFunc(query,skipFilters);if("+"==oper){retFunc=_nextSibling(filterFunc);}else if("~"==oper){retFunc=_nextSiblings(filterFunc);}else if(">"==oper){retFunc=_childElements(filterFunc);}}
return _getElementsFuncCache[query.query]=retFunc;};var filterDown=function(root,queryParts){var candidates=getArr(root),qp,x,te,qpl=queryParts.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=queryParts[i];x=candidates.length-1;if(x>0){bag={};ret.nozip=true;}
var gef=getElementsFunc(qp);while(te=candidates[x--]){gef(te,ret,bag);}
if(!ret.length){break;}
candidates=ret;}
return ret;};var _queryFuncCacheDOM={},_queryFuncCacheQSA={};var getStepQueryFunc=function(query){var qparts=getQueryParts(trim(query));if(qparts.length==1){var tef=getElementsFunc(qparts[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}
return r;}}
return function(root){return filterDown(root,qparts);}};var nua=navigator.userAgent;var wk="WebKit/";var is525=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var noZip=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var qsaAvail=(!!getDoc()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||is525));var getQueryFunc=function(query,forceDOM){if(qsaAvail){var qsaCached=_queryFuncCacheQSA[query];if(qsaCached&&!forceDOM){return qsaCached;}}
var domCached=_queryFuncCacheDOM[query];if(domCached){return domCached;}
var qcz=query.charAt(0);var nospace=(-1==query.indexOf(" "));if((query.indexOf("#")>=0)&&(nospace)){forceDOM=true;}
var useQSA=(qsaAvail&&(!forceDOM)&&(specials.indexOf(qcz)==-1)&&(!d.isIE||(query.indexOf(":")==-1))&&(!(cssCaseBug&&(query.indexOf(".")>=0)))&&(query.indexOf(":contains")==-1)&&(query.indexOf("|=")==-1));if(useQSA){var tq=(specials.indexOf(query.charAt(query.length-1))>=0)?(query+" *"):query;return _queryFuncCacheQSA[query]=function(root){try{if(!((9==root.nodeType)||nospace)){throw"";}
var r=root[qsa](tq);r[noZip]=true;return r;}catch(e){return getQueryFunc(query,true)(root);}}}else{var parts=query.split(/\s*,\s*/);return _queryFuncCacheDOM[query]=((parts.length<2)?getStepQueryFunc(query):function(root){var pindex=0,ret=[],tp;while((tp=parts[pindex++])){ret=ret.concat(getStepQueryFunc(tp)(root));}
return ret;});}};var _zipIdx=0;var _nodeUID=d.isIE?function(node){if(caseSensitive){return(node.getAttribute("_uid")||node.setAttribute("_uid",++_zipIdx)||_zipIdx);}else{return node.uniqueID;}}:function(node){return(node._uid||(node._uid=++_zipIdx));};var _isUnique=function(node,bag){if(!bag){return 1;}
var id=_nodeUID(node);if(!bag[id]){return bag[id]=1;}
return 0;};var _zipIdxName="_zipIdx";var _zip=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;}
_zipIdx++;if(d.isIE&&caseSensitive){var szidx=_zipIdx+"";arr[0].setAttribute(_zipIdxName,szidx);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_zipIdxName)!=szidx){ret.push(te);}
te.setAttribute(_zipIdxName,szidx);}}else if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_isElement(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_zipIdxName]=_zipIdx;}
for(var x=1,te;te=arr[x];x++){if(arr[x][_zipIdxName]!=_zipIdx){ret.push(te);}
te[_zipIdxName]=_zipIdx;}}
return ret;};d.query=function(query,root){qlc=d._queryListCtor;if(!query){return new qlc();}
if(query.constructor==qlc){return query;}
if(!isString(query)){return new qlc(query);}
if(isString(root)){root=d.byId(root);if(!root){return new qlc();}}
root=root||getDoc();var od=root.ownerDocument||root.documentElement;caseSensitive=(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=getQueryFunc(query)(root);if(r&&r.nozip&&!qlc._wrap){return r;}
return _zip(r);}
d.query.pseudos=pseudos;d._filterQueryResult=function(nodeList,simpleFilter){var tmpNodeList=new d._queryListCtor();var filterFunc=getSimpleFilterFunc(getQueryParts(simpleFilter)[0]);for(var x=0,te;te=nodeList[x];x++){if(filterFunc(te)){tmpNodeList.push(te);}}
return tmpNodeList;}})(this["queryPortability"]||this["acme"]||dojo);}
if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _d=dojo;function setValue(obj,name,value){var val=obj[name];if(_d.isString(val)){obj[name]=[val,value];}else if(_d.isArray(val)){val.push(value);}else{obj[name]=value;}}
dojo.formToObject=function(formNode){var ret={};var exclude="file|submit|image|reset|button|";_d.forEach(dojo.byId(formNode).elements,function(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(_in&&type&&exclude.indexOf(type)==-1&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){setValue(ret,_in,item.value);}}else if(item.multiple){ret[_in]=[];_d.query("option",item).forEach(function(opt){if(opt.selected){setValue(ret,_in,opt.value);}});}else{setValue(ret,_in,item.value);if(type=="image"){ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;}}}});return ret;}
dojo.objectToQuery=function(map){var enc=encodeURIComponent;var pairs=[];var backstop={};for(var name in map){var value=map[name];if(value!=backstop[name]){var assign=enc(name)+"=";if(_d.isArray(value)){for(var i=0;i<value.length;i++){pairs.push(assign+enc(value[i]));}}else{pairs.push(assign+enc(value));}}}
return pairs.join("&");}
dojo.formToQuery=function(formNode){return _d.objectToQuery(_d.formToObject(formNode));}
dojo.formToJson=function(formNode,prettyPrint){return _d.toJson(_d.formToObject(formNode),prettyPrint);}
dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_d.forEach(qp,function(item){if(item.length){var parts=item.split("=");var name=dec(parts.shift());var val=dec(parts.join("="));if(_d.isString(ret[name])){ret[name]=[ret[name]];}
if(_d.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;}
dojo._blockAsync=false;dojo._contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _d.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 value=xhr.responseText;var cStartIdx=value.indexOf("\/*");var cEndIdx=value.lastIndexOf("*\/");if(cStartIdx==-1||cEndIdx==-1){throw new Error("JSON was not comment filtered");}
return _d.fromJson(value.substring(cStartIdx+2,cEndIdx));},javascript:function(xhr){return _d.eval(xhr.responseText);},xml:function(xhr){var result=xhr.responseXML;if(_d.isIE&&(!result||!result.documentElement)){var ms=function(n){return"MSXML"+n+".DOMDocument";}
var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_d.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);result=dom;}catch(e){return false;}
return true;});}
return result;}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var handlers=_d._contentHandlers;if(xhr.responseText&&xhr.responseText.indexOf("\/*")!=-1){return handlers["json-comment-filtered"](xhr);}else{return handlers["json"](xhr);}};dojo._ioSetArgs=function(args,canceller,okHandler,errHandler){var ioArgs={args:args,url:args.url};var formObject=null;if(args.form){var form=_d.byId(args.form);var actnNode=form.getAttributeNode("action");ioArgs.url=ioArgs.url||(actnNode?actnNode.value:null);formObject=_d.formToObject(form);}
var miArgs=[{}];if(formObject){miArgs.push(formObject);}
if(args.content){miArgs.push(args.content);}
if(args.preventCache){miArgs.push({"dojo.preventCache":new Date().valueOf()});}
ioArgs.query=_d.objectToQuery(_d.mixin.apply(null,miArgs));ioArgs.handleAs=args.handleAs||"text";var d=new _d.Deferred(canceller);d.addCallbacks(okHandler,function(error){return errHandler(error,d);});var ld=args.load;if(ld&&_d.isFunction(ld)){d.addCallback(function(value){return ld.call(args,value,ioArgs);});}
var err=args.error;if(err&&_d.isFunction(err)){d.addErrback(function(value){return err.call(args,value,ioArgs);});}
var handle=args.handle;if(handle&&_d.isFunction(handle)){d.addBoth(function(value){return handle.call(args,value,ioArgs);});}
d.ioArgs=ioArgs;return d;}
var _deferredCancel=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=typeof xhr.abort;if(_at=="function"||_at=="object"||_at=="unknown"){xhr.abort();}
var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}
return err;}
var _deferredOk=function(dfd){var ret=_d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;}
var _deferError=function(error,dfd){console.error(error);return error;}
var _inFlightIntvl=null;var _inFlight=[];var _watchInFlight=function(){var now=(new Date()).getTime();if(!_d._blockAsync){for(var i=0,tif;i<_inFlight.length&&(tif=_inFlight[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_inFlight.splice(i--,1);}else if(tif.ioCheck(dfd)){_inFlight.splice(i--,1);tif.resHandle(dfd);}else if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_inFlight.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}
if(!_inFlight.length){clearInterval(_inFlightIntvl);_inFlightIntvl=null;return;}}
dojo._ioCancelAll=function(){try{_d.forEach(_inFlight,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}}
if(_d.isIE){_d.addOnWindowUnload(_d._ioCancelAll);}
_d._ioWatch=function(dfd,validCheck,ioCheck,resHandle){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}
_inFlight.push({dfd:dfd,validCheck:validCheck,ioCheck:ioCheck,resHandle:resHandle});if(!_inFlightIntvl){_inFlightIntvl=setInterval(_watchInFlight,50);}
if(args.sync){_watchInFlight();}}
var _defaultContentType="application/x-www-form-urlencoded";var _validCheck=function(dfd){return dfd.ioArgs.xhr.readyState;}
var _ioCheck=function(dfd){return 4==dfd.ioArgs.xhr.readyState;}
var _resHandle=function(dfd){var xhr=dfd.ioArgs.xhr;if(_d._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(ioArgs){if(ioArgs.query.length){ioArgs.url+=(ioArgs.url.indexOf("?")==-1?"?":"&")+ioArgs.query;ioArgs.query=null;}}
dojo.xhr=function(method,args,hasBody){var dfd=_d._ioSetArgs(args,_deferredCancel,_deferredOk,_deferError);dfd.ioArgs.xhr=_d._xhrObj(dfd.ioArgs.args);if(hasBody){if("postData"in args){dfd.ioArgs.query=args.postData;}else if("putData"in args){dfd.ioArgs.query=args.putData;}}else{_d._ioAddQueryToUrl(dfd.ioArgs);}
var ioArgs=dfd.ioArgs;var xhr=ioArgs.xhr;xhr.open(method,ioArgs.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{xhr.setRequestHeader(hdr,args.headers[hdr]);}}}
xhr.setRequestHeader("Content-Type",args.contentType||_defaultContentType);if(!args.headers||!args.headers["X-Requested-With"]){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}
if(dojo.config.debugAtAllCosts){xhr.send(ioArgs.query);}else{try{xhr.send(ioArgs.query);}catch(e){dfd.ioArgs.error=e;dfd.cancel();}}
_d._ioWatch(dfd,_validCheck,_ioCheck,_resHandle);xhr=null;return dfd;}
dojo.xhrGet=function(args){return _d.xhr("GET",args);}
dojo.rawXhrPost=dojo.xhrPost=function(args){return _d.xhr("POST",args,true);}
dojo.rawXhrPut=dojo.xhrPut=function(args){return _d.xhr("PUT",args,true);}
dojo.xhrDelete=function(args){return _d.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 _mixin=d.mixin;dojo._Line=function(start,end){this.start=start;this.end=end;}
dojo._Line.prototype.getValue=function(n){return((this.end-this.start)*n)+this.start;}
d.declare("dojo._Animation",null,{constructor:function(args){_mixin(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(evt,args){if(this[evt]){if(dojo.config.debugAtAllCosts){this[evt].apply(this,args||[]);}else{try{this[evt].apply(this,args||[]);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}
return this;},play:function(delay,gotoStart){var _t=this;if(_t._delayTimer){_t._clearTimer();}
if(gotoStart){_t._stopTimer();_t._active=_t._paused=false;_t._percent=0;}else if(_t._active&&!_t._paused){return _t;}
_t._fire("beforeBegin");var de=delay||_t.delay,_p=dojo.hitch(_t,"_play",gotoStart);if(de>0){_t._delayTimer=setTimeout(_p,de);return _t;}
_p();return _t;},_play:function(gotoStart){var _t=this;if(_t._delayTimer){_t._clearTimer();}
_t._startTime=new Date().valueOf();if(_t._paused){_t._startTime-=_t.duration*_t._percent;}
_t._endTime=_t._startTime+_t.duration;_t._active=true;_t._paused=false;var value=_t.curve.getValue(_t._percent);if(!_t._percent){if(!_t._startRepeatCount){_t._startRepeatCount=_t.repeat;}
_t._fire("onBegin",[value]);}
_t._fire("onPlay",[value]);_t._cycle();return _t;},pause:function(){var _t=this;if(_t._delayTimer){_t._clearTimer();}
_t._stopTimer();if(!_t._active){return _t;}
_t._paused=true;_t._fire("onPause",[_t.curve.getValue(_t._percent)]);return _t;},gotoPercent:function(percent,andPlay){var _t=this;_t._stopTimer();_t._active=_t._paused=true;_t._percent=percent;if(andPlay){_t.play();}
return _t;},stop:function(gotoEnd){var _t=this;if(_t._delayTimer){_t._clearTimer();}
if(!_t._timer){return _t;}
_t._stopTimer();if(gotoEnd){_t._percent=1;}
_t._fire("onStop",[_t.curve.getValue(_t._percent)]);_t._active=_t._paused=false;return _t;},status:function(){if(this._active){return this._paused?"paused":"playing";}
return"stopped";},_cycle:function(){var _t=this;if(_t._active){var curr=new Date().valueOf();var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);if(step>=1){step=1;}
_t._percent=step;if(_t.easing){step=_t.easing(step);}
_t._fire("onAnimate",[_t.curve.getValue(step)]);if(_t._percent<1){_t._startTimer();}else{_t._active=false;if(_t.repeat>0){_t.repeat--;_t.play(null,true);}else if(_t.repeat==-1){_t.play(null,true);}else{if(_t._startRepeatCount){_t.repeat=_t._startRepeatCount;_t._startRepeatCount=0;}}
_t._percent=0;_t._fire("onEnd");_t._stopTimer();}}
return _t;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_globalTimerList=[],timer=null,runner={run:function(){}};dojo._Animation.prototype._startTimer=function(){if(!this._timer){this._timer=d.connect(runner,"run",this,"_cycle");ctr++;}
if(!timer){timer=setInterval(d.hitch(runner,"run"),this.rate);}};dojo._Animation.prototype._stopTimer=function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}
if(ctr<=0){clearInterval(timer);timer=null;ctr=0;}};var _makeFadeable=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 fArgs=_mixin({properties:{}},args),props=(fArgs.properties.opacity={});props.start=!("start"in fArgs)?function(){return+d.style(fArgs.node,"opacity")||0;}:fArgs.start;props.end=fArgs.end;var anim=d.animateProperty(fArgs);d.connect(anim,"beforeBegin",d.partial(_makeFadeable,fArgs.node));return anim;}
dojo.fadeIn=function(args){return d._fade(_mixin({end:1},args));}
dojo.fadeOut=function(args){return d._fade(_mixin({end:0},args));}
dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);}
var PropLine=function(properties){this._properties=properties;for(var p in properties){var prop=properties[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}}
PropLine.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],start=prop.start;if(start instanceof d.Color){ret[p]=d.blendColors(start,prop.end,r,prop.tempColor).toCss();}else if(!d.isArray(start)){ret[p]=((prop.end-start)*r)+start+(p!="opacity"?prop.units||"px":0);}}
return ret;}
dojo.animateProperty=function(args){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];prop=pm[p]=_mixin({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start();}
if(d.isFunction(prop.end)){prop.end=prop.end();}
var isColor=(p.toLowerCase().indexOf("color")>=0);function getStyle(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:(isColor?v:parseFloat(v));}
if(!("end"in prop)){prop.end=getStyle(this.node,p);}else if(!("start"in prop)){prop.start=getStyle(this.node,p);}
if(isColor){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 PropLine(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;}
dojo.anim=function(node,properties,duration,easing,onEnd,delay){return d.animateProperty({node:node,duration:duration||d._Animation.prototype.duration,properties:properties,easing:easing,onEnd:onEnd}).play(delay||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.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(delay){return this.showAnim.play(delay||0);},hide:function(delay){return this.hideAnim.play(delay||0);}});}
if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_baseObj={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}
return this;}};var _chain=function(animations){this._index=-1;this._animations=animations||[];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(_chain,{_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(delay,gotoStart){if(!this._current){this._current=this._animations[this._index=0];}
if(!gotoStart&&this._current.status()=="playing"){return this;}
var beforeBegin=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),onBegin=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),onPlay=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(beforeBegin);d.disconnect(onBegin);d.disconnect(onPlay);});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(percent,andPlay){this.pause();var offset=this.duration*percent;this._current=null;d.some(this._animations,function(a){if(a.duration<=offset){this._current=a;return true;}
offset-=a.duration;return false;});if(this._current){this._current.gotoPercent(offset/this._current.duration,andPlay);}
return this;},stop:function(gotoEnd){if(this._current){if(gotoEnd){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(_chain,_baseObj);dojo.fx.chain=function(animations){return new _chain(animations)};var _combine=function(animations){this._animations=animations||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(animations,function(a){var duration=a.duration;if(a.delay){duration+=a.delay;}
if(this.duration<duration){this.duration=duration;}
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"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_combine,{_doAction:function(action,args){d.forEach(this._animations,function(a){a[action].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(action,args){var t=this._pseudoAnimation;t[action].apply(t,args);},play:function(delay,gotoStart){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(percent,andPlay){var ms=this.duration*percent;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),andPlay);});this._call("gotoPercent",arguments);return this;},stop:function(gotoEnd){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(_combine,_baseObj);dojo.fx.combine=function(animations){return new _combine(animations);};dojo.fx.wipeIn=function(args){args.node=d.byId(args.node);var node=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 height=d.style(node,"height");return Math.max(height,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.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=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["dojox.image.LightboxNano"]){dojo._hasResource["dojox.image.LightboxNano"]=true;dojo.provide("dojox.image.LightboxNano");(function(d){var getViewport=function(){var scrollRoot=(d.doc.compatMode=="BackCompat")?d.body():d.doc.documentElement,scroll=dojo._docScroll();return{w:scrollRoot.clientWidth,h:scrollRoot.clientHeight,l:scroll.x,t:scroll.y};},abs="absolute";d.declare("dojox.image.LightboxNano",null,{href:"",duration:500,preloadDelay:5000,constructor:function(p,n){var _this=this;d.mixin(_this,p);n=dojo.byId(n);if(!/a/i.test(n.tagName)){var a=d.create("a",{href:_this.href,"class":n.className},n,"after");n.className="";a.appendChild(n);n=a;}
d.style(n,{display:"block",position:"relative"});_this._createDiv("dojoxEnlarge",n);_this._node=n;d.setSelectable(n,false);_this._onClickEvt=d.connect(n,"onclick",_this,"_load");setTimeout(function(){(new Image()).src=_this.href;_this._hideLoading();},_this.preloadDelay);},destroy:function(){var a=this._connects||[];a.push(this._onClickEvt);d.forEach(a,d.disconnect);d.destroy(this._node);},_createDiv:function(cssClass,refNode,display){return d.create("div",{"class":cssClass,style:{position:abs,display:display?"":"none"}},refNode);},_load:function(e){var _this=this;d.stopEvent(e);if(!_this._loading){_this._loading=true;_this._reset();var n=d.query("img",_this._node)[0],a=d._abs(n,true),c=d.contentBox(n),b=d._getBorderExtents(n),i=_this._img=d.create("img",{style:{visibility:"hidden",cursor:"pointer",position:abs,top:0,left:0,zIndex:9999999}},d.body()),ln=_this._loadingNode;if(ln==null){_this._loadingNode=ln=_this._createDiv("dojoxLoading",_this._node,true)
var l=d.marginBox(ln);d.style(ln,{left:parseInt((c.w-l.w)/2)+"px",top:parseInt((c.h-l.h)/2)+"px"});}
c.x=a.x-10+b.l;c.y=a.y-10+b.t;_this._start=c;_this._connects=[d.connect(i,"onload",_this,"_show")];i.src=_this.href;}},_hideLoading:function(){if(this._loadingNode){d.style(this._loadingNode,"display","none");}
this._loadingNode=false;},_show:function(){var _this=this,vp=getViewport(),w=_this._img.width,h=_this._img.height,vpw=parseInt((vp.w-20)*0.9),vph=parseInt((vp.h-20)*0.9),dd=d.doc,bg=_this._bg=d.create("div",{style:{backgroundColor:"#000",opacity:0.0,position:abs,zIndex:9999998}},d.body()),ln=_this._loadingNode;if(_this._loadingNode){_this._hideLoading();}
d.style(_this._img,{border:"10px solid #fff",visibility:"visible"});d.style(_this._node,"visibility","hidden");_this._loading=false;_this._connects=_this._connects.concat([d.connect(dd,"onmousedown",_this,"_hide"),d.connect(dd,"onkeypress",_this,"_key"),d.connect(window,"onresize",_this,"_sizeBg")]);if(w>vpw){h=h*vpw/w;w=vpw;}
if(h>vph){w=w*vph/h;h=vph;}
_this._end={x:(vp.w-20-w)/2+vp.l,y:(vp.h-20-h)/2+vp.t,w:w,h:h};_this._sizeBg();d.fx.combine([_this._anim(_this._img,_this._coords(_this._start,_this._end)),_this._anim(bg,{opacity:0.5})]).play();},_sizeBg:function(){var dd=d.doc.documentElement;d.style(this._bg,{top:0,left:0,width:dd.scrollWidth+"px",height:dd.scrollHeight+"px"});},_key:function(e){d.stopEvent(e);this._hide();},_coords:function(s,e){return{left:{start:s.x,end:e.x},top:{start:s.y,end:e.y},width:{start:s.w,end:e.w},height:{start:s.h,end:e.h}};},_hide:function(){var _this=this;d.forEach(_this._connects,d.disconnect);_this._connects=[];d.fx.combine([_this._anim(_this._img,_this._coords(_this._end,_this._start),"_reset"),_this._anim(_this._bg,{opacity:0})]).play();},_reset:function(){d.style(this._node,"visibility","visible");d.forEach([this._img,this._bg],function(n){d.destroy(n);n=null;});this._node.focus();},_anim:function(node,args,onEnd){return d.animateProperty({node:node,duration:this.duration,properties:args,onEnd:onEnd?d.hitch(this,onEnd):null});}});})(dojo);}
if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(formattedString,defaultTime){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 match=dojo.date.stamp._isoRegExp.exec(formattedString);var result=null;if(match){match.shift();if(match[1]){match[1]--;}
if(match[6]){match[6]*=1000;}
if(defaultTime){defaultTime=new Date(defaultTime);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return defaultTime["get"+prop]();}).forEach(function(value,index){if(match[index]===undefined){match[index]=value;}});}
result=new Date(match[0]||1970,match[1]||0,match[2]||1,match[3]||0,match[4]||0,match[5]||0,match[6]||0);var offset=0;var zoneSign=match[7]&&match[7].charAt(0);if(zoneSign!='Z'){offset=((match[8]||0)*60)+(Number(match[9])||0);if(zoneSign!='-'){offset*=-1;}}
if(zoneSign){offset-=result.getTimezoneOffset();}
if(offset){result.setTime(result.getTime()+offset*60000);}}
return result;}
dojo.date.stamp.toISOString=function(dateObject,options){var _=function(n){return(n<10)?"0"+n:n;};options=options||{};var formattedDate=[];var getter=options.zulu?"getUTC":"get";var date="";if(options.selector!="time"){var year=dateObject[getter+"FullYear"]();date=["0000".substr((year+"").length)+year,_(dateObject[getter+"Month"]()+1),_(dateObject[getter+"Date"]())].join('-');}
formattedDate.push(date);if(options.selector!="date"){var time=[_(dateObject[getter+"Hours"]()),_(dateObject[getter+"Minutes"]()),_(dateObject[getter+"Seconds"]())].join(':');var millis=dateObject[getter+"Milliseconds"]();if(options.milliseconds){time+="."+(millis<100?"0":"")+_(millis);}
if(options.zulu){time+="Z";}else if(options.selector!="time"){var timezoneOffset=dateObject.getTimezoneOffset();var absOffset=Math.abs(timezoneOffset);time+=(timezoneOffset>0?"-":"+")+
_(Math.floor(absOffset/60))+":"+_(absOffset%60);}
formattedDate.push(time);}
return formattedDate.join('T');}}
if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var dtName=d._scopeName+"Type";var qry="["+dtName+"]";var _anonCtr=0,_anon={};var nameAnonFunc=function(anonFuncPtr,thisObj){var nso=thisObj||_anon;if(dojo.isIE){var cn=anonFuncPtr["__dojoNameCache"];if(cn&&nso[cn]===anonFuncPtr){return cn;}}
var name;do{name="__"+_anonCtr++;}while(name in nso)
nso[name]=anonFuncPtr;return name;}
function val2type(value){if(d.isString(value)){return"string";}
if(typeof value=="number"){return"number";}
if(typeof value=="boolean"){return"boolean";}
if(d.isFunction(value)){return"function";}
if(d.isArray(value)){return"array";}
if(value instanceof Date){return"date";}
if(value instanceof d._Url){return"url";}
return"object";}
function str2obj(value,type){switch(type){case"string":return value;case"number":return value.length?Number(value):NaN;case"boolean":return typeof value=="boolean"?value:!(value.toLowerCase()=="false");case"function":if(d.isFunction(value)){value=value.toString();value=d.trim(value.substring(value.indexOf('{')+1,value.length-1));}
try{if(value.search(/[^\w\.]+/i)!=-1){value=nameAnonFunc(new Function(value),this);}
return d.getObject(value,false);}catch(e){return new Function();}
case"array":return value?value.split(/\s*,\s*/):[];case"date":switch(value){case"":return new Date("");case"now":return new Date();default:return d.date.stamp.fromISOString(value);}
case"url":return d.baseUrl+value;default:return d.fromJson(value);}}
var instanceClasses={};function getClassInfo(className){if(!instanceClasses[className]){var cls=d.getObject(className);if(!d.isFunction(cls)){throw new Error("Could not load class '"+className+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}
var proto=cls.prototype;var params={},dummyClass={};for(var name in proto){if(name.charAt(0)=="_"){continue;}
if(name in dummyClass){continue;}
var defVal=proto[name];params[name]=val2type(defVal);}
instanceClasses[className]={cls:cls,params:params};}
return instanceClasses[className];}
this._functionFromScript=function(script){var preamble="";var suffix="";var argsStr=script.getAttribute("args");if(argsStr){d.forEach(argsStr.split(/\s*,\s*/),function(part,idx){preamble+="var "+part+" = arguments["+idx+"]; ";});}
var withStr=script.getAttribute("with");if(withStr&&withStr.length){d.forEach(withStr.split(/\s*,\s*/),function(part){preamble+="with("+part+"){";suffix+="}";});}
return new Function(preamble+script.innerHTML+suffix);}
this.instantiate=function(nodes,mixin){var thelist=[];mixin=mixin||{};d.forEach(nodes,function(node){if(!node){return;}
var type=dtName in mixin?mixin[dtName]:node.getAttribute(dtName);if(!type||!type.length){return;}
var clsInfo=getClassInfo(type),clazz=clsInfo.cls,ps=clazz._noScript||clazz.prototype._noScript;var params={},attributes=node.attributes;for(var name in clsInfo.params){var item=name in mixin?{value:mixin[name],specified:true}:attributes.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}
var value=item.value;switch(name){case"class":value="className"in mixin?mixin.className:node.className;break;case"style":value="style"in mixin?mixin.style:(node.style&&node.style.cssText);}
var _type=clsInfo.params[name];if(typeof value=="string"){params[name]=str2obj(value,_type);}else{params[name]=value;}}
if(!ps){var connects=[],calls=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(script){var event=script.getAttribute("event"),type=script.getAttribute("type"),nf=d.parser._functionFromScript(script);if(event){if(type=="dojo/connect"){connects.push({event:event,func:nf});}else{params[event]=nf;}}else{calls.push(nf);}});}
var markupFactory=clazz["markupFactory"];if(!markupFactory&&clazz["prototype"]){markupFactory=clazz.prototype["markupFactory"];}
var instance=markupFactory?markupFactory(params,node,clazz):new clazz(params,node);thelist.push(instance);var jsname=node.getAttribute("jsId");if(jsname){d.setObject(jsname,instance);}
if(!ps){d.forEach(connects,function(connect){d.connect(instance,connect.event,null,connect.func);});d.forEach(calls,function(func){func.call(instance);});}});d.forEach(thelist,function(instance){if(instance&&instance.startup&&!instance._started&&(!instance.getParent||!instance.getParent())){instance.startup();}});return thelist;};this.parse=function(rootNode){var list=d.query(qry,rootNode);var instances=this.instantiate(list);return instances;};}();(function(){var parseRunner=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,parseRunner);}else{dojo._loaders.unshift(parseRunner);}})();}
if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _document=dojo.doc;if(_document.selection){var s=_document.selection;if(s.type=='Text'){return!s.createRange().htmlText.length;}else{return!s.createRange().length;}}else{var _window=dojo.global;var selection=_window.getSelection();if(dojo.isString(selection)){return!selection;}else{return!selection||selection.isCollapsed||!selection.toString();}}},getBookmark:function(){var bookmark,selection=dojo.doc.selection;if(selection){var range=selection.createRange();if(selection.type.toUpperCase()=='CONTROL'){if(range.length){bookmark=[];var i=0,len=range.length;while(i<len){bookmark.push(range.item(i++));}}else{bookmark=null;}}else{bookmark=range.getBookmark();}}else{if(window.getSelection){selection=dojo.global.getSelection();if(selection){range=selection.getRangeAt(0);bookmark=range.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}
return bookmark;},moveToBookmark:function(bookmark){var _document=dojo.doc;if(_document.selection){var range;if(dojo.isArray(bookmark)){range=_document.body.createControlRange();dojo.forEach(bookmark,function(n){range.addElement(n);});}else{range=_document.selection.createRange();range.moveToBookmark(bookmark);}
range.select();}else{var selection=dojo.global.getSelection&&dojo.global.getSelection();if(selection&&selection.removeAllRanges){selection.removeAllRanges();selection.addRange(bookmark);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(menu,openedForWindow){return{node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(openedForWindow||dojo.global,dijit.isCollapsed)?dojo.withGlobal(openedForWindow||dojo.global,dijit.getBookmark):null,openedForWindow:openedForWindow};},focus:function(handle){if(!handle){return;}
var node="node"in handle?handle.node:handle,bookmark=handle.bookmark,openedForWindow=handle.openedForWindow;if(node){var focusNode=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(focusNode&&focusNode.focus){try{focusNode.focus();}catch(e){}}
dijit._onFocusNode(node);}
if(bookmark&&dojo.withGlobal(openedForWindow||dojo.global,dijit.isCollapsed)){if(openedForWindow){openedForWindow.focus();}
try{dojo.withGlobal(openedForWindow||dojo.global,dijit.moveToBookmark,null,[bookmark]);}catch(e){}}},_activeStack:[],registerIframe:function(iframe){dijit.registerWin(iframe.contentWindow,iframe);},registerWin:function(targetWindow,effectiveNode){dojo.connect(targetWindow.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(effectiveNode||evt.target||evt.srcElement);});var doc=targetWindow.document;if(doc){if(dojo.isIE){doc.attachEvent('onactivate',function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(effectiveNode||evt.srcElement);}});doc.attachEvent('ondeactivate',function(evt){dijit._onBlurNode(effectiveNode||evt.srcElement);});}else{doc.addEventListener('focus',function(evt){dijit._onFocusNode(effectiveNode||evt.target);},true);doc.addEventListener('blur',function(evt){dijit._onBlurNode(effectiveNode||evt.target);},true);}}
doc=null;},_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){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}
var newStack=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){newStack.unshift(id);}
node=node.parentNode;}}}catch(e){}
dijit._setStack(newStack);},_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(newStack){var oldStack=dijit._activeStack;dijit._activeStack=newStack;for(var nCommon=0;nCommon<Math.min(oldStack.length,newStack.length);nCommon++){if(oldStack[nCommon]!=newStack[nCommon]){break;}}
for(var i=oldStack.length-1;i>=nCommon;i--){var widget=dijit.byId(oldStack[i]);if(widget){widget._focused=false;widget._hasBeenBlurred=true;if(widget._onBlur){widget._onBlur();}
if(widget._setStateClass){widget._setStateClass();}
dojo.publish("widgetBlur",[widget]);}}
for(i=nCommon;i<newStack.length;i++){widget=dijit.byId(newStack[i]);if(widget){widget._focused=true;if(widget._onFocus){widget._onFocus();}
if(widget._setStateClass){widget._setStateClass();}
dojo.publish("widgetFocus",[widget]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}
if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(widget){if(this._hash[widget.id]){throw new Error("Tried to register widget with id=="+widget.id+" but that id is already registered");}
this._hash[widget.id]=widget;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(filter){var res=new dijit.WidgetSet();this.forEach(function(widget){if(filter(widget)){res.add(widget);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(widget){return widget.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(widgetType){var id;do{id=widgetType+"_"+
(widgetType in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[widgetType]:dijit._widgetTypeCtr[widgetType]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(root){var outAry=[];function getChildrenHelper(root){var list=dojo.isIE?root.children:root.childNodes,i=0,node;while(node=list[i++]){if(node.nodeType!=1){continue;}
var widgetId=node.getAttribute("widgetId");if(widgetId){var widget=dijit.byId(widgetId);outAry.push(widget);}else{getChildrenHelper(node);}}}
getChildrenHelper(root);return outAry;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(widget){if(widget.destroyRecursive){widget.destroyRecursive();}else if(widget.destroy){widget.destroy();}});});}
dijit.byId=function(id){return(dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}
node=node.parentNode;}
return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var style=dojo.style(elem);return(style.visibility!="hidden")&&(style.visibility!="collapsed")&&(style.display!="none")&&(dojo.attr(elem,"type")!="hidden");}
dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}
var hasTabindex=dojo.hasAttr(elem,"tabindex");var tabindex=dojo.attr(elem,"tabindex");if(hasTabindex&&tabindex>=0){return true;}
var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!hasTabindex||tabindex>=0)){return true;}
return false;};dijit._getTabNavigable=function(root){var first,last,lowest,lowestTabindex,highest,highestTabindex;var walkTree=function(parent){dojo.query("> *",parent).forEach(function(child){var isShown=dijit._isElementShown(child);if(isShown&&dijit.isTabNavigable(child)){var tabindex=dojo.attr(child,"tabindex");if(!dojo.hasAttr(child,"tabindex")||tabindex==0){if(!first){first=child;}
last=child;}else if(tabindex>0){if(!lowest||tabindex<lowestTabindex){lowestTabindex=tabindex;lowest=child;}
if(!highest||tabindex>=highestTabindex){highestTabindex=tabindex;highest=child;}}}
if(isShown&&child.nodeName.toUpperCase()!='SELECT'){walkTree(child)}});};if(dijit._isElementShown(root)){walkTree(root)}
return{first:first,last:last,lowest:lowest,highest:highest};}
dijit.getFirstInTabbingOrder=function(root){var elems=dijit._getTabNavigable(dojo.byId(root));return elems.lowest?elems.lowest:elems.first;};dijit.getLastInTabbingOrder=function(root){var elems=dijit._getTabNavigable(dojo.byId(root));return elems.last?elems.last:elems.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}
if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(returnWrappers){this.pairs=[];this.returnWrappers=returnWrappers||false;}
dojo.extend(dojo.AdapterRegistry,{register:function(name,check,wrap,directReturn,override){this.pairs[((override)?"unshift":"push")]([name,check,wrap,directReturn]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}
throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}
return false;}});}
if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var scrollRoot=(dojo.doc.compatMode=='BackCompat')?dojo.body():dojo.doc.documentElement;var scroll=dojo._docScroll();return{w:scrollRoot.clientWidth,h:scrollRoot.clientHeight,l:scroll.x,t:scroll.y};};dijit.placeOnScreen=function(node,pos,corners,padding){var choices=dojo.map(corners,function(corner){var c={corner:corner,pos:{x:pos.x,y:pos.y}};if(padding){c.pos.x+=corner.charAt(1)=='L'?padding.x:-padding.x;c.pos.y+=corner.charAt(0)=='T'?padding.y:-padding.y;}
return c;});return dijit._place(node,choices);}
dijit._place=function(node,choices,layoutNode){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}
var best=null;dojo.some(choices,function(choice){var corner=choice.corner;var pos=choice.pos;if(layoutNode){layoutNode(node,choice.aroundCorner,corner);}
var style=node.style;var oldDisplay=style.display;var oldVis=style.visibility;style.visibility="hidden";style.display="";var mb=dojo.marginBox(node);style.display=oldDisplay;style.visibility=oldVis;var startX=(corner.charAt(1)=='L'?pos.x:Math.max(view.l,pos.x-mb.w)),startY=(corner.charAt(0)=='T'?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(corner.charAt(1)=='L'?Math.min(view.l+view.w,startX+mb.w):pos.x),endY=(corner.charAt(0)=='T'?Math.min(view.t+view.h,startY+mb.h):pos.y),width=endX-startX,height=endY-startY,overflow=(mb.w-width)+(mb.h-height);if(best==null||overflow<best.overflow){best={corner:corner,aroundCorner:choice.aroundCorner,x:startX,y:startY,w:width,h:height,overflow:overflow};}
return!overflow;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&layoutNode){layoutNode(node,best.aroundCorner,best.corner);}
return best;}
dijit.placeOnScreenAroundNode=function(node,aroundNode,aroundCorners,layoutNode){aroundNode=dojo.byId(aroundNode);var oldDisplay=aroundNode.style.display;aroundNode.style.display="";var aroundNodeW=aroundNode.offsetWidth;var aroundNodeH=aroundNode.offsetHeight;var aroundNodePos=dojo.coords(aroundNode,true);aroundNode.style.display=oldDisplay;return dijit._placeOnScreenAroundRect(node,aroundNodePos.x,aroundNodePos.y,aroundNodeW,aroundNodeH,aroundCorners,layoutNode);};dijit.placeOnScreenAroundRectangle=function(node,aroundRect,aroundCorners,layoutNode){return dijit._placeOnScreenAroundRect(node,aroundRect.x,aroundRect.y,aroundRect.width,aroundRect.height,aroundCorners,layoutNode);};dijit._placeOnScreenAroundRect=function(node,x,y,width,height,aroundCorners,layoutNode){var choices=[];for(var nodeCorner in aroundCorners){choices.push({aroundCorner:nodeCorner,corner:aroundCorners[nodeCorner],pos:{x:x+(nodeCorner.charAt(1)=='L'?0:width),y:y+(nodeCorner.charAt(0)=='T'?0:height)}});}
return dijit._place(node,choices,layoutNode);};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,aroundElement,aroundCorners,layoutNode){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}
if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}
return doc._parentWindow||doc.parentWindow||doc.defaultView;}}
if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var stack=[],beginZIndex=1000,idGen=1;this.prepare=function(node){var s=node.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}
dojo.body().appendChild(node);};this.open=function(args){var widget=args.popup,orient=args.orient||{'BL':'TL','TL':'BL'},around=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+idGen++);var wrapper=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:beginZIndex+stack.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(wrapper,"presentation");wrapper.style.left=wrapper.style.top="0px";if(args.parent){wrapper.dijitPopupParent=args.parent.id;}
var s=widget.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";wrapper.appendChild(widget.domNode);var iframe=new dijit.BackgroundIframe(wrapper);var best=around?dijit.placeOnScreenAroundElement(wrapper,around,orient,widget.orient?dojo.hitch(widget,"orient"):null):dijit.placeOnScreen(wrapper,args,orient=='R'?['TR','BR','TL','BL']:['TL','BL','TR','BR'],args.padding);wrapper.style.visibility="visible";var handlers=[];var getTopPopup=function(){for(var pi=stack.length-1;pi>0&&stack[pi].parent===stack[pi-1].widget;pi--){}
return stack[pi];}
handlers.push(dojo.connect(wrapper,"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 topPopup=getTopPopup();if(topPopup&&topPopup.onCancel){topPopup.onCancel();}}}));if(widget.onCancel){handlers.push(dojo.connect(widget,"onCancel",null,args.onCancel));}
handlers.push(dojo.connect(widget,widget.onExecute?"onExecute":"onChange",null,function(){var topPopup=getTopPopup();if(topPopup&&topPopup.onExecute){topPopup.onExecute();}}));stack.push({wrapper:wrapper,iframe:iframe,widget:widget,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:handlers});if(widget.onOpen){widget.onOpen(best);}
return best;};this.close=function(popup){while(dojo.some(stack,function(elem){return elem.widget==popup;})){var top=stack.pop(),wrapper=top.wrapper,iframe=top.iframe,widget=top.widget,onClose=top.onClose;if(widget.onClose){widget.onClose();}
dojo.forEach(top.handlers,dojo.disconnect);if(!widget||!widget.domNode){return;}
this.prepare(widget.domNode);iframe.destroy();dojo.destroy(wrapper);if(onClose){onClose();}}};}();dijit._frames=new function(){var queue=[];this.pop=function(){var iframe;if(queue.length){iframe=queue.pop();iframe.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"
+" style='position: absolute; left: 0px; top: 0px;"
+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";iframe=dojo.doc.createElement(html);}else{iframe=dojo.create("iframe");iframe.src='javascript:""';iframe.className="dijitBackgroundIframe";}
iframe.tabIndex=-1;dojo.body().appendChild(iframe);}
return iframe;};this.push=function(iframe){iframe.style.display="none";if(dojo.isIE){iframe.style.removeExpression("width");iframe.style.removeExpression("height");}
queue.push(iframe);}}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}
if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var iframe=dijit._frames.pop();node.appendChild(iframe);if(dojo.isIE){iframe.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");iframe.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}
this.iframe=iframe;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}
if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){try{node=dojo.byId(node);var doc=dojo.doc;var body=dojo.body();var html=body.parentNode;if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){node.scrollIntoView(false);return;}
var ltr=dojo._isBodyLtr();var isIE8strict=dojo.isIE>=8&&!compatMode;var rtl=!ltr&&!isIE8strict;var scrollRoot=body;var compatMode=doc.compatMode=='BackCompat';if(compatMode){html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;}else{if(dojo.isWebKit){body._offsetWidth=body._clientWidth=html.clientWidth;body._offsetHeight=body._clientHeight=html.clientHeight;}else{scrollRoot=html;}
html._offsetHeight=html.clientHeight;html._offsetWidth=html.clientWidth;}
function isFixedPosition(element){var ie=dojo.isIE;return((ie<=6||(ie>=7&&compatMode))?false:(dojo.style(element,'position').toLowerCase()=="fixed"));}
function addPseudoAttrs(element){var parent=element.parentNode;var offsetParent=element.offsetParent;if(offsetParent==null||isFixedPosition(element)){offsetParent=html;parent=(element==body)?html:null;}
element._offsetParent=offsetParent;element._parent=parent;var bp=dojo._getBorderExtents(element);element._borderStart={H:(isIE8strict&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};element._borderSize={H:bp.w,V:bp.h};element._scrolledAmount={H:element.scrollLeft,V:element.scrollTop};element._offsetSize={H:element._offsetWidth||element.offsetWidth,V:element._offsetHeight||element.offsetHeight};element._offsetStart={H:(isIE8strict&&!ltr)?offsetParent.clientWidth-element.offsetLeft-element._offsetSize.H:element.offsetLeft,V:element.offsetTop};element._clientSize={H:element._clientWidth||element.clientWidth,V:element._clientHeight||element.clientHeight};if(element!=body&&element!=html&&element!=node){for(var dir in element._offsetSize){var scrollBarSize=element._offsetSize[dir]-element._clientSize[dir]-element._borderSize[dir];var hasScrollBar=element._clientSize[dir]>0&&scrollBarSize>0;if(hasScrollBar){element._offsetSize[dir]-=scrollBarSize;if(dojo.isIE&&rtl&&dir=="H"){element._offsetStart[dir]+=scrollBarSize;}}}}}
var element=node;while(element!=null){if(isFixedPosition(element)){node.scrollIntoView(false);return;}
addPseudoAttrs(element);element=element._parent;}
if(dojo.isIE&&node._parent){var offsetParent=node._offsetParent;node._offsetStart.H+=offsetParent._borderStart.H;node._offsetStart.V+=offsetParent._borderStart.V;}
if(dojo.isIE>=7&&scrollRoot==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){var scroll=html.scrollWidth-html._offsetSize.H;if(scroll>0){body._offsetStart.H=-scroll;}}
if(dojo.isIE<=6&&!compatMode){html._offsetSize.H+=html._borderSize.H;html._offsetSize.V+=html._borderSize.V;}
if(rtl&&body._offsetStart&&scrollRoot==html&&html._scrolledAmount){var ofs=body._offsetStart.H;if(ofs<0){html._scrolledAmount.H+=ofs;body._offsetStart.H=0;}}
element=node;while(element){var parent=element._parent;if(!parent){break;}
if(parent.tagName=="TD"){var table=parent._parent._parent._parent;if(parent!=element._offsetParent&&parent._offsetParent!=element._offsetParent){parent=table;}}
var relative=element._offsetParent==parent;for(var dir in element._offsetStart){var otherDir=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(parent!=html)&&(parent!=body)&&(dojo.isIE||dojo.isWebKit)&&parent._clientSize.H>0&&parent.scrollWidth>parent._clientSize.H){var delta=parent.scrollWidth-parent._clientSize.H;if(delta>0){parent._scrolledAmount.H-=delta;}}
if(parent._offsetParent.tagName=="TABLE"){if(dojo.isIE){parent._offsetStart[dir]-=parent._offsetParent._borderStart[dir];parent._borderStart[dir]=parent._borderSize[dir]=0;}
else{parent._offsetStart[dir]+=parent._offsetParent._borderStart[dir];}}
if(dojo.isIE){parent._offsetStart[dir]+=parent._offsetParent._borderStart[dir];}
var underflow=element._offsetStart[dir]-parent._scrolledAmount[dir]-(relative?0:parent._offsetStart[dir])-parent._borderStart[dir];var overflow=underflow+element._offsetSize[dir]-parent._offsetSize[dir]+parent._borderSize[dir];var scrollAttr=(dir=="H")?"scrollLeft":"scrollTop";var reverse=dir=="H"&&rtl;var underflowScroll=reverse?-overflow:underflow;var overflowScroll=reverse?-underflow:overflow;var scrollAmount=(underflowScroll*overflowScroll<=0)?0:Math[(underflowScroll<0)?"max":"min"](underflowScroll,overflowScroll);if(scrollAmount!=0){var oldScroll=parent[scrollAttr];parent[scrollAttr]+=(reverse)?-scrollAmount:scrollAmount;var scrolledAmount=parent[scrollAttr]-oldScroll;}
if(relative){element._offsetStart[dir]+=parent._offsetStart[dir];}
element._offsetStart[dir]-=parent[scrollAttr];}
element._parent=parent._parent;element._offsetParent=parent._offsetParent;}
parent=node;var next;while(parent&&parent.removeAttribute){next=parent.parentNode;parent.removeAttribute('_offsetParent');parent.removeAttribute('_parent');parent=next;}}catch(error){console.error('scrollIntoView: '+error);node.scrollIntoView(false);}};}
if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,opera=d.isOpera,maj=Math.floor,ff=d.isFF,boxModel=d.boxModel.replace(/-/,''),classes={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:opera,dj_opera8:maj(opera)==8,dj_opera9:maj(opera)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};classes["dj_"+boxModel]=true;for(var p in classes){if(classes[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}
dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in classes){if(classes[p]){html.className+=" "+p+"-rtl";}}}});})();}
if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_this,node,callback,obj,subsequentDelay,initialDelay){if(obj!=this._obj){this.stop();this._initialDelay=initialDelay||500;this._subsequentDelay=subsequentDelay||0.90;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_this,callback);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}
if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,keyObject,_this,callback,subsequentDelay,initialDelay){if(keyObject.keyCode){keyObject.charOrCode=keyObject.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else if(keyObject.charCode){keyObject.charOrCode=String.fromCharCode(keyObject.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==keyObject.charOrCode&&(keyObject.ctrlKey===undefined||keyObject.ctrlKey==evt.ctrlKey)&&(keyObject.altKey===undefined||keyObject.altKey==evt.ctrlKey)&&(keyObject.shiftKey===undefined||keyObject.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(keyObject,_this,node,callback,keyObject,subsequentDelay,initialDelay);}else if(dijit.typematic._obj==keyObject){dijit.typematic.stop();}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==keyObject){dijit.typematic.stop();}})];},addMouseListener:function(node,_this,callback,subsequentDelay,initialDelay){var dc=dojo.connect;return[dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_this,node,callback,node,subsequentDelay,initialDelay);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_this,node,callback,node,subsequentDelay,initialDelay);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(mouseNode,keyNode,keyObject,_this,callback,subsequentDelay,initialDelay){return this.addKeyListener(keyNode,keyObject,_this,callback,subsequentDelay,initialDelay).concat(this.addMouseListener(mouseNode,_this,callback,subsequentDelay,initialDelay));}};}
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 bkImg=cs.backgroundImage;var needsA11y=(cs.borderTopColor==cs.borderRightColor)||(bkImg!=null&&(bkImg=="none"||bkImg=="url(invalid-url:)"));dojo[needsA11y?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}
dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var waiRole=this.getWaiRole(elem);return role?(waiRole.indexOf(role)>-1):(waiRole.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var curRole=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(curRole)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+curRole+" ").indexOf(" "+role+" ")<0){var clearXhtml=dojo.trim(curRole.replace(this._XhtmlRoles,""));var cleanRole=dojo.trim(curRole.replace(clearXhtml,""));dojo.attr(elem,"role",cleanRole+(cleanRole?' ':'')+role);}}},removeWaiRole:function(elem,role){var roleValue=dojo.attr(elem,"role");if(!roleValue){return;}
if(role){var searchRole=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+roleValue+" ").replace(" "+searchRole+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,state){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",state);}
return elem.hasAttribute?elem.hasAttribute("aria-"+state):!!elem.getAttribute("aria-"+state);},getWaiState:function(elem,state){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",state);}
return elem.getAttribute("aria-"+state)||"";},setWaiState:function(elem,state,value){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+state,value);}else{elem.setAttribute("aria-"+state,value);}},removeWaiState:function(elem,state){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",state);}else{elem.removeAttribute("aria-"+state);}}});}
if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}
if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(widget,event){if(widget&&dojo.isFunction(widget._onConnect)){widget._onConnect(event);}});dijit._connectOnUseEventHandler=function(event){};(function(){var _attrReg={};var getAttrReg=function(dc){if(!_attrReg[dc]){var r=[];var attrs;var proto=dojo.getObject(dc).prototype;for(var fxName in proto){if(dojo.isFunction(proto[fxName])&&(attrs=fxName.match(/^_set([a-zA-Z]*)Attr$/))&&attrs[1]){r.push(attrs[1].charAt(0).toLowerCase()+attrs[1].substr(1));}}
_attrReg[dc]=r;}
return _attrReg[dc]||[];}
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(params,srcNodeRef){this.create(params,srcNodeRef);},create:function(params,srcNodeRef){this.srcNodeRef=dojo.byId(srcNodeRef);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}
for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}
if(params){this.params=params;dojo.mixin(this,params);}
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 source=this.srcNodeRef;if(source&&source.parentNode){source.parentNode.replaceChild(this.domNode,source);}
for(attr in this.params){this._onConnect(attr);}}
if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}
this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}
this._created=true;},_applyAttributes:function(){var condAttrApply=function(attr,scope){if((scope.params&&attr in scope.params)||scope[attr]){scope.attr(attr,scope[attr]);}};for(var attr in this.attributeMap){condAttrApply(attr,this);}
dojo.forEach(getAttrReg(this.declaredClass),function(a){if(!(a in this.attributeMap)){condAttrApply(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create('div');},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(preserveDom){this.destroyDescendants(preserveDom);this.destroy(preserveDom);},destroy:function(preserveDom){this.uninitialize();dojo.forEach(this._connects,function(array){dojo.forEach(array,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(preserveDom);dijit.registry.remove(this.id);},destroyRendering:function(preserveDom){if(this.bgIframe){this.bgIframe.destroy(preserveDom);delete this.bgIframe;}
if(this.domNode){if(preserveDom){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}
delete this.domNode;}
if(this.srcNodeRef){if(!preserveDom){dojo.destroy(this.srcNodeRef);}
delete this.srcNodeRef;}},destroyDescendants:function(preserveDom){dojo.forEach(this.getChildren(),function(widget){if(widget.destroyRecursive){widget.destroyRecursive(preserveDom);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(event){if(event in this._deferredConnects){var mapNode=this[this._deferredConnects[event]||'domNode'];this.connect(mapNode,event.toLowerCase(),event);delete this._deferredConnects[event];}},_setClassAttr:function(value){var mapNode=this[this.attributeMap["class"]||'domNode'];dojo.removeClass(mapNode,this["class"])
this["class"]=value;dojo.addClass(mapNode,value);},_setStyleAttr:function(value){var mapNode=this[this.attributeMap["style"]||'domNode'];if(dojo.isObject(value)){dojo.style(mapNode,value);}else{if(mapNode.style.cssText){mapNode.style.cssText+="; "+value;}else{mapNode.style.cssText=value;}}
this["style"]=value;},setAttribute:function(attr,value){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,value);},_attrToDom:function(attr,value){var commands=this.attributeMap[attr];dojo.forEach(dojo.isArray(commands)?commands:[commands],function(command){var mapNode=this[command.node||command||"domNode"];var type=command.type||"attribute";switch(type){case"attribute":if(dojo.isFunction(value)){value=dojo.hitch(this,value);}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}
dojo.attr(mapNode,attr,value);break;case"innerHTML":mapNode.innerHTML=value;break;case"class":dojo.removeClass(mapNode,this[attr]);dojo.addClass(mapNode,value);break;}},this);this[attr]=value;},attr:function(name,value){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}
return this;}
var names=this._getAttrNames(name);if(args==2){if(this[names.s]){return this[names.s](value)||this;}else{if(name in this.attributeMap){this._attrToDom(name,value);}
this[name]=value;}
return this;}else{if(this[names.g]){return this[names.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}
var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return'[Widget '+this.declaredClass+', '+(this.id||'NO ID')+']';},getDescendants:function(){if(this.containerNode){var list=dojo.query('[widgetId]',this.containerNode);return list.map(dijit.byNode);}else{return[];}},getChildren:function(){if(this.containerNode){return dijit.findWidgets(this.containerNode);}else{return[];}},nodesWithKeyClick:["input","button"],connect:function(obj,event,method){var d=dojo;var dc=dojo.connect;var handles=[];if(event=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,method);handles.push(dc(obj,"onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}else if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}),dc(obj,"onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));if(d.isFF){handles.push(dc(obj,"onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}
event="onclick";}
handles.push(dc(obj,event,this,method));this._connects.push(handles);return handles;},disconnect:function(handles){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==handles){dojo.forEach(handles,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(reference,position){if(reference["declaredClass"]&&reference["addChild"]){reference.addChild(this,position);}else{dojo.place(this.domNode,reference,position);}
return this;}});})();}
if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return"";}
var buf=[];for(;;){if(num&1){buf.push(str);}
if(!(num>>=1)){break;}
str+=str;}
return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch='0';}
var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(template,map,transform,thisObject){thisObject=thisObject||dojo.global;transform=(!transform)?function(v){return v;}:dojo.hitch(thisObject,transform);return template.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(match,key,format){var value=dojo.getObject(key,false,map);if(format){value=dojo.getObject(format,false,thisObject).call(thisObject,value,key);}
return transform(value,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["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var className=this.declaredClass,_this=this;return dojo.string.substitute(tmpl,this,function(value,key){if(key.charAt(0)=='!'){value=dojo.getObject(key.substr(1),_this);}
if(typeof value=="undefined"){throw new Error(className+" template:"+key);}
if(value==null){return"";}
return key.charAt(0)=="!"?value:value.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var cached=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(cached)){node=dojo._toDom(this._stringRepl(cached));}else{node=cached.cloneNode(true);}
this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}
this._fillContent(this.srcNodeRef);},_fillContent:function(source){var dest=this.containerNode;if(source&&dest){while(source.hasChildNodes()){dest.appendChild(source.firstChild);}}},_attachTemplateNodes:function(rootNode,getAttrFunc){getAttrFunc=getAttrFunc||function(n,p){return n.getAttribute(p);};var nodes=dojo.isArray(rootNode)?rootNode:(rootNode.all||rootNode.getElementsByTagName("*"));var x=dojo.isArray(rootNode)?0:-1;for(;x<nodes.length;x++){var baseNode=(x==-1)?rootNode:nodes[x];if(this.widgetsInTemplate&&getAttrFunc(baseNode,"dojoType")){continue;}
var attachPoint=getAttrFunc(baseNode,"dojoAttachPoint");if(attachPoint){var point,points=attachPoint.split(/\s*,\s*/);while((point=points.shift())){if(dojo.isArray(this[point])){this[point].push(baseNode);}else{this[point]=baseNode;}}}
var attachEvent=getAttrFunc(baseNode,"dojoAttachEvent");if(attachEvent){var event,events=attachEvent.split(/\s*,\s*/);var trim=dojo.trim;while((event=events.shift())){if(event){var thisFunc=null;if(event.indexOf(":")!=-1){var funcNameArr=event.split(":");event=trim(funcNameArr[0]);thisFunc=trim(funcNameArr[1]);}else{event=trim(event);}
if(!thisFunc){thisFunc=event;}
this.connect(baseNode,event,thisFunc);}}}
var role=getAttrFunc(baseNode,"waiRole");if(role){dijit.setWaiRole(baseNode,role);}
var values=getAttrFunc(baseNode,"waiState");if(values){dojo.forEach(values.split(/\s*,\s*/),function(stateValue){if(stateValue.indexOf('-')!=-1){var pair=stateValue.split('-');dijit.setWaiState(baseNode,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(templatePath,templateString,alwaysUseString){var tmplts=dijit._Templated._templateCache;var key=templateString||templatePath;var cached=tmplts[key];if(cached){if(!cached.ownerDocument||cached.ownerDocument==dojo.doc){return cached;}
dojo.destroy(cached);}
if(!templateString){templateString=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(templatePath)));}
templateString=dojo.string.trim(templateString);if(alwaysUseString||templateString.match(/\$\{([^\}]+)\}/g)){return(tmplts[key]=templateString);}else{return(tmplts[key]=dojo._toDom(templateString));}};dijit._Templated._sanitizeTemplateString=function(tString){if(tString){tString=tString.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var matches=tString.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(matches){tString=matches[1];}}else{tString="";}
return tString;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var cache=dijit._Templated._templateCache;for(var key in cache){var value=cache[key];if(!isNaN(value.nodeType)){dojo.destroy(value);}
delete cache[key];}});}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}
if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},_setDisabledAttr:function(value){this.disabled=value;dojo.attr(this.focusNode,'disabled',value);dijit.setWaiState(this.focusNode,"disabled",value);if(value){this._hovering=false;this._active=false;this.focusNode.removeAttribute('tabIndex');}else{this.focusNode.setAttribute('tabIndex',this.tabIndex);}
this._setStateClass();},setDisabled:function(disabled){dojo.deprecated("setDisabled("+disabled+") is deprecated. Use attr('disabled',"+disabled+") instead.","","2.0");this.attr('disabled',disabled);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}
this.inherited(arguments);},_onMouse:function(event){var mouseNode=event.currentTarget;if(mouseNode&&mouseNode.getAttribute){this.stateModifier=mouseNode.getAttribute("stateModifier")||"";}
if(!this.disabled){switch(event.type){case"mouseenter":case"mouseover":this._hovering=true;this._active=this._mouseDown;break;case"mouseout":case"mouseleave":this._hovering=false;this._active=false;break;case"mousedown":this._active=true;this._mouseDown=true;var mouseUpConnector=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}
this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(mouseUpConnector);});break;}
this._setStateClass();}},isFocusable:function(){return!this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var newStateClasses=this.baseClass.split(" ");function multiply(modifier){newStateClasses=newStateClasses.concat(dojo.map(newStateClasses,function(c){return c+modifier;}),"dijit"+modifier);}
if(this.checked){multiply("Checked");}
if(this.state){multiply(this.state);}
if(this.selected){multiply("Selected");}
if(this.disabled){multiply("Disabled");}else if(this.readOnly){multiply("ReadOnly");}else if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}
if(this._hovering){multiply(this.stateModifier+"Hover");}}
var tn=this.stateNode||this.domNode,classHash={};dojo.forEach(tn.className.split(" "),function(c){classHash[c]=true;});if("_stateClasses"in this){dojo.forEach(this._stateClasses,function(c){delete classHash[c];});}
dojo.forEach(newStateClasses,function(c){classHash[c]=true;});var newClasses=[];for(var c in classHash){newClasses.push(c);}
tn.className=newClasses.join(" ");this._stateClasses=newStateClasses;},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(newValue){},_onChangeActive:false,_handleOnChange:function(newValue,priorityChange){this._lastValue=newValue;if(this._lastValueReported==undefined&&(priorityChange===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=newValue;}
if((this.intermediateChanges||priorityChange||priorityChange===undefined)&&((typeof newValue!=typeof this._lastValueReported)||this.compare(newValue,this._lastValueReported)!=0)){this._lastValueReported=newValue;if(this._onChangeActive){this.onChange(newValue);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}
this.inherited(arguments);},setValue:function(value){dojo.deprecated("dijit.form._FormWidget:setValue("+value+") is deprecated.  Use attr('value',"+value+") instead.","","2.0");this.attr('value',value);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr('value');},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){if(dojo.isIE||dojo.isWebKit){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}
if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(newValue,priorityChange){this.value=newValue;this._handleOnChange(newValue,priorityChange);},_getValueAttr:function(value){return this._lastValue;},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){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent('onkeypress',te);}else if(dojo.isWebKit){te=document.createEvent('Events');te.initEvent('keypress',true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}});}
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(widget,insertIndex){var refNode=this.containerNode;if(insertIndex&&typeof insertIndex=="number"){var children=this.getChildren();if(children&&children.length>=insertIndex){refNode=children[insertIndex-1].domNode;insertIndex="after";}}
dojo.place(widget.domNode,refNode,insertIndex);if(this._started&&!widget._started){widget.startup();}},removeChild:function(widget){if(typeof widget=="number"&&widget>0){widget=this.getChildren()[widget];}
if(!widget||!widget.domNode){return;}
var node=widget.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}
return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return!!this._firstElement(this.containerNode);},destroyDescendants:function(preserveDom){dojo.forEach(this.getChildren(),function(child){child.destroyRecursive(preserveDom);});},_getSiblingOfChild:function(child,dir){var node=child.domNode;var which=(dir>0?"nextSibling":"previousSibling");do{node=node[which];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(child){var children=this.getChildren();for(var i=0,c;c=children[i];i++){if(c==child){return i;}}
return-1;}});}
if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}
this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!='click'&&!(this.type=="submit"||this.type=="reset")){dojo.stopEvent(e);}
if(this._onClick(e)===false){e.preventDefault();}else if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var widget=dijit.byNode(node);if(widget&&typeof widget._onSubmit=="function"){widget._onSubmit(e);break;}}}},_setValueAttr:function(value){var attr=this.attributeMap.value||'';if(this[attr.node||attr||'domNode'].tagName=='BUTTON'){if(value!=this.value){console.debug('Cannot change the value attribute on a Button widget.');}}},_fillContent:function(source){if(source&&!("label"in this.params)){this.attr('label',source.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}
dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(content){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",content);},_setLabelAttr:function(content){this.containerNode.innerHTML=this.label=content;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||'');}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){if(this.srcNodeRef){var nodes=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,nodes[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}
if(!this.dropDown){var dropDownNode=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(dropDownNode);delete this.dropDownContainer;}
dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}
this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}
this._toggleDropDown();},_onDropDownClick:function(e){var isMacFFlessThan3=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!isMacFFlessThan3||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}
this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}
if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}
dijit.focus(this.popupStateNode);var dropDown=this.dropDown;if(!dropDown){return;}
if(!this._opened){if(dropDown.href&&!dropDown.isLoaded){var self=this;var handler=dojo.connect(dropDown,"onLoad",function(){dojo.disconnect(handler);self._openDropDown();});dropDown.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var dropDown=this.dropDown;var oldWidth=dropDown.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:dropDown,around:this.domNode,orient:this.isLeftToRight()?{'BL':'TL','BR':'TR','TL':'BL','TR':'BR'}:{'BR':'TR','BL':'TL','TR':'BR','TL':'BL'},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){dropDown.domNode.style.width=oldWidth;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>dropDown.domNode.offsetWidth){var adjustNode=null;if(!this.isLeftToRight()){adjustNode=dropDown.domNode.parentNode;var oldRight=adjustNode.offsetLeft+adjustNode.offsetWidth;}
dojo.marginBox(dropDown.domNode,{w:this.domNode.offsetWidth});if(adjustNode){adjustNode.style.left=oldRight-this.domNode.offsetWidth+"px";}}
this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(dropDown.focus){dropDown.focus();}},_closeDropDown:function(focus){if(this._opened){dijit.popup.close(this.dropDown);if(focus){this.focus();}
this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr('checked',!this.checked);},_setCheckedAttr:function(value){this.checked=value;dojo.attr(this.focusNode||this.domNode,"checked",value);dijit.setWaiState(this.focusNode||this.domNode,"pressed",value);this._setStateClass();this._handleOnChange(value,true);},setChecked:function(checked){dojo.deprecated("setChecked("+checked+") is deprecated. Use attr('checked',"+checked+") instead.","","2.0");this.attr('checked',checked);},reset:function(){this._hasBeenBlurred=false;this.attr('checked',this.params.checked||false);}});}
if(dojo.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._fakeLoadInit,1000);}})();
