if(typeof dojo=="undefined"){var dj_global=this;var dj_currentContext=this;function dj_undef(b,a){return(typeof(a||dj_currentContext)[b]=="undefined")}if(dj_undef("djConfig",this)){var djConfig={}}if(dj_undef("dojo",this)){var dojo={}}dojo.global=function(){return dj_currentContext};dojo.locale=djConfig.locale;dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 2456 $".match(/[0-9]+/)[0]),toString:function(){with(dojo.version){return major+"."+minor+"."+patch+flag+" ("+revision+")"}}};dojo.evalProp=function(c,b,a){if((!b)||(!c)){return undefined}if(!dj_undef(c,b)){return b[c]}return(a?(b[c]={}):undefined)};dojo.parseObjPath=function(g,d,c){var a=(d||dojo.global());var j=g.split(".");var f=j.pop();for(var h=0,b=j.length;h<b&&a;h++){a=dojo.evalProp(j[h],a,c)}return{obj:a,prop:f}};dojo.evalObjPath=function(a,c){if(typeof a!="string"){return dojo.global()}if(a.indexOf(".")==-1){return dojo.evalProp(a,dojo.global(),c)}var b=dojo.parseObjPath(a,dojo.global(),c);if(b){return dojo.evalProp(b.prop,b.obj,c)}return null};dojo.errorToString=function(a){if(!dj_undef("message",a)){return a.message}else{if(!dj_undef("description",a)){return a.description}else{return a}}};dojo.raise=function(c,a){if(a){c=c+": "+dojo.errorToString(a)}else{c=dojo.errorToString(c)}try{if(djConfig.isDebug){dojo.hostenv.println("FATAL exception raised: "+c)}}catch(b){}throw a||Error(c)};dojo.debug=function(){};dojo.debugShallow=function(a){};dojo.profile={start:function(){},end:function(){},stop:function(){},dump:function(){}};function dj_eval(_15){return dj_global.eval?dj_global.eval(_15):eval(_15)}dojo.unimplemented=function(c,b){var a="'"+c+"' not implemented";if(b!=null){a+=" "+b}dojo.raise(a)};dojo.deprecated=function(a,d,c){var b="DEPRECATED: "+a;if(d){b+=" "+d}if(c){b+=" -- will be removed in version: "+c}dojo.debug(b)};dojo.render=(function(){function a(c,b){var f={capable:false,support:{builtin:false,plugin:false},prefixes:c};for(var d=0;d<b.length;d++){f[b[d]]=false}return f}return{name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:a(["html"],["ie","opera","khtml","safari","moz"]),svg:a(["svg"],["corel","adobe","batik"]),vml:a(["vml"],["ie"]),swf:a(["Swf","Flash","Mm"],["mm"]),swt:a(["Swt"],["ibm"])}})();dojo.hostenv=(function(){var a={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};if(typeof djConfig=="undefined"){djConfig=a}else{for(var b in a){if(typeof djConfig[b]=="undefined"){djConfig[b]=a[b]}}}return{name_:"(unset)",version_:"(unset)",getName:function(){return this.name_},getVersion:function(){return this.version_},getText:function(c){dojo.unimplemented("getText","uri="+c)}}})();dojo.hostenv.getBaseScriptUri=function(){if(djConfig.baseScriptUri.length){return djConfig.baseScriptUri}var a=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);if(!a){dojo.raise("Nothing returned by getLibraryScriptUri(): "+a)}var b=a.lastIndexOf("/");djConfig.baseScriptUri=djConfig.baseRelativePath;return djConfig.baseScriptUri};(function(){var b={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(d,c){this.modulePrefixes_[d]={name:d,value:c}},moduleHasPrefix:function(c){var d=this.modulePrefixes_;return Boolean(d[c]&&d[c].value)},getModulePrefix:function(c){if(this.moduleHasPrefix(c)){return this.modulePrefixes_[c].value}return c},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};for(var a in b){dojo.hostenv[a]=b[a]}})();dojo.hostenv.loadPath=function(c,b,a){var d;if(c.charAt(0)=="/"||c.match(/^\w+:/)){d=c}else{d=this.getBaseScriptUri()+c}if(djConfig.cacheBust&&dojo.render.html.capable){d+="?"+String(djConfig.cacheBust).replace(/\W+/g,"")}try{return !b?this.loadUri(d,a):this.loadUriAndCheck(d,b,a)}catch(f){dojo.debug(f);return false}};dojo.hostenv.loadUri=function(c,b){if(this.loadedUris[c]){return true}var a=this.getText(c,null,true);if(!a){return false}this.loadedUris[c]=true;if(b){a="("+a+")"}var d=dj_eval(a);if(b){b(d)}return true};dojo.hostenv.loadUriAndCheck=function(c,f,a){var b=true;try{b=this.loadUri(c,a)}catch(d){dojo.debug("failed loading ",c," with error: ",d)}return Boolean(b&&this.findModule(f,false))};dojo.loaded=function(){};dojo.unloaded=function(){};dojo.hostenv.loaded=function(){this.loadNotifying=true;this.post_load_=true;var b=this.modulesLoadedListeners;for(var a=0;a<b.length;a++){b[a]()}this.modulesLoadedListeners=[];this.loadNotifying=false;dojo.loaded()};dojo.hostenv.unloaded=function(){var a=this.unloadListeners;while(a.length){(a.pop())()}dojo.unloaded()};dojo.addOnLoad=function(c,a){var b=dojo.hostenv;if(arguments.length==1){b.modulesLoadedListeners.push(c)}else{if(arguments.length>1){b.modulesLoadedListeners.push(function(){c[a]()})}}if(b.post_load_&&b.inFlightCount==0&&!b.loadNotifying){b.callLoaded()}};dojo.addOnUnload=function(c,a){var b=dojo.hostenv;if(arguments.length==1){b.unloadListeners.push(c)}else{if(arguments.length>1){b.unloadListeners.push(function(){c[a]()})}}};dojo.hostenv.modulesLoaded=function(){if(this.post_load_){return}if(this.loadUriStack.length==0&&this.getTextStack.length==0){if(this.inFlightCount>0){dojo.debug("files still in flight!");return}dojo.hostenv.callLoaded()}};dojo.hostenv.callLoaded=function(){if(typeof setTimeout=="object"||(djConfig.useXDomain&&dojo.render.html.opera)){setTimeout("dojo.hostenv.loaded();",0)}else{dojo.hostenv.loaded()}};dojo.hostenv.getModuleSymbols=function(c){var b=c.split(".");for(var d=b.length;d>0;d--){var a=b.slice(0,d).join(".");if((d==1)&&!this.moduleHasPrefix(a)){b[0]="../"+b[0]}else{var f=this.getModulePrefix(a);if(f!=a){b.splice(0,d,f);break}}}return b};dojo.hostenv._global_omit_module_check=false;dojo.hostenv.loadModule=function(f,d,b){if(!f){return}b=this._global_omit_module_check||b;var k=this.findModule(f,false);if(k){return k}if(dj_undef(f,this.loading_modules_)){this.addedToLoadingCount.push(f)}this.loading_modules_[f]=1;var j=f.replace(/\./g,"/")+".js";var i=f.split(".");var h=this.getModuleSymbols(f);var g=((h[0].charAt(0)!="/")&&!h[0].match(/^\w+:/));var c=h[h.length-1];var l;if(c=="*"){f=i.slice(0,-1).join(".");while(h.length){h.pop();h.push(this.pkgFileName);j=h.join("/")+".js";if(g&&j.charAt(0)=="/"){j=j.slice(1)}l=this.loadPath(j,!b?f:null);if(l){break}h.pop()}}else{j=h.join("/")+".js";f=i.join(".");var a=!b?f:null;l=this.loadPath(j,a);if(!l&&!d){h.pop();while(h.length){j=h.join("/")+".js";l=this.loadPath(j,a);if(l){break}h.pop();j=h.join("/")+"/"+this.pkgFileName+".js";if(g&&j.charAt(0)=="/"){j=j.slice(1)}l=this.loadPath(j,a);if(l){break}}}if(!l&&!b){dojo.raise("Could not load '"+f+"'; last tried '"+j+"'")}}if(!b&&!this["isXDomain"]){k=this.findModule(f,false);if(!k){dojo.raise("symbol '"+f+"' is not defined after loading '"+j+"'")}}return k};dojo.hostenv.startPackage=function(f){var d=String(f);var c=d;var b=f.split(/\./);if(b[b.length-1]=="*"){b.pop();c=b.join(".")}var a=dojo.evalObjPath(c,true);this.loaded_modules_[d]=a;this.loaded_modules_[c]=a;return a};dojo.hostenv.findModule=function(a,c){var b=String(a);if(this.loaded_modules_[b]){return this.loaded_modules_[b]}if(c){dojo.raise("no loaded module named '"+a+"'")}return null};dojo.kwCompoundRequire=function(d){var c=d.common||[];var b=d[dojo.hostenv.name_]?c.concat(d[dojo.hostenv.name_]||[]):c.concat(d["default"]||[]);for(var a=0;a<b.length;a++){var f=b[a];if(f.constructor==Array){dojo.hostenv.loadModule.apply(dojo.hostenv,f)}else{dojo.hostenv.loadModule(f)}}};dojo.require=function(a){dojo.hostenv.loadModule.apply(dojo.hostenv,arguments)};dojo.requireIf=function(f,d){var c=arguments[0];if((c===true)||(c=="common")||(c&&dojo.render[c].capable)){var b=[];for(var a=1;a<arguments.length;a++){b.push(arguments[a])}dojo.require.apply(dojo,b)}};dojo.requireAfterIf=dojo.requireIf;dojo.provide=function(a){return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments)};dojo.registerModulePath=function(b,a){return dojo.hostenv.setModulePrefix(b,a)};if(djConfig.modulePaths){for(var param in djConfig.modulePaths){dojo.registerModulePath(param,djConfig.modulePaths[param])}}dojo.setModulePrefix=function(b,a){dojo.deprecated('dojo.setModulePrefix("'+b+'", "'+a+'")',"replaced by dojo.registerModulePath","0.5");return dojo.registerModulePath(b,a)};dojo.exists=function(d,a){var c=a.split(".");for(var b=0;b<c.length;b++){if(!d[c[b]]){return false}d=d[c[b]]}return true};dojo.hostenv.normalizeLocale=function(a){var b=a?a.toLowerCase():dojo.locale;if(b=="root"){b="ROOT"}return b};dojo.hostenv.searchLocalePath=function(k,f,d){k=dojo.hostenv.normalizeLocale(k);var c=k.split("-");var b=[];for(var h=c.length;h>0;h--){b.push(c.slice(0,h).join("-"))}b.push(false);if(f){b.reverse()}for(var g=b.length-1;g>=0;g--){var l=b[g]||"ROOT";var a=d(l);if(a){break}}};dojo.hostenv.localesGenerated;dojo.hostenv.registerNlsPrefix=function(){dojo.registerModulePath("nls","nls")};dojo.hostenv.preloadLocalizations=function(){if(dojo.hostenv.localesGenerated){dojo.hostenv.registerNlsPrefix();function a(d){d=dojo.hostenv.normalizeLocale(d);dojo.hostenv.searchLocalePath(d,true,function(g){for(var f=0;f<dojo.hostenv.localesGenerated.length;f++){if(dojo.hostenv.localesGenerated[f]==g){dojo.require("nls.dojo_"+g);return true}}return false})}a();var c=djConfig.extraLocale||[];for(var b=0;b<c.length;b++){a(c[b])}}dojo.hostenv.preloadLocalizations=function(){}};dojo.requireLocalization=function(d,c,b,a){dojo.hostenv.preloadLocalizations();var s=dojo.hostenv.normalizeLocale(b);var r=[d,"nls",c].join(".");var p="";if(a){var n=a.split(",");for(var f=0;f<n.length;f++){if(s.indexOf(n[f])==0){if(n[f].length>p.length){p=n[f]}}}if(!p){p="ROOT"}}var k=a?p:s;var h=dojo.hostenv.findModule(r);var g=null;if(h){if(djConfig.localizationComplete&&h._built){return}var q=k.replace("-","_");var o=r+"."+q;g=dojo.hostenv.findModule(o)}if(!g){h=dojo.hostenv.startPackage(r);var m=dojo.hostenv.getModuleSymbols(d);var l=m.concat("nls").join("/");var j;dojo.hostenv.searchLocalePath(k,a,function(x){var w=x.replace("-","_");var v=r+"."+w;var u=false;if(!dojo.hostenv.findModule(v)){dojo.hostenv.startPackage(v);var t=[l];if(x!="ROOT"){t.push(x)}t.push(c);var i=t.join("/")+".js";u=dojo.hostenv.loadPath(i,null,function(A){var z=function(){};z.prototype=j;h[w]=new z();for(var y in A){h[w][y]=A[y]}})}else{u=true}if(u&&h[w]){j=h[w]}else{h[w]=j}if(a){return true}})}if(a&&s!=p){h[s.replace("-","_")]=h[p.replace("-","_")]}};(function(){var b=djConfig.extraLocale;if(b){if(!b instanceof Array){b=[b]}var a=dojo.requireLocalization;dojo.requireLocalization=function(d,c,h,g){a(d,c,h,g);if(h){return}for(var f=0;f<b.length;f++){a(d,c,b[f],g)}}}})()}if(typeof window!="undefined"){(function(){if(djConfig.allowQueryConfig){var _9f=document.location.toString();var _a0=_9f.split("?",2);if(_a0.length>1){var _a1=_a0[1];var _a2=_a1.split("&");for(var x in _a2){var sp=_a2[x].split("=");if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){var opt=sp[0].substr(9);try{djConfig[opt]=eval(sp[1])}catch(e){djConfig[opt]=sp[1]}}}}}if(((djConfig.baseScriptUri=="")||(djConfig.baseRelativePath==""))&&(document&&document.getElementsByTagName)){var _a6=document.getElementsByTagName("script");var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;for(var i=0;i<_a6.length;i++){var src=_a6[i].getAttribute("src");if(!src){continue}var m=src.match(_a7);if(m){var _ab=src.substring(0,m.index);if(src.indexOf("bootstrap1")>-1){_ab+="../"}if(!this["djConfig"]){djConfig={}}if(djConfig.baseScriptUri==""){djConfig.baseScriptUri=_ab}if(djConfig.baseRelativePath==""){djConfig.baseRelativePath=_ab}break}}}var dr=dojo.render;var drh=dojo.render.html;var drs=dojo.render.svg;var dua=(drh.UA=navigator.userAgent);var dav=(drh.AV=navigator.appVersion);var t=true;var f=false;drh.capable=t;drh.support.builtin=t;dr.ver=parseFloat(drh.AV);dr.os.mac=dav.indexOf("Macintosh")>=0;dr.os.win=dav.indexOf("Windows")>=0;dr.os.linux=dav.indexOf("X11")>=0;drh.opera=dua.indexOf("Opera")>=0;drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);drh.safari=dav.indexOf("Safari")>=0;var _b3=dua.indexOf("Gecko");drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);if(drh.mozilla){drh.geckoVersion=dua.substring(_b3+6,_b3+14)}drh.ie=(document.all)&&(!drh.opera);drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;var cm=document.compatMode;drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();dr.vml.capable=drh.ie;drs.capable=f;drs.support.plugin=f;drs.support.builtin=f;var _b5=window.document;var tdi=_b5.implementation;if((tdi)&&(tdi.hasFeature)&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){drs.capable=t;drs.support.builtin=t;drs.support.plugin=f}if(drh.safari){var tmp=dua.split("AppleWebKit/")[1];var ver=parseFloat(tmp.split(" ")[0]);if(ver>=420){drs.capable=t;drs.support.builtin=t;drs.support.plugin=f}}else{}})();dojo.hostenv.startPackage("dojo.hostenv");dojo.render.name=dojo.hostenv.name_="browser";dojo.hostenv.searchIds=[];dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];dojo.hostenv.getXmlhttpObject=function(){var a=null;var d=null;try{a=new XMLHttpRequest()}catch(f){}if(!a){for(var c=0;c<3;++c){var b=dojo.hostenv._XMLHTTP_PROGIDS[c];try{a=new ActiveXObject(b)}catch(f){d=f}if(a){dojo.hostenv._XMLHTTP_PROGIDS=[b];break}}}if(!a){return dojo.raise("XMLHTTP not available",d)}return a};dojo.hostenv._blockAsync=false;dojo.hostenv.getText=function(d,c,a){if(!c){this._blockAsync=true}var b=this.getXmlhttpObject();function g(n){var m=n.status;return Boolean((!m)||((200<=m)&&(300>m))||(m==304))}if(c){var l=this,k=null,i=dojo.global();var j=dojo.evalObjPath("dojo.io.XMLHTTPTransport");b.onreadystatechange=function(){if(k){i.clearTimeout(k);k=null}if(l._blockAsync||(j&&j._blockAsync)){k=i.setTimeout(function(){b.onreadystatechange.apply(this)},10)}else{if(4==b.readyState){if(g(b)){c(b.responseText)}}}}}b.open("GET",d,c?true:false);try{b.send(null);if(c){return null}if(!g(b)){var f=Error("Unable to load "+d+" status:"+b.status);f.status=b.status;f.responseText=b.responseText;throw f}}catch(h){this._blockAsync=false;if((a)&&(!c)){return null}else{throw h}}this._blockAsync=false;return b.responseText};dojo.hostenv.defaultDebugContainerId="dojoDebug";dojo.hostenv._println_buffer=[];dojo.hostenv._println_safe=false;dojo.hostenv.println=function(b){if(!dojo.hostenv._println_safe){dojo.hostenv._println_buffer.push(b)}else{try{var a=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);if(!a){a=dojo.body()}var f=document.createElement("div");f.appendChild(document.createTextNode(b));a.appendChild(f)}catch(d){try{document.write("<div>"+b+"</div>")}catch(c){window.status=b}}}};dojo.addOnLoad(function(){dojo.hostenv._println_safe=true;while(dojo.hostenv._println_buffer.length>0){dojo.hostenv.println(dojo.hostenv._println_buffer.shift())}});function dj_addNodeEvtHdlr(d,c,b){var a=d["on"+c]||function(){};d["on"+c]=function(){b.apply(d,arguments);a.apply(d,arguments)};return true}function dj_load_init(c){var b=(c&&c.type)?c.type.toLowerCase():"load";if(arguments.callee.initialized||(b!="domcontentloaded"&&b!="load")){return}arguments.callee.initialized=true;if(typeof(_timer)!="undefined"){clearInterval(_timer);delete _timer}var a=function(){if(dojo.render.html.ie){dojo.hostenv.makeWidgets()}};if(dojo.hostenv.inFlightCount==0){a();dojo.hostenv.modulesLoaded()}else{dojo.hostenv.modulesLoadedListeners.unshift(a)}}if(document.addEventListener){if(dojo.render.html.opera||(dojo.render.html.moz&&(djConfig.enableMozDomContentLoaded===true))){document.addEventListener("DOMContentLoaded",dj_load_init,null)}window.addEventListener("load",dj_load_init,null)}if(dojo.render.html.ie&&dojo.render.os.win){document.attachEvent("onreadystatechange",function(a){if(document.readyState=="complete"){dj_load_init()}})}if(/(WebKit|khtml)/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dj_load_init()}},10)}if(dojo.render.html.ie){dj_addNodeEvtHdlr(window,"beforeunload",function(){dojo.hostenv._unloading=true;window.setTimeout(function(){dojo.hostenv._unloading=false},0)})}dj_addNodeEvtHdlr(window,"unload",function(){dojo.hostenv.unloaded();if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){dojo.hostenv.unloaded()}});dojo.hostenv.makeWidgets=function(){var f=[];if(djConfig.searchIds&&djConfig.searchIds.length>0){f=f.concat(djConfig.searchIds)}if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){f=f.concat(dojo.hostenv.searchIds)}if((djConfig.parseWidgets)||(f.length>0)){if(dojo.evalObjPath("dojo.widget.Parse")){var d=new dojo.xml.Parse();if(f.length>0){for(var a=0;a<f.length;a++){var c=document.getElementById(f[a]);if(!c){continue}var b=d.parseElement(c,null,true);dojo.widget.getParser().createComponents(b)}}else{if(djConfig.parseWidgets){var b=d.parseElement(dojo.body(),null,true);dojo.widget.getParser().createComponents(b)}}}}};dojo.addOnLoad(function(){if(!dojo.render.html.ie){dojo.hostenv.makeWidgets()}});try{if(dojo.render.html.ie){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)")}}catch(e){}dojo.hostenv.writeIncludes=function(){};if(!dj_undef("document",this)){dj_currentDocument=this.document}dojo.doc=function(){return dj_currentDocument};dojo.body=function(){return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0]};dojo.byId=function(d,c){if((d)&&((typeof d=="string")||(d instanceof String))){if(!c){c=dj_currentDocument}var b=c.getElementById(d);if(b&&(b.id!=d)&&c.all){b=null;eles=c.all[d];if(eles){if(eles.length){for(var a=0;a<eles.length;a++){if(eles[a].id==d){b=eles[a];break}}}else{b=eles}}}return b}return d};dojo.setContext=function(b,a){dj_currentContext=b;dj_currentDocument=a};dojo._fireCallback=function(c,a,b){if((a)&&((typeof c=="string")||(c instanceof String))){c=a[c]}return(a?c.apply(a,b||[]):c())};dojo.withGlobal=function(d,c,b,a){var h;var g=dj_currentContext;var f=dj_currentDocument;try{dojo.setContext(d,d.document);h=dojo._fireCallback(c,b,a)}finally{dojo.setContext(g,f)}return h};dojo.withDoc=function(c,a,g,f){var d;var b=dj_currentDocument;try{dj_currentDocument=c;d=dojo._fireCallback(a,g,f)}finally{dj_currentDocument=b}return d}}dojo.requireIf((djConfig.isDebug||djConfig.debugAtAllCosts),"dojo.debug");dojo.requireIf(djConfig.debugAtAllCosts&&!window.widget&&!djConfig.useXDomain,"dojo.browser_debug");dojo.requireIf(djConfig.debugAtAllCosts&&!window.widget&&djConfig.useXDomain,"dojo.browser_debug_xd");dojo.provide("dojo.dom");dojo.dom.ELEMENT_NODE=1;dojo.dom.ATTRIBUTE_NODE=2;dojo.dom.TEXT_NODE=3;dojo.dom.CDATA_SECTION_NODE=4;dojo.dom.ENTITY_REFERENCE_NODE=5;dojo.dom.ENTITY_NODE=6;dojo.dom.PROCESSING_INSTRUCTION_NODE=7;dojo.dom.COMMENT_NODE=8;dojo.dom.DOCUMENT_NODE=9;dojo.dom.DOCUMENT_TYPE_NODE=10;dojo.dom.DOCUMENT_FRAGMENT_NODE=11;dojo.dom.NOTATION_NODE=12;dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};dojo.dom.isNode=function(a){if(typeof Element=="function"){try{return a instanceof Element}catch(b){}}else{return a&&!isNaN(a.nodeType)}};dojo.dom.getUniqueId=function(){var a=dojo.doc();do{var b="dj_unique_"+(++arguments.callee._idIncrement)}while(a.getElementById(b));return b};dojo.dom.getUniqueId._idIncrement=0;dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(c,b){var a=c.firstChild;while(a&&a.nodeType!=dojo.dom.ELEMENT_NODE){a=a.nextSibling}if(b&&a&&a.tagName&&a.tagName.toLowerCase()!=b.toLowerCase()){a=dojo.dom.nextElement(a,b)}return a};dojo.dom.lastElement=dojo.dom.getLastChildElement=function(c,b){var a=c.lastChild;while(a&&a.nodeType!=dojo.dom.ELEMENT_NODE){a=a.previousSibling}if(b&&a&&a.tagName&&a.tagName.toLowerCase()!=b.toLowerCase()){a=dojo.dom.prevElement(a,b)}return a};dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(b,a){if(!b){return null}do{b=b.nextSibling}while(b&&b.nodeType!=dojo.dom.ELEMENT_NODE);if(b&&a&&a.toLowerCase()!=b.tagName.toLowerCase()){return dojo.dom.nextElement(b,a)}return b};dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(b,a){if(!b){return null}if(a){a=a.toLowerCase()}do{b=b.previousSibling}while(b&&b.nodeType!=dojo.dom.ELEMENT_NODE);if(b&&a&&a.toLowerCase()!=b.tagName.toLowerCase()){return dojo.dom.prevElement(b,a)}return b};dojo.dom.moveChildren=function(a,d,c){var b=0;if(c){while(a.hasChildNodes()&&a.firstChild.nodeType==dojo.dom.TEXT_NODE){a.removeChild(a.firstChild)}while(a.hasChildNodes()&&a.lastChild.nodeType==dojo.dom.TEXT_NODE){a.removeChild(a.lastChild)}}while(a.hasChildNodes()){d.appendChild(a.firstChild);b++}return b};dojo.dom.copyChildren=function(d,c,a){var b=d.cloneNode(true);return this.moveChildren(b,c,a)};dojo.dom.replaceChildren=function(d,b){var a=[];if(dojo.render.html.ie){for(var c=0;c<d.childNodes.length;c++){a.push(d.childNodes[c])}}dojo.dom.removeChildren(d);d.appendChild(b);for(var c=0;c<a.length;c++){dojo.dom.destroyNode(a[c])}};dojo.dom.removeChildren=function(a){var b=a.childNodes.length;while(a.hasChildNodes()){dojo.dom.removeNode(a.firstChild)}return b};dojo.dom.replaceNode=function(b,a){return b.parentNode.replaceChild(a,b)};dojo.dom.destroyNode=function(a){if(a.parentNode){a=dojo.dom.removeNode(a)}if(a.nodeType!=3){if(dojo.evalObjPath("dojo.event.browser.clean",false)){dojo.event.browser.clean(a)}if(dojo.render.html.ie){a.outerHTML=""}}};dojo.dom.removeNode=function(a){if(a&&a.parentNode){return a.parentNode.removeChild(a)}};dojo.dom.getAncestors=function(a,f,c){var d=[];var b=(f&&(f instanceof Function||typeof f=="function"));while(a){if(!b||f(a)){d.push(a)}if(c&&d.length>0){return d[0]}a=a.parentNode}if(c){return null}return d};dojo.dom.getAncestorsByTag=function(c,a,b){a=a.toLowerCase();return dojo.dom.getAncestors(c,function(d){return((d.tagName)&&(d.tagName.toLowerCase()==a))},b)};dojo.dom.getFirstAncestorByTag=function(b,a){return dojo.dom.getAncestorsByTag(b,a,true)};dojo.dom.isDescendantOf=function(b,c,a){if(a&&b){b=b.parentNode}while(b){if(b==c){return true}b=b.parentNode}return false};dojo.dom.innerXML=function(a){if(a.innerXML){return a.innerXML}else{if(a.xml){return a.xml}else{if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(a)}}}};dojo.dom.createDocument=function(){var d=null;var a=dojo.doc();if(!dj_undef("ActiveXObject")){var f=["MSXML2","Microsoft","MSXML","MSXML3"];for(var b=0;b<f.length;b++){try{d=new ActiveXObject(f[b]+".XMLDOM")}catch(c){}if(d){break}}}else{if((a.implementation)&&(a.implementation.createDocument)){d=a.implementation.createDocument("","",null)}}return d};dojo.dom.createDocumentFromText=function(j,h){if(!h){h="text/xml"}if(!dj_undef("DOMParser")){var g=new DOMParser();return g.parseFromString(j,h)}else{if(!dj_undef("ActiveXObject")){var f=dojo.dom.createDocument();if(f){f.async=false;f.loadXML(j);return f}else{dojo.debug("toXml didn't work?")}}else{var d=dojo.doc();if(d.createElement){var c=d.createElement("xml");c.innerHTML=j;if(d.implementation&&d.implementation.createDocument){var b=d.implementation.createDocument("foo","",null);for(var a=0;a<c.childNodes.length;a++){b.importNode(c.childNodes.item(a),true)}return b}return((c.document)&&(c.document.firstChild?c.document.firstChild:c))}}}return null};dojo.dom.prependChild=function(b,a){if(a.firstChild){a.insertBefore(b,a.firstChild)}else{a.appendChild(b)}return true};dojo.dom.insertBefore=function(d,c,b){if((b!=true)&&(d===c||d.nextSibling===c)){return false}var a=c.parentNode;a.insertBefore(d,c);return true};dojo.dom.insertAfter=function(d,c,a){var b=c.parentNode;if(c==b.lastChild){if((a!=true)&&(d===c)){return false}b.appendChild(d)}else{return this.insertBefore(d,c.nextSibling,a)}return true};dojo.dom.insertAtPosition=function(b,a,c){if((!b)||(!a)||(!c)){return false}switch(c.toLowerCase()){case"before":return dojo.dom.insertBefore(b,a);case"after":return dojo.dom.insertAfter(b,a);case"first":if(a.firstChild){return dojo.dom.insertBefore(b,a.firstChild)}else{a.appendChild(b);return true}break;default:a.appendChild(b);return true}};dojo.dom.insertAtIndex=function(d,c,b){var a=c.childNodes;if(!a.length||a.length==b){c.appendChild(d);return true}if(b==0){return dojo.dom.prependChild(d,c)}return dojo.dom.insertAfter(d,a[b-1])};dojo.dom.textContent=function(d,f){if(arguments.length>1){var c=dojo.doc();dojo.dom.replaceChildren(d,c.createTextNode(f));return f}else{if(d.textContent!=undefined){return d.textContent}var b="";if(d==null){return b}for(var a=0;a<d.childNodes.length;a++){switch(d.childNodes[a].nodeType){case 1:case 5:b+=dojo.dom.textContent(d.childNodes[a]);break;case 3:case 2:case 4:b+=d.childNodes[a].nodeValue;break;default:break}}return b}};dojo.dom.hasParent=function(a){return Boolean(a&&a.parentNode&&dojo.dom.isNode(a.parentNode))};dojo.dom.isTag=function(b){if(b&&b.tagName){for(var a=1;a<arguments.length;a++){if(b.tagName==String(arguments[a])){return String(arguments[a])}}}return""};dojo.dom.setAttributeNS=function(c,b,a,g){if(c==null||((c==undefined)&&(typeof c=="undefined"))){dojo.raise("No element given to dojo.dom.setAttributeNS")}if(!((c.setAttributeNS==undefined)&&(typeof c.setAttributeNS=="undefined"))){c.setAttributeNS(b,a,g)}else{var f=c.ownerDocument;var d=f.createNode(2,a,b);d.nodeValue=g;c.setAttributeNode(d)}};dojo.provide("dojo.xml.Parse");dojo.xml.Parse=function(){var c=((dojo.render.html.capable)&&(dojo.render.html.ie));function b(d){try{return d.tagName.toLowerCase()}catch(f){return""}}function a(f){var i=b(f);if(!i){return""}if((dojo.widget)&&(dojo.widget.tags[i])){return i}var d=i.indexOf(":");if(d>=0){return i}if(i.substr(0,5)=="dojo:"){return i}if(dojo.render.html.capable&&dojo.render.html.ie&&f.scopeName!="HTML"){return f.scopeName.toLowerCase()+":"+i}if(i.substr(0,4)=="dojo"){return"dojo:"+i.substring(4)}var m=f.getAttribute("dojoType")||f.getAttribute("dojotype");if(m){if(m.indexOf(":")<0){m="dojo:"+m}return m.toLowerCase()}m=f.getAttributeNS&&f.getAttributeNS(dojo.dom.dojoml,"type");if(m){return"dojo:"+m.toLowerCase()}try{m=f.getAttribute("dojo:type")}catch(j){}if(m){return"dojo:"+m.toLowerCase()}if((dj_global.djConfig)&&(!djConfig.ignoreClassNames)){var h=f.className||f.getAttribute("class");if((h)&&(h.indexOf)&&(h.indexOf("dojo-")!=-1)){var g=h.split(" ");for(var l=0,k=g.length;l<k;l++){if(g[l].slice(0,5)=="dojo-"){return"dojo:"+g[l].substr(5).toLowerCase()}}}}return""}this.parseElement=function(l,m,k,j){var h=b(l);if(c&&h.indexOf("/")==0){return null}try{var q=l.getAttribute("parseWidgets");if(q&&q.toLowerCase()=="false"){return{}}}catch(p){}var d=true;if(k){var v=a(l);h=v||h;d=Boolean(v)}var t={};t[h]=[];var s=h.indexOf(":");if(s>0){var r=h.substring(0,s);t.ns=r;if((dojo.ns)&&(!dojo.ns.allow(r))){d=false}}if(d){var g=this.parseAttributes(l);for(var q in g){if((!t[h][q])||(typeof t[h][q]!="array")){t[h][q]=[]}t[h][q].push(g[q])}t[h].nodeRef=l;t.tagName=h;t.index=j||0}var f=0;for(var o=0;o<l.childNodes.length;o++){var u=l.childNodes.item(o);switch(u.nodeType){case dojo.dom.ELEMENT_NODE:var n=a(u)||b(u);if(!t[n]){t[n]=[]}t[n].push(this.parseElement(u,true,k,f));if((u.childNodes.length==1)&&(u.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){t[n][t[n].length-1].value=u.childNodes.item(0).nodeValue}f++;break;case dojo.dom.TEXT_NODE:if(l.childNodes.length==1){t[h].push({value:l.childNodes.item(0).nodeValue})}break;default:break}}return t};this.parseAttributes=function(h){var g={};var k=h.attributes;var d,f=0;while((d=k[f++])){if(c){if(!d){continue}if((typeof d=="object")&&(typeof d.nodeValue=="undefined")||(d.nodeValue==null)||(d.nodeValue=="")){continue}}var j=d.nodeName.split(":");j=(j.length==2)?j[1]:d.nodeName;g[j]={value:d.nodeValue}}return g}};dojo.provide("dojo.lang.common");dojo.lang.inherits=function(a,b){if(!dojo.lang.isFunction(b)){dojo.raise("dojo.inherits: superclass argument ["+b+"] must be a function (subclass: ["+a+"']")}a.prototype=new b();a.prototype.constructor=a;a.superclass=b.prototype;a["super"]=b.prototype};dojo.lang._mixin=function(d,c){var b={};for(var a in c){if((typeof b[a]=="undefined")||(b[a]!=c[a])){d[a]=c[a]}}if(dojo.render.html.ie&&(typeof(c.toString)=="function")&&(c.toString!=d.toString)&&(c.toString!=b.toString)){d.toString=c.toString}return d};dojo.lang.mixin=function(c,d){for(var b=1,a=arguments.length;b<a;b++){dojo.lang._mixin(c,arguments[b])}return c};dojo.lang.extend=function(d,c){for(var b=1,a=arguments.length;b<a;b++){dojo.lang._mixin(d.prototype,arguments[b])}return d};dojo.inherits=dojo.lang.inherits;dojo.mixin=dojo.lang.mixin;dojo.extend=dojo.lang.extend;dojo.lang.find=function(g,f,d,b){if(!dojo.lang.isArrayLike(g)&&dojo.lang.isArrayLike(f)){dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");var k=g;g=f;f=k}var j=dojo.lang.isString(g);if(j){g=g.split("")}if(b){var a=-1;var h=g.length-1;var c=-1}else{var a=1;var h=0;var c=g.length}if(d){while(h!=c){if(g[h]===f){return h}h+=a}}else{while(h!=c){if(g[h]==f){return h}h+=a}}return -1};dojo.lang.indexOf=dojo.lang.find;dojo.lang.findLast=function(b,c,a){return dojo.lang.find(b,c,a,true)};dojo.lang.lastIndexOf=dojo.lang.findLast;dojo.lang.inArray=function(b,a){return dojo.lang.find(b,a)>-1};dojo.lang.isObject=function(a){if(typeof a=="undefined"){return false}return(typeof a=="object"||a===null||dojo.lang.isArray(a)||dojo.lang.isFunction(a))};dojo.lang.isArray=function(a){return(a&&a instanceof Array||typeof a=="array")};dojo.lang.isArrayLike=function(a){if((!a)||(dojo.lang.isUndefined(a))){return false}if(dojo.lang.isString(a)){return false}if(dojo.lang.isFunction(a)){return false}if(dojo.lang.isArray(a)){return true}if((a.tagName)&&(a.tagName.toLowerCase()=="form")){return false}if(dojo.lang.isNumber(a.length)&&isFinite(a.length)){return true}return false};dojo.lang.isFunction=function(a){return(a instanceof Function||typeof a=="function")};(function(){if((dojo.render.html.capable)&&(dojo.render.html.safari)){dojo.lang.isFunction=function(a){if((typeof(a)=="function")&&(a=="[object NodeList]")){return false}return(a instanceof Function||typeof a=="function")}}})();dojo.lang.isString=function(a){return(typeof a=="string"||a instanceof String)};dojo.lang.isAlien=function(a){if(!a){return false}return !dojo.lang.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))};dojo.lang.isBoolean=function(a){return(a instanceof Boolean||typeof a=="boolean")};dojo.lang.isNumber=function(a){return(a instanceof Number||typeof a=="number")};dojo.lang.isUndefined=function(a){return((typeof(a)=="undefined")&&(a==undefined))};dojo.provide("dojo.lang.func");dojo.lang.hitch=function(b,a){var c=(dojo.lang.isString(a)?b[a]:a)||function(){};return function(){return c.apply(b,arguments)}};dojo.lang.anonCtr=0;dojo.lang.anon={};dojo.lang.nameAnonFunc=function(d,c,b){var h=(c||dojo.lang.anon);if((b)||((dj_global.djConfig)&&(djConfig.slowAnonFuncLookups==true))){for(var a in h){try{if(h[a]===d){return a}}catch(g){}}}var f="__"+dojo.lang.anonCtr++;while(typeof h[f]!="undefined"){f="__"+dojo.lang.anonCtr++}h[f]=d;return f};dojo.lang.forward=function(a){return function(){return this[a].apply(this,arguments)}};dojo.lang.curry=function(f,d){var c=[];f=f||dj_global;if(dojo.lang.isString(d)){d=f[d]}for(var a=2;a<arguments.length;a++){c.push(arguments[a])}var g=(d.__preJoinArity||d.length)-c.length;function b(n,m,k){var i=k;var l=m.slice(0);for(var h=0;h<n.length;h++){l.push(n[h])}k=k-n.length;if(k<=0){var j=d.apply(f,l);k=i;return j}else{return function(){return b(arguments,l,k)}}}return b([],c,g)};dojo.lang.curryArguments=function(b,d,c,g){var f=[];var a=g||0;for(a=g;a<c.length;a++){f.push(c[a])}return dojo.lang.curry.apply(dojo.lang,[b,d].concat(f))};dojo.lang.tryThese=function(){for(var a=0;a<arguments.length;a++){try{if(typeof arguments[a]=="function"){var b=(arguments[a]());if(b){return b}}}catch(c){dojo.debug(c)}}};dojo.lang.delayThese=function(b,a,d,c){if(!b.length){if(typeof c=="function"){c()}return}if((typeof d=="undefined")&&(typeof a=="number")){d=a;a=function(){}}else{if(!a){a=function(){};if(!d){d=0}}}setTimeout(function(){(b.shift())();a();dojo.lang.delayThese(b,a,d,c)},d)};dojo.provide("dojo.lang.array");dojo.lang.mixin(dojo.lang,{has:function(c,a){try{return typeof c[a]!="undefined"}catch(b){return false}},isEmpty:function(d){if(dojo.lang.isObject(d)){var c={};var b=0;for(var a in d){if(d[a]&&(!c[a])){b++;break}}return b==0}else{if(dojo.lang.isArrayLike(d)||dojo.lang.isString(d)){return d.length==0}}},map:function(b,f,a){var h=dojo.lang.isString(b);if(h){b=b.split("")}if(dojo.lang.isFunction(f)&&(!a)){a=f;f=dj_global}else{if(dojo.lang.isFunction(f)&&a){var g=f;f=a;a=g}}if(Array.map){var c=Array.map(b,a,f)}else{var c=[];for(var d=0;d<b.length;++d){c.push(a.call(f,b[d]))}}if(h){return c.join("")}else{return c}},reduce:function(a,h,f,d){var g=h;if(arguments.length==2){d=h;g=a[0];a=a.slice(1)}else{if(arguments.length==3){if(dojo.lang.isFunction(f)){d=f;f=null}}else{if(dojo.lang.isFunction(f)){var c=d;d=f;f=c}}}var b=f||dj_global;dojo.lang.map(a,function(i){g=d.call(b,g,i)});return g},forEach:function(f,d,b){if(dojo.lang.isString(f)){f=f.split("")}if(Array.forEach){Array.forEach(f,d,b)}else{if(!b){b=dj_global}for(var c=0,a=f.length;c<a;c++){d.call(b,f[c],c,f)}}},_everyOrSome:function(b,a,f,d){if(dojo.lang.isString(a)){a=a.split("")}if(Array.every){return Array[b?"every":"some"](a,f,d)}else{if(!d){d=dj_global}for(var g=0,c=a.length;g<c;g++){var h=f.call(d,a[g],g,a);if(b&&!h){return false}else{if((!b)&&(h)){return true}}}return Boolean(b)}},every:function(a,c,b){return this._everyOrSome(true,a,c,b)},some:function(a,c,b){return this._everyOrSome(false,a,c,b)},filter:function(a,f,c){var b=dojo.lang.isString(a);if(b){a=a.split("")}var g;if(Array.filter){g=Array.filter(a,f,c)}else{if(!c){if(arguments.length>=3){dojo.raise("thisObject doesn't exist!")}c=dj_global}g=[];for(var d=0;d<a.length;d++){if(f.call(c,a[d],d,a)){g.push(a[d])}}}if(b){return g.join("")}else{return g}},unnest:function(){var a=[];for(var b=0;b<arguments.length;b++){if(dojo.lang.isArrayLike(arguments[b])){var c=dojo.lang.unnest.apply(this,arguments[b]);a=a.concat(c)}else{a.push(arguments[b])}}return a},toArray:function(b,c){var a=[];for(var d=c||0;d<b.length;d++){a.push(b[d])}return a}});dojo.provide("dojo.lang.extras");dojo.lang.setTimeout=function(c,g){var f=window,d=2;if(!dojo.lang.isFunction(c)){f=c;c=g;g=arguments[2];d++}if(dojo.lang.isString(c)){c=f[c]}var a=[];for(var b=d;b<arguments.length;b++){a.push(arguments[b])}return dojo.global().setTimeout(function(){c.apply(f,a)},g)};dojo.lang.clearTimeout=function(a){dojo.global().clearTimeout(a)};dojo.lang.getNameInObj=function(b,c){if(!b){b=dj_global}for(var a in b){if(b[a]===c){return new String(a)}}return null};dojo.lang.shallowCopy=function(d,a){var c,b;if(d===null){return null}if(dojo.lang.isObject(d)){b=new d.constructor();for(c in d){if(dojo.lang.isUndefined(b[c])){b[c]=a?dojo.lang.shallowCopy(d[c],a):d[c]}}}else{if(dojo.lang.isArray(d)){b=[];for(c=0;c<d.length;c++){b[c]=a?dojo.lang.shallowCopy(d[c],a):d[c]}}else{b=d}}return b};dojo.lang.firstValued=function(){for(var a=0;a<arguments.length;a++){if(typeof arguments[a]!="undefined"){return arguments[a]}}return undefined};dojo.lang.getObjPathValue=function(_1f2,_1f3,_1f4){with(dojo.parseObjPath(_1f2,_1f3,_1f4)){return dojo.evalProp(prop,obj,_1f4)}};dojo.lang.setObjPathValue=function(_1f5,_1f6,_1f7,_1f8){dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");if(arguments.length<4){_1f8=true}with(dojo.parseObjPath(_1f5,_1f7,_1f8)){if(obj&&(_1f8||(prop in obj))){obj[prop]=_1f6}}};dojo.provide("dojo.lang.declare");dojo.lang.declare=function(j,c,m,a){if((dojo.lang.isFunction(a))||((!a)&&(!dojo.lang.isFunction(m)))){var k=a;a=m;m=k}var n=[];if(dojo.lang.isArray(c)){n=c;c=n.shift()}if(!m){m=dojo.evalObjPath(j,false);if((m)&&(!dojo.lang.isFunction(m))){m=null}}var h=dojo.lang.declare._makeConstructor();var g=(c?c.prototype:null);if(g){g.prototyping=true;h.prototype=new c();g.prototyping=false}h.superclass=g;h.mixins=n;for(var f=0,d=n.length;f<d;f++){dojo.lang.extend(h,n[f].prototype)}h.prototype.initializer=null;h.prototype.declaredClass=j;if(dojo.lang.isArray(a)){dojo.lang.extend.apply(dojo.lang,[h].concat(a))}else{dojo.lang.extend(h,(a)||{})}dojo.lang.extend(h,dojo.lang.declare._common);h.prototype.constructor=h;h.prototype.initializer=(h.prototype.initializer)||(m)||(function(){});var b=dojo.parseObjPath(j,null,true);b.obj[b.prop]=h;return h};dojo.lang.declare._makeConstructor=function(){return function(){var b=this._getPropContext();var f=b.constructor.superclass;if((f)&&(f.constructor)){if(f.constructor==arguments.callee){this._inherited("constructor",arguments)}else{this._contextMethod(f,"constructor",arguments)}}var c=(b.constructor.mixins)||([]);for(var d=0,a;(a=c[d]);d++){(((a.prototype)&&(a.prototype.initializer))||(a)).apply(this,arguments)}if((!this.prototyping)&&(b.initializer)){b.initializer.apply(this,arguments)}}};dojo.lang.declare._common={_getPropContext:function(){return(this.___proto||this)},_contextMethod:function(b,g,a){var d,c=this.___proto;this.___proto=b;try{d=b[g].apply(this,(a||[]))}catch(f){throw f}finally{this.___proto=c}return d},_inherited:function(c,a){var b=this._getPropContext();do{if((!b.constructor)||(!b.constructor.superclass)){return}b=b.constructor.superclass}while(!(c in b));return(dojo.lang.isFunction(b[c])?this._contextMethod(b,c,a):b[c])},inherited:function(b,a){dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");this._inherited(b,a)}};dojo.declare=dojo.lang.declare;dojo.provide("dojo.ns");dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(b,a,d,c){if(!c||!this.namespaces[b]){this.namespaces[b]=new dojo.ns.Ns(b,a,d)}},allow:function(a){if(this.failed[a]){return false}if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,a))){return false}return((a==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,a)))},get:function(a){return this.namespaces[a]},require:function(a){var b=this.namespaces[a];if((b)&&(this.loaded[a])){return b}if(!this.allow(a)){return false}if(this.loading[a]){dojo.debug('dojo.namespace.require: re-entrant request to load namespace "'+a+'" must fail.');return false}var c=dojo.require;this.loading[a]=true;try{if(a=="dojo"){c("dojo.namespaces.dojo")}else{if(!dojo.hostenv.moduleHasPrefix(a)){dojo.registerModulePath(a,"../"+a)}c([a,"manifest"].join("."),false,true)}if(!this.namespaces[a]){this.failed[a]=true}}finally{this.loading[a]=false}return this.namespaces[a]}};dojo.ns.Ns=function(a,c,b){this.name=a;this.module=c;this.resolver=b;this._loaded=[];this._failed=[]};dojo.ns.Ns.prototype.resolve=function(a,f,c){if(!this.resolver||djConfig.skipAutoRequire){return false}var b=this.resolver(a,f);if((b)&&(!this._loaded[b])&&(!this._failed[b])){var d=dojo.require;d(b,false,true);if(dojo.hostenv.findModule(b,false)){this._loaded[b]=true}else{if(!c){dojo.raise("dojo.ns.Ns.resolve: module '"+b+"' not found after loading via namespace '"+this.name+"'")}this._failed[b]=true}}return Boolean(this._loaded[b])};dojo.registerNamespace=function(c,b,a){dojo.ns.register.apply(dojo.ns,arguments)};dojo.registerNamespaceResolver=function(a,b){var c=dojo.ns.namespaces[a];if(c){c.resolver=b}};dojo.registerNamespaceManifest=function(a,d,b,f,c){dojo.registerModulePath(b,d);dojo.registerNamespace(b,f,c)};dojo.registerNamespace("dojo","dojo.widget");dojo.provide("dojo.event.common");dojo.event=new function(){this._canTimeout=dojo.lang.isFunction(dj_global.setTimeout)||dojo.lang.isAlien(dj_global.setTimeout);function a(c,g){var b=dojo.lang;var f={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(c.length>2)?c[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false,maxCalls:-1};switch(c.length){case 0:return;case 1:return;case 2:f.srcFunc=c[0];f.adviceFunc=c[1];break;case 3:if((b.isObject(c[0]))&&(b.isString(c[1]))&&(b.isString(c[2]))){f.adviceType="after";f.srcObj=c[0];f.srcFunc=c[1];f.adviceFunc=c[2]}else{if((b.isString(c[1]))&&(b.isString(c[2]))){f.srcFunc=c[1];f.adviceFunc=c[2]}else{if((b.isObject(c[0]))&&(b.isString(c[1]))&&(b.isFunction(c[2]))){f.adviceType="after";f.srcObj=c[0];f.srcFunc=c[1];var d=b.nameAnonFunc(c[2],f.adviceObj,g);f.adviceFunc=d}else{if((b.isFunction(c[0]))&&(b.isObject(c[1]))&&(b.isString(c[2]))){f.adviceType="after";f.srcObj=dj_global;var d=b.nameAnonFunc(c[0],f.srcObj,g);f.srcFunc=d;f.adviceObj=c[1];f.adviceFunc=c[2]}}}}break;case 4:if((b.isObject(c[0]))&&(b.isObject(c[2]))){f.adviceType="after";f.srcObj=c[0];f.srcFunc=c[1];f.adviceObj=c[2];f.adviceFunc=c[3]}else{if((b.isString(c[0]))&&(b.isString(c[1]))&&(b.isObject(c[2]))){f.adviceType=c[0];f.srcObj=dj_global;f.srcFunc=c[1];f.adviceObj=c[2];f.adviceFunc=c[3]}else{if((b.isString(c[0]))&&(b.isFunction(c[1]))&&(b.isObject(c[2]))){f.adviceType=c[0];f.srcObj=dj_global;var d=b.nameAnonFunc(c[1],dj_global,g);f.srcFunc=d;f.adviceObj=c[2];f.adviceFunc=c[3]}else{if((b.isString(c[0]))&&(b.isObject(c[1]))&&(b.isString(c[2]))&&(b.isFunction(c[3]))){f.srcObj=c[1];f.srcFunc=c[2];var d=b.nameAnonFunc(c[3],dj_global,g);f.adviceObj=dj_global;f.adviceFunc=d}else{if(b.isObject(c[1])){f.srcObj=c[1];f.srcFunc=c[2];f.adviceObj=dj_global;f.adviceFunc=c[3]}else{if(b.isObject(c[2])){f.srcObj=dj_global;f.srcFunc=c[1];f.adviceObj=c[2];f.adviceFunc=c[3]}else{f.srcObj=f.adviceObj=f.aroundObj=dj_global;f.srcFunc=c[1];f.adviceFunc=c[2];f.aroundFunc=c[3]}}}}}}break;case 6:f.srcObj=c[1];f.srcFunc=c[2];f.adviceObj=c[3];f.adviceFunc=c[4];f.aroundFunc=c[5];f.aroundObj=dj_global;break;default:f.srcObj=c[1];f.srcFunc=c[2];f.adviceObj=c[3];f.adviceFunc=c[4];f.aroundObj=c[5];f.aroundFunc=c[6];f.once=c[7];f.delay=c[8];f.rate=c[9];f.adviceMsg=c[10];f.maxCalls=(!isNaN(parseInt(c[11])))?c[11]:-1;break}if(b.isFunction(f.aroundFunc)){var d=b.nameAnonFunc(f.aroundFunc,f.aroundObj,g);f.aroundFunc=d}if(b.isFunction(f.srcFunc)){f.srcFunc=b.getNameInObj(f.srcObj,f.srcFunc)}if(b.isFunction(f.adviceFunc)){f.adviceFunc=b.getNameInObj(f.adviceObj,f.adviceFunc)}if((f.aroundObj)&&(b.isFunction(f.aroundFunc))){f.aroundFunc=b.getNameInObj(f.aroundObj,f.aroundFunc)}if(!f.srcObj){dojo.raise("bad srcObj for srcFunc: "+f.srcFunc)}if(!f.adviceObj){dojo.raise("bad adviceObj for adviceFunc: "+f.adviceFunc)}if(!f.adviceFunc){dojo.debug("bad adviceFunc for srcFunc: "+f.srcFunc);dojo.debugShallow(f)}return f}this.connect=function(){if(arguments.length==1){var g=arguments[0]}else{var g=a(arguments,true)}if(dojo.lang.isArray(g.srcObj)&&g.srcObj!=""){var c={};for(var b in g){c[b]=g[b]}var h=[];dojo.lang.forEach(g.srcObj,function(i){if((dojo.render.html.capable)&&(dojo.lang.isString(i))){i=dojo.byId(i)}c.srcObj=i;h.push(dojo.event.connect.call(dojo.event,c))});return h}var d=dojo.event.MethodJoinPoint.getForMethod(g.srcObj,g.srcFunc);if(g.adviceFunc){var f=dojo.event.MethodJoinPoint.getForMethod(g.adviceObj,g.adviceFunc)}d.kwAddAdvice(g);return d};this.log=function(d,c){var b;if((arguments.length==1)&&(typeof d=="object")){b=d}else{b={srcObj:d,srcFunc:c}}b.adviceFunc=function(){var g=[];for(var f=0;f<arguments.length;f++){g.push(arguments[f])}dojo.debug("("+b.srcObj+")."+b.srcFunc,":",g.join(", "))};this.kwConnect(b)};this.connectBefore=function(){var b=["before"];for(var c=0;c<arguments.length;c++){b.push(arguments[c])}return this.connect.apply(this,b)};this.connectAround=function(){var b=["around"];for(var c=0;c<arguments.length;c++){b.push(arguments[c])}return this.connect.apply(this,b)};this.connectOnce=function(){var b=a(arguments,true);b.once=true;return this.connect(b)};this.connectRunOnce=function(){var b=a(arguments,true);b.maxCalls=1;return this.connect(b)};this._kwConnectImpl=function(d,c){var f=(c)?"disconnect":"connect";if(typeof d.srcFunc=="function"){d.srcObj=d.srcObj||dj_global;var b=dojo.lang.nameAnonFunc(d.srcFunc,d.srcObj,true);d.srcFunc=b}if(typeof d.adviceFunc=="function"){d.adviceObj=d.adviceObj||dj_global;var b=dojo.lang.nameAnonFunc(d.adviceFunc,d.adviceObj,true);d.adviceFunc=b}d.srcObj=d.srcObj||dj_global;d.adviceObj=d.adviceObj||d.targetObj||dj_global;d.adviceFunc=d.adviceFunc||d.targetFunc;return dojo.event[f](d)};this.kwConnect=function(b){return this._kwConnectImpl(b,false)};this.disconnect=function(){if(arguments.length==1){var c=arguments[0]}else{var c=a(arguments,true)}if(!c.adviceFunc){return}if(dojo.lang.isString(c.srcFunc)&&(c.srcFunc.toLowerCase()=="onkey")){if(dojo.render.html.ie){c.srcFunc="onkeydown";this.disconnect(c)}c.srcFunc="onkeypress"}if(!c.srcObj[c.srcFunc]){return null}var b=dojo.event.MethodJoinPoint.getForMethod(c.srcObj,c.srcFunc,true);b.removeAdvice(c.adviceObj,c.adviceFunc,c.adviceType,c.once);return b};this.kwDisconnect=function(b){return this._kwConnectImpl(b,true)}};dojo.event.MethodInvocation=function(b,d,c){this.jp_=b;this.object=d;this.args=[];for(var a=0;a<c.length;a++){this.args[a]=c[a]}this.around_index=-1};dojo.event.MethodInvocation.prototype.proceed=function(){this.around_index++;if(this.around_index>=this.jp_.around.length){return this.jp_.object[this.jp_.methodname].apply(this.jp_.object,this.args)}else{var c=this.jp_.around[this.around_index];var a=c[0]||dj_global;var b=c[1];return a[b].call(a,this)}};dojo.event.MethodJoinPoint=function(b,a){this.object=b||dj_global;this.methodname=a;this.methodfunc=this.object[a];this.squelch=false};dojo.event.MethodJoinPoint.getForMethod=function(i,d){if(!i){i=dj_global}var a=i[d];if(!a){a=i[d]=function(){};if(!i[d]){dojo.raise("Cannot set do-nothing method on that object "+d)}}else{if((typeof a!="function")&&(!dojo.lang.isFunction(a))&&(!dojo.lang.isAlien(a))){return null}}var h=d+"$joinpoint";var g=d+"$joinpoint$method";var f=i[h];if(!f){var c=false;if(dojo.event.browser){if((i.attachEvent)||(i.nodeType)||(i.addEventListener)){c=true;dojo.event.browser.addClobberNodeAttrs(i,[h,g,d])}}var b=a.length;i[g]=a;f=i[h]=new dojo.event.MethodJoinPoint(i,g);if(!c){i[d]=function(){return f.run.apply(f,arguments)}}else{i[d]=function(){var l=[];if(!arguments.length){var k=null;try{if(i.ownerDocument){k=i.ownerDocument.parentWindow.event}else{if(i.documentElement){k=i.documentElement.ownerDocument.parentWindow.event}else{if(i.event){k=i.event}else{k=window.event}}}}catch(m){k=window.event}if(k){l.push(dojo.event.browser.fixEvent(k,this))}}else{for(var j=0;j<arguments.length;j++){if((j==0)&&(dojo.event.browser.isEvent(arguments[j]))){l.push(dojo.event.browser.fixEvent(arguments[j],this))}else{l.push(arguments[j])}}}return f.run.apply(f,l)}}i[d].__preJoinArity=b}return f};dojo.lang.extend(dojo.event.MethodJoinPoint,{squelch:false,unintercept:function(){this.object[this.methodname]=this.methodfunc;this.before=[];this.after=[];this.around=[]},disconnect:dojo.lang.forward("unintercept"),run:function(){var b=this.object||dj_global;var h=arguments;var a=[];for(var i=0;i<h.length;i++){a[i]=h[i]}var j=function(l){if(!l){dojo.debug("Null argument to unrollAdvice()");return}var x=l[0]||dj_global;var t=l[1];if(!x[t]){dojo.raise('function "'+t+'" does not exist on "'+x+'"')}var m=l[2]||dj_global;var k=l[3];var n=l[6];var z=l[7];if(z>-1){if(z==0){return}l[7]--}var y;var s={args:[],jp_:this,object:b,proceed:function(){return x[t].apply(x,s.args)}};s.args=a;var w=parseInt(l[4]);var r=((!isNaN(w))&&(l[4]!==null)&&(typeof l[4]!="undefined"));if(l[5]){var p=parseInt(l[5]);var v=new Date();var q=false;if((l.last)&&((v-l.last)<=p)){if(dojo.event._canTimeout){if(l.delayTimer){clearTimeout(l.delayTimer)}var o=parseInt(p*2);var u=dojo.lang.shallowCopy(l);l.delayTimer=setTimeout(function(){u[5]=0;j(u)},o)}return}else{l.last=v}}if(k){m[k].call(m,s)}else{if((r)&&((dojo.render.html)||(dojo.render.svg))){dj_global.setTimeout(function(){if(n){x[t].call(x,s)}else{x[t].apply(x,h)}},w)}else{if(n){x[t].call(x,s)}else{x[t].apply(x,h)}}}};var f=function(){if(this.squelch){try{return j.apply(this,arguments)}catch(k){dojo.debug(k)}}else{return j.apply(this,arguments)}};if((this["before"])&&(this.before.length>0)){dojo.lang.forEach(this.before.concat(new Array()),f)}var c;try{if((this["around"])&&(this.around.length>0)){var d=new dojo.event.MethodInvocation(this,b,h);c=d.proceed()}else{if(this.methodfunc){c=this.object[this.methodname].apply(this.object,h)}}}catch(g){if(!this.squelch){dojo.debug(g,"when calling",this.methodname,"on",this.object,"with arguments",h);dojo.raise(g)}}if((this["after"])&&(this.after.length>0)){dojo.lang.forEach(this.after.concat(new Array()),f)}return(this.methodfunc)?c:null},getArr:function(b){var a="after";if((typeof b=="string")&&(b.indexOf("before")!=-1)){a="before"}else{if(b=="around"){a="around"}}if(!this[a]){this[a]=[]}return this[a]},kwAddAdvice:function(a){this.addAdvice(a.adviceObj,a.adviceFunc,a.aroundObj,a.aroundFunc,a.adviceType,a.precedence,a.once,a.delay,a.rate,a.adviceMsg,a.maxCalls)},addAdvice:function(n,l,k,j,i,g,a,d,m,c,b){var h=this.getArr(i);if(!h){dojo.raise("bad this: "+this)}var f=[n,l,k,j,d,m,c,b];if(a){if(this.hasAdvice(n,l,i,h)>=0){return}}if(g=="first"){h.unshift(f)}else{h.push(f)}},hasAdvice:function(g,d,c,b){if(!b){b=this.getArr(c)}var i=-1;for(var a=0;a<b.length;a++){var f=(typeof d=="object")?(new String(d)).toString():d;var h=(typeof b[a][1]=="object")?(new String(b[a][1])).toString():b[a][1];if((b[a][0]==g)&&(h==f)){i=a}}return i},removeAdvice:function(g,d,c,b){var a=this.getArr(c);var f=this.hasAdvice(g,d,c,a);if(f==-1){return false}while(f!=-1){a.splice(f,1);if(b){break}f=this.hasAdvice(g,d,c,a)}return true}});dojo.provide("dojo.event.topic");dojo.event.topic=new function(){this.topics={};this.getTopic=function(a){if(!this.topics[a]){this.topics[a]=new this.TopicImpl(a)}return this.topics[a]};this.registerPublisher=function(a,c,b){var a=this.getTopic(a);a.registerPublisher(c,b)};this.subscribe=function(b,c,a){var b=this.getTopic(b);b.subscribe(c,a)};this.unsubscribe=function(c,b,a){var c=this.getTopic(c);c.unsubscribe(b,a)};this.destroy=function(a){this.getTopic(a).destroy();delete this.topics[a]};this.publishApply=function(b,a){var b=this.getTopic(b);b.sendMessage.apply(b,a)};this.publish=function(d,c){var d=this.getTopic(d);var b=[];for(var a=1;a<arguments.length;a++){b.push(arguments[a])}d.sendMessage.apply(d,b)}};dojo.event.topic.TopicImpl=function(a){this.topicName=a;this.subscribe=function(c,b){var d=b||c;var f=(!b)?dj_global:c;return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:f,adviceFunc:d})};this.unsubscribe=function(c,b){var d=(!b)?c:b;var f=(!b)?null:c;return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:f,adviceFunc:d})};this._getJoinPoint=function(){return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage")};this.setSquelch=function(b){this._getJoinPoint().squelch=b};this.destroy=function(){this._getJoinPoint().disconnect()};this.registerPublisher=function(b,c){dojo.event.connect(b,c,this,"sendMessage")};this.sendMessage=function(b){}};dojo.provide("dojo.event.browser");dojo._ie_clobber=new function(){this.clobberNodes=[];function a(b,d){try{b[d]=null}catch(c){}try{delete b[d]}catch(c){}try{b.removeAttribute(d)}catch(c){}}this.clobber=function(g){var f;var l;if(g){l=g.all||g.getElementsByTagName("*");f=[g];for(var m=0;m<l.length;m++){if(l[m]["__doClobber__"]){f.push(l[m])}}}else{try{window.onload=null}catch(h){}f=(this.clobberNodes.length)?this.clobberNodes:document.all}l=null;var k={};for(var d=f.length-1;d>=0;d=d-1){var b=f[d];try{if(b&&b.__clobberAttrs__){for(var c=0;c<b.__clobberAttrs__.length;c++){a(b,b.__clobberAttrs__[c])}a(b,"__clobberAttrs__");a(b,"__doClobber__")}}catch(h){}}f=null}};if(dojo.render.html.ie){dojo.addOnUnload(function(){dojo._ie_clobber.clobber();try{if((dojo.widget)&&(dojo.widget.manager)){dojo.widget.manager.destroyAll()}}catch(b){}if(dojo.widget){for(var a in dojo.widget._templateCache){if(dojo.widget._templateCache[a].node){dojo.dom.destroyNode(dojo.widget._templateCache[a].node);dojo.widget._templateCache[a].node=null;delete dojo.widget._templateCache[a].node}}}try{window.onload=null}catch(b){}try{window.onunload=null}catch(b){}dojo._ie_clobber.clobberNodes=[]})}dojo.event.browser=new function(){var b=0;this.normalizedEventName=function(c){switch(c){case"CheckboxStateChange":case"DOMAttrModified":case"DOMMenuItemActive":case"DOMMenuItemInactive":case"DOMMouseScroll":case"DOMNodeInserted":case"DOMNodeRemoved":case"RadioStateChange":return c;break;default:var d=c.toLowerCase();return(d.indexOf("on")==0)?d.substr(2):d;break}};this.clean=function(c){if(dojo.render.html.ie){dojo._ie_clobber.clobber(c)}};this.addClobberNode=function(c){if(!dojo.render.html.ie){return}if(!c.__doClobber__){c.__doClobber__=true;dojo._ie_clobber.clobberNodes.push(c);c.__clobberAttrs__=[]}};this.addClobberNodeAttrs=function(d,f){if(!dojo.render.html.ie){return}this.addClobberNode(d);for(var c=0;c<f.length;c++){d.__clobberAttrs__.push(f[c])}};this.removeListener=function(f,c,d,g){if(!g){var g=false}c=dojo.event.browser.normalizedEventName(c);if(c=="key"){if(dojo.render.html.ie){this.removeListener(f,"onkeydown",d,g)}c="keypress"}if(f.removeEventListener){f.removeEventListener(c,d,g)}};this.addListener=function(h,j,d,i,g){if(!h){return}if(!i){var i=false}j=dojo.event.browser.normalizedEventName(j);if(j=="key"){if(dojo.render.html.ie){this.addListener(h,"onkeydown",d,i,g)}j="keypress"}if(!g){var f=function(k){if(!k){k=window.event}var l=d(dojo.event.browser.fixEvent(k,this));if(i){dojo.event.browser.stopEvent(k)}return l}}else{f=d}if(h.addEventListener){h.addEventListener(j,f,i);return f}else{j="on"+j;if(typeof h[j]=="function"){var c=h[j];h[j]=function(k){c(k);return f(k)}}else{h[j]=f}if(dojo.render.html.ie){this.addClobberNodeAttrs(h,[j])}return f}};this.isEvent=function(c){return(typeof c!="undefined")&&(c)&&(typeof Event!="undefined")&&(c.eventPhase)};this.currentEvent=null;this.callListener=function(d,c){if(typeof d!="function"){dojo.raise("listener not a function: "+d)}dojo.event.browser.currentEvent.currentTarget=c;return d.call(c,dojo.event.browser.currentEvent)};this._stopPropagation=function(){dojo.event.browser.currentEvent.cancelBubble=true};this._preventDefault=function(){dojo.event.browser.currentEvent.returnValue=false};this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};this.revKeys=[];for(var a in this.keys){this.revKeys[this.keys[a]]=a}this.fixEvent=function(d,c){if(!d){if(window.event){d=window.event}}if((d.type)&&(d.type.indexOf("key")==0)){d.keys=this.revKeys;for(var f in this.keys){d[f]=this.keys[f]}if(d.type=="keydown"&&dojo.render.html.ie){switch(d.keyCode){case d.KEY_SHIFT:case d.KEY_CTRL:case d.KEY_ALT:case d.KEY_CAPS_LOCK:case d.KEY_LEFT_WINDOW:case d.KEY_RIGHT_WINDOW:case d.KEY_SELECT:case d.KEY_NUM_LOCK:case d.KEY_SCROLL_LOCK:case d.KEY_NUMPAD_0:case d.KEY_NUMPAD_1:case d.KEY_NUMPAD_2:case d.KEY_NUMPAD_3:case d.KEY_NUMPAD_4:case d.KEY_NUMPAD_5:case d.KEY_NUMPAD_6:case d.KEY_NUMPAD_7:case d.KEY_NUMPAD_8:case d.KEY_NUMPAD_9:case d.KEY_NUMPAD_PERIOD:break;case d.KEY_NUMPAD_MULTIPLY:case d.KEY_NUMPAD_PLUS:case d.KEY_NUMPAD_ENTER:case d.KEY_NUMPAD_MINUS:case d.KEY_NUMPAD_DIVIDE:break;case d.KEY_PAUSE:case d.KEY_TAB:case d.KEY_BACKSPACE:case d.KEY_ENTER:case d.KEY_ESCAPE:case d.KEY_PAGE_UP:case d.KEY_PAGE_DOWN:case d.KEY_END:case d.KEY_HOME:case d.KEY_LEFT_ARROW:case d.KEY_UP_ARROW:case d.KEY_RIGHT_ARROW:case d.KEY_DOWN_ARROW:case d.KEY_INSERT:case d.KEY_DELETE:case d.KEY_F1:case d.KEY_F2:case d.KEY_F3:case d.KEY_F4:case d.KEY_F5:case d.KEY_F6:case d.KEY_F7:case d.KEY_F8:case d.KEY_F9:case d.KEY_F10:case d.KEY_F11:case d.KEY_F12:case d.KEY_F12:case d.KEY_F13:case d.KEY_F14:case d.KEY_F15:case d.KEY_CLEAR:case d.KEY_HELP:d.key=d.keyCode;break;default:if(d.ctrlKey||d.altKey){var i=d.keyCode;if(i>=65&&i<=90&&d.shiftKey==false){i+=32}if(i>=1&&i<=26&&d.ctrlKey){i+=96}d.key=String.fromCharCode(i)}}}else{if(d.type=="keypress"){if(dojo.render.html.opera){if(d.which==0){d.key=d.keyCode}else{if(d.which>0){switch(d.which){case d.KEY_SHIFT:case d.KEY_CTRL:case d.KEY_ALT:case d.KEY_CAPS_LOCK:case d.KEY_NUM_LOCK:case d.KEY_SCROLL_LOCK:break;case d.KEY_PAUSE:case d.KEY_TAB:case d.KEY_BACKSPACE:case d.KEY_ENTER:case d.KEY_ESCAPE:d.key=d.which;break;default:var i=d.which;if((d.ctrlKey||d.altKey||d.metaKey)&&(d.which>=65&&d.which<=90&&d.shiftKey==false)){i+=32}d.key=String.fromCharCode(i)}}}}else{if(dojo.render.html.ie){if(!d.ctrlKey&&!d.altKey&&d.keyCode>=d.KEY_SPACE){d.key=String.fromCharCode(d.keyCode)}}else{if(dojo.render.html.safari){switch(d.keyCode){case 25:d.key=d.KEY_TAB;d.shift=true;break;case 63232:d.key=d.KEY_UP_ARROW;break;case 63233:d.key=d.KEY_DOWN_ARROW;break;case 63234:d.key=d.KEY_LEFT_ARROW;break;case 63235:d.key=d.KEY_RIGHT_ARROW;break;case 63236:d.key=d.KEY_F1;break;case 63237:d.key=d.KEY_F2;break;case 63238:d.key=d.KEY_F3;break;case 63239:d.key=d.KEY_F4;break;case 63240:d.key=d.KEY_F5;break;case 63241:d.key=d.KEY_F6;break;case 63242:d.key=d.KEY_F7;break;case 63243:d.key=d.KEY_F8;break;case 63244:d.key=d.KEY_F9;break;case 63245:d.key=d.KEY_F10;break;case 63246:d.key=d.KEY_F11;break;case 63247:d.key=d.KEY_F12;break;case 63250:d.key=d.KEY_PAUSE;break;case 63272:d.key=d.KEY_DELETE;break;case 63273:d.key=d.KEY_HOME;break;case 63275:d.key=d.KEY_END;break;case 63276:d.key=d.KEY_PAGE_UP;break;case 63277:d.key=d.KEY_PAGE_DOWN;break;case 63302:d.key=d.KEY_INSERT;break;case 63248:case 63249:case 63289:break;default:d.key=d.charCode>=d.KEY_SPACE?String.fromCharCode(d.charCode):d.keyCode}}else{d.key=d.charCode>0?String.fromCharCode(d.charCode):d.keyCode}}}}}}if(dojo.render.html.ie){if(!d.target){d.target=d.srcElement}if(!d.currentTarget){d.currentTarget=(c?c:d.srcElement)}if(!d.layerX){d.layerX=d.offsetX}if(!d.layerY){d.layerY=d.offsetY}var g=(d.srcElement&&d.srcElement.ownerDocument)?d.srcElement.ownerDocument:document;var h=((dojo.render.html.ie55)||(g.compatMode=="BackCompat"))?g.body:g.documentElement;if(!d.pageX){d.pageX=d.clientX+(h.scrollLeft||0)}if(!d.pageY){d.pageY=d.clientY+(h.scrollTop||0)}if(d.type=="mouseover"){d.relatedTarget=d.fromElement}if(d.type=="mouseout"){d.relatedTarget=d.toElement}this.currentEvent=d;d.callListener=this.callListener;d.stopPropagation=this._stopPropagation;d.preventDefault=this._preventDefault}return d};this.stopEvent=function(c){if(window.event){c.cancelBubble=true;c.returnValue=false}else{c.preventDefault();c.stopPropagation()}}};dojo.kwCompoundRequire({common:["dojo.event.common","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});dojo.provide("dojo.event.*");dojo.provide("dojo.widget.Manager");dojo.widget.manager=new function(){this.widgets=[];this.widgetIds=[];this.topWidgets={};var j={};var h=[];this.getUniqueId=function(k){var i;do{i=k+"_"+(j[k]!=undefined?++j[k]:j[k]=0)}while(this.getWidgetById(i));return i};this.add=function(i){this.widgets.push(i);if(!i.extraArgs.id){i.extraArgs.id=i.extraArgs.ID}if(i.widgetId==""){if(i.id){i.widgetId=i.id}else{if(i.extraArgs.id){i.widgetId=i.extraArgs.id}else{i.widgetId=this.getUniqueId(i.ns+"_"+i.widgetType)}}}if(this.widgetIds[i.widgetId]){dojo.debug("widget ID collision on ID: "+i.widgetId)}this.widgetIds[i.widgetId]=i};this.destroyAll=function(){for(var i=this.widgets.length-1;i>=0;i--){try{this.widgets[i].destroy(true);delete this.widgets[i]}catch(k){}}};this.remove=function(i){if(dojo.lang.isNumber(i)){var k=this.widgets[i].widgetId;delete this.topWidgets[k];delete this.widgetIds[k];this.widgets.splice(i,1)}else{this.removeById(i)}};this.removeById=function(l){if(!dojo.lang.isString(l)){l=l.widgetId;if(!l){dojo.debug("invalid widget or id passed to removeById");return}}for(var k=0;k<this.widgets.length;k++){if(this.widgets[k].widgetId==l){this.remove(k);break}}};this.getWidgetById=function(i){if(dojo.lang.isString(i)){return this.widgetIds[i]}return i};this.getWidgetsByType=function(l){var i=l.toLowerCase();var m=(l.indexOf(":")<0?function(n){return n.widgetType.toLowerCase()}:function(n){return n.getNamespacedType()});var k=[];dojo.lang.forEach(this.widgets,function(n){if(m(n)==i){k.push(n)}});return k};this.getWidgetsByFilter=function(l,k){var i=[];dojo.lang.every(this.widgets,function(m){if(l(m)){i.push(m);if(k){return false}}return true});return(k?i[0]:i)};this.getAllWidgets=function(){return this.widgets.concat()};this.getWidgetByNode=function(m){var k=this.getAllWidgets();m=dojo.byId(m);for(var l=0;l<k.length;l++){if(k[l].domNode==m){return k[l]}}return null};this.byId=this.getWidgetById;this.byType=this.getWidgetsByType;this.byFilter=this.getWidgetsByFilter;this.byNode=this.getWidgetByNode;var g={};var d=["dojo.widget"];for(var c=0;c<d.length;c++){d[d[c]]=true}this.registerWidgetPackage=function(i){if(!d[i]){d[i]=true;d.push(i)}};this.getWidgetPackageList=function(){return dojo.lang.map(d,function(i){return(i!==true?i:undefined)})};this.getImplementation=function(o,n,m,l){var i=this.getImplementationName(o,l);if(i){var k=n?new i(n):new i();return k}};function f(){for(var l in dojo.render){if(dojo.render[l]["capable"]===true){var k=dojo.render[l].prefixes;for(var m=0;m<k.length;m++){h.push(k[m].toLowerCase())}}}}var b=function(q,o){if(!o){return null}for(var p=0,m=h.length,k;p<=m;p++){k=(p<m?o[h[p]]:o);if(!k){continue}for(var n in k){if(n.toLowerCase()==q){return k[n]}}}return null};var a=function(l,k){var i=dojo.evalObjPath(k,false);return(i?b(l,i):null)};this.getImplementationName=function(q,o){var n=q.toLowerCase();o=o||"dojo";var p=g[o]||(g[o]={});var l=p[n];if(l){return l}if(!h.length){f()}var k=dojo.ns.get(o);if(!k){dojo.ns.register(o,o+".widget");k=dojo.ns.get(o)}if(k){k.resolve(q)}l=a(n,k.module);if(l){return(p[n]=l)}k=dojo.ns.require(o);if((k)&&(k.resolver)){k.resolve(q);l=a(n,k.module);if(l){return(p[n]=l)}}dojo.deprecated("dojo.widget.Manager.getImplementationName",'Could not locate widget implementation for "'+q+'" in "'+k.module+'" registered to namespace "'+k.name+'". Developers must specify correct namespaces for all non-Dojo widgets',"0.5");for(var m=0;m<d.length;m++){l=a(n,d[m]);if(l){return(p[n]=l)}}throw new Error('Could not locate widget implementation for "'+q+'" in "'+k.module+'" registered to namespace "'+k.name+'"')};this.resizing=false;this.onWindowResized=function(){if(this.resizing){return}try{this.resizing=true;for(var l in this.topWidgets){var i=this.topWidgets[l];if(i.checkSize){i.checkSize()}}}catch(k){}finally{this.resizing=false}};if(typeof window!="undefined"){dojo.addOnLoad(this,"onWindowResized");dojo.event.connect(window,"onresize",this,"onWindowResized")}};(function(){var b=dojo.widget;var a=b.manager;var c=dojo.lang.curry(dojo.lang,"hitch",a);var d=function(g,f){b[(f||g)]=c(g)};d("add","addWidget");d("destroyAll","destroyAllWidgets");d("remove","removeWidget");d("removeById","removeWidgetById");d("getWidgetById");d("getWidgetById","byId");d("getWidgetsByType");d("getWidgetsByFilter");d("getWidgetsByType","byType");d("getWidgetsByFilter","byFilter");d("getWidgetByNode","byNode");b.all=function(g){var f=a.getAllWidgets.apply(a,arguments);if(arguments.length>0){return f[g]}return f};d("registerWidgetPackage");d("getImplementation","getWidgetImplementation");d("getImplementationName","getWidgetImplementationName");b.widgets=a.widgets;b.widgetIds=a.widgetIds;b.root=a.root})();dojo.provide("dojo.uri.Uri");dojo.uri=new function(){this.dojoUri=function(a){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),a)};this.moduleUri=function(c,b){var f=dojo.hostenv.getModuleSymbols(c).join("/");if(!f){return null}if(f.lastIndexOf("/")!=f.length-1){f+="/"}var a=f.indexOf(":");var d=f.indexOf("/");if(f.charAt(0)!="/"&&(a==-1||a>d)){f=dojo.hostenv.getBaseScriptUri()+f}return new dojo.uri.Uri(f,b)};this.Uri=function(){var c=arguments[0];for(var g=1;g<arguments.length;g++){if(!arguments[g]){continue}var k=new dojo.uri.Uri(arguments[g].toString());var h=new dojo.uri.Uri(c.toString());if((k.path=="")&&(k.scheme==null)&&(k.authority==null)&&(k.query==null)){if(k.fragment!=null){h.fragment=k.fragment}k=h}else{if(k.scheme==null){k.scheme=h.scheme;if(k.authority==null){k.authority=h.authority;if(k.path.charAt(0)!="/"){var l=h.path.substring(0,h.path.lastIndexOf("/")+1)+k.path;var b=l.split("/");for(var d=0;d<b.length;d++){if(b[d]=="."){if(d==b.length-1){b[d]=""}else{b.splice(d,1);d--}}else{if(d>0&&!(d==1&&b[0]=="")&&b[d]==".."&&b[d-1]!=".."){if(d==b.length-1){b.splice(d,1);b[d-1]=""}else{b.splice(d-1,2);d-=2}}}}k.path=b.join("/")}}}}c="";if(k.scheme!=null){c+=k.scheme+":"}if(k.authority!=null){c+="//"+k.authority}c+=k.path;if(k.query!=null){c+="?"+k.query}if(k.fragment!=null){c+="#"+k.fragment}}this.uri=c.toString();var f="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";var a=this.uri.match(new RegExp(f));this.scheme=a[2]||(a[1]?"":null);this.authority=a[4]||(a[3]?"":null);this.path=a[5];this.query=a[7]||(a[6]?"":null);this.fragment=a[9]||(a[8]?"":null);if(this.authority!=null){f="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";a=this.authority.match(new RegExp(f));this.user=a[3]||null;this.password=a[4]||null;this.host=a[5];this.port=a[7]||null}this.toString=function(){return this.uri}}};dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});dojo.provide("dojo.uri.*");dojo.provide("dojo.html.common");dojo.lang.mixin(dojo.html,dojo.dom);dojo.html.body=function(){dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");return dojo.body()};dojo.html.getEventTarget=function(a){if(!a){a=dojo.global().event||{}}var b=(a.srcElement?a.srcElement:(a.target?a.target:null));while((b)&&(b.nodeType!=1)){b=b.parentNode}return b};dojo.html.getViewport=function(){var f=dojo.global();var d=dojo.doc();var b=0;var c=0;if(dojo.render.html.mozilla){b=d.documentElement.clientWidth;c=f.innerHeight}else{if(!dojo.render.html.opera&&f.innerWidth){b=f.innerWidth;c=f.innerHeight}else{if(!dojo.render.html.opera&&dojo.exists(d,"documentElement.clientWidth")){var a=d.documentElement.clientWidth;if(!b||a&&a<b){b=a}c=d.documentElement.clientHeight}else{if(dojo.body().clientWidth){b=dojo.body().clientWidth;c=dojo.body().clientHeight}}}}return{width:b,height:c}};dojo.html.getScroll=function(){var d=dojo.global();var c=dojo.doc();var b=d.pageYOffset||c.documentElement.scrollTop||dojo.body().scrollTop||0;var a=d.pageXOffset||c.documentElement.scrollLeft||dojo.body().scrollLeft||0;return{top:b,left:a,offset:{x:a,y:b}}};dojo.html.getParentByType=function(d,c){var b=dojo.doc();var a=dojo.byId(d);c=c.toLowerCase();while((a)&&(a.nodeName.toLowerCase()!=c)){if(a==(b.body||b.documentElement)){return null}a=a.parentNode}return a};dojo.html.getAttribute=function(d,a){d=dojo.byId(d);if((!d)||(!d.getAttribute)){return null}var c=typeof a=="string"?a:new String(a);var b=d.getAttribute(c.toUpperCase());if((b)&&(typeof b=="string")&&(b!="")){return b}if(b&&b.value){return b.value}if((d.getAttributeNode)&&(d.getAttributeNode(c))){return(d.getAttributeNode(c)).value}else{if(d.getAttribute(c)){return d.getAttribute(c)}else{if(d.getAttribute(c.toLowerCase())){return d.getAttribute(c.toLowerCase())}}}return null};dojo.html.hasAttribute=function(b,a){return dojo.html.getAttribute(dojo.byId(b),a)?true:false};dojo.html.getCursorPosition=function(c){c=c||dojo.global().event;var a={x:0,y:0};if(c.pageX||c.pageY){a.x=c.pageX;a.y=c.pageY}else{var d=dojo.doc().documentElement;var b=dojo.body();a.x=c.clientX+((d||b)["scrollLeft"])-((d||b)["clientLeft"]);a.y=c.clientY+((d||b)["scrollTop"])-((d||b)["clientTop"])}return a};dojo.html.isTag=function(b){b=dojo.byId(b);if(b&&b.tagName){for(var a=1;a<arguments.length;a++){if(b.tagName.toLowerCase()==String(arguments[a]).toLowerCase()){return String(arguments[a]).toLowerCase()}}}return""};if(dojo.render.html.ie&&!dojo.render.html.ie70){if(window.location.href.substr(0,6).toLowerCase()!="https:"){(function(){var a=dojo.doc().createElement("script");a.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";dojo.doc().getElementsByTagName("head")[0].appendChild(a)})()}}else{dojo.html.createExternalElement=function(b,a){return b.createElement(a)}}dojo.html._callDeprecated=function(i,h,g,f,c){dojo.deprecated("dojo.html."+i,"replaced by dojo.html."+h+"("+(f?"node, {"+f+": "+f+"}":"")+")"+(c?"."+c:""),"0.5");var b=[];if(f){var a={};a[f]=g[1];b.push(g[0]);b.push(a)}else{b=g}var d=dojo.html[h].apply(dojo.html,g);if(c){return d[c]}else{return d}};dojo.html.getViewportWidth=function(){return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width")};dojo.html.getViewportHeight=function(){return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height")};dojo.html.getViewportSize=function(){return dojo.html._callDeprecated("getViewportSize","getViewport",arguments)};dojo.html.getScrollTop=function(){return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top")};dojo.html.getScrollLeft=function(){return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left")};dojo.html.getScrollOffset=function(){return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset")};dojo.provide("dojo.a11y");dojo.a11y={imgPath:dojo.uri.moduleUri("dojo.widget","templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){if(this.accessible===null){this.accessible=false;if(this.doAccessibleCheck==true){this.accessible=this.testAccessible()}}return this.accessible},testAccessible:function(){this.accessible=false;if(dojo.render.html.ie||dojo.render.html.mozilla){var d=document.createElement("div");d.style.backgroundImage='url("'+this.imgPath+'/tab_close.gif")';dojo.body().appendChild(d);var c=null;if(window.getComputedStyle){var b=getComputedStyle(d,"");c=b.getPropertyValue("background-image")}else{c=d.currentStyle.backgroundImage}var a=false;if(c!=null&&(c=="none"||c=="url(invalid-url:)")){this.accessible=true}dojo.body().removeChild(d)}return this.accessible},setCheckAccessible:function(a){this.doAccessibleCheck=a},setAccessibleMode:function(){if(this.accessible===null){if(this.checkAccessible()){dojo.render.html.prefixes.unshift("a11y")}}return this.accessible}};dojo.provide("dojo.widget.Widget");dojo.declare("dojo.widget.Widget",null,function(){this.children=[];this.extraArgs={}},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){return(this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase()},toString:function(){return"[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]"},repr:function(){return this.toString()},enable:function(){this.disabled=false},disable:function(){this.disabled=true},onResized:function(){this.notifyChildrenOfResize()},notifyChildrenOfResize:function(){for(var a=0;a<this.children.length;a++){var b=this.children[a];if(b.onResized){b.onResized()}}},create:function(a,d,c,b){if(b){this.ns=b}this.satisfyPropertySets(a,d,c);this.mixInProperties(a,d,c);this.postMixInProperties(a,d,c);dojo.widget.manager.add(this);this.buildRendering(a,d,c);this.initialize(a,d,c);this.postInitialize(a,d,c);this.postCreate(a,d,c);return this},destroy:function(a){if(this.parent){this.parent.removeChild(this)}this.destroyChildren();this.uninitialize();this.destroyRendering(a);dojo.widget.manager.removeById(this.widgetId)},destroyChildren:function(){var b;var a=0;while(this.children.length>a){b=this.children[a];if(b instanceof dojo.widget.Widget){this.removeChild(b);b.destroy();continue}a++}},getChildrenOfType:function(f,b){var c=[];var d=dojo.lang.isFunction(f);if(!d){f=f.toLowerCase()}for(var a=0;a<this.children.length;a++){if(d){if(this.children[a] instanceof f){c.push(this.children[a])}}else{if(this.children[a].widgetType.toLowerCase()==f){c.push(this.children[a])}}if(b){c=c.concat(this.children[a].getChildrenOfType(f,b))}}return c},getDescendants:function(){var b=[];var a=[this];var c;while((c=a.pop())){b.push(c);if(c.children){dojo.lang.forEach(c.children,function(d){a.push(d)})}}return b},isFirstChild:function(){return this===this.parent.children[0]},isLastChild:function(){return this===this.parent.children[this.parent.children.length-1]},satisfyPropertySets:function(a){return a},mixInProperties:function(b,k){if((b.fastMixIn)||(k.fastMixIn)){for(var f in b){this[f]=b[f]}return}var h;var g=dojo.widget.lcArgsCache[this.widgetType];if(g==null){g={};for(var c in this){g[((new String(c)).toLowerCase())]=c}dojo.widget.lcArgsCache[this.widgetType]=g}var d={};for(var f in b){if(!this[f]){var c=g[(new String(f)).toLowerCase()];if(c){b[c]=b[f];f=c}}if(d[f]){continue}d[f]=true;if((typeof this[f])!=(typeof h)){if(typeof b[f]!="string"){this[f]=b[f]}else{if(dojo.lang.isString(this[f])){this[f]=b[f]}else{if(dojo.lang.isNumber(this[f])){this[f]=new Number(b[f])}else{if(dojo.lang.isBoolean(this[f])){this[f]=(b[f].toLowerCase()=="false")?false:true}else{if(dojo.lang.isFunction(this[f])){if(b[f].search(/[^\w\.]+/i)==-1){this[f]=dojo.evalObjPath(b[f],false)}else{var i=dojo.lang.nameAnonFunc(new Function(b[f]),this);dojo.event.kwConnect({srcObj:this,srcFunc:f,adviceObj:this,adviceFunc:i})}}else{if(dojo.lang.isArray(this[f])){this[f]=b[f].split(";")}else{if(this[f] instanceof Date){this[f]=new Date(Number(b[f]))}else{if(typeof this[f]=="object"){if(this[f] instanceof dojo.uri.Uri){this[f]=dojo.uri.dojoUri(b[f])}else{var j=b[f].split(";");for(var c=0;c<j.length;c++){var a=j[c].indexOf(":");if((a!=-1)&&(j[c].length>a)){this[f][j[c].substr(0,a).replace(/^\s+|\s+$/g,"")]=j[c].substr(a+1)}}}}else{this[f]=b[f]}}}}}}}}}else{this.extraArgs[f.toLowerCase()]=b[f]}}},postMixInProperties:function(b,c,a){},initialize:function(b,c,a){return false},postInitialize:function(a,c,b){return false},postCreate:function(a,c,b){return false},uninitialize:function(){return false},buildRendering:function(a,c,b){dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");return false},destroyRendering:function(){dojo.unimplemented("dojo.widget.Widget.destroyRendering");return false},addedTo:function(a){},addChild:function(a){dojo.unimplemented("dojo.widget.Widget.addChild");return false},removeChild:function(b){for(var a=0;a<this.children.length;a++){if(this.children[a]===b){this.children.splice(a,1);b.parent=null;break}}return b},getPreviousSibling:function(){var a=this.getParentIndex();if(a<=0){return null}return this.parent.children[a-1]},getSiblings:function(){return this.parent.children},getParentIndex:function(){return dojo.lang.indexOf(this.parent.children,this,true)},getNextSibling:function(){var a=this.getParentIndex();if(a==this.parent.children.length-1){return null}if(a<0){return null}return this.parent.children[a+1]}});dojo.widget.lcArgsCache={};dojo.widget.tags={};dojo.widget.tags.addParseTreeHandler=function(a){dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5")};dojo.widget.tags["dojo:propertyset"]=function(d,c,b){var a=c.parseProperties(d["dojo:propertyset"])};dojo.widget.tags["dojo:connect"]=function(d,c,b){var a=c.parseProperties(d["dojo:connect"])};dojo.widget.buildWidgetFromParseTree=function(j,k,d,c,b,a){dojo.a11y.setAccessibleMode();var h=j.split(":");h=(h.length==2)?h[1]:j;var g=a||d.parseProperties(k[k.ns+":"+h]);var f=dojo.widget.manager.getImplementation(h,null,null,k.ns);if(!f){throw new Error('cannot find "'+j+'" widget')}else{if(!f.create){throw new Error('"'+j+'" widget object has no "create" method and does not appear to implement *Widget')}}g.dojoinsertionindex=b;var i=f.create(g,k,c,k.ns);return i};dojo.widget.defineWidget=function(f,d,b,h,a){if(dojo.lang.isString(arguments[3])){dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2])}else{var c=[arguments[0]],g=3;if(dojo.lang.isString(arguments[1])){c.push(arguments[1],arguments[2])}else{c.push("",arguments[1]);g=2}if(dojo.lang.isFunction(arguments[g])){c.push(arguments[g],arguments[g+1])}else{c.push(null,arguments[g])}dojo.widget._defineWidget.apply(this,c)}};dojo.widget.defineWidget.renderers="html|svg|vml";dojo.widget._defineWidget=function(h,g,f,l,c){var b=h.split(".");var i=b.pop();var d="\\.("+(g?g+"|":"")+dojo.widget.defineWidget.renderers+")\\.";var a=h.search(new RegExp(d));b=(a<0?b.join("."):h.substr(0,a));dojo.widget.manager.registerWidgetPackage(b);var j=b.indexOf(".");var k=(j>-1)?b.substring(0,j):b;c=(c)||{};c.widgetType=i;if((!l)&&(c.classConstructor)){l=c.classConstructor;delete c.classConstructor}dojo.declare(h,f,l,c)};dojo.provide("dojo.widget.Parse");dojo.widget.Parse=function(a){this.propertySetsList=[];this.fragment=a;this.createComponents=function(j,h){var g=[];var l=false;try{if(j&&j.tagName&&(j!=j.nodeRef)){var k=dojo.widget.tags;var f=String(j.tagName).split(";");for(var i=0;i<f.length;i++){var b=f[i].replace(/^\s+|\s+$/g,"").toLowerCase();j.tagName=b;var d;if(k[b]){l=true;d=k[b](j,this,h,j.index);g.push(d)}else{if(b.indexOf(":")==-1){b="dojo:"+b}d=dojo.widget.buildWidgetFromParseTree(b,j,this,h,j.index);if(d){l=true;g.push(d)}}}}}catch(c){dojo.debug("dojo.widget.Parse: error:",c)}if(!l){g=g.concat(this.createSubComponents(j,h))}return g};this.createSubComponents=function(c,b){var g,f=[];for(var d in c){g=c[d];if(g&&typeof g=="object"&&(g!=c.nodeRef)&&(g!=c.tagName)&&(!dojo.dom.isNode(g))){f=f.concat(this.createComponents(g,b))}}return f};this.parsePropertySets=function(b){return[]};this.parseProperties=function(g){var c={};for(var f in g){if((g[f]==g.tagName)||(g[f]==g.nodeRef)){}else{var j=g[f];if(j.tagName&&dojo.widget.tags[j.tagName.toLowerCase()]){}else{if(j[0]&&j[0].value!=""&&j[0].value!=null){try{if(f.toLowerCase()=="dataprovider"){var h=this;this.getDataProvider(h,j[0].value);c.dataProvider=this.dataProvider}c[f]=j[0].value;var d=this.parseProperties(j);for(var b in d){c[b]=d[b]}}catch(i){dojo.debug(i)}}}switch(f.toLowerCase()){case"checked":case"disabled":if(typeof c[f]!="boolean"){c[f]=true}break}}}return c};this.getDataProvider=function(c,b){dojo.io.bind({url:b,load:function(f,d){if(f=="load"){c.dataProvider=d}},mimetype:"text/javascript",sync:true})};this.getPropertySetById=function(c){for(var b=0;b<this.propertySetsList.length;b++){if(c==this.propertySetsList[b]["id"][0].value){return this.propertySetsList[b]}}return""};this.getPropertySetsByType=function(c){var h=[];for(var b=0;b<this.propertySetsList.length;b++){var f=this.propertySetsList[b];var d=f.componentClass||f.componentType||null;var g=this.propertySetsList[b]["id"][0].value;if(d&&(g==d[0].value)){h.push(f)}}return h};this.getPropertySets=function(d){var i="dojo:propertyproviderlist";var h=[];var g=d.tagName;if(d[i]){var f=d[i].value.split(" ");for(var c in f){if((c.indexOf("..")==-1)&&(c.indexOf("://")==-1)){var b=this.getPropertySetById(c);if(b!=""){h.push(b)}}else{}}}return this.getPropertySetsByType(g).concat(h)};this.createComponentFromScript=function(f,c,b,d){b.fastMixIn=true;var g=(d||"dojo")+":"+c.toLowerCase();if(dojo.widget.tags[g]){return[dojo.widget.tags[g](b,this,null,null,b)]}return[dojo.widget.buildWidgetFromParseTree(g,b,this,null,null,b)]}};dojo.widget._parser_collection={dojo:new dojo.widget.Parse()};dojo.widget.getParser=function(a){if(!a){a="dojo"}if(!this._parser_collection[a]){this._parser_collection[a]=new dojo.widget.Parse()}return this._parser_collection[a]};dojo.widget.createWidget=function(a,p,m,j){var s=false;var r=(typeof a=="string");if(r){var l=a.indexOf(":");var n=(l>-1)?a.substring(0,l):"dojo";if(l>-1){a=a.substring(l+1)}var o=a.toLowerCase();var k=n+":"+o;s=(dojo.byId(a)&&!dojo.widget.tags[k])}if((arguments.length==1)&&(s||!r)){var d=new dojo.xml.Parse();var q=s?dojo.byId(a):a;return dojo.widget.getParser().createComponents(d.parseElement(q,null,true))[0]}function b(v,t,h,u){h[k]={dojotype:[{value:o}],nodeRef:v,fastMixIn:true};h.ns=u;return dojo.widget.getParser().createComponentFromScript(v,t,h,u)}p=p||{};var g=false;var q=null;var f=dojo.render.html.capable;if(f){q=document.createElement("span")}if(!m){g=true;m=q;if(f){dojo.body().appendChild(m)}}else{if(j){dojo.dom.insertAtPosition(q,m,j)}else{q=m}}var c=b(q,a.toLowerCase(),p,n);if((!c)||(!c[0])||(typeof c[0].widgetType=="undefined")){throw new Error('createWidget: Creation of "'+a+'" widget failed.')}try{if(g&&c[0].domNode.parentNode){c[0].domNode.parentNode.removeChild(c[0].domNode)}}catch(i){dojo.debug(i)}return c[0]};dojo.provide("dojo.html.style");dojo.html.getClass=function(b){b=dojo.byId(b);if(!b){return""}var a="";if(b.className){a=b.className}else{if(dojo.html.hasAttribute(b,"class")){a=dojo.html.getAttribute(b,"class")}}return a.replace(/^\s+|\s+$/g,"")};dojo.html.getClasses=function(a){var b=dojo.html.getClass(a);return(b=="")?[]:b.split(/\s+/g)};dojo.html.hasClass=function(a,b){return(new RegExp("(^|\\s+)"+b+"(\\s+|$)")).test(dojo.html.getClass(a))};dojo.html.prependClass=function(b,a){a+=" "+dojo.html.getClass(b);return dojo.html.setClass(b,a)};dojo.html.addClass=function(b,a){if(dojo.html.hasClass(b,a)){return false}a=(dojo.html.getClass(b)+" "+a).replace(/^\s+|\s+$/g,"");return dojo.html.setClass(b,a)};dojo.html.setClass=function(c,a){c=dojo.byId(c);var b=new String(a);try{if(typeof c.className=="string"){c.className=b}else{if(c.setAttribute){c.setAttribute("class",a);c.className=b}else{return false}}}catch(d){dojo.debug("dojo.html.setClass() failed",d)}return true};dojo.html.removeClass=function(a,f,d){try{if(!d){var b=dojo.html.getClass(a).replace(new RegExp("(^|\\s+)"+f+"(\\s+|$)"),"$1$2")}else{var b=dojo.html.getClass(a).replace(f,"")}dojo.html.setClass(a,b)}catch(c){dojo.debug("dojo.html.removeClass() failed",c)}return true};dojo.html.replaceClass=function(a,c,b){dojo.html.removeClass(a,b);dojo.html.addClass(a,c)};dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};dojo.html.getElementsByClass=function(c,b,a,s,r){r=false;var p=dojo.doc();b=dojo.byId(b)||p;var o=c.split(/\s+/g);var n=[];if(s!=1&&s!=2){s=0}var m=new RegExp("(\\s|^)(("+o.join(")|(")+"))(\\s|$)");var k=o.join(" ").length;var g=[];if(!r&&p.evaluate){var f=".//"+(a||"*")+"[contains(";if(s!=dojo.html.classMatchType.ContainsAny){f+="concat(' ',@class,' '), ' "+o.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";if(s==2){f+=" and string-length(@class)="+k+"]"}else{f+="]"}}else{f+="concat(' ',@class,' '), ' "+o.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]"}var d=p.evaluate(f,b,null,XPathResult.ANY_TYPE,null);var q=d.iterateNext();while(q){try{g.push(q);q=d.iterateNext()}catch(w){break}}return g}else{if(!a){a="*"}g=b.getElementsByTagName(a);var t,v=0;outer:while(t=g[v++]){var l=dojo.html.getClasses(t);if(l.length==0){continue outer}var h=0;for(var u=0;u<l.length;u++){if(m.test(l[u])){if(s==dojo.html.classMatchType.ContainsAny){n.push(t);continue outer}else{h++}}else{if(s==dojo.html.classMatchType.IsOnly){continue outer}}}if(h==o.length){if((s==dojo.html.classMatchType.IsOnly)&&(h==l.length)){n.push(t)}else{if(s==dojo.html.classMatchType.ContainsAll){n.push(t)}}}}return n}};dojo.html.getElementsByClassName=dojo.html.getElementsByClass;dojo.html.toCamelCase=function(c){var a=c.split("-"),d=a[0];for(var b=1;b<a.length;b++){d+=a[b].charAt(0).toUpperCase()+a[b].substring(1)}return d};dojo.html.toSelectorCase=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};if(dojo.render.html.ie){dojo.html.getComputedStyle=function(c,b,a){c=dojo.byId(c);if(!c||!c.style){return a}return c.currentStyle[dojo.html.toCamelCase(b)]};dojo.html.getComputedStyles=function(a){return a.currentStyle}}else{dojo.html.getComputedStyle=function(d,b,a){d=dojo.byId(d);if(!d||!d.style){return a}var c=document.defaultView.getComputedStyle(d,null);return(c&&c[dojo.html.toCamelCase(b)])||""};dojo.html.getComputedStyles=function(a){return document.defaultView.getComputedStyle(a,null)}}dojo.html.getStyleProperty=function(a,b){a=dojo.byId(a);return(a&&a.style?a.style[dojo.html.toCamelCase(b)]:undefined)};dojo.html.getStyle=function(a,c){var b=dojo.html.getStyleProperty(a,c);return(b?b:dojo.html.getComputedStyle(a,c))};dojo.html.setStyle=function(c,d,b){c=dojo.byId(c);if(c&&c.style){var a=dojo.html.toCamelCase(d);c.style[a]=b}};dojo.html.setStyleText=function(a,c){try{a.style.cssText=c}catch(b){a.setAttribute("style",c)}};dojo.html.copyStyle=function(a,b){if(!b.style.cssText){a.setAttribute("style",b.getAttribute("style"))}else{a.style.cssText=b.style.cssText}dojo.html.addClass(a,dojo.html.getClass(b))};dojo.html.getUnitValue=function(f,c,b){var d=dojo.html.getComputedStyle(f,c);if((!d)||((d=="auto")&&(b))){return{value:0,units:"px"}}var a=d.match(/(\-?[\d.]+)([a-z%]*)/i);if(!a){return dojo.html.getUnitValue.bad}return{value:Number(a[1]),units:a[2].toLowerCase()}};dojo.html.getUnitValue.bad={value:NaN,units:""};if(dojo.render.html.ie){dojo.html.toPixelValue=function(_440,_441){if(!_441){return 0}if(_441.slice(-2)=="px"){return parseFloat(_441)}var _442=0;with(_440){var _443=style.left;var _444=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_441||0;_442=style.pixelLeft;style.left=_443;runtimeStyle.left=_444}catch(e){}}return _442}}else{dojo.html.toPixelValue=function(b,a){return(a&&(a.slice(-2)=="px")?parseFloat(a):0)}}dojo.html.getPixelValue=function(c,b,a){return dojo.html.toPixelValue(c,dojo.html.getComputedStyle(c,b))};dojo.html.setPositivePixelValue=function(b,c,a){if(isNaN(a)){return false}b.style[c]=Math.max(0,a)+"px";return true};dojo.html.styleSheet=null;dojo.html.insertCssRule=function(c,b,a){if(!dojo.html.styleSheet){if(document.createStyleSheet){dojo.html.styleSheet=document.createStyleSheet()}else{if(document.styleSheets[0]){dojo.html.styleSheet=document.styleSheets[0]}else{return null}}}if(arguments.length<3){if(dojo.html.styleSheet.cssRules){a=dojo.html.styleSheet.cssRules.length}else{if(dojo.html.styleSheet.rules){a=dojo.html.styleSheet.rules.length}else{return null}}}if(dojo.html.styleSheet.insertRule){var d=c+" { "+b+" }";return dojo.html.styleSheet.insertRule(d,a)}else{if(dojo.html.styleSheet.addRule){return dojo.html.styleSheet.addRule(c,b,a)}else{return null}}};dojo.html.removeCssRule=function(a){if(!dojo.html.styleSheet){dojo.debug("no stylesheet defined for removing rules");return false}if(dojo.render.html.ie){if(!a){a=dojo.html.styleSheet.rules.length;dojo.html.styleSheet.removeRule(a)}}else{if(document.styleSheets[0]){if(!a){a=dojo.html.styleSheet.cssRules.length}dojo.html.styleSheet.deleteRule(a)}}return true};dojo.html._insertedCssFiles=[];dojo.html.insertCssFile=function(h,k,l,g){if(!h){return}if(!k){k=document}var d=dojo.hostenv.getText(h,false,g);if(d===null){return}d=dojo.html.fixPathsInCssText(d,h);if(l){var m=-1,a,c=dojo.html._insertedCssFiles;for(var b=0;b<c.length;b++){if((c[b].doc==k)&&(c[b].cssText==d)){m=b;a=c[b].nodeRef;break}}if(a){var j=k.getElementsByTagName("style");for(var b=0;b<j.length;b++){if(j[b]==a){return}}dojo.html._insertedCssFiles.shift(m,1)}}var f=dojo.html.insertCssText(d,k);dojo.html._insertedCssFiles.push({doc:k,cssText:d,nodeRef:f});if(f&&djConfig.isDebug){f.setAttribute("dbgHref",h)}return f};dojo.html.insertCssText=function(g,h,b){if(!g){return}if(!h){h=document}if(b){g=dojo.html.fixPathsInCssText(g,b)}var f=h.createElement("style");f.setAttribute("type","text/css");var d=h.getElementsByTagName("head")[0];if(!d){dojo.debug("No head tag in document, aborting styles");return}else{d.appendChild(f)}if(f.styleSheet){var c=function(){try{f.styleSheet.cssText=g}catch(i){dojo.debug(i)}};if(f.styleSheet.disabled){setTimeout(c,10)}else{c()}}else{var a=h.createTextNode(g);f.appendChild(a)}return f};dojo.html.fixPathsInCssText=function(f,j){if(!f||!j){return}var c,i="",a="",b="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";var h=new RegExp("url\\(\\s*("+b+")\\s*\\)");var g=/(file|https?|ftps?):\/\//;regexTrim=new RegExp("^[\\s]*(['\"]?)("+b+")\\1[\\s]*?$");if(dojo.render.html.ie55||dojo.render.html.ie60){var d=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+b+")['\"]");while(c=d.exec(f)){a=c[2].replace(regexTrim,"$2");if(!g.exec(a)){a=(new dojo.uri.Uri(j,a).toString())}i+=f.substring(0,c.index)+"AlphaImageLoader("+c[1]+"src='"+a+"'";f=f.substr(c.index+c[0].length)}f=i+f;i=""}while(c=h.exec(f)){a=c[1].replace(regexTrim,"$2");if(!g.exec(a)){a=(new dojo.uri.Uri(j,a).toString())}i+=f.substring(0,c.index)+"url("+a+")";f=f.substr(c.index+c[0].length)}return i+f};dojo.html.setActiveStyleSheet=function(f){var d=0,b,c=dojo.doc().getElementsByTagName("link");while(b=c[d++]){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")){b.disabled=true;if(b.getAttribute("title")==f){b.disabled=false}}}};dojo.html.getActiveStyleSheet=function(){var d=0,b,c=dojo.doc().getElementsByTagName("link");while(b=c[d++]){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")&&!b.disabled){return b.getAttribute("title")}}return null};dojo.html.getPreferredStyleSheet=function(){var d=0,b,c=dojo.doc().getElementsByTagName("link");while(b=c[d++]){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("rel").indexOf("alt")==-1&&b.getAttribute("title")){return b.getAttribute("title")}}return null};dojo.html.applyBrowserClass=function(a){var c=dojo.render.html;var d={dj_ie:c.ie,dj_ie55:c.ie55,dj_ie6:c.ie60,dj_ie7:c.ie70,dj_iequirks:c.ie&&c.quirks,dj_opera:c.opera,dj_opera8:c.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:c.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:c.khtml,dj_safari:c.safari,dj_gecko:c.mozilla};for(var b in d){if(d[b]){dojo.html.addClass(a,b)}}};dojo.provide("dojo.widget.DomWidget");dojo.widget._cssFiles={};dojo.widget._cssStrings={};dojo.widget._templateCache={};dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),dojoWidgetModuleUri:dojo.uri.moduleUri("dojo.widget"),baseScriptUri:dojo.hostenv.getBaseScriptUri()};dojo.widget.fillFromTemplateCache=function(c,b,a,k){var j=b||c.templatePath;var i=dojo.widget._templateCache;if(!j&&!c.widgetType){do{var h="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++}while(i[h]);c.widgetType=h}var d=j?j.toString():c.widgetType;var f=i[d];if(!f){i[d]={string:null,node:null};if(k){f={}}else{f=i[d]}}if((!c.templateString)&&(!k)){c.templateString=a||f.string}if(c.templateString){c.templateString=this._sanitizeTemplateString(c.templateString)}if((!c.templateNode)&&(!k)){c.templateNode=f.node}if((!c.templateNode)&&(!c.templateString)&&(j)){var g=this._sanitizeTemplateString(dojo.hostenv.getText(j));c.templateString=g;if(!k){i[d]["string"]=g}}if((!f.string)&&(!k)){f.string=c.templateString}};dojo.widget._sanitizeTemplateString=function(b){if(b){b=b.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var a=b.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(a){b=a[1]}}else{b=""}return b};dojo.widget._templateCache.dummyCount=0;dojo.widget.attachProperties=["dojoAttachPoint","id"];dojo.widget.eventAttachProperty="dojoAttachEvent";dojo.widget.onBuildProperty="dojoOnBuild";dojo.widget.waiNames=["waiRole","waiState"];dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(d,c,a,b){if(dojo.render.html.ie){d.setAttribute(this[c].alias+":"+a,this[c].prefix+b)}else{d.setAttributeNS(this[c]["namespace"],a,this[c].prefix+b)}},getAttr:function(c,b,a){if(dojo.render.html.ie){return c.getAttribute(this[b].alias+":"+a)}else{return c.getAttributeNS(this[b]["namespace"],a)}},removeAttr:function(d,c,b){var a=true;if(dojo.render.html.ie){a=d.removeAttribute(this[c].alias+":"+b)}else{d.removeAttributeNS(this[c]["namespace"],b)}return a}};dojo.widget.attachTemplateNodes=function(_492,_493,_494){var _495=dojo.dom.ELEMENT_NODE;function trim(str){return str.replace(/^\s+|\s+$/g,"")}if(!_492){_492=_493.domNode}if(_492.nodeType!=_495){return}var _497=_492.all||_492.getElementsByTagName("*");var _498=_493;for(var x=-1;x<_497.length;x++){var _49a=(x==-1)?_492:_497[x];var _49b=[];if(!_493.widgetsInTemplate||!_49a.getAttribute("dojoType")){for(var y=0;y<this.attachProperties.length;y++){var _49d=_49a.getAttribute(this.attachProperties[y]);if(_49d){_49b=_49d.split(";");for(var z=0;z<_49b.length;z++){if(dojo.lang.isArray(_493[_49b[z]])){_493[_49b[z]].push(_49a)}else{_493[_49b[z]]=_49a}}break}}var _49f=_49a.getAttribute(this.eventAttachProperty);if(_49f){var evts=_49f.split(";");for(var y=0;y<evts.length;y++){if((!evts[y])||(!evts[y].length)){continue}var _4a1=null;var tevt=trim(evts[y]);if(evts[y].indexOf(":")>=0){var _4a3=tevt.split(":");tevt=trim(_4a3[0]);_4a1=trim(_4a3[1])}if(!_4a1){_4a1=tevt}var tf=function(){var ntf=new String(_4a1);return function(evt){if(_498[ntf]){_498[ntf](dojo.event.browser.fixEvent(evt,this))}}}();dojo.event.browser.addListener(_49a,tevt,tf,false,true)}}for(var y=0;y<_494.length;y++){var _4a7=_49a.getAttribute(_494[y]);if((_4a7)&&(_4a7.length)){var _4a1=null;var _4a8=_494[y].substr(4);_4a1=trim(_4a7);var _4a9=[_4a1];if(_4a1.indexOf(";")>=0){_4a9=dojo.lang.map(_4a1.split(";"),trim)}for(var z=0;z<_4a9.length;z++){if(!_4a9[z].length){continue}var tf=function(){var ntf=new String(_4a9[z]);return function(evt){if(_498[ntf]){_498[ntf](dojo.event.browser.fixEvent(evt,this))}}}();dojo.event.browser.addListener(_49a,_4a8,tf,false,true)}}}}var _4ac=_49a.getAttribute(this.templateProperty);if(_4ac){_493[_4ac]=_49a}dojo.lang.forEach(dojo.widget.waiNames,function(name){var wai=dojo.widget.wai[name];var val=_49a.getAttribute(wai.name);if(val){if(val.indexOf("-")==-1){dojo.widget.wai.setAttr(_49a,wai.name,"role",val)}else{var _4b0=val.split("-");dojo.widget.wai.setAttr(_49a,wai.name,_4b0[0],_4b0[1])}}},this);var _4b1=_49a.getAttribute(this.onBuildProperty);if(_4b1){eval("var node = baseNode; var widget = targetObj; "+_4b1)}}};dojo.widget.getDojoEventsFromStr=function(h){var g=/(dojoOn([a-z]+)(\s?))=/gi;var d=h?h.match(g)||[]:[];var f=[];var c={};for(var b=0;b<d.length;b++){if(d[b].length<1){continue}var a=d[b].replace(/\s/,"");a=(a.slice(0,a.length-1));if(!c[a]){c[a]=true;f.push(a)}}return f};dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){if((arguments.length>0)&&(typeof arguments[0]=="object")){this.create(arguments[0])}},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(c,a,f,b,d){if(!this.isContainer){dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");return null}else{if(d==undefined){d=this.children.length}this.addWidgetAsDirectChild(c,a,f,b,d);this.registerChild(c,d)}return c},addWidgetAsDirectChild:function(d,c,g,b,a){if((!this.containerNode)&&(!c)){this.containerNode=this.domNode}var f=(c)?c:this.containerNode;if(!g){g="after"}if(!b){if(!f){f=dojo.body()}b=f.lastChild}if(!a){a=0}d.domNode.setAttribute("dojoinsertionindex",a);if(!b){f.appendChild(d.domNode)}else{if(g=="insertAtIndex"){dojo.dom.insertAtIndex(d.domNode,b.parentNode,a)}else{if((g=="after")&&(b===f.lastChild)){f.appendChild(d.domNode)}else{dojo.dom.insertAtPosition(d.domNode,f,g)}}}},registerChild:function(d,b){d.dojoInsertionIndex=b;var a=-1;for(var c=0;c<this.children.length;c++){if(this.children[c].dojoInsertionIndex<=b){a=c}}this.children.splice(a+1,0,d);d.parent=this;d.addedTo(this,a+1);delete dojo.widget.manager.topWidgets[d.widgetId]},removeChild:function(a){dojo.dom.removeNode(a.domNode);return dojo.widget.DomWidget.superclass.removeChild.call(this,a)},getFragNodeRef:function(a){if(!a){return null}if(!a[this.getNamespacedType()]){dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)")}return a[this.getNamespacedType()]["nodeRef"]},postInitialize:function(b,a,l){var k=this.getFragNodeRef(a);if(l&&(l.snarfChildDomOutput||!k)){l.addWidgetAsDirectChild(this,"","insertAtIndex","",b.dojoinsertionindex,k)}else{if(k){if(this.domNode&&(this.domNode!==k)){this._sourceNodeRef=dojo.dom.replaceNode(k,this.domNode)}}}if(l){l.registerChild(this,b.dojoinsertionindex)}else{dojo.widget.manager.topWidgets[this.widgetId]=this}if(this.widgetsInTemplate){var h=new dojo.xml.Parse();var f;var x=this.domNode.getElementsByTagName("*");for(var n=0;n<x.length;n++){if(x[n].getAttribute("dojoAttachPoint")=="subContainerWidget"){f=x[n]}if(x[n].getAttribute("dojoType")){x[n].setAttribute("isSubWidget",true)}}if(this.isContainer&&!this.containerNode){if(f){var c=this.getFragNodeRef(a);if(c){dojo.dom.moveChildren(c,f);a.dojoDontFollow=true}}else{dojo.debug("No subContainerWidget node can be found in template file for widget "+this)}}var v=h.parseElement(this.domNode,null,true);dojo.widget.getParser().createSubComponents(v,this);var t=[];var r=[this];var g;while((g=r.pop())){for(var n=0;n<g.children.length;n++){var p=g.children[n];if(p._processedSubWidgets||!p.extraArgs.issubwidget){continue}t.push(p);if(p.isContainer){r.push(p)}}}for(var n=0;n<t.length;n++){var o=t[n];if(o._processedSubWidgets){dojo.debug("This should not happen: widget._processedSubWidgets is already true!");return}o._processedSubWidgets=true;if(o.extraArgs.dojoattachevent){var d=o.extraArgs.dojoattachevent.split(";");for(var m=0;m<d.length;m++){var u=null;var s=dojo.string.trim(d[m]);if(s.indexOf(":")>=0){var q=s.split(":");s=dojo.string.trim(q[0]);u=dojo.string.trim(q[1])}if(!u){u=s}if(dojo.lang.isFunction(o[s])){dojo.event.kwConnect({srcObj:o,srcFunc:s,targetObj:this,targetFunc:u})}else{alert(s+" is not a function in widget "+o)}}}if(o.extraArgs.dojoattachpoint){this[o.extraArgs.dojoattachpoint]=o}}}if(this.isContainer&&!a.dojoDontFollow){dojo.widget.getParser().createSubComponents(a,this)}},buildRendering:function(b,d){var c=dojo.widget._templateCache[this.widgetType];if(b.templatecsspath){b.templateCssPath=b.templatecsspath}var a=b.templateCssPath||this.templateCssPath;if(a&&!dojo.widget._cssFiles[a.toString()]){if((!this.templateCssString)&&(a)){this.templateCssString=dojo.hostenv.getText(a);this.templateCssPath=null}dojo.widget._cssFiles[a.toString()]=true}if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){dojo.html.insertCssText(this.templateCssString,null,a);dojo.widget._cssStrings[this.templateCssString]=true}if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof c!="undefined")&&((c.string)||(c.node))))){this.buildFromTemplate(b,d)}else{this.domNode=this.getFragNodeRef(d)}this.fillInTemplate(b,d)},buildFromTemplate:function(m,o){var d=false;if(m.templatepath){m.templatePath=m.templatepath}dojo.widget.fillFromTemplateCache(this,m.templatePath,null,d);var l=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];if((l)&&(!d)){if(!this.templateString.length){this.templateString=l.string}if(!this.templateNode){this.templateNode=l.node}}var c=false;var f=null;var k=this.templateString;if((!this.templateNode)&&(this.templateString)){c=this.templateString.match(/\$\{([^\}]+)\}/g);if(c){var j=this.strings||{};for(var n in dojo.widget.defaultStrings){if(dojo.lang.isUndefined(j[n])){j[n]=dojo.widget.defaultStrings[n]}}for(var h=0;h<c.length;h++){var n=c[h];n=n.substring(2,n.length-1);var g=(n.substring(0,5)=="this.")?dojo.lang.getObjPathValue(n.substring(5),this):j[n];var b;if((g)||(dojo.lang.isString(g))){b=new String((dojo.lang.isFunction(g))?g.call(this,n,this.templateString):g);while(b.indexOf('"')>-1){b=b.replace('"',"&quot;")}k=k.replace(c[h],b)}}}else{this.templateNode=this.createNodesFromText(this.templateString,true)[0];if(!d){l.node=this.templateNode}}}if((!this.templateNode)&&(!c)){dojo.debug("DomWidget.buildFromTemplate: could not create template");return false}else{if(!c){f=this.templateNode.cloneNode(true);if(!f){return false}}else{f=this.createNodesFromText(k,true)[0]}}this.domNode=f;this.attachTemplateNodes();if(this.isContainer&&this.containerNode){var a=this.getFragNodeRef(o);if(a){dojo.dom.moveChildren(a,this.containerNode)}}},attachTemplateNodes:function(a,b){if(!a){a=this.domNode}if(!b){b=this}return dojo.widget.attachTemplateNodes(a,b,dojo.widget.getDojoEventsFromStr(this.templateString))},fillInTemplate:function(){},destroyRendering:function(){try{dojo.dom.destroyNode(this.domNode);delete this.domNode}catch(a){}if(this._sourceNodeRef){try{dojo.dom.destroyNode(this._sourceNodeRef)}catch(a){}}},createNodesFromText:function(){dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText")}});dojo.provide("dojo.html.display");dojo.html._toggle=function(c,b,a){c=dojo.byId(c);a(c,!b(c));return b(c)};dojo.html.show=function(a){a=dojo.byId(a);if(dojo.html.getStyleProperty(a,"display")=="none"){dojo.html.setStyle(a,"display",(a.dojoDisplayCache||""));a.dojoDisplayCache=undefined}};dojo.html.hide=function(a){a=dojo.byId(a);if(typeof a.dojoDisplayCache=="undefined"){var b=dojo.html.getStyleProperty(a,"display");if(b!="none"){a.dojoDisplayCache=b}}dojo.html.setStyle(a,"display","none")};dojo.html.setShowing=function(b,a){dojo.html[(a?"show":"hide")](b)};dojo.html.isShowing=function(a){return(dojo.html.getStyleProperty(a,"display")!="none")};dojo.html.toggleShowing=function(a){return dojo.html._toggle(a,dojo.html.isShowing,dojo.html.setShowing)};dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};dojo.html.suggestDisplayByTagName=function(b){b=dojo.byId(b);if(b&&b.tagName){var a=b.tagName.toLowerCase();return(a in dojo.html.displayMap?dojo.html.displayMap[a]:"block")}};dojo.html.setDisplay=function(b,a){dojo.html.setStyle(b,"display",((a instanceof String||typeof a=="string")?a:(a?dojo.html.suggestDisplayByTagName(b):"none")))};dojo.html.isDisplayed=function(a){return(dojo.html.getComputedStyle(a,"display")!="none")};dojo.html.toggleDisplay=function(a){return dojo.html._toggle(a,dojo.html.isDisplayed,dojo.html.setDisplay)};dojo.html.setVisibility=function(a,b){dojo.html.setStyle(a,"visibility",((b instanceof String||typeof b=="string")?b:(b?"visible":"hidden")))};dojo.html.isVisible=function(a){return(dojo.html.getComputedStyle(a,"visibility")!="hidden")};dojo.html.toggleVisibility=function(a){return dojo.html._toggle(a,dojo.html.isVisible,dojo.html.setVisibility)};dojo.html.setOpacity=function(g,f,d){g=dojo.byId(g);var c=dojo.render.html;if(!d){if(f>=1){if(c.ie){dojo.html.clearOpacity(g);return}else{f=0.999999}}else{if(f<0){f=0}}}if(c.ie){if(g.nodeName.toLowerCase()=="tr"){var b=g.getElementsByTagName("td");for(var a=0;a<b.length;a++){b[a].style.filter="Alpha(Opacity="+f*100+")"}}g.style.filter="Alpha(Opacity="+f*100+")"}else{if(c.moz){g.style.opacity=f;g.style.MozOpacity=f}else{if(c.safari){g.style.opacity=f;g.style.KhtmlOpacity=f}else{g.style.opacity=f}}}};dojo.html.clearOpacity=function(c){c=dojo.byId(c);var b=c.style;var a=dojo.render.html;if(a.ie){try{if(c.filters&&c.filters.alpha){b.filter=""}}catch(d){}}else{if(a.moz){b.opacity=1;b.MozOpacity=1}else{if(a.safari){b.opacity=1;b.KhtmlOpacity=1}else{b.opacity=1}}}};dojo.html.getOpacity=function(c){c=dojo.byId(c);var a=dojo.render.html;if(a.ie){var b=(c.filters&&c.filters.alpha&&typeof c.filters.alpha.opacity=="number"?c.filters.alpha.opacity:100)/100}else{var b=c.style.opacity||c.style.MozOpacity||c.style.KhtmlOpacity||1}return b>=0.999999?1:Number(b)};dojo.provide("dojo.html.layout");dojo.html.sumAncestorProperties=function(b,d){b=dojo.byId(b);if(!b){return 0}var a=0;while(b){if(dojo.html.getComputedStyle(b,"position")=="fixed"){return 0}var c=b[d];if(c){a+=c-0;if(b==dojo.body()){break}}b=b.parentNode}return a};dojo.html.setStyleAttributes=function(d,h){d=dojo.byId(d);var f=h.replace(/(;)?\s*$/,"").split(";");for(var b=0;b<f.length;b++){var c=f[b].split(":");var a=c[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();var g=c[1].replace(/\s*$/,"").replace(/^\s*/,"");switch(a){case"opacity":dojo.html.setOpacity(d,g);break;case"content-height":dojo.html.setContentBox(d,{height:g});break;case"content-width":dojo.html.setContentBox(d,{width:g});break;case"outer-height":dojo.html.setMarginBox(d,{height:g});break;case"outer-width":dojo.html.setMarginBox(d,{width:g});break;default:d.style[dojo.html.toCamelCase(a)]=g}}};dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_51d,_51e){node=dojo.byId(node,node.ownerDocument);var ret={x:0,y:0};var bs=dojo.html.boxSizing;if(!_51e){_51e=bs.CONTENT_BOX}var _521=2;var _522;switch(_51e){case bs.MARGIN_BOX:_522=3;break;case bs.BORDER_BOX:_522=2;break;case bs.PADDING_BOX:default:_522=1;break;case bs.CONTENT_BOX:_522=0;break}var h=dojo.render.html;var db=document.body||document.documentElement;if(h.ie){with(node.getBoundingClientRect()){ret.x=left-2;ret.y=top-2}}else{if(document.getBoxObjectFor){_521=1;try{var bo=document.getBoxObjectFor(node);ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop")}catch(e){}}else{if(node.offsetParent){var _526;if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){_526=db}else{_526=db.parentNode}if(node.parentNode!=db){var nd=node;if(dojo.render.html.opera){nd=db}ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop")}var _528=node;do{var n=_528.offsetLeft;if(!h.opera||n>0){ret.x+=isNaN(n)?0:n}var m=_528.offsetTop;ret.y+=isNaN(m)?0:m;_528=_528.offsetParent}while((_528!=_526)&&(_528!=null))}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y}}}}if(_51d){var _52b=dojo.html.getScroll();ret.y+=_52b.top;ret.x+=_52b.left}var _52c=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];if(_521>_522){for(var i=_522;i<_521;++i){ret.y+=_52c[i](node,"top");ret.x+=_52c[i](node,"left")}}else{if(_521<_522){for(var i=_522;i>_521;--i){ret.y-=_52c[i-1](node,"top");ret.x-=_52c[i-1](node,"left")}}}ret.top=ret.y;ret.left=ret.x;return ret};dojo.html.isPositionAbsolute=function(a){return(dojo.html.getComputedStyle(a,"position")=="absolute")};dojo.html._sumPixelValues=function(d,f,c){var b=0;for(var a=0;a<f.length;a++){b+=dojo.html.getPixelValue(d,f[a],c)}return b};dojo.html.getMargin=function(a){return{width:dojo.html._sumPixelValues(a,["margin-left","margin-right"],(dojo.html.getComputedStyle(a,"position")=="absolute")),height:dojo.html._sumPixelValues(a,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(a,"position")=="absolute"))}};dojo.html.getBorder=function(a){return{width:dojo.html.getBorderExtent(a,"left")+dojo.html.getBorderExtent(a,"right"),height:dojo.html.getBorderExtent(a,"top")+dojo.html.getBorderExtent(a,"bottom")}};dojo.html.getBorderExtent=function(b,a){return(dojo.html.getStyle(b,"border-"+a+"-style")=="none"?0:dojo.html.getPixelValue(b,"border-"+a+"-width"))};dojo.html.getMarginExtent=function(b,a){return dojo.html._sumPixelValues(b,["margin-"+a],dojo.html.isPositionAbsolute(b))};dojo.html.getPaddingExtent=function(b,a){return dojo.html._sumPixelValues(b,["padding-"+a],true)};dojo.html.getPadding=function(a){return{width:dojo.html._sumPixelValues(a,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(a,["padding-top","padding-bottom"],true)}};dojo.html.getPadBorder=function(a){var c=dojo.html.getPadding(a);var b=dojo.html.getBorder(a);return{width:c.width+b.width,height:c.height+b.height}};dojo.html.getBoxSizing=function(f){var d=dojo.render.html;var b=dojo.html.boxSizing;if(((d.ie)||(d.opera))&&f.nodeName.toLowerCase()!="img"){var a=document.compatMode;if((a=="BackCompat")||(a=="QuirksMode")){return b.BORDER_BOX}else{return b.CONTENT_BOX}}else{if(arguments.length==0){f=document.documentElement}var c;if(!d.ie){c=dojo.html.getStyle(f,"-moz-box-sizing");if(!c){c=dojo.html.getStyle(f,"box-sizing")}}return(c?c:b.CONTENT_BOX)}};dojo.html.isBorderBox=function(a){return(dojo.html.getBoxSizing(a)==dojo.html.boxSizing.BORDER_BOX)};dojo.html.getBorderBox=function(a){a=dojo.byId(a);return{width:a.offsetWidth,height:a.offsetHeight}};dojo.html.getPaddingBox=function(c){var b=dojo.html.getBorderBox(c);var a=dojo.html.getBorder(c);return{width:b.width-a.width,height:b.height-a.height}};dojo.html.getContentBox=function(b){b=dojo.byId(b);var a=dojo.html.getPadBorder(b);return{width:b.offsetWidth-a.width,height:b.offsetHeight-a.height}};dojo.html.setContentBox=function(f,c){f=dojo.byId(f);var a=0;var h=0;var d=dojo.html.isBorderBox(f);var g=(d?dojo.html.getPadBorder(f):{width:0,height:0});var b={};if(typeof c.width!="undefined"){a=c.width+g.width;b.width=dojo.html.setPositivePixelValue(f,"width",a)}if(typeof c.height!="undefined"){h=c.height+g.height;b.height=dojo.html.setPositivePixelValue(f,"height",h)}return b};dojo.html.getMarginBox=function(b){var c=dojo.html.getBorderBox(b);var a=dojo.html.getMargin(b);return{width:c.width+a.width,height:c.height+a.height}};dojo.html.setMarginBox=function(i,d){i=dojo.byId(i);var c=0;var a=0;var g=dojo.html.isBorderBox(i);var h=(!g?dojo.html.getPadBorder(i):{width:0,height:0});var f=dojo.html.getMargin(i);var b={};if(typeof d.width!="undefined"){c=d.width-h.width;c-=f.width;b.width=dojo.html.setPositivePixelValue(i,"width",c)}if(typeof d.height!="undefined"){a=d.height-h.height;a-=f.height;b.height=dojo.html.setPositivePixelValue(i,"height",a)}return b};dojo.html.getElementBox=function(c,b){var a=dojo.html.boxSizing;switch(b){case a.MARGIN_BOX:return dojo.html.getMarginBox(c);case a.BORDER_BOX:return dojo.html.getBorderBox(c);case a.PADDING_BOX:return dojo.html.getPaddingBox(c);case a.CONTENT_BOX:default:return dojo.html.getContentBox(c)}};dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(b,a,h){if(b instanceof Array||typeof b=="array"){dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");while(b.length<4){b.push(0)}while(b.length>4){b.pop()}var c={left:b[0],top:b[1],width:b[2],height:b[3]}}else{if(!b.nodeType&&!(b instanceof String||typeof b=="string")&&("width" in b||"height" in b||"left" in b||"x" in b||"top" in b||"y" in b)){var c={left:b.left||b.x||0,top:b.top||b.y||0,width:b.width||0,height:b.height||0}}else{var f=dojo.byId(b);var g=dojo.html.abs(f,a,h);var d=dojo.html.getMarginBox(f);var c={left:g.left,top:g.top,width:d.width,height:d.height}}}c.x=c.left;c.y=c.top;return c};dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(b,a){return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width")};dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height")};dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width")};dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height")};dojo.html.getTotalOffset=function(c,a,b){return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,a)};dojo.html.getAbsoluteX=function(b,a){return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x")};dojo.html.getAbsoluteY=function(b,a){return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y")};dojo.html.totalOffsetLeft=function(b,a){return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left")};dojo.html.totalOffsetTop=function(b,a){return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top")};dojo.html.getMarginWidth=function(a){return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width")};dojo.html.getMarginHeight=function(a){return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height")};dojo.html.getBorderWidth=function(a){return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width")};dojo.html.getBorderHeight=function(a){return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height")};dojo.html.getPaddingWidth=function(a){return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width")};dojo.html.getPaddingHeight=function(a){return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height")};dojo.html.getPadBorderWidth=function(a){return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width")};dojo.html.getPadBorderHeight=function(a){return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height")};dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width")};dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height")};dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width")};dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height")};dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(b,a){return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width")};dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(b,a){return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height")};dojo.provide("dojo.html.util");dojo.html.getElementWindow=function(a){return dojo.html.getDocumentWindow(a.ownerDocument)};dojo.html.getDocumentWindow=function(c){if(dojo.render.html.safari&&!c._parentWindow){var a=function(f){f.document._parentWindow=f;for(var d=0;d<f.frames.length;d++){a(f.frames[d])}};a(window.top)}if(dojo.render.html.ie&&window!==document.parentWindow&&!c._parentWindow){c.parentWindow.execScript("document._parentWindow = window;","Javascript");var b=c._parentWindow;c._parentWindow=null;return b}return c._parentWindow||c.parentWindow||c.defaultView};dojo.html.gravity=function(node,e){node=dojo.byId(node);var _589=dojo.html.getCursorPosition(e);with(dojo.html){var _58a=getAbsolutePosition(node,true);var bb=getBorderBox(node);var _58c=_58a.x+(bb.width/2);var _58d=_58a.y+(bb.height/2)}with(dojo.html.gravity){return((_589.x<_58c?WEST:EAST)|(_589.y<_58d?NORTH:SOUTH))}};dojo.html.gravity.NORTH=1;dojo.html.gravity.SOUTH=1<<1;dojo.html.gravity.EAST=1<<2;dojo.html.gravity.WEST=1<<3;dojo.html.overElement=function(j,c){j=dojo.byId(j);var i=dojo.html.getCursorPosition(c);var d=dojo.html.getBorderBox(j);var h=dojo.html.getAbsolutePosition(j,true,dojo.html.boxSizing.BORDER_BOX);var g=h.y;var f=g+d.height;var a=h.x;var b=a+d.width;return(i.x>=a&&i.x<=b&&i.y>=g&&i.y<=f)};dojo.html.renderedTextContent=function(g){g=dojo.byId(g);var b="";if(g==null){return b}for(var f=0;f<g.childNodes.length;f++){switch(g.childNodes[f].nodeType){case 1:case 5:var d="unknown";try{d=dojo.html.getStyle(g.childNodes[f],"display")}catch(h){}switch(d){case"block":case"list-item":case"run-in":case"table":case"table-row-group":case"table-header-group":case"table-footer-group":case"table-row":case"table-column-group":case"table-column":case"table-cell":case"table-caption":b+="\n";b+=dojo.html.renderedTextContent(g.childNodes[f]);b+="\n";break;case"none":break;default:if(g.childNodes[f].tagName&&g.childNodes[f].tagName.toLowerCase()=="br"){b+="\n"}else{b+=dojo.html.renderedTextContent(g.childNodes[f])}break}break;case 3:case 2:case 4:var j=g.childNodes[f].nodeValue;var c="unknown";try{c=dojo.html.getStyle(g,"text-transform")}catch(h){}switch(c){case"capitalize":var a=j.split(" ");for(var f=0;f<a.length;f++){a[f]=a[f].charAt(0).toUpperCase()+a[f].substring(1)}j=a.join(" ");break;case"uppercase":j=j.toUpperCase();break;case"lowercase":j=j.toLowerCase();break;default:break}switch(c){case"nowrap":break;case"pre-wrap":break;case"pre-line":break;case"pre":break;default:j=j.replace(/\s+/," ");if(/\s$/.test(b)){j.replace(/^\s/,"")}break}b+=j;break;default:break}}return b};dojo.html.createNodesFromText=function(d,c){if(c){d=d.replace(/^\s+|\s+$/g,"")}var b=dojo.doc().createElement("div");b.style.visibility="hidden";dojo.body().appendChild(b);var h="none";if((/^<t[dh][\s\r\n>]/i).test(d.replace(/^\s+/))){d="<table><tbody><tr>"+d+"</tr></tbody></table>";h="cell"}else{if((/^<tr[\s\r\n>]/i).test(d.replace(/^\s+/))){d="<table><tbody>"+d+"</tbody></table>";h="row"}else{if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(d.replace(/^\s+/))){d="<table>"+d+"</table>";h="section"}}}b.innerHTML=d;if(b.normalize){b.normalize()}var g=null;switch(h){case"cell":g=b.getElementsByTagName("tr")[0];break;case"row":g=b.getElementsByTagName("tbody")[0];break;case"section":g=b.getElementsByTagName("table")[0];break;default:g=b;break}var f=[];for(var a=0;a<g.childNodes.length;a++){f.push(g.childNodes[a].cloneNode(true))}b.style.display="none";dojo.html.destroyNode(b);return f};dojo.html.placeOnScreen=function(v,f,d,c,b,l,j){if(f instanceof Array||typeof f=="array"){j=l;l=b;b=c;c=d;d=f[1];f=f[0]}if(l instanceof String||typeof l=="string"){l=l.split(",")}if(!isNaN(c)){c=[Number(c),Number(c)]}else{if(!(c instanceof Array||typeof c=="array")){c=[0,0]}}var i=dojo.html.getScroll().offset;var o=dojo.html.getViewport();v=dojo.byId(v);var g=v.style.display;v.style.display="";var a=dojo.html.getBorderBox(v);var n=a.width;var D=a.height;v.style.display=g;if(!(l instanceof Array||typeof l=="array")){l=["TL"]}var C,B,A=Infinity,z;for(var u=0;u<l.length;++u){var t=l[u];var q=true;var s=f-(t.charAt(1)=="L"?0:n)+c[0]*(t.charAt(1)=="L"?1:-1);var p=d-(t.charAt(0)=="T"?0:D)+c[1]*(t.charAt(0)=="T"?1:-1);if(b){s-=i.x;p-=i.y}if(s<0){s=0;q=false}if(p<0){p=0;q=false}var m=s+n;if(m>o.width){m=o.width-n;q=false}else{m=s}m=Math.max(c[0],m)+i.x;var k=p+D;if(k>o.height){k=o.height-D;q=false}else{k=p}k=Math.max(c[1],k)+i.y;if(q){C=m;B=k;A=0;z=t;break}else{var r=Math.pow(m-s-i.x,2)+Math.pow(k-p-i.y,2);if(A>r){A=r;C=m;B=k;z=t}}}if(!j){v.style.left=C+"px";v.style.top=B+"px"}return{left:C,top:B,x:C,y:B,dist:A,corner:z}};dojo.html.placeOnScreenPoint=function(f,c,d,b,a){dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");return dojo.html.placeOnScreen(f,c,d,b,a,["TL","TR","BL","BR"])};dojo.html.placeOnScreenAroundElement=function(p,g,d,a,r,q){var j,i=Infinity;g=dojo.byId(g);var h=g.style.display;g.style.display="";var c=dojo.html.getElementBox(g,a);var f=c.width;var b=c.height;var s=dojo.html.getAbsolutePosition(g,true,a);g.style.display=h;for(var o in r){var k,n,m;var l=r[o];n=s.x+(o.charAt(1)=="L"?0:f);m=s.y+(o.charAt(0)=="T"?0:b);k=dojo.html.placeOnScreen(p,n,m,d,true,l,true);if(k.dist==0){j=k;break}else{if(i>k.dist){i=k.dist;j=k}}}if(!q){p.style.left=j.left+"px";p.style.top=j.top+"px"}return j};dojo.html.scrollIntoView=function(b){if(!b){return}if(dojo.render.html.ie){if(dojo.html.getBorderBox(b.parentNode).height<=b.parentNode.scrollHeight){b.scrollIntoView(false)}}else{if(dojo.render.html.mozilla){b.scrollIntoView(false)}else{var a=b.parentNode;var d=a.scrollTop+dojo.html.getBorderBox(a).height;var c=b.offsetTop+dojo.html.getMarginBox(b).height;if(d<c){a.scrollTop+=(c-d)}else{if(a.scrollTop>b.offsetTop){a.scrollTop-=(a.scrollTop-b.offsetTop)}}}}};dojo.provide("dojo.gfx.color");dojo.gfx.color.Color=function(i,h,c,d){if(dojo.lang.isArray(i)){this.r=i[0];this.g=i[1];this.b=i[2];this.a=i[3]||1}else{if(dojo.lang.isString(i)){var f=dojo.gfx.color.extractRGB(i);this.r=f[0];this.g=f[1];this.b=f[2];this.a=h||1}else{if(i instanceof dojo.gfx.color.Color){this.r=i.r;this.b=i.b;this.g=i.g;this.a=i.a}else{this.r=i;this.g=h;this.b=c;this.a=d}}}};dojo.gfx.color.Color.fromArray=function(a){return new dojo.gfx.color.Color(a[0],a[1],a[2],a[3])};dojo.extend(dojo.gfx.color.Color,{toRgb:function(a){if(a){return this.toRgba()}else{return[this.r,this.g,this.b]}},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return dojo.gfx.color.rgb2hex(this.toRgb())},toCss:function(){return"rgb("+this.toRgb().join()+")"},toString:function(){return this.toHex()},blend:function(c,b){var a=null;if(dojo.lang.isArray(c)){a=c}else{if(c instanceof dojo.gfx.color.Color){a=c.toRgb()}else{a=new dojo.gfx.color.Color(c).toRgb()}}return dojo.gfx.color.blend(this.toRgb(),a,b)}});dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};dojo.gfx.color.blend=function(g,f,h){if(typeof g=="string"){return dojo.gfx.color.blendHex(g,f,h)}if(!h){h=0}h=Math.min(Math.max(-1,h),1);h=((h+1)/2);var i=[];for(var d=0;d<3;d++){i[d]=parseInt(f[d]+((g[d]-f[d])*h))}return i};dojo.gfx.color.blendHex=function(d,c,f){return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(d),dojo.gfx.color.hex2rgb(c),f))};dojo.gfx.color.extractRGB=function(b){var d="0123456789abcdef";b=b.toLowerCase();if(b.indexOf("rgb")==0){var a=b.match(/rgba*\((\d+), *(\d+), *(\d+)/i);var c=a.splice(1,3);return c}else{var f=dojo.gfx.color.hex2rgb(b);if(f){return f}else{return dojo.gfx.color.named[b]||[255,255,255]}}};dojo.gfx.color.hex2rgb=function(c){var d="0123456789ABCDEF";var a=new Array(3);if(c.indexOf("#")==0){c=c.substring(1)}c=c.toUpperCase();if(c.replace(new RegExp("["+d+"]","g"),"")!=""){return null}if(c.length==3){a[0]=c.charAt(0)+c.charAt(0);a[1]=c.charAt(1)+c.charAt(1);a[2]=c.charAt(2)+c.charAt(2)}else{a[0]=c.substring(0,2);a[1]=c.substring(2,4);a[2]=c.substring(4)}for(var b=0;b<a.length;b++){a[b]=d.indexOf(a[b].charAt(0))*16+d.indexOf(a[b].charAt(1))}return a};dojo.gfx.color.rgb2hex=function(f,d,a){if(dojo.lang.isArray(f)){d=f[1]||0;a=f[2]||0;f=f[0]||0}var c=dojo.lang.map([f,d,a],function(b){b=new Number(b);var g=b.toString(16);while(g.length<2){g="0"+g}return g});c.unshift("#");return c.join("")};dojo.provide("dojo.lfx.Animation");dojo.lfx.Line=function(b,a){this.start=b;this.end=a;if(dojo.lang.isArray(b)){var c=[];dojo.lang.forEach(this.start,function(f,d){c[d]=this.end[d]-f},this);this.getValue=function(f){var d=[];dojo.lang.forEach(this.start,function(h,g){d[g]=(c[g]*f)+h},this);return d}}else{var c=a-b;this.getValue=function(d){return(c*d)+this.start}}};if((dojo.render.html.khtml)&&(!dojo.render.html.safari)){dojo.lfx.easeDefault=function(a){return(parseFloat("0.5")+((Math.sin((a+parseFloat("1.5"))*Math.PI))/2))}}else{dojo.lfx.easeDefault=function(a){return(0.5+((Math.sin((a+1.5)*Math.PI))/2))}}dojo.lfx.easeIn=function(a){return Math.pow(a,3)};dojo.lfx.easeOut=function(a){return(1-Math.pow(1-a,3))};dojo.lfx.easeInOut=function(a){return((3*Math.pow(a,2))-(2*Math.pow(a,3)))};dojo.lfx.IAnimation=function(){};dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:10,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(b,d,c){if(!c){c=d;d=this}c=dojo.lang.hitch(d,c);var a=this[b]||function(){};this[b]=function(){var f=a.apply(this,arguments);c.apply(this,arguments);return f};return this},fire:function(a,b){if(this[a]){this[a].apply(this,(b||[]))}return this},repeat:function(a){this.repeatCount=a;return this},_active:false,_paused:false});dojo.lfx.Animation=function(g,f,d,c,b,a){dojo.lfx.IAnimation.call(this);if(dojo.lang.isNumber(g)||(!g&&f.getValue)){a=b;b=c;c=d;d=f;f=g;g=null}else{if(g.getValue||dojo.lang.isArray(g)){a=c;b=d;c=f;d=g;f=null;g=null}}if(dojo.lang.isArray(d)){this.curve=new dojo.lfx.Line(d[0],d[1])}else{this.curve=d}if(f!=null&&f>0){this.duration=f}if(b){this.repeatCount=b}if(a){this.rate=a}if(g){dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(h){if(g[h]){this.connect(h,g[h])}},this)}if(c&&dojo.lang.isFunction(c)){this.easing=c}};dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(b,a){if(a){clearTimeout(this._timer);this._active=false;this._paused=false;this._percent=0}else{if(this._active&&!this._paused){return this}}this.fire("handler",["beforeBegin"]);this.fire("beforeBegin");if(b>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,a)}),b);return this}this._startTime=new Date().valueOf();if(this._paused){this._startTime-=(this.duration*this._percent/100)}this._endTime=this._startTime+this.duration;this._active=true;this._paused=false;var d=this._percent/100;var c=this.curve.getValue(d);if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount}this.fire("handler",["begin",c]);this.fire("onBegin",[c])}this.fire("handler",["play",c]);this.fire("onPlay",[c]);this._cycle();return this},pause:function(){clearTimeout(this._timer);if(!this._active){return this}this._paused=true;var a=this.curve.getValue(this._percent/100);this.fire("handler",["pause",a]);this.fire("onPause",[a]);return this},gotoPercent:function(b,a){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=b;if(a){this.play()}return this},stop:function(b){clearTimeout(this._timer);var c=this._percent/100;if(b){c=1}var a=this.curve.getValue(c);this.fire("handler",["stop",a]);this.fire("onStop",[a]);this._active=false;this._paused=false;return this},status:function(){if(this._active){return this._paused?"paused":"playing"}else{return"stopped"}return this},_cycle:function(){clearTimeout(this._timer);if(this._active){var c=new Date().valueOf();var a=(c-this._startTime)/(this._endTime-this._startTime);if(a>=1){a=1;this._percent=100}else{this._percent=a*100}if((this.easing)&&(dojo.lang.isFunction(this.easing))){a=this.easing(a)}var b=this.curve.getValue(a);this.fire("handler",["animate",b]);this.fire("onAnimate",[b]);if(a<1){this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate)}else{this._active=false;this.fire("handler",["end"]);this.fire("onEnd");if(this.repeatCount>0){this.repeatCount--;this.play(null,true)}else{if(this.repeatCount==-1){this.play(null,true)}else{if(this._startRepeatCount){this.repeatCount=this._startRepeatCount;this._startRepeatCount=0}}}}}return this}});dojo.lfx.Combine=function(b){dojo.lfx.IAnimation.call(this);this._anims=[];this._animsEnded=0;var a=arguments;if(a.length==1&&(dojo.lang.isArray(a[0])||dojo.lang.isArrayLike(a[0]))){a=a[0]}dojo.lang.forEach(a,function(c){this._anims.push(c);c.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"))},this)};dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(b,a){if(!this._anims.length){return this}this.fire("beforeBegin");if(b>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,a)}),b);return this}if(a||this._anims[0].percent==0){this.fire("onBegin")}this.fire("onPlay");this._animsCall("play",null,a);return this},pause:function(){this.fire("onPause");this._animsCall("pause");return this},stop:function(a){this.fire("onStop");this._animsCall("stop",a);return this},_onAnimsEnded:function(){this._animsEnded++;if(this._animsEnded>=this._anims.length){this.fire("onEnd")}return this},_animsCall:function(d){var b=[];if(arguments.length>1){for(var c=1;c<arguments.length;c++){b.push(arguments[c])}}var a=this;dojo.lang.forEach(this._anims,function(f){f[d](b)},a);return this}});dojo.lfx.Chain=function(c){dojo.lfx.IAnimation.call(this);this._anims=[];this._currAnim=-1;var b=arguments;if(b.length==1&&(dojo.lang.isArray(b[0])||dojo.lang.isArrayLike(b[0]))){b=b[0]}var a=this;dojo.lang.forEach(b,function(f,d,g){this._anims.push(f);if(d<g.length-1){f.connect("onEnd",dojo.lang.hitch(this,"_playNext"))}else{f.connect("onEnd",dojo.lang.hitch(this,function(){this.fire("onEnd")}))}},this)};dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(c,b){if(!this._anims.length){return this}if(b||!this._anims[this._currAnim]){this._currAnim=0}var a=this._anims[this._currAnim];this.fire("beforeBegin");if(c>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,b)}),c);return this}if(a){if(this._currAnim==0){this.fire("handler",["begin",this._currAnim]);this.fire("onBegin",[this._currAnim])}this.fire("onPlay",[this._currAnim]);a.play(null,b)}return this},pause:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].pause();this.fire("onPause",[this._currAnim])}return this},playPause:function(){if(this._anims.length==0){return this}if(this._currAnim==-1){this._currAnim=0}var a=this._anims[this._currAnim];if(a){if(!a._active||a._paused){this.play()}else{this.pause()}}return this},stop:function(){var a=this._anims[this._currAnim];if(a){a.stop();this.fire("onStop",[this._currAnim])}return a},_playNext:function(){if(this._currAnim==-1||this._anims.length==0){return this}this._currAnim++;if(this._anims[this._currAnim]){this._anims[this._currAnim].play(null,true)}return this}});dojo.lfx.combine=function(b){var a=arguments;if(dojo.lang.isArray(arguments[0])){a=arguments[0]}if(a.length==1){return a[0]}return new dojo.lfx.Combine(a)};dojo.lfx.chain=function(b){var a=arguments;if(dojo.lang.isArray(arguments[0])){a=arguments[0]}if(a.length==1){return a[0]}return new dojo.lfx.Chain(a)};dojo.provide("dojo.html.color");dojo.html.getBackgroundColor=function(b){b=dojo.byId(b);var a;do{a=dojo.html.getStyle(b,"background-color");if(a.toLowerCase()=="rgba(0, 0, 0, 0)"){a="transparent"}if(b==document.getElementsByTagName("body")[0]){b=null;break}b=b.parentNode}while(b&&dojo.lang.inArray(["transparent",""],a));if(a=="transparent"){a=[255,255,255,0]}else{a=dojo.gfx.color.extractRGB(a)}return a};dojo.provide("dojo.lfx.html");dojo.lfx.html._byId=function(a){if(!a){return[]}if(dojo.lang.isArrayLike(a)){if(!a.alreadyChecked){var b=[];dojo.lang.forEach(a,function(c){b.push(dojo.byId(c))});b.alreadyChecked=true;return b}else{return a}}else{var b=[];b.push(dojo.byId(a));b.alreadyChecked=true;return b}};dojo.lfx.html.propertyAnimation=function(k,j,i,h,f){k=dojo.lfx.html._byId(k);var d={propertyMap:j,nodes:k,duration:i,easing:h||dojo.lfx.easeDefault};var l=function(n){if(n.nodes.length==1){var o=n.propertyMap;if(!dojo.lang.isArray(n.propertyMap)){var p=[];for(var q in o){o[q].property=q;p.push(o[q])}o=n.propertyMap=p}dojo.lang.forEach(o,function(r){if(dj_undef("start",r)){if(r.property!="opacity"){r.start=parseInt(dojo.html.getComputedStyle(n.nodes[0],r.property))}else{r.start=dojo.html.getOpacity(n.nodes[0])}}})}};var g=function(o){var n=[];dojo.lang.forEach(o,function(p){n.push(Math.round(p))});return n};var b=function(r,o){r=dojo.byId(r);if(!r||!r.style){return}for(var p in o){try{if(p=="opacity"){dojo.html.setOpacity(r,o[p])}else{r.style[p]=o[p]}}catch(q){dojo.debug(q)}}};var a=function(n){this._properties=n;this.diffs=new Array(n.length);dojo.lang.forEach(n,function(p,o){if(dojo.lang.isFunction(p.start)){p.start=p.start(p,o)}if(dojo.lang.isFunction(p.end)){p.end=p.end(p,o)}if(dojo.lang.isArray(p.start)){this.diffs[o]=null}else{if(p.start instanceof dojo.gfx.color.Color){p.startRgb=p.start.toRgb();p.endRgb=p.end.toRgb()}else{this.diffs[o]=p.end-p.start}}},this);this.getValue=function(p){var o={};dojo.lang.forEach(this._properties,function(t,r){var s=null;if(dojo.lang.isArray(t.start)){}else{if(t.start instanceof dojo.gfx.color.Color){s=(t.units||"rgb")+"(";for(var q=0;q<t.startRgb.length;q++){s+=Math.round(((t.endRgb[q]-t.startRgb[q])*p)+t.startRgb[q])+(q<t.startRgb.length-1?",":"")}s+=")"}else{s=((this.diffs[r])*p)+t.start+(t.property!="opacity"?t.units||"px":"")}}o[dojo.html.toCamelCase(t.property)]=s},this);return o}};var c=new dojo.lfx.Animation({beforeBegin:function(){l(d);c.curve=new a(d.propertyMap)},onAnimate:function(n){dojo.lang.forEach(d.nodes,function(o){b(o,n)})}},d.duration,null,d.easing);if(f){for(var m in f){if(dojo.lang.isFunction(f[m])){c.connect(m,c,f[m])}}}return c};dojo.lfx.html._makeFadeable=function(b){var a=function(c){if(dojo.render.html.ie){if((c.style.zoom.length==0)&&(dojo.html.getStyle(c,"zoom")=="normal")){c.style.zoom="1"}if((c.style.width.length==0)&&(dojo.html.getStyle(c,"width")=="auto")){c.style.width="auto"}}};if(dojo.lang.isArrayLike(b)){dojo.lang.forEach(b,a)}else{a(b)}};dojo.lfx.html.fade=function(b,g,f,d,c){b=dojo.lfx.html._byId(b);var a={property:"opacity"};if(!dj_undef("start",g)){a.start=g.start}else{a.start=function(){return dojo.html.getOpacity(b[0])}}if(!dj_undef("end",g)){a.end=g.end}else{dojo.raise("dojo.lfx.html.fade needs an end value")}var h=dojo.lfx.propertyAnimation(b,[a],f,d);h.connect("beforeBegin",function(){dojo.lfx.html._makeFadeable(b)});if(c){h.connect("onEnd",function(){c(b,h)})}return h};dojo.lfx.html.fadeIn=function(a,d,c,b){return dojo.lfx.html.fade(a,{end:1},d,c,b)};dojo.lfx.html.fadeOut=function(d,c,b,a){return dojo.lfx.html.fade(d,{end:0},c,b,a)};dojo.lfx.html.fadeShow=function(b,a,d,c){b=dojo.lfx.html._byId(b);dojo.lang.forEach(b,function(g){dojo.html.setOpacity(g,0)});var f=dojo.lfx.html.fadeIn(b,a,d,c);f.connect("beforeBegin",function(){if(dojo.lang.isArrayLike(b)){dojo.lang.forEach(b,dojo.html.show)}else{dojo.html.show(b)}});return f};dojo.lfx.html.fadeHide=function(d,b,c,a){var f=dojo.lfx.html.fadeOut(d,b,c,function(){if(dojo.lang.isArrayLike(d)){dojo.lang.forEach(d,dojo.html.hide)}else{dojo.html.hide(d)}if(a){a(d,f)}});return f};dojo.lfx.html.wipeIn=function(_683,_684,_685,_686){_683=dojo.lfx.html._byId(_683);var _687=[];dojo.lang.forEach(_683,function(node){var _689={};var _68a,_68b,_68c;with(node.style){_68a=top;_68b=left;_68c=position;top="-9999px";left="-9999px";position="absolute";display=""}var _68d=dojo.html.getBorderBox(node).height;with(node.style){top=_68a;left=_68b;position=_68c;display="none"}var anim=dojo.lfx.propertyAnimation(node,{height:{start:1,end:function(){return _68d}}},_684,_685);anim.connect("beforeBegin",function(){_689.overflow=node.style.overflow;_689.height=node.style.height;with(node.style){overflow="hidden";height="1px"}dojo.html.show(node)});anim.connect("onEnd",function(){with(node.style){overflow=_689.overflow;height=_689.height}if(_686){_686(node,anim)}});_687.push(anim)});return dojo.lfx.combine(_687)};dojo.lfx.html.wipeOut=function(_68f,_690,_691,_692){_68f=dojo.lfx.html._byId(_68f);var _693=[];dojo.lang.forEach(_68f,function(node){var _695={};var anim=dojo.lfx.propertyAnimation(node,{height:{start:function(){return dojo.html.getContentBox(node).height},end:1}},_690,_691,{beforeBegin:function(){_695.overflow=node.style.overflow;_695.height=node.style.height;with(node.style){overflow="hidden"}dojo.html.show(node)},onEnd:function(){dojo.html.hide(node);with(node.style){overflow=_695.overflow;height=_695.height}if(_692){_692(node,anim)}}});_693.push(anim)});return dojo.lfx.combine(_693)};dojo.lfx.html.slideTo=function(f,c,a,h,g){f=dojo.lfx.html._byId(f);var d=[];var b=dojo.html.getComputedStyle;if(dojo.lang.isArray(c)){dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");c={top:c[0],left:c[1]}}dojo.lang.forEach(f,function(i){var l=null;var k=null;var m=(function(){var n=i;return function(){var p=b(n,"position");l=(p=="absolute"?i.offsetTop:parseInt(b(i,"top"))||0);k=(p=="absolute"?i.offsetLeft:parseInt(b(i,"left"))||0);if(!dojo.lang.inArray(["absolute","relative"],p)){var o=dojo.html.abs(n,true);dojo.html.setStyleAttributes(n,"position:absolute;top:"+o.y+"px;left:"+o.x+"px;");l=o.y;k=o.x}}})();m();var j=dojo.lfx.propertyAnimation(i,{top:{start:l,end:(c.top||0)},left:{start:k,end:(c.left||0)}},a,h,{beforeBegin:m});if(g){j.connect("onEnd",function(){g(f,j)})}d.push(j)});return dojo.lfx.combine(d)};dojo.lfx.html.slideBy=function(d,b,h,g,f){d=dojo.lfx.html._byId(d);var c=[];var a=dojo.html.getComputedStyle;if(dojo.lang.isArray(b)){dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");b={top:b[0],left:b[1]}}dojo.lang.forEach(d,function(i){var l=null;var k=null;var m=(function(){var n=i;return function(){var p=a(n,"position");l=(p=="absolute"?i.offsetTop:parseInt(a(i,"top"))||0);k=(p=="absolute"?i.offsetLeft:parseInt(a(i,"left"))||0);if(!dojo.lang.inArray(["absolute","relative"],p)){var o=dojo.html.abs(n,true);dojo.html.setStyleAttributes(n,"position:absolute;top:"+o.y+"px;left:"+o.x+"px;");l=o.y;k=o.x}}})();m();var j=dojo.lfx.propertyAnimation(i,{top:{start:l,end:l+(b.top||0)},left:{start:k,end:k+(b.left||0)}},h,g).connect("beforeBegin",m);if(f){j.connect("onEnd",function(){f(d,j)})}c.push(j)});return dojo.lfx.combine(c)};dojo.lfx.html.explode=function(_6b5,_6b6,_6b7,_6b8,_6b9){var h=dojo.html;_6b5=dojo.byId(_6b5);_6b6=dojo.byId(_6b6);var _6bb=h.toCoordinateObject(_6b5,true);var _6bc=document.createElement("div");h.copyStyle(_6bc,_6b6);if(_6b6.explodeClassName){_6bc.className=_6b6.explodeClassName}with(_6bc.style){position="absolute";display="none";var _6bd=h.getStyle(_6b5,"background-color");backgroundColor=_6bd?_6bd.toLowerCase():"transparent";backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor}dojo.body().appendChild(_6bc);with(_6b6.style){visibility="hidden";display="block"}var _6be=h.toCoordinateObject(_6b6,true);with(_6b6.style){display="none";visibility="visible"}var _6bf={opacity:{start:0.5,end:1}};dojo.lang.forEach(["height","width","top","left"],function(type){_6bf[type]={start:_6bb[type],end:_6be[type]}});var anim=new dojo.lfx.propertyAnimation(_6bc,_6bf,_6b7,_6b8,{beforeBegin:function(){h.setDisplay(_6bc,"block")},onEnd:function(){h.setDisplay(_6b6,"block");_6bc.parentNode.removeChild(_6bc)}});if(_6b9){anim.connect("onEnd",function(){_6b9(_6b6,anim)})}return anim};dojo.lfx.html.implode=function(_6c2,end,_6c4,_6c5,_6c6){var h=dojo.html;_6c2=dojo.byId(_6c2);end=dojo.byId(end);var _6c8=dojo.html.toCoordinateObject(_6c2,true);var _6c9=dojo.html.toCoordinateObject(end,true);var _6ca=document.createElement("div");dojo.html.copyStyle(_6ca,_6c2);if(_6c2.explodeClassName){_6ca.className=_6c2.explodeClassName}dojo.html.setOpacity(_6ca,0.3);with(_6ca.style){position="absolute";display="none";backgroundColor=h.getStyle(_6c2,"background-color").toLowerCase()}dojo.body().appendChild(_6ca);var _6cb={opacity:{start:1,end:0.5}};dojo.lang.forEach(["height","width","top","left"],function(type){_6cb[type]={start:_6c8[type],end:_6c9[type]}});var anim=new dojo.lfx.propertyAnimation(_6ca,_6cb,_6c4,_6c5,{beforeBegin:function(){dojo.html.hide(_6c2);dojo.html.show(_6ca)},onEnd:function(){_6ca.parentNode.removeChild(_6ca)}});if(_6c6){anim.connect("onEnd",function(){_6c6(_6c2,anim)})}return anim};dojo.lfx.html.highlight=function(f,c,d,b,a){f=dojo.lfx.html._byId(f);var g=[];dojo.lang.forEach(f,function(l){var o=dojo.html.getBackgroundColor(l);var i=dojo.html.getStyle(l,"background-color").toLowerCase();var k=dojo.html.getStyle(l,"background-image");var j=(i=="transparent"||i=="rgba(0, 0, 0, 0)");while(o.length>3){o.pop()}var h=new dojo.gfx.color.Color(c);var n=new dojo.gfx.color.Color(o);var m=dojo.lfx.propertyAnimation(l,{"background-color":{start:h,end:n}},d,b,{beforeBegin:function(){if(k){l.style.backgroundImage="none"}l.style.backgroundColor="rgb("+h.toRgb().join(",")+")"},onEnd:function(){if(k){l.style.backgroundImage=k}if(j){l.style.backgroundColor="transparent"}if(a){a(l,m)}}});g.push(m)});return dojo.lfx.combine(g)};dojo.lfx.html.unhighlight=function(g,f,d,b,c){g=dojo.lfx.html._byId(g);var a=[];dojo.lang.forEach(g,function(j){var h=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(j));var i=new dojo.gfx.color.Color(f);var l=dojo.html.getStyle(j,"background-image");var k=dojo.lfx.propertyAnimation(j,{"background-color":{start:h,end:i}},d,b,{beforeBegin:function(){if(l){j.style.backgroundImage="none"}j.style.backgroundColor="rgb("+h.toRgb().join(",")+")"},onEnd:function(){if(c){c(j,k)}}});a.push(k)});return dojo.lfx.combine(a)};dojo.lang.mixin(dojo.lfx,dojo.lfx.html);dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});dojo.provide("dojo.lfx.*");dojo.provide("dojo.lfx.toggle");dojo.lfx.toggle.plain={show:function(b,c,a,d){dojo.html.show(b);if(dojo.lang.isFunction(d)){d()}},hide:function(b,d,c,a){dojo.html.hide(b);if(dojo.lang.isFunction(a)){a()}}};dojo.lfx.toggle.fade={show:function(d,c,b,a){dojo.lfx.fadeShow(d,c,b,a).play()},hide:function(d,c,b,a){dojo.lfx.fadeHide(d,c,b,a).play()}};dojo.lfx.toggle.wipe={show:function(b,d,c,a){dojo.lfx.wipeIn(b,d,c,a).play()},hide:function(a,d,c,b){dojo.lfx.wipeOut(a,d,c,b).play()}};dojo.lfx.toggle.explode={show:function(f,d,c,b,a){dojo.lfx.explode(a||{x:0,y:0,width:0,height:0},f,d,c,b).play()},hide:function(a,f,d,c,b){dojo.lfx.implode(a,b||{x:0,y:0,width:0,height:0},f,d,c).play()}};dojo.provide("dojo.widget.HtmlWidget");dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(a,b){},postMixInProperties:function(a,b){if(this.lang===""){this.lang=null}this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain},createNodesFromText:function(a,b){return dojo.html.createNodesFromText(a,b)},destroyRendering:function(a){try{if(this.bgIframe){this.bgIframe.remove();delete this.bgIframe}if(!a&&this.domNode){dojo.event.browser.clean(this.domNode)}dojo.widget.HtmlWidget.superclass.destroyRendering.call(this)}catch(b){}},isShowing:function(){return dojo.html.isShowing(this.domNode)},toggleShowing:function(){if(this.isShowing()){this.hide()}else{this.show()}},show:function(){if(this.isShowing()){return}this.animationInProgress=true;this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc)},onShow:function(){this.animationInProgress=false;this.checkSize()},hide:function(){if(!this.isShowing()){return}this.animationInProgress=true;this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc)},onHide:function(){this.animationInProgress=false},_isResized:function(b,f){if(!this.isShowing()){return false}var a=dojo.html.getMarginBox(this.domNode);var d=b||a.width;var c=f||a.height;if(this.width==d&&this.height==c){return false}this.width=d;this.height=c;return true},checkSize:function(){if(!this._isResized()){return}this.onResized()},resizeTo:function(a,b){dojo.html.setMarginBox(this.domNode,{width:a,height:b});if(this.isShowing()){this.onResized()}},resizeSoon:function(){if(this.isShowing()){dojo.lang.setTimeout(this,this.onResized,0)}},onResized:function(){dojo.lang.forEach(this.children,function(a){if(a.checkSize){a.checkSize()}})}});dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});dojo.provide("dojo.widget.*");dojo.provide("dojo.string.common");dojo.string.trim=function(c,a){if(!c.replace){return c}if(!c.length){return c}var b=(a>0)?(/^\s+/):(a<0)?(/\s+$/):(/^\s+|\s+$/g);return c.replace(b,"")};dojo.string.trimStart=function(a){return dojo.string.trim(a,1)};dojo.string.trimEnd=function(a){return dojo.string.trim(a,-1)};dojo.string.repeat=function(f,d,c){var a="";for(var b=0;b<d;b++){a+=f;if(c&&b<d-1){a+=c}}return a};dojo.string.pad=function(f,a,g,d){var b=String(f);if(!g){g="0"}if(!d){d=1}while(b.length<a){if(d>0){b=g+b}else{b+=g}}return b};dojo.string.padLeft=function(b,a,d){return dojo.string.pad(b,a,d,1)};dojo.string.padRight=function(b,a,d){return dojo.string.pad(b,a,d,-1)};dojo.provide("dojo.string");dojo.provide("dojo.io.common");dojo.io.transports=[];dojo.io.hdlrFuncNames=["load","error","timeout"];dojo.io.Request=function(a,d,b,c){if((arguments.length==1)&&(arguments[0].constructor==Object)){this.fromKwArgs(arguments[0])}else{this.url=a;if(d){this.mimetype=d}if(b){this.transport=b}if(arguments.length>=4){this.changeUrl=c}}};dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(a,d,c,b){},error:function(d,c,b,a){},timeout:function(d,c,b,a){},handle:function(c,d,a,b){},timeoutSeconds:0,abort:function(){},fromKwArgs:function(b){if(b.url){b.url=b.url.toString()}if(b.formNode){b.formNode=dojo.byId(b.formNode)}if(!b.method&&b.formNode&&b.formNode.method){b.method=b.formNode.method}if(!b.handle&&b.handler){b.handle=b.handler}if(!b.load&&b.loaded){b.load=b.loaded}if(!b.changeUrl&&b.changeURL){b.changeUrl=b.changeURL}b.encoding=dojo.lang.firstValued(b.encoding,djConfig.bindEncoding,"");b.sendTransport=dojo.lang.firstValued(b.sendTransport,djConfig.ioSendTransport,false);var d=dojo.lang.isFunction;for(var a=0;a<dojo.io.hdlrFuncNames.length;a++){var c=dojo.io.hdlrFuncNames[a];if(b[c]&&d(b[c])){continue}if(b.handle&&d(b.handle)){b[c]=b.handle}}dojo.lang.mixin(this,b)}});dojo.io.Error=function(c,b,a){this.message=c;this.type=b||"unknown";this.number=a||0};dojo.io.transports.addTransport=function(a){this.push(a);this[a]=dojo.io[a]};dojo.io.bind=function(b){if(!(b instanceof dojo.io.Request)){try{b=new dojo.io.Request(b)}catch(f){dojo.debug(f)}}var d="";if(b.transport){d=b.transport;if(!this[d]){dojo.io.sendBindError(b,"No dojo.io.bind() transport with name '"+b.transport+"'.");return b}if(!this[d].canHandle(b)){dojo.io.sendBindError(b,"dojo.io.bind() transport with name '"+b.transport+"' cannot handle this type of request.");return b}}else{for(var a=0;a<dojo.io.transports.length;a++){var c=dojo.io.transports[a];if((this[c])&&(this[c].canHandle(b))){d=c;break}}if(d==""){dojo.io.sendBindError(b,"None of the loaded transports for dojo.io.bind() can handle the request.");return b}}this[d].bind(b);b.bindSuccess=true;return b};dojo.io.sendBindError=function(c,b){if((typeof c.error=="function"||typeof c.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){var a=new dojo.io.Error(b);setTimeout(function(){c[(typeof c.error=="function")?"error":"handle"]("error",a,null,c)},50)}else{dojo.raise(b)}};dojo.io.queueBind=function(c){if(!(c instanceof dojo.io.Request)){try{c=new dojo.io.Request(c)}catch(d){dojo.debug(d)}}var b=c.load;c.load=function(){dojo.io._queueBindInFlight=false;var f=b.apply(this,arguments);dojo.io._dispatchNextQueueBind();return f};var a=c.error;c.error=function(){dojo.io._queueBindInFlight=false;var f=a.apply(this,arguments);dojo.io._dispatchNextQueueBind();return f};dojo.io._bindQueue.push(c);dojo.io._dispatchNextQueueBind();return c};dojo.io._dispatchNextQueueBind=function(){if(!dojo.io._queueBindInFlight){dojo.io._queueBindInFlight=true;if(dojo.io._bindQueue.length>0){dojo.io.bind(dojo.io._bindQueue.shift())}else{dojo.io._queueBindInFlight=false}}};dojo.io._bindQueue=[];dojo.io._queueBindInFlight=false;dojo.io.argsFromMap=function(a,f,j){var g=/utf/i.test(f||"")?encodeURIComponent:dojo.string.encodeAscii;var c=[];var i=new Object();for(var b in a){var h=function(k){var l=g(b)+"="+g(k);c[(j==b)?"push":"unshift"](l)};if(!i[b]){var d=a[b];if(dojo.lang.isArray(d)){dojo.lang.forEach(d,h)}else{h(d)}}}return c.join("&")};dojo.io.setIFrameSrc=function(c,g,b){try{var d=dojo.render.html;if(!b){if(d.safari){c.location=g}else{frames[c.name].location=g}}else{var a;if(d.ie){a=c.contentWindow.document}else{if(d.safari){a=c.document}else{a=c.contentWindow}}if(!a){c.location=g;return}else{a.location.replace(g)}}}catch(f){dojo.debug(f);dojo.debug("setIFrameSrc: "+f)}};dojo.provide("dojo.string.extras");dojo.string.substituteParams=function(a,c){var b=(typeof c=="object")?c:dojo.lang.toArray(arguments,1);return a.replace(/\%\{(\w+)\}/g,function(f,d){if(typeof(b[d])!="undefined"&&b[d]!=null){return b[d]}dojo.raise("Substitution not found: "+d)})};dojo.string.capitalize=function(b){if(!dojo.lang.isString(b)){return""}if(arguments.length==0){b=this}var c=b.split(" ");for(var a=0;a<c.length;a++){c[a]=c[a].charAt(0).toUpperCase()+c[a].substring(1)}return c.join(" ")};dojo.string.isBlank=function(a){if(!dojo.lang.isString(a)){return true}return(dojo.string.trim(a).length==0)};dojo.string.encodeAscii=function(h){if(!dojo.lang.isString(h)){return h}var c="";var g=escape(h);var f,d=/%u([0-9A-F]{4})/i;while((f=g.match(d))){var b=Number("0x"+f[1]);var a=escape("&#"+b+";");c+=g.substring(0,f.index)+a;g=g.substring(f.index+f[0].length)}c+=g.replace(/\+/g,"%2B");return c};dojo.string.escape=function(b,c){var a=dojo.lang.toArray(arguments,1);switch(b.toLowerCase()){case"xml":case"html":case"xhtml":return dojo.string.escapeXml.apply(this,a);case"sql":return dojo.string.escapeSql.apply(this,a);case"regexp":case"regex":return dojo.string.escapeRegExp.apply(this,a);case"javascript":case"jscript":case"js":return dojo.string.escapeJavaScript.apply(this,a);case"ascii":return dojo.string.encodeAscii.apply(this,a);default:return c}};dojo.string.escapeXml=function(b,a){b=b.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!a){b=b.replace(/'/gm,"&#39;")}return b};dojo.string.escapeSql=function(a){return a.replace(/'/gm,"''")};dojo.string.escapeRegExp=function(a){return a.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1")};dojo.string.escapeJavaScript=function(a){return a.replace(/(["'\f\b\n\t\r])/gm,"\\$1")};dojo.string.escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};dojo.string.summary=function(b,a){if(!a||b.length<=a){return b}return b.substring(0,a).replace(/\.+$/,"")+"..."};dojo.string.endsWith=function(c,a,b){if(b){c=c.toLowerCase();a=a.toLowerCase()}if((c.length-a.length)<0){return false}return c.lastIndexOf(a)==c.length-a.length};dojo.string.endsWithAny=function(b){for(var a=1;a<arguments.length;a++){if(dojo.string.endsWith(b,arguments[a])){return true}}return false};dojo.string.startsWith=function(c,b,a){if(a){c=c.toLowerCase();b=b.toLowerCase()}return c.indexOf(b)==0};dojo.string.startsWithAny=function(b){for(var a=1;a<arguments.length;a++){if(dojo.string.startsWith(b,arguments[a])){return true}}return false};dojo.string.has=function(b){for(var a=1;a<arguments.length;a++){if(b.indexOf(arguments[a])>-1){return true}}return false};dojo.string.normalizeNewlines=function(b,a){if(a=="\n"){b=b.replace(/\r\n/g,"\n");b=b.replace(/\r/g,"\n")}else{if(a=="\r"){b=b.replace(/\r\n/g,"\r");b=b.replace(/\n/g,"\r")}else{b=b.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1")}}return b};dojo.string.splitEscaped=function(d,f){var a=[];for(var b=0,c=0;b<d.length;b++){if(d.charAt(b)=="\\"){b++;continue}if(d.charAt(b)==f){a.push(d.substring(c,b));c=b+1}}a.push(d.substr(c));return a};dojo.provide("dojo.undo.browser");try{if((!djConfig.preventBackButtonFix)&&(!dojo.hostenv.post_load_)){document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(djConfig.dojoIframeHistoryUrl||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>")}}catch(e){}if(dojo.render.html.opera){dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.")}dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(a){this.initialState=this._createState(this.initialHref,a,this.initialHash)},addToHistory:function(b){this.forwardStack=[];var g=null;var a=null;if(!this.historyIframe){if(djConfig.useXDomain&&!djConfig.dojoIframeHistoryUrl){dojo.debug("dojo.undo.browser: When using cross-domain Dojo builds, please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl to the path on your domain to iframe_history.html")}this.historyIframe=window.frames.djhistory}if(!this.bookmarkAnchor){this.bookmarkAnchor=document.createElement("a");dojo.body().appendChild(this.bookmarkAnchor);this.bookmarkAnchor.style.display="none"}if(b.changeUrl){g="#"+((b.changeUrl!==true)?b.changeUrl:(new Date()).getTime());if(this.historyStack.length==0&&this.initialState.urlHash==g){this.initialState=this._createState(a,b,g);return}else{if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==g){this.historyStack[this.historyStack.length-1]=this._createState(a,b,g);return}}this.changingUrl=true;setTimeout("window.location.href = '"+g+"'; dojo.undo.browser.changingUrl = false;",1);this.bookmarkAnchor.href=g;if(dojo.render.html.ie){a=this._loadIframeHistory();var c=b.back||b.backButton||b.handle;var h=function(i){if(window.location.hash!=""){setTimeout("window.location.href = '"+g+"';",1)}c.apply(this,[i])};if(b.back){b.back=h}else{if(b.backButton){b.backButton=h}else{if(b.handle){b.handle=h}}}var f=b.forward||b.forwardButton||b.handle;var d=function(i){if(window.location.hash!=""){window.location.href=g}if(f){f.apply(this,[i])}};if(b.forward){b.forward=d}else{if(b.forwardButton){b.forwardButton=d}else{if(b.handle){b.handle=d}}}}else{if(dojo.render.html.moz){if(!this.locationTimer){this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200)}}}}else{a=this._loadIframeHistory()}this.historyStack.push(this._createState(a,b,g))},checkLocation:function(){if(!this.changingUrl){var a=this.historyStack.length;if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(a==1)){this.handleBackButton();return}if(this.forwardStack.length>0){if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){this.handleForwardButton();return}}if((a>=2)&&(this.historyStack[a-2])){if(this.historyStack[a-2].urlHash==window.location.hash){this.handleBackButton();return}}}},iframeLoaded:function(b,a){if(!dojo.render.html.opera){var c=this._getUrlQuery(a.href);if(c==null){if(this.historyStack.length==1){this.handleBackButton()}return}if(this.moveForward){this.moveForward=false;return}if(this.historyStack.length>=2&&c==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){this.handleBackButton()}else{if(this.forwardStack.length>0&&c==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){this.handleForwardButton()}}}},handleBackButton:function(){var a=this.historyStack.pop();if(!a){return}var b=this.historyStack[this.historyStack.length-1];if(!b&&this.historyStack.length==0){b=this.initialState}if(b){if(b.kwArgs.back){b.kwArgs.back()}else{if(b.kwArgs.backButton){b.kwArgs.backButton()}else{if(b.kwArgs.handle){b.kwArgs.handle("back")}}}}this.forwardStack.push(a)},handleForwardButton:function(){var a=this.forwardStack.pop();if(!a){return}if(a.kwArgs.forward){a.kwArgs.forward()}else{if(a.kwArgs.forwardButton){a.kwArgs.forwardButton()}else{if(a.kwArgs.handle){a.kwArgs.handle("forward")}}}this.historyStack.push(a)},_createState:function(b,a,c){return{url:b,kwArgs:a,urlHash:c}},_getUrlQuery:function(a){var b=a.split("?");if(b.length<2){return null}else{return b[1]}},_loadIframeHistory:function(){var a=(djConfig.dojoIframeHistoryUrl||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"?"+(new Date()).getTime();this.moveForward=true;dojo.io.setIFrameSrc(this.historyIframe,a,false);return a}};dojo.provide("dojo.io.BrowserIO");if(!dj_undef("window")){dojo.io.checkChildrenForFile=function(a){var c=false;var b=a.getElementsByTagName("input");dojo.lang.forEach(b,function(d){if(c){return}if(d.getAttribute("type")=="file"){c=true}});return c};dojo.io.formHasFile=function(a){return dojo.io.checkChildrenForFile(a)};dojo.io.updateNode=function(c,b){c=dojo.byId(c);var a=b;if(dojo.lang.isString(b)){a={url:b}}a.mimetype="text/html";a.load=function(f,h,g){while(c.firstChild){dojo.dom.destroyNode(c.firstChild)}c.innerHTML=h};dojo.io.bind(a)};dojo.io.formFilter=function(b){var a=(b.type||"").toLowerCase();return !b.disabled&&b.name&&!dojo.lang.inArray(["file","submit","image","reset","button"],a)};dojo.io.encodeForm=function(n,l,h){if((!n)||(!n.tagName)||(!n.tagName.toLowerCase()=="form")){dojo.raise("Attempted to encode a non-form element.")}if(!h){h=dojo.io.formFilter}var c=/utf/i.test(l||"")?encodeURIComponent:dojo.string.encodeAscii;var o=[];for(var d=0;d<n.elements.length;d++){var k=n.elements[d];if(!k||k.tagName.toLowerCase()=="fieldset"||!h(k)){continue}var a=c(k.name);var m=k.type.toLowerCase();if(m=="select-multiple"){for(var b=0;b<k.options.length;b++){if(k.options[b].selected){o.push(a+"="+c(k.options[b].value))}}}else{if(dojo.lang.inArray(["radio","checkbox"],m)){if(k.checked){o.push(a+"="+c(k.value))}}else{o.push(a+"="+c(k.value))}}}var g=n.getElementsByTagName("input");for(var d=0;d<g.length;d++){var f=g[d];if(f.type.toLowerCase()=="image"&&f.form==n&&h(f)){var a=c(f.name);o.push(a+"="+c(f.value));o.push(a+".x=0");o.push(a+".y=0")}}return o.join("&")+"&"};dojo.io.FormBind=function(a){this.bindArgs={};if(a&&a.formNode){this.init(a)}else{if(a){this.init({formNode:a})}}};dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(a){var d=dojo.byId(a.formNode);if(!d||!d.tagName||d.tagName.toLowerCase()!="form"){throw new Error("FormBind: Couldn't apply, invalid form")}else{if(this.form==d){return}else{if(this.form){throw new Error("FormBind: Already applied to a form")}}}dojo.lang.mixin(this.bindArgs,a);this.form=d;this.connect(d,"onsubmit","submit");for(var b=0;b<d.elements.length;b++){var c=d.elements[b];if(c&&c.type&&dojo.lang.inArray(["submit","button"],c.type.toLowerCase())){this.connect(c,"onclick","click")}}var g=d.getElementsByTagName("input");for(var b=0;b<g.length;b++){var f=g[b];if(f.type.toLowerCase()=="image"&&f.form==d){this.connect(f,"onclick","click")}}},onSubmit:function(a){return true},submit:function(a){a.preventDefault();if(this.onSubmit(this.form)){dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}))}},click:function(b){var a=b.currentTarget;if(a.disabled){return}this.clickedButton=a},formFilter:function(b){var a=(b.type||"").toLowerCase();var c=false;if(b.disabled||!b.name){c=false}else{if(dojo.lang.inArray(["submit","button","image"],a)){if(!this.clickedButton){this.clickedButton=b}c=b==this.clickedButton}else{c=!dojo.lang.inArray(["file","submit","reset","button"],a)}}return c},connect:function(c,b,a){if(dojo.evalObjPath("dojo.event.connect")){dojo.event.connect(c,b,this,a)}else{var d=dojo.lang.hitch(this,a);c[b]=function(f){if(!f){f=window.event}if(!f.currentTarget){f.currentTarget=f.srcElement}if(!f.preventDefault){f.preventDefault=function(){window.event.returnValue=false}}d(f)}}}});dojo.io.XMLHTTPTransport=new function(){var f=this;var d={};this.useCache=false;this.preventCache=false;function g(k,j,l){return k+"|"+j+"|"+l.toLowerCase()}function b(m,k,j,l){d[g(m,k,j)]=l}function c(k,j,l){return d[g(k,j,l)]}this.clearCache=function(){d={}};function a(t,u,j,s,q){if(((u.status>=200)&&(u.status<300))||(u.status==304)||(location.protocol=="file:"&&(u.status==0||u.status==undefined))||(location.protocol=="chrome:"&&(u.status==0||u.status==undefined))){var o;if(t.method.toLowerCase()=="head"){var p=u.getAllResponseHeaders();o={};o.toString=function(){return p};var m=p.split(/[\r\n]+/g);for(var l=0;l<m.length;l++){var k=m[l].match(/^([^:]+)\s*:\s*(.+)$/i);if(k){o[k[1]]=k[2]}}}else{if(t.mimetype=="text/javascript"){try{o=dj_eval(u.responseText)}catch(n){dojo.debug(n);dojo.debug(u.responseText);o=null}}else{if(t.mimetype=="text/json"||t.mimetype=="application/json"){try{o=dj_eval("("+u.responseText+")")}catch(n){dojo.debug(n);dojo.debug(u.responseText);o=false}}else{if((t.mimetype=="application/xml")||(t.mimetype=="text/xml")){o=u.responseXML;if(!o||typeof o=="string"||!u.getResponseHeader("Content-Type")){o=dojo.dom.createDocumentFromText(u.responseText)}}else{o=u.responseText}}}}if(q){b(j,s,t.method,u)}t[(typeof t.load=="function")?"load":"handle"]("load",o,u,t)}else{var r=new dojo.io.Error("XMLHttpTransport Error: "+u.status+" "+u.statusText);t[(typeof t.error=="function")?"error":"handle"]("error",r,u,t)}}function i(l,k){if(k.headers){for(var j in k.headers){if(j.toLowerCase()=="content-type"&&!k.contentType){k.contentType=k.headers[j]}else{l.setRequestHeader(j,k.headers[j])}}}}this.inFlight=[];this.inFlightTimer=null;this.startWatchingInFlight=function(){if(!this.inFlightTimer){this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10)}};this.watchInFlight=function(){var k=null;if(!dojo.hostenv._blockAsync&&!f._blockAsync){for(var j=this.inFlight.length-1;j>=0;j--){try{var l=this.inFlight[j];if(!l||l.http._aborted||!l.http.readyState){this.inFlight.splice(j,1);continue}if(4==l.http.readyState){this.inFlight.splice(j,1);a(l.req,l.http,l.url,l.query,l.useCache)}else{if(l.startTime){if(!k){k=(new Date()).getTime()}if(l.startTime+(l.req.timeoutSeconds*1000)<k){if(typeof l.http.abort=="function"){l.http.abort()}this.inFlight.splice(j,1);l.req[(typeof l.req.timeout=="function")?"timeout":"handle"]("timeout",null,l.http,l.req)}}}}catch(n){try{var o=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+n);l.req[(typeof l.req.error=="function")?"error":"handle"]("error",o,l.http,l.req)}catch(m){dojo.debug("XMLHttpTransport error callback failed: "+m)}}}}clearTimeout(this.inFlightTimer);if(this.inFlight.length==0){this.inFlightTimer=null;return}this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10)};var h=dojo.hostenv.getXmlhttpObject()?true:false;this.canHandle=function(j){return h&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(j.mimetype.toLowerCase()||""))&&!(j.formNode&&dojo.io.formHasFile(j.formNode))};this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";this.bind=function(l){if(!l.url){if(!l.formNode&&(l.backButton||l.back||l.changeUrl||l.watchForURL)&&(!djConfig.preventBackButtonFix)){dojo.deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use dojo.undo.browser.addToHistory() instead.","0.4");dojo.undo.browser.addToHistory(l);return true}}var n=l.url;var k="";if(l.formNode){var z=l.formNode.getAttribute("action");if((z)&&(!l.url)){n=z}var j=l.formNode.getAttribute("method");if((j)&&(!l.method)){l.method=j}k+=dojo.io.encodeForm(l.formNode,l.encoding,l.formFilter)}if(n.indexOf("#")>-1){dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",n);n=n.split("#")[0]}if(l.file){l.method="post"}if(!l.method){l.method="get"}if(l.method.toLowerCase()=="get"){l.multipart=false}else{if(l.file){l.multipart=true}else{if(!l.multipart){l.multipart=false}}}if(l.backButton||l.back||l.changeUrl){dojo.undo.browser.addToHistory(l)}var m=l.content||{};if(l.sendTransport){m["dojo.transport"]="xmlhttp"}do{if(l.postContent){k=l.postContent;break}if(m){k+=dojo.io.argsFromMap(m,l.encoding)}if(l.method.toLowerCase()=="get"||!l.multipart){break}var A=[];if(k.length){var B=k.split("&");for(var F=0;F<B.length;++F){if(B[F].length){var C=B[F].split("=");A.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+C[0]+'"',"",C[1])}}}if(l.file){if(dojo.lang.isArray(l.file)){for(var F=0;F<l.file.length;++F){var D=l.file[F];A.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+D.name+'"; filename="'+("fileName" in D?D.fileName:D.name)+'"',"Content-Type: "+("contentType" in D?D.contentType:"application/octet-stream"),"",D.content)}}else{var D=l.file;A.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+D.name+'"; filename="'+("fileName" in D?D.fileName:D.name)+'"',"Content-Type: "+("contentType" in D?D.contentType:"application/octet-stream"),"",D.content)}}if(A.length){A.push("--"+this.multipartBoundary+"--","");k=A.join("\r\n")}}while(false);var y=l.sync?false:true;var x=l.preventCache||(this.preventCache==true&&l.preventCache!=false);var w=l.useCache==true||(this.useCache==true&&l.useCache!=false);if(!x&&w){var v=c(n,k,l.method);if(v){a(l,v,n,k,false);return}}var E=dojo.hostenv.getXmlhttpObject(l);var u=false;if(y){var s=this.inFlight.push({req:l,http:E,url:n,query:k,useCache:w,startTime:l.timeoutSeconds?(new Date()).getTime():0});this.startWatchingInFlight()}else{f._blockAsync=true}if(l.method.toLowerCase()=="post"){if(!l.user){E.open("POST",n,y)}else{E.open("POST",n,y,l.user,l.password)}i(E,l);E.setRequestHeader("Content-Type",l.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(l.contentType||"application/x-www-form-urlencoded"));try{E.send(k)}catch(G){if(typeof E.abort=="function"){E.abort()}a(l,{status:404},n,k,w)}}else{var r=n;if(k!=""){r+=(r.indexOf("?")>-1?"&":"?")+k}if(x){r+=(dojo.string.endsWithAny(r,"?","&")?"":(r.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf()}if(!l.user){E.open(l.method.toUpperCase(),r,y)}else{E.open(l.method.toUpperCase(),r,y,l.user,l.password)}i(E,l);try{E.send(null)}catch(G){if(typeof E.abort=="function"){E.abort()}a(l,{status:404},n,k,w)}}if(!y){a(l,E,n,k,w);f._blockAsync=false}l.abort=function(){try{E._aborted=true}catch(o){}return E.abort()};return};dojo.io.transports.addTransport("XMLHTTPTransport")}}dojo.provide("dojo.io.cookie");dojo.io.cookie.setCookie=function(f,g,j,h,c,b){var a=-1;if((typeof j=="number")&&(j>=0)){var i=new Date();i.setTime(i.getTime()+(j*24*60*60*1000));a=i.toGMTString()}g=escape(g);document.cookie=f+"="+g+";"+(a!=-1?" expires="+a+";":"")+(h?"path="+h:"")+(c?"; domain="+c:"")+(b?"; secure":"")};dojo.io.cookie.set=dojo.io.cookie.setCookie;dojo.io.cookie.getCookie=function(c){var a=document.cookie.lastIndexOf(c+"=");if(a==-1){return null}var d=document.cookie.substring(a+c.length+1);var b=d.indexOf(";");if(b==-1){b=d.length}d=d.substring(0,b);d=unescape(d);return d};dojo.io.cookie.get=dojo.io.cookie.getCookie;dojo.io.cookie.deleteCookie=function(a){dojo.io.cookie.setCookie(a,"-",0)};dojo.io.cookie.setObjectCookie=function(d,g,i,k,f,c,a){if(arguments.length==5){a=f;f=null;c=null}var l=[],j,h="";if(!a){j=dojo.io.cookie.getObjectCookie(d)}if(i>=0){if(!j){j={}}for(var b in g){if(g[b]==null){delete j[b]}else{if((typeof g[b]=="string")||(typeof g[b]=="number")){j[b]=g[b]}}}b=null;for(var b in j){l.push(escape(b)+"="+escape(j[b]))}h=l.join("&")}dojo.io.cookie.setCookie(d,h,i,k,f,c)};dojo.io.cookie.getObjectCookie=function(d){var c=null,b=dojo.io.cookie.getCookie(d);if(b){c={};var a=b.split("&");for(var f=0;f<a.length;f++){var h=a[f].split("=");var g=h[1];if(isNaN(g)){g=unescape(h[1])}c[unescape(h[0])]=g}}return c};dojo.io.cookie.isSupported=function(){if(typeof navigator.cookieEnabled!="boolean"){dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);var a=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");navigator.cookieEnabled=(a=="CookiesAllowed");if(navigator.cookieEnabled){this.deleteCookie("__TestingYourBrowserForCookieSupport__")}}return navigator.cookieEnabled};if(!dojo.io.cookies){dojo.io.cookies=dojo.io.cookie}dojo.kwCompoundRequire({common:["dojo.io.common"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});dojo.provide("dojo.io.*");dojo.provide("dojo.widget.ContentPane");dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){this._styleNodes=[];this._onLoadStack=[];this._onUnloadStack=[];this._callOnUnload=false;this._ioBindObj;this.scriptScope;this.bindArgs={}},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(a,c,b){if(this.handler!==""){this.setHandler(this.handler)}if(this.isShowing()||this.preload){this.loadContents()}},show:function(){if(this.refreshOnShow){this.refresh()}else{this.loadContents()}dojo.widget.ContentPane.superclass.show.call(this)},refresh:function(){this.isLoaded=false;this.loadContents()},loadContents:function(){if(this.isLoaded){return}if(dojo.lang.isFunction(this.handler)){this._runHandler()}else{if(this.href!=""){this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow)}}},setUrl:function(a){this.href=a;this.isLoaded=false;if(this.preload||this.isShowing()){this.loadContents()}},abort:function(){var a=this._ioBindObj;if(!a||!a.abort){return}a.abort();delete this._ioBindObj},_downloadExternalContent:function(b,c){this.abort();this._handleDefaults(this.loadingMessage,"onDownloadStart");var a=this;this._ioBindObj=dojo.io.bind(this._cacheSetting({url:b,mimetype:"text/html",handler:function(d,f,h){delete a._ioBindObj;if(d=="load"){a.onDownloadEnd.call(a,b,f)}else{var g={responseText:h.responseText,status:h.status,statusText:h.statusText,responseHeaders:h.getAllResponseHeaders(),text:"Error loading '"+b+"' ("+h.status+" "+h.statusText+")"};a._handleDefaults.call(a,g,"onDownloadError");a.onLoad()}}},c))},_cacheSetting:function(c,b){for(var a in this.bindArgs){if(dojo.lang.isUndefined(c[a])){c[a]=this.bindArgs[a]}}if(dojo.lang.isUndefined(c.useCache)){c.useCache=b}if(dojo.lang.isUndefined(c.preventCache)){c.preventCache=!b}if(dojo.lang.isUndefined(c.mimetype)){c.mimetype="text/html"}return c},onLoad:function(a){this._runStack("_onLoadStack");this.isLoaded=true},onUnLoad:function(a){dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5)},onUnload:function(a){this._runStack("_onUnloadStack");delete this.scriptScope;if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){this.onUnLoad.apply(this,arguments)}},_runStack:function(a){var c=this[a];var f="";var h=this.scriptScope||window;for(var d=0;d<c.length;d++){try{c[d].call(h)}catch(g){f+="\n"+c[d]+" failed: "+g.description}}this[a]=[];if(f.length){var b=(a=="_onLoadStack")?"addOnLoad":"addOnUnLoad";this._handleDefaults(b+" failure\n "+f,"onExecError","debug")}},addOnLoad:function(b,a){this._pushOnStack(this._onLoadStack,b,a)},addOnUnload:function(b,a){this._pushOnStack(this._onUnloadStack,b,a)},addOnUnLoad:function(){dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);this.addOnUnload.apply(this,arguments)},_pushOnStack:function(a,c,b){if(typeof b=="undefined"){a.push(c)}else{a.push(function(){c[b]()})}},destroy:function(){this.onUnload();dojo.widget.ContentPane.superclass.destroy.call(this)},onExecError:function(a){},onContentError:function(a){},onDownloadError:function(a){},onDownloadStart:function(a){},onDownloadEnd:function(a,b){b=this.splitAndFixPaths(b,a);this.setContent(b)},_handleDefaults:function(a,b,c){if(!b){b="onContentError"}if(dojo.lang.isString(a)){a={text:a}}if(!a.text){a.text=a.toString()}a.toString=function(){return this.text};if(typeof a.returnValue!="boolean"){a.returnValue=true}if(typeof a.preventDefault!="function"){a.preventDefault=function(){this.returnValue=false}}this[b](a);if(a.returnValue){switch(c){case true:case"alert":alert(a.toString());break;case"debug":dojo.debug(a.toString());break;default:if(this._callOnUnload){this.onUnload()}this._callOnUnload=false;if(arguments.callee._loopStop){dojo.debug(a.toString())}else{arguments.callee._loopStop=true;this._setContent(a.toString())}}}arguments.callee._loopStop=false},splitAndFixPaths:function(q,g){var f=[],d=[],w=[];var a=[],z=[],v=[],x=[];var u="",r="",t="",c="",y="",A="";if(!g){g="./"}if(q){var p=/<title[^>]*>([\s\S]*?)<\/title>/i;while(a=p.exec(q)){f.push(a[1]);q=q.substring(0,a.index)+q.substr(a.index+a[0].length)}if(this.adjustPaths){var o=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;var n=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;var m=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;while(y=o.exec(q)){u+=q.substring(0,y.index);q=q.substring((y.index+y[0].length),q.length);y=y[0];c="";while(v=n.exec(y)){r="";A=v[3];switch(v[1].toLowerCase()){case"src":case"href":if(m.exec(A)){r=A}else{r=(new dojo.uri.Uri(g,A).toString())}break;case"style":r=dojo.html.fixPathsInCssText(A,g);break;default:r=A}t=" "+v[1]+"="+v[2]+r+v[2];c+=y.substring(0,v.index)+t;y=y.substring((v.index+v[0].length),y.length)}u+=c+y}q=u+q}p=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;while(a=p.exec(q)){if(a[1]&&a[1].toLowerCase()=="style"){x.push(dojo.html.fixPathsInCssText(a[2],g))}else{if(v=a[3].match(/href=(['"]?)([^'">]*)\1/i)){x.push({path:v[2]})}}q=q.substring(0,a.index)+q.substr(a.index+a[0].length)}var p=/<script([^>]*)>([\s\S]*?)<\/script>/i;var l=/src=(['"]?)([^"']*)\1/i;var k=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;var j=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;var i=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;while(a=p.exec(q)){if(this.executeScripts&&a[1]){if(v=l.exec(a[1])){if(k.exec(v[2])){dojo.debug("Security note! inhibit:"+v[2]+" from  being loaded again.")}else{d.push({path:v[2]})}}}if(a[2]){var b=a[2].replace(j,"");if(!b){continue}while(w=i.exec(b)){z.push(w[0]);b=b.substring(0,w.index)+b.substr(w.index+w[0].length)}if(this.executeScripts){d.push(b)}}q=q.substr(0,a.index)+q.substr(a.index+a[0].length)}if(this.extractContent){a=q.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(a){q=a[1]}}if(this.executeScripts&&this.scriptSeparation){var p=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;var h=/([\s'";:\(])scriptScope(.*)/;u="";while(y=p.exec(q)){w=((y[3]=="'")?'"':"'");t="";u+=q.substring(0,y.index)+y[1];while(v=h.exec(y[2])){y[2]=y[2].substring(0,v.index)+v[1]+"dojo.widget.byId("+w+this.widgetId+w+").scriptScope"+v[2]}u+=y[2];q=q.substr(y.index+y[0].length)}q=u+q}}return{xml:q,styles:x,titles:f,requires:z,scripts:d,url:g}},_setContent:function(a){this.destroyChildren();for(var b=0;b<this._styleNodes.length;b++){if(this._styleNodes[b]&&this._styleNodes[b].parentNode){this._styleNodes[b].parentNode.removeChild(this._styleNodes[b])}}this._styleNodes=[];try{var c=this.containerNode||this.domNode;while(c.firstChild){dojo.html.destroyNode(c.firstChild)}if(typeof a!="string"){c.appendChild(a)}else{c.innerHTML=a}}catch(d){d.text="Couldn't load content:"+d.description;this._handleDefaults(d,"onContentError")}},setContent:function(data){this.abort();if(this._callOnUnload){this.onUnload()}this._callOnUnload=true;if(!data||dojo.html.isNode(data)){this._setContent(data);this.onResized();this.onLoad()}else{if(typeof data.xml!="string"){this.href="";data=this.splitAndFixPaths(data)}this._setContent(data.xml);for(var i=0;i<data.styles.length;i++){if(data.styles[i].path){this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true))}else{this._styleNodes.push(dojo.html.insertCssText(data.styles[i]))}}if(this.parseContent){for(var i=0;i<data.requires.length;i++){try{eval(data.requires[i])}catch(e){e.text="ContentPane: error in package loading calls, "+(e.description||e);this._handleDefaults(e,"onContentError","debug")}}}var _86f=this;function asyncParse(){if(_86f.executeScripts){_86f._executeScripts(data.scripts)}if(_86f.parseContent){var node=_86f.containerNode||_86f.domNode;var _871=new dojo.xml.Parse();var frag=_871.parseElement(node,null,true);dojo.widget.getParser().createSubComponents(frag,_86f)}_86f.onResized();_86f.onLoad()}if(dojo.hostenv.isXDomain&&data.requires.length){dojo.addOnLoad(asyncParse)}else{asyncParse()}}},setHandler:function(a){var b=dojo.lang.isFunction(a)?a:window[a];if(!dojo.lang.isFunction(b)){this._handleDefaults("Unable to set handler, '"+a+"' not a function.","onExecError",true);return}this.handler=function(){return b.apply(this,arguments)}},_runHandler:function(){var a=true;if(dojo.lang.isFunction(this.handler)){this.handler(this,this.domNode);a=false}this.onLoad();return a},_executeScripts:function(j){var k=this;var c="",a="";for(var d=0;d<j.length;d++){if(j[d].path){dojo.io.bind(this._cacheSetting({url:j[d].path,load:function(i,l){dojo.lang.hitch(k,c=";"+l)},error:function(l,i){i.text=l+" downloading remote script";k._handleDefaults.call(k,i,"onExecError","debug")},mimetype:"text/plain",sync:true},this.cacheContent));a+=c}else{a+=j[d]}}try{if(this.scriptSeparation){delete this.scriptScope;this.scriptScope=new (new Function("_container_",a+"; return this;"))(k)}else{var b=dojo.global();if(b.execScript){b.execScript(a)}else{var f=dojo.doc();var h=f.createElement("script");h.appendChild(f.createTextNode(a));(this.containerNode||this.domNode).appendChild(h)}}}catch(g){g.text="Error running scripts from content:\n"+g.description;this._handleDefaults(g,"onExecError","debug")}}});dojo.provide("dojo.html.iframe");dojo.html.iframeContentWindow=function(a){var b=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(a))||dojo.html.iframeContentDocument(a).__parent__||(a.name&&document.frames[a.name])||null;return b};dojo.html.iframeContentDocument=function(a){var b=a.contentDocument||((a.contentWindow)&&(a.contentWindow.document))||((a.name)&&(document.frames[a.name])&&(document.frames[a.name].document))||null;return b};dojo.html.BackgroundIframe=function(b){if(dojo.render.html.ie55||dojo.render.html.ie60){var a="<iframe src='javascript:false' style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;z-index: -1; filter:Alpha(Opacity=\"0\");' >";this.iframe=dojo.doc().createElement(a);this.iframe.tabIndex=-1;if(b){b.appendChild(this.iframe);this.domNode=b}else{dojo.body().appendChild(this.iframe);this.iframe.style.display="none"}}};dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){if(this.iframe&&this.domNode&&this.domNode.parentNode){var a=dojo.html.getMarginBox(this.domNode);if(a.width==0||a.height==0){dojo.lang.setTimeout(this,this.onResized,100);return}this.iframe.style.width=a.width+"px";this.iframe.style.height=a.height+"px"}},size:function(node){if(!this.iframe){return}var _88a=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);with(this.iframe.style){width=_88a.width+"px";height=_88a.height+"px";left=_88a.left+"px";top=_88a.top+"px"}},setZIndex:function(a){if(!this.iframe){return}if(dojo.dom.isNode(a)){this.iframe.style.zIndex=dojo.html.getStyle(a,"z-index")-1}else{if(!isNaN(a)){this.iframe.style.zIndex=a}}},show:function(){if(this.iframe){this.iframe.style.display="block"}},hide:function(){if(this.iframe){this.iframe.style.display="none"}},remove:function(){if(this.iframe){dojo.html.removeNode(this.iframe,true);delete this.iframe;this.iframe=null}}});dojo.provide("dojo.widget.Dialog");dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,trapTabs:function(a){if(a.target==this.tabStartOuter){if(this._fromTrap){this.tabStart.focus();this._fromTrap=false}else{this._fromTrap=true;this.tabEnd.focus()}}else{if(a.target==this.tabStart){if(this._fromTrap){this._fromTrap=false}else{this._fromTrap=true;this.tabEnd.focus()}}else{if(a.target==this.tabEndOuter){if(this._fromTrap){this.tabEnd.focus();this._fromTrap=false}else{this._fromTrap=true;this.tabStart.focus()}}else{if(a.target==this.tabEnd){if(this._fromTrap){this._fromTrap=false}else{this._fromTrap=true;this.tabStart.focus()}}}}}},clearTrap:function(b){var a=this;setTimeout(function(){a._fromTrap=false},100)},postCreate:function(){with(this.domNode.style){position="absolute";zIndex=999;display="none";overflow="visible"}var b=dojo.body();b.appendChild(this.domNode);this.bg=document.createElement("div");this.bg.className="dialogUnderlay";with(this.bg.style){position="absolute";left=top="0px";zIndex=998;display="none"}b.appendChild(this.bg);this.setBackgroundColor(this.bgColor);this.bgIframe=new dojo.html.BackgroundIframe();if(this.bgIframe.iframe){with(this.bgIframe.iframe.style){position="absolute";left=top="0px";zIndex=90;display="none"}}if(this.closeOnBackgroundClick){dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true})}},uninitialize:function(){this.bgIframe.remove();dojo.html.removeNode(this.bg,true)},setBackgroundColor:function(a){if(arguments.length>=3){a=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2])}else{a=new dojo.gfx.color.Color(a)}this.bg.style.backgroundColor=a.toString();return this.bgColor=a},setBackgroundOpacity:function(b){if(arguments.length==0){b=this.bgOpacity}dojo.html.setOpacity(this.bg,b);try{this.bgOpacity=dojo.html.getOpacity(this.bg)}catch(a){this.bgOpacity=b}return this.bgOpacity},_sizeBackground:function(){if(this.bgOpacity>0){var _892=dojo.html.getViewport();var h=_892.height;var w=_892.width;with(this.bg.style){width=w+"px";height=h+"px"}var _895=dojo.html.getScroll().offset;this.bg.style.top=_895.y+"px";this.bg.style.left=_895.x+"px";var _892=dojo.html.getViewport();if(_892.width!=w){this.bg.style.width=_892.width+"px"}if(_892.height!=h){this.bg.style.height=_892.height+"px"}}this.bgIframe.size(this.bg)},_showBackground:function(){if(this.bgOpacity>0){this.bg.style.display="block"}if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block"}},placeModalDialog:function(){var _896=dojo.html.getScroll().offset;var _897=dojo.html.getViewport();var mb;if(this.isShowing()){mb=dojo.html.getMarginBox(this.domNode)}else{dojo.html.setVisibility(this.domNode,false);dojo.html.show(this.domNode);mb=dojo.html.getMarginBox(this.domNode);dojo.html.hide(this.domNode);dojo.html.setVisibility(this.domNode,true)}var x=_896.x+(_897.width-mb.width)/2;var y=_896.y+(_897.height-mb.height)/2;with(this.domNode.style){left=x+"px";top=y+"px"}},_onKey:function(a){if(a.key){var b=a.target;while(b!=null){if(b==this.domNode){return}b=b.parentNode}if(a.key!=a.KEY_TAB){dojo.event.browser.stopEvent(a)}else{if(!dojo.render.html.opera){try{this.tabStart.focus()}catch(c){}}}}},showModalDialog:function(){if(this.followScroll&&!this._scrollConnected){this._scrollConnected=true;dojo.event.connect(window,"onscroll",this,"_onScroll")}dojo.event.connect(document.documentElement,"onkey",this,"_onKey");this.placeModalDialog();this.setBackgroundOpacity();this._sizeBackground();this._showBackground();this._fromTrap=true;setTimeout(dojo.lang.hitch(this,function(){try{this.tabStart.focus()}catch(a){}}),50)},hideModalDialog:function(){if(this.focusElement){dojo.byId(this.focusElement).focus();dojo.byId(this.focusElement).blur()}this.bg.style.display="none";this.bg.style.width=this.bg.style.height="1px";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none"}dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");if(this._scrollConnected){this._scrollConnected=false;dojo.event.disconnect(window,"onscroll",this,"_onScroll")}},_onScroll:function(){var a=dojo.html.getScroll().offset;this.bg.style.top=a.y+"px";this.bg.style.left=a.x+"px";this.placeModalDialog()},checkSize:function(){if(this.isShowing()){this._sizeBackground();this.placeModalDialog();this.onResized()}},onBackgroundClick:function(){if(this.lifetime-this.timeRemaining>=this.blockDuration){return}this.hide()}});dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templateString:'<div id="${this.widgetId}" class="dojoDialog" dojoattachpoint="wrapper">\r\n\t<span dojoattachpoint="tabStartOuter" dojoonfocus="trapTabs" dojoonblur="clearTrap"\ttabindex="0"></span>\r\n\t<span dojoattachpoint="tabStart" dojoonfocus="trapTabs" dojoonblur="clearTrap" tabindex="0"></span>\r\n\t<div dojoattachpoint="containerNode" style="position: relative; z-index: 2;"></div>\r\n\t<span dojoattachpoint="tabEnd" dojoonfocus="trapTabs" dojoonblur="clearTrap" tabindex="0"></span>\r\n\t<span dojoattachpoint="tabEndOuter" dojoonfocus="trapTabs" dojoonblur="clearTrap" tabindex="0"></span>\r\n</div>\r\n',blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);if(this.closeNode){this.setCloseControl(this.closeNode)}},postCreate:function(){dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments)},show:function(){if(this.lifetime){this.timeRemaining=this.lifetime;if(this.timerNode){this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000)}if(this.blockDuration&&this.closeNode){if(this.lifetime>this.blockDuration){this.closeNode.style.visibility="hidden"}else{this.closeNode.style.display="none"}}if(this.timer){clearInterval(this.timer)}this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100)}this.showModalDialog();dojo.widget.Dialog.superclass.show.call(this)},onLoad:function(){this.placeModalDialog();dojo.widget.Dialog.superclass.onLoad.call(this)},fillInTemplate:function(){},hide:function(){this.hideModalDialog();dojo.widget.Dialog.superclass.hide.call(this);if(this.timer){clearInterval(this.timer)}},setTimerNode:function(a){this.timerNode=a},setCloseControl:function(a){this.closeNode=dojo.byId(a);dojo.event.connect(this.closeNode,"onclick",this,"hide")},setShowControl:function(a){a=dojo.byId(a);dojo.event.connect(a,"onclick",this,"show")},_onTick:function(){if(this.timer){this.timeRemaining-=100;if(this.lifetime-this.timeRemaining>=this.blockDuration){if(this.closeNode){this.closeNode.style.visibility="visible"}}if(!this.timeRemaining){clearInterval(this.timer);this.hide()}else{if(this.timerNode){this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000)}}}}});dojo.kwCompoundRequire({common:["dojo.html.common","dojo.html.style"]});dojo.provide("dojo.html.*");dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(a){this.pairs=[];this.returnWrappers=a||false};dojo.lang.extend(dojo.AdapterRegistry,{register:function(a,g,f,d,b){var c=(b)?"unshift":"push";this.pairs[c]([a,g,f,d])},match:function(){for(var a=0;a<this.pairs.length;a++){var b=this.pairs[a];if(b[1].apply(this,arguments)){if((b[3])||(this.returnWrappers)){return b[2]}else{return b[2].apply(this,arguments)}}}throw new Error("No match found")},unregister:function(a){for(var b=0;b<this.pairs.length;b++){var c=this.pairs[b];if(c[0]==a){this.pairs.splice(b,1);return true}}return false}});dojo.provide("dojo.json");dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(c,b,d,a){dojo.json.jsonRegistry.register(c,b,d,a)},evalJson:function(json){try{return eval("("+json+")")}catch(e){dojo.debug(e);return json}},serialize:function(c){var b=typeof(c);if(b=="undefined"){return"undefined"}else{if((b=="number")||(b=="boolean")){return c+""}else{if(c===null){return"null"}}}if(b=="string"){return dojo.string.escapeString(c)}var l=arguments.callee;var m;if(typeof(c.__json__)=="function"){m=c.__json__();if(c!==m){return l(m)}}if(typeof(c.json)=="function"){m=c.json();if(c!==m){return l(m)}}if(b!="function"&&typeof(c.length)=="number"){var j=[];for(var g=0;g<c.length;g++){var d=l(c[g]);if(typeof(d)!="string"){d="undefined"}j.push(d)}return"["+j.join(",")+"]"}try{window.o=c;m=dojo.json.jsonRegistry.match(c);return l(m)}catch(h){}if(b=="function"){return null}j=[];for(var f in c){var a;if(typeof(f)=="number"){a='"'+f+'"'}else{if(typeof(f)=="string"){a=dojo.string.escapeString(f)}else{continue}}d=l(c[f]);if(typeof(d)!="string"){continue}j.push(a+":"+d)}return"{"+j.join(",")+"}"}};
