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:4,patch:2,flag:"",revision:Number("$Rev: 7616 $".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(typeof djConfig.useXDomain=="undefined"){djConfig.useXDomain=true}dojo.registerModulePath("dojo","http://o.aolcdn.com/dojo/0.4.2/src");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)}}}})();dojo.hostenv.resetXd=function(){this.isXDomain=djConfig.useXDomain||false;this.xdTimer=0;this.xdInFlight={};this.xdOrderedReqs=[];this.xdDepMap={};this.xdContents=[];this.xdDefList=[]};dojo.hostenv.resetXd();dojo.hostenv.createXdPackage=function(g,j,h){var f=[];var d=/dojo.(require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;var b;while((b=d.exec(g))!=null){f.push('"'+b[1]+'", '+b[2])}var a=[];a.push("dojo.hostenv.packageLoaded({\n");if(f.length>0){a.push("depends: [");for(var c=0;c<f.length;c++){if(c>0){a.push(",\n")}a.push("["+f[c]+"]")}a.push("],")}a.push("\ndefinePackage: function(dojo){");a.push(g);a.push("\n}, resourceName: '"+j+"', resourcePath: '"+h+"'});");return a.join("")};dojo.hostenv.loadPath=function(b,i,a){var d=b.indexOf(":");var c=b.indexOf("/");var f;var h=false;if(d>0&&d<c){f=b;this.isXDomain=h=true}else{f=this.getBaseScriptUri()+b;d=f.indexOf(":");c=f.indexOf("/");if(d>0&&d<c&&(!location.host||f.indexOf("http://"+location.host)!=0)){this.isXDomain=h=true}}if(djConfig.cacheBust&&dojo.render.html.capable){f+="?"+String(djConfig.cacheBust).replace(/\W+/g,"")}try{return((!i||this.isXDomain)?this.loadUri(f,a,h,i):this.loadUriAndCheck(f,i,a))}catch(g){dojo.debug(g);return false}};dojo.hostenv.loadUri=function(b,f,j,i){if(this.loadedUris[b]){return 1}if(this.isXDomain){if(b.indexOf("__package__")!=-1){i+=".*"}this.xdOrderedReqs.push(i);if(j){this.xdInFlight[i]=true;this.inFlightCount++}if(!this.xdTimer){this.xdTimer=setInterval("dojo.hostenv.watchInFlightXDomain();",100)}this.xdStartTime=(new Date()).getTime()}if(j){var h=b.lastIndexOf(".");if(h<=0){h=b.length-1}var g=b.substring(0,h)+".xd";if(h!=b.length-1){g+=b.substring(h,b.length)}var d=document.createElement("script");d.type="text/javascript";d.src=g;if(!this.headElement){this.headElement=document.getElementsByTagName("head")[0];if(!this.headElement){this.headElement=document.getElementsByTagName("html")[0]}}this.headElement.appendChild(d)}else{var c=this.getText(b,null,true);if(c==null){return 0}if(this.isXDomain&&b.indexOf("/nls/")==-1){var k=this.createXdPackage(c,i,b);dj_eval(k)}else{if(f){c="("+c+")"}var a=dj_eval(c);if(f){f(a)}}}this.loadedUris[b]=true;return 1};dojo.hostenv.packageLoaded=function(l){var c=l.depends;var j=null;var h=null;var g=[];if(c&&c.length>0){var m=null;var f=0;var d=false;for(var k=0;k<c.length;k++){m=c[k];if(m[0]=="provide"||m[0]=="hostenv.moduleLoaded"){g.push(m[1])}else{if(!j){j=[]}if(!h){h=[]}var b=this.unpackXdDependency(m);if(b.requires){j=j.concat(b.requires)}if(b.requiresAfter){h=h.concat(b.requiresAfter)}}var a=m[0];var o=a.split(".");if(o.length==2){dojo[o[0]][o[1]].apply(dojo[o[0]],m.slice(1))}else{dojo[a].apply(dojo,m.slice(1))}}var n=this.xdContents.push({content:l.definePackage,resourceName:l.resourceName,resourcePath:l.resourcePath,isDefined:false})-1;for(var k=0;k<g.length;k++){this.xdDepMap[g[k]]={requires:j,requiresAfter:h,contentIndex:n}}for(var k=0;k<g.length;k++){this.xdInFlight[g[k]]=false}}};dojo.hostenv.xdLoadFlattenedBundle=function(h,g,d,b){d=d||"root";var a=dojo.hostenv.normalizeLocale(d).replace("-","_");var k=[h,"nls",g].join(".");var j=dojo.hostenv.startPackage(k);j[a]=b;var i=[h,a,g].join(".");var f=dojo.hostenv.xdBundleMap[i];if(f){for(var c in f){j[c]=b}}};dojo.hostenv.xdBundleMap={};dojo.xdRequireLocalization=function(n,m,l,k){var j=k.split(",");var g=dojo.hostenv.normalizeLocale(l);var f="";for(var c=0;c<j.length;c++){if(g.indexOf(j[c])==0){if(j[c].length>f.length){f=j[c]}}}var d=f.replace("-","_");var b=dojo.evalObjPath([n,"nls",m].join("."));if(b&&b[d]){bundle[g.replace("-","_")]=b[d]}else{var a=[n,(d||"root"),m].join(".");var h=dojo.hostenv.xdBundleMap[a];if(!h){h=dojo.hostenv.xdBundleMap[a]={}}h[g.replace("-","_")]=true;dojo.require(n+".nls"+(f?"."+f:"")+"."+m)}};(function(){var a=djConfig.extraLocale;if(a){if(!a instanceof Array){a=[a]}dojo._xdReqLoc=dojo.xdRequireLocalization;dojo.xdRequireLocalization=function(d,c,h,f){dojo._xdReqLoc(d,c,h,f);if(h){return}for(var g=0;g<a.length;g++){dojo._xdReqLoc(d,c,a[g],f)}}}})();dojo.hostenv.unpackXdDependency=function(d){var c=null;var b=null;switch(d[0]){case"requireIf":case"requireAfterIf":case"conditionalRequire":if((d[1]===true)||(d[1]=="common")||(d[1]&&dojo.render[d[1]].capable)){c=[{name:d[2],content:null}]}break;case"requireAll":d.shift();c=d;dojo.hostenv.flattenRequireArray(c);break;case"kwCompoundRequire":case"hostenv.conditionalLoadModule":var a=d[1];var f=a.common||[];var c=(a[dojo.hostenv.name_])?f.concat(a[dojo.hostenv.name_]||[]):f.concat(a["default"]||[]);dojo.hostenv.flattenRequireArray(c);break;case"require":case"requireAfter":case"hostenv.loadModule":c=[{name:d[1],content:null}];break}if(d[0]=="requireAfterIf"||d[0]=="requireIf"){b=c;c=null}return{requires:c,requiresAfter:b}};dojo.hostenv.xdWalkReqs=function(){var c=null;var b;for(var a=0;a<this.xdOrderedReqs.length;a++){b=this.xdOrderedReqs[a];if(this.xdDepMap[b]){c=[b];c[b]=true;this.xdEvalReqs(c)}}};dojo.hostenv.xdEvalReqs=function(g){while(g.length>0){var f=g[g.length-1];var a=this.xdDepMap[f];if(a){var j=a.requires;if(j&&j.length>0){var h;for(var b=0;b<j.length;b++){h=j[b].name;if(h&&!g[h]){g.push(h);g[h]=true;this.xdEvalReqs(g)}}}var c=this.xdContents[a.contentIndex];if(!c.isDefined){var d=c.content;d.resourceName=c.resourceName;d.resourcePath=c.resourcePath;this.xdDefList.push(d);c.isDefined=true}this.xdDepMap[f]=null;var j=a.requiresAfter;if(j&&j.length>0){var h;for(var b=0;b<j.length;b++){h=j[b].name;if(h&&!g[h]){g.push(h);g[h]=true;this.xdEvalReqs(g)}}}}g.pop()}};dojo.hostenv.clearXdInterval=function(){clearInterval(this.xdTimer);this.xdTimer=0};dojo.hostenv.watchInFlightXDomain=function(){var g=(djConfig.xdWaitSeconds||15)*1000;if(this.xdStartTime+g<(new Date()).getTime()){this.clearXdInterval();var f="";for(var c in this.xdInFlight){if(this.xdInFlight[c]){f+=c+" "}}dojo.raise("Could not load cross-domain packages: "+f)}for(var c in this.xdInFlight){if(this.xdInFlight[c]){return}}this.clearXdInterval();this.xdWalkReqs();var b=this.xdDefList.length;for(var d=0;d<b;d++){var a=dojo.hostenv.xdDefList[d];if(djConfig.debugAtAllCosts&&a.resourceName){if(!this["xdDebugQueue"]){this.xdDebugQueue=[]}this.xdDebugQueue.push({resourceName:a.resourceName,resourcePath:a.resourcePath})}else{a(dojo)}}for(var d=0;d<this.xdContents.length;d++){var h=this.xdContents[d];if(h.content&&!h.isDefined){h.content(dojo)}}this.resetXd();if(this["xdDebugQueue"]&&this.xdDebugQueue.length>0){this.xdDebugFileLoaded()}else{this.xdNotifyLoaded()}};dojo.hostenv.xdNotifyLoaded=function(){this.inFlightCount=0;this.callLoaded()};dojo.hostenv.flattenRequireArray=function(b){if(b){for(var a=0;a<b.length;a++){if(b[a] instanceof Array){b[a]={name:b[a][0],content:null}}else{b[a]={name:b[a],content:null}}}}};dojo.hostenv.xdHasCalledPreload=false;dojo.hostenv.xdRealCallLoaded=dojo.hostenv.callLoaded;dojo.hostenv.callLoaded=function(){if(this.xdHasCalledPreload||dojo.hostenv.getModulePrefix("dojo")=="src"||!this.localesGenerated){this.xdRealCallLoaded();this.xdHasCalledPreload=true}else{if(this.localesGenerated){this.registerNlsPrefix=function(){dojo.registerModulePath("nls",dojo.hostenv.getModulePrefix("dojo")+"/../nls")};this.preloadLocalizations()}this.xdHasCalledPreload=true}}}if(typeof window!="undefined"){(function(){if(djConfig.allowQueryConfig){var _fa=document.location.toString();var _fb=_fa.split("?",2);if(_fb.length>1){var _fc=_fb[1];var _fd=_fc.split("&");for(var x in _fd){var sp=_fd[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 _101=document.getElementsByTagName("script");var _102=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;for(var i=0;i<_101.length;i++){var src=_101[i].getAttribute("src");if(!src){continue}var m=src.match(_102);if(m){var root=src.substring(0,m.index);if(src.indexOf("bootstrap1")>-1){root+="../"}if(!this["djConfig"]){djConfig={}}if(djConfig.baseScriptUri==""){djConfig.baseScriptUri=root}if(djConfig.baseRelativePath==""){djConfig.baseRelativePath=root}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 _10e=dua.indexOf("Gecko");drh.mozilla=drh.moz=(_10e>=0)&&(!drh.khtml);if(drh.mozilla){drh.geckoVersion=dua.substring(_10e+6,_10e+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 tdoc=window.document;var tdi=tdoc.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 c=null;var b=null;try{c=new XMLHttpRequest()}catch(f){}if(!c){for(var d=0;d<3;++d){var a=dojo.hostenv._XMLHTTP_PROGIDS[d];try{c=new ActiveXObject(a)}catch(f){b=f}if(c){dojo.hostenv._XMLHTTP_PROGIDS=[a];break}}}if(!c){return dojo.raise("XMLHTTP not available",b)}return c};dojo.hostenv._blockAsync=false;dojo.hostenv.getText=function(a,c,j){if(!c){this._blockAsync=true}var k=this.getXmlhttpObject();function g(m){var n=m.status;return Boolean((!n)||((200<=n)&&(300>n))||(n==304))}if(c){var f=this,d=null,i=dojo.global();var l=dojo.evalObjPath("dojo.io.XMLHTTPTransport");k.onreadystatechange=function(){if(d){i.clearTimeout(d);d=null}if(f._blockAsync||(l&&l._blockAsync)){d=i.setTimeout(function(){k.onreadystatechange.apply(this)},10)}else{if(4==k.readyState){if(g(k)){c(k.responseText)}}}}}k.open("GET",a,c?true:false);try{k.send(null);if(c){return null}if(!g(k)){var b=Error("Unable to load "+a+" status:"+k.status);b.status=k.status;b.responseText=k.responseText;throw b}}catch(h){this._blockAsync=false;if((j)&&(!c)){return null}else{throw h}}this._blockAsync=false;return k.responseText};dojo.hostenv.defaultDebugContainerId="dojoDebug";dojo.hostenv._println_buffer=[];dojo.hostenv._println_safe=false;dojo.hostenv.println=function(a){if(!dojo.hostenv._println_safe){dojo.hostenv._println_buffer.push(a)}else{try{var b=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);if(!b){b=dojo.body()}var f=document.createElement("div");f.appendChild(document.createTextNode(a));b.appendChild(f)}catch(d){try{document.write("<div>"+a+"</div>")}catch(c){window.status=a}}}};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 d=[];if(djConfig.searchIds&&djConfig.searchIds.length>0){d=d.concat(djConfig.searchIds)}if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){d=d.concat(dojo.hostenv.searchIds)}if((djConfig.parseWidgets)||(d.length>0)){if(dojo.evalObjPath("dojo.widget.Parse")){var c=new dojo.xml.Parse();if(d.length>0){for(var b=0;b<d.length;b++){var a=document.getElementById(d[b]);if(!a){continue}var f=c.parseElement(a,null,true);dojo.widget.getParser().createComponents(f)}}else{if(djConfig.parseWidgets){var f=c.parseElement(dojo.body(),null,true);dojo.widget.getParser().createComponents(f)}}}}};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(a,c,b){if((c)&&((typeof a=="string")||(a instanceof String))){a=c[a]}return(c?a.apply(c,b||[]):a())};dojo.withGlobal=function(g,f,d,c){var h;var b=dj_currentContext;var a=dj_currentDocument;try{dojo.setContext(g,g.document);h=dojo._fireCallback(f,d,c)}finally{dojo.setContext(b,a)}return h};dojo.withDoc=function(a,g,f,d){var c;var b=dj_currentDocument;try{dj_currentDocument=a;c=dojo._fireCallback(g,f,d)}finally{dj_currentDocument=b}return c}}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.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(d,c){for(var b=1,a=arguments.length;b<a;b++){dojo.lang._mixin(d,arguments[b])}return d};dojo.lang.extend=function(c,b){for(var d=1,a=arguments.length;d<a;d++){dojo.lang._mixin(c.prototype,arguments[d])}return c};dojo.inherits=dojo.lang.inherits;dojo.mixin=dojo.lang.mixin;dojo.extend=dojo.lang.extend;dojo.lang.find=function(a,k,j,d){if(!dojo.lang.isArrayLike(a)&&dojo.lang.isArrayLike(k)){dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");var h=a;a=k;k=h}var b=dojo.lang.isString(a);if(b){a=a.split("")}if(d){var c=-1;var g=a.length-1;var f=-1}else{var c=1;var g=0;var f=a.length}if(j){while(g!=f){if(a[g]===k){return g}g+=c}}else{while(g!=f){if(a[g]==k){return g}g+=c}}return -1};dojo.lang.indexOf=dojo.lang.find;dojo.lang.findLast=function(c,b,a){return dojo.lang.find(c,b,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.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 b={};var c=0;for(var a in d){if(d[a]&&(!b[a])){c++;break}}return c==0}else{if(dojo.lang.isArrayLike(d)||dojo.lang.isString(d)){return d.length==0}}},map:function(b,h,d){var c=dojo.lang.isString(b);if(c){b=b.split("")}if(dojo.lang.isFunction(h)&&(!d)){d=h;h=dj_global}else{if(dojo.lang.isFunction(h)&&d){var a=h;h=d;d=a}}if(Array.map){var g=Array.map(b,d,h)}else{var g=[];for(var f=0;f<b.length;++f){g.push(d.call(h,b[f]))}}if(c){return g.join("")}else{return g}},reduce:function(b,c,g,h){var a=c;if(arguments.length==2){h=c;a=b[0];b=b.slice(1)}else{if(arguments.length==3){if(dojo.lang.isFunction(g)){h=g;g=null}}else{if(dojo.lang.isFunction(g)){var f=h;h=g;g=f}}}var d=g||dj_global;dojo.lang.map(b,function(i){a=h.call(d,a,i)});return a},forEach:function(f,d,c){if(dojo.lang.isString(f)){f=f.split("")}if(Array.forEach){Array.forEach(f,d,c)}else{if(!c){c=dj_global}for(var b=0,a=f.length;b<a;b++){d.call(c,f[b],b,f)}}},_everyOrSome:function(d,a,h,g){if(dojo.lang.isString(a)){a=a.split("")}if(Array.every){return Array[d?"every":"some"](a,h,g)}else{if(!g){g=dj_global}for(var f=0,c=a.length;f<c;f++){var b=h.call(g,a[f],f,a);if(d&&!b){return false}else{if((!d)&&(b)){return true}}}return Boolean(d)}},every:function(b,c,a){return this._everyOrSome(true,b,c,a)},some:function(a,c,b){return this._everyOrSome(false,a,c,b)},filter:function(a,f,d){var c=dojo.lang.isString(a);if(c){a=a.split("")}var g;if(Array.filter){g=Array.filter(a,f,d)}else{if(!d){if(arguments.length>=3){dojo.raise("thisObject doesn't exist!")}d=dj_global}g=[];for(var b=0;b<a.length;b++){if(f.call(d,a[b],b,a)){g.push(a[b])}}}if(c){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(a,d){var c=[];for(var b=d||0;b<a.length;b++){c.push(a[b])}return c}});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(a,c){var b=null;if(dojo.lang.isArray(a)){b=a}else{if(a instanceof dojo.gfx.color.Color){b=a.toRgb()}else{b=new dojo.gfx.color.Color(a).toRgb()}}return dojo.gfx.color.blend(this.toRgb(),b,c)}});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(d){var a="0123456789ABCDEF";var b=new Array(3);if(d.indexOf("#")==0){d=d.substring(1)}d=d.toUpperCase();if(d.replace(new RegExp("["+a+"]","g"),"")!=""){return null}if(d.length==3){b[0]=d.charAt(0)+d.charAt(0);b[1]=d.charAt(1)+d.charAt(1);b[2]=d.charAt(2)+d.charAt(2)}else{b[0]=d.substring(0,2);b[1]=d.substring(2,4);b[2]=d.substring(4)}for(var c=0;c<b.length;c++){b[c]=a.indexOf(b[c].charAt(0))*16+a.indexOf(b[c].charAt(1))}return b};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.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(c,f){var b=[];c=c||dj_global;if(dojo.lang.isString(f)){f=c[f]}for(var a=2;a<arguments.length;a++){b.push(arguments[a])}var g=(f.__preJoinArity||f.length)-b.length;function d(n,m,l){var k=l;var j=m.slice(0);for(var h=0;h<n.length;h++){j.push(n[h])}l=l-n.length;if(l<=0){var i=f.apply(c,j);l=k;return i}else{return function(){return d(arguments,j,l)}}}return d([],b,g)};dojo.lang.curryArguments=function(g,f,d,c){var b=[];var a=c||0;for(a=c;a<d.length;a++){b.push(d[a])}return dojo.lang.curry.apply(dojo.lang,[g,f].concat(b))};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.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(a,d,c){if(!c){c=d;d=this}c=dojo.lang.hitch(d,c);var b=this[a]||function(){};this[a]=function(){var f=b.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,b,a,c){dojo.lfx.IAnimation.call(this);if(dojo.lang.isNumber(g)||(!g&&f.getValue)){c=a;a=b;b=d;d=f;f=g;g=null}else{if(g.getValue||dojo.lang.isArray(g)){c=b;a=d;b=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(a){this.repeatCount=a}if(c){this.rate=c}if(g){dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(h){if(g[h]){this.connect(h,g[h])}},this)}if(b&&dojo.lang.isFunction(b)){this.easing=b}};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(d,c){if(c){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(d>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,c)}),d);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 b=this._percent/100;var a=this.curve.getValue(b);if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount}this.fire("handler",["begin",a]);this.fire("onBegin",[a])}this.fire("handler",["play",a]);this.fire("onPlay",[a]);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(a,b){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=a;if(b){this.play()}return this},stop:function(c){clearTimeout(this._timer);var b=this._percent/100;if(c){b=1}var a=this.curve.getValue(b);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 b=(c-this._startTime)/(this._endTime-this._startTime);if(b>=1){b=1;this._percent=100}else{this._percent=b*100}if((this.easing)&&(dojo.lang.isFunction(this.easing))){b=this.easing(b)}var a=this.curve.getValue(b);this.fire("handler",["animate",a]);this.fire("onAnimate",[a]);if(b<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(a,b){if(!this._anims.length){return this}this.fire("beforeBegin");if(a>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,b)}),a);return this}if(b||this._anims[0].percent==0){this.fire("onBegin")}this.fire("onPlay");this._animsCall("play",null,b);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(c){var a=[];if(arguments.length>1){for(var b=1;b<arguments.length;b++){a.push(arguments[b])}}var d=this;dojo.lang.forEach(this._anims,function(f){f[c](a)},d);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(g,d,f){this._anims.push(g);if(d<f.length-1){g.connect("onEnd",dojo.lang.hitch(this,"_playNext"))}else{g.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.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 b=dojo.doc();do{var a="dj_unique_"+(++arguments.callee._idIncrement)}while(b.getElementById(a));return a};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(b,d,a){var c=0;if(a){while(b.hasChildNodes()&&b.firstChild.nodeType==dojo.dom.TEXT_NODE){b.removeChild(b.firstChild)}while(b.hasChildNodes()&&b.lastChild.nodeType==dojo.dom.TEXT_NODE){b.removeChild(b.lastChild)}}while(b.hasChildNodes()){d.appendChild(b.firstChild);c++}return c};dojo.dom.copyChildren=function(c,b,a){var d=c.cloneNode(true);return this.moveChildren(d,b,a)};dojo.dom.replaceChildren=function(b,d){var c=[];if(dojo.render.html.ie){for(var a=0;a<b.childNodes.length;a++){c.push(b.childNodes[a])}}dojo.dom.removeChildren(b);b.appendChild(d);for(var a=0;a<c.length;a++){dojo.dom.destroyNode(c[a])}};dojo.dom.removeChildren=function(b){var a=b.childNodes.length;while(b.hasChildNodes()){dojo.dom.removeNode(b.firstChild)}return a};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(f,d,c){var b=[];var a=(d&&(d instanceof Function||typeof d=="function"));while(f){if(!a||d(f)){b.push(f)}if(c&&b.length>0){return b[0]}f=f.parentNode}if(c){return null}return b};dojo.dom.getAncestorsByTag=function(c,b,a){b=b.toLowerCase();return dojo.dom.getAncestors(c,function(d){return((d.tagName)&&(d.tagName.toLowerCase()==b))},a)};dojo.dom.getFirstAncestorByTag=function(b,a){return dojo.dom.getAncestorsByTag(b,a,true)};dojo.dom.isDescendantOf=function(c,b,a){if(a&&c){c=c.parentNode}while(c){if(c==b){return true}c=c.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 f=null;var c=dojo.doc();if(!dj_undef("ActiveXObject")){var b=["MSXML2","Microsoft","MSXML","MSXML3"];for(var a=0;a<b.length;a++){try{f=new ActiveXObject(b[a]+".XMLDOM")}catch(d){}if(f){break}}}else{if((c.implementation)&&(c.implementation.createDocument)){f=c.implementation.createDocument("","",null)}}return f};dojo.dom.createDocumentFromText=function(j,f){if(!f){f="text/xml"}if(!dj_undef("DOMParser")){var c=new DOMParser();return c.parseFromString(j,f)}else{if(!dj_undef("ActiveXObject")){var d=dojo.dom.createDocument();if(d){d.async=false;d.loadXML(j);return d}else{dojo.debug("toXml didn't work?")}}else{var b=dojo.doc();if(b.createElement){var h=b.createElement("xml");h.innerHTML=j;if(b.implementation&&b.implementation.createDocument){var a=b.implementation.createDocument("foo","",null);for(var g=0;g<h.childNodes.length;g++){a.importNode(h.childNodes.item(g),true)}return a}return((h.document)&&(h.document.firstChild?h.document.firstChild:h))}}}return null};dojo.dom.prependChild=function(a,b){if(b.firstChild){b.insertBefore(a,b.firstChild)}else{b.appendChild(a)}return true};dojo.dom.insertBefore=function(c,b,a){if((a!=true)&&(c===b||c.nextSibling===b)){return false}var d=b.parentNode;d.insertBefore(c,b);return true};dojo.dom.insertAfter=function(d,c,b){var a=c.parentNode;if(c==a.lastChild){if((b!=true)&&(d===c)){return false}a.appendChild(d)}else{return this.insertBefore(d,c.nextSibling,b)}return true};dojo.dom.insertAtPosition=function(c,b,a){if((!c)||(!b)||(!a)){return false}switch(a.toLowerCase()){case"before":return dojo.dom.insertBefore(c,b);case"after":return dojo.dom.insertAfter(c,b);case"first":if(b.firstChild){return dojo.dom.insertBefore(c,b.firstChild)}else{b.appendChild(c);return true}break;default:b.appendChild(c);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(b,f){if(arguments.length>1){var d=dojo.doc();dojo.dom.replaceChildren(b,d.createTextNode(f));return f}else{if(b.textContent!=undefined){return b.textContent}var c="";if(b==null){return c}for(var a=0;a<b.childNodes.length;a++){switch(b.childNodes[a].nodeType){case 1:case 5:c+=dojo.dom.textContent(b.childNodes[a]);break;case 3:case 2:case 4:c+=b.childNodes[a].nodeValue;break;default:break}}return c}};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(f,d,g,c){if(f==null||((f==undefined)&&(typeof f=="undefined"))){dojo.raise("No element given to dojo.dom.setAttributeNS")}if(!((f.setAttributeNS==undefined)&&(typeof f.setAttributeNS=="undefined"))){f.setAttributeNS(d,g,c)}else{var b=f.ownerDocument;var a=b.createNode(2,g,d);a.nodeValue=c;f.setAttributeNode(a)}};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 d=dojo.global();var b=dojo.doc();var c=0;var f=0;if(dojo.render.html.mozilla){c=b.documentElement.clientWidth;f=d.innerHeight}else{if(!dojo.render.html.opera&&d.innerWidth){c=d.innerWidth;f=d.innerHeight}else{if(!dojo.render.html.opera&&dojo.exists(b,"documentElement.clientWidth")){var a=b.documentElement.clientWidth;if(!c||a&&a<c){c=a}f=b.documentElement.clientHeight}else{if(dojo.body().clientWidth){c=dojo.body().clientWidth;f=dojo.body().clientHeight}}}}return{width:c,height:f}};dojo.html.getScroll=function(){var b=dojo.global();var a=dojo.doc();var d=b.pageYOffset||a.documentElement.scrollTop||dojo.body().scrollTop||0;var c=b.pageXOffset||a.documentElement.scrollLeft||dojo.body().scrollLeft||0;return{top:d,left:c,offset:{x:c,y:d}}};dojo.html.getParentByType=function(b,a){var d=dojo.doc();var c=dojo.byId(b);a=a.toLowerCase();while((c)&&(c.nodeName.toLowerCase()!=a)){if(c==(d.body||d.documentElement)){return null}c=c.parentNode}return c};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 b={x:0,y:0};if(c.pageX||c.pageY){b.x=c.pageX;b.y=c.pageY}else{var d=dojo.doc().documentElement;var a=dojo.body();b.x=c.clientX+((d||a)["scrollLeft"])-((d||a)["clientLeft"]);b.y=c.clientY+((d||a)["scrollTop"])-((d||a)["clientTop"])}return b};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,b,g,f){dojo.deprecated("dojo.html."+i,"replaced by dojo.html."+h+"("+(g?"node, {"+g+": "+g+"}":"")+")"+(f?"."+f:""),"0.5");var d=[];if(g){var c={};c[g]=b[1];d.push(b[0]);d.push(c)}else{d=b}var a=dojo.html[h].apply(dojo.html,b);if(f){return a[f]}else{return a}};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.uri.Uri");dojo.uri=new function(){this.dojoUri=function(a){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),a)};this.moduleUri=function(d,c){var f=dojo.hostenv.getModuleSymbols(d).join("/");if(!f){return null}if(f.lastIndexOf("/")!=f.length-1){f+="/"}var b=f.indexOf(":");var a=f.indexOf("/");if(f.charAt(0)!="/"&&(b==-1||b>a)){f=dojo.hostenv.getBaseScriptUri()+f}return new dojo.uri.Uri(f,c)};this.Uri=function(){var c=arguments[0];for(var f=1;f<arguments.length;f++){if(!arguments[f]){continue}var k=new dojo.uri.Uri(arguments[f].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 g="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";var a=this.uri.match(new RegExp(g));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){g="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";a=this.authority.match(new RegExp(g));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.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(b,a){return(new RegExp("(^|\\s+)"+a+"(\\s+|$)")).test(dojo.html.getClass(b))};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,v,u){u=false;var s=dojo.doc();b=dojo.byId(b)||s;var r=c.split(/\s+/g);var p=[];if(v!=1&&v!=2){v=0}var n=new RegExp("(\\s|^)(("+r.join(")|(")+"))(\\s|$)");var l=r.join(" ").length;var g=[];if(!u&&s.evaluate){var f=".//"+(a||"*")+"[contains(";if(v!=dojo.html.classMatchType.ContainsAny){f+="concat(' ',@class,' '), ' "+r.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";if(v==2){f+=" and string-length(@class)="+l+"]"}else{f+="]"}}else{f+="concat(' ',@class,' '), ' "+r.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]"}var d=s.evaluate(f,b,null,XPathResult.ANY_TYPE,null);var t=d.iterateNext();while(t){try{g.push(t);t=d.iterateNext()}catch(w){break}}return g}else{if(!a){a="*"}g=b.getElementsByTagName(a);var h,q=0;outer:while(h=g[q++]){var m=dojo.html.getClasses(h);if(m.length==0){continue outer}var k=0;for(var o=0;o<m.length;o++){if(n.test(m[o])){if(v==dojo.html.classMatchType.ContainsAny){p.push(h);continue outer}else{k++}}else{if(v==dojo.html.classMatchType.IsOnly){continue outer}}}if(k==r.length){if((v==dojo.html.classMatchType.IsOnly)&&(k==m.length)){p.push(h)}else{if(v==dojo.html.classMatchType.ContainsAll){p.push(h)}}}}return p}};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,c,b){d=dojo.byId(d);if(!d||!d.style){return b}var a=document.defaultView.getComputedStyle(d,null);return(a&&a[dojo.html.toCamelCase(c)])||""};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,d,c){var b=dojo.html.getComputedStyle(f,d);if((!b)||((b=="auto")&&(c))){return{value:0,units:"px"}}var a=b.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(_300,_301){if(!_301){return 0}if(_301.slice(-2)=="px"){return parseFloat(_301)}var _302=0;with(_300){var _303=style.left;var _304=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_301||0;_302=style.pixelLeft;style.left=_303;runtimeStyle.left=_304}catch(e){}}return _302}}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(c,b,a){if(isNaN(a)){return false}c.style[b]=Math.max(0,a)+"px";return true};dojo.html.styleSheet=null;dojo.html.insertCssRule=function(b,a,d){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){d=dojo.html.styleSheet.cssRules.length}else{if(dojo.html.styleSheet.rules){d=dojo.html.styleSheet.rules.length}else{return null}}}if(dojo.html.styleSheet.insertRule){var c=b+" { "+a+" }";return dojo.html.styleSheet.insertRule(c,d)}else{if(dojo.html.styleSheet.addRule){return dojo.html.styleSheet.addRule(b,a,d)}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(d,f,m,k){if(!d){return}if(!f){f=document}var h=dojo.hostenv.getText(d,false,k);if(h===null){return}h=dojo.html.fixPathsInCssText(h,d);if(m){var g=-1,a,c=dojo.html._insertedCssFiles;for(var b=0;b<c.length;b++){if((c[b].doc==f)&&(c[b].cssText==h)){g=b;a=c[b].nodeRef;break}}if(a){var l=f.getElementsByTagName("style");for(var b=0;b<l.length;b++){if(l[b]==a){return}}dojo.html._insertedCssFiles.shift(g,1)}}var j=dojo.html.insertCssText(h,f);dojo.html._insertedCssFiles.push({doc:f,cssText:h,nodeRef:j});if(j&&djConfig.isDebug){j.setAttribute("dbgHref",d)}return j};dojo.html.insertCssText=function(d,g,c){if(!d){return}if(!g){g=document}if(c){d=dojo.html.fixPathsInCssText(d,c)}var b=g.createElement("style");b.setAttribute("type","text/css");var f=g.getElementsByTagName("head")[0];if(!f){dojo.debug("No head tag in document, aborting styles");return}else{f.appendChild(b)}if(b.styleSheet){var a=function(){try{b.styleSheet.cssText=d}catch(i){dojo.debug(i)}};if(b.styleSheet.disabled){setTimeout(a,10)}else{a()}}else{var h=g.createTextNode(d);b.appendChild(h)}return b};dojo.html.fixPathsInCssText=function(f,j){if(!f||!j){return}var c,h="",a="",b="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";var i=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())}h+=f.substring(0,c.index)+"AlphaImageLoader("+c[1]+"src='"+a+"'";f=f.substr(c.index+c[0].length)}f=h+f;h=""}while(c=i.exec(f)){a=c[1].replace(regexTrim,"$2");if(!g.exec(a)){a=(new dojo.uri.Uri(j,a).toString())}h+=f.substring(0,c.index)+"url("+a+")";f=f.substr(c.index+c[0].length)}return h+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(b){var d=dojo.render.html;var a={dj_ie:d.ie,dj_ie55:d.ie55,dj_ie6:d.ie60,dj_ie7:d.ie70,dj_iequirks:d.ie&&d.quirks,dj_opera:d.opera,dj_opera8:d.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:d.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:d.khtml,dj_safari:d.safari,dj_gecko:d.mozilla};for(var c in a){if(a[c]){dojo.html.addClass(b,c)}}};dojo.provide("dojo.html.display");dojo.html._toggle=function(a,c,b){a=dojo.byId(a);b(a,!c(a));return c(a)};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(a,b){dojo.html.setStyle(a,"display",((b instanceof String||typeof b=="string")?b:(b?dojo.html.suggestDisplayByTagName(a):"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(d,g,f){d=dojo.byId(d);var c=dojo.render.html;if(!f){if(g>=1){if(c.ie){dojo.html.clearOpacity(d);return}else{g=0.999999}}else{if(g<0){g=0}}}if(c.ie){if(d.nodeName.toLowerCase()=="tr"){var b=d.getElementsByTagName("td");for(var a=0;a<b.length;a++){b[a].style.filter="Alpha(Opacity="+g*100+")"}}d.style.filter="Alpha(Opacity="+g*100+")"}else{if(c.moz){d.style.opacity=g;d.style.MozOpacity=g}else{if(c.safari){d.style.opacity=g;d.style.KhtmlOpacity=g}else{d.style.opacity=g}}}};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.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.html.layout");dojo.html.sumAncestorProperties=function(a,d){a=dojo.byId(a);if(!a){return 0}var c=0;while(a){if(dojo.html.getComputedStyle(a,"position")=="fixed"){return 0}var b=a[d];if(b){c+=b-0;if(a==dojo.body()){break}}a=a.parentNode}return c};dojo.html.setStyleAttributes=function(f,h){f=dojo.byId(f);var g=h.replace(/(;)?\s*$/,"").split(";");for(var c=0;c<g.length;c++){var d=g[c].split(":");var b=d[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();var a=d[1].replace(/\s*$/,"").replace(/^\s*/,"");switch(b){case"opacity":dojo.html.setOpacity(f,a);break;case"content-height":dojo.html.setContentBox(f,{height:a});break;case"content-width":dojo.html.setContentBox(f,{width:a});break;case"outer-height":dojo.html.setMarginBox(f,{height:a});break;case"outer-width":dojo.html.setMarginBox(f,{width:a});break;default:f.style[dojo.html.toCamelCase(b)]=a}}};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,_369,_36a){node=dojo.byId(node,node.ownerDocument);var ret={x:0,y:0};var bs=dojo.html.boxSizing;if(!_36a){_36a=bs.CONTENT_BOX}var _36d=2;var _36e;switch(_36a){case bs.MARGIN_BOX:_36e=3;break;case bs.BORDER_BOX:_36e=2;break;case bs.PADDING_BOX:default:_36e=1;break;case bs.CONTENT_BOX:_36e=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){_36d=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 _372;if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){_372=db}else{_372=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 _374=node;do{var n=_374.offsetLeft;if(!h.opera||n>0){ret.x+=isNaN(n)?0:n}var m=_374.offsetTop;ret.y+=isNaN(m)?0:m;_374=_374.offsetParent}while((_374!=_372)&&(_374!=null))}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y}}}}if(_369){var _377=dojo.html.getScroll();ret.y+=_377.top;ret.x+=_377.left}var _378=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];if(_36d>_36e){for(var i=_36e;i<_36d;++i){ret.y+=_378[i](node,"top");ret.x+=_378[i](node,"left")}}else{if(_36d<_36e){for(var i=_36e;i>_36d;--i){ret.y-=_378[i-1](node,"top");ret.x-=_378[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(f,d,c){var b=0;for(var a=0;a<d.length;a++){b+=dojo.html.getPixelValue(f,d[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(a){a=dojo.byId(a);var b=dojo.html.getPadBorder(a);return{width:a.offsetWidth-b.width,height:a.offsetHeight-b.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(a){var c=dojo.html.getBorderBox(a);var b=dojo.html.getMargin(a);return{width:c.width+b.width,height:c.height+b.height}};dojo.html.setMarginBox=function(i,f){i=dojo.byId(i);var h=0;var d=0;var g=dojo.html.isBorderBox(i);var b=(!g?dojo.html.getPadBorder(i):{width:0,height:0});var a=dojo.html.getMargin(i);var c={};if(typeof f.width!="undefined"){h=f.width-b.width;h-=a.width;c.width=dojo.html.setPositivePixelValue(i,"width",h)}if(typeof f.height!="undefined"){d=f.height-b.height;d-=a.height;c.height=dojo.html.setPositivePixelValue(i,"height",d)}return c};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(a,h,f){if(a instanceof Array||typeof a=="array"){dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");while(a.length<4){a.push(0)}while(a.length>4){a.pop()}var b={left:a[0],top:a[1],width:a[2],height:a[3]}}else{if(!a.nodeType&&!(a instanceof String||typeof a=="string")&&("width" in a||"height" in a||"left" in a||"x" in a||"top" in a||"y" in a)){var b={left:a.left||a.x||0,top:a.top||a.y||0,width:a.width||0,height:a.height||0}}else{var c=dojo.byId(a);var g=dojo.html.abs(c,h,f);var d=dojo.html.getMarginBox(c);var b={left:g.left,top:g.top,width:d.width,height:d.height}}}b.x=b.left;b.y=b.top;return b};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,b,a){return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,b)};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(a,b){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.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,g,f){k=dojo.lfx.html._byId(k);var c={propertyMap:j,nodes:k,duration:i,easing:g||dojo.lfx.easeDefault};var b=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 d=function(o){var n=[];dojo.lang.forEach(o,function(p){n.push(Math.round(p))});return n};var a=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 m=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 h=new dojo.lfx.Animation({beforeBegin:function(){b(c);h.curve=new m(c.propertyMap)},onAnimate:function(n){dojo.lang.forEach(c.nodes,function(o){a(o,n)})}},c.duration,null,c.easing);if(f){for(var l in f){if(dojo.lang.isFunction(f[l])){h.connect(l,h,f[l])}}}return h};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(d,b,a,h,g){d=dojo.lfx.html._byId(d);var c={property:"opacity"};if(!dj_undef("start",b)){c.start=b.start}else{c.start=function(){return dojo.html.getOpacity(d[0])}}if(!dj_undef("end",b)){c.end=b.end}else{dojo.raise("dojo.lfx.html.fade needs an end value")}var f=dojo.lfx.propertyAnimation(d,[c],a,h);f.connect("beforeBegin",function(){dojo.lfx.html._makeFadeable(d)});if(g){f.connect("onEnd",function(){g(d,f)})}return f};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,f,d){b=dojo.lfx.html._byId(b);dojo.lang.forEach(b,function(g){dojo.html.setOpacity(g,0)});var c=dojo.lfx.html.fadeIn(b,a,f,d);c.connect("beforeBegin",function(){if(dojo.lang.isArrayLike(b)){dojo.lang.forEach(b,dojo.html.show)}else{dojo.html.show(b)}});return c};dojo.lfx.html.fadeHide=function(a,f,d,c){var b=dojo.lfx.html.fadeOut(a,f,d,function(){if(dojo.lang.isArrayLike(a)){dojo.lang.forEach(a,dojo.html.hide)}else{dojo.html.hide(a)}if(c){c(a,b)}});return b};dojo.lfx.html.wipeIn=function(_40f,_410,_411,_412){_40f=dojo.lfx.html._byId(_40f);var _413=[];dojo.lang.forEach(_40f,function(node){var _415={};var _416,_417,_418;with(node.style){_416=top;_417=left;_418=position;top="-9999px";left="-9999px";position="absolute";display=""}var _419=dojo.html.getBorderBox(node).height;with(node.style){top=_416;left=_417;position=_418;display="none"}var anim=dojo.lfx.propertyAnimation(node,{height:{start:1,end:function(){return _419}}},_410,_411);anim.connect("beforeBegin",function(){_415.overflow=node.style.overflow;_415.height=node.style.height;with(node.style){overflow="hidden";height="1px"}dojo.html.show(node)});anim.connect("onEnd",function(){with(node.style){overflow=_415.overflow;height=_415.height}if(_412){_412(node,anim)}});_413.push(anim)});return dojo.lfx.combine(_413)};dojo.lfx.html.wipeOut=function(_41b,_41c,_41d,_41e){_41b=dojo.lfx.html._byId(_41b);var _41f=[];dojo.lang.forEach(_41b,function(node){var _421={};var anim=dojo.lfx.propertyAnimation(node,{height:{start:function(){return dojo.html.getContentBox(node).height},end:1}},_41c,_41d,{beforeBegin:function(){_421.overflow=node.style.overflow;_421.height=node.style.height;with(node.style){overflow="hidden"}dojo.html.show(node)},onEnd:function(){dojo.html.hide(node);with(node.style){overflow=_421.overflow;height=_421.height}if(_41e){_41e(node,anim)}}});_41f.push(anim)});return dojo.lfx.combine(_41f)};dojo.lfx.html.slideTo=function(h,g,f,d,c){h=dojo.lfx.html._byId(h);var b=[];var a=dojo.html.getComputedStyle;if(dojo.lang.isArray(g)){dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");g={top:g[0],left:g[1]}}dojo.lang.forEach(h,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:(g.top||0)},left:{start:k,end:(g.left||0)}},f,d,{beforeBegin:m});if(c){j.connect("onEnd",function(){c(h,j)})}b.push(j)});return dojo.lfx.combine(b)};dojo.lfx.html.slideBy=function(h,g,f,d,c){h=dojo.lfx.html._byId(h);var b=[];var a=dojo.html.getComputedStyle;if(dojo.lang.isArray(g)){dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");g={top:g[0],left:g[1]}}dojo.lang.forEach(h,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+(g.top||0)},left:{start:k,end:k+(g.left||0)}},f,d).connect("beforeBegin",m);if(c){j.connect("onEnd",function(){c(h,j)})}b.push(j)});return dojo.lfx.combine(b)};dojo.lfx.html.explode=function(_441,_442,_443,_444,_445){var h=dojo.html;_441=dojo.byId(_441);_442=dojo.byId(_442);var _447=h.toCoordinateObject(_441,true);var _448=document.createElement("div");h.copyStyle(_448,_442);if(_442.explodeClassName){_448.className=_442.explodeClassName}with(_448.style){position="absolute";display="none";var _449=h.getStyle(_441,"background-color");backgroundColor=_449?_449.toLowerCase():"transparent";backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor}dojo.body().appendChild(_448);with(_442.style){visibility="hidden";display="block"}var _44a=h.toCoordinateObject(_442,true);with(_442.style){display="none";visibility="visible"}var _44b={opacity:{start:0.5,end:1}};dojo.lang.forEach(["height","width","top","left"],function(type){_44b[type]={start:_447[type],end:_44a[type]}});var anim=new dojo.lfx.propertyAnimation(_448,_44b,_443,_444,{beforeBegin:function(){h.setDisplay(_448,"block")},onEnd:function(){h.setDisplay(_442,"block");_448.parentNode.removeChild(_448)}});if(_445){anim.connect("onEnd",function(){_445(_442,anim)})}return anim};dojo.lfx.html.implode=function(_44e,end,_450,_451,_452){var h=dojo.html;_44e=dojo.byId(_44e);end=dojo.byId(end);var _454=dojo.html.toCoordinateObject(_44e,true);var _455=dojo.html.toCoordinateObject(end,true);var _456=document.createElement("div");dojo.html.copyStyle(_456,_44e);if(_44e.explodeClassName){_456.className=_44e.explodeClassName}dojo.html.setOpacity(_456,0.3);with(_456.style){position="absolute";display="none";backgroundColor=h.getStyle(_44e,"background-color").toLowerCase()}dojo.body().appendChild(_456);var _457={opacity:{start:1,end:0.5}};dojo.lang.forEach(["height","width","top","left"],function(type){_457[type]={start:_454[type],end:_455[type]}});var anim=new dojo.lfx.propertyAnimation(_456,_457,_450,_451,{beforeBegin:function(){dojo.html.hide(_44e);dojo.html.show(_456)},onEnd:function(){_456.parentNode.removeChild(_456)}});if(_452){anim.connect("onEnd",function(){_452(_44e,anim)})}return anim};dojo.lfx.html.highlight=function(g,f,d,c,b){g=dojo.lfx.html._byId(g);var a=[];dojo.lang.forEach(g,function(n){var m=dojo.html.getBackgroundColor(n);var l=dojo.html.getStyle(n,"background-color").toLowerCase();var k=dojo.html.getStyle(n,"background-image");var i=(l=="transparent"||l=="rgba(0, 0, 0, 0)");while(m.length>3){m.pop()}var j=new dojo.gfx.color.Color(f);var h=new dojo.gfx.color.Color(m);var o=dojo.lfx.propertyAnimation(n,{"background-color":{start:j,end:h}},d,c,{beforeBegin:function(){if(k){n.style.backgroundImage="none"}n.style.backgroundColor="rgb("+j.toRgb().join(",")+")"},onEnd:function(){if(k){n.style.backgroundImage=k}if(i){n.style.backgroundColor="transparent"}if(b){b(n,o)}}});a.push(o)});return dojo.lfx.combine(a)};dojo.lfx.html.unhighlight=function(f,c,b,a,g){f=dojo.lfx.html._byId(f);var d=[];dojo.lang.forEach(f,function(i){var l=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(i));var h=new dojo.gfx.color.Color(c);var k=dojo.html.getStyle(i,"background-image");var j=dojo.lfx.propertyAnimation(i,{"background-color":{start:l,end:h}},b,a,{beforeBegin:function(){if(k){i.style.backgroundImage="none"}i.style.backgroundColor="rgb("+l.toRgb().join(",")+")"},onEnd:function(){if(g){g(i,j)}}});d.push(j)});return dojo.lfx.combine(d)};dojo.lang.mixin(dojo.lfx,dojo.lfx.html);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(d,f,b){var a="";for(var c=0;c<f;c++){a+=d;if(b&&c<f-1){a+=b}}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.lang.extras");dojo.lang.setTimeout=function(g,a){var f=window,d=2;if(!dojo.lang.isFunction(g)){f=g;g=a;a=arguments[2];d++}if(dojo.lang.isString(g)){g=f[g]}var b=[];for(var c=d;c<arguments.length;c++){b.push(arguments[c])}return dojo.global().setTimeout(function(){g.apply(f,b)},a)};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(_497,_498,_499){with(dojo.parseObjPath(_497,_498,_499)){return dojo.evalProp(prop,obj,_499)}};dojo.lang.setObjPathValue=function(_49a,_49b,_49c,_49d){dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");if(arguments.length<4){_49d=true}with(dojo.parseObjPath(_49a,_49c,_49d)){if(obj&&(_49d||(prop in obj))){obj[prop]=_49b}}};dojo.provide("dojo.io.common");dojo.io.transports=[];dojo.io.hdlrFuncNames=["load","error","timeout"];dojo.io.Request=function(c,a,d,b){if((arguments.length==1)&&(arguments[0].constructor==Object)){this.fromKwArgs(arguments[0])}else{this.url=c;if(a){this.mimetype=a}if(d){this.transport=d}if(arguments.length>=4){this.changeUrl=b}}};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(b,c,a,d){},error:function(a,d,c,b){},timeout:function(a,d,c,b){},handle:function(b,d,c,a){},timeoutSeconds:0,abort:function(){},fromKwArgs:function(c){if(c.url){c.url=c.url.toString()}if(c.formNode){c.formNode=dojo.byId(c.formNode)}if(!c.method&&c.formNode&&c.formNode.method){c.method=c.formNode.method}if(!c.handle&&c.handler){c.handle=c.handler}if(!c.load&&c.loaded){c.load=c.loaded}if(!c.changeUrl&&c.changeURL){c.changeUrl=c.changeURL}c.encoding=dojo.lang.firstValued(c.encoding,djConfig.bindEncoding,"");c.sendTransport=dojo.lang.firstValued(c.sendTransport,djConfig.ioSendTransport,false);var b=dojo.lang.isFunction;for(var a=0;a<dojo.io.hdlrFuncNames.length;a++){var d=dojo.io.hdlrFuncNames[a];if(c[d]&&b(c[d])){continue}if(c.handle&&b(c.handle)){c[d]=c.handle}}dojo.lang.mixin(this,c)}});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(c){if(!(c instanceof dojo.io.Request)){try{c=new dojo.io.Request(c)}catch(f){dojo.debug(f)}}var b="";if(c.transport){b=c.transport;if(!this[b]){dojo.io.sendBindError(c,"No dojo.io.bind() transport with name '"+c.transport+"'.");return c}if(!this[b].canHandle(c)){dojo.io.sendBindError(c,"dojo.io.bind() transport with name '"+c.transport+"' cannot handle this type of request.");return c}}else{for(var a=0;a<dojo.io.transports.length;a++){var d=dojo.io.transports[a];if((this[d])&&(this[d].canHandle(c))){b=d;break}}if(b==""){dojo.io.sendBindError(c,"None of the loaded transports for dojo.io.bind() can handle the request.");return c}}this[b].bind(c);c.bindSuccess=true;return c};dojo.io.sendBindError=function(c,a){if((typeof c.error=="function"||typeof c.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){var b=new dojo.io.Error(a);setTimeout(function(){c[(typeof c.error=="function")?"error":"handle"]("error",b,null,c)},50)}else{dojo.raise(a)}};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,i){var c=/utf/i.test(f||"")?encodeURIComponent:dojo.string.encodeAscii;var j=[];var h=new Object();for(var b in a){var g=function(k){var l=c(b)+"="+c(k);j[(i==b)?"push":"unshift"](l)};if(!h[b]){var d=a[b];if(dojo.lang.isArray(d)){dojo.lang.forEach(d,g)}else{g(d)}}}return j.join("&")};dojo.io.setIFrameSrc=function(g,f,c){try{var b=dojo.render.html;if(!c){if(b.safari){g.location=f}else{frames[g.name].location=f}}else{var a;if(b.ie){a=g.contentWindow.document}else{if(b.safari){a=g.document}else{a=g.contentWindow}}if(!a){g.location=f;return}else{a.location.replace(f)}}}catch(d){dojo.debug(d);dojo.debug("setIFrameSrc: "+d)}};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(d,f){if(typeof(b[f])!="undefined"&&b[f]!=null){return b[f]}dojo.raise("Substitution not found: "+f)})};dojo.string.capitalize=function(c){if(!dojo.lang.isString(c)){return""}if(arguments.length==0){c=this}var a=c.split(" ");for(var b=0;b<a.length;b++){a[b]=a[b].charAt(0).toUpperCase()+a[b].substring(1)}return a.join(" ")};dojo.string.isBlank=function(a){if(!dojo.lang.isString(a)){return true}return(dojo.string.trim(a).length==0)};dojo.string.encodeAscii=function(g){if(!dojo.lang.isString(g)){return g}var c="";var a=escape(g);var h,d=/%u([0-9A-F]{4})/i;while((h=a.match(d))){var b=Number("0x"+h[1]);var f=escape("&#"+b+";");c+=a.substring(0,h.index)+f;a=a.substring(h.index+h[0].length)}c+=a.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,b,a){if(a){c=c.toLowerCase();b=b.toLowerCase()}if((c.length-b.length)<0){return false}return c.lastIndexOf(b)==c.length-b.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(f,b){var a=[];for(var c=0,d=0;c<f.length;c++){if(f.charAt(c)=="\\"){c++;continue}if(f.charAt(c)==b){a.push(f.substring(d,c));d=c+1}}a.push(f.substr(d));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(a,c){if(!dojo.render.html.opera){var b=this._getUrlQuery(c.href);if(b==null){if(this.historyStack.length==1){this.handleBackButton()}return}if(this.moveForward){this.moveForward=false;return}if(this.historyStack.length>=2&&b==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){this.handleBackButton()}else{if(this.forwardStack.length>0&&b==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(b){var c=false;var a=b.getElementsByTagName("input");dojo.lang.forEach(a,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(o,n,c){if((!o)||(!o.tagName)||(!o.tagName.toLowerCase()=="form")){dojo.raise("Attempted to encode a non-form element.")}if(!c){c=dojo.io.formFilter}var f=/utf/i.test(n||"")?encodeURIComponent:dojo.string.encodeAscii;var a=[];for(var g=0;g<o.elements.length;g++){var h=o.elements[g];if(!h||h.tagName.toLowerCase()=="fieldset"||!c(h)){continue}var b=f(h.name);var k=h.type.toLowerCase();if(k=="select-multiple"){for(var d=0;d<h.options.length;d++){if(h.options[d].selected){a.push(b+"="+f(h.options[d].value))}}}else{if(dojo.lang.inArray(["radio","checkbox"],k)){if(h.checked){a.push(b+"="+f(h.value))}}else{a.push(b+"="+f(h.value))}}}var m=o.getElementsByTagName("input");for(var g=0;g<m.length;g++){var l=m[g];if(l.type.toLowerCase()=="image"&&l.form==o&&c(l)){var b=f(l.name);a.push(b+"="+f(l.value));a.push(b+".x=0");a.push(b+".y=0")}}return a.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(b){var f=dojo.byId(b.formNode);if(!f||!f.tagName||f.tagName.toLowerCase()!="form"){throw new Error("FormBind: Couldn't apply, invalid form")}else{if(this.form==f){return}else{if(this.form){throw new Error("FormBind: Already applied to a form")}}}dojo.lang.mixin(this.bindArgs,b);this.form=f;this.connect(f,"onsubmit","submit");for(var c=0;c<f.elements.length;c++){var d=f.elements[c];if(d&&d.type&&dojo.lang.inArray(["submit","button"],d.type.toLowerCase())){this.connect(d,"onclick","click")}}var g=f.getElementsByTagName("input");for(var c=0;c<g.length;c++){var a=g[c];if(a.type.toLowerCase()=="image"&&a.form==f){this.connect(a,"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,l,j){return k+"|"+l+"|"+j.toLowerCase()}function b(m,k,j,l){d[g(m,k,j)]=l}function c(j,l,k){return d[g(j,l,k)]}this.clearCache=function(){d={}};function a(j,r,l,u,s){if(((r.status>=200)&&(r.status<300))||(r.status==304)||(location.protocol=="file:"&&(r.status==0||r.status==undefined))||(location.protocol=="chrome:"&&(r.status==0||r.status==undefined))){var p;if(j.method.toLowerCase()=="head"){var q=r.getAllResponseHeaders();p={};p.toString=function(){return q};var k=q.split(/[\r\n]+/g);for(var n=0;n<k.length;n++){var m=k[n].match(/^([^:]+)\s*:\s*(.+)$/i);if(m){p[m[1]]=m[2]}}}else{if(j.mimetype=="text/javascript"){try{p=dj_eval(r.responseText)}catch(o){dojo.debug(o);dojo.debug(r.responseText);p=null}}else{if(j.mimetype=="text/json"||j.mimetype=="application/json"){try{p=dj_eval("("+r.responseText+")")}catch(o){dojo.debug(o);dojo.debug(r.responseText);p=false}}else{if((j.mimetype=="application/xml")||(j.mimetype=="text/xml")){p=r.responseXML;if(!p||typeof p=="string"||!r.getResponseHeader("Content-Type")){p=dojo.dom.createDocumentFromText(r.responseText)}}else{p=r.responseText}}}}if(s){b(l,u,j.method,r)}j[(typeof j.load=="function")?"load":"handle"]("load",p,r,j)}else{var t=new dojo.io.Error("XMLHttpTransport Error: "+r.status+" "+r.statusText);j[(typeof j.error=="function")?"error":"handle"]("error",t,r,j)}}function i(l,j){if(j.headers){for(var k in j.headers){if(k.toLowerCase()=="content-type"&&!j.contentType){j.contentType=j.headers[k]}else{l.setRequestHeader(k,j.headers[k])}}}}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(A){if(!A.url){if(!A.formNode&&(A.backButton||A.back||A.changeUrl||A.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(A);return true}}var s=A.url;var y="";if(A.formNode){var u=A.formNode.getAttribute("action");if((u)&&(!A.url)){s=u}var m=A.formNode.getAttribute("method");if((m)&&(!A.method)){A.method=m}y+=dojo.io.encodeForm(A.formNode,A.encoding,A.formFilter)}if(s.indexOf("#")>-1){dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",s);s=s.split("#")[0]}if(A.file){A.method="post"}if(!A.method){A.method="get"}if(A.method.toLowerCase()=="get"){A.multipart=false}else{if(A.file){A.multipart=true}else{if(!A.multipart){A.multipart=false}}}if(A.backButton||A.back||A.changeUrl){dojo.undo.browser.addToHistory(A)}var B=A.content||{};if(A.sendTransport){B["dojo.transport"]="xmlhttp"}do{if(A.postContent){y=A.postContent;break}if(B){y+=dojo.io.argsFromMap(B,A.encoding)}if(A.method.toLowerCase()=="get"||!A.multipart){break}var v=[];if(y.length){var w=y.split("&");for(var D=0;D<w.length;++D){if(w[D].length){var x=w[D].split("=");v.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+x[0]+'"',"",x[1])}}}if(A.file){if(dojo.lang.isArray(A.file)){for(var D=0;D<A.file.length;++D){var z=A.file[D];v.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+z.name+'"; filename="'+("fileName" in z?z.fileName:z.name)+'"',"Content-Type: "+("contentType" in z?z.contentType:"application/octet-stream"),"",z.content)}}else{var z=A.file;v.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+z.name+'"; filename="'+("fileName" in z?z.fileName:z.name)+'"',"Content-Type: "+("contentType" in z?z.contentType:"application/octet-stream"),"",z.content)}}if(v.length){v.push("--"+this.multipartBoundary+"--","");y=v.join("\r\n")}}while(false);var r=A.sync?false:true;var n=A.preventCache||(this.preventCache==true&&A.preventCache!=false);var l=A.useCache==true||(this.useCache==true&&A.useCache!=false);if(!n&&l){var k=c(s,y,A.method);if(k){a(A,k,s,y,false);return}}var C=dojo.hostenv.getXmlhttpObject(A);var j=false;if(r){var G=this.inFlight.push({req:A,http:C,url:s,query:y,useCache:l,startTime:A.timeoutSeconds?(new Date()).getTime():0});this.startWatchingInFlight()}else{f._blockAsync=true}if(A.method.toLowerCase()=="post"){if(!A.user){C.open("POST",s,r)}else{C.open("POST",s,r,A.user,A.password)}i(C,A);C.setRequestHeader("Content-Type",A.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(A.contentType||"application/x-www-form-urlencoded"));try{C.send(y)}catch(E){if(typeof C.abort=="function"){C.abort()}a(A,{status:404},s,y,l)}}else{var F=s;if(y!=""){F+=(F.indexOf("?")>-1?"&":"?")+y}if(n){F+=(dojo.string.endsWithAny(F,"?","&")?"":(F.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf()}if(!A.user){C.open(A.method.toUpperCase(),F,r)}else{C.open(A.method.toUpperCase(),F,r,A.user,A.password)}i(C,A);try{C.send(null)}catch(E){if(typeof C.abort=="function"){C.abort()}a(A,{status:404},s,y,l)}}if(!r){a(A,C,s,y,l);f._blockAsync=false}A.abort=function(){try{C._aborted=true}catch(o){}return C.abort()};return};dojo.io.transports.addTransport("XMLHTTPTransport")}}dojo.provide("dojo.io.cookie");dojo.io.cookie.setCookie=function(a,i,j,g,f,b){var c=-1;if((typeof j=="number")&&(j>=0)){var h=new Date();h.setTime(h.getTime()+(j*24*60*60*1000));c=h.toGMTString()}i=escape(i);document.cookie=a+"="+i+";"+(c!=-1?" expires="+c+";":"")+(g?"path="+g:"")+(f?"; domain="+f:"")+(b?"; secure":"")};dojo.io.cookie.set=dojo.io.cookie.setCookie;dojo.io.cookie.getCookie=function(d){var a=document.cookie.lastIndexOf(d+"=");if(a==-1){return null}var c=document.cookie.substring(a+d.length+1);var b=c.indexOf(";");if(b==-1){b=c.length}c=c.substring(0,b);c=unescape(c);return c};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(b,c,h,k,l,j,i){if(arguments.length==5){i=l;l=null;j=null}var g=[],f,d="";if(!i){f=dojo.io.cookie.getObjectCookie(b)}if(h>=0){if(!f){f={}}for(var a in c){if(c[a]==null){delete f[a]}else{if((typeof c[a]=="string")||(typeof c[a]=="number")){f[a]=c[a]}}}a=null;for(var a in f){g.push(escape(a)+"="+escape(f[a]))}d=g.join("&")}dojo.io.cookie.setCookie(b,d,h,k,l,j)};dojo.io.cookie.getObjectCookie=function(c){var g=null,f=dojo.io.cookie.getCookie(c);if(f){g={};var b=f.split("&");for(var d=0;d<b.length;d++){var h=b[d].split("=");var a=h[1];if(isNaN(a)){a=unescape(h[1])}g[unescape(h[0])]=a}}return g};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.*");