if(typeof dojo=="undefined"){var dj_global=this;var dj_currentContext=this;function dj_undef(b,a){return(typeof(a||dj_currentContext)[b]=="undefined")}if(dj_undef("djConfig",this)){var djConfig={}}if(dj_undef("dojo",this)){var dojo={}}dojo.global=function(){return dj_currentContext};dojo.locale=djConfig.locale;dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 8615 $".match(/[0-9]+/)[0]),toString:function(){with(dojo.version){return major+"."+minor+"."+patch+flag+" ("+revision+")"}}};dojo.evalProp=function(b,a,c){if((!a)||(!b)){return undefined}if(!dj_undef(b,a)){return a[b]}return(c?(a[b]={}):undefined)};dojo.parseObjPath=function(h,f,d){var b=(f||dojo.global());var g=h.split(".");var j=g.pop();for(var c=0,a=g.length;c<a&&b;c++){b=dojo.evalProp(g[c],b,d)}return{obj:b,prop:j}};dojo.evalObjPath=function(c,a){if(typeof c!="string"){return dojo.global()}if(c.indexOf(".")==-1){return dojo.evalProp(c,dojo.global(),a)}var b=dojo.parseObjPath(c,dojo.global(),a);if(b){return dojo.evalProp(b.prop,b.obj,a)}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(b,a){if(a){b=b+": "+dojo.errorToString(a)}else{b=dojo.errorToString(b)}try{if(djConfig.isDebug){dojo.hostenv.println("FATAL exception raised: "+b)}}catch(c){}throw a||Error(b)};dojo.debug=function(){};dojo.debugShallow=function(a){};dojo.profile={start:function(){},end:function(){},stop:function(){},dump:function(){}};function dj_eval(scriptFragment){return dj_global.eval?dj_global.eval(scriptFragment):eval(scriptFragment)}dojo.unimplemented=function(b,a){var c="'"+b+"' not implemented";if(a!=null){c+=" "+a}dojo.raise(c)};dojo.deprecated=function(d,a,b){var c="DEPRECATED: "+d;if(a){c+=" "+a}if(b){c+=" -- will be removed in version: "+b}dojo.debug(c)};dojo.render=(function(){function a(b,f){var d={capable:false,support:{builtin:false,plugin:false},prefixes:b};for(var c=0;c<f.length;c++){d[f[c]]=false}return d}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 b=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);if(!b){dojo.raise("Nothing returned by getLibraryScriptUri(): "+b)}var a=b.lastIndexOf("/");djConfig.baseScriptUri=djConfig.baseRelativePath;return djConfig.baseScriptUri};(function(){var a={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(c,d){this.modulePrefixes_[c]={name:c,value:d}},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 b in a){dojo.hostenv[b]=a[b]}})();dojo.hostenv.loadPath=function(f,b,a){var c;if(f.charAt(0)=="/"||f.match(/^\w+:/)){c=f}else{c=this.getBaseScriptUri()+f}if(djConfig.cacheBust&&dojo.render.html.capable){c+="?"+String(djConfig.cacheBust).replace(/\W+/g,"")}try{return !b?this.loadUri(c,a):this.loadUriAndCheck(c,b,a)}catch(d){dojo.debug(d);return false}};dojo.hostenv.loadUri=function(c,a){if(this.loadedUris[c]){return true}var b=this.getText(c,null,true);if(!b){return false}this.loadedUris[c]=true;if(a){b="("+b+")"}var d=dj_eval(b);if(a){a(d)}return true};dojo.hostenv.loadUriAndCheck=function(d,b,a){var c=true;try{c=this.loadUri(d,a)}catch(f){dojo.debug("failed loading ",d," with error: ",f)}return Boolean(c&&this.findModule(b,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,b){var a=dojo.hostenv;if(arguments.length==1){a.modulesLoadedListeners.push(c)}else{if(arguments.length>1){a.modulesLoadedListeners.push(function(){c[b]()})}}if(a.post_load_&&a.inFlightCount==0&&!a.loadNotifying){a.callLoaded()}};dojo.addOnUnload=function(c,b){var a=dojo.hostenv;if(arguments.length==1){a.unloadListeners.push(c)}else{if(arguments.length>1){a.unloadListeners.push(function(){c[b]()})}}};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"){setTimeout("dojo.hostenv.loaded();",0)}else{dojo.hostenv.loaded()}};dojo.hostenv.getModuleSymbols=function(b){var f=b.split(".");for(var a=f.length;a>0;a--){var d=f.slice(0,a).join(".");if((a==1)&&!this.moduleHasPrefix(d)){f[0]="../"+f[0]}else{var c=this.getModulePrefix(d);if(c!=d){f.splice(0,a,c);break}}}return f};dojo.hostenv._global_omit_module_check=false;dojo.hostenv.loadModule=function(a,d,h){if(!a){return}h=this._global_omit_module_check||h;var b=this.findModule(a,false);if(b){return b}if(dj_undef(a,this.loading_modules_)){this.addedToLoadingCount.push(a)}this.loading_modules_[a]=1;var f=a.replace(/\./g,"/")+".js";var k=a.split(".");var c=this.getModuleSymbols(a);var m=((c[0].charAt(0)!="/")&&!c[0].match(/^\w+:/));var l=c[c.length-1];var j;if(l=="*"){a=k.slice(0,-1).join(".");while(c.length){c.pop();c.push(this.pkgFileName);f=c.join("/")+".js";if(m&&f.charAt(0)=="/"){f=f.slice(1)}j=this.loadPath(f,!h?a:null);if(j){break}c.pop()}}else{f=c.join("/")+".js";a=k.join(".");var g=!h?a:null;j=this.loadPath(f,g);if(!j&&!d){c.pop();while(c.length){f=c.join("/")+".js";j=this.loadPath(f,g);if(j){break}c.pop();f=c.join("/")+"/"+this.pkgFileName+".js";if(m&&f.charAt(0)=="/"){f=f.slice(1)}j=this.loadPath(f,g);if(j){break}}}if(!j&&!h){dojo.raise("Could not load '"+a+"'; last tried '"+f+"'")}}if(!h&&!this["isXDomain"]){b=this.findModule(a,false);if(!b){dojo.raise("symbol '"+a+"' is not defined after loading '"+f+"'")}}return b};dojo.hostenv.startPackage=function(b){var c=String(b);var a=c;var f=b.split(/\./);if(f[f.length-1]=="*"){f.pop();a=f.join(".")}var d=dojo.evalObjPath(a,true);this.loaded_modules_[c]=d;this.loaded_modules_[a]=d;return d};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(f){var c=f.common||[];var b=f[dojo.hostenv.name_]?c.concat(f[dojo.hostenv.name_]||[]):c.concat(f["default"]||[]);for(var a=0;a<b.length;a++){var d=b[a];if(d.constructor==Array){dojo.hostenv.loadModule.apply(dojo.hostenv,d)}else{dojo.hostenv.loadModule(d)}}};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 a=[];for(var b=1;b<arguments.length;b++){a.push(arguments[b])}dojo.require.apply(dojo,a)}};dojo.requireAfterIf=dojo.requireIf;dojo.provide=function(a){return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments)};dojo.registerModulePath=function(a,b){return dojo.hostenv.setModulePrefix(a,b)};dojo.setModulePrefix=function(a,b){dojo.deprecated('dojo.setModulePrefix("'+a+'", "'+b+'")',"replaced by dojo.registerModulePath","0.5");return dojo.registerModulePath(a,b)};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(b){var a=b?b.toLowerCase():dojo.locale;if(a=="root"){a="ROOT"}return a};dojo.hostenv.searchLocalePath=function(k,l,c){k=dojo.hostenv.normalizeLocale(k);var a=k.split("-");var b=[];for(var f=a.length;f>0;f--){b.push(a.slice(0,f).join("-"))}b.push(false);if(l){b.reverse()}for(var d=b.length-1;d>=0;d--){var g=b[d]||"ROOT";var h=c(g);if(h){break}}};dojo.hostenv.localesGenerated=["ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","pt","en-us","zh","fr","zh-tw","it","en-gb","xx","de-de","ko-kr","ja-jp","ko","en","ja"];dojo.hostenv.registerNlsPrefix=function(){dojo.registerModulePath("nls","nls")};dojo.hostenv.preloadLocalizations=function(){if(dojo.hostenv.localesGenerated){dojo.hostenv.registerNlsPrefix();function b(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})}b();var a=djConfig.extraLocale||[];for(var c=0;c<a.length;c++){b(a[c])}}dojo.hostenv.preloadLocalizations=function(){}};dojo.requireLocalization=function(a,b,q,m){dojo.hostenv.preloadLocalizations();var j=dojo.hostenv.normalizeLocale(q);var f=[a,"nls",b].join(".");var d="";if(m){var p=m.split(",");for(var k=0;k<p.length;k++){if(j.indexOf(p[k])==0){if(p[k].length>d.length){d=p[k]}}}if(!d){d="ROOT"}}var n=m?d:j;var s=dojo.hostenv.findModule(f);var c=null;if(s){if(djConfig.localizationComplete&&s._built){return}var h=n.replace("-","_");var o=f+"."+h;c=dojo.hostenv.findModule(o)}if(!c){s=dojo.hostenv.startPackage(f);var g=dojo.hostenv.getModuleSymbols(a);var l=g.concat("nls").join("/");var r;dojo.hostenv.searchLocalePath(n,m,function(x){var y=x.replace("-","_");var w=f+"."+y;var u=false;if(!dojo.hostenv.findModule(w)){dojo.hostenv.startPackage(w);var v=[l];if(x!="ROOT"){v.push(x)}v.push(b);var t=v.join("/")+".js";u=dojo.hostenv.loadPath(t,null,function(B){var A=function(){};A.prototype=r;s[y]=new A();for(var z in B){s[y][z]=B[z]}})}else{u=true}if(u&&s[y]){r=s[y]}else{s[y]=r}if(m){return true}})}if(m&&j!=d){s[j.replace("-","_")]=s[d.replace("-","_")]}};(function(){var a=djConfig.extraLocale;if(a){if(!a instanceof Array){a=[a]}var b=dojo.requireLocalization;dojo.requireLocalization=function(f,d,c,h){b(f,d,c,h);if(c){return}for(var g=0;g<a.length;g++){b(f,d,a[g],h)}}}})()}if(typeof window!="undefined"){(function(){if(djConfig.allowQueryConfig){var baseUrl=document.location.toString();var params=baseUrl.split("?",2);if(params.length>1){var paramStr=params[1];var pairs=paramStr.split("&");for(var x in pairs){var sp=pairs[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 scripts=document.getElementsByTagName("script");var rePkg=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;for(var i=0;i<scripts.length;i++){var src=scripts[i].getAttribute("src");if(!src){continue}var m=src.match(rePkg);if(m){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 geckoPos=dua.indexOf("Gecko");drh.mozilla=drh.moz=(geckoPos>=0)&&(!drh.khtml);if(drh.mozilla){drh.geckoVersion=dua.substring(geckoPos+6,geckoPos+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 a=null;var f=null;try{a=new XMLHttpRequest()}catch(d){}if(!a){for(var c=0;c<3;++c){var b=dojo.hostenv._XMLHTTP_PROGIDS[c];try{a=new ActiveXObject(b)}catch(d){f=d}if(a){dojo.hostenv._XMLHTTP_PROGIDS=[b];break}}}if(!a){return dojo.raise("XMLHTTP not available",f)}return a};dojo.hostenv._blockAsync=false;dojo.hostenv.getText=function(c,h,b){if(!h){this._blockAsync=true}var l=this.getXmlhttpObject();function f(n){var o=n.status;return Boolean((!o)||((200<=o)&&(300>o))||(o==304))}if(h){var g=this,a=null,k=dojo.global();var m=dojo.evalObjPath("dojo.io.XMLHTTPTransport");l.onreadystatechange=function(){if(a){k.clearTimeout(a);a=null}if(g._blockAsync||(m&&m._blockAsync)){a=k.setTimeout(function(){l.onreadystatechange.apply(this)},10)}else{if(4==l.readyState){if(f(l)){h(l.responseText)}}}}}l.open("GET",c,h?true:false);try{l.send(null);if(h){return null}if(!f(l)){var d=Error("Unable to load "+c+" status:"+l.status);d.status=l.status;d.responseText=l.responseText;throw d}}catch(j){this._blockAsync=false;if((b)&&(!h)){return null}else{throw j}}this._blockAsync=false;return l.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(c,d,a){var b=c["on"+d]||function(){};c["on"+d]=function(){a.apply(c,arguments);b.apply(c,arguments)};return true}function dj_load_init(b){var a=(b&&b.type)?b.type.toLowerCase():"load";if(arguments.callee.initialized||(a!="domcontentloaded"&&a!="load")){return}arguments.callee.initialized=true;if(typeof(_timer)!="undefined"){clearInterval(_timer);delete _timer}var c=function(){if(dojo.render.html.ie){dojo.hostenv.makeWidgets()}};if(dojo.hostenv.inFlightCount==0){c();dojo.hostenv.modulesLoaded()}else{dojo.hostenv.modulesLoadedListeners.unshift(c)}}if(document.addEventListener){if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){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 b=[];if(djConfig.searchIds&&djConfig.searchIds.length>0){b=b.concat(djConfig.searchIds)}if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){b=b.concat(dojo.hostenv.searchIds)}if((djConfig.parseWidgets)||(b.length>0)){if(dojo.evalObjPath("dojo.widget.Parse")){var f=new dojo.xml.Parse();if(b.length>0){for(var a=0;a<b.length;a++){var c=document.getElementById(b[a]);if(!c){continue}var d=f.parseElement(c,null,true);dojo.widget.getParser().createComponents(d)}}else{if(djConfig.parseWidgets){var d=f.parseElement(dojo.body(),null,true);dojo.widget.getParser().createComponents(d)}}}}};dojo.addOnLoad(function(){if(!dojo.render.html.ie){dojo.hostenv.makeWidgets()}});try{if(dojo.render.html.ie){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)")}}catch(e){}dojo.hostenv.writeIncludes=function(){};if(!dj_undef("document",this)){dj_currentDocument=this.document}dojo.doc=function(){return dj_currentDocument};dojo.body=function(){return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0]};dojo.byId=function(d,c){if((d)&&((typeof d=="string")||(d instanceof String))){if(!c){c=dj_currentDocument}var b=c.getElementById(d);if(b&&(b.id!=d)&&c.all){b=null;eles=c.all[d];if(eles){if(eles.length){for(var a=0;a<eles.length;a++){if(eles[a].id==d){b=eles[a];break}}}else{b=eles}}}return b}return d};dojo.setContext=function(b,a){dj_currentContext=b;dj_currentDocument=a};dojo._fireCallback=function(c,a,b){if((a)&&((typeof c=="string")||(c instanceof String))){c=a[c]}return(a?c.apply(a,b||[]):c())};dojo.withGlobal=function(h,g,c,f){var d;var a=dj_currentContext;var b=dj_currentDocument;try{dojo.setContext(h,h.document);d=dojo._fireCallback(g,c,f)}finally{dojo.setContext(a,b)}return d};dojo.withDoc=function(a,g,c,f){var d;var b=dj_currentDocument;try{dj_currentDocument=a;d=dojo._fireCallback(g,c,f)}finally{dj_currentDocument=b}return d}}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(d,c){for(var b=1,a=arguments.length;b<a;b++){dojo.lang._mixin(d.prototype,arguments[b])}return d};dojo.inherits=dojo.lang.inherits;dojo.mixin=dojo.lang.mixin;dojo.extend=dojo.lang.extend;dojo.lang.find=function(f,h,g,j){if(!dojo.lang.isArrayLike(f)&&dojo.lang.isArrayLike(h)){dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");var k=f;f=h;h=k}var a=dojo.lang.isString(f);if(a){f=f.split("")}if(j){var b=-1;var d=f.length-1;var c=-1}else{var b=1;var d=0;var c=f.length}if(g){while(d!=c){if(f[d]===h){return d}d+=b}}else{while(d!=c){if(f[d]==h){return d}d+=b}}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.animation.AnimationEvent");dojo.deprecated("dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");dojo.animation.AnimationEvent=function(f,j,k,b,a,g,d,h,c){this.type=j;this.animation=f;this.coords=k;this.x=k[0];this.y=k[1];this.z=k[2];this.startTime=b;this.currentTime=a;this.endTime=g;this.duration=d;this.percent=h;this.fps=c};dojo.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){var b=new Array(this.coords.length);for(var a=0;a<this.coords.length;a++){b[a]=Math.round(this.coords[a])}return b}});dojo.provide("dojo.lang.func");dojo.lang.hitch=function(a,c){var b=(dojo.lang.isString(c)?a[c]:c)||function(){};return function(){return b.apply(a,arguments)}};dojo.lang.anonCtr=0;dojo.lang.anon={};dojo.lang.nameAnonFunc=function(b,h,g){var f=(h||dojo.lang.anon);if((g)||((dj_global.djConfig)&&(djConfig.slowAnonFuncLookups==true))){for(var a in f){try{if(f[a]===b){return a}}catch(d){}}}var c="__"+dojo.lang.anonCtr++;while(typeof f[c]!="undefined"){c="__"+dojo.lang.anonCtr++}f[c]=b;return c};dojo.lang.forward=function(a){return function(){return this[a].apply(this,arguments)}};dojo.lang.curry=function(g,f){var b=[];g=g||dj_global;if(dojo.lang.isString(f)){f=g[f]}for(var a=2;a<arguments.length;a++){b.push(arguments[a])}var d=(f.__preJoinArity||f.length)-b.length;function c(o,k,n){var l=n;var j=k.slice(0);for(var h=0;h<o.length;h++){j.push(o[h])}n=n-o.length;if(n<=0){var m=f.apply(g,j);n=l;return m}else{return function(){return c(arguments,j,n)}}}return c([],b,d)};dojo.lang.curryArguments=function(g,d,b,f){var c=[];var a=f||0;for(a=f;a<b.length;a++){c.push(b[a])}return dojo.lang.curry.apply(dojo.lang,[g,d].concat(c))};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,c,d){if(!b.length){if(typeof d=="function"){d()}return}if((typeof c=="undefined")&&(typeof a=="number")){c=a;a=function(){}}else{if(!a){a=function(){};if(!c){c=0}}}setTimeout(function(){(b.shift())();a();dojo.lang.delayThese(b,a,c,d)},c)};dojo.provide("dojo.math");dojo.math.degToRad=function(a){return(a*Math.PI)/180};dojo.math.radToDeg=function(a){return(a*180)/Math.PI};dojo.math.factorial=function(c){if(c<1){return 0}var b=1;for(var a=1;a<=c;a++){b*=a}return b};dojo.math.permutations=function(b,a){if(b==0||a==0){return 1}return(dojo.math.factorial(b)/dojo.math.factorial(b-a))};dojo.math.combinations=function(b,a){if(b==0||a==0){return 1}return(dojo.math.factorial(b)/(dojo.math.factorial(b-a)*dojo.math.factorial(a)))};dojo.math.bernstein=function(b,c,a){return(dojo.math.combinations(c,a)*Math.pow(b,a)*Math.pow(1-b,c-a))};dojo.math.gaussianRandom=function(){var a=2;do{var c=2*Math.random()-1;var b=2*Math.random()-1;a=c*c+b*b}while(a>=1);a=Math.sqrt((-2*Math.log(a))/a);return c*a};dojo.math.mean=function(){var c=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;var a=0;for(var b=0;b<c.length;b++){a+=c[b]}return a/c.length};dojo.math.round=function(c,b){if(!b){var a=1}else{var a=Math.pow(10,b)}return Math.round(c*a)/a};dojo.math.sd=dojo.math.standardDeviation=function(){var a=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;return Math.sqrt(dojo.math.variance(a))};dojo.math.variance=function(){var d=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;var a=0,b=0;for(var c=0;c<d.length;c++){a+=d[c];b+=Math.pow(d[c],2)}return(b/d.length)-Math.pow(a/d.length,2)};dojo.math.range=function(d,c,h){if(arguments.length<2){c=d;d=0}if(arguments.length<3){h=1}var f=[];if(h>0){for(var g=d;g<c;g+=h){f.push(g)}}else{if(h<0){for(var g=d;g>c;g+=h){f.push(g)}}else{throw new Error("dojo.math.range: step must be non-zero")}}return f};dojo.provide("dojo.math.curves");dojo.math.curves={Line:function(c,a){this.start=c;this.end=a;this.dimensions=c.length;for(var b=0;b<c.length;b++){c[b]=Number(c[b])}for(var b=0;b<a.length;b++){a[b]=Number(a[b])}this.getValue=function(g){var f=new Array(this.dimensions);for(var d=0;d<this.dimensions;d++){f[d]=((this.end[d]-this.start[d])*g)+this.start[d]}return f};return this},Bezier:function(a){this.getValue=function(g){if(g>=1){return this.p[this.p.length-1]}if(g<=0){return this.p[0]}var m=new Array(this.p[0].length);for(var c=0;d<this.p[0].length;c++){m[c]=0}for(var d=0;d<this.p[0].length;d++){var n=0;var h=0;for(var f=0;f<this.p.length;f++){n+=this.p[f][d]*this.p[this.p.length-1][0]*dojo.math.bernstein(g,this.p.length,f)}for(var b=0;b<this.p.length;b++){h+=this.p[this.p.length-1][0]*dojo.math.bernstein(g,this.p.length,b)}m[d]=n/h}return m};this.p=a;return this},CatmullRom:function(a,b){this.getValue=function(m){var t=m*(this.p.length-1);var n=Math.floor(t);var d=t-n;var r=n-1;if(r<0){r=0}var s=n;var q=n+1;if(q>=this.p.length){q=this.p.length-1}var o=n+2;if(o>=this.p.length){o=this.p.length-1}var v=d;var j=d*d;var g=d*d*d;var l=new Array(this.p[0].length);for(var p=0;p<this.p[0].length;p++){var h=(-this.c*this.p[r][p])+((2-this.c)*this.p[s][p])+((this.c-2)*this.p[q][p])+(this.c*this.p[o][p]);var f=(2*this.c*this.p[r][p])+((this.c-3)*this.p[s][p])+((3-2*this.c)*this.p[q][p])+(-this.c*this.p[o][p]);var c=(-this.c*this.p[r][p])+(this.c*this.p[q][p]);var w=this.p[s][p];l[p]=h*g+f*j+c*v+w}return l};if(!b){this.c=0.7}else{this.c=b}this.p=a;return this},Arc:function(h,d,c){var b=dojo.math.points.midpoint(h,d);var g=dojo.math.points.translate(dojo.math.points.invert(b),h);var a=Math.sqrt(Math.pow(g[0],2)+Math.pow(g[1],2));var f=dojo.math.radToDeg(Math.atan(g[1]/g[0]));if(g[0]<0){f-=90}else{f+=90}dojo.math.curves.CenteredArc.call(this,b,a,f,f+(c?-180:180))},CenteredArc:function(b,a,d,c){this.center=b;this.radius=a;this.start=d||0;this.end=c;this.getValue=function(h){var g=new Array(2);var f=dojo.math.degToRad(this.start+((this.end-this.start)*h));g[0]=this.center[0]+this.radius*Math.sin(f);g[1]=this.center[1]-this.radius*Math.cos(f);return g};return this},Circle:function(b,a){dojo.math.curves.CenteredArc.call(this,b,a,0,360);return this},Path:function(){var f=[];var d=[];var c=[];var a=0;this.add=function(h,g){if(g<0){dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0")}f.push(h);d.push(g);a+=g;b()};this.remove=function(h){for(var g=0;g<f.length;g++){if(f[g]==h){f.splice(g,1);a-=d.splice(g,1)[0];break}}b()};this.removeAll=function(){f=[];d=[];a=0};this.getValue=function(p){var m=false,l=0;for(var h=0;h<c.length;h++){var k=c[h];if(p>=k[0]&&p<k[1]){var o=(p-k[0])/k[2];l=f[h].getValue(o);m=true;break}}if(!m){l=f[f.length-1].getValue(1)}for(var g=0;g<h;g++){l=dojo.math.points.translate(l,f[g].getValue(1))}return l};function b(){var k=0;for(var j=0;j<d.length;j++){var h=k+d[j]/a;var g=h-k;c[j]=[k,h,g];k=h}}return this}};dojo.provide("dojo.animation.Animation");dojo.deprecated("dojo.animation.Animation is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");dojo.animation.Animation=function(g,f,c,a,d){if(dojo.lang.isArray(g)){g=new dojo.math.curves.Line(g[0],g[1])}this.curve=g;this.duration=f;this.repeatCount=a||0;this.rate=d||25;if(c){if(dojo.lang.isFunction(c.getValue)){this.accel=c}else{var b=0.35*c+0.5;this.accel=new dojo.math.curves.CatmullRom([[0],[b],[1]],0.45)}}};dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(a){if(a){clearTimeout(this._timer);this._active=false;this._paused=false;this._percent=0}else{if(this._active&&!this._paused){return}}this._startTime=new Date().valueOf();if(this._paused){this._startTime-=(this.duration*this._percent/100)}this._endTime=this._startTime+this.duration;this._lastFrame=this._startTime;var b=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);this._active=true;this._paused=false;if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount}b.type="begin";if(typeof this.handler=="function"){this.handler(b)}if(typeof this.onBegin=="function"){this.onBegin(b)}}b.type="play";if(typeof this.handler=="function"){this.handler(b)}if(typeof this.onPlay=="function"){this.onPlay(b)}if(this._animSequence){this._animSequence._setCurrent(this)}this._cycle()},pause:function(){clearTimeout(this._timer);if(!this._active){return}this._paused=true;var a=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);if(typeof this.handler=="function"){this.handler(a)}if(typeof this.onPause=="function"){this.onPause(a)}},playPause:function(){if(!this._active||this._paused){this.play()}else{this.pause()}},gotoPercent:function(b,a){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=b;if(a){this.play()}},stop:function(a){clearTimeout(this._timer);var b=this._percent/100;if(a){b=1}var c=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(b),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent);if(typeof this.handler=="function"){this.handler(c)}if(typeof this.onStop=="function"){this.onStop(c)}this._active=false;this._paused=false},status:function(){if(this._active){return this._paused?"paused":"playing"}else{return"stopped"}},_cycle:function(){clearTimeout(this._timer);if(this._active){var d=new Date().valueOf();var a=(d-this._startTime)/(this._endTime-this._startTime);var c=1000/(d-this._lastFrame);this._lastFrame=d;if(a>=1){a=1;this._percent=100}else{this._percent=a*100}if(this.accel&&this.accel.getValue){a=this.accel.getValue(a)}var b=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(a),this._startTime,d,this._endTime,this.duration,this._percent,Math.round(c));if(typeof this.handler=="function"){this.handler(b)}if(typeof this.onAnimate=="function"){this.onAnimate(b)}if(a<1){this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate)}else{b.type="end";this._active=false;if(typeof this.handler=="function"){this.handler(b)}if(typeof this.onEnd=="function"){this.onEnd(b)}if(this.repeatCount>0){this.repeatCount--;this.play(true)}else{if(this.repeatCount==-1){this.play(true)}else{if(this._startRepeatCount){this.repeatCount=this._startRepeatCount;this._startRepeatCount=0}if(this._animSequence){this._animSequence._playNext()}}}}}}});dojo.provide("dojo.animation.AnimationSequence");dojo.deprecated("dojo.animation.AnimationSequence is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");dojo.animation.AnimationSequence=function(a){this._anims=[];this.repeatCount=a||0};dojo.lang.extend(dojo.animation.AnimationSequence,{repeatCount:0,_anims:[],_currAnim:-1,onBegin:null,onEnd:null,onNext:null,handler:null,add:function(){for(var a=0;a<arguments.length;a++){this._anims.push(arguments[a]);arguments[a]._animSequence=this}},remove:function(b){for(var a=0;a<this._anims.length;a++){if(this._anims[a]==b){this._anims[a]._animSequence=null;this._anims.splice(a,1);break}}},removeAll:function(){for(var a=0;a<this._anims.length;a++){this._anims[a]._animSequence=null}this._anims=[];this._currAnim=-1},clear:function(){this.removeAll()},play:function(a){if(this._anims.length==0){return}if(a||!this._anims[this._currAnim]){this._currAnim=0}if(this._anims[this._currAnim]){if(this._currAnim==0){var b={type:"begin",animation:this._anims[this._currAnim]};if(typeof this.handler=="function"){this.handler(b)}if(typeof this.onBegin=="function"){this.onBegin(b)}}this._anims[this._currAnim].play(a)}},pause:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].pause()}},playPause:function(){if(this._anims.length==0){return}if(this._currAnim==-1){this._currAnim=0}if(this._anims[this._currAnim]){this._anims[this._currAnim].playPause()}},stop:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].stop()}},status:function(){if(this._anims[this._currAnim]){return this._anims[this._currAnim].status()}else{return"stopped"}},_setCurrent:function(b){for(var a=0;a<this._anims.length;a++){if(this._anims[a]==b){this._currAnim=a;break}}},_playNext:function(){if(this._currAnim==-1||this._anims.length==0){return}this._currAnim++;if(this._anims[this._currAnim]){var a={type:"next",animation:this._anims[this._currAnim]};if(typeof this.handler=="function"){this.handler(a)}if(typeof this.onNext=="function"){this.onNext(a)}this._anims[this._currAnim].play(true)}else{var a={type:"end",animation:this._anims[this._anims.length-1]};if(typeof this.handler=="function"){this.handler(a)}if(typeof this.onEnd=="function"){this.onEnd(a)}if(this.repeatCount>0){this._currAnim=0;this.repeatCount--;this._anims[this._currAnim].play(true)}else{if(this.repeatCount==-1){this._currAnim=0;this._anims[this._currAnim].play(true)}else{this._currAnim=-1}}}}});dojo.kwCompoundRequire({common:["dojo.animation.AnimationEvent","dojo.animation.Animation","dojo.animation.AnimationSequence"]});dojo.provide("dojo.animation.*");dojo.deprecated("dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");dojo.provide("dojo.collections.Collections");dojo.collections.DictionaryEntry=function(b,a){this.key=b;this.value=a;this.valueOf=function(){return this.value};this.toString=function(){return String(this.value)}};dojo.collections.Iterator=function(c){var d=c;var b=0;this.element=d[b]||null;this.atEnd=function(){return(b>=d.length)};this.get=function(){if(this.atEnd()){return null}this.element=d[b++];return this.element};this.map=function(j,h){var g=h||dj_global;if(Array.map){return Array.map(d,j,g)}else{var a=[];for(var f=0;f<d.length;f++){a.push(j.call(g,d[f]))}return a}};this.reset=function(){b=0;this.element=d[b]}};dojo.collections.DictionaryIterator=function(g){var c=[];var d={};for(var f in g){if(!d[f]){c.push(g[f])}}var b=0;this.element=c[b]||null;this.atEnd=function(){return(b>=c.length)};this.get=function(){if(this.atEnd()){return null}this.element=c[b++];return this.element};this.map=function(l,k){var j=k||dj_global;if(Array.map){return Array.map(c,l,j)}else{var a=[];for(var h=0;h<c.length;h++){a.push(l.call(j,c[h]))}return a}};this.reset=function(){b=0;this.element=c[b]}};dojo.provide("dojo.collections.ArrayList");dojo.collections.ArrayList=function(a){var b=[];if(a){b=b.concat(a)}this.count=b.length;this.add=function(c){b.push(c);this.count=b.length};this.addRange=function(c){if(c.getIterator){var f=c.getIterator();while(!f.atEnd()){this.add(f.get())}this.count=b.length}else{for(var d=0;d<c.length;d++){b.push(c[d])}this.count=b.length}};this.clear=function(){b.splice(0,b.length);this.count=0};this.clone=function(){return new dojo.collections.ArrayList(b)};this.contains=function(d){for(var c=0;c<b.length;c++){if(b[c]==d){return true}}return false};this.forEach=function(g,f){var d=f||dj_global;if(Array.forEach){Array.forEach(b,g,d)}else{for(var c=0;c<b.length;c++){g.call(d,b[c],c,b)}}};this.getIterator=function(){return new dojo.collections.Iterator(b)};this.indexOf=function(d){for(var c=0;c<b.length;c++){if(b[c]==d){return c}}return -1};this.insert=function(c,d){b.splice(c,0,d);this.count=b.length};this.item=function(c){return b[c]};this.remove=function(d){var c=this.indexOf(d);if(c>=0){b.splice(c,1)}this.count=b.length};this.removeAt=function(c){b.splice(c,1);this.count=b.length};this.reverse=function(){b.reverse()};this.sort=function(c){if(c){b.sort(c)}else{b.sort()}};this.setByIndex=function(c,d){b[c]=d;this.count=b.length};this.toArray=function(){return[].concat(b)};this.toString=function(c){return b.join((c||","))}};dojo.provide("dojo.collections.Set");dojo.collections.Set=new function(){this.union=function(b,f){if(b.constructor==Array){var b=new dojo.collections.ArrayList(b)}if(f.constructor==Array){var f=new dojo.collections.ArrayList(f)}if(!b.toArray||!f.toArray){dojo.raise("Set operations can only be performed on array-based collections.")}var a=new dojo.collections.ArrayList(b.toArray());var d=f.getIterator();while(!d.atEnd()){var c=d.get();if(!a.contains(c)){a.add(c)}}return a};this.intersection=function(b,f){if(b.constructor==Array){var b=new dojo.collections.ArrayList(b)}if(f.constructor==Array){var f=new dojo.collections.ArrayList(f)}if(!b.toArray||!f.toArray){dojo.raise("Set operations can only be performed on array-based collections.")}var a=new dojo.collections.ArrayList();var d=f.getIterator();while(!d.atEnd()){var c=d.get();if(b.contains(c)){a.add(c)}}return a};this.difference=function(b,f){if(b.constructor==Array){var b=new dojo.collections.ArrayList(b)}if(f.constructor==Array){var f=new dojo.collections.ArrayList(f)}if(!b.toArray||!f.toArray){dojo.raise("Set operations can only be performed on array-based collections.")}var a=new dojo.collections.ArrayList();var d=b.getIterator();while(!d.atEnd()){var c=d.get();if(!f.contains(c)){a.add(c)}}return a};this.isSubSet=function(a,c){if(a.constructor==Array){var a=new dojo.collections.ArrayList(a)}if(c.constructor==Array){var c=new dojo.collections.ArrayList(c)}if(!a.toArray||!c.toArray){dojo.raise("Set operations can only be performed on array-based collections.")}var b=a.getIterator();while(!b.atEnd()){if(!c.contains(b.get())){return false}}return true};this.isSuperSet=function(a,c){if(a.constructor==Array){var a=new dojo.collections.ArrayList(a)}if(c.constructor==Array){var c=new dojo.collections.ArrayList(c)}if(!a.toArray||!c.toArray){dojo.raise("Set operations can only be performed on array-based collections.")}var b=c.getIterator();while(!b.atEnd()){if(!a.contains(b.get())){return false}}return true}}();dojo.provide("dojo.lang.extras");dojo.lang.setTimeout=function(f,b){var d=window,g=2;if(!dojo.lang.isFunction(f)){d=f;f=b;b=arguments[2];g++}if(dojo.lang.isString(f)){f=d[f]}var a=[];for(var c=g;c<arguments.length;c++){a.push(arguments[c])}return dojo.global().setTimeout(function(){f.apply(d,a)},b)};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(objpath,context,create){with(dojo.parseObjPath(objpath,context,create)){return dojo.evalProp(prop,obj,create)}};dojo.lang.setObjPathValue=function(objpath,value,context,create){dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");if(arguments.length<4){create=true}with(dojo.parseObjPath(objpath,context,create)){if(obj&&(create||(prop in obj))){obj[prop]=value}}};dojo.provide("dojo.lang.declare");dojo.lang.declare=function(f,k,n,h){if((dojo.lang.isFunction(h))||((!h)&&(!dojo.lang.isFunction(n)))){var m=h;h=n;n=m}var d=[];if(dojo.lang.isArray(k)){d=k;k=d.shift()}if(!n){n=dojo.evalObjPath(f,false);if((n)&&(!dojo.lang.isFunction(n))){n=null}}var j=dojo.lang.declare._makeConstructor();var g=(k?k.prototype:null);if(g){g.prototyping=true;j.prototype=new k();g.prototyping=false}j.superclass=g;j.mixins=d;for(var c=0,a=d.length;c<a;c++){dojo.lang.extend(j,d[c].prototype)}j.prototype.initializer=null;j.prototype.declaredClass=f;if(dojo.lang.isArray(h)){dojo.lang.extend.apply(dojo.lang,[j].concat(h))}else{dojo.lang.extend(j,(h)||{})}dojo.lang.extend(j,dojo.lang.declare._common);j.prototype.constructor=j;j.prototype.initializer=(j.prototype.initializer)||(n)||(function(){});var b=dojo.parseObjPath(f,null,true);b.obj[b.prop]=j;return j};dojo.lang.declare._makeConstructor=function(){return function(){var b=this._getPropContext();var f=b.constructor.superclass;if((f)&&(f.constructor)){if(f.constructor==arguments.callee){this._inherited("constructor",arguments)}else{this._contextMethod(f,"constructor",arguments)}}var c=(b.constructor.mixins)||([]);for(var d=0,a;(a=c[d]);d++){(((a.prototype)&&(a.prototype.initializer))||(a)).apply(this,arguments)}if((!this.prototyping)&&(b.initializer)){b.initializer.apply(this,arguments)}}};dojo.lang.declare._common={_getPropContext:function(){return(this.___proto||this)},_contextMethod:function(d,g,c){var b,a=this.___proto;this.___proto=d;try{b=d[g].apply(this,(c||[]))}catch(f){throw f}finally{this.___proto=a}return b},_inherited:function(c,a){var b=this._getPropContext();do{if((!b.constructor)||(!b.constructor.superclass)){return}b=b.constructor.superclass}while(!(c in b));return(dojo.lang.isFunction(b[c])?this._contextMethod(b,c,a):b[c])},inherited:function(b,a){dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");this._inherited(b,a)}};dojo.declare=dojo.lang.declare;dojo.provide("dojo.dnd.DragAndDrop");dojo.declare("dojo.dnd.DragSource",null,{type:"",onDragEnd:function(a){},onDragStart:function(a){},onSelected:function(a){},unregister:function(){dojo.dnd.dragManager.unregisterDragSource(this)},reregister:function(){dojo.dnd.dragManager.registerDragSource(this)}});dojo.declare("dojo.dnd.DragObject",null,{type:"",register:function(){var a=dojo.dnd.dragManager;if(a.registerDragObject){a.registerDragObject(this)}},onDragStart:function(a){},onDragMove:function(a){},onDragOver:function(a){},onDragOut:function(a){},onDragEnd:function(a){},onDragLeave:dojo.lang.forward("onDragOut"),onDragEnter:dojo.lang.forward("onDragOver"),ondragout:dojo.lang.forward("onDragOut"),ondragover:dojo.lang.forward("onDragOver")});dojo.declare("dojo.dnd.DropTarget",null,{acceptsType:function(a){if(!dojo.lang.inArray(this.acceptedTypes,"*")){if(!dojo.lang.inArray(this.acceptedTypes,a)){return false}}return true},accepts:function(b){if(!dojo.lang.inArray(this.acceptedTypes,"*")){for(var a=0;a<b.length;a++){if(!dojo.lang.inArray(this.acceptedTypes,b[a].type)){return false}}}return true},unregister:function(){dojo.dnd.dragManager.unregisterDropTarget(this)},onDragOver:function(a){},onDragOut:function(a){},onDragMove:function(a){},onDropStart:function(a){},onDrop:function(a){},onDropEnd:function(){}},function(){this.acceptedTypes=[]});dojo.dnd.DragEvent=function(){this.dragSource=null;this.dragObject=null;this.target=null;this.eventStatus="success"};dojo.declare("dojo.dnd.DragManager",null,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(a){},dropTargets:[],registerDropTarget:function(a){},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){},onMouseOut:function(){},onMouseMove:function(){},onMouseUp:function(){}});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,f,d){var a=dojo.lang.isString(b);if(a){b=b.split("")}if(dojo.lang.isFunction(f)&&(!d)){d=f;f=dj_global}else{if(dojo.lang.isFunction(f)&&d){var h=f;f=d;d=h}}if(Array.map){var g=Array.map(b,d,f)}else{var g=[];for(var c=0;c<b.length;++c){g.push(d.call(f,b[c]))}}if(a){return g.join("")}else{return g}},reduce:function(b,a,h,d){var f=a;if(arguments.length==1){dojo.debug("dojo.lang.reduce called with too few arguments!");return false}else{if(arguments.length==2){d=a;f=b.shift()}else{if(arguments.lenght==3){if(dojo.lang.isFunction(h)){d=h;h=null}}else{if(dojo.lang.isFunction(h)){var g=d;d=h;h=g}}}}var c=h?h:dj_global;dojo.lang.map(b,function(j){f=d.call(c,f,j)});return f},forEach:function(d,f,b){if(dojo.lang.isString(d)){d=d.split("")}if(Array.forEach){Array.forEach(d,f,b)}else{if(!b){b=dj_global}for(var c=0,a=d.length;c<a;c++){f.call(b,d[c],c,d)}}},_everyOrSome:function(g,b,h,d){if(dojo.lang.isString(b)){b=b.split("")}if(Array.every){return Array[g?"every":"some"](b,h,d)}else{if(!d){d=dj_global}for(var f=0,c=b.length;f<c;f++){var a=h.call(d,b[f],f,b);if(g&&!a){return false}else{if((!g)&&(a)){return true}}}return Boolean(g)}},every:function(a,c,b){return this._everyOrSome(true,a,c,b)},some:function(a,c,b){return this._everyOrSome(false,a,c,b)},filter:function(b,g,c){var a=dojo.lang.isString(b);if(a){b=b.split("")}var f;if(Array.filter){f=Array.filter(b,g,c)}else{if(!c){if(arguments.length>=3){dojo.raise("thisObject doesn't exist!")}c=dj_global}f=[];for(var d=0;d<b.length;d++){if(g.call(c,b[d],d,b)){f.push(b[d])}}}if(a){return f.join("")}else{return f}},unnest:function(){var a=[];for(var b=0;b<arguments.length;b++){if(dojo.lang.isArrayLike(arguments[b])){var c=dojo.lang.unnest.apply(this,arguments[b]);a=a.concat(c)}else{a.push(arguments[b])}}return a},toArray:function(b,a){var d=[];for(var c=a||0;c<b.length;c++){d.push(b[c])}return d}});dojo.provide("dojo.event.common");dojo.event=new function(){this._canTimeout=dojo.lang.isFunction(dj_global.setTimeout)||dojo.lang.isAlien(dj_global.setTimeout);function a(d,g){var c=dojo.lang;var f={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(d.length>2)?d[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};switch(d.length){case 0:return;case 1:return;case 2:f.srcFunc=d[0];f.adviceFunc=d[1];break;case 3:if((c.isObject(d[0]))&&(c.isString(d[1]))&&(c.isString(d[2]))){f.adviceType="after";f.srcObj=d[0];f.srcFunc=d[1];f.adviceFunc=d[2]}else{if((c.isString(d[1]))&&(c.isString(d[2]))){f.srcFunc=d[1];f.adviceFunc=d[2]}else{if((c.isObject(d[0]))&&(c.isString(d[1]))&&(c.isFunction(d[2]))){f.adviceType="after";f.srcObj=d[0];f.srcFunc=d[1];var b=c.nameAnonFunc(d[2],f.adviceObj,g);f.adviceFunc=b}else{if((c.isFunction(d[0]))&&(c.isObject(d[1]))&&(c.isString(d[2]))){f.adviceType="after";f.srcObj=dj_global;var b=c.nameAnonFunc(d[0],f.srcObj,g);f.srcFunc=b;f.adviceObj=d[1];f.adviceFunc=d[2]}}}}break;case 4:if((c.isObject(d[0]))&&(c.isObject(d[2]))){f.adviceType="after";f.srcObj=d[0];f.srcFunc=d[1];f.adviceObj=d[2];f.adviceFunc=d[3]}else{if((c.isString(d[0]))&&(c.isString(d[1]))&&(c.isObject(d[2]))){f.adviceType=d[0];f.srcObj=dj_global;f.srcFunc=d[1];f.adviceObj=d[2];f.adviceFunc=d[3]}else{if((c.isString(d[0]))&&(c.isFunction(d[1]))&&(c.isObject(d[2]))){f.adviceType=d[0];f.srcObj=dj_global;var b=c.nameAnonFunc(d[1],dj_global,g);f.srcFunc=b;f.adviceObj=d[2];f.adviceFunc=d[3]}else{if((c.isString(d[0]))&&(c.isObject(d[1]))&&(c.isString(d[2]))&&(c.isFunction(d[3]))){f.srcObj=d[1];f.srcFunc=d[2];var b=c.nameAnonFunc(d[3],dj_global,g);f.adviceObj=dj_global;f.adviceFunc=b}else{if(c.isObject(d[1])){f.srcObj=d[1];f.srcFunc=d[2];f.adviceObj=dj_global;f.adviceFunc=d[3]}else{if(c.isObject(d[2])){f.srcObj=dj_global;f.srcFunc=d[1];f.adviceObj=d[2];f.adviceFunc=d[3]}else{f.srcObj=f.adviceObj=f.aroundObj=dj_global;f.srcFunc=d[1];f.adviceFunc=d[2];f.aroundFunc=d[3]}}}}}}break;case 6:f.srcObj=d[1];f.srcFunc=d[2];f.adviceObj=d[3];f.adviceFunc=d[4];f.aroundFunc=d[5];f.aroundObj=dj_global;break;default:f.srcObj=d[1];f.srcFunc=d[2];f.adviceObj=d[3];f.adviceFunc=d[4];f.aroundObj=d[5];f.aroundFunc=d[6];f.once=d[7];f.delay=d[8];f.rate=d[9];f.adviceMsg=d[10];break}if(c.isFunction(f.aroundFunc)){var b=c.nameAnonFunc(f.aroundFunc,f.aroundObj,g);f.aroundFunc=b}if(c.isFunction(f.srcFunc)){f.srcFunc=c.getNameInObj(f.srcObj,f.srcFunc)}if(c.isFunction(f.adviceFunc)){f.adviceFunc=c.getNameInObj(f.adviceObj,f.adviceFunc)}if((f.aroundObj)&&(c.isFunction(f.aroundFunc))){f.aroundFunc=c.getNameInObj(f.aroundObj,f.aroundFunc)}if(!f.srcObj){dojo.raise("bad srcObj for srcFunc: "+f.srcFunc)}if(!f.adviceObj){dojo.raise("bad adviceObj for adviceFunc: "+f.adviceFunc)}if(!f.adviceFunc){dojo.debug("bad adviceFunc for srcFunc: "+f.srcFunc);dojo.debugShallow(f)}return f}this.connect=function(){if(arguments.length==1){var g=arguments[0]}else{var g=a(arguments,true)}if(dojo.lang.isString(g.srcFunc)&&(g.srcFunc.toLowerCase()=="onkey")){if(dojo.render.html.ie){g.srcFunc="onkeydown";this.connect(g)}g.srcFunc="onkeypress"}if(dojo.lang.isArray(g.srcObj)&&g.srcObj!=""){var d={};for(var b in g){d[b]=g[b]}var h=[];dojo.lang.forEach(g.srcObj,function(j){if((dojo.render.html.capable)&&(dojo.lang.isString(j))){j=dojo.byId(j)}d.srcObj=j;h.push(dojo.event.connect.call(dojo.event,d))});return h}var c=dojo.event.MethodJoinPoint.getForMethod(g.srcObj,g.srcFunc);if(g.adviceFunc){var f=dojo.event.MethodJoinPoint.getForMethod(g.adviceObj,g.adviceFunc)}c.kwAddAdvice(g);return c};this.log=function(c,b){var d;if((arguments.length==1)&&(typeof c=="object")){d=c}else{d={srcObj:c,srcFunc:b}}d.adviceFunc=function(){var g=[];for(var f=0;f<arguments.length;f++){g.push(arguments[f])}dojo.debug("("+d.srcObj+")."+d.srcFunc,":",g.join(", "))};this.kwConnect(d)};this.connectBefore=function(){var b=["before"];for(var c=0;c<arguments.length;c++){b.push(arguments[c])}return this.connect.apply(this,b)};this.connectAround=function(){var b=["around"];for(var c=0;c<arguments.length;c++){b.push(arguments[c])}return this.connect.apply(this,b)};this.connectOnce=function(){var b=a(arguments,true);b.once=true;return this.connect(b)};this._kwConnectImpl=function(d,c){var f=(c)?"disconnect":"connect";if(typeof d.srcFunc=="function"){d.srcObj=d.srcObj||dj_global;var b=dojo.lang.nameAnonFunc(d.srcFunc,d.srcObj,true);d.srcFunc=b}if(typeof d.adviceFunc=="function"){d.adviceObj=d.adviceObj||dj_global;var b=dojo.lang.nameAnonFunc(d.adviceFunc,d.adviceObj,true);d.adviceFunc=b}d.srcObj=d.srcObj||dj_global;d.adviceObj=d.adviceObj||d.targetObj||dj_global;d.adviceFunc=d.adviceFunc||d.targetFunc;return dojo.event[f](d)};this.kwConnect=function(b){return this._kwConnectImpl(b,false)};this.disconnect=function(){if(arguments.length==1){var c=arguments[0]}else{var c=a(arguments,true)}if(!c.adviceFunc){return}if(dojo.lang.isString(c.srcFunc)&&(c.srcFunc.toLowerCase()=="onkey")){if(dojo.render.html.ie){c.srcFunc="onkeydown";this.disconnect(c)}c.srcFunc="onkeypress"}if(!c.srcObj[c.srcFunc]){return null}var b=dojo.event.MethodJoinPoint.getForMethod(c.srcObj,c.srcFunc,true);b.removeAdvice(c.adviceObj,c.adviceFunc,c.adviceType,c.once);return b};this.kwDisconnect=function(b){return this._kwConnectImpl(b,true)}};dojo.event.MethodInvocation=function(b,d,c){this.jp_=b;this.object=d;this.args=[];for(var a=0;a<c.length;a++){this.args[a]=c[a]}this.around_index=-1};dojo.event.MethodInvocation.prototype.proceed=function(){this.around_index++;if(this.around_index>=this.jp_.around.length){return this.jp_.object[this.jp_.methodname].apply(this.jp_.object,this.args)}else{var c=this.jp_.around[this.around_index];var a=c[0]||dj_global;var b=c[1];return a[b].call(a,this)}};dojo.event.MethodJoinPoint=function(b,a){this.object=b||dj_global;this.methodname=a;this.methodfunc=this.object[a];this.squelch=false};dojo.event.MethodJoinPoint.getForMethod=function(f,d){if(!f){f=dj_global}if(!f[d]){f[d]=function(){};if(!f[d]){dojo.raise("Cannot set do-nothing method on that object "+d)}}else{if((!dojo.lang.isFunction(f[d]))&&(!dojo.lang.isAlien(f[d]))){return null}}var h=d+"$joinpoint";var g=d+"$joinpoint$method";var c=f[h];if(!c){var b=false;if(dojo.event.browser){if((f.attachEvent)||(f.nodeType)||(f.addEventListener)){b=true;dojo.event.browser.addClobberNodeAttrs(f,[h,g,d])}}var a=f[d].length;f[g]=f[d];c=f[h]=new dojo.event.MethodJoinPoint(f,g);f[d]=function(){var l=[];if((b)&&(!arguments.length)){var k=null;try{if(f.ownerDocument){k=f.ownerDocument.parentWindow.event}else{if(f.documentElement){k=f.documentElement.ownerDocument.parentWindow.event}else{if(f.event){k=f.event}else{k=window.event}}}}catch(m){k=window.event}if(k){l.push(dojo.event.browser.fixEvent(k,this))}}else{for(var j=0;j<arguments.length;j++){if((j==0)&&(b)&&(dojo.event.browser.isEvent(arguments[j]))){l.push(dojo.event.browser.fixEvent(arguments[j],this))}else{l.push(arguments[j])}}}return c.run.apply(c,l)};f[d].__preJoinArity=a}return c};dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){this.object[this.methodname]=this.methodfunc;this.before=[];this.after=[];this.around=[]},disconnect:dojo.lang.forward("unintercept"),run:function(){var d=this.object||dj_global;var h=arguments;var a=[];for(var j=0;j<h.length;j++){a[j]=h[j]}var b=function(m){if(!m){dojo.debug("Null argument to unrollAdvice()");return}var s=m[0]||dj_global;var n=m[1];if(!s[n]){dojo.raise('function "'+n+'" does not exist on "'+s+'"')}var u=m[2]||dj_global;var t=m[3];var o=m[6];var q;var x={args:[],jp_:this,object:d,proceed:function(){return s[n].apply(s,x.args)}};x.args=a;var r=parseInt(m[4]);var v=((!isNaN(r))&&(m[4]!==null)&&(typeof m[4]!="undefined"));if(m[5]){var w=parseInt(m[5]);var z=new Date();var l=false;if((m.last)&&((z-m.last)<=w)){if(dojo.event._canTimeout){if(m.delayTimer){clearTimeout(m.delayTimer)}var p=parseInt(w*2);var y=dojo.lang.shallowCopy(m);m.delayTimer=setTimeout(function(){y[5]=0;b(y)},p)}return}else{m.last=z}}if(t){u[t].call(u,x)}else{if((v)&&((dojo.render.html)||(dojo.render.svg))){dj_global.setTimeout(function(){if(o){s[n].call(s,x)}else{s[n].apply(s,h)}},r)}else{if(o){s[n].call(s,x)}else{s[n].apply(s,h)}}}};var c=function(){if(this.squelch){try{return b.apply(this,arguments)}catch(l){dojo.debug(l)}}else{return b.apply(this,arguments)}};if((this["before"])&&(this.before.length>0)){dojo.lang.forEach(this.before.concat(new Array()),c)}var k;try{if((this["around"])&&(this.around.length>0)){var f=new dojo.event.MethodInvocation(this,d,h);k=f.proceed()}else{if(this.methodfunc){k=this.object[this.methodname].apply(this.object,h)}}}catch(g){if(!this.squelch){dojo.debug(g,"when calling",this.methodname,"on",this.object,"with arguments",h);dojo.raise(g)}}if((this["after"])&&(this.after.length>0)){dojo.lang.forEach(this.after.concat(new Array()),c)}return(this.methodfunc)?k:null},getArr:function(b){var a="after";if((typeof b=="string")&&(b.indexOf("before")!=-1)){a="before"}else{if(b=="around"){a="around"}}if(!this[a]){this[a]=[]}return this[a]},kwAddAdvice:function(a){this.addAdvice(a.adviceObj,a.adviceFunc,a.aroundObj,a.aroundFunc,a.adviceType,a.precedence,a.once,a.delay,a.rate,a.adviceMsg)},addAdvice:function(a,l,n,b,j,c,d,g,k,m){var h=this.getArr(j);if(!h){dojo.raise("bad this: "+this)}var f=[a,l,n,b,g,k,m];if(d){if(this.hasAdvice(a,l,j,h)>=0){return}}if(c=="first"){h.unshift(f)}else{h.push(f)}},hasAdvice:function(h,d,f,b){if(!b){b=this.getArr(f)}var j=-1;for(var a=0;a<b.length;a++){var c=(typeof d=="object")?(new String(d)).toString():d;var g=(typeof b[a][1]=="object")?(new String(b[a][1])).toString():b[a][1];if((b[a][0]==h)&&(g==c)){j=a}}return j},removeAdvice:function(f,b,c,d){var a=this.getArr(c);var g=this.hasAdvice(f,b,c,a);if(g==-1){return false}while(g!=-1){a.splice(g,1);if(d){break}g=this.hasAdvice(f,b,c,a)}return true}});dojo.provide("dojo.event.topic");dojo.event.topic=new function(){this.topics={};this.getTopic=function(a){if(!this.topics[a]){this.topics[a]=new this.TopicImpl(a)}return this.topics[a]};this.registerPublisher=function(a,c,b){var a=this.getTopic(a);a.registerPublisher(c,b)};this.subscribe=function(a,c,b){var a=this.getTopic(a);a.subscribe(c,b)};this.unsubscribe=function(a,c,b){var a=this.getTopic(a);a.unsubscribe(c,b)};this.destroy=function(a){this.getTopic(a).destroy();delete this.topics[a]};this.publishApply=function(b,a){var b=this.getTopic(b);b.sendMessage.apply(b,a)};this.publish=function(c,d){var c=this.getTopic(c);var b=[];for(var a=1;a<arguments.length;a++){b.push(arguments[a])}c.sendMessage.apply(c,b)}};dojo.event.topic.TopicImpl=function(a){this.topicName=a;this.subscribe=function(c,b){var d=b||c;var f=(!b)?dj_global:c;return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:f,adviceFunc:d})};this.unsubscribe=function(c,b){var d=(!b)?c:b;var f=(!b)?null:c;return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:f,adviceFunc:d})};this._getJoinPoint=function(){return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage")};this.setSquelch=function(b){this._getJoinPoint().squelch=b};this.destroy=function(){this._getJoinPoint().disconnect()};this.registerPublisher=function(c,b){dojo.event.connect(c,b,this,"sendMessage")};this.sendMessage=function(b){}};dojo.provide("dojo.event.browser");dojo._ie_clobber=new function(){this.clobberNodes=[];function a(b,d){try{b[d]=null}catch(c){}try{delete b[d]}catch(c){}try{b.removeAttribute(d)}catch(c){}}this.clobber=function(m){var f;var k;if(m){k=m.all||m.getElementsByTagName("*");f=[m];for(var l=0;l<k.length;l++){if(k[l]["__doClobber__"]){f.push(k[l])}}}else{try{window.onload=null}catch(g){}f=(this.clobberNodes.length)?this.clobberNodes:document.all}k=null;var h={};for(var d=f.length-1;d>=0;d=d-1){var b=f[d];try{if(b&&b.__clobberAttrs__){for(var c=0;c<b.__clobberAttrs__.length;c++){a(b,b.__clobberAttrs__[c])}a(b,"__clobberAttrs__");a(b,"__doClobber__")}}catch(g){}}f=null}};if(dojo.render.html.ie){dojo.addOnUnload(function(){dojo._ie_clobber.clobber();try{if((dojo.widget)&&(dojo.widget.manager)){dojo.widget.manager.destroyAll()}}catch(b){}if(dojo.widget){for(var a in dojo.widget._templateCache){if(dojo.widget._templateCache[a].node){dojo.dom.destroyNode(dojo.widget._templateCache[a].node);dojo.widget._templateCache[a].node=null;delete dojo.widget._templateCache[a].node}}}try{window.onload=null}catch(b){}try{window.onunload=null}catch(b){}dojo._ie_clobber.clobberNodes=[]})}dojo.event.browser=new function(){var b=0;this.normalizedEventName=function(c){switch(c){case"CheckboxStateChange":case"DOMAttrModified":case"DOMMenuItemActive":case"DOMMenuItemInactive":case"DOMMouseScroll":case"DOMNodeInserted":case"DOMNodeRemoved":case"RadioStateChange":return c;break;default:return c.toLowerCase();break}};this.clean=function(c){if(dojo.render.html.ie){dojo._ie_clobber.clobber(c)}};this.addClobberNode=function(c){if(!dojo.render.html.ie){return}if(!c.__doClobber__){c.__doClobber__=true;dojo._ie_clobber.clobberNodes.push(c);c.__clobberAttrs__=[]}};this.addClobberNodeAttrs=function(f,d){if(!dojo.render.html.ie){return}this.addClobberNode(f);for(var c=0;c<d.length;c++){f.__clobberAttrs__.push(d[c])}};this.removeListener=function(f,g,d,c){if(!c){var c=false}g=dojo.event.browser.normalizedEventName(g);if((g=="onkey")||(g=="key")){if(dojo.render.html.ie){this.removeListener(f,"onkeydown",d,c)}g="onkeypress"}if(g.substr(0,2)=="on"){g=g.substr(2)}if(f.removeEventListener){f.removeEventListener(g,d,c)}};this.addListener=function(h,k,d,c,j){if(!h){return}if(!c){var c=false}k=dojo.event.browser.normalizedEventName(k);if((k=="onkey")||(k=="key")){if(dojo.render.html.ie){this.addListener(h,"onkeydown",d,c,j)}k="onkeypress"}if(k.substr(0,2)!="on"){k="on"+k}if(!j){var g=function(l){if(!l){l=window.event}var m=d(dojo.event.browser.fixEvent(l,this));if(c){dojo.event.browser.stopEvent(l)}return m}}else{g=d}if(h.addEventListener){h.addEventListener(k.substr(2),g,c);return g}else{if(typeof h[k]=="function"){var f=h[k];h[k]=function(l){f(l);return g(l)}}else{h[k]=g}if(dojo.render.html.ie){this.addClobberNodeAttrs(h,[k])}return g}};this.isEvent=function(c){return(typeof c!="undefined")&&(c)&&(typeof Event!="undefined")&&(c.eventPhase)};this.currentEvent=null;this.callListener=function(d,c){if(typeof d!="function"){dojo.raise("listener not a function: "+d)}dojo.event.browser.currentEvent.currentTarget=c;return d.call(c,dojo.event.browser.currentEvent)};this._stopPropagation=function(){dojo.event.browser.currentEvent.cancelBubble=true};this._preventDefault=function(){dojo.event.browser.currentEvent.returnValue=false};this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};this.revKeys=[];for(var a in this.keys){this.revKeys[this.keys[a]]=a}this.fixEvent=function(c,f){if(!c){if(window.event){c=window.event}}if((c.type)&&(c.type.indexOf("key")==0)){c.keys=this.revKeys;for(var d in this.keys){c[d]=this.keys[d]}if(c.type=="keydown"&&dojo.render.html.ie){switch(c.keyCode){case c.KEY_SHIFT:case c.KEY_CTRL:case c.KEY_ALT:case c.KEY_CAPS_LOCK:case c.KEY_LEFT_WINDOW:case c.KEY_RIGHT_WINDOW:case c.KEY_SELECT:case c.KEY_NUM_LOCK:case c.KEY_SCROLL_LOCK:case c.KEY_NUMPAD_0:case c.KEY_NUMPAD_1:case c.KEY_NUMPAD_2:case c.KEY_NUMPAD_3:case c.KEY_NUMPAD_4:case c.KEY_NUMPAD_5:case c.KEY_NUMPAD_6:case c.KEY_NUMPAD_7:case c.KEY_NUMPAD_8:case c.KEY_NUMPAD_9:case c.KEY_NUMPAD_PERIOD:break;case c.KEY_NUMPAD_MULTIPLY:case c.KEY_NUMPAD_PLUS:case c.KEY_NUMPAD_ENTER:case c.KEY_NUMPAD_MINUS:case c.KEY_NUMPAD_DIVIDE:break;case c.KEY_PAUSE:case c.KEY_TAB:case c.KEY_BACKSPACE:case c.KEY_ENTER:case c.KEY_ESCAPE:case c.KEY_PAGE_UP:case c.KEY_PAGE_DOWN:case c.KEY_END:case c.KEY_HOME:case c.KEY_LEFT_ARROW:case c.KEY_UP_ARROW:case c.KEY_RIGHT_ARROW:case c.KEY_DOWN_ARROW:case c.KEY_INSERT:case c.KEY_DELETE:case c.KEY_F1:case c.KEY_F2:case c.KEY_F3:case c.KEY_F4:case c.KEY_F5:case c.KEY_F6:case c.KEY_F7:case c.KEY_F8:case c.KEY_F9:case c.KEY_F10:case c.KEY_F11:case c.KEY_F12:case c.KEY_F12:case c.KEY_F13:case c.KEY_F14:case c.KEY_F15:case c.KEY_CLEAR:case c.KEY_HELP:c.key=c.keyCode;break;default:if(c.ctrlKey||c.altKey){var j=c.keyCode;if(j>=65&&j<=90&&c.shiftKey==false){j+=32}if(j>=1&&j<=26&&c.ctrlKey){j+=96}c.key=String.fromCharCode(j)}}}else{if(c.type=="keypress"){if(dojo.render.html.opera){if(c.which==0){c.key=c.keyCode}else{if(c.which>0){switch(c.which){case c.KEY_SHIFT:case c.KEY_CTRL:case c.KEY_ALT:case c.KEY_CAPS_LOCK:case c.KEY_NUM_LOCK:case c.KEY_SCROLL_LOCK:break;case c.KEY_PAUSE:case c.KEY_TAB:case c.KEY_BACKSPACE:case c.KEY_ENTER:case c.KEY_ESCAPE:c.key=c.which;break;default:var j=c.which;if((c.ctrlKey||c.altKey||c.metaKey)&&(c.which>=65&&c.which<=90&&c.shiftKey==false)){j+=32}c.key=String.fromCharCode(j)}}}}else{if(dojo.render.html.ie){if(!c.ctrlKey&&!c.altKey&&c.keyCode>=c.KEY_SPACE){c.key=String.fromCharCode(c.keyCode)}}else{if(dojo.render.html.safari){switch(c.keyCode){case 25:c.key=c.KEY_TAB;c.shift=true;break;case 63232:c.key=c.KEY_UP_ARROW;break;case 63233:c.key=c.KEY_DOWN_ARROW;break;case 63234:c.key=c.KEY_LEFT_ARROW;break;case 63235:c.key=c.KEY_RIGHT_ARROW;break;case 63236:c.key=c.KEY_F1;break;case 63237:c.key=c.KEY_F2;break;case 63238:c.key=c.KEY_F3;break;case 63239:c.key=c.KEY_F4;break;case 63240:c.key=c.KEY_F5;break;case 63241:c.key=c.KEY_F6;break;case 63242:c.key=c.KEY_F7;break;case 63243:c.key=c.KEY_F8;break;case 63244:c.key=c.KEY_F9;break;case 63245:c.key=c.KEY_F10;break;case 63246:c.key=c.KEY_F11;break;case 63247:c.key=c.KEY_F12;break;case 63250:c.key=c.KEY_PAUSE;break;case 63272:c.key=c.KEY_DELETE;break;case 63273:c.key=c.KEY_HOME;break;case 63275:c.key=c.KEY_END;break;case 63276:c.key=c.KEY_PAGE_UP;break;case 63277:c.key=c.KEY_PAGE_DOWN;break;case 63302:c.key=c.KEY_INSERT;break;case 63248:case 63249:case 63289:break;default:c.key=c.charCode>=c.KEY_SPACE?String.fromCharCode(c.charCode):c.keyCode}}else{c.key=c.charCode>0?String.fromCharCode(c.charCode):c.keyCode}}}}}}if(dojo.render.html.ie){if(!c.target){c.target=c.srcElement}if(!c.currentTarget){c.currentTarget=(f?f:c.srcElement)}if(!c.layerX){c.layerX=c.offsetX}if(!c.layerY){c.layerY=c.offsetY}var h=(c.srcElement&&c.srcElement.ownerDocument)?c.srcElement.ownerDocument:document;var g=((dojo.render.html.ie55)||(h.compatMode=="BackCompat"))?h.body:h.documentElement;if(!c.pageX){c.pageX=c.clientX+(g.scrollLeft||0)}if(!c.pageY){c.pageY=c.clientY+(g.scrollTop||0)}if(c.type=="mouseover"){c.relatedTarget=c.fromElement}if(c.type=="mouseout"){c.relatedTarget=c.toElement}this.currentEvent=c;c.callListener=this.callListener;c.stopPropagation=this._stopPropagation;c.preventDefault=this._preventDefault}return c};this.stopEvent=function(c){if(window.event){c.cancelBubble=true;c.returnValue=false}else{c.preventDefault();c.stopPropagation()}}};dojo.kwCompoundRequire({common:["dojo.event.common","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});dojo.provide("dojo.event.*");dojo.provide("dojo.dom");dojo.dom.ELEMENT_NODE=1;dojo.dom.ATTRIBUTE_NODE=2;dojo.dom.TEXT_NODE=3;dojo.dom.CDATA_SECTION_NODE=4;dojo.dom.ENTITY_REFERENCE_NODE=5;dojo.dom.ENTITY_NODE=6;dojo.dom.PROCESSING_INSTRUCTION_NODE=7;dojo.dom.COMMENT_NODE=8;dojo.dom.DOCUMENT_NODE=9;dojo.dom.DOCUMENT_TYPE_NODE=10;dojo.dom.DOCUMENT_FRAGMENT_NODE=11;dojo.dom.NOTATION_NODE=12;dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};dojo.dom.isNode=function(a){if(typeof Element=="function"){try{return a instanceof Element}catch(b){}}else{return a&&!isNaN(a.nodeType)}};dojo.dom.getUniqueId=function(){var a=dojo.doc();do{var b="dj_unique_"+(++arguments.callee._idIncrement)}while(a.getElementById(b));return b};dojo.dom.getUniqueId._idIncrement=0;dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(a,b){var c=a.firstChild;while(c&&c.nodeType!=dojo.dom.ELEMENT_NODE){c=c.nextSibling}if(b&&c&&c.tagName&&c.tagName.toLowerCase()!=b.toLowerCase()){c=dojo.dom.nextElement(c,b)}return c};dojo.dom.lastElement=dojo.dom.getLastChildElement=function(a,b){var c=a.lastChild;while(c&&c.nodeType!=dojo.dom.ELEMENT_NODE){c=c.previousSibling}if(b&&c&&c.tagName&&c.tagName.toLowerCase()!=b.toLowerCase()){c=dojo.dom.prevElement(c,b)}return c};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(c,d,a){var b=0;if(a){while(c.hasChildNodes()&&c.firstChild.nodeType==dojo.dom.TEXT_NODE){c.removeChild(c.firstChild)}while(c.hasChildNodes()&&c.lastChild.nodeType==dojo.dom.TEXT_NODE){c.removeChild(c.lastChild)}}while(c.hasChildNodes()){d.appendChild(c.firstChild);b++}return b};dojo.dom.copyChildren=function(b,d,a){var c=b.cloneNode(true);return this.moveChildren(c,d,a)};dojo.dom.replaceChildren=function(d,a){var b=[];if(dojo.render.html.ie){for(var c=0;c<d.childNodes.length;c++){b.push(d.childNodes[c])}}dojo.dom.removeChildren(d);d.appendChild(a);for(var c=0;c<b.length;c++){dojo.dom.destroyNode(b[c])}};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(c,f,a){var b=[];var d=(f&&(f instanceof Function||typeof f=="function"));while(c){if(!d||f(c)){b.push(c)}if(a&&b.length>0){return b[0]}c=c.parentNode}if(a){return null}return b};dojo.dom.getAncestorsByTag=function(c,a,b){a=a.toLowerCase();return dojo.dom.getAncestors(c,function(d){return((d.tagName)&&(d.tagName.toLowerCase()==a))},b)};dojo.dom.getFirstAncestorByTag=function(b,a){return dojo.dom.getAncestorsByTag(b,a,true)};dojo.dom.isDescendantOf=function(b,a,c){if(c&&b){b=b.parentNode}while(b){if(b==a){return true}b=b.parentNode}return false};dojo.dom.innerXML=function(a){if(a.innerXML){return a.innerXML}else{if(a.xml){return a.xml}else{if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(a)}}}};dojo.dom.createDocument=function(){var f=null;var a=dojo.doc();if(!dj_undef("ActiveXObject")){var c=["MSXML2","Microsoft","MSXML","MSXML3"];for(var b=0;b<c.length;b++){try{f=new ActiveXObject(c[b]+".XMLDOM")}catch(d){}if(f){break}}}else{if((a.implementation)&&(a.implementation.createDocument)){f=a.implementation.createDocument("","",null)}}return f};dojo.dom.createDocumentFromText=function(h,b){if(!b){b="text/xml"}if(!dj_undef("DOMParser")){var j=new DOMParser();return j.parseFromString(h,b)}else{if(!dj_undef("ActiveXObject")){var c=dojo.dom.createDocument();if(c){c.async=false;c.loadXML(h);return c}else{dojo.debug("toXml didn't work?")}}else{var a=dojo.doc();if(a.createElement){var f=a.createElement("xml");f.innerHTML=h;if(a.implementation&&a.implementation.createDocument){var g=a.implementation.createDocument("foo","",null);for(var d=0;d<f.childNodes.length;d++){g.importNode(f.childNodes.item(d),true)}return g}return((f.document)&&(f.document.firstChild?f.document.firstChild:f))}}}return null};dojo.dom.prependChild=function(b,a){if(a.firstChild){a.insertBefore(b,a.firstChild)}else{a.appendChild(b)}return true};dojo.dom.insertBefore=function(c,b,d){if((d!=true)&&(c===b||c.nextSibling===b)){return false}var a=b.parentNode;a.insertBefore(c,b);return true};dojo.dom.insertAfter=function(c,b,d){var a=b.parentNode;if(b==a.lastChild){if((d!=true)&&(c===b)){return false}a.appendChild(c)}else{return this.insertBefore(c,b.nextSibling,d)}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(b,a,d){var c=a.childNodes;if(!c.length||c.length==d){a.appendChild(b);return true}if(d==0){return dojo.dom.prependChild(b,a)}return dojo.dom.insertAfter(b,c[d-1])};dojo.dom.textContent=function(d,f){if(arguments.length>1){var a=dojo.doc();dojo.dom.replaceChildren(d,a.createTextNode(f));return f}else{if(d.textContent!=undefined){return d.textContent}var c="";if(d==null){return c}for(var b=0;b<d.childNodes.length;b++){switch(d.childNodes[b].nodeType){case 1:case 5:c+=dojo.dom.textContent(d.childNodes[b]);break;case 3:case 2:case 4:c+=d.childNodes[b].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,b,c,g){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(b,c,g)}else{var a=f.ownerDocument;var d=a.createNode(2,c,b);d.nodeValue=g;f.setAttributeNode(d)}};dojo.provide("dojo.html.common");dojo.lang.mixin(dojo.html,dojo.dom);dojo.html.body=function(){dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");return dojo.body()};dojo.html.getEventTarget=function(a){if(!a){a=dojo.global().event||{}}var b=(a.srcElement?a.srcElement:(a.target?a.target:null));while((b)&&(b.nodeType!=1)){b=b.parentNode}return b};dojo.html.getViewport=function(){var f=dojo.global();var c=dojo.doc();var b=0;var d=0;if(dojo.render.html.mozilla){b=c.documentElement.clientWidth;d=f.innerHeight}else{if(!dojo.render.html.opera&&f.innerWidth){b=f.innerWidth;d=f.innerHeight}else{if(!dojo.render.html.opera&&dojo.exists(c,"documentElement.clientWidth")){var a=c.documentElement.clientWidth;if(!b||a&&a<b){b=a}d=c.documentElement.clientHeight}else{if(dojo.body().clientWidth){b=dojo.body().clientWidth;d=dojo.body().clientHeight}}}}return{width:b,height:d}};dojo.html.getScroll=function(){var d=dojo.global();var a=dojo.doc();var c=d.pageYOffset||a.documentElement.scrollTop||dojo.body().scrollTop||0;var b=d.pageXOffset||a.documentElement.scrollLeft||dojo.body().scrollLeft||0;return{top:c,left:b,offset:{x:b,y:c}}};dojo.html.getParentByType=function(d,c){var a=dojo.doc();var b=dojo.byId(d);c=c.toLowerCase();while((b)&&(b.nodeName.toLowerCase()!=c)){if(b==(a.body||a.documentElement)){return null}b=b.parentNode}return b};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(b){b=b||dojo.global().event;var c={x:0,y:0};if(b.pageX||b.pageY){c.x=b.pageX;c.y=b.pageY}else{var d=dojo.doc().documentElement;var a=dojo.body();c.x=b.clientX+((d||a)["scrollLeft"])-((d||a)["clientLeft"]);c.y=b.clientY+((d||a)["scrollTop"])-((d||a)["clientTop"])}return c};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(j,b,d,h,g){dojo.deprecated("dojo.html."+j,"replaced by dojo.html."+b+"("+(h?"node, {"+h+": "+h+"}":"")+")"+(g?"."+g:""),"0.5");var a=[];if(h){var f={};f[h]=d[1];a.push(d[0]);a.push(f)}else{a=d}var c=dojo.html[b].apply(dojo.html,d);if(g){return c[g]}else{return c}};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(a,b){var c=dojo.hostenv.getModuleSymbols(a).join("/");if(!c){return null}if(c.lastIndexOf("/")!=c.length-1){c+="/"}return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+c,b)};this.Uri=function(){var c=arguments[0];for(var f=1;f<arguments.length;f++){if(!arguments[f]){continue}var g=new dojo.uri.Uri(arguments[f].toString());var k=new dojo.uri.Uri(c.toString());if((g.path=="")&&(g.scheme==null)&&(g.authority==null)&&(g.query==null)){if(g.fragment!=null){k.fragment=g.fragment}g=k}else{if(g.scheme==null){g.scheme=k.scheme;if(g.authority==null){g.authority=k.authority;if(g.path.charAt(0)!="/"){var l=k.path.substring(0,k.path.lastIndexOf("/")+1)+g.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}}}}g.path=b.join("/")}}}}c="";if(g.scheme!=null){c+=g.scheme+":"}if(g.authority!=null){c+="//"+g.authority}c+=g.path;if(g.query!=null){c+="?"+g.query}if(g.fragment!=null){c+="#"+g.fragment}}this.uri=c.toString();var h="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";var a=this.uri.match(new RegExp(h));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){h="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";a=this.authority.match(new RegExp(h));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(a,b){return(new RegExp("(^|\\s+)"+b+"(\\s+|$)")).test(dojo.html.getClass(a))};dojo.html.prependClass=function(b,a){a+=" "+dojo.html.getClass(b);return dojo.html.setClass(b,a)};dojo.html.addClass=function(b,a){if(dojo.html.hasClass(b,a)){return false}a=(dojo.html.getClass(b)+" "+a).replace(/^\s+|\s+$/g,"");return dojo.html.setClass(b,a)};dojo.html.setClass=function(c,b){c=dojo.byId(c);var a=new String(b);try{if(typeof c.className=="string"){c.className=a}else{if(c.setAttribute){c.setAttribute("class",b);c.className=a}else{return false}}}catch(d){dojo.debug("dojo.html.setClass() failed",d)}return true};dojo.html.removeClass=function(b,a,f){try{if(!f){var c=dojo.html.getClass(b).replace(new RegExp("(^|\\s+)"+a+"(\\s+|$)"),"$1$2")}else{var c=dojo.html.getClass(b).replace(a,"")}dojo.html.setClass(b,c)}catch(d){dojo.debug("dojo.html.removeClass() failed",d)}return true};dojo.html.replaceClass=function(b,c,a){dojo.html.removeClass(b,a);dojo.html.addClass(b,c)};dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};dojo.html.getElementsByClass=function(f,g,c,r,b){b=false;var s=dojo.doc();g=dojo.byId(g)||s;var v=f.split(/\s+/g);var n=[];if(r!=1&&r!=2){r=0}var d=new RegExp("(\\s|^)(("+v.join(")|(")+"))(\\s|$)");var w=v.join(" ").length;var t=[];if(!b&&s.evaluate){var m=".//"+(c||"*")+"[contains(";if(r!=dojo.html.classMatchType.ContainsAny){m+="concat(' ',@class,' '), ' "+v.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";if(r==2){m+=" and string-length(@class)="+w+"]"}else{m+="]"}}else{m+="concat(' ',@class,' '), ' "+v.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]"}var l=s.evaluate(m,g,null,XPathResult.ANY_TYPE,null);var h=l.iterateNext();while(h){try{t.push(h);h=l.iterateNext()}catch(u){break}}return t}else{if(!c){c="*"}t=g.getElementsByTagName(c);var o,q=0;outer:while(o=t[q++]){var k=dojo.html.getClasses(o);if(k.length==0){continue outer}var a=0;for(var p=0;p<k.length;p++){if(d.test(k[p])){if(r==dojo.html.classMatchType.ContainsAny){n.push(o);continue outer}else{a++}}else{if(r==dojo.html.classMatchType.IsOnly){continue outer}}}if(a==v.length){if((r==dojo.html.classMatchType.IsOnly)&&(a==k.length)){n.push(o)}else{if(r==dojo.html.classMatchType.ContainsAll){n.push(o)}}}}return n}};dojo.html.getElementsByClassName=dojo.html.getElementsByClass;dojo.html.toCamelCase=function(b){var a=b.split("-"),d=a[0];for(var c=1;c<a.length;c++){d+=a[c].charAt(0).toUpperCase()+a[c].substring(1)}return d};dojo.html.toSelectorCase=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};dojo.html.getComputedStyle=function(d,c,a){d=dojo.byId(d);var c=dojo.html.toSelectorCase(c);var f=dojo.html.toCamelCase(c);if(!d||!d.style){return a}else{if(document.defaultView&&dojo.html.isDescendantOf(d,d.ownerDocument)){try{var b=document.defaultView.getComputedStyle(d,"");if(b){return b.getPropertyValue(c)}}catch(g){if(d.style.getPropertyValue){return d.style.getPropertyValue(c)}else{return a}}}else{if(d.currentStyle){return d.currentStyle[f]}}}if(d.style.getPropertyValue){return d.style.getPropertyValue(c)}else{return a}};dojo.html.getStyleProperty=function(b,a){b=dojo.byId(b);return(b&&b.style?b.style[dojo.html.toCamelCase(a)]:undefined)};dojo.html.getStyle=function(b,a){var c=dojo.html.getStyleProperty(b,a);return(c?c:dojo.html.getComputedStyle(b,a))};dojo.html.setStyle=function(c,b,d){c=dojo.byId(c);if(c&&c.style){var a=dojo.html.toCamelCase(b);c.style[a]=d}};dojo.html.setStyleText=function(b,c){try{b.style.cssText=c}catch(a){b.setAttribute("style",c)}};dojo.html.copyStyle=function(b,a){if(!a.style.cssText){b.setAttribute("style",a.getAttribute("style"))}else{b.style.cssText=a.style.cssText}dojo.html.addClass(b,dojo.html.getClass(a))};dojo.html.getUnitValue=function(d,c,f){var b=dojo.html.getComputedStyle(d,c);if((!b)||((b=="auto")&&(f))){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:""};dojo.html.getPixelValue=function(c,b,d){var a=dojo.html.getUnitValue(c,b,d);if(isNaN(a.value)){return 0}if((a.value)&&(a.units!="px")){return NaN}return a.value};dojo.html.setPositivePixelValue=function(b,a,c){if(isNaN(c)){return false}b.style[a]=Math.max(0,c)+"px";return true};dojo.html.styleSheet=null;dojo.html.insertCssRule=function(a,d,b){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){b=dojo.html.styleSheet.cssRules.length}else{if(dojo.html.styleSheet.rules){b=dojo.html.styleSheet.rules.length}else{return null}}}if(dojo.html.styleSheet.insertRule){var c=a+" { "+d+" }";return dojo.html.styleSheet.insertRule(c,b)}else{if(dojo.html.styleSheet.addRule){return dojo.html.styleSheet.addRule(a,d,b)}else{return null}}};dojo.html.removeCssRule=function(a){if(!dojo.html.styleSheet){dojo.debug("no stylesheet defined for removing rules");return false}if(dojo.render.html.ie){if(!a){a=dojo.html.styleSheet.rules.length;dojo.html.styleSheet.removeRule(a)}}else{if(document.styleSheets[0]){if(!a){a=dojo.html.styleSheet.cssRules.length}dojo.html.styleSheet.deleteRule(a)}}return true};dojo.html._insertedCssFiles=[];dojo.html.insertCssFile=function(h,j,m,c){if(!h){return}if(!j){j=document}var b=dojo.hostenv.getText(h,false,c);if(b===null){return}b=dojo.html.fixPathsInCssText(b,h);if(m){var k=-1,d,g=dojo.html._insertedCssFiles;for(var f=0;f<g.length;f++){if((g[f].doc==j)&&(g[f].cssText==b)){k=f;d=g[f].nodeRef;break}}if(d){var l=j.getElementsByTagName("style");for(var f=0;f<l.length;f++){if(l[f]==d){return}}dojo.html._insertedCssFiles.shift(k,1)}}var a=dojo.html.insertCssText(b,j);dojo.html._insertedCssFiles.push({doc:j,cssText:b,nodeRef:a});if(a&&djConfig.isDebug){a.setAttribute("dbgHref",h)}return a};dojo.html.insertCssText=function(b,h,c){if(!b){return}if(!h){h=document}if(c){b=dojo.html.fixPathsInCssText(b,c)}var g=h.createElement("style");g.setAttribute("type","text/css");var d=h.getElementsByTagName("head")[0];if(!d){dojo.debug("No head tag in document, aborting styles");return}else{d.appendChild(g)}if(g.styleSheet){var a=function(){try{g.styleSheet.cssText=b}catch(j){dojo.debug(j)}};if(g.styleSheet.disabled){setTimeout(a,10)}else{a()}}else{var f=h.createTextNode(b);g.appendChild(f)}return g};dojo.html.fixPathsInCssText=function(b,h){if(!b||!h){return}var d,f="",a="",c="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";var g=new RegExp("url\\(\\s*("+c+")\\s*\\)");var k=/(file|https?|ftps?):\/\//;regexTrim=new RegExp("^[\\s]*(['\"]?)("+c+")\\1[\\s]*?$");if(dojo.render.html.ie55||dojo.render.html.ie60){var j=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+c+")['\"]");while(d=j.exec(b)){a=d[2].replace(regexTrim,"$2");if(!k.exec(a)){a=(new dojo.uri.Uri(h,a).toString())}f+=b.substring(0,d.index)+"AlphaImageLoader("+d[1]+"src='"+a+"'";b=b.substr(d.index+d[0].length)}b=f+b;f=""}while(d=g.exec(b)){a=d[1].replace(regexTrim,"$2");if(!k.exec(a)){a=(new dojo.uri.Uri(h,a).toString())}f+=b.substring(0,d.index)+"url("+a+")";b=b.substr(d.index+d[0].length)}return f+b};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(b,a,c){b=dojo.byId(b);c(b,!a(b));return a(b)};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(a,b){dojo.html[(b?"show":"hide")](a)};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(b,a){dojo.html.setStyle(b,"visibility",((a instanceof String||typeof a=="string")?a:(a?"visible":"hidden")))};dojo.html.isVisible=function(a){return(dojo.html.getComputedStyle(a,"visibility")!="hidden")};dojo.html.toggleVisibility=function(a){return dojo.html._toggle(a,dojo.html.isVisible,dojo.html.setVisibility)};dojo.html.setOpacity=function(g,b,f){g=dojo.byId(g);var d=dojo.render.html;if(!f){if(b>=1){if(d.ie){dojo.html.clearOpacity(g);return}else{b=0.999999}}else{if(b<0){b=0}}}if(d.ie){if(g.nodeName.toLowerCase()=="tr"){var c=g.getElementsByTagName("td");for(var a=0;a<c.length;a++){c[a].style.filter="Alpha(Opacity="+b*100+")"}}g.style.filter="Alpha(Opacity="+b*100+")"}else{if(d.moz){g.style.opacity=b;g.style.MozOpacity=b}else{if(d.safari){g.style.opacity=b;g.style.KhtmlOpacity=b}else{g.style.opacity=b}}}};dojo.html.clearOpacity=function(c){c=dojo.byId(c);var b=c.style;var a=dojo.render.html;if(a.ie){try{if(c.filters&&c.filters.alpha){b.filter=""}}catch(d){}}else{if(a.moz){b.opacity=1;b.MozOpacity=1}else{if(a.safari){b.opacity=1;b.KhtmlOpacity=1}else{b.opacity=1}}}};dojo.html.getOpacity=function(c){c=dojo.byId(c);var a=dojo.render.html;if(a.ie){var b=(c.filters&&c.filters.alpha&&typeof c.filters.alpha.opacity=="number"?c.filters.alpha.opacity:100)/100}else{var b=c.style.opacity||c.style.MozOpacity||c.style.KhtmlOpacity||1}return b>=0.999999?1:Number(b)};dojo.provide("dojo.html.layout");dojo.html.sumAncestorProperties=function(a,d){a=dojo.byId(a);if(!a){return 0}var b=0;while(a){if(dojo.html.getComputedStyle(a,"position")=="fixed"){return 0}var c=a[d];if(c){b+=c-0;if(a==dojo.body()){break}}a=a.parentNode}return b};dojo.html.setStyleAttributes=function(g,b){g=dojo.byId(g);var f=b.replace(/(;)?\s*$/,"").split(";");for(var d=0;d<f.length;d++){var a=f[d].split(":");var c=a[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();var h=a[1].replace(/\s*$/,"").replace(/^\s*/,"");switch(c){case"opacity":dojo.html.setOpacity(g,h);break;case"content-height":dojo.html.setContentBox(g,{height:h});break;case"content-width":dojo.html.setContentBox(g,{width:h});break;case"outer-height":dojo.html.setMarginBox(g,{height:h});break;case"outer-width":dojo.html.setMarginBox(g,{width:h});break;default:g.style[dojo.html.toCamelCase(c)]=h}}};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,includeScroll,boxType){node=dojo.byId(node,node.ownerDocument);var ret={x:0,y:0};var bs=dojo.html.boxSizing;if(!boxType){boxType=bs.CONTENT_BOX}var nativeBoxType=2;var targetBoxType;switch(boxType){case bs.MARGIN_BOX:targetBoxType=3;break;case bs.BORDER_BOX:targetBoxType=2;break;case bs.PADDING_BOX:default:targetBoxType=1;break;case bs.CONTENT_BOX:targetBoxType=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){nativeBoxType=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 endNode;if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){endNode=db}else{endNode=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 curnode=node;do{var n=curnode.offsetLeft;if(!h.opera||n>0){ret.x+=isNaN(n)?0:n}var m=curnode.offsetTop;ret.y+=isNaN(m)?0:m;curnode=curnode.offsetParent}while((curnode!=endNode)&&(curnode!=null))}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y}}}}if(includeScroll){var scroll=dojo.html.getScroll();ret.y+=scroll.top;ret.x+=scroll.left}var extentFuncArray=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];if(nativeBoxType>targetBoxType){for(var i=targetBoxType;i<nativeBoxType;++i){ret.y+=extentFuncArray[i](node,"top");ret.x+=extentFuncArray[i](node,"left")}}else{if(nativeBoxType<targetBoxType){for(var i=targetBoxType;i>nativeBoxType;--i){ret.y-=extentFuncArray[i-1](node,"top");ret.x-=extentFuncArray[i-1](node,"left")}}}ret.top=ret.y;ret.left=ret.x;return ret};dojo.html.isPositionAbsolute=function(a){return(dojo.html.getComputedStyle(a,"position")=="absolute")};dojo.html._sumPixelValues=function(d,b,f){var c=0;for(var a=0;a<b.length;a++){c+=dojo.html.getPixelValue(d,b[a],f)}return c};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(b){var c=dojo.html.getPadding(b);var a=dojo.html.getBorder(b);return{width:c.width+a.width,height:c.height+a.height}};dojo.html.getBoxSizing=function(f){var d=dojo.render.html;var c=dojo.html.boxSizing;if(((d.ie)||(d.opera))&&f.nodeName!="IMG"){var a=document.compatMode;if((a=="BackCompat")||(a=="QuirksMode")){return c.BORDER_BOX}else{return c.CONTENT_BOX}}else{if(arguments.length==0){f=document.documentElement}var b=dojo.html.getStyle(f,"-moz-box-sizing");if(!b){b=dojo.html.getStyle(f,"box-sizing")}return(b?b:c.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(g,c){g=dojo.byId(g);var f=0;var a=0;var d=dojo.html.isBorderBox(g);var h=(d?dojo.html.getPadBorder(g):{width:0,height:0});var b={};if(typeof c.width!="undefined"){f=c.width+h.width;b.width=dojo.html.setPositivePixelValue(g,"width",f)}if(typeof c.height!="undefined"){a=c.height+h.height;b.height=dojo.html.setPositivePixelValue(g,"height",a)}return b};dojo.html.getMarginBox=function(b){var a=dojo.html.getBorderBox(b);var c=dojo.html.getMargin(b);return{width:a.width+c.width,height:a.height+c.height}};dojo.html.setMarginBox=function(g,c){g=dojo.byId(g);var f=0;var a=0;var d=dojo.html.isBorderBox(g);var j=(!d?dojo.html.getPadBorder(g):{width:0,height:0});var h=dojo.html.getMargin(g);var b={};if(typeof c.width!="undefined"){f=c.width-j.width;f-=h.width;b.width=dojo.html.setPositivePixelValue(g,"width",f)}if(typeof c.height!="undefined"){a=c.height-j.height;a-=h.height;b.height=dojo.html.setPositivePixelValue(g,"height",a)}return b};dojo.html.getElementBox=function(c,b){var a=dojo.html.boxSizing;switch(b){case a.MARGIN_BOX:return dojo.html.getMarginBox(c);case a.BORDER_BOX:return dojo.html.getBorderBox(c);case a.PADDING_BOX:return dojo.html.getPaddingBox(c);case a.CONTENT_BOX:default:return dojo.html.getContentBox(c)}};dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(f,d,b){if(f instanceof Array||typeof f=="array"){dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");while(f.length<4){f.push(0)}while(f.length>4){f.pop()}var a={left:f[0],top:f[1],width:f[2],height:f[3]}}else{if(!f.nodeType&&!(f instanceof String||typeof f=="string")&&("width" in f||"height" in f||"left" in f||"x" in f||"top" in f||"y" in f)){var a={left:f.left||f.x||0,top:f.top||f.y||0,width:f.width||0,height:f.height||0}}else{var c=dojo.byId(f);var h=dojo.html.abs(c,d,b);var g=dojo.html.getMarginBox(c);var a={left:h.left,top:h.top,width:g.width,height:g.height}}}a.x=a.left;a.y=a.top;return a};dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(b,a){return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width")};dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height")};dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width")};dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height")};dojo.html.getTotalOffset=function(c,a,b){return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,a)};dojo.html.getAbsoluteX=function(b,a){return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x")};dojo.html.getAbsoluteY=function(b,a){return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y")};dojo.html.totalOffsetLeft=function(b,a){return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left")};dojo.html.totalOffsetTop=function(b,a){return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top")};dojo.html.getMarginWidth=function(a){return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width")};dojo.html.getMarginHeight=function(a){return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height")};dojo.html.getBorderWidth=function(a){return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width")};dojo.html.getBorderHeight=function(a){return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height")};dojo.html.getPaddingWidth=function(a){return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width")};dojo.html.getPaddingHeight=function(a){return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height")};dojo.html.getPadBorderWidth=function(a){return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width")};dojo.html.getPadBorderHeight=function(a){return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height")};dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width")};dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height")};dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width")};dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height")};dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(b,a){return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width")};dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(b,a){return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height")};dojo.provide("dojo.dnd.HtmlDragManager");dojo.declare("dojo.dnd.HtmlDragManager",dojo.dnd.DragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],dragSources:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(a){a.stopPropagation();a.preventDefault()},registerDragSource:function(b){if(b.domNode){var c=this.dsPrefix;var a=c+"Idx_"+(this.dsCounter++);b.dragSourceId=a;this.dragSources[a]=b;b.domNode.setAttribute(c,a);if(dojo.render.html.ie){dojo.event.browser.addListener(b.domNode,"ondragstart",this.cancelEvent)}}},unregisterDragSource:function(b){if(b.domNode){var c=this.dsPrefix;var a=b.dragSourceId;delete b.dragSourceId;delete this.dragSources[a];b.domNode.setAttribute(c,null);if(dojo.render.html.ie){dojo.event.browser.removeListener(b.domNode,"ondragstart",this.cancelEvent)}}},registerDropTarget:function(a){this.dropTargets.push(a)},unregisterDropTarget:function(b){var a=dojo.lang.find(this.dropTargets,b,true);if(a>=0){this.dropTargets.splice(a,1)}},getDragSource:function(c){var a=c.target;if(a===dojo.body()){return}var b=dojo.html.getAttribute(a,this.dsPrefix);while((!b)&&(a)){a=a.parentNode;if((!a)||(a===dojo.body())){return}b=dojo.html.getAttribute(a,this.dsPrefix)}return this.dragSources[b]},onKeyDown:function(a){},onMouseDown:function(c){if(this.disabled){return}if(dojo.render.html.ie){if(c.button!=1){return}}else{if(c.which!=1){return}}var b=c.target.nodeType==dojo.html.TEXT_NODE?c.target.parentNode:c.target;if(dojo.html.isTag(b,"button","textarea","input","select","option")){return}var a=this.getDragSource(c);if(!a){return}if(!dojo.lang.inArray(this.selectedSources,a)){this.selectedSources.push(a);a.onSelected()}this.mouseDownX=c.pageX;this.mouseDownY=c.pageY;c.preventDefault();dojo.event.connect(document,"onmousemove",this,"onMouseMove")},onMouseUp:function(b,a){if(this.selectedSources.length==0){return}this.mouseDownX=null;this.mouseDownY=null;this._dragTriggered=false;b.dragSource=this.dragSource;if((!b.shiftKey)&&(!b.ctrlKey)){if(this.currentDropTarget){this.currentDropTarget.onDropStart()}dojo.lang.forEach(this.dragObjects,function(d){var c=null;if(!d){return}if(this.currentDropTarget){b.dragObject=d;var f=this.currentDropTarget.domNode.childNodes;if(f.length>0){b.dropTarget=f[0];while(b.dropTarget==d.domNode){b.dropTarget=b.dropTarget.nextSibling}}else{b.dropTarget=this.currentDropTarget.domNode}if(this.dropAcceptable){c=this.currentDropTarget.onDrop(b)}else{this.currentDropTarget.onDragOut(b)}}b.dragStatus=this.dropAcceptable&&c?"dropSuccess":"dropFailure";dojo.lang.delayThese([function(){try{d.dragSource.onDragEnd(b)}catch(j){var g={};for(var h in b){if(h=="type"){g.type="mouseup";continue}g[h]=b[h]}d.dragSource.onDragEnd(g)}},function(){d.onDragEnd(b)}])},this);this.selectedSources=[];this.dragObjects=[];this.dragSource=null;if(this.currentDropTarget){this.currentDropTarget.onDropEnd()}}else{}dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");this.currentDropTarget=null},onScroll:function(){for(var a=0;a<this.dragObjects.length;a++){if(this.dragObjects[a].updateDragOffset){this.dragObjects[a].updateDragOffset()}}if(this.dragObjects.length){this.cacheTargetLocations()}},_dragStartDistance:function(b,g){if((!this.mouseDownX)||(!this.mouseDownX)){return}var d=Math.abs(b-this.mouseDownX);var f=d*d;var c=Math.abs(g-this.mouseDownY);var a=c*c;return parseInt(Math.sqrt(f+a),10)},cacheTargetLocations:function(){dojo.profile.start("cacheTargetLocations");this.dropTargetDimensions=[];dojo.lang.forEach(this.dropTargets,function(c){var b=c.domNode;if(!b||!c.accepts([this.dragSource])){return}var a=dojo.html.getAbsolutePosition(b,true);var d=dojo.html.getBorderBox(b);this.dropTargetDimensions.push([[a.x,a.y],[a.x+d.width,a.y+d.height],c])},this);dojo.profile.end("cacheTargetLocations")},onMouseMove:function(g){if((dojo.render.html.ie)&&(g.button!=1)){this.currentDropTarget=null;this.onMouseUp(g,true);return}if((this.selectedSources.length)&&(!this.dragObjects.length)){var b;var a;if(!this._dragTriggered){this._dragTriggered=(this._dragStartDistance(g.pageX,g.pageY)>this.threshold);if(!this._dragTriggered){return}b=g.pageX-this.mouseDownX;a=g.pageY-this.mouseDownY}this.dragSource=this.selectedSources[0];dojo.lang.forEach(this.selectedSources,function(j){if(!j){return}var c=j.onDragStart(g);if(c){c.onDragStart(g);c.dragOffset.y+=a;c.dragOffset.x+=b;c.dragSource=j;this.dragObjects.push(c)}},this);this.previousDropTarget=null;this.cacheTargetLocations()}dojo.lang.forEach(this.dragObjects,function(c){if(c){c.onDragMove(g)}});if(this.currentDropTarget){var h=dojo.html.toCoordinateObject(this.currentDropTarget.domNode,true);var f=[[h.x,h.y],[h.x+h.width,h.y+h.height]]}if((!this.nestedTargets)&&(f)&&(this.isInsideBox(g,f))){if(this.dropAcceptable){this.currentDropTarget.onDragMove(g,this.dragObjects)}}else{var d=this.findBestTarget(g);if(d.target===null){if(this.currentDropTarget){this.currentDropTarget.onDragOut(g);this.previousDropTarget=this.currentDropTarget;this.currentDropTarget=null}this.dropAcceptable=false;return}if(this.currentDropTarget!==d.target){if(this.currentDropTarget){this.previousDropTarget=this.currentDropTarget;this.currentDropTarget.onDragOut(g)}this.currentDropTarget=d.target;g.dragObjects=this.dragObjects;this.dropAcceptable=this.currentDropTarget.onDragOver(g)}else{if(this.dropAcceptable){this.currentDropTarget.onDragMove(g,this.dragObjects)}}}},findBestTarget:function(b){var c=this;var a=new Object();a.target=null;a.points=null;dojo.lang.every(this.dropTargetDimensions,function(d){if(!c.isInsideBox(b,d)){return true}a.target=d[2];a.points=d;return Boolean(c.nestedTargets)});return a},isInsideBox:function(b,a){if((b.pageX>a[0][0])&&(b.pageX<a[1][0])&&(b.pageY>a[0][1])&&(b.pageY<a[1][1])){return true}return false},onMouseOver:function(a){},onMouseOut:function(a){}});dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();(function(){var b=document;var a=dojo.dnd.dragManager;dojo.event.connect(b,"onkeydown",a,"onKeyDown");dojo.event.connect(b,"onmouseover",a,"onMouseOver");dojo.event.connect(b,"onmouseout",a,"onMouseOut");dojo.event.connect(b,"onmousedown",a,"onMouseDown");dojo.event.connect(b,"onmouseup",a,"onMouseUp");dojo.event.connect(window,"onscroll",a,"onScroll")})();dojo.kwCompoundRequire({common:["dojo.html.common","dojo.html.style"]});dojo.provide("dojo.html.*");dojo.provide("dojo.html.util");dojo.html.getElementWindow=function(a){return dojo.html.getDocumentWindow(a.ownerDocument)};dojo.html.getDocumentWindow=function(c){if(dojo.render.html.safari&&!c._parentWindow){var a=function(f){f.document._parentWindow=f;for(var d=0;d<f.frames.length;d++){a(f.frames[d])}};a(window.top)}if(dojo.render.html.ie&&window!==document.parentWindow&&!c._parentWindow){c.parentWindow.execScript("document._parentWindow = window;","Javascript");var b=c._parentWindow;c._parentWindow=null;return b}return c._parentWindow||c.parentWindow||c.defaultView};dojo.html.gravity=function(node,e){node=dojo.byId(node);var mouse=dojo.html.getCursorPosition(e);with(dojo.html){var absolute=getAbsolutePosition(node,true);var bb=getBorderBox(node);var nodecenterx=absolute.x+(bb.width/2);var nodecentery=absolute.y+(bb.height/2)}with(dojo.html.gravity){return((mouse.x<nodecenterx?WEST:EAST)|(mouse.y<nodecentery?NORTH:SOUTH))}};dojo.html.gravity.NORTH=1;dojo.html.gravity.SOUTH=1<<1;dojo.html.gravity.EAST=1<<2;dojo.html.gravity.WEST=1<<3;dojo.html.overElement=function(c,d){c=dojo.byId(c);var f=dojo.html.getCursorPosition(d);var g=dojo.html.getBorderBox(c);var j=dojo.html.getAbsolutePosition(c,true,dojo.html.boxSizing.BORDER_BOX);var h=j.y;var a=h+g.height;var b=j.x;var k=b+g.width;return(f.x>=b&&f.x<=k&&f.y>=h&&f.y<=a)};dojo.html.renderedTextContent=function(c){c=dojo.byId(c);var a="";if(c==null){return a}for(var b=0;b<c.childNodes.length;b++){switch(c.childNodes[b].nodeType){case 1:case 5:var f="unknown";try{f=dojo.html.getStyle(c.childNodes[b],"display")}catch(d){}switch(f){case"block":case"list-item":case"run-in":case"table":case"table-row-group":case"table-header-group":case"table-footer-group":case"table-row":case"table-column-group":case"table-column":case"table-cell":case"table-caption":a+="\n";a+=dojo.html.renderedTextContent(c.childNodes[b]);a+="\n";break;case"none":break;default:if(c.childNodes[b].tagName&&c.childNodes[b].tagName.toLowerCase()=="br"){a+="\n"}else{a+=dojo.html.renderedTextContent(c.childNodes[b])}break}break;case 3:case 2:case 4:var h=c.childNodes[b].nodeValue;var j="unknown";try{j=dojo.html.getStyle(c,"text-transform")}catch(d){}switch(j){case"capitalize":var g=h.split(" ");for(var b=0;b<g.length;b++){g[b]=g[b].charAt(0).toUpperCase()+g[b].substring(1)}h=g.join(" ");break;case"uppercase":h=h.toUpperCase();break;case"lowercase":h=h.toLowerCase();break;default:break}switch(j){case"nowrap":break;case"pre-wrap":break;case"pre-line":break;case"pre":break;default:h=h.replace(/\s+/," ");if(/\s$/.test(a)){h.replace(/^\s/,"")}break}a+=h;break;default:break}}return a};dojo.html.createNodesFromText=function(d,c){if(c){d=d.replace(/^\s+|\s+$/g,"")}var b=dojo.doc().createElement("div");b.style.visibility="hidden";dojo.body().appendChild(b);var g="none";if((/^<t[dh][\s\r\n>]/i).test(d.replace(/^\s+/))){d="<table><tbody><tr>"+d+"</tr></tbody></table>";g="cell"}else{if((/^<tr[\s\r\n>]/i).test(d.replace(/^\s+/))){d="<table><tbody>"+d+"</tbody></table>";g="row"}else{if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(d.replace(/^\s+/))){d="<table>"+d+"</table>";g="section"}}}b.innerHTML=d;if(b.normalize){b.normalize()}var h=null;switch(g){case"cell":h=b.getElementsByTagName("tr")[0];break;case"row":h=b.getElementsByTagName("tbody")[0];break;case"section":h=b.getElementsByTagName("table")[0];break;default:h=b;break}var f=[];for(var a=0;a<h.childNodes.length;a++){f.push(h.childNodes[a].cloneNode(true))}b.style.display="none";dojo.html.destroyNode(b);return f};dojo.html.placeOnScreen=function(v,B,A,p,o,u,E){if(B instanceof Array||typeof B=="array"){E=u;u=o;o=p;p=A;A=B[1];B=B[0]}if(u instanceof String||typeof u=="string"){u=u.split(",")}if(!isNaN(p)){p=[Number(p),Number(p)]}else{if(!(p instanceof Array||typeof p=="array")){p=[0,0]}}var b=dojo.html.getScroll().offset;var n=dojo.html.getViewport();v=dojo.byId(v);var q=v.style.display;v.style.display="";var d=dojo.html.getBorderBox(v);var m=d.width;var z=d.height;v.style.display=q;if(!(u instanceof Array||typeof u=="array")){u=["TL"]}var c,a,D=Infinity,j;for(var C=0;C<u.length;++C){var g=u[C];var f=true;var t=B-(g.charAt(1)=="L"?0:m)+p[0]*(g.charAt(1)=="L"?1:-1);var r=A-(g.charAt(0)=="T"?0:z)+p[1]*(g.charAt(0)=="T"?1:-1);if(o){t-=b.x;r-=b.y}if(t<0){t=0;f=false}if(r<0){r=0;f=false}var l=t+m;if(l>n.width){l=n.width-m;f=false}else{l=t}l=Math.max(p[0],l)+b.x;var k=r+z;if(k>n.height){k=n.height-z;f=false}else{k=r}k=Math.max(p[1],k)+b.y;if(f){c=l;a=k;D=0;j=g;break}else{var s=Math.pow(l-t-b.x,2)+Math.pow(k-r-b.y,2);if(D>s){D=s;c=l;a=k;j=g}}}if(!E){v.style.left=c+"px";v.style.top=a+"px"}return{left:c,top:a,x:c,y:a,dist:D,corner:j}};dojo.html.placeOnScreenPoint=function(b,f,d,c,a){dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");return dojo.html.placeOnScreen(b,f,d,c,a,["TL","TR","BL","BR"])};dojo.html.placeOnScreenAroundElement=function(n,t,k,j,b,s){var f,r=Infinity;t=dojo.byId(t);var l=t.style.display;t.style.display="";var a=dojo.html.getElementBox(t,j);var o=a.width;var d=a.height;var g=dojo.html.getAbsolutePosition(t,true,j);t.style.display=l;for(var c in b){var h,q,p;var m=b[c];q=g.x+(c.charAt(1)=="L"?0:o);p=g.y+(c.charAt(0)=="T"?0:d);h=dojo.html.placeOnScreen(n,q,p,k,true,m,true);if(h.dist==0){f=h;break}else{if(r>h.dist){r=h.dist;f=h}}}if(!s){n.style.left=f.left+"px";n.style.top=f.top+"px"}return f};dojo.html.scrollIntoView=function(c){if(!c){return}if(dojo.render.html.ie){if(dojo.html.getBorderBox(c.parentNode).height<=c.parentNode.scrollHeight){c.scrollIntoView(false)}}else{if(dojo.render.html.mozilla){c.scrollIntoView(false)}else{var a=c.parentNode;var b=a.scrollTop+dojo.html.getBorderBox(a).height;var d=c.offsetTop+dojo.html.getMarginBox(c).height;if(b<d){a.scrollTop+=(d-b)}else{if(a.scrollTop>c.offsetTop){a.scrollTop-=(a.scrollTop-c.offsetTop)}}}}};dojo.provide("dojo.html.selection");dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};dojo.html.clearSelection=function(){var c=dojo.global();var a=dojo.doc();try{if(c.getSelection){if(dojo.render.html.safari){c.getSelection().collapse()}else{c.getSelection().removeAllRanges()}}else{if(a.selection){if(a.selection.empty){a.selection.empty()}else{if(a.selection.clear){a.selection.clear()}}}}return true}catch(b){dojo.debug(b);return false}};dojo.html.disableSelection=function(a){a=dojo.byId(a)||dojo.body();var b=dojo.render.html;if(b.mozilla){a.style.MozUserSelect="none"}else{if(b.safari){a.style.KhtmlUserSelect="none"}else{if(b.ie){a.unselectable="on"}else{return false}}}return true};dojo.html.enableSelection=function(a){a=dojo.byId(a)||dojo.body();var b=dojo.render.html;if(b.mozilla){a.style.MozUserSelect=""}else{if(b.safari){a.style.KhtmlUserSelect=""}else{if(b.ie){a.unselectable="off"}else{return false}}}return true};dojo.html.selectElement=function(a){dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5)};dojo.html.selectInputText=function(c){var f=dojo.global();var a=dojo.doc();c=dojo.byId(c);if(a.selection&&dojo.body()["createTextRange"]){var b=c.createTextRange();b.moveStart("character",0);b.moveEnd("character",c.value.length);b.select()}else{if(f.getSelection){var d=f.getSelection();c.setSelectionRange(0,c.value.length)}}c.focus()};dojo.html.isSelectionCollapsed=function(){dojo.deprecated("dojo.html.isSelectionCollapsed","replaced by dojo.html.selection.isCollapsed",0.5);return dojo.html.selection.isCollapsed()};dojo.lang.mixin(dojo.html.selection,{getType:function(){if(dojo.doc()["selection"]){return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()]}else{var b=dojo.html.selectionType.TEXT;var a;try{a=dojo.global().getSelection()}catch(c){}if(a&&a.rangeCount==1){var d=a.getRangeAt(0);if(d.startContainer==d.endContainer&&(d.endOffset-d.startOffset)==1&&d.startContainer.nodeType!=dojo.dom.TEXT_NODE){b=dojo.html.selectionType.CONTROL}}return b}},isCollapsed:function(){var c=dojo.global();var a=dojo.doc();if(a.selection){return a.selection.createRange().text==""}else{if(c.getSelection){var b=c.getSelection();if(dojo.lang.isString(b)){return b==""}else{return b.isCollapsed||b.toString()==""}}}},getSelectedElement:function(){if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){if(dojo.doc()["selection"]){var a=dojo.doc().selection.createRange();if(a&&a.item){return dojo.doc().selection.createRange().item(0)}}else{var b=dojo.global().getSelection();return b.anchorNode.childNodes[b.anchorOffset]}}},getParentElement:function(){if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){var c=dojo.html.selection.getSelectedElement();if(c){return c.parentNode}}else{if(dojo.doc()["selection"]){return dojo.doc().selection.createRange().parentElement()}else{var a=dojo.global().getSelection();if(a){var b=a.anchorNode;while(b&&b.nodeType!=dojo.dom.ELEMENT_NODE){b=b.parentNode}return b}}}},getSelectedText:function(){if(dojo.doc()["selection"]){if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){return null}return dojo.doc().selection.createRange().text}else{var a=dojo.global().getSelection();if(a){return a.toString()}}},getSelectedHtml:function(){if(dojo.doc()["selection"]){if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){return null}return dojo.doc().selection.createRange().htmlText}else{var a=dojo.global().getSelection();if(a&&a.rangeCount){var c=a.getRangeAt(0).cloneContents();var b=document.createElement("div");b.appendChild(c);return b.innerHTML}return null}},hasAncestorElement:function(a){return(dojo.html.selection.getAncestorElement.apply(this,arguments)!=null)},getAncestorElement:function(a){var b=dojo.html.selection.getSelectedElement()||dojo.html.selection.getParentElement();while(b){if(dojo.html.selection.isTag(b,arguments).length>0){return b}b=b.parentNode}return null},isTag:function(c,a){if(c&&c.tagName){for(var b=0;b<a.length;b++){if(c.tagName.toLowerCase()==String(a[b]).toLowerCase()){return String(a[b]).toLowerCase()}}}return""},selectElement:function(c){var g=dojo.global();var a=dojo.doc();c=dojo.byId(c);if(a.selection&&dojo.body().createTextRange){try{var b=dojo.body().createControlRange();b.addElement(c);b.select()}catch(f){dojo.html.selection.selectElementChildren(c)}}else{if(g.getSelection){var d=g.getSelection();if(d.removeAllRanges){var b=a.createRange();b.selectNode(c);d.removeAllRanges();d.addRange(b)}}}},selectElementChildren:function(c){var f=dojo.global();var a=dojo.doc();c=dojo.byId(c);if(a.selection&&dojo.body().createTextRange){var b=dojo.body().createTextRange();b.moveToElementText(c);b.select()}else{if(f.getSelection){var d=f.getSelection();if(d.setBaseAndExtent){d.setBaseAndExtent(c,0,c,c.innerText.length-1)}else{if(d.selectAllChildren){d.selectAllChildren(c)}}}}},getBookmark:function(){var d;var a=dojo.doc();if(a.selection){var b=a.selection.createRange();d=b.getBookmark()}else{var c;try{c=dojo.global().getSelection()}catch(f){}if(c){var b=c.getRangeAt(0);d=b.cloneRange()}else{dojo.debug("No idea how to store the current selection for this browser!")}}return d},moveToBookmark:function(d){var a=dojo.doc();if(a.selection){var b=a.selection.createRange();b.moveToBookmark(d);b.select()}else{var c;try{c=dojo.global().getSelection()}catch(f){}if(c&&c.removeAllRanges){c.removeAllRanges();c.addRange(d)}else{dojo.debug("No idea how to restore selection for this browser!")}}},collapse:function(c){if(dojo.global()["getSelection"]){var b=dojo.global().getSelection();if(b.removeAllRanges){if(c){b.collapseToStart()}else{b.collapseToEnd()}}else{dojo.global().getSelection().collapse(c)}}else{if(dojo.doc().selection){var a=dojo.doc().selection.createRange();a.collapse(c);a.select()}}},remove:function(){if(dojo.doc().selection){var b=dojo.doc().selection;if(b.type.toUpperCase()!="NONE"){b.clear()}return b}else{var b=dojo.global().getSelection();for(var a=0;a<b.rangeCount;a++){b.getRangeAt(a).deleteContents()}return b}}});dojo.provide("dojo.html.iframe");dojo.html.iframeContentWindow=function(a){var b=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(a))||dojo.html.iframeContentDocument(a).__parent__||(a.name&&document.frames[a.name])||null;return b};dojo.html.iframeContentDocument=function(a){var b=a.contentDocument||((a.contentWindow)&&(a.contentWindow.document))||((a.name)&&(document.frames[a.name])&&(document.frames[a.name].document))||null;return b};dojo.html.BackgroundIframe=function(b){if(dojo.render.html.ie55||dojo.render.html.ie60){var a="<iframe src='javascript:false' style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;z-index: -1; filter:Alpha(Opacity=\"0\");' >";this.iframe=dojo.doc().createElement(a);this.iframe.tabIndex=-1;if(b){b.appendChild(this.iframe);this.domNode=b}else{dojo.body().appendChild(this.iframe);this.iframe.style.display="none"}}};dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){if(this.iframe&&this.domNode&&this.domNode.parentNode){var a=dojo.html.getMarginBox(this.domNode);if(a.width==0||a.height==0){dojo.lang.setTimeout(this,this.onResized,100);return}this.iframe.style.width=a.width+"px";this.iframe.style.height=a.height+"px"}},size:function(node){if(!this.iframe){return}var coords=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);with(this.iframe.style){width=coords.width+"px";height=coords.height+"px";left=coords.left+"px";top=coords.top+"px"}},setZIndex:function(a){if(!this.iframe){return}if(dojo.dom.isNode(a)){this.iframe.style.zIndex=dojo.html.getStyle(a,"z-index")-1}else{if(!isNaN(a)){this.iframe.style.zIndex=a}}},show:function(){if(this.iframe){this.iframe.style.display="block"}},hide:function(){if(this.iframe){this.iframe.style.display="none"}},remove:function(){if(this.iframe){dojo.html.removeNode(this.iframe,true);delete this.iframe;this.iframe=null}}});dojo.provide("dojo.gfx.color");dojo.gfx.color.Color=function(j,h,c,d){if(dojo.lang.isArray(j)){this.r=j[0];this.g=j[1];this.b=j[2];this.a=j[3]||1}else{if(dojo.lang.isString(j)){var f=dojo.gfx.color.extractRGB(j);this.r=f[0];this.g=f[1];this.b=f[2];this.a=h||1}else{if(j instanceof dojo.gfx.color.Color){this.r=j.r;this.b=j.b;this.g=j.g;this.a=j.a}else{this.r=j;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 j=[];for(var d=0;d<3;d++){j[d]=parseInt(f[d]+((g[d]-f[d])*h))}return j};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 f=b.match(/rgba*\((\d+), *(\d+), *(\d+)/i);var c=f.splice(1,3);return c}else{var a=dojo.gfx.color.hex2rgb(b);if(a){return a}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.lfx.Animation");dojo.lfx.Line=function(c,a){this.start=c;this.end=a;if(dojo.lang.isArray(c)){var b=[];dojo.lang.forEach(this.start,function(f,d){b[d]=this.end[d]-f},this);this.getValue=function(f){var d=[];dojo.lang.forEach(this.start,function(h,g){d[g]=(b[g]*f)+h},this);return d}}else{var b=a-c;this.getValue=function(d){return(b*d)+this.start}}};dojo.lfx.easeDefault=function(a){if(dojo.render.html.khtml){return(parseFloat("0.5")+((Math.sin((a+parseFloat("1.5"))*Math.PI))/2))}else{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:25,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,c,b){if(!b){b=c;c=this}b=dojo.lang.hitch(c,b);var d=this[a]||function(){};this[a]=function(){var f=d.apply(this,arguments);b.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(b,d,f,g,a,c){dojo.lfx.IAnimation.call(this);if(dojo.lang.isNumber(b)||(!b&&d.getValue)){c=a;a=g;g=f;f=d;d=b;b=null}else{if(b.getValue||dojo.lang.isArray(b)){c=g;a=f;g=d;f=b;d=null;b=null}}if(dojo.lang.isArray(f)){this.curve=new dojo.lfx.Line(f[0],f[1])}else{this.curve=f}if(d!=null&&d>0){this.duration=d}if(a){this.repeatCount=a}if(c){this.rate=c}if(b){dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(h){if(b[h]){this.connect(h,b[h])}},this)}if(g&&dojo.lang.isFunction(g)){this.easing=g}};dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(b,a){if(a){clearTimeout(this._timer);this._active=false;this._paused=false;this._percent=0}else{if(this._active&&!this._paused){return this}}this.fire("handler",["beforeBegin"]);this.fire("beforeBegin");if(b>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,a)}),b);return this}this._startTime=new Date().valueOf();if(this._paused){this._startTime-=(this.duration*this._percent/100)}this._endTime=this._startTime+this.duration;this._active=true;this._paused=false;var c=this._percent/100;var d=this.curve.getValue(c);if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount}this.fire("handler",["begin",d]);this.fire("onBegin",[d])}this.fire("handler",["play",d]);this.fire("onPlay",[d]);this._cycle();return this},pause:function(){clearTimeout(this._timer);if(!this._active){return this}this._paused=true;var a=this.curve.getValue(this._percent/100);this.fire("handler",["pause",a]);this.fire("onPause",[a]);return this},gotoPercent:function(b,a){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=b;if(a){this.play()}return this},stop:function(a){clearTimeout(this._timer);var b=this._percent/100;if(a){b=1}var c=this.curve.getValue(b);this.fire("handler",["stop",c]);this.fire("onStop",[c]);this._active=false;this._paused=false;return this},status:function(){if(this._active){return this._paused?"paused":"playing"}else{return"stopped"}return this},_cycle:function(){clearTimeout(this._timer);if(this._active){var c=new Date().valueOf();var a=(c-this._startTime)/(this._endTime-this._startTime);if(a>=1){a=1;this._percent=100}else{this._percent=a*100}if((this.easing)&&(dojo.lang.isFunction(this.easing))){a=this.easing(a)}var b=this.curve.getValue(a);this.fire("handler",["animate",b]);this.fire("onAnimate",[b]);if(a<1){this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate)}else{this._active=false;this.fire("handler",["end"]);this.fire("onEnd");if(this.repeatCount>0){this.repeatCount--;this.play(null,true)}else{if(this.repeatCount==-1){this.play(null,true)}else{if(this._startRepeatCount){this.repeatCount=this._startRepeatCount;this._startRepeatCount=0}}}}}return this}});dojo.lfx.Combine=function(b){dojo.lfx.IAnimation.call(this);this._anims=[];this._animsEnded=0;var a=arguments;if(a.length==1&&(dojo.lang.isArray(a[0])||dojo.lang.isArrayLike(a[0]))){a=a[0]}dojo.lang.forEach(a,function(c){this._anims.push(c);c.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"))},this)};dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(b,a){if(!this._anims.length){return this}this.fire("beforeBegin");if(b>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,a)}),b);return this}if(a||this._anims[0].percent==0){this.fire("onBegin")}this.fire("onPlay");this._animsCall("play",null,a);return this},pause:function(){this.fire("onPause");this._animsCall("pause");return this},stop:function(a){this.fire("onStop");this._animsCall("stop",a);return this},_onAnimsEnded:function(){this._animsEnded++;if(this._animsEnded>=this._anims.length){this.fire("onEnd")}return this},_animsCall:function(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 a=arguments;if(a.length==1&&(dojo.lang.isArray(a[0])||dojo.lang.isArrayLike(a[0]))){a=a[0]}var b=this;dojo.lang.forEach(a,function(g,f,d){this._anims.push(g);if(f<d.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(b,a){if(!this._anims.length){return this}if(a||!this._anims[this._currAnim]){this._currAnim=0}var c=this._anims[this._currAnim];this.fire("beforeBegin");if(b>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,a)}),b);return this}if(c){if(this._currAnim==0){this.fire("handler",["begin",this._currAnim]);this.fire("onBegin",[this._currAnim])}this.fire("onPlay",[this._currAnim]);c.play(null,a)}return this},pause:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].pause();this.fire("onPause",[this._currAnim])}return this},playPause:function(){if(this._anims.length==0){return this}if(this._currAnim==-1){this._currAnim=0}var a=this._anims[this._currAnim];if(a){if(!a._active||a._paused){this.play()}else{this.pause()}}return this},stop:function(){var a=this._anims[this._currAnim];if(a){a.stop();this.fire("onStop",[this._currAnim])}return a},_playNext:function(){if(this._currAnim==-1||this._anims.length==0){return this}this._currAnim++;if(this._anims[this._currAnim]){this._anims[this._currAnim].play(null,true)}return this}});dojo.lfx.combine=function(b){var a=arguments;if(dojo.lang.isArray(arguments[0])){a=arguments[0]}if(a.length==1){return a[0]}return new dojo.lfx.Combine(a)};dojo.lfx.chain=function(b){var a=arguments;if(dojo.lang.isArray(arguments[0])){a=arguments[0]}if(a.length==1){return a[0]}return new dojo.lfx.Chain(a)};dojo.provide("dojo.html.color");dojo.html.getBackgroundColor=function(b){b=dojo.byId(b);var a;do{a=dojo.html.getStyle(b,"background-color");if(a.toLowerCase()=="rgba(0, 0, 0, 0)"){a="transparent"}if(b==document.getElementsByTagName("body")[0]){b=null;break}b=b.parentNode}while(b&&dojo.lang.inArray(["transparent",""],a));if(a=="transparent"){a=[255,255,255,0]}else{a=dojo.gfx.color.extractRGB(a)}return a};dojo.provide("dojo.lfx.html");dojo.lfx.html._byId=function(a){if(!a){return[]}if(dojo.lang.isArrayLike(a)){if(!a.alreadyChecked){var b=[];dojo.lang.forEach(a,function(c){b.push(dojo.byId(c))});b.alreadyChecked=true;return b}else{return a}}else{var b=[];b.push(dojo.byId(a));b.alreadyChecked=true;return b}};dojo.lfx.html.propertyAnimation=function(a,m,d,l,b){a=dojo.lfx.html._byId(a);var k={propertyMap:m,nodes:a,duration:d,easing:l||dojo.lfx.easeDefault};var h=function(o){if(o.nodes.length==1){var q=o.propertyMap;if(!dojo.lang.isArray(o.propertyMap)){var r=[];for(var p in q){q[p].property=p;r.push(q[p])}q=o.propertyMap=r}dojo.lang.forEach(q,function(s){if(dj_undef("start",s)){if(s.property!="opacity"){s.start=parseInt(dojo.html.getComputedStyle(o.nodes[0],s.property))}else{s.start=dojo.html.getOpacity(o.nodes[0])}}})}};var f=function(o){var p=[];dojo.lang.forEach(o,function(q){p.push(Math.round(q))});return p};var j=function(r,p){r=dojo.byId(r);if(!r||!r.style){return}for(var o in p){try{if(o=="opacity"){dojo.html.setOpacity(r,p[o])}else{r.style[o]=p[o]}}catch(q){dojo.debug(q)}}};var g=function(o){this._properties=o;this.diffs=new Array(o.length);dojo.lang.forEach(o,function(q,p){if(dojo.lang.isFunction(q.start)){q.start=q.start(q,p)}if(dojo.lang.isFunction(q.end)){q.end=q.end(q,p)}if(dojo.lang.isArray(q.start)){this.diffs[p]=null}else{if(q.start instanceof dojo.gfx.color.Color){q.startRgb=q.start.toRgb();q.endRgb=q.end.toRgb()}else{this.diffs[p]=q.end-q.start}}},this);this.getValue=function(q){var p={};dojo.lang.forEach(this._properties,function(u,s){var t=null;if(dojo.lang.isArray(u.start)){}else{if(u.start instanceof dojo.gfx.color.Color){t=(u.units||"rgb")+"(";for(var r=0;r<u.startRgb.length;r++){t+=Math.round(((u.endRgb[r]-u.startRgb[r])*q)+u.startRgb[r])+(r<u.startRgb.length-1?",":"")}t+=")"}else{t=((this.diffs[s])*q)+u.start+(u.property!="opacity"?u.units||"px":"")}}p[dojo.html.toCamelCase(u.property)]=t},this);return p}};var c=new dojo.lfx.Animation({beforeBegin:function(){h(k);c.curve=new g(k.propertyMap)},onAnimate:function(o){dojo.lang.forEach(k.nodes,function(p){j(p,o)})}},k.duration,null,k.easing);if(b){for(var n in b){if(dojo.lang.isFunction(b[n])){c.connect(n,c,b[n])}}}return c};dojo.lfx.html._makeFadeable=function(a){var b=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(a)){dojo.lang.forEach(a,b)}else{b(a)}};dojo.lfx.html.fade=function(b,a,f,h,g){b=dojo.lfx.html._byId(b);var c={property:"opacity"};if(!dj_undef("start",a)){c.start=a.start}else{c.start=function(){return dojo.html.getOpacity(b[0])}}if(!dj_undef("end",a)){c.end=a.end}else{dojo.raise("dojo.lfx.html.fade needs an end value")}var d=dojo.lfx.propertyAnimation(b,[c],f,h);d.connect("beforeBegin",function(){dojo.lfx.html._makeFadeable(b)});if(g){d.connect("onEnd",function(){g(b,d)})}return d};dojo.lfx.html.fadeIn=function(a,b,d,c){return dojo.lfx.html.fade(a,{end:1},b,d,c)};dojo.lfx.html.fadeOut=function(a,b,d,c){return dojo.lfx.html.fade(a,{end:0},b,d,c)};dojo.lfx.html.fadeShow=function(a,c,f,d){a=dojo.lfx.html._byId(a);dojo.lang.forEach(a,function(g){dojo.html.setOpacity(g,0)});var b=dojo.lfx.html.fadeIn(a,c,f,d);b.connect("beforeBegin",function(){if(dojo.lang.isArrayLike(a)){dojo.lang.forEach(a,dojo.html.show)}else{dojo.html.show(a)}});return b};dojo.lfx.html.fadeHide=function(a,c,f,d){var b=dojo.lfx.html.fadeOut(a,c,f,function(){if(dojo.lang.isArrayLike(a)){dojo.lang.forEach(a,dojo.html.hide)}else{dojo.html.hide(a)}if(d){d(a,b)}});return b};dojo.lfx.html.wipeIn=function(nodes,duration,easing,callback){nodes=dojo.lfx.html._byId(nodes);var anims=[];dojo.lang.forEach(nodes,function(node){var oprop={};var origTop,origLeft,origPosition;with(node.style){origTop=top;origLeft=left;origPosition=position;top="-9999px";left="-9999px";position="absolute";display=""}var height=dojo.html.getBorderBox(node).height;with(node.style){top=origTop;left=origLeft;position=origPosition;display="none"}var anim=dojo.lfx.propertyAnimation(node,{height:{start:1,end:function(){return height}}},duration,easing);anim.connect("beforeBegin",function(){oprop.overflow=node.style.overflow;oprop.height=node.style.height;with(node.style){overflow="hidden";height="1px"}dojo.html.show(node)});anim.connect("onEnd",function(){with(node.style){overflow=oprop.overflow;height=oprop.height}if(callback){callback(node,anim)}});anims.push(anim)});return dojo.lfx.combine(anims)};dojo.lfx.html.wipeOut=function(nodes,duration,easing,callback){nodes=dojo.lfx.html._byId(nodes);var anims=[];dojo.lang.forEach(nodes,function(node){var oprop={};var anim=dojo.lfx.propertyAnimation(node,{height:{start:function(){return dojo.html.getContentBox(node).height},end:1}},duration,easing,{beforeBegin:function(){oprop.overflow=node.style.overflow;oprop.height=node.style.height;with(node.style){overflow="hidden"}dojo.html.show(node)},onEnd:function(){dojo.html.hide(node);with(node.style){overflow=oprop.overflow;height=oprop.height}if(callback){callback(node,anim)}}});anims.push(anim)});return dojo.lfx.combine(anims)};dojo.lfx.html.slideTo=function(b,c,f,h,g){b=dojo.lfx.html._byId(b);var a=[];var d=dojo.html.getComputedStyle;if(dojo.lang.isArray(c)){dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");c={top:c[0],left:c[1]}}dojo.lang.forEach(b,function(j){var m=null;var l=null;var n=(function(){var o=j;return function(){var q=d(o,"position");m=(q=="absolute"?j.offsetTop:parseInt(d(j,"top"))||0);l=(q=="absolute"?j.offsetLeft:parseInt(d(j,"left"))||0);if(!dojo.lang.inArray(["absolute","relative"],q)){var p=dojo.html.abs(o,true);dojo.html.setStyleAttributes(o,"position:absolute;top:"+p.y+"px;left:"+p.x+"px;");m=p.y;l=p.x}}})();n();var k=dojo.lfx.propertyAnimation(j,{top:{start:m,end:(c.top||0)},left:{start:l,end:(c.left||0)}},f,h,{beforeBegin:n});if(g){k.connect("onEnd",function(){g(b,k)})}a.push(k)});return dojo.lfx.combine(a)};dojo.lfx.html.slideBy=function(b,c,f,h,g){b=dojo.lfx.html._byId(b);var a=[];var d=dojo.html.getComputedStyle;if(dojo.lang.isArray(c)){dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");c={top:c[0],left:c[1]}}dojo.lang.forEach(b,function(j){var m=null;var l=null;var n=(function(){var o=j;return function(){var q=d(o,"position");m=(q=="absolute"?j.offsetTop:parseInt(d(j,"top"))||0);l=(q=="absolute"?j.offsetLeft:parseInt(d(j,"left"))||0);if(!dojo.lang.inArray(["absolute","relative"],q)){var p=dojo.html.abs(o,true);dojo.html.setStyleAttributes(o,"position:absolute;top:"+p.y+"px;left:"+p.x+"px;");m=p.y;l=p.x}}})();n();var k=dojo.lfx.propertyAnimation(j,{top:{start:m,end:m+(c.top||0)},left:{start:l,end:l+(c.left||0)}},f,h).connect("beforeBegin",n);if(g){k.connect("onEnd",function(){g(b,k)})}a.push(k)});return dojo.lfx.combine(a)};dojo.lfx.html.explode=function(start,endNode,duration,easing,callback){var h=dojo.html;start=dojo.byId(start);endNode=dojo.byId(endNode);var startCoords=h.toCoordinateObject(start,true);var outline=document.createElement("div");h.copyStyle(outline,endNode);if(endNode.explodeClassName){outline.className=endNode.explodeClassName}with(outline.style){position="absolute";display="none";var backgroundStyle=h.getStyle(start,"background-color");backgroundColor=backgroundStyle?backgroundStyle.toLowerCase():"transparent";backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor}dojo.body().appendChild(outline);with(endNode.style){visibility="hidden";display="block"}var endCoords=h.toCoordinateObject(endNode,true);with(endNode.style){display="none";visibility="visible"}var props={opacity:{start:0.5,end:1}};dojo.lang.forEach(["height","width","top","left"],function(type){props[type]={start:startCoords[type],end:endCoords[type]}});var anim=new dojo.lfx.propertyAnimation(outline,props,duration,easing,{beforeBegin:function(){h.setDisplay(outline,"block")},onEnd:function(){h.setDisplay(endNode,"block");outline.parentNode.removeChild(outline)}});if(callback){anim.connect("onEnd",function(){callback(endNode,anim)})}return anim};dojo.lfx.html.implode=function(startNode,end,duration,easing,callback){var h=dojo.html;startNode=dojo.byId(startNode);end=dojo.byId(end);var startCoords=dojo.html.toCoordinateObject(startNode,true);var endCoords=dojo.html.toCoordinateObject(end,true);var outline=document.createElement("div");dojo.html.copyStyle(outline,startNode);if(startNode.explodeClassName){outline.className=startNode.explodeClassName}dojo.html.setOpacity(outline,0.3);with(outline.style){position="absolute";display="none";backgroundColor=h.getStyle(startNode,"background-color").toLowerCase()}dojo.body().appendChild(outline);var props={opacity:{start:1,end:0.5}};dojo.lang.forEach(["height","width","top","left"],function(type){props[type]={start:startCoords[type],end:endCoords[type]}});var anim=new dojo.lfx.propertyAnimation(outline,props,duration,easing,{beforeBegin:function(){dojo.html.hide(startNode);dojo.html.show(outline)},onEnd:function(){outline.parentNode.removeChild(outline)}});if(callback){anim.connect("onEnd",function(){callback(startNode,anim)})}return anim};dojo.lfx.html.highlight=function(b,d,c,g,f){b=dojo.lfx.html._byId(b);var a=[];dojo.lang.forEach(b,function(n){var j=dojo.html.getBackgroundColor(n);var m=dojo.html.getStyle(n,"background-color").toLowerCase();var h=dojo.html.getStyle(n,"background-image");var l=(m=="transparent"||m=="rgba(0, 0, 0, 0)");while(j.length>3){j.pop()}var k=new dojo.gfx.color.Color(d);var p=new dojo.gfx.color.Color(j);var o=dojo.lfx.propertyAnimation(n,{"background-color":{start:k,end:p}},c,g,{beforeBegin:function(){if(h){n.style.backgroundImage="none"}n.style.backgroundColor="rgb("+k.toRgb().join(",")+")"},onEnd:function(){if(h){n.style.backgroundImage=h}if(l){n.style.backgroundColor="transparent"}if(f){f(n,o)}}});a.push(o)});return dojo.lfx.combine(a)};dojo.lfx.html.unhighlight=function(b,c,d,g,f){b=dojo.lfx.html._byId(b);var a=[];dojo.lang.forEach(b,function(l){var j=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(l));var k=new dojo.gfx.color.Color(c);var h=dojo.html.getStyle(l,"background-image");var m=dojo.lfx.propertyAnimation(l,{"background-color":{start:j,end:k}},d,g,{beforeBegin:function(){if(h){l.style.backgroundImage="none"}l.style.backgroundColor="rgb("+j.toRgb().join(",")+")"},onEnd:function(){if(f){f(l,m)}}});a.push(m)});return dojo.lfx.combine(a)};dojo.lang.mixin(dojo.lfx,dojo.lfx.html);dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});dojo.provide("dojo.lfx.*");dojo.provide("dojo.dnd.HtmlDragAndDrop");dojo.declare("dojo.dnd.HtmlDragSource",dojo.dnd.DragSource,{dragClass:"",onDragStart:function(){var a=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);if(this.dragClass){a.dragClass=this.dragClass}if(this.constrainToContainer){a.constrainTo(this.constrainingContainer||this.domNode.parentNode)}return a},setDragHandle:function(a){a=dojo.byId(a);dojo.dnd.dragManager.unregisterDragSource(this);this.domNode=a;dojo.dnd.dragManager.registerDragSource(this)},setDragTarget:function(a){this.dragObject=a},constrainTo:function(a){this.constrainToContainer=true;if(a){this.constrainingContainer=a}},onSelected:function(){for(var a=0;a<this.dragObjects.length;a++){dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[a]))}},addDragObjects:function(b){for(var a=0;a<arguments.length;a++){this.dragObjects.push(dojo.byId(arguments[a]))}}},function(b,a){b=dojo.byId(b);this.dragObjects=[];this.constrainToContainer=false;if(b){this.domNode=b;this.dragObject=b;this.type=(a)||(this.domNode.nodeName.toLowerCase());dojo.dnd.DragSource.prototype.reregister.call(this)}});dojo.declare("dojo.dnd.HtmlDragObject",dojo.dnd.DragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){var node=this.domNode.cloneNode(true);if(this.dragClass){dojo.html.addClass(node,this.dragClass)}if(this.opacity<1){dojo.html.setOpacity(node,this.opacity)}var ltn=node.tagName.toLowerCase();var isTr=(ltn=="tr");if((isTr)||(ltn=="tbody")){var doc=this.domNode.ownerDocument;var table=doc.createElement("table");if(isTr){var tbody=doc.createElement("tbody");table.appendChild(tbody);tbody.appendChild(node)}else{table.appendChild(node)}var tmpSrcTr=((isTr)?this.domNode:this.domNode.firstChild);var tmpDstTr=((isTr)?node:node.firstChild);var domTds=tdp.childNodes;var cloneTds=tmpDstTr.childNodes;for(var i=0;i<domTds.length;i++){if((cloneTds[i])&&(cloneTds[i].style)){cloneTds[i].style.width=dojo.html.getContentBox(domTds[i]).width+"px"}}node=table}if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){with(node.style){top="0px";left="0px"}var outer=document.createElement("div");outer.appendChild(node);this.bgIframe=new dojo.html.BackgroundIframe(outer);outer.appendChild(this.bgIframe.iframe);node=outer}node.style.zIndex=999;return node},onDragStart:function(e){dojo.html.clearSelection();this.scrollOffset=dojo.html.getScroll().offset;this.dragStartPosition=dojo.html.getAbsolutePosition(this.domNode,true);this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};this.dragClone=this.createDragNode();this.containingBlockPosition=this.domNode.offsetParent?dojo.html.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};if(this.constrainToContainer){this.constraints=this.getConstraints()}with(this.dragClone.style){position="absolute";top=this.dragOffset.y+e.pageY+"px";left=this.dragOffset.x+e.pageX+"px"}dojo.body().appendChild(this.dragClone);dojo.event.topic.publish("dragStart",{source:this})},getConstraints:function(){if(this.constrainingContainer.nodeName.toLowerCase()=="body"){var d=dojo.html.getViewport();var f=d.width;var c=d.height;var b=dojo.html.getScroll().offset;var a=b.x;var j=b.y}else{var g=dojo.html.getContentBox(this.constrainingContainer);f=g.width;c=g.height;a=this.containingBlockPosition.x+dojo.html.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.html.getBorderExtent(this.constrainingContainer,"left");j=this.containingBlockPosition.y+dojo.html.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.html.getBorderExtent(this.constrainingContainer,"top")}var h=dojo.html.getMarginBox(this.domNode);return{minX:a,minY:j,maxX:a+f-h.width,maxY:j+c-h.height}},updateDragOffset:function(){var a=dojo.html.getScroll().offset;if(a.y!=this.scrollOffset.y){var b=a.y-this.scrollOffset.y;this.dragOffset.y+=b;this.scrollOffset.y=a.y}if(a.x!=this.scrollOffset.x){var b=a.x-this.scrollOffset.x;this.dragOffset.x+=b;this.scrollOffset.x=a.x}},onDragMove:function(b){this.updateDragOffset();var a=this.dragOffset.x+b.pageX;var c=this.dragOffset.y+b.pageY;if(this.constrainToContainer){if(a<this.constraints.minX){a=this.constraints.minX}if(c<this.constraints.minY){c=this.constraints.minY}if(a>this.constraints.maxX){a=this.constraints.maxX}if(c>this.constraints.maxY){c=this.constraints.maxY}}this.setAbsolutePosition(a,c);dojo.event.topic.publish("dragMove",{source:this})},setAbsolutePosition:function(a,b){if(!this.disableY){this.dragClone.style.top=b+"px"}if(!this.disableX){this.dragClone.style.left=a+"px"}},onDragEnd:function(f){switch(f.dragStatus){case"dropSuccess":dojo.html.removeNode(this.dragClone);this.dragClone=null;break;case"dropFailure":var d=dojo.html.getAbsolutePosition(this.dragClone,true);var a={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};var c=dojo.lfx.slideTo(this.dragClone,a,300);var b=this;dojo.event.connect(c,"onEnd",function(g){dojo.html.removeNode(b.dragClone);b.dragClone=null});c.play();break}dojo.event.topic.publish("dragEnd",{source:this})},constrainTo:function(a){this.constrainToContainer=true;if(a){this.constrainingContainer=a}else{this.constrainingContainer=this.domNode.parentNode}}},function(b,a){this.domNode=dojo.byId(b);this.type=a;this.constrainToContainer=false;this.dragSource=null;dojo.dnd.DragObject.prototype.register.call(this)});dojo.declare("dojo.dnd.HtmlDropTarget",dojo.dnd.DropTarget,{vertical:false,onDragOver:function(c){if(!this.accepts(c.dragObjects)){return false}this.childBoxes=[];for(var b=0,f;b<this.domNode.childNodes.length;b++){f=this.domNode.childNodes[b];if(f.nodeType!=dojo.html.ELEMENT_NODE){continue}var d=dojo.html.getAbsolutePosition(f,true);var a=dojo.html.getBorderBox(f);this.childBoxes.push({top:d.y,bottom:d.y+a.height,left:d.x,right:d.x+a.width,height:a.height,width:a.width,node:f})}return true},_getNodeUnderMouse:function(e){for(var i=0,child;i<this.childBoxes.length;i++){with(this.childBoxes[i]){if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){return i}}}return -1},createDropIndicator:function(){this.dropIndicator=document.createElement("div");with(this.dropIndicator.style){position="absolute";zIndex=999;if(this.vertical){borderLeftWidth="1px";borderLeftColor="black";borderLeftStyle="solid";height=dojo.html.getBorderBox(this.domNode).height+"px";top=dojo.html.getAbsolutePosition(this.domNode,true).y+"px"}else{borderTopWidth="1px";borderTopColor="black";borderTopStyle="solid";width=dojo.html.getBorderBox(this.domNode).width+"px";left=dojo.html.getAbsolutePosition(this.domNode,true).x+"px"}}},onDragMove:function(g,c){var b=this._getNodeUnderMouse(g);if(!this.dropIndicator){this.createDropIndicator()}var j=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;var a=false;if(b<0){if(this.childBoxes.length){var f=(dojo.html.gravity(this.childBoxes[0].node,g)&j);if(f){a=true}}else{var f=true}}else{var h=this.childBoxes[b];var f=(dojo.html.gravity(h.node,g)&j);if(h.node===c[0].dragSource.domNode){a=true}else{var d=f?(b>0?this.childBoxes[b-1]:h):(b<this.childBoxes.length-1?this.childBoxes[b+1]:h);if(d.node===c[0].dragSource.domNode){a=true}}}if(a){this.dropIndicator.style.display="none";return}else{this.dropIndicator.style.display=""}this.placeIndicator(g,c,b,f);if(!dojo.html.hasParent(this.dropIndicator)){dojo.body().appendChild(this.dropIndicator)}},placeIndicator:function(f,c,b,d){var a=this.vertical?"left":"top";var g;if(b<0){if(this.childBoxes.length){g=d?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1]}else{this.dropIndicator.style[a]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px"}}else{g=this.childBoxes[b]}if(g){this.dropIndicator.style[a]=(d?g[a]:g[this.vertical?"right":"bottom"])+"px";if(this.vertical){this.dropIndicator.style.height=g.height+"px";this.dropIndicator.style.top=g.top+"px"}else{this.dropIndicator.style.width=g.width+"px";this.dropIndicator.style.left=g.left+"px"}}},onDragOut:function(a){if(this.dropIndicator){dojo.html.removeNode(this.dropIndicator);delete this.dropIndicator}},onDrop:function(b){this.onDragOut(b);var a=this._getNodeUnderMouse(b);var d=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;if(a<0){if(this.childBoxes.length){if(dojo.html.gravity(this.childBoxes[0].node,b)&d){return this.insert(b,this.childBoxes[0].node,"before")}else{return this.insert(b,this.childBoxes[this.childBoxes.length-1].node,"after")}}return this.insert(b,this.domNode,"append")}var c=this.childBoxes[a];if(dojo.html.gravity(c.node,b)&d){return this.insert(b,c.node,"before")}else{return this.insert(b,c.node,"after")}},insert:function(d,b,a){var c=d.dragObject.domNode;if(a=="before"){return dojo.html.insertBefore(c,b)}else{if(a=="after"){return dojo.html.insertAfter(c,b)}else{if(a=="append"){b.appendChild(c);return true}}}return false}},function(b,a){if(arguments.length==0){return}this.domNode=dojo.byId(b);dojo.dnd.DropTarget.call(this);if(a&&dojo.lang.isString(a)){a=[a]}this.acceptedTypes=a||[];dojo.dnd.dragManager.registerDropTarget(this)});dojo.kwCompoundRequire({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"],dashboard:["dojo.dnd.HtmlDragAndDrop"]});dojo.provide("dojo.dnd.*");if(!this["dojo"]){alert('"dojo/__package__.js" is now located at "dojo/dojo.js". Please update your includes accordingly')}dojo.provide("dojo.string.common");dojo.string.trim=function(c,a){if(!c.replace){return c}if(!c.length){return c}var b=(a>0)?(/^\s+/):(a<0)?(/\s+$/):(/^\s+|\s+$/g);return c.replace(b,"")};dojo.string.trimStart=function(a){return dojo.string.trim(a,1)};dojo.string.trimEnd=function(a){return dojo.string.trim(a,-1)};dojo.string.repeat=function(f,c,d){var a="";for(var b=0;b<c;b++){a+=f;if(d&&b<c-1){a+=d}}return a};dojo.string.pad=function(f,a,g,d){var b=String(f);if(!g){g="0"}if(!d){d=1}while(b.length<a){if(d>0){b=g+b}else{b+=g}}return b};dojo.string.padLeft=function(b,a,d){return dojo.string.pad(b,a,d,1)};dojo.string.padRight=function(b,a,d){return dojo.string.pad(b,a,d,-1)};dojo.provide("dojo.string");dojo.provide("dojo.io.common");dojo.io.transports=[];dojo.io.hdlrFuncNames=["load","error","timeout"];dojo.io.Request=function(b,a,d,c){if((arguments.length==1)&&(arguments[0].constructor==Object)){this.fromKwArgs(arguments[0])}else{this.url=b;if(a){this.mimetype=a}if(d){this.transport=d}if(arguments.length>=4){this.changeUrl=c}}};dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(b,c,d,a){},error:function(c,a,d,b){},timeout:function(b,c,d,a){},handle:function(b,c,d,a){},timeoutSeconds:0,abort:function(){},fromKwArgs:function(b){if(b.url){b.url=b.url.toString()}if(b.formNode){b.formNode=dojo.byId(b.formNode)}if(!b.method&&b.formNode&&b.formNode.method){b.method=b.formNode.method}if(!b.handle&&b.handler){b.handle=b.handler}if(!b.load&&b.loaded){b.load=b.loaded}if(!b.changeUrl&&b.changeURL){b.changeUrl=b.changeURL}b.encoding=dojo.lang.firstValued(b.encoding,djConfig.bindEncoding,"");b.sendTransport=dojo.lang.firstValued(b.sendTransport,djConfig.ioSendTransport,false);var d=dojo.lang.isFunction;for(var a=0;a<dojo.io.hdlrFuncNames.length;a++){var c=dojo.io.hdlrFuncNames[a];if(b[c]&&d(b[c])){continue}if(b.handle&&d(b.handle)){b[c]=b.handle}}dojo.lang.mixin(this,b)}});dojo.io.Error=function(c,b,a){this.message=c;this.type=b||"unknown";this.number=a||0};dojo.io.transports.addTransport=function(a){this.push(a);this[a]=dojo.io[a]};dojo.io.bind=function(d){if(!(d instanceof dojo.io.Request)){try{d=new dojo.io.Request(d)}catch(f){dojo.debug(f)}}var c="";if(d.transport){c=d.transport;if(!this[c]){dojo.io.sendBindError(d,"No dojo.io.bind() transport with name '"+d.transport+"'.");return d}if(!this[c].canHandle(d)){dojo.io.sendBindError(d,"dojo.io.bind() transport with name '"+d.transport+"' cannot handle this type of request.");return d}}else{for(var a=0;a<dojo.io.transports.length;a++){var b=dojo.io.transports[a];if((this[b])&&(this[b].canHandle(d))){c=b;break}}if(c==""){dojo.io.sendBindError(d,"None of the loaded transports for dojo.io.bind() can handle the request.");return d}}this[c].bind(d);d.bindSuccess=true;return d};dojo.io.sendBindError=function(c,b){if((typeof c.error=="function"||typeof c.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){var a=new dojo.io.Error(b);setTimeout(function(){c[(typeof c.error=="function")?"error":"handle"]("error",a,null,c)},50)}else{dojo.raise(b)}};dojo.io.queueBind=function(a){if(!(a instanceof dojo.io.Request)){try{a=new dojo.io.Request(a)}catch(b){dojo.debug(b)}}var c=a.load;a.load=function(){dojo.io._queueBindInFlight=false;var f=c.apply(this,arguments);dojo.io._dispatchNextQueueBind();return f};var d=a.error;a.error=function(){dojo.io._queueBindInFlight=false;var f=d.apply(this,arguments);dojo.io._dispatchNextQueueBind();return f};dojo.io._bindQueue.push(a);dojo.io._dispatchNextQueueBind();return a};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,c,k){var d=/utf/i.test(c||"")?encodeURIComponent:dojo.string.encodeAscii;var h=[];var f=new Object();for(var b in a){var g=function(l){var m=d(b)+"="+d(l);h[(k==b)?"push":"unshift"](m)};if(!f[b]){var j=a[b];if(dojo.lang.isArray(j)){dojo.lang.forEach(j,g)}else{g(j)}}}return h.join("&")};dojo.io.setIFrameSrc=function(c,g,b){try{var d=dojo.render.html;if(!b){if(d.safari){c.location=g}else{frames[c.name].location=g}}else{var a;if(d.ie){a=c.contentWindow.document}else{if(d.safari){a=c.document}else{a=c.contentWindow}}if(!a){c.location=g;return}else{a.location.replace(g)}}}catch(f){dojo.debug(f);dojo.debug("setIFrameSrc: "+f)}};dojo.provide("dojo.string.extras");dojo.string.substituteParams=function(a,c){var b=(typeof c=="object")?c:dojo.lang.toArray(arguments,1);return a.replace(/\%\{(\w+)\}/g,function(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 b=c.split(" ");for(var a=0;a<b.length;a++){b[a]=b[a].charAt(0).toUpperCase()+b[a].substring(1)}return b.join(" ")};dojo.string.isBlank=function(a){if(!dojo.lang.isString(a)){return true}return(dojo.string.trim(a).length==0)};dojo.string.encodeAscii=function(h){if(!dojo.lang.isString(h)){return h}var d="";var g=escape(h);var c,f=/%u([0-9A-F]{4})/i;while((c=g.match(f))){var b=Number("0x"+c[1]);var a=escape("&#"+b+";");d+=g.substring(0,c.index)+a;g=g.substring(c.index+c[0].length)}d+=g.replace(/\+/g,"%2B");return d};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(a,b){a=a.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!b){a=a.replace(/'/gm,"&#39;")}return a};dojo.string.escapeSql=function(a){return a.replace(/'/gm,"''")};dojo.string.escapeRegExp=function(a){return a.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1")};dojo.string.escapeJavaScript=function(a){return a.replace(/(["'\f\b\n\t\r])/gm,"\\$1")};dojo.string.escapeString=function(a){return('"'+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};dojo.string.summary=function(b,a){if(!a||b.length<=a){return b}return b.substring(0,a).replace(/\.+$/,"")+"..."};dojo.string.endsWith=function(c,a,b){if(b){c=c.toLowerCase();a=a.toLowerCase()}if((c.length-a.length)<0){return false}return c.lastIndexOf(a)==c.length-a.length};dojo.string.endsWithAny=function(b){for(var a=1;a<arguments.length;a++){if(dojo.string.endsWith(b,arguments[a])){return true}}return false};dojo.string.startsWith=function(b,c,a){if(a){b=b.toLowerCase();c=c.toLowerCase()}return b.indexOf(c)==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,d){var c=[];for(var a=0,b=0;a<f.length;a++){if(f.charAt(a)=="\\"){a++;continue}if(f.charAt(a)==d){c.push(f.substring(b,a));b=a+1}}c.push(f.substr(b));return c};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='"+(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 f=null;var a=null;if(!this.historyIframe){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){f="#"+((b.changeUrl!==true)?b.changeUrl:(new Date()).getTime());if(this.historyStack.length==0&&this.initialState.urlHash==f){this.initialState=this._createState(a,b,f);return}else{if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==f){this.historyStack[this.historyStack.length-1]=this._createState(a,b,f);return}}this.changingUrl=true;setTimeout("window.location.href = '"+f+"'; dojo.undo.browser.changingUrl = false;",1);this.bookmarkAnchor.href=f;if(dojo.render.html.ie){a=this._loadIframeHistory();var h=b.back||b.backButton||b.handle;var g=function(j){if(window.location.hash!=""){setTimeout("window.location.href = '"+f+"';",1)}h.apply(this,[j])};if(b.back){b.back=g}else{if(b.backButton){b.backButton=g}else{if(b.handle){b.handle=g}}}var d=b.forward||b.forwardButton||b.handle;var c=function(j){if(window.location.hash!=""){window.location.href=f}if(d){d.apply(this,[j])}};if(b.forward){b.forward=c}else{if(b.forwardButton){b.forwardButton=c}else{if(b.handle){b.handle=c}}}}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,f))},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 b=this.historyStack.pop();if(!b){return}var a=this.historyStack[this.historyStack.length-1];if(!a&&this.historyStack.length==0){a=this.initialState}if(a){if(a.kwArgs.back){a.kwArgs.back()}else{if(a.kwArgs.backButton){a.kwArgs.backButton()}else{if(a.kwArgs.handle){a.kwArgs.handle("back")}}}}this.forwardStack.push(b)},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(b){var a=b.split("?");if(a.length<2){return null}else{return a[1]}},_loadIframeHistory:function(){var a=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(b,c){b=dojo.byId(b);var a=c;if(dojo.lang.isString(c)){a={url:c}}a.mimetype="text/html";a.load=function(f,h,g){while(b.firstChild){dojo.dom.destroyNode(b.firstChild)}b.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(a,c,n){if((!a)||(!a.tagName)||(!a.tagName.toLowerCase()=="form")){dojo.raise("Attempted to encode a non-form element.")}if(!n){n=dojo.io.formFilter}var f=/utf/i.test(c||"")?encodeURIComponent:dojo.string.encodeAscii;var o=[];for(var g=0;g<a.elements.length;g++){var k=a.elements[g];if(!k||k.tagName.toLowerCase()=="fieldset"||!n(k)){continue}var b=f(k.name);var l=k.type.toLowerCase();if(l=="select-multiple"){for(var d=0;d<k.options.length;d++){if(k.options[d].selected){o.push(b+"="+f(k.options[d].value))}}}else{if(dojo.lang.inArray(["radio","checkbox"],l)){if(k.checked){o.push(b+"="+f(k.value))}}else{o.push(b+"="+f(k.value))}}}var h=a.getElementsByTagName("input");for(var g=0;g<h.length;g++){var m=h[g];if(m.type.toLowerCase()=="image"&&m.form==a&&n(m)){var b=f(m.name);o.push(b+"="+f(m.value));o.push(b+".x=0");o.push(b+".y=0")}}return o.join("&")+"&"};dojo.io.FormBind=function(a){this.bindArgs={};if(a&&a.formNode){this.init(a)}else{if(a){this.init({formNode:a})}}};dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(c){var g=dojo.byId(c.formNode);if(!g||!g.tagName||g.tagName.toLowerCase()!="form"){throw new Error("FormBind: Couldn't apply, invalid form")}else{if(this.form==g){return}else{if(this.form){throw new Error("FormBind: Already applied to a form")}}}dojo.lang.mixin(this.bindArgs,c);this.form=g;this.connect(g,"onsubmit","submit");for(var d=0;d<g.elements.length;d++){var f=g.elements[d];if(f&&f.type&&dojo.lang.inArray(["submit","button"],f.type.toLowerCase())){this.connect(f,"onclick","click")}}var a=g.getElementsByTagName("input");for(var d=0;d<a.length;d++){var b=a[d];if(b.type.toLowerCase()=="image"&&b.form==g){this.connect(b,"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(c){var b=(c.type||"").toLowerCase();var a=false;if(c.disabled||!c.name){a=false}else{if(dojo.lang.inArray(["submit","button","image"],b)){if(!this.clickedButton){this.clickedButton=c}a=c==this.clickedButton}else{a=!dojo.lang.inArray(["file","submit","reset","button"],b)}}return a},connect:function(a,b,c){if(dojo.evalObjPath("dojo.event.connect")){dojo.event.connect(a,b,this,c)}else{var d=dojo.lang.hitch(this,c);a[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 j=this;var g={};this.useCache=false;this.preventCache=false;function d(k,l,m){return k+"|"+l+"|"+m.toLowerCase()}function b(l,m,n,k){g[d(l,m,n)]=k}function c(k,l,m){return g[d(k,l,m)]}this.clearCache=function(){g={}};function a(p,u,k,s,l){if(((u.status>=200)&&(u.status<300))||(u.status==304)||(location.protocol=="file:"&&(u.status==0||u.status==undefined))||(location.protocol=="chrome:"&&(u.status==0||u.status==undefined))){var r;if(p.method.toLowerCase()=="head"){var m=u.getAllResponseHeaders();r={};r.toString=function(){return m};var v=m.split(/[\r\n]+/g);for(var o=0;o<v.length;o++){var n=v[o].match(/^([^:]+)\s*:\s*(.+)$/i);if(n){r[n[1]]=n[2]}}}else{if(p.mimetype=="text/javascript"){try{r=dj_eval(u.responseText)}catch(q){dojo.debug(q);dojo.debug(u.responseText);r=null}}else{if(p.mimetype=="text/json"||p.mimetype=="application/json"){try{r=dj_eval("("+u.responseText+")")}catch(q){dojo.debug(q);dojo.debug(u.responseText);r=false}}else{if((p.mimetype=="application/xml")||(p.mimetype=="text/xml")){r=u.responseXML;if(!r||typeof r=="string"||!u.getResponseHeader("Content-Type")){r=dojo.dom.createDocumentFromText(u.responseText)}}else{r=u.responseText}}}}if(l){b(k,s,p.method,u)}p[(typeof p.load=="function")?"load":"handle"]("load",r,u,p)}else{var t=new dojo.io.Error("XMLHttpTransport Error: "+u.status+" "+u.statusText);p[(typeof p.error=="function")?"error":"handle"]("error",t,u,p)}}function h(k,l){if(l.headers){for(var m in l.headers){if(m.toLowerCase()=="content-type"&&!l.contentType){l.contentType=l.headers[m]}else{k.setRequestHeader(m,l.headers[m])}}}}this.inFlight=[];this.inFlightTimer=null;this.startWatchingInFlight=function(){if(!this.inFlightTimer){this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10)}};this.watchInFlight=function(){var l=null;if(!dojo.hostenv._blockAsync&&!j._blockAsync){for(var k=this.inFlight.length-1;k>=0;k--){try{var n=this.inFlight[k];if(!n||n.http._aborted||!n.http.readyState){this.inFlight.splice(k,1);continue}if(4==n.http.readyState){this.inFlight.splice(k,1);a(n.req,n.http,n.url,n.query,n.useCache)}else{if(n.startTime){if(!l){l=(new Date()).getTime()}if(n.startTime+(n.req.timeoutSeconds*1000)<l){if(typeof n.http.abort=="function"){n.http.abort()}this.inFlight.splice(k,1);n.req[(typeof n.req.timeout=="function")?"timeout":"handle"]("timeout",null,n.http,n.req)}}}}catch(p){try{var m=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+p);n.req[(typeof n.req.error=="function")?"error":"handle"]("error",m,n.http,n.req)}catch(o){dojo.debug("XMLHttpTransport error callback failed: "+o)}}}}clearTimeout(this.inFlightTimer);if(this.inFlight.length==0){this.inFlightTimer=null;return}this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10)};var f=dojo.hostenv.getXmlhttpObject()?true:false;this.canHandle=function(k){return f&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(k.mimetype.toLowerCase()||""))&&!(k.formNode&&dojo.io.formHasFile(k.formNode))};this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";this.bind=function(G){if(!G.url){if(!G.formNode&&(G.backButton||G.back||G.changeUrl||G.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(G);return true}}var l=G.url;var m="";if(G.formNode){var s=G.formNode.getAttribute("action");if((s)&&(!G.url)){l=s}var k=G.formNode.getAttribute("method");if((k)&&(!G.method)){G.method=k}m+=dojo.io.encodeForm(G.formNode,G.encoding,G.formFilter)}if(l.indexOf("#")>-1){dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",l);l=l.split("#")[0]}if(G.file){G.method="post"}if(!G.method){G.method="get"}if(G.method.toLowerCase()=="get"){G.multipart=false}else{if(G.file){G.multipart=true}else{if(!G.multipart){G.multipart=false}}}if(G.backButton||G.back||G.changeUrl){dojo.undo.browser.addToHistory(G)}var C=G.content||{};if(G.sendTransport){C["dojo.transport"]="xmlhttp"}do{if(G.postContent){m=G.postContent;break}if(C){m+=dojo.io.argsFromMap(C,G.encoding)}if(G.method.toLowerCase()=="get"||!G.multipart){break}var u=[];if(m.length){var x=m.split("&");for(var E=0;E<x.length;++E){if(x[E].length){var y=x[E].split("=");u.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+y[0]+'"',"",y[1])}}}if(G.file){if(dojo.lang.isArray(G.file)){for(var E=0;E<G.file.length;++E){var z=G.file[E];u.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=G.file;u.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(u.length){u.push("--"+this.multipartBoundary+"--","");m=u.join("\r\n")}}while(false);var n=G.sync?false:true;var v=G.preventCache||(this.preventCache==true&&G.preventCache!=false);var A=G.useCache==true||(this.useCache==true&&G.useCache!=false);if(!v&&A){var r=c(l,m,G.method);if(r){a(G,r,l,m,false);return}}var D=dojo.hostenv.getXmlhttpObject(G);var H=false;if(n){var w=this.inFlight.push({req:G,http:D,url:l,query:m,useCache:A,startTime:G.timeoutSeconds?(new Date()).getTime():0});this.startWatchingInFlight()}else{j._blockAsync=true}if(G.method.toLowerCase()=="post"){if(!G.user){D.open("POST",l,n)}else{D.open("POST",l,n,G.user,G.password)}h(D,G);D.setRequestHeader("Content-Type",G.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(G.contentType||"application/x-www-form-urlencoded"));try{D.send(m)}catch(F){if(typeof D.abort=="function"){D.abort()}a(G,{status:404},l,m,A)}}else{var B=l;if(m!=""){B+=(B.indexOf("?")>-1?"&":"?")+m}if(v){B+=(dojo.string.endsWithAny(B,"?","&")?"":(B.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf()}if(!G.user){D.open(G.method.toUpperCase(),B,n)}else{D.open(G.method.toUpperCase(),B,n,G.user,G.password)}h(D,G);try{D.send(null)}catch(F){if(typeof D.abort=="function"){D.abort()}a(G,{status:404},l,m,A)}}if(!n){a(G,D,l,m,A);j._blockAsync=false}G.abort=function(){try{D._aborted=true}catch(o){}return D.abort()};return};dojo.io.transports.addTransport("XMLHTTPTransport")}}dojo.provide("dojo.io.cookie");dojo.io.cookie.setCookie=function(b,f,k,h,c,g){var a=-1;if((typeof k=="number")&&(k>=0)){var j=new Date();j.setTime(j.getTime()+(k*24*60*60*1000));a=j.toGMTString()}f=escape(f);document.cookie=b+"="+f+";"+(a!=-1?" expires="+a+";":"")+(h?"path="+h:"")+(c?"; domain="+c:"")+(g?"; secure":"")};dojo.io.cookie.set=dojo.io.cookie.setCookie;dojo.io.cookie.getCookie=function(c){var a=document.cookie.lastIndexOf(c+"=");if(a==-1){return null}var d=document.cookie.substring(a+c.length+1);var b=d.indexOf(";");if(b==-1){b=d.length}d=d.substring(0,b);d=unescape(d);return d};dojo.io.cookie.get=dojo.io.cookie.getCookie;dojo.io.cookie.deleteCookie=function(a){dojo.io.cookie.setCookie(a,"-",0)};dojo.io.cookie.setObjectCookie=function(c,h,l,m,g,a,j){if(arguments.length==5){j=g;g=null;a=null}var f=[],d,k="";if(!j){d=dojo.io.cookie.getObjectCookie(c)}if(l>=0){if(!d){d={}}for(var b in h){if(h[b]==null){delete d[b]}else{if((typeof h[b]=="string")||(typeof h[b]=="number")){d[b]=h[b]}}}b=null;for(var b in d){f.push(escape(b)+"="+escape(d[b]))}k=f.join("&")}dojo.io.cookie.setCookie(c,k,l,m,g,a)};dojo.io.cookie.getObjectCookie=function(b){var a=null,d=dojo.io.cookie.getCookie(b);if(d){a={};var g=d.split("&");for(var c=0;c<g.length;c++){var h=g[c].split("=");var f=h[1];if(isNaN(f)){f=unescape(h[1])}a[unescape(h[0])]=f}}return a};dojo.io.cookie.isSupported=function(){if(typeof navigator.cookieEnabled!="boolean"){dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);var a=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");navigator.cookieEnabled=(a=="CookiesAllowed");if(navigator.cookieEnabled){this.deleteCookie("__TestingYourBrowserForCookieSupport__")}}return navigator.cookieEnabled};if(!dojo.io.cookies){dojo.io.cookies=dojo.io.cookie}dojo.kwCompoundRequire({common:["dojo.io.common"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});dojo.provide("dojo.io.*");dojo.provide("dojo.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(b,c){b=dojo.byId(b);var a=c;if(dojo.lang.isString(c)){a={url:c}}a.mimetype="text/html";a.load=function(f,h,g){while(b.firstChild){dojo.dom.destroyNode(b.firstChild)}b.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(a,c,n){if((!a)||(!a.tagName)||(!a.tagName.toLowerCase()=="form")){dojo.raise("Attempted to encode a non-form element.")}if(!n){n=dojo.io.formFilter}var f=/utf/i.test(c||"")?encodeURIComponent:dojo.string.encodeAscii;var o=[];for(var g=0;g<a.elements.length;g++){var k=a.elements[g];if(!k||k.tagName.toLowerCase()=="fieldset"||!n(k)){continue}var b=f(k.name);var l=k.type.toLowerCase();if(l=="select-multiple"){for(var d=0;d<k.options.length;d++){if(k.options[d].selected){o.push(b+"="+f(k.options[d].value))}}}else{if(dojo.lang.inArray(["radio","checkbox"],l)){if(k.checked){o.push(b+"="+f(k.value))}}else{o.push(b+"="+f(k.value))}}}var h=a.getElementsByTagName("input");for(var g=0;g<h.length;g++){var m=h[g];if(m.type.toLowerCase()=="image"&&m.form==a&&n(m)){var b=f(m.name);o.push(b+"="+f(m.value));o.push(b+".x=0");o.push(b+".y=0")}}return o.join("&")+"&"};dojo.io.FormBind=function(a){this.bindArgs={};if(a&&a.formNode){this.init(a)}else{if(a){this.init({formNode:a})}}};dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(c){var g=dojo.byId(c.formNode);if(!g||!g.tagName||g.tagName.toLowerCase()!="form"){throw new Error("FormBind: Couldn't apply, invalid form")}else{if(this.form==g){return}else{if(this.form){throw new Error("FormBind: Already applied to a form")}}}dojo.lang.mixin(this.bindArgs,c);this.form=g;this.connect(g,"onsubmit","submit");for(var d=0;d<g.elements.length;d++){var f=g.elements[d];if(f&&f.type&&dojo.lang.inArray(["submit","button"],f.type.toLowerCase())){this.connect(f,"onclick","click")}}var a=g.getElementsByTagName("input");for(var d=0;d<a.length;d++){var b=a[d];if(b.type.toLowerCase()=="image"&&b.form==g){this.connect(b,"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(c){var b=(c.type||"").toLowerCase();var a=false;if(c.disabled||!c.name){a=false}else{if(dojo.lang.inArray(["submit","button","image"],b)){if(!this.clickedButton){this.clickedButton=c}a=c==this.clickedButton}else{a=!dojo.lang.inArray(["file","submit","reset","button"],b)}}return a},connect:function(a,b,c){if(dojo.evalObjPath("dojo.event.connect")){dojo.event.connect(a,b,this,c)}else{var d=dojo.lang.hitch(this,c);a[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 j=this;var g={};this.useCache=false;this.preventCache=false;function d(k,l,m){return k+"|"+l+"|"+m.toLowerCase()}function b(l,m,n,k){g[d(l,m,n)]=k}function c(k,l,m){return g[d(k,l,m)]}this.clearCache=function(){g={}};function a(p,u,k,s,l){if(((u.status>=200)&&(u.status<300))||(u.status==304)||(location.protocol=="file:"&&(u.status==0||u.status==undefined))||(location.protocol=="chrome:"&&(u.status==0||u.status==undefined))){var r;if(p.method.toLowerCase()=="head"){var m=u.getAllResponseHeaders();r={};r.toString=function(){return m};var v=m.split(/[\r\n]+/g);for(var o=0;o<v.length;o++){var n=v[o].match(/^([^:]+)\s*:\s*(.+)$/i);if(n){r[n[1]]=n[2]}}}else{if(p.mimetype=="text/javascript"){try{r=dj_eval(u.responseText)}catch(q){dojo.debug(q);dojo.debug(u.responseText);r=null}}else{if(p.mimetype=="text/json"||p.mimetype=="application/json"){try{r=dj_eval("("+u.responseText+")")}catch(q){dojo.debug(q);dojo.debug(u.responseText);r=false}}else{if((p.mimetype=="application/xml")||(p.mimetype=="text/xml")){r=u.responseXML;if(!r||typeof r=="string"||!u.getResponseHeader("Content-Type")){r=dojo.dom.createDocumentFromText(u.responseText)}}else{r=u.responseText}}}}if(l){b(k,s,p.method,u)}p[(typeof p.load=="function")?"load":"handle"]("load",r,u,p)}else{var t=new dojo.io.Error("XMLHttpTransport Error: "+u.status+" "+u.statusText);p[(typeof p.error=="function")?"error":"handle"]("error",t,u,p)}}function h(k,l){if(l.headers){for(var m in l.headers){if(m.toLowerCase()=="content-type"&&!l.contentType){l.contentType=l.headers[m]}else{k.setRequestHeader(m,l.headers[m])}}}}this.inFlight=[];this.inFlightTimer=null;this.startWatchingInFlight=function(){if(!this.inFlightTimer){this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10)}};this.watchInFlight=function(){var l=null;if(!dojo.hostenv._blockAsync&&!j._blockAsync){for(var k=this.inFlight.length-1;k>=0;k--){try{var n=this.inFlight[k];if(!n||n.http._aborted||!n.http.readyState){this.inFlight.splice(k,1);continue}if(4==n.http.readyState){this.inFlight.splice(k,1);a(n.req,n.http,n.url,n.query,n.useCache)}else{if(n.startTime){if(!l){l=(new Date()).getTime()}if(n.startTime+(n.req.timeoutSeconds*1000)<l){if(typeof n.http.abort=="function"){n.http.abort()}this.inFlight.splice(k,1);n.req[(typeof n.req.timeout=="function")?"timeout":"handle"]("timeout",null,n.http,n.req)}}}}catch(p){try{var m=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+p);n.req[(typeof n.req.error=="function")?"error":"handle"]("error",m,n.http,n.req)}catch(o){dojo.debug("XMLHttpTransport error callback failed: "+o)}}}}clearTimeout(this.inFlightTimer);if(this.inFlight.length==0){this.inFlightTimer=null;return}this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10)};var f=dojo.hostenv.getXmlhttpObject()?true:false;this.canHandle=function(k){return f&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(k.mimetype.toLowerCase()||""))&&!(k.formNode&&dojo.io.formHasFile(k.formNode))};this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";this.bind=function(G){if(!G.url){if(!G.formNode&&(G.backButton||G.back||G.changeUrl||G.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(G);return true}}var l=G.url;var m="";if(G.formNode){var s=G.formNode.getAttribute("action");if((s)&&(!G.url)){l=s}var k=G.formNode.getAttribute("method");if((k)&&(!G.method)){G.method=k}m+=dojo.io.encodeForm(G.formNode,G.encoding,G.formFilter)}if(l.indexOf("#")>-1){dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",l);l=l.split("#")[0]}if(G.file){G.method="post"}if(!G.method){G.method="get"}if(G.method.toLowerCase()=="get"){G.multipart=false}else{if(G.file){G.multipart=true}else{if(!G.multipart){G.multipart=false}}}if(G.backButton||G.back||G.changeUrl){dojo.undo.browser.addToHistory(G)}var C=G.content||{};if(G.sendTransport){C["dojo.transport"]="xmlhttp"}do{if(G.postContent){m=G.postContent;break}if(C){m+=dojo.io.argsFromMap(C,G.encoding)}if(G.method.toLowerCase()=="get"||!G.multipart){break}var u=[];if(m.length){var x=m.split("&");for(var E=0;E<x.length;++E){if(x[E].length){var y=x[E].split("=");u.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+y[0]+'"',"",y[1])}}}if(G.file){if(dojo.lang.isArray(G.file)){for(var E=0;E<G.file.length;++E){var z=G.file[E];u.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=G.file;u.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(u.length){u.push("--"+this.multipartBoundary+"--","");m=u.join("\r\n")}}while(false);var n=G.sync?false:true;var v=G.preventCache||(this.preventCache==true&&G.preventCache!=false);var A=G.useCache==true||(this.useCache==true&&G.useCache!=false);if(!v&&A){var r=c(l,m,G.method);if(r){a(G,r,l,m,false);return}}var D=dojo.hostenv.getXmlhttpObject(G);var H=false;if(n){var w=this.inFlight.push({req:G,http:D,url:l,query:m,useCache:A,startTime:G.timeoutSeconds?(new Date()).getTime():0});this.startWatchingInFlight()}else{j._blockAsync=true}if(G.method.toLowerCase()=="post"){if(!G.user){D.open("POST",l,n)}else{D.open("POST",l,n,G.user,G.password)}h(D,G);D.setRequestHeader("Content-Type",G.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(G.contentType||"application/x-www-form-urlencoded"));try{D.send(m)}catch(F){if(typeof D.abort=="function"){D.abort()}a(G,{status:404},l,m,A)}}else{var B=l;if(m!=""){B+=(B.indexOf("?")>-1?"&":"?")+m}if(v){B+=(dojo.string.endsWithAny(B,"?","&")?"":(B.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf()}if(!G.user){D.open(G.method.toUpperCase(),B,n)}else{D.open(G.method.toUpperCase(),B,n,G.user,G.password)}h(D,G);try{D.send(null)}catch(F){if(typeof D.abort=="function"){D.abort()}a(G,{status:404},l,m,A)}}if(!n){a(G,D,l,m,A);j._blockAsync=false}G.abort=function(){try{D._aborted=true}catch(o){}return D.abort()};return};dojo.io.transports.addTransport("XMLHTTPTransport")}}dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(a){this.pairs=[];this.returnWrappers=a||false};dojo.lang.extend(dojo.AdapterRegistry,{register:function(c,b,g,a,d){var f=(d)?"unshift":"push";this.pairs[f]([c,b,g,a])},match:function(){for(var a=0;a<this.pairs.length;a++){var b=this.pairs[a];if(b[1].apply(this,arguments)){if((b[3])||(this.returnWrappers)){return b[2]}else{return b[2].apply(this,arguments)}}}throw new Error("No match found")},unregister:function(a){for(var b=0;b<this.pairs.length;b++){var c=this.pairs[b];if(c[0]==a){this.pairs.splice(b,1);return true}}return false}});dojo.provide("dojo.json");dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(b,a,d,c){dojo.json.jsonRegistry.register(b,a,d,c)},evalJson:function(json){try{return eval("("+json+")")}catch(e){dojo.debug(e);return json}},serialize:function(a){var m=typeof(a);if(m=="undefined"){return"undefined"}else{if((m=="number")||(m=="boolean")){return a+""}else{if(a===null){return"null"}}}if(m=="string"){return dojo.string.escapeString(a)}var l=arguments.callee;var d;if(typeof(a.__json__)=="function"){d=a.__json__();if(a!==d){return l(d)}}if(typeof(a.json)=="function"){d=a.json();if(a!==d){return l(d)}}if(m!="function"&&typeof(a.length)=="number"){var j=[];for(var g=0;g<a.length;g++){var b=l(a[g]);if(typeof(b)!="string"){b="undefined"}j.push(b)}return"["+j.join(",")+"]"}try{window.o=a;d=dojo.json.jsonRegistry.match(a);return l(d)}catch(h){}if(m=="function"){return null}j=[];for(var c in a){var f;if(typeof(c)=="number"){f='"'+c+'"'}else{if(typeof(c)=="string"){f=dojo.string.escapeString(c)}else{continue}}b=l(a[c]);if(typeof(b)!="string"){continue}j.push(f+":"+b)}return"{"+j.join(",")+"}"}};dojo.provide("dojo.lang.type");dojo.lang.whatAmI=function(a){dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");return dojo.lang.getType(a)};dojo.lang.whatAmI.custom={};dojo.lang.getType=function(b){try{if(dojo.lang.isArray(b)){return"array"}if(dojo.lang.isFunction(b)){return"function"}if(dojo.lang.isString(b)){return"string"}if(dojo.lang.isNumber(b)){return"number"}if(dojo.lang.isBoolean(b)){return"boolean"}if(dojo.lang.isAlien(b)){return"alien"}if(dojo.lang.isUndefined(b)){return"undefined"}for(var a in dojo.lang.whatAmI.custom){if(dojo.lang.whatAmI.custom[a](b)){return a}}if(dojo.lang.isObject(b)){return"object"}}catch(c){}return"unknown"};dojo.lang.isNumeric=function(a){return(!isNaN(a)&&isFinite(a)&&(a!=null)&&!dojo.lang.isBoolean(a)&&!dojo.lang.isArray(a)&&!/^\s*$/.test(a))};dojo.lang.isBuiltIn=function(a){return(dojo.lang.isArray(a)||dojo.lang.isFunction(a)||dojo.lang.isString(a)||dojo.lang.isNumber(a)||dojo.lang.isBoolean(a)||(a==null)||(a instanceof Error)||(typeof a=="error"))};dojo.lang.isPureObject=function(a){return((a!=null)&&dojo.lang.isObject(a)&&a.constructor==Object)};dojo.lang.isOfType=function(g,f,h){var c=false;if(h){c=h.optional}if(c&&((g===null)||dojo.lang.isUndefined(g))){return true}if(dojo.lang.isArray(f)){var b=f;for(var d in b){var a=b[d];if(dojo.lang.isOfType(g,a)){return true}}return false}else{if(dojo.lang.isString(f)){f=f.toLowerCase()}switch(f){case Array:case"array":return dojo.lang.isArray(g);case Function:case"function":return dojo.lang.isFunction(g);case String:case"string":return dojo.lang.isString(g);case Number:case"number":return dojo.lang.isNumber(g);case"numeric":return dojo.lang.isNumeric(g);case Boolean:case"boolean":return dojo.lang.isBoolean(g);case Object:case"object":return dojo.lang.isObject(g);case"pureobject":return dojo.lang.isPureObject(g);case"builtin":return dojo.lang.isBuiltIn(g);case"alien":return dojo.lang.isAlien(g);case"undefined":return dojo.lang.isUndefined(g);case null:case"null":return(g===null);case"optional":dojo.deprecated('dojo.lang.isOfType(value, [type, "optional"])',"use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");return((g===null)||dojo.lang.isUndefined(g));default:if(dojo.lang.isFunction(f)){return(g instanceof f)}else{dojo.raise("dojo.lang.isOfType() was passed an invalid type")}}}dojo.raise("If we get here, it means a bug was introduced above.")};dojo.lang.getObject=function(d){var c=d.split("."),a=0,b=dj_global;do{b=b[c[a++]]}while(a<c.length&&b);return(b!=dj_global)?b:null};dojo.lang.doesObjectExist=function(d){var c=d.split("."),a=0,b=dj_global;do{b=b[c[a++]]}while(a<c.length&&b);return(b&&b!=dj_global)};dojo.provide("dojo.lang.assert");dojo.lang.assert=function(c,b){if(!c){var a="An assert statement failed.\nThe method dojo.lang.assert() was called with a 'false' value.\n";if(b){a+="Here's the assert message:\n"+b+"\n"}throw new Error(a)}};dojo.lang.assertType=function(b,a,c){if(dojo.lang.isString(c)){dojo.deprecated('dojo.lang.assertType(value, type, "message")',"use dojo.lang.assertType(value, type) instead","0.5")}if(!dojo.lang.isOfType(b,a,c)){if(!dojo.lang.assertType._errorMessage){dojo.lang.assertType._errorMessage="Type mismatch: dojo.lang.assertType() failed."}dojo.lang.assert(false,dojo.lang.assertType._errorMessage)}};dojo.lang.assertValidKeywords=function(a,d,c){var b;if(!c){if(!dojo.lang.assertValidKeywords._errorMessage){dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:"}c=dojo.lang.assertValidKeywords._errorMessage}if(dojo.lang.isArray(d)){for(b in a){if(!dojo.lang.inArray(d,b)){dojo.lang.assert(false,c+" "+b)}}}else{for(b in a){if(!(b in d)){dojo.lang.assert(false,c+" "+b)}}}};dojo.provide("dojo.lang.repr");dojo.lang.reprRegistry=new dojo.AdapterRegistry();dojo.lang.registerRepr=function(b,a,d,c){dojo.lang.reprRegistry.register(b,a,d,c)};dojo.lang.repr=function(c){if(typeof(c)=="undefined"){return"undefined"}else{if(c===null){return"null"}}try{if(typeof(c.__repr__)=="function"){return c.__repr__()}else{if((typeof(c.repr)=="function")&&(c.repr!=arguments.callee)){return c.repr()}}return dojo.lang.reprRegistry.match(c)}catch(b){if(typeof(c.NAME)=="string"&&(c.toString==Function.prototype.toString||c.toString==Object.prototype.toString)){return c.NAME}}if(typeof(c)=="function"){c=(c+"").replace(/^\s+/,"");var a=c.indexOf("{");if(a!=-1){c=c.substr(0,a)+"{...}"}}return c+""};dojo.lang.reprArrayLike=function(a){try{var b=dojo.lang.map(a,dojo.lang.repr);return"["+b.join(", ")+"]"}catch(c){}};(function(){var a=dojo.lang;a.registerRepr("arrayLike",a.isArrayLike,a.reprArrayLike);a.registerRepr("string",a.isString,a.reprString);a.registerRepr("numbers",a.isNumber,a.reprNumber);a.registerRepr("boolean",a.isBoolean,a.reprNumber)})();dojo.kwCompoundRequire({common:["dojo.lang.common","dojo.lang.assert","dojo.lang.array","dojo.lang.type","dojo.lang.func","dojo.lang.extras","dojo.lang.repr","dojo.lang.declare"]});dojo.provide("dojo.lang.*");dojo.provide("dojo.ns");dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(a,b,d,c){if(!c||!this.namespaces[a]){this.namespaces[a]=new dojo.ns.Ns(a,b,d)}},allow:function(a){if(this.failed[a]){return false}if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,a))){return false}return((a==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,a)))},get:function(a){return this.namespaces[a]},require:function(a){var b=this.namespaces[a];if((b)&&(this.loaded[a])){return b}if(!this.allow(a)){return false}if(this.loading[a]){dojo.debug('dojo.namespace.require: re-entrant request to load namespace "'+a+'" must fail.');return false}var c=dojo.require;this.loading[a]=true;try{if(a=="dojo"){c("dojo.namespaces.dojo")}else{if(!dojo.hostenv.moduleHasPrefix(a)){dojo.registerModulePath(a,"../"+a)}c([a,"manifest"].join("."),false,true)}if(!this.namespaces[a]){this.failed[a]=true}}finally{this.loading[a]=false}return this.namespaces[a]}};dojo.ns.Ns=function(a,b,c){this.name=a;this.module=b;this.resolver=c;this._loaded=[];this._failed=[]};dojo.ns.Ns.prototype.resolve=function(a,d,b){if(!this.resolver||djConfig.skipAutoRequire){return false}var f=this.resolver(a,d);if((f)&&(!this._loaded[f])&&(!this._failed[f])){var c=dojo.require;c(f,false,true);if(dojo.hostenv.findModule(f,false)){this._loaded[f]=true}else{if(!b){dojo.raise("dojo.ns.Ns.resolve: module '"+f+"' not found after loading via namespace '"+this.name+"'")}this._failed[f]=true}}return Boolean(this._loaded[f])};dojo.registerNamespace=function(a,b,c){dojo.ns.register.apply(dojo.ns,arguments)};dojo.registerNamespaceResolver=function(a,b){var c=dojo.ns.namespaces[a];if(c){c.resolver=b}};dojo.registerNamespaceManifest=function(b,c,a,f,d){dojo.registerModulePath(a,c);dojo.registerNamespace(a,f,d)};dojo.registerNamespace("dojo","dojo.widget");dojo.provide("dojo.namespaces.dojo");(function(){var b={html:{accordioncontainer:"dojo.widget.AccordionContainer",animatedpng:"dojo.widget.AnimatedPng",button:"dojo.widget.Button",chart:"dojo.widget.Chart",checkbox:"dojo.widget.Checkbox",clock:"dojo.widget.Clock",colorpalette:"dojo.widget.ColorPalette",combobox:"dojo.widget.ComboBox",combobutton:"dojo.widget.Button",contentpane:"dojo.widget.ContentPane",currencytextbox:"dojo.widget.CurrencyTextbox",datepicker:"dojo.widget.DatePicker",datetextbox:"dojo.widget.DateTextbox",debugconsole:"dojo.widget.DebugConsole",dialog:"dojo.widget.Dialog",dropdownbutton:"dojo.widget.Button",dropdowndatepicker:"dojo.widget.DropdownDatePicker",dropdowntimepicker:"dojo.widget.DropdownTimePicker",emaillisttextbox:"dojo.widget.InternetTextbox",emailtextbox:"dojo.widget.InternetTextbox",editor:"dojo.widget.Editor",editor2:"dojo.widget.Editor2",filteringtable:"dojo.widget.FilteringTable",fisheyelist:"dojo.widget.FisheyeList",fisheyelistitem:"dojo.widget.FisheyeList",floatingpane:"dojo.widget.FloatingPane",modalfloatingpane:"dojo.widget.FloatingPane",form:"dojo.widget.Form",googlemap:"dojo.widget.GoogleMap",inlineeditbox:"dojo.widget.InlineEditBox",integerspinner:"dojo.widget.Spinner",integertextbox:"dojo.widget.IntegerTextbox",ipaddresstextbox:"dojo.widget.InternetTextbox",layoutcontainer:"dojo.widget.LayoutContainer",linkpane:"dojo.widget.LinkPane",popupmenu2:"dojo.widget.Menu2",menuitem2:"dojo.widget.Menu2",menuseparator2:"dojo.widget.Menu2",menubar2:"dojo.widget.Menu2",menubaritem2:"dojo.widget.Menu2",pagecontainer:"dojo.widget.PageContainer",pagecontroller:"dojo.widget.PageContainer",popupcontainer:"dojo.widget.PopupContainer",progressbar:"dojo.widget.ProgressBar",radiogroup:"dojo.widget.RadioGroup",realnumbertextbox:"dojo.widget.RealNumberTextbox",regexptextbox:"dojo.widget.RegexpTextbox",repeater:"dojo.widget.Repeater",resizabletextarea:"dojo.widget.ResizableTextarea",richtext:"dojo.widget.RichText",select:"dojo.widget.Select",show:"dojo.widget.Show",showaction:"dojo.widget.ShowAction",showslide:"dojo.widget.ShowSlide",slidervertical:"dojo.widget.Slider",sliderhorizontal:"dojo.widget.Slider",slider:"dojo.widget.Slider",slideshow:"dojo.widget.SlideShow",sortabletable:"dojo.widget.SortableTable",splitcontainer:"dojo.widget.SplitContainer",tabcontainer:"dojo.widget.TabContainer",tabcontroller:"dojo.widget.TabContainer",taskbar:"dojo.widget.TaskBar",textbox:"dojo.widget.Textbox",timepicker:"dojo.widget.TimePicker",timetextbox:"dojo.widget.DateTextbox",titlepane:"dojo.widget.TitlePane",toaster:"dojo.widget.Toaster",toggler:"dojo.widget.Toggler",toolbar:"dojo.widget.Toolbar",toolbarcontainer:"dojo.widget.Toolbar",toolbaritem:"dojo.widget.Toolbar",toolbarbuttongroup:"dojo.widget.Toolbar",toolbarbutton:"dojo.widget.Toolbar",toolbardialog:"dojo.widget.Toolbar",toolbarmenu:"dojo.widget.Toolbar",toolbarseparator:"dojo.widget.Toolbar",toolbarspace:"dojo.widget.Toolbar",toolbarselect:"dojo.widget.Toolbar",toolbarcolordialog:"dojo.widget.Toolbar",tooltip:"dojo.widget.Tooltip",tree:"dojo.widget.Tree",treebasiccontroller:"dojo.widget.TreeBasicController",treecontextmenu:"dojo.widget.TreeContextMenu",treedisablewrapextension:"dojo.widget.TreeDisableWrapExtension",treedociconextension:"dojo.widget.TreeDocIconExtension",treeeditor:"dojo.widget.TreeEditor",treeemphasizeonselect:"dojo.widget.TreeEmphasizeOnSelect",treeexpandtonodeonselect:"dojo.widget.TreeExpandToNodeOnSelect",treelinkextension:"dojo.widget.TreeLinkExtension",treeloadingcontroller:"dojo.widget.TreeLoadingController",treemenuitem:"dojo.widget.TreeContextMenu",treenode:"dojo.widget.TreeNode",treerpccontroller:"dojo.widget.TreeRPCController",treeselector:"dojo.widget.TreeSelector",treetoggleonselect:"dojo.widget.TreeToggleOnSelect",treev3:"dojo.widget.TreeV3",treebasiccontrollerv3:"dojo.widget.TreeBasicControllerV3",treecontextmenuv3:"dojo.widget.TreeContextMenuV3",treedndcontrollerv3:"dojo.widget.TreeDndControllerV3",treeloadingcontrollerv3:"dojo.widget.TreeLoadingControllerV3",treemenuitemv3:"dojo.widget.TreeContextMenuV3",treerpccontrollerv3:"dojo.widget.TreeRpcControllerV3",treeselectorv3:"dojo.widget.TreeSelectorV3",urltextbox:"dojo.widget.InternetTextbox",usphonenumbertextbox:"dojo.widget.UsTextbox",ussocialsecuritynumbertextbox:"dojo.widget.UsTextbox",usstatetextbox:"dojo.widget.UsTextbox",usziptextbox:"dojo.widget.UsTextbox",validationtextbox:"dojo.widget.ValidationTextbox",treeloadingcontroller:"dojo.widget.TreeLoadingController",wizardcontainer:"dojo.widget.Wizard",wizardpane:"dojo.widget.Wizard",yahoomap:"dojo.widget.YahooMap"},svg:{chart:"dojo.widget.svg.Chart"},vml:{chart:"dojo.widget.vml.Chart"}};dojo.addDojoNamespaceMapping=function(c,d){b[c]=d};function a(c,d){if(!d){d="html"}if(!b[d]){return null}return b[d][c]}dojo.registerNamespaceResolver("dojo",a)})();dojo.provide("dojo.storage");dojo.storage=new function(){};dojo.declare("dojo.storage",null,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",namespace:"default",onHideSettingsUI:null,initialize:function(){dojo.unimplemented("dojo.storage.initialize")},isAvailable:function(){dojo.unimplemented("dojo.storage.isAvailable")},put:function(a,c,b){dojo.unimplemented("dojo.storage.put")},get:function(a){dojo.unimplemented("dojo.storage.get")},hasKey:function(a){return(this.get(a)!=null)},getKeys:function(){dojo.unimplemented("dojo.storage.getKeys")},clear:function(){dojo.unimplemented("dojo.storage.clear")},remove:function(a){dojo.unimplemented("dojo.storage.remove")},isPermanent:function(){dojo.unimplemented("dojo.storage.isPermanent")},getMaximumSize:function(){dojo.unimplemented("dojo.storage.getMaximumSize")},hasSettingsUI:function(){return false},showSettingsUI:function(){dojo.unimplemented("dojo.storage.showSettingsUI")},hideSettingsUI:function(){dojo.unimplemented("dojo.storage.hideSettingsUI")},getType:function(){dojo.unimplemented("dojo.storage.getType")},isValidKey:function(a){if((a==null)||(typeof a=="undefined")){return false}return/^[0-9A-Za-z_]*$/.test(a)}});dojo.storage.manager=new function(){this.currentProvider=null;this.available=false;this._initialized=false;this._providers=[];this.namespace="default";this.initialize=function(){this.autodetect()};this.register=function(name,instance){this._providers[this._providers.length]=instance;this._providers[name]=instance};this.setProvider=function(storageClass){};this.autodetect=function(){if(this._initialized==true){return}var providerToUse=null;for(var i=0;i<this._providers.length;i++){providerToUse=this._providers[i];if(dojo.lang.isUndefined(djConfig.forceStorageProvider)==false&&providerToUse.getType()==djConfig.forceStorageProvider){providerToUse.isAvailable();break}else{if(dojo.lang.isUndefined(djConfig.forceStorageProvider)==true&&providerToUse.isAvailable()){break}}}if(providerToUse==null){this._initialized=true;this.available=false;this.currentProvider=null;dojo.raise("No storage provider found for this platform")}this.currentProvider=providerToUse;for(var i in providerToUse){dojo.storage[i]=providerToUse[i]}dojo.storage.manager=this;dojo.storage.initialize();this._initialized=true;this.available=true};this.isAvailable=function(){return this.available};this.isInitialized=function(){if(this.currentProvider.getType()=="dojo.storage.browser.FlashStorageProvider"&&dojo.flash.ready==false){return false}else{return this._initialized}};this.supportsProvider=function(storageClass){try{var provider=eval("new "+storageClass+"()");var results=provider.isAvailable();if(results==null||typeof results=="undefined"){return false}return results}catch(exception){return false}};this.getProvider=function(){return this.currentProvider};this.loaded=function(){}};dojo.provide("dojo.string.Builder");dojo.string.Builder=function(g){this.arrConcat=(dojo.render.html.capable&&dojo.render.html.ie);var d=[];var c="";var f=this.length=c.length;if(this.arrConcat){if(c.length>0){d.push(c)}c=""}this.toString=this.valueOf=function(){return(this.arrConcat)?d.join(""):c};this.append=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];if(dojo.lang.isArrayLike(b)){this.append.apply(this,b)}else{if(this.arrConcat){d.push(b)}else{c+=b}f+=b.length;this.length=f}}return this};this.clear=function(){d=[];c="";f=this.length=0;return this};this.remove=function(h,a){var b="";if(this.arrConcat){c=d.join("")}d=[];if(h>0){b=c.substring(0,(h-1))}c=b+c.substring(h+a);f=this.length=c.length;if(this.arrConcat){d.push(c);c=""}return this};this.replace=function(a,b){if(this.arrConcat){c=d.join("")}d=[];c=c.replace(a,b);f=this.length=c.length;if(this.arrConcat){d.push(c);c=""}return this};this.insert=function(a,h){if(this.arrConcat){c=d.join("")}d=[];if(a==0){c=h+c}else{var b=c.split("");b.splice(a,0,h);c=b.join("")}f=this.length=c.length;if(this.arrConcat){d.push(c);c=""}return this};this.append.apply(this,arguments)};dojo.kwCompoundRequire({common:["dojo.string","dojo.string.common","dojo.string.extras","dojo.string.Builder"]});dojo.provide("dojo.string.*");dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});dojo.provide("dojo.uri.*");dojo.provide("dojo.flash");dojo.flash=function(){};dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(a){if(a==null||dojo.lang.isUndefined(a)){return}if(a.flash6!=null&&!dojo.lang.isUndefined(a.flash6)){this.flash6_version=a.flash6}if(a.flash8!=null&&!dojo.lang.isUndefined(a.flash8)){this.flash8_version=a.flash8}if(!dojo.lang.isUndefined(a.visible)){this._visible=a.visible}this._initialize()},useFlash6:function(){if(this.flash6_version==null){return false}else{if(this.flash6_version!=null&&dojo.flash.info.commVersion==6){return true}else{return false}}},useFlash8:function(){if(this.flash8_version==null){return false}else{if(this.flash8_version!=null&&dojo.flash.info.commVersion==8){return true}else{return false}}},addLoadedListener:function(a){this._loadedListeners.push(a)},addInstallingListener:function(a){this._installingListeners.push(a)},loaded:function(){dojo.flash.ready=true;if(dojo.flash._loadedListeners.length>0){for(var a=0;a<dojo.flash._loadedListeners.length;a++){dojo.flash._loadedListeners[a].call(null)}}},installing:function(){if(dojo.flash._installingListeners.length>0){for(var a=0;a<dojo.flash._installingListeners.length;a++){dojo.flash._installingListeners[a].call(null)}}},_initialize:function(){var a=new dojo.flash.Install();dojo.flash.installer=a;if(a.needed()==true){a.install()}else{dojo.flash.obj=new dojo.flash.Embed(this._visible);dojo.flash.obj.write(dojo.flash.info.commVersion);dojo.flash.comm=new dojo.flash.Communicator()}}};dojo.flash.Info=function(){if(dojo.render.html.ie){document.writeln('<script language="VBScript" type="text/vbscript">');document.writeln("Function VBGetSwfVer(i)");document.writeln("  on error resume next");document.writeln("  Dim swControl, swVersion");document.writeln("  swVersion = 0");document.writeln('  set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))');document.writeln("  if (IsObject(swControl)) then");document.writeln('    swVersion = swControl.GetVariable("$version")');document.writeln("  end if");document.writeln("  VBGetSwfVer = swVersion");document.writeln("End Function");document.writeln("<\/script>")}this._detectVersion();this._detectCommunicationVersion()};dojo.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,commVersion:6,installing:false,isVersionOrAbove:function(c,a,b){b=parseFloat("."+b);if(this.versionMajor>=c&&this.versionMinor>=a&&this.versionRevision>=b){return true}else{return false}},_detectVersion:function(){var g;for(var b=25;b>0;b--){if(dojo.render.html.ie){g=VBGetSwfVer(b)}else{g=this._JSFlashInfo(b)}if(g==-1){this.capable=false;return}else{if(g!=0){var d;if(dojo.render.html.ie){var f=g.split(" ");var c=f[1];d=c.split(",")}else{d=g.split(".")}this.versionMajor=d[0];this.versionMinor=d[1];this.versionRevision=d[2];var a=this.versionMajor+"."+this.versionRevision;this.version=parseFloat(a);this.capable=true;break}}}},_JSFlashInfo:function(b){if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var j=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var k=navigator.plugins["Shockwave Flash"+j].description;var d=k.split(" ");var f=d[2].split(".");var a=f[0];var l=f[1];if(d[3]!=""){var c=d[3].split("r")}else{var c=d[4].split("r")}var g=c[1]>0?c[1]:0;var h=a+"."+l+"."+g;return h}}return -1},_detectCommunicationVersion:function(){if(this.capable==false){this.commVersion=null;return}if(typeof djConfig.forceFlashComm!="undefined"&&typeof djConfig.forceFlashComm!=null){this.commVersion=djConfig.forceFlashComm;return}if(dojo.render.html.safari==true||dojo.render.html.opera==true){this.commVersion=8}else{this.commVersion=6}}};dojo.flash.Embed=function(a){this._visible=a};dojo.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,protocol:function(){switch(window.location.protocol){case"https:":return"https";break;default:return"http";break}},write:function(f,a){if(dojo.lang.isUndefined(a)){a=false}var k=new dojo.string.Builder();k.append("width: "+this.width+"px; ");k.append("height: "+this.height+"px; ");if(this._visible==false){k.append("position: absolute; ");k.append("z-index: 10000; ");k.append("top: -1000px; ");k.append("left: -1000px; ")}k=k.toString();var d;var l;if(f==6){l=dojo.flash.flash6_version;var g=djConfig.baseRelativePath;l=l+"?baseRelativePath="+escape(g);d='<embed id="'+this.id+'" src="'+l+'"     quality="high" bgcolor="#ffffff"     width="'+this.width+'" height="'+this.height+'"     name="'+this.id+'"     align="middle" allowScriptAccess="sameDomain"     type="application/x-shockwave-flash" swLiveConnect="true"     pluginspage="'+this.protocol()+'://www.macromedia.com/go/getflashplayer">'}else{l=dojo.flash.flash8_version;var j=l;var c=l;var g=djConfig.baseRelativePath;if(a){var h=escape(window.location);document.title=document.title.slice(0,47)+" - Flash Player Installation";var b=escape(document.title);j+="?MMredirectURL="+h+"&MMplayerType=ActiveX&MMdoctitle="+b+"&baseRelativePath="+escape(g);c+="?MMredirectURL="+h+"&MMplayerType=PlugIn&baseRelativePath="+escape(g)}if(c.indexOf("?")==-1){c+="?baseRelativePath="+escape(g)+"' "}d='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+this.protocol()+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="'+j+'" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="'+c+'\' quality="high" bgcolor="#ffffff" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" name="'+this.id+'" swLiveConnect="true" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="'+this.protocol()+'://www.macromedia.com/go/getflashplayer" /></object>'}d='<div id="'+this.id+'Container" style="'+k+'"> '+d+"</div>";document.writeln(d)},get:function(){return document.getElementById(this.id)},setVisible:function(b){var a=dojo.byId(this.id+"Container");if(b==true){a.style.visibility="visible"}else{a.style.position="absolute";a.style.x="-1000px";a.style.y="-1000px";a.style.visibility="hidden"}},center:function(){var g=this.width;var f=this.height;var b=dojo.html.getScroll().offset;var d=dojo.html.getViewport();var a=b.x+(d.width-g)/2;var h=b.y+(d.height-f)/2;var c=dojo.byId(this.id+"Container");c.style.top=h+"px";c.style.left=a+"px"}};dojo.flash.Communicator=function(){if(dojo.flash.useFlash6()){this._writeFlash6()}else{if(dojo.flash.useFlash8()){this._writeFlash8()}}};dojo.flash.Communicator.prototype={_writeFlash6:function(){var a=dojo.flash.obj.id;document.writeln('<script language="JavaScript">');document.writeln("  function "+a+"_DoFSCommand(command, args){ ");document.writeln("    dojo.flash.comm._handleFSCommand(command, args); ");document.writeln("}");document.writeln("<\/script>");if(dojo.render.html.ie){document.writeln("<SCRIPT LANGUAGE=VBScript> ");document.writeln("on error resume next ");document.writeln("Sub "+a+"_FSCommand(ByVal command, ByVal args)");document.writeln(" call "+a+"_DoFSCommand(command, args)");document.writeln("end sub");document.writeln("</SCRIPT> ")}},_writeFlash8:function(){},_handleFSCommand:function(b,a){if(b!=null&&!dojo.lang.isUndefined(b)&&/^FSCommand:(.*)/.test(b)==true){b=b.match(/^FSCommand:(.*)/)[1]}if(b=="addCallback"){this._fscommandAddCallback(b,a)}else{if(b=="call"){this._fscommandCall(b,a)}else{if(b=="fscommandReady"){this._fscommandReady()}}}},_fscommandAddCallback:function(d,b){var c=b;var a=function(){return dojo.flash.comm._call(c,arguments)};dojo.flash.comm[c]=a;dojo.flash.obj.get().SetVariable("_succeeded",true)},_fscommandCall:function(command,args){var plugin=dojo.flash.obj.get();var functionName=args;var numArgs=parseInt(plugin.GetVariable("_numArgs"));var flashArgs=new Array();for(var i=0;i<numArgs;i++){var currentArg=plugin.GetVariable("_"+i);flashArgs.push(currentArg)}var runMe;if(functionName.indexOf(".")==-1){runMe=window[functionName]}else{runMe=eval(functionName)}var results=null;if(!dojo.lang.isUndefined(runMe)&&runMe!=null){results=runMe.apply(null,flashArgs)}plugin.SetVariable("_returnResult",results)},_fscommandReady:function(){var a=dojo.flash.obj.get();a.SetVariable("fscommandReady","true")},_call:function(g,a){var d=dojo.flash.obj.get();d.SetVariable("_functionName",g);d.SetVariable("_numArgs",a.length);for(var c=0;c<a.length;c++){var f=a[c];f=f.replace(/\0/g,"\\0");d.SetVariable("_"+c,f)}d.TCallLabel("/_flashRunner","execute");var b=d.GetVariable("_returnResult");b=b.replace(/\\0/g,"\0");return b},_addExternalInterfaceCallback:function(a){var b=function(){var c=new Array(arguments.length);for(var d=0;d<arguments.length;d++){c[d]=arguments[d]}return dojo.flash.comm._execFlash(a,c)};dojo.flash.comm[a]=b},_encodeData:function(a){var b=/\&([^;]*)\;/g;a=a.replace(b,"&amp;$1;");a=a.replace(/</g,"&lt;");a=a.replace(/>/g,"&gt;");a=a.replace("\\","&custom_backslash;&custom_backslash;");a=a.replace(/\n/g,"\\n");a=a.replace(/\r/g,"\\r");a=a.replace(/\f/g,"\\f");a=a.replace(/\0/g,"\\0");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');return a},_decodeData:function(data){if(data==null||typeof data=="undefined"){return data}data=data.replace(/\&custom_lt\;/g,"<");data=data.replace(/\&custom_gt\;/g,">");data=eval('"'+data+'"');return data},_chunkArgumentData:function(j,h){var f=dojo.flash.obj.get();var g=Math.ceil(j.length/1024);for(var c=0;c<g;c++){var b=c*1024;var a=c*1024+1024;if(c==(g-1)){a=c*1024+j.length}var d=j.substring(b,a);d=this._encodeData(d);f.CallFunction('<invoke name="chunkArgumentData" returntype="javascript"><arguments><string>'+d+"</string><number>"+h+"</number></arguments></invoke>")}},_chunkReturnData:function(){var d=dojo.flash.obj.get();var f=d.getReturnLength();var g=new Array();for(var b=0;b<f;b++){var c=d.CallFunction('<invoke name="chunkReturnData" returntype="javascript"><arguments><number>'+b+"</number></arguments></invoke>");if(c=='""'||c=="''"){c=""}else{c=c.substring(1,c.length-1)}g.push(c)}var a=g.join("");return a},_execFlash:function(b,a){var f=dojo.flash.obj.get();f.startExec();f.setNumberArguments(a.length);for(var d=0;d<a.length;d++){this._chunkArgumentData(a[d],d)}f.exec(b);var c=this._chunkReturnData();c=this._decodeData(c);f.endExec();return c}};dojo.flash.Install=function(){};dojo.flash.Install.prototype={needed:function(){if(dojo.flash.info.capable==false){return true}if(dojo.render.os.mac==true&&!dojo.flash.info.isVersionOrAbove(8,0,0)){return true}if(!dojo.flash.info.isVersionOrAbove(6,0,0)){return true}return false},install:function(){dojo.flash.info.installing=true;dojo.flash.installing();if(dojo.flash.info.capable==false){var a=new dojo.flash.Embed(false);a.write(8)}else{if(dojo.flash.info.isVersionOrAbove(6,0,65)){var a=new dojo.flash.Embed(false);a.write(8,true);a.setVisible(true);a.center()}else{alert("This content requires a more recent version of the Macromedia  Flash Player.");window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer"}}},_onInstallStatus:function(a){if(a=="Download.Complete"){dojo.flash._initialize()}else{if(a=="Download.Cancelled"){alert("This content requires a more recent version of the Macromedia  Flash Player.");window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer"}else{if(a=="Download.Failed"){alert("There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.")}}}}};dojo.flash.info=new dojo.flash.Info();dojo.provide("dojo.storage.browser");dojo.storage.browser.WhatWGStorageProvider=function(){};dojo.inherits(dojo.storage.browser.WhatWGStorageProvider,dojo.storage);dojo.lang.extend(dojo.storage.browser.WhatWGStorageProvider,{namespace:"default",initialized:false,_domain:null,_available:null,_statusHandler:null,initialize:function(){if(djConfig.disableWhatWGStorage==true){return}this._domain=location.hostname;this.initialized=true;dojo.storage.manager.loaded()},isAvailable:function(){try{var b=globalStorage[location.hostname]}catch(a){this._available=false;return this._available}this._available=true;return this._available},put:function(a,c,b){if(this.isValidKey(a)==false){dojo.raise("Invalid key given: "+a)}this._statusHandler=b;if(dojo.lang.isString(c)){c="string:"+c}else{c=dojo.json.serialize(c)}window.addEventListener("storage",function(g){b.call(null,dojo.storage.SUCCESS,a)},false);try{var f=globalStorage[this._domain];f.setItem(a,c)}catch(d){this._statusHandler.call(null,dojo.storage.FAILED,a,d.toString())}},get:function(b){if(this.isValidKey(b)==false){dojo.raise("Invalid key given: "+b)}var c=globalStorage[this._domain];var a=c.getItem(b);if(a==null){return null}a=a.value;if(!dojo.lang.isUndefined(a)&&a!=null&&/^string:/.test(a)){a=a.substring("string:".length)}else{a=dojo.json.evalJson(a)}return a},getKeys:function(){var b=globalStorage[this._domain];var a=new Array();for(i=0;i<b.length;i++){a[i]=b.key(i)}return a},clear:function(){var c=globalStorage[this._domain];var b=new Array();for(var a=0;a<c.length;a++){b[b.length]=c.key(a)}for(var a=0;a<b.length;a++){c.removeItem(b[a])}},remove:function(a){var b=globalStorage[this._domain];b.removeItem(a)},isPermanent:function(){return true},getMaximumSize:function(){return dojo.storage.SIZE_NO_LIMIT},hasSettingsUI:function(){return false},showSettingsUI:function(){dojo.raise(this.getType()+" does not support a storage settings user-interface")},hideSettingsUI:function(){dojo.raise(this.getType()+" does not support a storage settings user-interface")},getType:function(){return"dojo.storage.browser.WhatWGStorageProvider"}});dojo.storage.browser.FlashStorageProvider=function(){};dojo.inherits(dojo.storage.browser.FlashStorageProvider,dojo.storage);dojo.lang.extend(dojo.storage.browser.FlashStorageProvider,{namespace:"default",initialized:false,_available:null,_statusHandler:null,initialize:function(){if(djConfig.disableFlashStorage==true){return}var c=function(){dojo.storage._flashLoaded()};dojo.flash.addLoadedListener(c);var b=dojo.uri.dojoUri("Storage_version6.swf").toString();var a=dojo.uri.dojoUri("Storage_version8.swf").toString();dojo.flash.setSwf({flash6:b,flash8:a,visible:false})},isAvailable:function(){if(djConfig.disableFlashStorage==true){this._available=false}else{this._available=true}return this._available},put:function(a,c,b){if(this.isValidKey(a)==false){dojo.raise("Invalid key given: "+a)}this._statusHandler=b;if(dojo.lang.isString(c)){c="string:"+c}else{c=dojo.json.serialize(c)}dojo.flash.comm.put(a,c,this.namespace)},get:function(b){if(this.isValidKey(b)==false){dojo.raise("Invalid key given: "+b)}var a=dojo.flash.comm.get(b,this.namespace);if(a==""){return null}if(!dojo.lang.isUndefined(a)&&a!=null&&/^string:/.test(a)){a=a.substring("string:".length)}else{a=dojo.json.evalJson(a)}return a},getKeys:function(){var a=dojo.flash.comm.getKeys(this.namespace);if(a==""){return[]}return a.split(",")},clear:function(){dojo.flash.comm.clear(this.namespace)},remove:function(a){dojo.unimplemented("dojo.storage.browser.FlashStorageProvider.remove")},isPermanent:function(){return true},getMaximumSize:function(){return dojo.storage.SIZE_NO_LIMIT},hasSettingsUI:function(){return true},showSettingsUI:function(){dojo.flash.comm.showSettings();dojo.flash.obj.setVisible(true);dojo.flash.obj.center()},hideSettingsUI:function(){dojo.flash.obj.setVisible(false);if(dojo.storage.onHideSettingsUI!=null&&!dojo.lang.isUndefined(dojo.storage.onHideSettingsUI)){dojo.storage.onHideSettingsUI.call(null)}},getType:function(){return"dojo.storage.browser.FlashStorageProvider"},_flashLoaded:function(){this._initialized=true;dojo.storage.manager.loaded()},_onStatus:function(c,b){var d=dojo.storage;var a=dojo.flash.obj;if(c==d.PENDING){a.center();a.setVisible(true)}else{a.setVisible(false)}if((!dj_undef("_statusHandler",d))&&(d._statusHandler!=null)){d._statusHandler.call(null,c,b)}}});dojo.storage.manager.register("dojo.storage.browser.WhatWGStorageProvider",new dojo.storage.browser.WhatWGStorageProvider());dojo.storage.manager.register("dojo.storage.browser.FlashStorageProvider",new dojo.storage.browser.FlashStorageProvider());dojo.storage.manager.initialize();dojo.kwCompoundRequire({common:["dojo.storage"],browser:["dojo.storage.browser"]});dojo.provide("dojo.storage.*");dojo.provide("dojo.xml.Parse");dojo.xml.Parse=function(){var c=((dojo.render.html.capable)&&(dojo.render.html.ie));function b(d){try{return d.tagName.toLowerCase()}catch(f){return""}}function a(g){var f=b(g);if(!f){return""}if((dojo.widget)&&(dojo.widget.tags[f])){return f}var d=f.indexOf(":");if(d>=0){return f}if(f.substr(0,5)=="dojo:"){return f}if(dojo.render.html.capable&&dojo.render.html.ie&&g.scopeName!="HTML"){return g.scopeName.toLowerCase()+":"+f}if(f.substr(0,4)=="dojo"){return"dojo:"+f.substring(4)}var m=g.getAttribute("dojoType")||g.getAttribute("dojotype");if(m){if(m.indexOf(":")<0){m="dojo:"+m}return m.toLowerCase()}m=g.getAttributeNS&&g.getAttributeNS(dojo.dom.dojoml,"type");if(m){return"dojo:"+m.toLowerCase()}try{m=g.getAttribute("dojo:type")}catch(j){}if(m){return"dojo:"+m.toLowerCase()}if((dj_global.djConfig)&&(!djConfig.ignoreClassNames)){var h=g.className||g.getAttribute("class");if((h)&&(h.indexOf)&&(h.indexOf("dojo-")!=-1)){var n=h.split(" ");for(var l=0,k=n.length;l<k;l++){if(n[l].slice(0,5)=="dojo-"){return"dojo:"+n[l].substr(5).toLowerCase()}}}}return""}this.parseElement=function(j,m,u,p){var g=b(j);if(c&&g.indexOf("/")==0){return null}try{var q=j.getAttribute("parseWidgets");if(q&&q.toLowerCase()=="false"){return{}}}catch(o){}var f=true;if(u){var h=a(j);g=h||g;f=Boolean(h)}var t={};t[g]=[];var s=g.indexOf(":");if(s>0){var r=g.substring(0,s);t.ns=r;if((dojo.ns)&&(!dojo.ns.allow(r))){f=false}}if(f){var d=this.parseAttributes(j);for(var q in d){if((!t[g][q])||(typeof t[g][q]!="array")){t[g][q]=[]}t[g][q].push(d[q])}t[g].nodeRef=j;t.tagName=g;t.index=p||0}var n=0;for(var l=0;l<j.childNodes.length;l++){var v=j.childNodes.item(l);switch(v.nodeType){case dojo.dom.ELEMENT_NODE:var k=a(v)||b(v);if(!t[k]){t[k]=[]}t[k].push(this.parseElement(v,true,u,n));if((v.childNodes.length==1)&&(v.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){t[k][t[k].length-1].value=v.childNodes.item(0).nodeValue}n++;break;case dojo.dom.TEXT_NODE:if(j.childNodes.length==1){t[g].push({value:j.childNodes.item(0).nodeValue})}break;default:break}}return t};this.parseAttributes=function(g){var h={};var k=g.attributes;var f,d=0;while((f=k[d++])){if(c){if(!f){continue}if((typeof f=="object")&&(typeof f.nodeValue=="undefined")||(f.nodeValue==null)||(f.nodeValue=="")){continue}}var j=f.nodeName.split(":");j=(j.length==2)?j[1]:f.nodeName;h[j]={value:f.nodeValue}}return h}};dojo.provide("dojo.widget.Manager");dojo.widget.manager=new function(){this.widgets=[];this.widgetIds=[];this.topWidgets={};var d={};var h=[];this.getUniqueId=function(l){var k;do{k=l+"_"+(d[l]!=undefined?++d[l]:d[l]=0)}while(this.getWidgetById(k));return k};this.add=function(k){this.widgets.push(k);if(!k.extraArgs.id){k.extraArgs.id=k.extraArgs.ID}if(k.widgetId==""){if(k.id){k.widgetId=k.id}else{if(k.extraArgs.id){k.widgetId=k.extraArgs.id}else{k.widgetId=this.getUniqueId(k.ns+"_"+k.widgetType)}}}if(this.widgetIds[k.widgetId]){dojo.debug("widget ID collision on ID: "+k.widgetId)}this.widgetIds[k.widgetId]=k};this.destroyAll=function(){for(var k=this.widgets.length-1;k>=0;k--){try{this.widgets[k].destroy(true);delete this.widgets[k]}catch(l){}}};this.remove=function(l){if(dojo.lang.isNumber(l)){var k=this.widgets[l].widgetId;delete this.widgetIds[k];this.widgets.splice(l,1)}else{this.removeById(l)}};this.removeById=function(l){if(!dojo.lang.isString(l)){l=l.widgetId;if(!l){dojo.debug("invalid widget or id passed to removeById");return}}for(var k=0;k<this.widgets.length;k++){if(this.widgets[k].widgetId==l){this.remove(k);break}}};this.getWidgetById=function(k){if(dojo.lang.isString(k)){return this.widgetIds[k]}return k};this.getWidgetsByType=function(m){var k=m.toLowerCase();var n=(m.indexOf(":")<0?function(o){return o.widgetType.toLowerCase()}:function(o){return o.getNamespacedType()});var l=[];dojo.lang.forEach(this.widgets,function(o){if(n(o)==k){l.push(o)}});return l};this.getWidgetsByFilter=function(k,m){var l=[];dojo.lang.every(this.widgets,function(n){if(k(n)){l.push(n);if(m){return false}}return true});return(m?l[0]:l)};this.getAllWidgets=function(){return this.widgets.concat()};this.getWidgetByNode=function(m){var k=this.getAllWidgets();m=dojo.byId(m);for(var l=0;l<k.length;l++){if(k[l].domNode==m){return k[l]}}return null};this.byId=this.getWidgetById;this.byType=this.getWidgetsByType;this.byFilter=this.getWidgetsByFilter;this.byNode=this.getWidgetByNode;var c={};var j=["dojo.widget"];for(var b=0;b<j.length;b++){j[j[b]]=true}this.registerWidgetPackage=function(k){if(!j[k]){j[k]=true;j.push(k)}};this.getWidgetPackageList=function(){return dojo.lang.map(j,function(k){return(k!==true?k:undefined)})};this.getImplementation=function(o,p,k,n){var l=this.getImplementationName(o,n);if(l){var m=p?new l(p):new l();return m}};function g(){for(var m in dojo.render){if(dojo.render[m]["capable"]===true){var l=dojo.render[m].prefixes;for(var k=0;k<l.length;k++){h.push(l[k].toLowerCase())}}}}var a=function(p,o){if(!o){return null}for(var n=0,k=h.length,q;n<=k;n++){q=(n<k?o[h[n]]:o);if(!q){continue}for(var m in q){if(m.toLowerCase()==p){return q[m]}}}return null};var f=function(m,k){var l=dojo.evalObjPath(k,false);return(l?a(m,l):null)};this.getImplementationName=function(p,n){var q=p.toLowerCase();n=n||"dojo";var o=c[n]||(c[n]={});var l=o[q];if(l){return l}if(!h.length){g()}var k=dojo.ns.get(n);if(!k){dojo.ns.register(n,n+".widget");k=dojo.ns.get(n)}if(k){k.resolve(p)}l=f(q,k.module);if(l){return(o[q]=l)}k=dojo.ns.require(n);if((k)&&(k.resolver)){k.resolve(p);l=f(q,k.module);if(l){return(o[q]=l)}}dojo.deprecated("dojo.widget.Manager.getImplementationName",'Could not locate widget implementation for "'+p+'" in "'+k.module+'" registered to namespace "'+k.name+'". Developers must specify correct namespaces for all non-Dojo widgets',"0.5");for(var m=0;m<j.length;m++){l=f(q,j[m]);if(l){return(o[q]=l)}}throw new Error('Could not locate widget implementation for "'+p+'" in "'+k.module+'" registered to namespace "'+k.name+'"')};this.resizing=false;this.onWindowResized=function(){if(this.resizing){return}try{this.resizing=true;for(var m in this.topWidgets){var l=this.topWidgets[m];if(l.checkSize){l.checkSize()}}}catch(k){}finally{this.resizing=false}};if(typeof window!="undefined"){dojo.addOnLoad(this,"onWindowResized");dojo.event.connect(window,"onresize",this,"onWindowResized")}};(function(){var b=dojo.widget;var a=b.manager;var c=dojo.lang.curry(dojo.lang,"hitch",a);var d=function(g,f){b[(f||g)]=c(g)};d("add","addWidget");d("destroyAll","destroyAllWidgets");d("remove","removeWidget");d("removeById","removeWidgetById");d("getWidgetById");d("getWidgetById","byId");d("getWidgetsByType");d("getWidgetsByFilter");d("getWidgetsByType","byType");d("getWidgetsByFilter","byFilter");d("getWidgetByNode","byNode");b.all=function(g){var f=a.getAllWidgets.apply(a,arguments);if(arguments.length>0){return f[g]}return f};d("registerWidgetPackage");d("getImplementation","getWidgetImplementation");d("getImplementationName","getWidgetImplementationName");b.widgets=a.widgets;b.widgetIds=a.widgetIds;b.root=a.root})();dojo.provide("dojo.a11y");dojo.a11y={imgPath:dojo.uri.dojoUri("src/widget/templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){if(this.accessible===null){this.accessible=false;if(this.doAccessibleCheck==true){this.accessible=this.testAccessible()}}return this.accessible},testAccessible:function(){this.accessible=false;if(dojo.render.html.ie||dojo.render.html.mozilla){var d=document.createElement("div");d.style.backgroundImage='url("'+this.imgPath+'/tab_close.gif")';dojo.body().appendChild(d);var a=null;if(window.getComputedStyle){var b=getComputedStyle(d,"");a=b.getPropertyValue("background-image")}else{a=d.currentStyle.backgroundImage}var c=false;if(a!=null&&(a=="none"||a=="url(invalid-url:)")){this.accessible=true}dojo.body().removeChild(d)}return this.accessible},setCheckAccessible:function(a){this.doAccessibleCheck=a},setAccessibleMode:function(){if(this.accessible===null){if(this.checkAccessible()){dojo.render.html.prefixes.unshift("a11y")}}return this.accessible}};dojo.provide("dojo.widget.Widget");dojo.declare("dojo.widget.Widget",null,function(){this.children=[];this.extraArgs={}},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){return(this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase()},toString:function(){return"[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]"},repr:function(){return this.toString()},enable:function(){this.disabled=false},disable:function(){this.disabled=true},onResized:function(){this.notifyChildrenOfResize()},notifyChildrenOfResize:function(){for(var a=0;a<this.children.length;a++){var b=this.children[a];if(b.onResized){b.onResized()}}},create:function(b,a,d,c){if(c){this.ns=c}this.satisfyPropertySets(b,a,d);this.mixInProperties(b,a,d);this.postMixInProperties(b,a,d);dojo.widget.manager.add(this);this.buildRendering(b,a,d);this.initialize(b,a,d);this.postInitialize(b,a,d);this.postCreate(b,a,d);return this},destroy:function(a){if(this.parent){this.parent.removeChild(this)}this.destroyChildren();this.uninitialize();this.destroyRendering(a);dojo.widget.manager.removeById(this.widgetId)},destroyChildren:function(){var b;var a=0;while(this.children.length>a){b=this.children[a];if(b instanceof dojo.widget.Widget){this.removeChild(b);b.destroy();continue}a++}},getChildrenOfType:function(c,d){var b=[];var f=dojo.lang.isFunction(c);if(!f){c=c.toLowerCase()}for(var a=0;a<this.children.length;a++){if(f){if(this.children[a] instanceof c){b.push(this.children[a])}}else{if(this.children[a].widgetType.toLowerCase()==c){b.push(this.children[a])}}if(d){b=b.concat(this.children[a].getChildrenOfType(c,d))}}return b},getDescendants:function(){var b=[];var a=[this];var c;while((c=a.pop())){b.push(c);if(c.children){dojo.lang.forEach(c.children,function(d){a.push(d)})}}return b},isFirstChild:function(){return this===this.parent.children[0]},isLastChild:function(){return this===this.parent.children[this.parent.children.length-1]},satisfyPropertySets:function(a){return a},mixInProperties:function(f,l){if((f.fastMixIn)||(l.fastMixIn)){for(var j in f){this[j]=f[j]}return}var b;var d=dojo.widget.lcArgsCache[this.widgetType];if(d==null){d={};for(var h in this){d[((new String(h)).toLowerCase())]=h}dojo.widget.lcArgsCache[this.widgetType]=d}var g={};for(var j in f){if(!this[j]){var h=d[(new String(j)).toLowerCase()];if(h){f[h]=f[j];j=h}}if(g[j]){continue}g[j]=true;if((typeof this[j])!=(typeof b)){if(typeof f[j]!="string"){this[j]=f[j]}else{if(dojo.lang.isString(this[j])){this[j]=f[j]}else{if(dojo.lang.isNumber(this[j])){this[j]=new Number(f[j])}else{if(dojo.lang.isBoolean(this[j])){this[j]=(f[j].toLowerCase()=="false")?false:true}else{if(dojo.lang.isFunction(this[j])){if(f[j].search(/[^\w\.]+/i)==-1){this[j]=dojo.evalObjPath(f[j],false)}else{var k=dojo.lang.nameAnonFunc(new Function(f[j]),this);dojo.event.kwConnect({srcObj:this,srcFunc:j,adviceObj:this,adviceFunc:k})}}else{if(dojo.lang.isArray(this[j])){this[j]=f[j].split(";")}else{if(this[j] instanceof Date){this[j]=new Date(Number(f[j]))}else{if(typeof this[j]=="object"){if(this[j] instanceof dojo.uri.Uri){this[j]=dojo.uri.dojoUri(f[j])}else{var a=f[j].split(";");for(var h=0;h<a.length;h++){var c=a[h].indexOf(":");if((c!=-1)&&(a[h].length>c)){this[j][a[h].substr(0,c).replace(/^\s+|\s+$/g,"")]=a[h].substr(c+1)}}}}else{this[j]=f[j]}}}}}}}}}else{this.extraArgs[j.toLowerCase()]=f[j]}}},postMixInProperties:function(a,c,b){},initialize:function(a,c,b){return false},postInitialize:function(a,c,b){return false},postCreate:function(a,c,b){return false},uninitialize:function(){return false},buildRendering:function(a,c,b){dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");return false},destroyRendering:function(){dojo.unimplemented("dojo.widget.Widget.destroyRendering");return false},addedTo:function(a){},addChild:function(a){dojo.unimplemented("dojo.widget.Widget.addChild");return false},removeChild:function(b){for(var a=0;a<this.children.length;a++){if(this.children[a]===b){this.children.splice(a,1);b.parent=null;break}}return b},getPreviousSibling:function(){var a=this.getParentIndex();if(a<=0){return null}return this.parent.children[a-1]},getSiblings:function(){return this.parent.children},getParentIndex:function(){return dojo.lang.indexOf(this.parent.children,this,true)},getNextSibling:function(){var a=this.getParentIndex();if(a==this.parent.children.length-1){return null}if(a<0){return null}return this.parent.children[a+1]}});dojo.widget.lcArgsCache={};dojo.widget.tags={};dojo.widget.tags.addParseTreeHandler=function(a){dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5")};dojo.widget.tags["dojo:propertyset"]=function(a,c,d){var b=c.parseProperties(a["dojo:propertyset"])};dojo.widget.tags["dojo:connect"]=function(a,c,d){var b=c.parseProperties(a["dojo:connect"])};dojo.widget.buildWidgetFromParseTree=function(g,l,a,j,b,k){dojo.a11y.setAccessibleMode();var h=g.split(":");h=(h.length==2)?h[1]:g;var f=k||a.parseProperties(l[l.ns+":"+h]);var c=dojo.widget.manager.getImplementation(h,null,null,l.ns);if(!c){throw new Error('cannot find "'+g+'" widget')}else{if(!c.create){throw new Error('"'+g+'" widget object has no "create" method and does not appear to implement *Widget')}}f.dojoinsertionindex=b;var d=c.create(f,l,j,l.ns);return d};dojo.widget.defineWidget=function(g,c,h,f,b){if(dojo.lang.isString(arguments[3])){dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2])}else{var a=[arguments[0]],d=3;if(dojo.lang.isString(arguments[1])){a.push(arguments[1],arguments[2])}else{a.push("",arguments[1]);d=2}if(dojo.lang.isFunction(arguments[d])){a.push(arguments[d],arguments[d+1])}else{a.push(null,arguments[d])}dojo.widget._defineWidget.apply(this,a)}};dojo.widget.defineWidget.renderers="html|svg|vml";dojo.widget._defineWidget=function(f,h,g,m,j){var d=f.split(".");var k=d.pop();var c="\\.("+(h?h+"|":"")+dojo.widget.defineWidget.renderers+")\\.";var a=f.search(new RegExp(c));d=(a<0?d.join("."):f.substr(0,a));dojo.widget.manager.registerWidgetPackage(d);var l=d.indexOf(".");var b=(l>-1)?d.substring(0,l):d;j=(j)||{};j.widgetType=k;if((!m)&&(j.classConstructor)){m=j.classConstructor;delete j.classConstructor}dojo.declare(f,g,m,j)};dojo.provide("dojo.widget.Parse");dojo.widget.Parse=function(a){this.propertySetsList=[];this.fragment=a;this.createComponents=function(m,j){var b=[];var c=false;try{if(m&&m.tagName&&(m!=m.nodeRef)){var l=dojo.widget.tags;var h=String(m.tagName).split(";");for(var k=0;k<h.length;k++){var d=h[k].replace(/^\s+|\s+$/g,"").toLowerCase();m.tagName=d;var g;if(l[d]){c=true;g=l[d](m,this,j,m.index);b.push(g)}else{if(d.indexOf(":")==-1){d="dojo:"+d}g=dojo.widget.buildWidgetFromParseTree(d,m,this,j,m.index);if(g){c=true;b.push(g)}}}}}catch(f){dojo.debug("dojo.widget.Parse: error:",f)}if(!c){b=b.concat(this.createSubComponents(m,j))}return b};this.createSubComponents=function(b,d){var g,f=[];for(var c in b){g=b[c];if(g&&typeof g=="object"&&(g!=b.nodeRef)&&(g!=b.tagName)&&(!dojo.dom.isNode(g))){f=f.concat(this.createComponents(g,d))}}return f};this.parsePropertySets=function(b){return[]};this.parseProperties=function(c){var d={};for(var f in c){if((c[f]==c.tagName)||(c[f]==c.nodeRef)){}else{var k=c[f];if(k.tagName&&dojo.widget.tags[k.tagName.toLowerCase()]){}else{if(k[0]&&k[0].value!=""&&k[0].value!=null){try{if(f.toLowerCase()=="dataprovider"){var j=this;this.getDataProvider(j,k[0].value);d.dataProvider=this.dataProvider}d[f]=k[0].value;var b=this.parseProperties(k);for(var g in b){d[g]=b[g]}}catch(h){dojo.debug(h)}}}switch(f.toLowerCase()){case"checked":case"disabled":if(typeof d[f]!="boolean"){d[f]=true}break}}}return d};this.getDataProvider=function(c,b){dojo.io.bind({url:b,load:function(f,d){if(f=="load"){c.dataProvider=d}},mimetype:"text/javascript",sync:true})};this.getPropertySetById=function(c){for(var b=0;b<this.propertySetsList.length;b++){if(c==this.propertySetsList[b]["id"][0].value){return this.propertySetsList[b]}}return""};this.getPropertySetsByType=function(d){var f=[];for(var b=0;b<this.propertySetsList.length;b++){var g=this.propertySetsList[b];var c=g.componentClass||g.componentType||null;var h=this.propertySetsList[b]["id"][0].value;if(c&&(h==c[0].value)){f.push(g)}}return f};this.getPropertySets=function(c){var h="dojo:propertyproviderlist";var d=[];var g=c.tagName;if(c[h]){var j=c[h].value.split(" ");for(var f in j){if((f.indexOf("..")==-1)&&(f.indexOf("://")==-1)){var b=this.getPropertySetById(f);if(b!=""){d.push(b)}}else{}}}return this.getPropertySetsByType(g).concat(d)};this.createComponentFromScript=function(f,b,c,d){c.fastMixIn=true;var g=(d||"dojo")+":"+b.toLowerCase();if(dojo.widget.tags[g]){return[dojo.widget.tags[g](c,this,null,null,c)]}return[dojo.widget.buildWidgetFromParseTree(g,c,this,null,null,c)]}};dojo.widget._parser_collection={dojo:new dojo.widget.Parse()};dojo.widget.getParser=function(a){if(!a){a="dojo"}if(!this._parser_collection[a]){this._parser_collection[a]=new dojo.widget.Parse()}return this._parser_collection[a]};dojo.widget.createWidget=function(b,o,m,k){var s=false;var r=(typeof b=="string");if(r){var p=b.indexOf(":");var q=(p>-1)?b.substring(0,p):"dojo";if(p>-1){b=b.substring(p+1)}var f=b.toLowerCase();var c=q+":"+f;s=(dojo.byId(b)&&!dojo.widget.tags[c])}if((arguments.length==1)&&(s||!r)){var g=new dojo.xml.Parse();var t=s?dojo.byId(b):b;return dojo.widget.getParser().createComponents(g.parseElement(t,null,true))[0]}function d(w,h,v,u){v[c]={dojotype:[{value:f}],nodeRef:w,fastMixIn:true};v.ns=u;return dojo.widget.getParser().createComponentFromScript(w,h,v,u)}o=o||{};var a=false;var t=null;var j=dojo.render.html.capable;if(j){t=document.createElement("span")}if(!m){a=true;m=t;if(j){dojo.body().appendChild(m)}}else{if(k){dojo.dom.insertAtPosition(t,m,k)}else{t=m}}var l=d(t,b.toLowerCase(),o,q);if((!l)||(!l[0])||(typeof l[0].widgetType=="undefined")){throw new Error('createWidget: Creation of "'+b+'" widget failed.')}try{if(a&&l[0].domNode.parentNode){l[0].domNode.parentNode.removeChild(l[0].domNode)}}catch(n){dojo.debug(n)}return l[0]};dojo.provide("dojo.widget.DomWidget");dojo.widget._cssFiles={};dojo.widget._cssStrings={};dojo.widget._templateCache={};dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};dojo.widget.fillFromTemplateCache=function(b,k,g,a){var l=k||b.templatePath;var m=dojo.widget._templateCache;if(!l&&!b.widgetType){do{var j="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++}while(m[j]);b.widgetType=j}var f=l?l.toString():b.widgetType;var h=m[f];if(!h){m[f]={string:null,node:null};if(a){h={}}else{h=m[f]}}if((!b.templateString)&&(!a)){b.templateString=g||h.string}if((!b.templateNode)&&(!a)){b.templateNode=h.node}if((!b.templateNode)&&(!b.templateString)&&(l)){var d=dojo.hostenv.getText(l);if(d){d=d.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var c=d.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(c){d=c[1]}}else{d=""}b.templateString=d;if(!a){m[f]["string"]=d}}if((!h.string)&&(!a)){h.string=b.templateString}};dojo.widget._templateCache.dummyCount=0;dojo.widget.attachProperties=["dojoAttachPoint","id"];dojo.widget.eventAttachProperty="dojoAttachEvent";dojo.widget.onBuildProperty="dojoOnBuild";dojo.widget.waiNames=["waiRole","waiState"];dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(c,b,a,d){if(dojo.render.html.ie){c.setAttribute(this[b].alias+":"+a,this[b].prefix+d)}else{c.setAttributeNS(this[b]["namespace"],a,this[b].prefix+d)}},getAttr:function(c,b,a){if(dojo.render.html.ie){return c.getAttribute(this[b].alias+":"+a)}else{return c.getAttributeNS(this[b]["namespace"],a)}},removeAttr:function(c,b,a){var d=true;if(dojo.render.html.ie){d=c.removeAttribute(this[b].alias+":"+a)}else{c.removeAttributeNS(this[b]["namespace"],a)}return d}};dojo.widget.attachTemplateNodes=function(rootNode,targetObj,events){var elementNodeType=dojo.dom.ELEMENT_NODE;function trim(str){return str.replace(/^\s+|\s+$/g,"")}if(!rootNode){rootNode=targetObj.domNode}if(rootNode.nodeType!=elementNodeType){return}var nodes=rootNode.all||rootNode.getElementsByTagName("*");var _this=targetObj;for(var x=-1;x<nodes.length;x++){var baseNode=(x==-1)?rootNode:nodes[x];var attachPoint=[];if(!targetObj.widgetsInTemplate||!baseNode.getAttribute("dojoType")){for(var y=0;y<this.attachProperties.length;y++){var tmpAttachPoint=baseNode.getAttribute(this.attachProperties[y]);if(tmpAttachPoint){attachPoint=tmpAttachPoint.split(";");for(var z=0;z<attachPoint.length;z++){if(dojo.lang.isArray(targetObj[attachPoint[z]])){targetObj[attachPoint[z]].push(baseNode)}else{targetObj[attachPoint[z]]=baseNode}}break}}var attachEvent=baseNode.getAttribute(this.eventAttachProperty);if(attachEvent){var evts=attachEvent.split(";");for(var y=0;y<evts.length;y++){if((!evts[y])||(!evts[y].length)){continue}var thisFunc=null;var tevt=trim(evts[y]);if(evts[y].indexOf(":")>=0){var funcNameArr=tevt.split(":");tevt=trim(funcNameArr[0]);thisFunc=trim(funcNameArr[1])}if(!thisFunc){thisFunc=tevt}var tf=function(){var ntf=new String(thisFunc);return function(evt){if(_this[ntf]){_this[ntf](dojo.event.browser.fixEvent(evt,this))}}}();dojo.event.browser.addListener(baseNode,tevt,tf,false,true)}}for(var y=0;y<events.length;y++){var evtVal=baseNode.getAttribute(events[y]);if((evtVal)&&(evtVal.length)){var thisFunc=null;var domEvt=events[y].substr(4);thisFunc=trim(evtVal);var funcs=[thisFunc];if(thisFunc.indexOf(";")>=0){funcs=dojo.lang.map(thisFunc.split(";"),trim)}for(var z=0;z<funcs.length;z++){if(!funcs[z].length){continue}var tf=function(){var ntf=new String(funcs[z]);return function(evt){if(_this[ntf]){_this[ntf](dojo.event.browser.fixEvent(evt,this))}}}();dojo.event.browser.addListener(baseNode,domEvt,tf,false,true)}}}}var tmpltPoint=baseNode.getAttribute(this.templateProperty);if(tmpltPoint){targetObj[tmpltPoint]=baseNode}dojo.lang.forEach(dojo.widget.waiNames,function(name){var wai=dojo.widget.wai[name];var val=baseNode.getAttribute(wai.name);if(val){if(val.indexOf("-")==-1){dojo.widget.wai.setAttr(baseNode,wai.name,"role",val)}else{var statePair=val.split("-");dojo.widget.wai.setAttr(baseNode,wai.name,statePair[0],statePair[1])}}},this);var onBuild=baseNode.getAttribute(this.onBuildProperty);if(onBuild){eval("var node = baseNode; var widget = targetObj; "+onBuild)}}};dojo.widget.getDojoEventsFromStr=function(h){var g=/(dojoOn([a-z]+)(\s?))=/gi;var d=h?h.match(g)||[]:[];var f=[];var c={};for(var b=0;b<d.length;b++){if(d[b].length<1){continue}var a=d[b].replace(/\s/,"");a=(a.slice(0,a.length-1));if(!c[a]){c[a]=true;f.push(a)}}return f};dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){if((arguments.length>0)&&(typeof arguments[0]=="object")){this.create(arguments[0])}},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(d,b,f,c,a){if(!this.isContainer){dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");return null}else{if(a==undefined){a=this.children.length}this.addWidgetAsDirectChild(d,b,f,c,a);this.registerChild(d,a)}return d},addWidgetAsDirectChild:function(d,b,g,c,a){if((!this.containerNode)&&(!b)){this.containerNode=this.domNode}var f=(b)?b:this.containerNode;if(!g){g="after"}if(!c){if(!f){f=dojo.body()}c=f.lastChild}if(!a){a=0}d.domNode.setAttribute("dojoinsertionindex",a);if(!c){f.appendChild(d.domNode)}else{if(g=="insertAtIndex"){dojo.dom.insertAtIndex(d.domNode,c.parentNode,a)}else{if((g=="after")&&(c===f.lastChild)){f.appendChild(d.domNode)}else{dojo.dom.insertAtPosition(d.domNode,f,g)}}}},registerChild:function(d,c){d.dojoInsertionIndex=c;var a=-1;for(var b=0;b<this.children.length;b++){if(this.children[b].dojoInsertionIndex<=c){a=b}}this.children.splice(a+1,0,d);d.parent=this;d.addedTo(this,a+1);delete dojo.widget.manager.topWidgets[d.widgetId]},removeChild:function(a){dojo.dom.removeNode(a.domNode);return dojo.widget.DomWidget.superclass.removeChild.call(this,a)},getFragNodeRef:function(a){if(!a){return null}if(!a[this.getNamespacedType()]){dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)")}return a[this.getNamespacedType()]["nodeRef"]},postInitialize:function(c,b,p){var n=this.getFragNodeRef(b);if(p&&(p.snarfChildDomOutput||!n)){p.addWidgetAsDirectChild(this,"","insertAtIndex","",c.dojoinsertionindex,n)}else{if(n){if(this.domNode&&(this.domNode!==n)){this._sourceNodeRef=dojo.dom.replaceNode(n,this.domNode)}}}if(p){p.registerChild(this,c.dojoinsertionindex)}else{dojo.widget.manager.topWidgets[this.widgetId]=this}if(this.widgetsInTemplate){var f=new dojo.xml.Parse();var t;var x=this.domNode.getElementsByTagName("*");for(var r=0;r<x.length;r++){if(x[r].getAttribute("dojoAttachPoint")=="subContainerWidget"){t=x[r]}if(x[r].getAttribute("dojoType")){x[r].setAttribute("isSubWidget",true)}}if(this.isContainer&&!this.containerNode){if(t){var l=this.getFragNodeRef(b);if(l){dojo.dom.moveChildren(l,t);b.dojoDontFollow=true}}else{dojo.debug("No subContainerWidget node can be found in template file for widget "+this)}}var d=f.parseElement(this.domNode,null,true);dojo.widget.getParser().createSubComponents(d,this);var v=[];var h=[this];var o;while((o=h.pop())){for(var r=0;r<o.children.length;r++){var k=o.children[r];if(k._processedSubWidgets||!k.extraArgs.issubwidget){continue}v.push(k);if(k.isContainer){h.push(k)}}}for(var r=0;r<v.length;r++){var g=v[r];if(g._processedSubWidgets){dojo.debug("This should not happen: widget._processedSubWidgets is already true!");return}g._processedSubWidgets=true;if(g.extraArgs.dojoattachevent){var m=g.extraArgs.dojoattachevent.split(";");for(var q=0;q<m.length;q++){var a=null;var u=dojo.string.trim(m[q]);if(u.indexOf(":")>=0){var s=u.split(":");u=dojo.string.trim(s[0]);a=dojo.string.trim(s[1])}if(!a){a=u}if(dojo.lang.isFunction(g[u])){dojo.event.kwConnect({srcObj:g,srcFunc:u,targetObj:this,targetFunc:a})}else{alert(u+" is not a function in widget "+g)}}}if(g.extraArgs.dojoattachpoint){this[g.extraArgs.dojoattachpoint]=g}}}if(this.isContainer&&!b.dojoDontFollow){dojo.widget.getParser().createSubComponents(b,this)}},buildRendering:function(a,d){var b=dojo.widget._templateCache[this.widgetType];if(a.templatecsspath){a.templateCssPath=a.templatecsspath}var c=a.templateCssPath||this.templateCssPath;if(c&&!dojo.widget._cssFiles[c.toString()]){if((!this.templateCssString)&&(c)){this.templateCssString=dojo.hostenv.getText(c);this.templateCssPath=null}dojo.widget._cssFiles[c.toString()]=true}if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){dojo.html.insertCssText(this.templateCssString,null,c);dojo.widget._cssStrings[this.templateCssString]=true}if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof b!="undefined")&&((b.string)||(b.node))))){this.buildFromTemplate(a,d)}else{this.domNode=this.getFragNodeRef(d)}this.fillInTemplate(a,d)},buildFromTemplate:function(l,o){var d=false;if(l.templatepath){l.templatePath=l.templatepath}dojo.widget.fillFromTemplateCache(this,l.templatePath,null,d);var k=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];if((k)&&(!d)){if(!this.templateString.length){this.templateString=k.string}if(!this.templateNode){this.templateNode=k.node}}var j=false;var b=null;var h=this.templateString;if((!this.templateNode)&&(this.templateString)){j=this.templateString.match(/\$\{([^\}]+)\}/g);if(j){var g=this.strings||{};for(var n in dojo.widget.defaultStrings){if(dojo.lang.isUndefined(g[n])){g[n]=dojo.widget.defaultStrings[n]}}for(var f=0;f<j.length;f++){var n=j[f];n=n.substring(2,n.length-1);var c=(n.substring(0,5)=="this.")?dojo.lang.getObjPathValue(n.substring(5),this):g[n];var m;if((c)||(dojo.lang.isString(c))){m=new String((dojo.lang.isFunction(c))?c.call(this,n,this.templateString):c);while(m.indexOf('"')>-1){m=m.replace('"',"&quot;")}h=h.replace(j[f],m)}}}else{this.templateNode=this.createNodesFromText(this.templateString,true)[0];if(!d){k.node=this.templateNode}}}if((!this.templateNode)&&(!j)){dojo.debug("DomWidget.buildFromTemplate: could not create template");return false}else{if(!j){b=this.templateNode.cloneNode(true);if(!b){return false}}else{b=this.createNodesFromText(h,true)[0]}}this.domNode=b;this.attachTemplateNodes();if(this.isContainer&&this.containerNode){var a=this.getFragNodeRef(o);if(a){dojo.dom.moveChildren(a,this.containerNode)}}},attachTemplateNodes:function(b,a){if(!b){b=this.domNode}if(!a){a=this}return dojo.widget.attachTemplateNodes(b,a,dojo.widget.getDojoEventsFromStr(this.templateString))},fillInTemplate:function(){},destroyRendering:function(){try{dojo.dom.destroyNode(this.domNode);delete this.domNode}catch(a){}if(this._sourceNodeRef){try{dojo.dom.destroyNode(this._sourceNodeRef)}catch(a){}}},createNodesFromText:function(){dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText")}});dojo.provide("dojo.lfx.toggle");dojo.lfx.toggle.plain={show:function(a,b,d,c){dojo.html.show(a);if(dojo.lang.isFunction(c)){c()}},hide:function(a,b,d,c){dojo.html.hide(a);if(dojo.lang.isFunction(c)){c()}}};dojo.lfx.toggle.fade={show:function(a,b,d,c){dojo.lfx.fadeShow(a,b,d,c).play()},hide:function(a,b,d,c){dojo.lfx.fadeHide(a,b,d,c).play()}};dojo.lfx.toggle.wipe={show:function(a,b,d,c){dojo.lfx.wipeIn(a,b,d,c).play()},hide:function(a,b,d,c){dojo.lfx.wipeOut(a,b,d,c).play()}};dojo.lfx.toggle.explode={show:function(b,c,f,d,a){dojo.lfx.explode(a||{x:0,y:0,width:0,height:0},b,c,f,d).play()},hide:function(b,c,f,d,a){dojo.lfx.implode(b,a||{x:0,y:0,width:0,height:0},c,f,d).play()}};dojo.provide("dojo.widget.HtmlWidget");dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(a,b){},postMixInProperties:function(a,b){if(this.lang===""){this.lang=null}this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain},createNodesFromText:function(a,b){return dojo.html.createNodesFromText(a,b)},destroyRendering:function(b){try{if(this.bgIframe){this.bgIframe.remove();delete this.bgIframe}if(!b&&this.domNode){dojo.event.browser.clean(this.domNode)}dojo.widget.HtmlWidget.superclass.destroyRendering.call(this)}catch(a){}},isShowing:function(){return dojo.html.isShowing(this.domNode)},toggleShowing:function(){if(this.isShowing()){this.hide()}else{this.show()}},show:function(){if(this.isShowing()){return}this.animationInProgress=true;this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc)},onShow:function(){this.animationInProgress=false;this.checkSize()},hide:function(){if(!this.isShowing()){return}this.animationInProgress=true;this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc)},onHide:function(){this.animationInProgress=false},_isResized:function(c,f){if(!this.isShowing()){return false}var b=dojo.html.getMarginBox(this.domNode);var d=c||b.width;var a=f||b.height;if(this.width==d&&this.height==a){return false}this.width=d;this.height=a;return true},checkSize:function(){if(!this._isResized()){return}this.onResized()},resizeTo:function(a,b){dojo.html.setMarginBox(this.domNode,{width:a,height:b});if(this.isShowing()){this.onResized()}},resizeSoon:function(){if(this.isShowing()){dojo.lang.setTimeout(this,this.onResized,0)}},onResized:function(){dojo.lang.forEach(this.children,function(a){if(a.checkSize){a.checkSize()}})}});dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});dojo.provide("dojo.widget.*");dojo.provide("dojo.widget.Button");dojo.widget.defineWidget("dojo.widget.Button",dojo.widget.HtmlWidget,{isContainer:true,caption:"",templatePath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.css"),inactiveImg:"src/widget/templates/images/soriaButton-",activeImg:"src/widget/templates/images/soriaActive-",pressedImg:"src/widget/templates/images/soriaPressed-",disabledImg:"src/widget/templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){if(this.caption){this.containerNode.appendChild(document.createTextNode(this.caption))}dojo.html.disableSelection(this.containerNode)},postCreate:function(){this._sizeMyself()},_sizeMyself:function(){if(this.domNode.parentNode){var a=document.createElement("span");dojo.html.insertBefore(a,this.domNode)}dojo.body().appendChild(this.domNode);this._sizeMyselfHelper();if(a){dojo.html.insertBefore(this.domNode,a);dojo.html.removeNode(a)}},_sizeMyselfHelper:function(){var b=dojo.html.getMarginBox(this.containerNode);this.height=b.height;this.containerWidth=b.width;var a=this.height*this.width2height;this.containerNode.style.left=a+"px";this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;this.leftImage.width=this.rightImage.width=a+1;this.centerImage.width=this.containerWidth;this.centerImage.style.left=a+"px";this._setImage(this.disabled?this.disabledImg:this.inactiveImg);if(this.disabled){dojo.html.prependClass(this.domNode,"dojoButtonDisabled");this.domNode.removeAttribute("tabIndex");dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true)}else{dojo.html.removeClass(this.domNode,"dojoButtonDisabled");this.domNode.setAttribute("tabIndex","0");dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false)}this.domNode.style.height=this.height+"px";this.domNode.style.width=(this.containerWidth+2*a)+"px"},onMouseOver:function(a){if(this.disabled){return}dojo.html.prependClass(this.buttonNode,"dojoButtonHover");this._setImage(this.activeImg)},onMouseDown:function(a){if(this.disabled){return}dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed");dojo.html.removeClass(this.buttonNode,"dojoButtonHover");this._setImage(this.pressedImg)},onMouseUp:function(a){if(this.disabled){return}dojo.html.prependClass(this.buttonNode,"dojoButtonHover");dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");this._setImage(this.activeImg)},onMouseOut:function(a){if(this.disabled){return}if(a.toElement&&dojo.html.isDescendantOf(a.toElement,this.buttonNode)){return}dojo.html.removeClass(this.buttonNode,"dojoButtonHover");dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");this._setImage(this.inactiveImg)},onKey:function(a){if(!a.key){return}var b=dojo.widget.getWidgetById(this.menuId);if(a.key==a.KEY_ENTER||a.key==" "){this.onMouseDown(a);this.buttonClick(a);dojo.lang.setTimeout(this,"onMouseUp",75,a);dojo.event.browser.stopEvent(a)}if(b&&b.isShowingNow&&a.key==a.KEY_DOWN_ARROW){dojo.event.disconnect(this.domNode,"onblur",this,"onBlur")}},onFocus:function(a){var b=dojo.widget.getWidgetById(this.menuId);if(b){dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur")}},onBlur:function(a){var b=dojo.widget.getWidgetById(this.menuId);if(!b){return}if(b.close&&b.isShowingNow){b.close()}},buttonClick:function(b){if(!this.disabled){try{this.domNode.focus()}catch(a){}this.onClick(b)}},onClick:function(a){},_setImage:function(a){this.leftImage.src=dojo.uri.dojoUri(a+"l.gif");this.centerImage.src=dojo.uri.dojoUri(a+"c.gif");this.rightImage.src=dojo.uri.dojoUri(a+"r.gif")},_toggleMenu:function(c){var a=dojo.widget.getWidgetById(c);if(!a){return}if(a.open&&!a.isShowingNow){var b=dojo.html.getAbsolutePosition(this.domNode,false);a.open(b.x,b.y+this.height,this)}else{if(a.close&&a.isShowingNow){a.close()}else{a.toggle()}}},setCaption:function(a){this.caption=a;this.containerNode.innerHTML=a;this._sizeMyself()},setDisabled:function(a){this.disabled=a;this._sizeMyself()}});dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"src/widget/templates/images/whiteDownArrow.gif",disabledDownArrow:"src/widget/templates/images/whiteDownArrow.gif",fillInTemplate:function(){dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments);this.arrow=document.createElement("img");dojo.html.setClass(this.arrow,"downArrow");dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId)},_sizeMyselfHelper:function(){this.arrow.src=dojo.uri.dojoUri(this.disabled?this.disabledDownArrow:this.downArrow);this.containerNode.appendChild(this.arrow);dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this)},onClick:function(a){this._toggleMenu(this.menuId)}});dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templatePath:dojo.uri.dojoUri("src/widget/templates/ComboButtonTemplate.html"),splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(b){var d=dojo.html.getMarginBox(this.containerNode);this.height=d.height;this.containerWidth=d.width;var c=this.height/3;if(this.disabled){dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);this.domNode.removeAttribute("tabIndex")}else{dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);this.domNode.setAttribute("tabIndex","0")}this.leftImage.height=this.rightImage.height=this.centerImage.height=this.arrowBackgroundImage.height=this.height;this.leftImage.width=c+1;this.centerImage.width=this.containerWidth;this.buttonNode.style.height=this.height+"px";this.buttonNode.style.width=c+this.containerWidth+"px";this._setImage(this.disabled?this.disabledImg:this.inactiveImg);this.arrowBackgroundImage.width=this.arrowWidth;this.rightImage.width=c+1;this.rightPart.style.height=this.height+"px";this.rightPart.style.width=this.arrowWidth+c+"px";this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);this.domNode.style.height=this.height+"px";var a=this.containerWidth+this.splitWidth+this.arrowWidth+2*c;this.domNode.style.width=a+"px"},_setImage:function(a){this.leftImage.src=dojo.uri.dojoUri(a+"l.gif");this.centerImage.src=dojo.uri.dojoUri(a+"c.gif")},rightOver:function(a){if(this.disabled){return}dojo.html.prependClass(this.rightPart,"dojoButtonHover");this._setImageR(this.activeImg)},rightDown:function(a){if(this.disabled){return}dojo.html.prependClass(this.rightPart,"dojoButtonDepressed");dojo.html.removeClass(this.rightPart,"dojoButtonHover");this._setImageR(this.pressedImg)},rightUp:function(a){if(this.disabled){return}dojo.html.prependClass(this.rightPart,"dojoButtonHover");dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");this._setImageR(this.activeImg)},rightOut:function(a){if(this.disabled){return}dojo.html.removeClass(this.rightPart,"dojoButtonHover");dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");this._setImageR(this.inactiveImg)},rightClick:function(b){if(this.disabled){return}try{this.domNode.focus()}catch(a){}this._toggleMenu(this.menuId)},_setImageR:function(a){this.arrowBackgroundImage.src=dojo.uri.dojoUri(a+"c.gif");this.rightImage.src=dojo.uri.dojoUri(a+"r.gif")},onKey:function(a){if(!a.key){return}var b=dojo.widget.getWidgetById(this.menuId);if(a.key==a.KEY_ENTER||a.key==" "){this.onMouseDown(a);this.buttonClick(a);dojo.lang.setTimeout(this,"onMouseUp",75,a);dojo.event.browser.stopEvent(a)}else{if(a.key==a.KEY_DOWN_ARROW&&a.altKey){this.rightDown(a);this.rightClick(a);dojo.lang.setTimeout(this,"rightUp",75,a);dojo.event.browser.stopEvent(a)}else{if(b&&b.isShowingNow&&a.key==a.KEY_DOWN_ARROW){dojo.event.disconnect(this.domNode,"onblur",this,"onBlur")}}}}});dojo.provide("dojo.widget.html.stabile");dojo.widget.html.stabile={_sqQuotables:new RegExp("([\\\\'])","g"),_depth:0,_recur:false,depthLimit:2};dojo.widget.html.stabile.getState=function(a){dojo.widget.html.stabile.setup();return dojo.widget.html.stabile.widgetState[a]};dojo.widget.html.stabile.setState=function(c,b,a){dojo.widget.html.stabile.setup();dojo.widget.html.stabile.widgetState[c]=b;if(a){dojo.widget.html.stabile.commit(dojo.widget.html.stabile.widgetState)}};dojo.widget.html.stabile.setup=function(){if(!dojo.widget.html.stabile.widgetState){var a=dojo.widget.html.stabile._getStorage().value;dojo.widget.html.stabile.widgetState=a?dj_eval("("+a+")"):{}}};dojo.widget.html.stabile.commit=function(a){dojo.widget.html.stabile._getStorage().value=dojo.widget.html.stabile.description(a)};dojo.widget.html.stabile.description=function(m,a){var f=dojo.widget.html.stabile._depth;var n=function(){return this.description(this,true)};try{if(m===void (0)){return"undefined"}if(m===null){return"null"}if(typeof(m)=="boolean"||typeof(m)=="number"||m instanceof Boolean||m instanceof Number){return m.toString()}if(typeof(m)=="string"||m instanceof String){var k=m.replace(dojo.widget.html.stabile._sqQuotables,"\\$1");k=k.replace(/\n/g,"\\n");k=k.replace(/\r/g,"\\r");return"'"+k+"'"}if(m instanceof Date){return"new Date("+j.getFullYear+","+j.getMonth()+","+j.getDate()+")"}var j;if(m instanceof Array||m.push){if(f>=dojo.widget.html.stabile.depthLimit){return"[ ... ]"}j="[";var h=true;dojo.widget.html.stabile._depth++;for(var g=0;g<m.length;g++){if(h){h=false}else{j+=","}j+=arguments.callee(m[g],a)}return j+"]"}if(m.constructor==Object||m.toString==n){if(f>=dojo.widget.html.stabile.depthLimit){return"{ ... }"}if(typeof(m.hasOwnProperty)!="function"&&m.prototype){throw new Error("description: "+m+" not supported by script engine")}var h=true;j="{";dojo.widget.html.stabile._depth++;for(var l in m){if(m[l]==void (0)||typeof(m[l])=="function"){continue}if(h){h=false}else{j+=", "}var c=l;if(!c.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)){c=arguments.callee(l,a)}j+=c+": "+arguments.callee(m[l],a)}return j+"}"}if(a){if(dojo.widget.html.stabile._recur){var b=Object.prototype.toString;return b.apply(m,[])}else{dojo.widget.html.stabile._recur=true;return m.toString()}}else{throw new Error("Unknown type: "+m);return"'unknown'"}}finally{dojo.widget.html.stabile._depth=f}};dojo.widget.html.stabile._getStorage=function(){if(dojo.widget.html.stabile.dataField){return dojo.widget.html.stabile.dataField}var a=document.forms._dojo_form;return dojo.widget.html.stabile.dataField=a?a.stabile:{value:""}};dojo.provide("dojo.widget.PopupContainer");dojo.declare("dojo.widget.PopupContainerBase",null,function(){this.queueOnAnimationFinish=[]},{isContainer:true,templateString:'<div dojoAttachPoint="containerNode" style="display:none;position:absolute;" class="dojoPopupContainer" ></div>',isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(a){return false},applyPopupBasicStyle:function(){with(this.domNode.style){display="none";position="absolute"}},aboutToShow:function(){},open:function(x,y,parent,explodeSrc,orient,padding){if(this.isShowingNow){return}if(this.animationInProgress){this.queueOnAnimationFinish.push(this.open,arguments);return}this.aboutToShow();var around=false,node,aroundOrient;if(typeof x=="object"){node=x;aroundOrient=explodeSrc;explodeSrc=parent;parent=y;around=true}this.parent=parent;dojo.body().appendChild(this.domNode);explodeSrc=explodeSrc||parent.domNode||[];var parentPopup=null;this.isTopLevel=true;while(parent){if(parent!==this&&(parent.setOpenedSubpopup!=undefined&&parent.applyPopupBasicStyle!=undefined)){parentPopup=parent;this.isTopLevel=false;parentPopup.setOpenedSubpopup(this);break}parent=parent.parent}this.parentPopup=parentPopup;this.popupIndex=parentPopup?parentPopup.popupIndex+1:1;if(this.isTopLevel){var button=dojo.html.isNode(explodeSrc)?explodeSrc:null;dojo.widget.PopupManager.opened(this,button)}if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark)}else{this._bookmark=null}if(explodeSrc instanceof Array){explodeSrc={left:explodeSrc[0],top:explodeSrc[1],width:0,height:0}}with(this.domNode.style){display="";zIndex=this.beginZIndex+this.popupIndex}if(around){this.move(node,padding,aroundOrient)}else{this.move(x,y,padding,orient)}this.domNode.style.display="none";this.explodeSrc=explodeSrc;this.show();this.isShowingNow=true},move:function(a,h,f,b){var d=(typeof a=="object");if(d){var g=f;var c=a;f=h;if(!g){g={BL:"TL",TL:"BL"}}dojo.html.placeOnScreenAroundElement(this.domNode,c,f,this.aroundBox,g)}else{if(!b){b="TL,TR,BL,BR"}dojo.html.placeOnScreen(this.domNode,a,h,f,true,b)}},close:function(a){if(a){this.domNode.style.display="none"}if(this.animationInProgress){this.queueOnAnimationFinish.push(this.close,[]);return}this.closeSubpopup(a);this.hide();if(this.bgIframe){this.bgIframe.hide();this.bgIframe.size({left:0,top:0,width:0,height:0})}if(this.isTopLevel){dojo.widget.PopupManager.closed(this)}this.isShowingNow=false;if(this.parent){setTimeout(dojo.lang.hitch(this,function(){try{if(this.parent.focus){this.parent.focus()}else{this.parent.domNode.focus()}}catch(c){dojo.debug("No idea how to focus to parent",c)}}),10)}if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){if(this.openedForWindow){this.openedForWindow.focus()}try{dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark])}catch(b){}}this._bookmark=null},closeAll:function(a){if(this.parentPopup){this.parentPopup.closeAll(a)}else{this.close(a)}},setOpenedSubpopup:function(a){this.currentSubpopup=a},closeSubpopup:function(a){if(this.currentSubpopup==null){return}this.currentSubpopup.close(a);this.currentSubpopup=null},onShow:function(){dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};if(dojo.render.html.ie){if(!this.bgIframe){this.bgIframe=new dojo.html.BackgroundIframe();this.bgIframe.setZIndex(this.domNode)}this.bgIframe.size(this.domNode);this.bgIframe.show()}this.processQueue()},processQueue:function(){if(!this.queueOnAnimationFinish.length){return}var b=this.queueOnAnimationFinish.shift();var a=this.queueOnAnimationFinish.shift();b.apply(this,a)},onHide:function(){dojo.widget.HtmlWidget.prototype.onHide.call(this);if(this.openedSize){with(this.domNode.style){width=this.openedSize.w;height=this.openedSize.h}}this.processQueue()}});dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{});dojo.widget.PopupManager=new function(){this.currentMenu=null;this.currentButton=null;this.currentFocusMenu=null;this.focusNode=null;this.registeredWindows=[];this.registerWin=function(a){if(!a.__PopupManagerRegistered){dojo.event.connect(a.document,"onmousedown",this,"onClick");dojo.event.connect(a,"onscroll",this,"onClick");dojo.event.connect(a.document,"onkey",this,"onKey");a.__PopupManagerRegistered=true;this.registeredWindows.push(a)}};this.registerAllWindows=function(b){if(!b){b=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document)}this.registerWin(b);for(var a=0;a<b.frames.length;a++){try{var d=dojo.html.getDocumentWindow(b.frames[a].document);if(d){this.registerAllWindows(d)}}catch(c){}}};this.unRegisterWin=function(a){if(a.__PopupManagerRegistered){dojo.event.disconnect(a.document,"onmousedown",this,"onClick");dojo.event.disconnect(a,"onscroll",this,"onClick");dojo.event.disconnect(a.document,"onkey",this,"onKey");a.__PopupManagerRegistered=false}};this.unRegisterAllWindows=function(){for(var a=0;a<this.registeredWindows.length;++a){this.unRegisterWin(this.registeredWindows[a])}this.registeredWindows=[]};dojo.addOnLoad(this,"registerAllWindows");dojo.addOnUnload(this,"unRegisterAllWindows");this.closed=function(a){if(this.currentMenu==a){this.currentMenu=null;this.currentButton=null;this.currentFocusMenu=null}};this.opened=function(b,a){if(b==this.currentMenu){return}if(this.currentMenu){this.currentMenu.close()}this.currentMenu=b;this.currentFocusMenu=b;this.currentButton=a};this.setFocusedMenu=function(a){this.currentFocusMenu=a};this.onKey=function(b){if(!b.key){return}if(!this.currentMenu||!this.currentMenu.isShowingNow){return}var a=this.currentFocusMenu;while(a){if(a.processKey(b)){b.preventDefault();b.stopPropagation();break}a=a.parentPopup}},this.onClick=function(c){if(!this.currentMenu){return}var b=dojo.html.getScroll().offset;var a=this.currentMenu;while(a){if(dojo.html.overElement(a.domNode,c)||dojo.html.isDescendantOf(c.target,a.domNode)){return}a=a.currentSubpopup}if(this.currentButton&&dojo.html.overElement(this.currentButton,c)){return}this.currentMenu.close()}};dojo.provide("dojo.widget.ComboBox");dojo.declare("dojo.widget.incrementalComboBoxDataProvider",null,function(a){this.searchUrl=a.dataUrl;this._cache={};this._inFlight=false;this._lastRequest=null;this.allowCache=false},{_addToCache:function(a,b){if(this.allowCache){this._cache[a]=b}},startSearch:function(b,g){if(this._inFlight){}var a=encodeURIComponent(b);var d=dojo.string.substituteParams(this.searchUrl,{searchString:a});var f=this;var c=this._lastRequest=dojo.io.bind({url:d,method:"get",mimetype:"text/json",load:function(l,m,h){f._inFlight=false;if(!dojo.lang.isArray(m)){var j=[];for(var k in m){j.push([m[k],k])}m=j}f._addToCache(b,m);if(c==f._lastRequest){g(m)}}});this._inFlight=true}});dojo.declare("dojo.widget.basicComboBoxDataProvider",null,function(c,g){this._data=[];this.searchLimit=30;this.searchType="STARTSTRING";this.caseSensitive=false;if(!dj_undef("dataUrl",c)&&!dojo.string.isBlank(c.dataUrl)){this._getData(c.dataUrl)}else{if((g)&&(g.nodeName.toLowerCase()=="select")){var f=g.getElementsByTagName("option");var b=f.length;var h=[];for(var a=0;a<b;a++){var j=f[a].textContent||f[a].innerText||f[a].innerHTML;var d=[String(j),String(f[a].value)];h.push(d);if(f[a].selected){c.setAllValues(d[0],d[1])}}this.setData(h)}}},{_getData:function(a){dojo.io.bind({url:a,load:dojo.lang.hitch(this,function(f,g,b){if(!dojo.lang.isArray(g)){var c=[];for(var d in g){c.push([g[d],d])}g=c}this.setData(g)}),mimetype:"text/json"})},startSearch:function(a,b){this._performSearch(a,b)},_performSearch:function(c,j){var f=this.searchType;var d=[];if(!this.caseSensitive){c=c.toLowerCase()}for(var b=0;b<this._data.length;b++){if((this.searchLimit>0)&&(d.length>=this.searchLimit)){break}var g=new String((!this.caseSensitive)?this._data[b][0].toLowerCase():this._data[b][0]);if(g.length<c.length){continue}if(f=="STARTSTRING"){if(c==g.substr(0,c.length)){d.push(this._data[b])}}else{if(f=="SUBSTRING"){if(g.indexOf(c)>=0){d.push(this._data[b])}}else{if(f=="STARTWORD"){var a=g.indexOf(c);if(a==0){d.push(this._data[b])}if(a<=0){continue}var h=false;while(a!=-1){if(" ,/(".indexOf(g.charAt(a-1))!=-1){h=true;break}a=g.indexOf(c,a+1)}if(!h){continue}else{d.push(this._data[b])}}}}}j(d)},setData:function(a){this._data=a}});dojo.widget.defineWidget("dojo.widget.ComboBox",dojo.widget.HtmlWidget,{forceValidOption:false,searchType:"stringstart",dataProvider:null,autoComplete:true,searchDelay:100,dataUrl:"",fadeTime:200,maxListLength:8,mode:"local",selectedResult:null,dataProviderClass:"",buttonSrc:dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),dropdownToggle:"fade",templatePath:dojo.uri.dojoUri("src/widget/templates/ComboBox.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/ComboBox.css"),setValue:function(a){this.comboBoxValue.value=a;if(this.textInputNode.value!=a){this.textInputNode.value=a;dojo.widget.html.stabile.setState(this.widgetId,this.getState(),true);this.onValueChanged(a)}},onValueChanged:function(a){},getValue:function(){return this.comboBoxValue.value},getState:function(){return{value:this.getValue()}},setState:function(a){this.setValue(a.value)},enable:function(){this.disabled=false;this.textInputNode.removeAttribute("disabled")},disable:function(){this.disabled=true;this.textInputNode.setAttribute("disabled",true)},_getCaretPos:function(a){if(dojo.lang.isNumber(a.selectionStart)){return a.selectionStart}else{if(dojo.render.html.ie){var c=document.selection.createRange().duplicate();var b=a.createTextRange();c.move("character",0);b.move("character",0);try{b.setEndPoint("EndToEnd",c);return String(b.text).replace(/\r/g,"").length}catch(d){return 0}}}},_setCaretPos:function(b,a){a=parseInt(a);this._setSelectedRange(b,a,a)},_setSelectedRange:function(element,start,end){if(!end){end=element.value.length}if(element.setSelectionRange){element.focus();element.setSelectionRange(start,end)}else{if(element.createTextRange){var range=element.createTextRange();with(range){collapse(true);moveEnd("character",end);moveStart("character",start);select()}}else{element.value=element.value;element.blur();element.focus();var dist=parseInt(element.value.length)-end;var tchar=String.fromCharCode(37);var tcc=tchar.charCodeAt(0);for(var x=0;x<dist;x++){var te=document.createEvent("KeyEvents");te.initKeyEvent("keypress",true,true,null,false,false,false,false,tcc,tcc);element.dispatchEvent(te)}}}},_handleKeyEvents:function(a){if(a.ctrlKey||a.altKey||!a.key){return}this._prev_key_backspace=false;this._prev_key_esc=false;var b=dojo.event.browser.keys;var c=true;switch(a.key){case b.KEY_DOWN_ARROW:if(!this.popupWidget.isShowingNow){this._startSearchFromInput()}this._highlightNextOption();dojo.event.browser.stopEvent(a);return;case b.KEY_UP_ARROW:this._highlightPrevOption();dojo.event.browser.stopEvent(a);return;case b.KEY_TAB:if(!this.autoComplete&&this.popupWidget.isShowingNow&&this._highlighted_option){dojo.event.browser.stopEvent(a);this._selectOption({target:this._highlighted_option,noHide:false});this._setSelectedRange(this.textInputNode,this.textInputNode.value.length,null)}else{this._selectOption();return}break;case b.KEY_ENTER:if(this.popupWidget.isShowingNow){dojo.event.browser.stopEvent(a)}if(this.autoComplete){this._selectOption();return}case" ":if(this.popupWidget.isShowingNow&&this._highlighted_option){dojo.event.browser.stopEvent(a);this._selectOption();this._hideResultList();return}break;case b.KEY_ESCAPE:this._hideResultList();this._prev_key_esc=true;return;case b.KEY_BACKSPACE:this._prev_key_backspace=true;if(!this.textInputNode.value.length){this.setAllValues("","");this._hideResultList();c=false}break;case b.KEY_RIGHT_ARROW:case b.KEY_LEFT_ARROW:c=false;break;default:if(a.charCode==0){c=false}}if(this.searchTimer){clearTimeout(this.searchTimer)}if(c){this._blurOptionNode();this.searchTimer=setTimeout(dojo.lang.hitch(this,this._startSearchFromInput),this.searchDelay)}},compositionEnd:function(a){a.key=a.keyCode;this._handleKeyEvents(a)},onKeyUp:function(a){this.setValue(this.textInputNode.value)},setSelectedValue:function(a){this.comboBoxSelectionValue.value=a},setAllValues:function(b,a){this.setSelectedValue(a);this.setValue(b)},_focusOptionNode:function(a){if(this._highlighted_option!=a){this._blurOptionNode();this._highlighted_option=a;dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight")}},_blurOptionNode:function(){if(this._highlighted_option){dojo.html.removeClass(this._highlighted_option,"dojoComboBoxItemHighlight");this._highlighted_option=null}},_highlightNextOption:function(){if((!this._highlighted_option)||!this._highlighted_option.parentNode){this._focusOptionNode(this.optionsListNode.firstChild)}else{if(this._highlighted_option.nextSibling){this._focusOptionNode(this._highlighted_option.nextSibling)}}dojo.html.scrollIntoView(this._highlighted_option)},_highlightPrevOption:function(){if(this._highlighted_option&&this._highlighted_option.previousSibling){this._focusOptionNode(this._highlighted_option.previousSibling)}else{this._highlighted_option=null;this._hideResultList();return}dojo.html.scrollIntoView(this._highlighted_option)},_itemMouseOver:function(a){if(a.target===this.optionsListNode){return}this._focusOptionNode(a.target);dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight")},_itemMouseOut:function(a){if(a.target===this.optionsListNode){return}this._blurOptionNode()},onResize:function(){var b=dojo.html.getContentBox(this.textInputNode);if(b.height<=0){dojo.lang.setTimeout(this,"onResize",100);return}var a={width:b.height,height:b.height};dojo.html.setContentBox(this.downArrowNode,a)},fillInTemplate:function(args,frag){dojo.html.applyBrowserClass(this.domNode);var source=this.getFragNodeRef(frag);if(!this.name&&source.name){this.name=source.name}this.comboBoxValue.name=this.name;this.comboBoxSelectionValue.name=this.name+"_selected";dojo.html.copyStyle(this.domNode,source);dojo.html.copyStyle(this.textInputNode,source);dojo.html.copyStyle(this.downArrowNode,source);with(this.downArrowNode.style){width="0px";height="0px"}var dpClass;if(this.dataProviderClass){if(typeof this.dataProviderClass=="string"){dpClass=dojo.evalObjPath(this.dataProviderClass)}else{dpClass=this.dataProviderClass}}else{if(this.mode=="remote"){dpClass=dojo.widget.incrementalComboBoxDataProvider}else{dpClass=dojo.widget.basicComboBoxDataProvider}}this.dataProvider=new dpClass(this,this.getFragNodeRef(frag));this.popupWidget=new dojo.widget.createWidget("PopupContainer",{toggle:this.dropdownToggle,toggleDuration:this.toggleDuration});dojo.event.connect(this,"destroy",this.popupWidget,"destroy");this.optionsListNode=this.popupWidget.domNode;this.domNode.appendChild(this.optionsListNode);dojo.html.addClass(this.optionsListNode,"dojoComboBoxOptions");dojo.event.connect(this.optionsListNode,"onclick",this,"_selectOption");dojo.event.connect(this.optionsListNode,"onmouseover",this,"_onMouseOver");dojo.event.connect(this.optionsListNode,"onmouseout",this,"_onMouseOut");dojo.event.connect(this.optionsListNode,"onmouseover",this,"_itemMouseOver");dojo.event.connect(this.optionsListNode,"onmouseout",this,"_itemMouseOut")},_openResultList:function(a){if(this.disabled){return}this._clearResultList();if(!a.length){this._hideResultList()}if((this.autoComplete)&&(a.length)&&(!this._prev_key_backspace)&&(this.textInputNode.value.length>0)){var f=this._getCaretPos(this.textInputNode);if((f+1)>this.textInputNode.value.length){this.textInputNode.value+=a[0][0].substr(f);this._setSelectedRange(this.textInputNode,f,this.textInputNode.value.length)}}var c=true;while(a.length){var b=a.shift();if(b){var d=document.createElement("div");d.appendChild(document.createTextNode(b[0]));d.setAttribute("resultName",b[0]);d.setAttribute("resultValue",b[1]);d.className="dojoComboBoxItem "+((c)?"dojoComboBoxItemEven":"dojoComboBoxItemOdd");c=(!c);this.optionsListNode.appendChild(d)}}this._showResultList()},_onFocusInput:function(){this._hasFocus=true},_onBlurInput:function(){this._hasFocus=false;this._handleBlurTimer(true,500)},_handleBlurTimer:function(a,b){if(this.blurTimer&&(a||b)){clearTimeout(this.blurTimer)}if(b){this.blurTimer=dojo.lang.setTimeout(this,"_checkBlurred",b)}},_onMouseOver:function(a){if(!this._mouseover_list){this._handleBlurTimer(true,0);this._mouseover_list=true}},_onMouseOut:function(a){var c=a.relatedTarget;try{if(!c||c.parentNode!=this.optionsListNode){this._mouseover_list=false;this._handleBlurTimer(true,100);this._tryFocus()}}catch(b){}},_isInputEqualToResult:function(a){var b=this.textInputNode.value;if(!this.dataProvider.caseSensitive){b=b.toLowerCase();a=a.toLowerCase()}return(b==a)},_isValidOption:function(){var b=dojo.html.firstElement(this.optionsListNode);var a=false;while(!a&&b){if(this._isInputEqualToResult(b.getAttribute("resultName"))){a=true}else{b=dojo.html.nextElement(b)}}return a},_checkBlurred:function(){if(!this._hasFocus&&!this._mouseover_list){this._hideResultList();if(!this.textInputNode.value.length){this.setAllValues("","");return}var a=this._isValidOption();if(this.forceValidOption&&!a){this.setAllValues("","");return}if(!a){this.setSelectedValue("")}}},_selectOption:function(a){var b=null;if(!a){a={target:this._highlighted_option}}if(!dojo.html.isDescendantOf(a.target,this.optionsListNode)){if(!this.textInputNode.value.length){return}b=dojo.html.firstElement(this.optionsListNode);if(!b||!this._isInputEqualToResult(b.getAttribute("resultName"))){return}}else{b=a.target}while((b.nodeType!=1)||(!b.getAttribute("resultName"))){b=b.parentNode;if(b===dojo.body()){return false}}this.selectedResult=[b.getAttribute("resultName"),b.getAttribute("resultValue")];this.setAllValues(b.getAttribute("resultName"),b.getAttribute("resultValue"));if(!a.noHide){this._hideResultList();this._setSelectedRange(this.textInputNode,0,null)}this._tryFocus()},_clearResultList:function(){if(this.optionsListNode.innerHTML){this.optionsListNode.innerHTML=""}},_hideResultList:function(){this.popupWidget.close()},_showResultList:function(){var childs=this.optionsListNode.childNodes;if(childs.length){var visibleCount=Math.min(childs.length,this.maxListLength);with(this.optionsListNode.style){display="";if(visibleCount==childs.length){height=""}else{height=visibleCount*dojo.html.getMarginBox(childs[0]).height+"px"}width=(dojo.html.getMarginBox(this.domNode).width-2)+"px"}this.popupWidget.open(this.domNode,this,this.downArrowNode)}else{this._hideResultList()}},handleArrowClick:function(){this._handleBlurTimer(true,0);this._tryFocus();if(this.popupWidget.isShowingNow){this._hideResultList()}else{this._startSearch("")}},_tryFocus:function(){try{this.textInputNode.focus()}catch(a){}},_startSearchFromInput:function(){this._startSearch(this.textInputNode.value)},_startSearch:function(a){this.dataProvider.startSearch(a,dojo.lang.hitch(this,"_openResultList"))},postCreate:function(){this.onResize();dojo.event.connect(this.textInputNode,"onblur",this,"_onBlurInput");dojo.event.connect(this.textInputNode,"onfocus",this,"_onFocusInput");if(this.disabled){this.disable()}var a=dojo.widget.html.stabile.getState(this.widgetId);if(a){this.setState(a)}}});dojo.provide("dojo.widget.ContentPane");dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){this._styleNodes=[];this._onLoadStack=[];this._onUnloadStack=[];this._callOnUnload=false;this._ioBindObj;this.scriptScope;this.bindArgs={}},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(a,c,b){if(this.handler!==""){this.setHandler(this.handler)}if(this.isShowing()||this.preload){this.loadContents()}},show:function(){if(this.refreshOnShow){this.refresh()}else{this.loadContents()}dojo.widget.ContentPane.superclass.show.call(this)},refresh:function(){this.isLoaded=false;this.loadContents()},loadContents:function(){if(this.isLoaded){return}if(dojo.lang.isFunction(this.handler)){this._runHandler()}else{if(this.href!=""){this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow)}}},setUrl:function(a){this.href=a;this.isLoaded=false;if(this.preload||this.isShowing()){this.loadContents()}},abort:function(){var a=this._ioBindObj;if(!a||!a.abort){return}a.abort();delete this._ioBindObj},_downloadExternalContent:function(c,b){this.abort();this._handleDefaults(this.loadingMessage,"onDownloadStart");var a=this;this._ioBindObj=dojo.io.bind(this._cacheSetting({url:c,mimetype:"text/html",handler:function(d,f,h){delete a._ioBindObj;if(d=="load"){a.onDownloadEnd.call(a,c,f)}else{var g={responseText:h.responseText,status:h.status,statusText:h.statusText,responseHeaders:h.getAllResponseHeaders(),text:"Error loading '"+c+"' ("+h.status+" "+h.statusText+")"};a._handleDefaults.call(a,g,"onDownloadError");a.onLoad()}}},b))},_cacheSetting:function(c,b){for(var a in this.bindArgs){if(dojo.lang.isUndefined(c[a])){c[a]=this.bindArgs[a]}}if(dojo.lang.isUndefined(c.useCache)){c.useCache=b}if(dojo.lang.isUndefined(c.preventCache)){c.preventCache=!b}if(dojo.lang.isUndefined(c.mimetype)){c.mimetype="text/html"}return c},onLoad:function(a){this._runStack("_onLoadStack");this.isLoaded=true},onUnLoad:function(a){dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5)},onUnload:function(a){this._runStack("_onUnloadStack");delete this.scriptScope;if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){this.onUnLoad.apply(this,arguments)}},_runStack:function(a){var c=this[a];var g="";var f=this.scriptScope||window;for(var d=0;d<c.length;d++){try{c[d].call(f)}catch(h){g+="\n"+c[d]+" failed: "+h.description}}this[a]=[];if(g.length){var b=(a=="_onLoadStack")?"addOnLoad":"addOnUnLoad";this._handleDefaults(b+" failure\n "+g,"onExecError","debug")}},addOnLoad:function(b,a){this._pushOnStack(this._onLoadStack,b,a)},addOnUnload:function(b,a){this._pushOnStack(this._onUnloadStack,b,a)},addOnUnLoad:function(){dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);this.addOnUnload.apply(this,arguments)},_pushOnStack:function(a,c,b){if(typeof b=="undefined"){a.push(c)}else{a.push(function(){c[b]()})}},destroy:function(){this.onUnload();dojo.widget.ContentPane.superclass.destroy.call(this)},onExecError:function(a){},onContentError:function(a){},onDownloadError:function(a){},onDownloadStart:function(a){},onDownloadEnd:function(a,b){b=this.splitAndFixPaths(b,a);this.setContent(b)},_handleDefaults:function(b,a,c){if(!a){a="onContentError"}if(dojo.lang.isString(b)){b={text:b}}if(!b.text){b.text=b.toString()}b.toString=function(){return this.text};if(typeof b.returnValue!="boolean"){b.returnValue=true}if(typeof b.preventDefault!="function"){b.preventDefault=function(){this.returnValue=false}}this[a](b);if(b.returnValue){switch(c){case true:case"alert":alert(b.toString());break;case"debug":dojo.debug(b.toString());break;default:if(this._callOnUnload){this.onUnload()}this._callOnUnload=false;if(arguments.callee._loopStop){dojo.debug(b.toString())}else{arguments.callee._loopStop=true;this._setContent(b.toString())}}}arguments.callee._loopStop=false},splitAndFixPaths:function(o,g){var B=[],d=[],y=[];var l=[],c=[],v=[],m=[];var u="",r="",t="",k="",A="",h="";if(!g){g="./"}if(o){var f=/<title[^>]*>([\s\S]*?)<\/title>/i;while(l=f.exec(o)){B.push(l[1]);o=o.substring(0,l.index)+o.substr(l.index+l[0].length)}if(this.adjustPaths){var p=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;var w=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;var j=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;while(A=p.exec(o)){u+=o.substring(0,A.index);o=o.substring((A.index+A[0].length),o.length);A=A[0];k="";while(v=w.exec(A)){r="";h=v[3];switch(v[1].toLowerCase()){case"src":case"href":if(j.exec(h)){r=h}else{r=(new dojo.uri.Uri(g,h).toString())}break;case"style":r=dojo.html.fixPathsInCssText(h,g);break;default:r=h}t=" "+v[1]+"="+v[2]+r+v[2];k+=A.substring(0,v.index)+t;A=A.substring((v.index+v[0].length),A.length)}u+=k+A}o=u+o}f=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;while(l=f.exec(o)){if(l[1]&&l[1].toLowerCase()=="style"){m.push(dojo.html.fixPathsInCssText(l[2],g))}else{if(v=l[3].match(/href=(['"]?)([^'">]*)\1/i)){m.push({path:v[2]})}}o=o.substring(0,l.index)+o.substr(l.index+l[0].length)}var f=/<script([^>]*)>([\s\S]*?)<\/script>/i;var x=/src=(['"]?)([^"']*)\1/i;var z=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;var b=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;var q=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;while(l=f.exec(o)){if(this.executeScripts&&l[1]){if(v=x.exec(l[1])){if(z.exec(v[2])){dojo.debug("Security note! inhibit:"+v[2]+" from  being loaded again.")}else{d.push({path:v[2]})}}}if(l[2]){var a=l[2].replace(b,"");if(!a){continue}while(y=q.exec(a)){c.push(y[0]);a=a.substring(0,y.index)+a.substr(y.index+y[0].length)}if(this.executeScripts){d.push(a)}}o=o.substr(0,l.index)+o.substr(l.index+l[0].length)}if(this.extractContent){l=o.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(l){o=l[1]}}if(this.executeScripts&&this.scriptSeparation){var f=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;var n=/([\s'";:\(])scriptScope(.*)/;u="";while(A=f.exec(o)){y=((A[3]=="'")?'"':"'");t="";u+=o.substring(0,A.index)+A[1];while(v=n.exec(A[2])){A[2]=A[2].substring(0,v.index)+v[1]+"dojo.widget.byId("+y+this.widgetId+y+").scriptScope"+v[2]}u+=A[2];o=o.substr(A.index+A[0].length)}o=u+o}}return{xml:o,styles:m,titles:B,requires:c,scripts:d,url:g}},_setContent:function(a){this.destroyChildren();for(var b=0;b<this._styleNodes.length;b++){if(this._styleNodes[b]&&this._styleNodes[b].parentNode){this._styleNodes[b].parentNode.removeChild(this._styleNodes[b])}}this._styleNodes=[];try{var c=this.containerNode||this.domNode;while(c.firstChild){dojo.html.destroyNode(c.firstChild)}if(typeof a!="string"){c.appendChild(a)}else{c.innerHTML=a}}catch(d){d.text="Couldn't load content:"+d.description;this._handleDefaults(d,"onContentError")}},setContent:function(data){this.abort();if(this._callOnUnload){this.onUnload()}this._callOnUnload=true;if(!data||dojo.html.isNode(data)){this._setContent(data);this.onResized();this.onLoad()}else{if(typeof data.xml!="string"){this.href="";data=this.splitAndFixPaths(data)}this._setContent(data.xml);for(var i=0;i<data.styles.length;i++){if(data.styles[i].path){this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true))}else{this._styleNodes.push(dojo.html.insertCssText(data.styles[i]))}}if(this.parseContent){for(var i=0;i<data.requires.length;i++){try{eval(data.requires[i])}catch(e){e.text="ContentPane: error in package loading calls, "+(e.description||e);this._handleDefaults(e,"onContentError","debug")}}}var _self=this;function asyncParse(){if(_self.executeScripts){_self._executeScripts(data.scripts)}if(_self.parseContent){var node=_self.containerNode||_self.domNode;var parser=new dojo.xml.Parse();var frag=parser.parseElement(node,null,true);dojo.widget.getParser().createSubComponents(frag,_self)}_self.onResized();_self.onLoad()}if(dojo.hostenv.isXDomain&&data.requires.length){dojo.addOnLoad(asyncParse)}else{asyncParse()}}},setHandler:function(a){var b=dojo.lang.isFunction(a)?a:window[a];if(!dojo.lang.isFunction(b)){this._handleDefaults("Unable to set handler, '"+a+"' not a function.","onExecError",true);return}this.handler=function(){return b.apply(this,arguments)}},_runHandler:function(){var a=true;if(dojo.lang.isFunction(this.handler)){this.handler(this,this.domNode);a=false}this.onLoad();return a},_executeScripts:function(b){var k=this;var d="",a="";for(var f=0;f<b.length;f++){if(b[f].path){dojo.io.bind(this._cacheSetting({url:b[f].path,load:function(m,l){dojo.lang.hitch(k,d=";"+l)},error:function(m,l){l.text=m+" downloading remote script";k._handleDefaults.call(k,l,"onExecError","debug")},mimetype:"text/plain",sync:true},this.cacheContent));a+=d}else{a+=b[f]}}try{if(this.scriptSeparation){delete this.scriptScope;this.scriptScope=new (new Function("_container_",a+"; return this;"))(k)}else{var c=dojo.global();if(c.execScript){c.execScript(a)}else{var g=dojo.doc();var j=g.createElement("script");j.appendChild(g.createTextNode(a));(this.containerNode||this.domNode).appendChild(j)}}}catch(h){h.text="Error running scripts from content:\n"+h.description;this._handleDefaults(h,"onExecError","debug")}}});dojo.provide("dojo.widget.Dialog");dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,trapTabs:function(a){if(a.target==this.tabStartOuter){if(this._fromTrap){this.tabStart.focus();this._fromTrap=false}else{this._fromTrap=true;this.tabEnd.focus()}}else{if(a.target==this.tabStart){if(this._fromTrap){this._fromTrap=false}else{this._fromTrap=true;this.tabEnd.focus()}}else{if(a.target==this.tabEndOuter){if(this._fromTrap){this.tabEnd.focus();this._fromTrap=false}else{this._fromTrap=true;this.tabStart.focus()}}else{if(a.target==this.tabEnd){if(this._fromTrap){this._fromTrap=false}else{this._fromTrap=true;this.tabStart.focus()}}}}}},clearTrap:function(a){var b=this;setTimeout(function(){b._fromTrap=false},100)},postCreate:function(){with(this.domNode.style){position="absolute";zIndex=999;display="none";overflow="visible"}var b=dojo.body();b.appendChild(this.domNode);this.bg=document.createElement("div");this.bg.className="dialogUnderlay";with(this.bg.style){position="absolute";left=top="0px";zIndex=998;display="none"}b.appendChild(this.bg);this.setBackgroundColor(this.bgColor);this.bgIframe=new dojo.html.BackgroundIframe();if(this.bgIframe.iframe){with(this.bgIframe.iframe.style){position="absolute";left=top="0px";zIndex=90;display="none"}}if(this.closeOnBackgroundClick){dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true})}},uninitialize:function(){this.bgIframe.remove();dojo.html.removeNode(this.bg,true)},setBackgroundColor:function(a){if(arguments.length>=3){a=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2])}else{a=new dojo.gfx.color.Color(a)}this.bg.style.backgroundColor=a.toString();return this.bgColor=a},setBackgroundOpacity:function(b){if(arguments.length==0){b=this.bgOpacity}dojo.html.setOpacity(this.bg,b);try{this.bgOpacity=dojo.html.getOpacity(this.bg)}catch(a){this.bgOpacity=b}return this.bgOpacity},_sizeBackground:function(){if(this.bgOpacity>0){var viewport=dojo.html.getViewport();var h=viewport.height;var w=viewport.width;with(this.bg.style){width=w+"px";height=h+"px"}var scroll_offset=dojo.html.getScroll().offset;this.bg.style.top=scroll_offset.y+"px";this.bg.style.left=scroll_offset.x+"px";var viewport=dojo.html.getViewport();if(viewport.width!=w){this.bg.style.width=viewport.width+"px"}if(viewport.height!=h){this.bg.style.height=viewport.height+"px"}}this.bgIframe.size(this.bg)},_showBackground:function(){if(this.bgOpacity>0){this.bg.style.display="block"}if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block"}},placeModalDialog:function(){var scroll_offset=dojo.html.getScroll().offset;var viewport_size=dojo.html.getViewport();var mb;if(this.isShowing()){mb=dojo.html.getMarginBox(this.domNode)}else{dojo.html.setVisibility(this.domNode,false);dojo.html.show(this.domNode);mb=dojo.html.getMarginBox(this.domNode);dojo.html.hide(this.domNode);dojo.html.setVisibility(this.domNode,true)}var x=scroll_offset.x+(viewport_size.width-mb.width)/2;var y=scroll_offset.y+(viewport_size.height-mb.height)/2;with(this.domNode.style){left=x+"px";top=y+"px"}},_onKey:function(a){if(a.key){var b=a.target;while(b!=null){if(b==this.domNode){return}b=b.parentNode}if(a.key!=a.KEY_TAB){dojo.event.browser.stopEvent(a)}else{if(!dojo.render.html.opera){try{this.tabStart.focus()}catch(c){}}}}},showModalDialog:function(){if(this.followScroll&&!this._scrollConnected){this._scrollConnected=true;dojo.event.connect(window,"onscroll",this,"_onScroll")}dojo.event.connect(document.documentElement,"onkey",this,"_onKey");this.placeModalDialog();this.setBackgroundOpacity();this._sizeBackground();this._showBackground();this._fromTrap=true;setTimeout(dojo.lang.hitch(this,function(){try{this.tabStart.focus()}catch(a){}}),50)},hideModalDialog:function(){if(this.focusElement){dojo.byId(this.focusElement).focus();dojo.byId(this.focusElement).blur()}this.bg.style.display="none";this.bg.style.width=this.bg.style.height="1px";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none"}dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");if(this._scrollConnected){this._scrollConnected=false;dojo.event.disconnect(window,"onscroll",this,"_onScroll")}},_onScroll:function(){var a=dojo.html.getScroll().offset;this.bg.style.top=a.y+"px";this.bg.style.left=a.x+"px";this.placeModalDialog()},checkSize:function(){if(this.isShowing()){this._sizeBackground();this.placeModalDialog();this.onResized()}},onBackgroundClick:function(){if(this.lifetime-this.timeRemaining>=this.blockDuration){return}this.hide()}});dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templatePath:dojo.uri.dojoUri("src/widget/templates/Dialog.html"),blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);if(this.closeNode){this.setCloseControl(this.closeNode)}},postCreate:function(){dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments)},show:function(){if(this.lifetime){this.timeRemaining=this.lifetime;if(this.timerNode){this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000)}if(this.blockDuration&&this.closeNode){if(this.lifetime>this.blockDuration){this.closeNode.style.visibility="hidden"}else{this.closeNode.style.display="none"}}if(this.timer){clearInterval(this.timer)}this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100)}this.showModalDialog();dojo.widget.Dialog.superclass.show.call(this)},onLoad:function(){this.placeModalDialog();dojo.widget.Dialog.superclass.onLoad.call(this)},fillInTemplate:function(){},hide:function(){this.hideModalDialog();dojo.widget.Dialog.superclass.hide.call(this);if(this.timer){clearInterval(this.timer)}},setTimerNode:function(a){this.timerNode=a},setCloseControl:function(a){this.closeNode=dojo.byId(a);dojo.event.connect(this.closeNode,"onclick",this,"hide")},setShowControl:function(a){a=dojo.byId(a);dojo.event.connect(a,"onclick",this,"show")},_onTick:function(){if(this.timer){this.timeRemaining-=100;if(this.lifetime-this.timeRemaining>=this.blockDuration){if(this.closeNode){this.closeNode.style.visibility="visible"}}if(!this.timeRemaining){clearInterval(this.timer);this.hide()}else{if(this.timerNode){this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000)}}}}});dojo.provide("dojo.widget.DropdownContainer");dojo.widget.defineWidget("dojo.widget.DropdownContainer",dojo.widget.HtmlWidget,{inputWidth:"7em",id:"",inputId:"",inputName:"",iconURL:dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),copyClasses:false,iconAlt:"",containerToggle:"plain",containerToggleDuration:150,templateString:'<span style="white-space:nowrap"><input type="hidden" name="" value="" dojoAttachPoint="valueNode" /><input name="" type="text" value="" style="vertical-align:middle;" dojoAttachPoint="inputNode" autocomplete="off" /> <img src="${this.iconURL}" alt="${this.iconAlt}" dojoAttachEvent="onclick:onIconClick" dojoAttachPoint="buttonNode" style="vertical-align:middle; cursor:pointer; cursor:hand" /></span>',templateCssPath:"",isContainer:true,attachTemplateNodes:function(){dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this,arguments);this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration});this.containerNode=this.popup.domNode},fillInTemplate:function(a,b){this.domNode.appendChild(this.popup.domNode);if(this.id){this.domNode.id=this.id}if(this.inputId){this.inputNode.id=this.inputId}if(this.inputName){this.inputNode.name=this.inputName}this.inputNode.style.width=this.inputWidth;this.inputNode.disabled=this.disabled;if(this.copyClasses){this.inputNode.style="";this.inputNode.className=this.getFragNodeRef(b).className}dojo.event.connect(this.inputNode,"onchange",this,"onInputChange")},onIconClick:function(a){if(this.disabled){return}if(!this.popup.isShowingNow){this.popup.open(this.inputNode,this,this.buttonNode)}else{this.popup.close()}},hideContainer:function(){if(this.popup.isShowingNow){this.popup.close()}},onInputChange:function(){},enable:function(){this.inputNode.disabled=false;dojo.widget.DropdownContainer.superclass.enable.apply(this,arguments)},disable:function(){this.inputNode.disabled=true;dojo.widget.DropdownContainer.superclass.disable.apply(this,arguments)}});dojo.provide("dojo.date.common");dojo.date.setDayOfYear=function(b,a){b.setMonth(0);b.setDate(a);return b};dojo.date.getDayOfYear=function(c){var a=c.getFullYear();var b=new Date(a-1,11,31);return Math.floor((c.getTime()-b.getTime())/86400000)};dojo.date.setWeekOfYear=function(c,b,a){if(arguments.length==1){a=0}dojo.unimplemented("dojo.date.setWeekOfYear")};dojo.date.getWeekOfYear=function(d,b){if(arguments.length==1){b=0}var c=new Date(d.getFullYear(),0,1);var a=c.getDay();c.setDate(c.getDate()-a+b-(a>b?7:0));return Math.floor((d.getTime()-c.getTime())/604800000)};dojo.date.setIsoWeekOfYear=function(c,b,a){if(arguments.length==1){a=1}dojo.unimplemented("dojo.date.setIsoWeekOfYear")};dojo.date.getIsoWeekOfYear=function(b,a){if(arguments.length==1){a=1}dojo.unimplemented("dojo.date.getIsoWeekOfYear")};dojo.date.shortTimezones=["IDLW","BET","HST","MART","AKST","PST","MST","CST","EST","AST","NFT","BST","FST","AT","GMT","CET","EET","MSK","IRT","GST","AFT","AGTT","IST","NPT","ALMT","MMT","JT","AWST","JST","ACST","AEST","LHST","VUT","NFT","NZT","CHAST","PHOT","LINT"];dojo.date.timezoneOffsets=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,540,570,600,630,660,690,720,765,780,840];dojo.date.getDaysInMonth=function(a){var b=a.getMonth();var c=[31,28,31,30,31,30,31,31,30,31,30,31];if(b==1&&dojo.date.isLeapYear(a)){return 29}else{return c[b]}};dojo.date.isLeapYear=function(b){var a=b.getFullYear();return(a%400==0)?true:(a%100==0)?false:(a%4==0)?true:false};dojo.date.getTimezoneName=function(c){var d=c.toString();var g="";var b;var f=d.indexOf("(");if(f>-1){f++;g=d.substring(f,d.indexOf(")"))}else{var a=/([A-Z\/]+) \d{4}$/;if((b=d.match(a))){g=b[1]}else{d=c.toLocaleString();a=/ ([A-Z\/]+)$/;if((b=d.match(a))){g=b[1]}}}return g=="AM"||g=="PM"?"":g};dojo.date.getOrdinal=function(b){var a=b.getDate();if(a%100!=11&&a%10==1){return"st"}else{if(a%100!=12&&a%10==2){return"nd"}else{if(a%100!=13&&a%10==3){return"rd"}else{return"th"}}}};dojo.date.compareTypes={DATE:1,TIME:2};dojo.date.compare=function(dateA,dateB,options){var dA=dateA;var dB=dateB||new Date();var now=new Date();with(dojo.date.compareTypes){var opt=options||(DATE|TIME);var d1=new Date((opt&DATE)?dA.getFullYear():now.getFullYear(),(opt&DATE)?dA.getMonth():now.getMonth(),(opt&DATE)?dA.getDate():now.getDate(),(opt&TIME)?dA.getHours():0,(opt&TIME)?dA.getMinutes():0,(opt&TIME)?dA.getSeconds():0);var d2=new Date((opt&DATE)?dB.getFullYear():now.getFullYear(),(opt&DATE)?dB.getMonth():now.getMonth(),(opt&DATE)?dB.getDate():now.getDate(),(opt&TIME)?dB.getHours():0,(opt&TIME)?dB.getMinutes():0,(opt&TIME)?dB.getSeconds():0)}if(d1.valueOf()>d2.valueOf()){return 1}if(d1.valueOf()<d2.valueOf()){return -1}return 0};dojo.date.dateParts={YEAR:0,MONTH:1,DAY:2,HOUR:3,MINUTE:4,SECOND:5,MILLISECOND:6,QUARTER:7,WEEK:8,WEEKDAY:9};dojo.date.add=function(dt,interv,incr){if(typeof dt=="number"){dt=new Date(dt)}function fixOvershoot(){if(sum.getDate()<dt.getDate()){sum.setDate(0)}}var sum=new Date(dt);with(dojo.date.dateParts){switch(interv){case YEAR:sum.setFullYear(dt.getFullYear()+incr);fixOvershoot();break;case QUARTER:incr*=3;case MONTH:sum.setMonth(dt.getMonth()+incr);fixOvershoot();break;case WEEK:incr*=7;case DAY:sum.setDate(dt.getDate()+incr);break;case WEEKDAY:var dat=dt.getDate();var weeks=0;var days=0;var strt=0;var trgt=0;var adj=0;var mod=incr%5;if(mod==0){days=(incr>0)?5:-5;weeks=(incr>0)?((incr-5)/5):((incr+5)/5)}else{days=mod;weeks=parseInt(incr/5)}strt=dt.getDay();if(strt==6&&incr>0){adj=1}else{if(strt==0&&incr<0){adj=-1}}trgt=(strt+days);if(trgt==0||trgt==6){adj=(incr>0)?2:-2}sum.setDate(dat+(7*weeks)+days+adj);break;case HOUR:sum.setHours(sum.getHours()+incr);break;case MINUTE:sum.setMinutes(sum.getMinutes()+incr);break;case SECOND:sum.setSeconds(sum.getSeconds()+incr);break;case MILLISECOND:sum.setMilliseconds(sum.getMilliseconds()+incr);break;default:break}}return sum};dojo.date.diff=function(dtA,dtB,interv){if(typeof dtA=="number"){dtA=new Date(dtA)}if(typeof dtB=="number"){dtB=new Date(dtB)}var yeaDiff=dtB.getFullYear()-dtA.getFullYear();var monDiff=(dtB.getMonth()-dtA.getMonth())+(yeaDiff*12);var msDiff=dtB.getTime()-dtA.getTime();var secDiff=msDiff/1000;var minDiff=secDiff/60;var houDiff=minDiff/60;var dayDiff=houDiff/24;var weeDiff=dayDiff/7;var delta=0;with(dojo.date.dateParts){switch(interv){case YEAR:delta=yeaDiff;break;case QUARTER:var mA=dtA.getMonth();var mB=dtB.getMonth();var qA=Math.floor(mA/3)+1;var qB=Math.floor(mB/3)+1;qB+=(yeaDiff*4);delta=qB-qA;break;case MONTH:delta=monDiff;break;case WEEK:delta=parseInt(weeDiff);break;case DAY:delta=dayDiff;break;case WEEKDAY:var days=Math.round(dayDiff);var weeks=parseInt(days/7);var mod=days%7;if(mod==0){days=weeks*5}else{var adj=0;var aDay=dtA.getDay();var bDay=dtB.getDay();weeks=parseInt(days/7);mod=days%7;var dtMark=new Date(dtA);dtMark.setDate(dtMark.getDate()+(weeks*7));var dayMark=dtMark.getDay();if(dayDiff>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (dayMark+mod)>5:adj=-2;break;default:break}}else{if(dayDiff<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (dayMark+mod)<0:adj=2;break;default:break}}}days+=adj;days-=(weeks*2)}delta=days;break;case HOUR:delta=houDiff;break;case MINUTE:delta=minDiff;break;case SECOND:delta=secDiff;break;case MILLISECOND:delta=msDiff;break;default:break}}return Math.round(delta)};dojo.provide("dojo.date.supplemental");dojo.date.getFirstDayOfWeek=function(a){var b={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,gb:0,sy:4};a=dojo.hostenv.normalizeLocale(a);var c=a.split("-")[1];var d=b[c];return(typeof d=="undefined")?1:d};dojo.date.getWeekend=function(b){var d={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var a={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};b=dojo.hostenv.normalizeLocale(b);var f=b.split("-")[1];var g=d[f];var c=a[f];if(typeof g=="undefined"){g=6}if(typeof c=="undefined"){c=0}return{start:g,end:c}};dojo.date.isWeekend=function(b,a){var d=dojo.date.getWeekend(a);var c=(b||new Date()).getDay();if(d.end<d.start){d.end+=7;if(c<d.start){c+=7}}return c>=d.start&&c<=d.end};dojo.provide("dojo.i18n.common");dojo.i18n.getLocalization=function(b,c,j){dojo.hostenv.preloadLocalizations();j=dojo.hostenv.normalizeLocale(j);var a=j.split("-");var d=[b,"nls",c].join(".");var l=dojo.hostenv.findModule(d,true);var k;for(var f=a.length;f>0;f--){var h=a.slice(0,f).join("_");if(l[h]){k=l[h];break}}if(!k){k=l.ROOT}if(k){var g=function(){};g.prototype=k;return new g()}dojo.raise("Bundle not found: "+c+" in "+b+" , locale="+j)};dojo.i18n.isLTR=function(a){var c=dojo.hostenv.normalizeLocale(a).split("-")[0];var b={ar:true,fa:true,he:true,ur:true,yi:true};return !b[c]};dojo.provide("dojo.date.format");(function(){dojo.date.format=function(g,n){if(typeof n=="string"){dojo.deprecated("dojo.date.format","To format dates with POSIX-style strings, please use dojo.date.strftime instead","0.5");return dojo.date.strftime(g,n)}function k(p,q){return q.replace(/([a-z])\1*/ig,function(E){var I;var H=E.charAt(0);var z=E.length;var w;var x=["abbr","wide","narrow"];switch(H){case"G":if(z>3){dojo.unimplemented("Era format not implemented")}I=d.eras[p.getFullYear()<0?1:0];break;case"y":I=p.getFullYear();switch(z){case 1:break;case 2:I=String(I).substr(-2);break;default:w=true}break;case"Q":case"q":I=Math.ceil((p.getMonth()+1)/3);switch(z){case 1:case 2:w=true;break;case 3:case 4:dojo.unimplemented("Quarter format not implemented")}break;case"M":case"L":var y=p.getMonth();var u;switch(z){case 1:case 2:I=y+1;w=true;break;case 3:case 4:case 5:u=x[z-3];break}if(u){var G=(H=="L")?"standalone":"format";var t=["months",G,u].join("-");I=d[t][y]}break;case"w":var r=0;I=dojo.date.getWeekOfYear(p,r);w=true;break;case"d":I=p.getDate();w=true;break;case"D":I=dojo.date.getDayOfYear(p);w=true;break;case"E":case"e":case"c":var F=p.getDay();var u;switch(z){case 1:case 2:if(H=="e"){var D=dojo.date.getFirstDayOfWeek(n.locale);F=(F-D+7)%7}if(H!="c"){I=F+1;w=true;break}case 3:case 4:case 5:u=x[z-3];break}if(u){var G=(H=="c")?"standalone":"format";var t=["days",G,u].join("-");I=d[t][F]}break;case"a":var v=(p.getHours()<12)?"am":"pm";I=d[v];break;case"h":case"H":case"K":case"k":var C=p.getHours();switch(H){case"h":I=(C%12)||12;break;case"H":I=C;break;case"K":I=(C%12);break;case"k":I=C||24;break}w=true;break;case"m":I=p.getMinutes();w=true;break;case"s":I=p.getSeconds();w=true;break;case"S":I=Math.round(p.getMilliseconds()*Math.pow(10,z-3));break;case"v":case"z":I=dojo.date.getTimezoneName(p);if(I){break}z=4;case"Z":var B=p.getTimezoneOffset();var A=[(B<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(B)/60),2),dojo.string.pad(Math.abs(B)%60,2)];if(z==4){A.splice(0,0,"GMT");A.splice(3,0,":")}I=A.join("");break;case"Y":case"u":case"W":case"F":case"g":case"A":dojo.debug(E+" modifier not yet implemented");I="?";break;default:dojo.raise("dojo.date.format: invalid pattern char: "+q)}if(w){I=dojo.string.pad(I,z)}return I})}n=n||{};var j=dojo.hostenv.normalizeLocale(n.locale);var o=n.formatLength||"full";var d=dojo.date._getGregorianBundle(j);var h=[];var f=dojo.lang.curry(this,k,g);if(n.selector!="timeOnly"){var c=n.datePattern||d["dateFormat-"+o];if(c){h.push(b(c,f))}}if(n.selector!="dateOnly"){var m=n.timePattern||d["timeFormat-"+o];if(m){h.push(b(m,f))}}var l=h.join(" ");return l};dojo.date.parse=function(y,d){d=d||{};var C=dojo.hostenv.normalizeLocale(d.locale);var I=dojo.date._getGregorianBundle(C);var t=d.formatLength||"full";if(!d.selector){d.selector="dateOnly"}var c=d.datePattern||I["dateFormat-"+t];var K=d.timePattern||I["timeFormat-"+t];var H;if(d.selector=="dateOnly"){H=c}else{if(d.selector=="timeOnly"){H=K}else{if(d.selector=="dateTime"){H=c+" "+K}else{var f="dojo.date.parse: Unknown selector param passed: '"+d.selector+"'.";f+=" Defaulting to date pattern.";dojo.debug(f);H=c}}}var J=[];var L=b(H,dojo.lang.curry(this,a,J,I,d));var x=new RegExp("^"+L+"$");var m=x.exec(y);if(!m){return null}var D=["abbr","wide","narrow"];var p=new Date(1972,0);var o={};for(var E=1;E<m.length;E++){var n=J[E-1];var A=n.length;var s=m[E];switch(n.charAt(0)){case"y":if(A!=2){p.setFullYear(s);o.year=s}else{if(s<100){s=Number(s);var r=""+new Date().getFullYear();var w=r.substring(0,2)*100;var q=Number(r.substring(2,4));var u=Math.min(q+20,99);var k=(s<u)?w+s:w-100+s;p.setFullYear(k);o.year=k}else{if(d.strict){return null}p.setFullYear(s);o.year=s}}break;case"M":if(A>2){if(!d.strict){s=s.replace(/\./g,"");s=s.toLowerCase()}var h=I["months-format-"+D[A-3]].concat();for(var B=0;B<h.length;B++){if(!d.strict){h[B]=h[B].toLowerCase()}if(s==h[B]){p.setMonth(B);o.month=B;break}}if(B==h.length){dojo.debug("dojo.date.parse: Could not parse month name: '"+s+"'.");return null}}else{p.setMonth(s-1);o.month=s-1}break;case"E":case"e":if(!d.strict){s=s.toLowerCase()}var g=I["days-format-"+D[A-3]].concat();for(var B=0;B<g.length;B++){if(!d.strict){g[B]=g[B].toLowerCase()}if(s==g[B]){break}}if(B==g.length){dojo.debug("dojo.date.parse: Could not parse weekday name: '"+s+"'.");return null}break;case"d":p.setDate(s);o.date=s;break;case"a":var z=d.am||I.am;var G=d.pm||I.pm;if(!d.strict){s=s.replace(/\./g,"").toLowerCase();z=z.replace(/\./g,"").toLowerCase();G=G.replace(/\./g,"").toLowerCase()}if(d.strict&&s!=z&&s!=G){dojo.debug("dojo.date.parse: Could not parse am/pm part.");return null}var F=p.getHours();if(s==G&&F<12){p.setHours(F+12)}else{if(s==z&&F==12){p.setHours(0)}}break;case"K":if(s==24){s=0}case"h":case"H":case"k":if(s>23){dojo.debug("dojo.date.parse: Illegal hours value");return null}p.setHours(s);break;case"m":p.setMinutes(s);break;case"s":p.setSeconds(s);break;case"S":p.setMilliseconds(s);break;default:dojo.unimplemented("dojo.date.parse: unsupported pattern char="+n.charAt(0))}}if(o.year&&p.getFullYear()!=o.year){dojo.debug("Parsed year: '"+p.getFullYear()+"' did not match input year: '"+o.year+"'.");return null}if(o.month&&p.getMonth()!=o.month){dojo.debug("Parsed month: '"+p.getMonth()+"' did not match input month: '"+o.month+"'.");return null}if(o.date&&p.getDate()!=o.date){dojo.debug("Parsed day of month: '"+p.getDate()+"' did not match input day of month: '"+o.date+"'.");return null}return p};function b(j,c,l,h){var d=function(m){return m};c=c||d;l=l||d;h=h||d;var k=j.match(/(''|[^'])+/g);var g=false;for(var f=0;f<k.length;f++){if(!k[f]){k[f]=""}else{k[f]=(g?l:c)(k[f]);g=!g}}return h(k.join(""))}function a(c,g,d,f){return f.replace(/([a-z])\1*/ig,function(j){var m;var o=j.charAt(0);var h=j.length;switch(o){case"y":m="\\d"+((h==2)?"{2,4}":"+");break;case"M":m=(h>2)?"\\S+":"\\d{1,2}";break;case"d":m="\\d{1,2}";break;case"E":m="\\S+";break;case"h":case"H":case"K":case"k":m="\\d{1,2}";break;case"m":case"s":m="[0-5]\\d";break;case"S":m="\\d{1,3}";break;case"a":var n=d.am||g.am||"AM";var k=d.pm||g.pm||"PM";if(d.strict){m=n+"|"+k}else{m=n;m+=(n!=n.toLowerCase())?"|"+n.toLowerCase():"";m+="|";m+=(k!=k.toLowerCase())?k+"|"+k.toLowerCase():k}break;default:dojo.unimplemented("parse of date format, pattern="+f)}if(c){c.push(j)}return"\\s*("+m+")\\s*"})}})();dojo.date.strftime=function(n,q,p){var b=null;function s(j,t){return dojo.string.pad(j,t||2,b||"0")}var c=dojo.date._getGregorianBundle(p);function h(t){switch(t){case"a":return dojo.date.getDayShortName(n,p);case"A":return dojo.date.getDayName(n,p);case"b":case"h":return dojo.date.getMonthShortName(n,p);case"B":return dojo.date.getMonthName(n,p);case"c":return dojo.date.format(n,{locale:p});case"C":return s(Math.floor(n.getFullYear()/100));case"d":return s(n.getDate());case"D":return h("m")+"/"+h("d")+"/"+h("y");case"e":if(b==null){b=" "}return s(n.getDate());case"f":if(b==null){b=" "}return s(n.getMonth()+1);case"g":break;case"G":dojo.unimplemented("unimplemented modifier 'G'");break;case"F":return h("Y")+"-"+h("m")+"-"+h("d");case"H":return s(n.getHours());case"I":return s(n.getHours()%12||12);case"j":return s(dojo.date.getDayOfYear(n),3);case"k":if(b==null){b=" "}return s(n.getHours());case"l":if(b==null){b=" "}return s(n.getHours()%12||12);case"m":return s(n.getMonth()+1);case"M":return s(n.getMinutes());case"n":return"\n";case"p":return c[n.getHours()<12?"am":"pm"];case"r":return h("I")+":"+h("M")+":"+h("S")+" "+h("p");case"R":return h("H")+":"+h("M");case"S":return s(n.getSeconds());case"t":return"\t";case"T":return h("H")+":"+h("M")+":"+h("S");case"u":return String(n.getDay()||7);case"U":return s(dojo.date.getWeekOfYear(n));case"V":return s(dojo.date.getIsoWeekOfYear(n));case"W":return s(dojo.date.getWeekOfYear(n,1));case"w":return String(n.getDay());case"x":return dojo.date.format(n,{selector:"dateOnly",locale:p});case"X":return dojo.date.format(n,{selector:"timeOnly",locale:p});case"y":return s(n.getFullYear()%100);case"Y":return String(n.getFullYear());case"z":var j=n.getTimezoneOffset();return(j>0?"-":"+")+s(Math.floor(Math.abs(j)/60))+":"+s(Math.abs(j)%60);case"Z":return dojo.date.getTimezoneName(n);case"%":return"%"}}var k="";var g=0;var m=0;var d=null;while((m=q.indexOf("%",g))!=-1){k+=q.substring(g,m++);switch(q.charAt(m++)){case"_":b=" ";break;case"-":b="";break;case"0":b="0";break;case"^":d="upper";break;case"*":d="lower";break;case"#":d="swap";break;default:b=null;m--;break}var r=h(q.charAt(m++));switch(d){case"upper":r=r.toUpperCase();break;case"lower":r=r.toLowerCase();break;case"swap":var l=r.toLowerCase();var o="";var f=0;var a="";while(f<r.length){a=r.charAt(f);o+=(a==l.charAt(f))?a.toUpperCase():a.toLowerCase();f++}r=o;break;default:break}d=null;k+=r;g=m}k+=q.substring(g);return k};(function(){var a=[];dojo.date.addCustomFormats=function(b,c){a.push({pkg:b,name:c})};dojo.date._getGregorianBundle=function(b){var c={};dojo.lang.forEach(a,function(f){var d=dojo.i18n.getLocalization(f.pkg,f.name,b);c=dojo.lang.mixin(c,d)},this);return c}})();dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");dojo.date.getNames=function(g,f,b,a){var c;var h=dojo.date._getGregorianBundle(a);var d=[g,b,f];if(b=="standAlone"){c=h[d.join("-")]}d[1]="format";return(c||h[d.join("-")]).concat()};dojo.date.getDayName=function(b,a){return dojo.date.getNames("days","wide","format",a)[b.getDay()]};dojo.date.getDayShortName=function(b,a){return dojo.date.getNames("days","abbr","format",a)[b.getDay()]};dojo.date.getMonthName=function(b,a){return dojo.date.getNames("months","wide","format",a)[b.getMonth()]};dojo.date.getMonthShortName=function(b,a){return dojo.date.getNames("months","abbr","format",a)[b.getMonth()]};dojo.date.toRelativeString=function(d){var c=new Date();var f=(c-d)/1000;var b=" ago";var a=false;if(f<0){a=true;b=" from now";f=-f}if(f<60){f=Math.round(f);return f+" second"+(f==1?"":"s")+b}if(f<60*60){f=Math.round(f/60);return f+" minute"+(f==1?"":"s")+b}if(f<60*60*24){f=Math.round(f/3600);return f+" hour"+(f==1?"":"s")+b}if(f<60*60*24*7){f=Math.round(f/(3600*24));if(f==1){return a?"Tomorrow":"Yesterday"}else{return f+" days"+b}}return dojo.date.format(d)};dojo.date.toSql=function(b,a){return dojo.date.strftime(b,"%F"+!a?" %T":"")};dojo.date.fromSql=function(a){var b=a.split(/[\- :]/g);while(b.length<6){b.push(0)}return new Date(b[0],(parseInt(b[1],10)-1),b[2],b[3],b[4],b[5])};dojo.provide("dojo.date.serialize");dojo.date.setIso8601=function(b,a){var c=(a.indexOf("T")==-1)?a.split(" "):a.split("T");b=dojo.date.setIso8601Date(b,c[0]);if(c.length==2){b=dojo.date.setIso8601Time(b,c[1])}return b};dojo.date.fromIso8601=function(a){return dojo.date.setIso8601(new Date(0,0),a)};dojo.date.setIso8601Date=function(h,l){var k="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";var j=l.match(new RegExp(k));if(!j){dojo.debug("invalid date string: "+l);return null}var m=j[1];var g=j[4];var b=j[6];var f=j[8];var a=j[10];var p=j[12]?j[12]:1;h.setFullYear(m);if(f){h.setMonth(0);h.setDate(Number(f))}else{if(a){h.setMonth(0);h.setDate(1);var o=h.getDay();var n=o?o:7;var c=Number(p)+(7*Number(a));if(n<=4){h.setDate(c+1-n)}else{h.setDate(c+8-n)}}else{if(g){h.setDate(1);h.setMonth(g-1)}if(b){h.setDate(b)}}}return h};dojo.date.fromIso8601Date=function(a){return dojo.date.setIso8601Date(new Date(0,0),a)};dojo.date.setIso8601Time=function(h,l){var g="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";var j=l.match(new RegExp(g));var c=0;if(j){if(j[0]!="Z"){c=(Number(j[3])*60)+Number(j[5]);c*=((j[2]=="-")?1:-1)}c-=h.getTimezoneOffset();l=l.substr(0,l.length-j[0].length)}var k="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";j=l.match(new RegExp(k));if(!j){dojo.debug("invalid time string: "+l);return null}var m=j[1];var b=Number((j[3])?j[3]:0);var f=(j[5])?j[5]:0;var a=j[7]?(Number("0."+j[7])*1000):0;h.setHours(m);h.setMinutes(b);h.setSeconds(f);h.setMilliseconds(a);if(c!==0){h.setTime(h.getTime()+c*60000)}return h};dojo.date.fromIso8601Time=function(a){return dojo.date.setIso8601Time(new Date(0,0),a)};dojo.date.toRfc3339=function(f,a){if(!f){f=new Date()}var c=dojo.string.pad;var h=[];if(a!="timeOnly"){var b=[c(f.getFullYear(),4),c(f.getMonth()+1,2),c(f.getDate(),2)].join("-");h.push(b)}if(a!="dateOnly"){var g=[c(f.getHours(),2),c(f.getMinutes(),2),c(f.getSeconds(),2)].join(":");var d=f.getTimezoneOffset();g+=(d>0?"-":"+")+c(Math.floor(Math.abs(d)/60),2)+":"+c(Math.abs(d)%60,2);h.push(g)}return h.join("T")};dojo.date.fromRfc3339=function(a){if(a.indexOf("Tany")!=-1){a=a.replace("Tany","")}var b=new Date();return dojo.date.setIso8601(b,a)};dojo.provide("dojo.widget.DatePicker");dojo.widget.defineWidget("dojo.widget.DatePicker",dojo.widget.HtmlWidget,{value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",storedDate:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedItem"},templatePath:dojo.uri.dojoUri("src/widget/templates/DatePicker.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/DatePicker.css"),postMixInProperties:function(){dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments);if(this.storedDate){dojo.deprecated("dojo.widget.DatePicker","use 'value' instead of 'storedDate'","0.5");this.value=this.storedDate}this.startDate=dojo.date.fromRfc3339(this.startDate);this.endDate=dojo.date.fromRfc3339(this.endDate);this.startDate.setHours(0,0,0,0);this.endDate.setHours(24,0,0,-1);if(!this.weekStartsOn){this.weekStartsOn=dojo.date.getFirstDayOfWeek(this.lang)}this.today=new Date();this.today.setHours(0,0,0,0);if(typeof(this.value)=="string"&&this.value.toLowerCase()=="today"){this.value=new Date()}else{if(this.value&&(typeof this.value=="string")&&(this.value.split("-").length>2)){this.value=dojo.date.fromRfc3339(this.value);this.value.setHours(0,0,0,0)}}},fillInTemplate:function(b,g){dojo.widget.DatePicker.superclass.fillInTemplate.apply(this,arguments);var f=this.getFragNodeRef(g);dojo.html.copyStyle(this.domNode,f);this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);this._preInitUI(this.value?this.value:this.today,false,true);var a=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));if(this.weekStartsOn>0){for(var c=0;c<this.weekStartsOn;c++){a.push(a.shift())}}var d=this.dayLabelsRow.getElementsByTagName("td");for(c=0;c<7;c++){d.item(c).innerHTML=a[c]}if(this.value){this.setValue(this.value)}},getValue:function(){return dojo.date.toRfc3339(new Date(this.value),"dateOnly")},getDate:function(){return this.value},setValue:function(a){this.setDate(a)},setDate:function(a){if(typeof a=="string"){this.value=dojo.date.fromRfc3339(a)}else{this.value=new Date(a)}this.value.setHours(0,0,0,0);if(this.selectedNode!=null){dojo.html.removeClass(this.selectedNode,this.classNames.selectedDate)}if(this.clickedNode!=null){dojo.html.addClass(this.clickedNode,this.classNames.selectedDate);this.selectedNode=this.clickedNode}else{this._preInitUI(this.value,false,true)}this.clickedNode=null;this.onValueChanged(this.value)},_preInitUI:function(a,d,c){if(a<this.startDate||a>this.endDate){a=new Date((a<this.startDate)?this.startDate:this.endDate)}this.firstDay=this._initFirstDay(a,d);this.selectedIsUsed=false;this.currentIsUsed=false;var g=new Date(this.firstDay);var b=g.getMonth();this.curMonth=new Date(g);this.curMonth.setDate(g.getDate()+6);this.curMonth.setDate(1);if(this.displayWeeks==""||this.adjustWeeks){this.adjustWeeks=true;this.displayWeeks=Math.ceil((dojo.date.getDaysInMonth(this.curMonth)+this._getAdjustedDay(this.curMonth))/7)}var h=this.displayWeeks*7;if(dojo.date.diff(this.startDate,this.endDate,dojo.date.dateParts.DAY)<h){this.staticDisplay=true;if(dojo.date.diff(g,this.endDate,dojo.date.dateParts.DAY)>h){this._preInitUI(this.startDate,true,false);g=new Date(this.firstDay)}this.curMonth=new Date(g);this.curMonth.setDate(g.getDate()+6);this.curMonth.setDate(1);var f=(g.getMonth()==this.curMonth.getMonth())?"current":"previous"}if(c){this._initUI(h)}},_initUI:function(h){dojo.dom.removeChildren(this.calendarDatesContainerNode);for(var c=0;c<this.displayWeeks;c++){this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true))}var b=new Date(this.firstDay);this._setMonthLabel(this.curMonth.getMonth());this._setYearLabels(this.curMonth.getFullYear());var k=this.calendarDatesContainerNode.getElementsByTagName("td");var j=this.calendarDatesContainerNode.getElementsByTagName("tr");var f;for(c=0;c<h;c++){f=k.item(c);f.innerHTML=b.getDate();var g=(b.getMonth()<this.curMonth.getMonth())?"previous":(b.getMonth()==this.curMonth.getMonth())?"current":"next";var a=g;if(this._isDisabledDate(b)){var d={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};a=d[g]}dojo.html.setClass(f,this._getDateClassName(b,a));if(dojo.html.hasClass(f,this.classNames.selectedDate)){this.selectedNode=f}b=dojo.date.add(b,dojo.date.dateParts.DAY,1)}this.lastDay=dojo.date.add(b,dojo.date.dateParts.DAY,-1);this._initControls()},_initControls:function(){var d=this.firstDay;var d2=this.lastDay;var decWeek,incWeek,decMonth,incMonth,decYear,incYear;decWeek=incWeek=decMonth=incMonth=decYear=incYear=!this.staticDisplay;with(dojo.date.dateParts){var add=dojo.date.add;if(decWeek&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){decWeek=decMonth=decYear=false}if(incWeek&&d2>this.endDate){incWeek=incMonth=incYear=false}if(decMonth&&add(d,DAY,-1)<this.startDate){decMonth=decYear=false}if(incMonth&&add(d2,DAY,1)>this.endDate){incMonth=incYear=false}if(decYear&&add(d2,YEAR,-1)<this.startDate){decYear=false}if(incYear&&add(d,YEAR,1)>this.endDate){incYear=false}}function enableControl(node,enabled){dojo.html.setVisibility(node,enabled?"":"hidden")}enableControl(this.decreaseWeekNode,decWeek);enableControl(this.increaseWeekNode,incWeek);enableControl(this.decreaseMonthNode,decMonth);enableControl(this.increaseMonthNode,incMonth);enableControl(this.previousYearLabelNode,decYear);enableControl(this.nextYearLabelNode,incYear)},_incrementWeek:function(a){var c=new Date(this.firstDay);switch(a.target){case this.increaseWeekNode.getElementsByTagName("img").item(0):case this.increaseWeekNode:var b=dojo.date.add(c,dojo.date.dateParts.WEEK,1);if(b<this.endDate){c=dojo.date.add(c,dojo.date.dateParts.WEEK,1)}break;case this.decreaseWeekNode.getElementsByTagName("img").item(0):case this.decreaseWeekNode:if(c>=this.startDate){c=dojo.date.add(c,dojo.date.dateParts.WEEK,-1)}break}this._preInitUI(c,true,true)},_incrementMonth:function(a){var f=new Date(this.curMonth);var c=new Date(this.firstDay);switch(a.currentTarget){case this.increaseMonthNode.getElementsByTagName("img").item(0):case this.increaseMonthNode:c=dojo.date.add(c,dojo.date.dateParts.DAY,this.displayWeeks*7);if(c<this.endDate){f=dojo.date.add(f,dojo.date.dateParts.MONTH,1)}else{var g=true}break;case this.decreaseMonthNode.getElementsByTagName("img").item(0):case this.decreaseMonthNode:if(c>this.startDate){f=dojo.date.add(f,dojo.date.dateParts.MONTH,-1)}else{var b=true}break}if(b){f=new Date(this.startDate)}else{if(g){f=new Date(this.endDate)}}this._preInitUI(f,false,true)},_incrementYear:function(a){var f=this.curMonth.getFullYear();var c=new Date(this.firstDay);switch(a.target){case this.nextYearLabelNode:c=dojo.date.add(c,dojo.date.dateParts.YEAR,1);if(c<this.endDate){f++}else{var h=true}break;case this.previousYearLabelNode:c=dojo.date.add(c,dojo.date.dateParts.YEAR,-1);if(c>this.startDate){f--}else{var b=true}break}var g;if(b){g=new Date(this.startDate)}else{if(h){g=new Date(this.endDate)}else{g=new Date(f,this.curMonth.getMonth(),1)}}this._preInitUI(g,false,true)},onIncrementWeek:function(a){a.stopPropagation();if(!this.staticDisplay){this._incrementWeek(a)}},onIncrementMonth:function(a){a.stopPropagation();if(!this.staticDisplay){this._incrementMonth(a)}},onIncrementYear:function(a){a.stopPropagation();if(!this.staticDisplay){this._incrementYear(a)}},_setMonthLabel:function(a){this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[a]},_setYearLabels:function(a){var d=a-1;var b=this;function c(f){b[f+"YearLabelNode"].innerHTML=dojo.date.format(new Date(d++,0),{formatLength:"yearOnly",locale:b.lang})}c("previous");c("current");c("next")},_getDateClassName:function(b,a){var c=this.classNames[a];if((!this.selectedIsUsed&&this.value)&&(Number(b)==Number(this.value))){c=this.classNames.selectedDate+" "+c;this.selectedIsUsed=true}if((!this.currentIsUsed)&&(Number(b)==Number(this.today))){c=c+" "+this.classNames.currentDate;this.currentIsUsed=true}return c},onClick:function(a){dojo.event.browser.stopEvent(a)},_handleUiClick:function(a){var d=a.target;if(d.nodeType!=dojo.dom.ELEMENT_NODE){d=d.parentNode}dojo.event.browser.stopEvent(a);this.selectedIsUsed=this.todayIsUsed=false;var c=this.curMonth.getMonth();var b=this.curMonth.getFullYear();if(dojo.html.hasClass(d,this.classNames.disabledPrevious)||dojo.html.hasClass(d,this.classNames.disabledCurrent)||dojo.html.hasClass(d,this.classNames.disabledNext)){return}else{if(dojo.html.hasClass(d,this.classNames.next)){c=++c%12;if(c===0){++b}}else{if(dojo.html.hasClass(d,this.classNames.previous)){c=--c%12;if(c==11){--b}}}}this.clickedNode=d;this.setDate(new Date(b,c,d.innerHTML))},onValueChanged:function(a){},_isDisabledDate:function(a){if(a<this.startDate||a>this.endDate){return true}return this.isDisabledDate(a,this.lang)},isDisabledDate:function(b,a){return false},_initFirstDay:function(a,b){var c=new Date(a);if(!b){c.setDate(1)}c.setDate(c.getDate()-this._getAdjustedDay(c,this.weekStartsOn));c.setHours(0,0,0,0);return c},_getAdjustedDay:function(a){var c=[0,1,2,3,4,5,6];if(this.weekStartsOn>0){for(var b=0;b<this.weekStartsOn;b++){c.unshift(c.pop())}}return c[a.getDay()]},destroy:function(){dojo.widget.DatePicker.superclass.destroy.apply(this,arguments);dojo.html.destroyNode(this.weekTemplate)}});dojo.provide("dojo.widget.DropdownDatePicker");dojo.widget.defineWidget("dojo.widget.DropdownDatePicker",dojo.widget.DropdownContainer,{iconURL:dojo.uri.dojoUri("src/widget/templates/images/dateIcon.gif"),formatLength:"short",displayFormat:"",dateFormat:"",saveFormat:"",value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,postMixInProperties:function(b,d){dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);var a=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);this.iconAlt=a.selectDate;if(typeof(this.value)=="string"&&this.value.toLowerCase()=="today"){this.value=new Date()}if(this.value&&isNaN(this.value)){var c=this.value;this.value=dojo.date.fromRfc3339(this.value);if(!this.value){this.value=new Date(c);dojo.deprecated("dojo.widget.DropdownDatePicker","date attributes must be passed in Rfc3339 format","0.5")}}if(this.value&&!isNaN(this.value)){this.value=new Date(this.value)}},fillInTemplate:function(b,c){dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this,b,c);var a={widgetContainerId:this.widgetId,lang:this.lang,value:this.value,startDate:this.startDate,endDate:this.endDate,displayWeeks:this.displayWeeks,weekStartsOn:this.weekStartsOn,adjustWeeks:this.adjustWeeks,staticDisplay:this.staticDisplay};this.datePicker=dojo.widget.createWidget("DatePicker",a,this.containerNode,"child");dojo.event.connect(this.datePicker,"onValueChanged",this,"_updateText");if(this.value){this._updateText()}this.containerNode.explodeClassName="calendarBodyContainer";this.valueNode.name=this.name},getValue:function(){return this.valueNode.value},getDate:function(){return this.datePicker.value},setValue:function(a){this.setDate(a)},setDate:function(a){this.datePicker.setDate(a);this._syncValueNode()},_updateText:function(){if(this.dateFormat){dojo.deprecated("dojo.widget.DropdownDatePicker","Must use displayFormat attribute instead of dateFormat.  See dojo.date.format for specification.","0.5");this.inputNode.value=dojo.date.strftime(this.datePicker.value,this.dateFormat,this.lang)}else{if(this.datePicker.value){this.inputNode.value=dojo.date.format(this.datePicker.value,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang})}else{this.inputNode.value=""}}if(this.value<this.datePicker.startDate||this.value>this.datePicker.endDate){this.inputNode.value=""}this._syncValueNode();this.onValueChanged(this.getDate());this.hideContainer()},onValueChanged:function(a){},onInputChange:function(){if(this.dateFormat){dojo.deprecated("dojo.widget.DropdownDatePicker","Cannot parse user input.  Must use displayFormat attribute instead of dateFormat.  See dojo.date.format for specification.","0.5")}else{var a=dojo.string.trim(this.inputNode.value);if(a){var b=dojo.date.parse(a,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});if(b){this.setDate(b)}}else{this.valueNode.value=a}}if(a){this._updateText()}},_syncValueNode:function(){var a=this.datePicker.value;var b="";switch(this.saveFormat.toLowerCase()){case"rfc":case"iso":case"":b=dojo.date.toRfc3339(a,"dateOnly");break;case"posix":case"unix":b=Number(a);break;default:if(a){b=dojo.date.format(a,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang})}}this.valueNode.value=b},destroy:function(a){this.datePicker.destroy(a);dojo.widget.DropdownDatePicker.superclass.destroy.apply(this,arguments)}});dojo.provide("dojo.widget.Menu2");dojo.widget.defineWidget("dojo.widget.PopupMenu2",dojo.widget.PopupContainer,function(){this.targetNodeIds=[];this.eventNames={open:""}},{snarfChildDomOutput:true,eventNaming:"default",templateString:'<table class="dojoPopupMenu2" border=0 cellspacing=0 cellpadding=0 style="display: none;"><tbody dojoAttachPoint="containerNode"></tbody></table>',templateCssPath:dojo.uri.dojoUri("src/widget/templates/Menu2.css"),templateCssString:"",submenuDelay:500,submenuOverlap:5,contextMenuForWindow:false,initialize:function(b,c){if(this.eventNaming=="default"){for(var a in this.eventNames){this.eventNames[a]=this.widgetId+"/"+a}}},postCreate:function(){if(this.contextMenuForWindow){var a=dojo.body();this.bindDomNode(a)}else{if(this.targetNodeIds.length>0){dojo.lang.forEach(this.targetNodeIds,this.bindDomNode,this)}}this._subscribeSubitemsOnOpen()},_subscribeSubitemsOnOpen:function(){var a=this.getChildrenOfType(dojo.widget.MenuItem2);for(var b=0;b<a.length;b++){dojo.event.topic.subscribe(this.eventNames.open,a[b],"menuOpen")}},getTopOpenEvent:function(){var a=this;while(a.parentPopup){a=a.parentPopup}return a.openEvent},bindDomNode:function(a){a=dojo.byId(a);var b=dojo.html.getElementWindow(a);if(dojo.html.isTag(a,"iframe")=="iframe"){b=dojo.html.iframeContentWindow(a);a=dojo.withGlobal(b,dojo.body)}dojo.widget.Menu2.OperaAndKonqFixer.fixNode(a);dojo.event.kwConnect({srcObj:a,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});if(dojo.render.html.moz&&b.document.designMode.toLowerCase()=="on"){dojo.event.browser.addListener(a,"contextmenu",dojo.lang.hitch(this,"onOpen"))}dojo.widget.PopupManager.registerWin(b)},unBindDomNode:function(b){var a=dojo.byId(b);dojo.event.kwDisconnect({srcObj:a,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});dojo.widget.Menu2.OperaAndKonqFixer.cleanNode(a)},_moveToNext:function(a){this._highlightOption(1);return true},_moveToPrevious:function(a){this._highlightOption(-1);return true},_moveToParentMenu:function(a){if(this._highlighted_option&&this.parentPopup){if(a._menu2UpKeyProcessed){return true}else{this._highlighted_option.onUnhover();this.closeSubpopup();a._menu2UpKeyProcessed=true}}return false},_moveToChildMenu:function(a){if(this._highlighted_option&&this._highlighted_option.submenuId){this._highlighted_option._onClick(true);return true}return false},_selectCurrentItem:function(a){if(this._highlighted_option){this._highlighted_option._onClick();return true}return false},processKey:function(a){if(a.ctrlKey||a.altKey||!a.key){return false}var b=false;switch(a.key){case a.KEY_DOWN_ARROW:b=this._moveToNext(a);break;case a.KEY_UP_ARROW:b=this._moveToPrevious(a);break;case a.KEY_RIGHT_ARROW:b=this._moveToChildMenu(a);break;case a.KEY_LEFT_ARROW:b=this._moveToParentMenu(a);break;case" ":case a.KEY_ENTER:if(b=this._selectCurrentItem(a)){break}case a.KEY_ESCAPE:dojo.widget.PopupManager.currentMenu.close();b=true;break}return b},_findValidItem:function(a,c){if(c){c=a>0?c.getNextSibling():c.getPreviousSibling()}for(var b=0;b<this.children.length;++b){if(!c){c=a>0?this.children[0]:this.children[this.children.length-1]}if(c.onHover&&c.isShowing()){return c}c=a>0?c.getNextSibling():c.getPreviousSibling()}},_highlightOption:function(a){var c;if((!this._highlighted_option)){c=this._findValidItem(a)}else{c=this._findValidItem(a,this._highlighted_option)}if(c){if(this._highlighted_option){this._highlighted_option.onUnhover()}c.onHover();dojo.html.scrollIntoView(c.domNode);try{var b=dojo.html.getElementsByClass("dojoMenuItem2Label",c.domNode)[0];b.focus()}catch(d){}}},onItemClick:function(a){},close:function(a){if(this.animationInProgress){dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);return}if(this._highlighted_option){this._highlighted_option.onUnhover()}dojo.widget.PopupMenu2.superclass.close.apply(this,arguments)},closeSubpopup:function(a){if(this.currentSubpopup==null){return}this.currentSubpopup.close(a);this.currentSubpopup=null;this.currentSubmenuTrigger.is_open=false;this.currentSubmenuTrigger._closedSubmenu(a);this.currentSubmenuTrigger=null},_openSubmenu:function(d,b){var c=dojo.html.getAbsolutePosition(b.domNode,true);var f=dojo.html.getMarginBox(this.domNode).width;var a=c.x+f-this.submenuOverlap;var g=c.y;d.open(a,g,this,b.domNode);this.currentSubmenuTrigger=b;this.currentSubmenuTrigger.is_open=true},onOpen:function(f){this.openEvent=f;if(f.target){this.openedForWindow=dojo.html.getElementWindow(f.target)}else{this.openedForWindow=null}var a=f.pageX,g=f.pageY;var d=dojo.html.getElementWindow(f.target);var b=d._frameElement||d.frameElement;if(b){var c=dojo.html.abs(b,true);a+=c.x-dojo.withGlobal(d,dojo.html.getScroll).left;g+=c.y-dojo.withGlobal(d,dojo.html.getScroll).top}this.open(a,g,null,[a,g]);f.preventDefault();f.stopPropagation()}});dojo.widget.defineWidget("dojo.widget.MenuItem2",dojo.widget.HtmlWidget,function(){this.eventNames={engage:""}},{templateString:'<tr class="dojoMenuItem2" dojoAttachEvent="onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;"><td><div class="${this.iconClass}" style="${this.iconStyle}"></div></td><td tabIndex="-1" class="dojoMenuItem2Label">${this.caption}</td><td class="dojoMenuItem2Accel">${this.accelKey}</td><td><div class="dojoMenuItem2Submenu" style="display:${this.arrowDisplay};"></div></td></tr>',is_hovering:false,hover_timer:null,is_open:false,topPosition:0,caption:"Untitled",accelKey:"",iconSrc:"",disabledClass:"dojoMenuItem2Disabled",iconClass:"dojoMenuItem2Icon",submenuId:"",eventNaming:"default",highlightClass:"dojoMenuItem2Hover",postMixInProperties:function(){this.iconStyle="";if(this.iconSrc){if((this.iconSrc.toLowerCase().substring(this.iconSrc.length-4)==".png")&&(dojo.render.html.ie55||dojo.render.html.ie60)){this.iconStyle="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.iconSrc+"', sizingMethod='image')"}else{this.iconStyle="background-image: url("+this.iconSrc+")"}}this.arrowDisplay=this.submenuId?"block":"none";dojo.widget.MenuItem2.superclass.postMixInProperties.apply(this,arguments)},fillInTemplate:function(){dojo.html.disableSelection(this.domNode);if(this.disabled){this.setDisabled(true)}if(this.eventNaming=="default"){for(var a in this.eventNames){this.eventNames[a]=this.widgetId+"/"+a}}},onHover:function(){this.onUnhover();if(this.is_hovering){return}if(this.is_open){return}if(this.parent._highlighted_option){this.parent._highlighted_option.onUnhover()}this.parent.closeSubpopup();this.parent._highlighted_option=this;dojo.widget.PopupManager.setFocusedMenu(this.parent);this._highlightItem();if(this.is_hovering){this._stopSubmenuTimer()}this.is_hovering=true;this._startSubmenuTimer()},onUnhover:function(){if(!this.is_open){this._unhighlightItem()}this.is_hovering=false;this.parent._highlighted_option=null;if(this.parent.parentPopup){dojo.widget.PopupManager.setFocusedMenu(this.parent.parentPopup)}this._stopSubmenuTimer()},_onClick:function(b){var a=false;if(this.disabled){return false}if(this.submenuId){if(!this.is_open){this._stopSubmenuTimer();this._openSubmenu()}a=true}else{this.onUnhover();this.parent.closeAll(true)}this.onClick();dojo.event.topic.publish(this.eventNames.engage,this);if(a&&b){dojo.widget.getWidgetById(this.submenuId)._highlightOption(1)}return},onClick:function(){this.parent.onItemClick(this)},_highlightItem:function(){dojo.html.addClass(this.domNode,this.highlightClass)},_unhighlightItem:function(){dojo.html.removeClass(this.domNode,this.highlightClass)},_startSubmenuTimer:function(){this._stopSubmenuTimer();if(this.disabled){return}var a=this;var b=function(){return function(){a._openSubmenu()}}();this.hover_timer=dojo.lang.setTimeout(b,this.parent.submenuDelay)},_stopSubmenuTimer:function(){if(this.hover_timer){dojo.lang.clearTimeout(this.hover_timer);this.hover_timer=null}},_openSubmenu:function(){if(this.disabled){return}this.parent.closeSubpopup();var a=dojo.widget.getWidgetById(this.submenuId);if(a){this.parent._openSubmenu(a,this)}},_closedSubmenu:function(){this.onUnhover()},setDisabled:function(a){this.disabled=a;if(this.disabled){dojo.html.addClass(this.domNode,this.disabledClass)}else{dojo.html.removeClass(this.domNode,this.disabledClass)}},enable:function(){this.setDisabled(false)},disable:function(){this.setDisabled(true)},menuOpen:function(a){}});dojo.widget.defineWidget("dojo.widget.MenuSeparator2",dojo.widget.HtmlWidget,{templateString:'<tr class="dojoMenuSeparator2"><td colspan=4><div class="dojoMenuSeparator2Top"></div><div class="dojoMenuSeparator2Bottom"></div></td></tr>',postCreate:function(){dojo.html.disableSelection(this.domNode)}});dojo.widget.defineWidget("dojo.widget.MenuBar2",dojo.widget.PopupMenu2,{menuOverlap:2,templateString:'<div class="dojoMenuBar2" tabIndex="0"><table class="dojoMenuBar2Client"><tr dojoAttachPoint="containerNode"></tr></table></div>',close:function(a){if(this._highlighted_option){this._highlighted_option.onUnhover()}this.closeSubpopup(a)},processKey:function(a){if(a.ctrlKey||a.altKey){return false}if(!dojo.html.hasClass(a.target,"dojoMenuBar2")){return false}var b=false;switch(a.key){case a.KEY_DOWN_ARROW:b=this._moveToChildMenu(a);break;case a.KEY_UP_ARROW:b=this._moveToParentMenu(a);break;case a.KEY_RIGHT_ARROW:b=this._moveToNext(a);break;case a.KEY_LEFT_ARROW:b=this._moveToPrevious(a);break;default:b=dojo.widget.MenuBar2.superclass.processKey.apply(this,arguments);break}return b},postCreate:function(){dojo.widget.MenuBar2.superclass.postCreate.apply(this,arguments);dojo.widget.PopupManager.opened(this);this.isShowingNow=true},_openSubmenu:function(f,b){var d=dojo.html.getAbsolutePosition(b.domNode,true);var c=dojo.html.getAbsolutePosition(this.domNode,true);var h=dojo.html.getBorderBox(this.domNode).height;var a=d.x;var g=c.y+h-this.menuOverlap;f.open(a,g,this,b.domNode);this.currentSubmenuTrigger=b;this.currentSubmenuTrigger.is_open=true}});dojo.widget.defineWidget("dojo.widget.MenuBarItem2",dojo.widget.MenuItem2,{templateString:'<td class="dojoMenuBarItem2" dojoAttachEvent="onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick;"><span>${this.caption}</span></td>',highlightClass:"dojoMenuBarItem2Hover",setDisabled:function(a){this.disabled=a;if(this.disabled){dojo.html.addClass(this.domNode,"dojoMenuBarItem2Disabled")}else{dojo.html.removeClass(this.domNode,"dojoMenuBarItem2Disabled")}}});dojo.widget.Menu2.OperaAndKonqFixer=new function(){var c=true;var a=false;if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){dojo.doc().oncontextmenu=function(){c=false;a=true}}if(dojo.doc().createEvent){try{var b=dojo.doc().createEvent("MouseEvents");b.initMouseEvent("contextmenu",1,1,dojo.global(),1,0,0,0,0,0,0,0,0,0,null);dojo.doc().dispatchEvent(b)}catch(b){}}else{c=false}if(a){delete dojo.doc().oncontextmenu}this.fixNode=function(d){if(c){if(!dojo.lang.isFunction(d.oncontextmenu)){d.oncontextmenu=function(f){}}if(dojo.render.html.opera){d._menufixer_opera=function(f){if(f.ctrlKey){this.oncontextmenu(f)}};dojo.event.connect(d,"onclick",d,"_menufixer_opera")}else{d._menufixer_konq=function(f){if(f.button==2){f.preventDefault();this.oncontextmenu(f)}};dojo.event.connect(d,"onmousedown",d,"_menufixer_konq")}}};this.cleanNode=function(d){if(c){if(d._menufixer_opera){dojo.event.disconnect(d,"onclick",d,"_menufixer_opera");delete d._menufixer_opera}else{if(d._menufixer_konq){dojo.event.disconnect(d,"onmousedown",d,"_menufixer_konq");delete d._menufixer_konq}}if(d.oncontextmenu){delete d.oncontextmenu}}}};dojo.provide("dojo.widget.PageContainer");dojo.widget.defineWidget("dojo.widget.PageContainer",dojo.widget.HtmlWidget,{isContainer:true,doLayout:true,templateString:"<div dojoAttachPoint='containerNode'></div>",selectedChild:"",fillInTemplate:function(a,c){var b=this.getFragNodeRef(c);dojo.html.copyStyle(this.domNode,b);dojo.widget.PageContainer.superclass.fillInTemplate.apply(this,arguments)},postCreate:function(b,d){if(this.children.length){dojo.lang.forEach(this.children,this._setupChild,this);var a;if(this.selectedChild){this.selectChild(this.selectedChild)}else{for(var c=0;c<this.children.length;c++){if(this.children[c].selected){this.selectChild(this.children[c]);break}}if(!this.selectedChildWidget){this.selectChild(this.children[0])}}}},addChild:function(a){dojo.widget.PageContainer.superclass.addChild.apply(this,arguments);this._setupChild(a);this.onResized();if(!this.selectedChildWidget){this.selectChild(a)}},_setupChild:function(a){a.hide();a.domNode.style.position="relative";dojo.event.topic.publish(this.widgetId+"-addChild",a)},removeChild:function(a){dojo.widget.PageContainer.superclass.removeChild.apply(this,arguments);if(this._beingDestroyed){return}dojo.event.topic.publish(this.widgetId+"-removeChild",a);this.onResized();if(this.selectedChildWidget===a){this.selectedChildWidget=undefined;if(this.children.length>0){this.selectChild(this.children[0],true)}}},selectChild:function(b,a){b=dojo.widget.byId(b);this.correspondingPageButton=a;if(this.selectedChildWidget){this._hideChild(this.selectedChildWidget)}this.selectedChildWidget=b;this.selectedChild=b.widgetId;this._showChild(b);b.isFirstChild=(b==this.children[0]);b.isLastChild=(b==this.children[this.children.length-1]);dojo.event.topic.publish(this.widgetId+"-selectChild",b)},forward:function(){var a=dojo.lang.find(this.children,this.selectedChildWidget);this.selectChild(this.children[a+1])},back:function(){var a=dojo.lang.find(this.children,this.selectedChildWidget);this.selectChild(this.children[a-1])},onResized:function(){if(this.doLayout&&this.selectedChildWidget){with(this.selectedChildWidget.domNode.style){top=dojo.html.getPixelValue(this.containerNode,"padding-top",true);left=dojo.html.getPixelValue(this.containerNode,"padding-left",true)}var content=dojo.html.getContentBox(this.containerNode);this.selectedChildWidget.resizeTo(content.width,content.height)}},_showChild:function(b){if(this.doLayout){var a=dojo.html.getContentBox(this.containerNode);b.resizeTo(a.width,a.height)}b.selected=true;b.show()},_hideChild:function(a){a.selected=false;a.hide()},closeChild:function(b){var a=b.onClose(this,b);if(a){this.removeChild(b);b.destroy()}},destroy:function(){this._beingDestroyed=true;dojo.event.topic.destroy(this.widgetId+"-addChild");dojo.event.topic.destroy(this.widgetId+"-removeChild");dojo.event.topic.destroy(this.widgetId+"-selectChild");dojo.widget.PageContainer.superclass.destroy.apply(this,arguments)}});dojo.widget.defineWidget("dojo.widget.PageController",dojo.widget.HtmlWidget,{templateString:"<span wairole='tablist' dojoAttachEvent='onKey'></span>",isContainer:true,containerId:"",buttonWidget:"PageButton","class":"dojoPageController",fillInTemplate:function(){dojo.html.addClass(this.domNode,this["class"]);dojo.widget.wai.setAttr(this.domNode,"waiRole","role","tablist")},postCreate:function(){this.pane2button={};var a=dojo.widget.byId(this.containerId);if(a){dojo.lang.forEach(a.children,this.onAddChild,this)}dojo.event.topic.subscribe(this.containerId+"-addChild",this,"onAddChild");dojo.event.topic.subscribe(this.containerId+"-removeChild",this,"onRemoveChild");dojo.event.topic.subscribe(this.containerId+"-selectChild",this,"onSelectChild")},destroy:function(){dojo.event.topic.unsubscribe(this.containerId+"-addChild",this,"onAddChild");dojo.event.topic.unsubscribe(this.containerId+"-removeChild",this,"onRemoveChild");dojo.event.topic.unsubscribe(this.containerId+"-selectChild",this,"onSelectChild");dojo.widget.PageController.superclass.destroy.apply(this,arguments)},onAddChild:function(b){var a=dojo.widget.createWidget(this.buttonWidget,{label:b.label,closeButton:b.closable});this.addChild(a);this.domNode.appendChild(a.domNode);this.pane2button[b]=a;b.controlButton=a;var c=this;dojo.event.connect(a,"onClick",function(){c.onButtonClick(b)});dojo.event.connect(a,"onCloseButtonClick",function(){c.onCloseButtonClick(b)})},onRemoveChild:function(b){if(this._currentChild==b){this._currentChild=null}var a=this.pane2button[b];if(a){a.destroy()}this.pane2button[b]=null},onSelectChild:function(c){if(this._currentChild){var a=this.pane2button[this._currentChild];a.clearSelected()}var b=this.pane2button[c];b.setSelected();this._currentChild=c},onButtonClick:function(b){var a=dojo.widget.byId(this.containerId);a.selectChild(b,false,this)},onCloseButtonClick:function(b){var a=dojo.widget.byId(this.containerId);a.closeChild(b)},onKey:function(a){if((a.keyCode==a.KEY_RIGHT_ARROW)||(a.keyCode==a.KEY_LEFT_ARROW)){var c=0;var b=null;var c=dojo.lang.find(this.children,this.pane2button[this._currentChild]);if(a.keyCode==a.KEY_RIGHT_ARROW){b=this.children[(c+1)%this.children.length]}else{b=this.children[(c+(this.children.length-1))%this.children.length]}dojo.event.browser.stopEvent(a);b.onClick()}}});dojo.widget.defineWidget("dojo.widget.PageButton",dojo.widget.HtmlWidget,{templateString:"<span class='item'><span dojoAttachEvent='onClick' dojoAttachPoint='titleNode' class='selectButton'>${this.label}</span><span dojoAttachEvent='onClick:onCloseButtonClick' class='closeButton'>[X]</span></span>",label:"foo",closeButton:false,onClick:function(){this.focus()},onCloseButtonMouseOver:function(){dojo.html.addClass(this.closeButtonNode,"closeHover")},onCloseButtonMouseOut:function(){dojo.html.removeClass(this.closeButtonNode,"closeHover")},onCloseButtonClick:function(a){},setSelected:function(){dojo.html.addClass(this.domNode,"current");this.titleNode.setAttribute("tabIndex","0")},clearSelected:function(){dojo.html.removeClass(this.domNode,"current");this.titleNode.setAttribute("tabIndex","-1")},focus:function(){if(this.titleNode.focus){this.titleNode.focus()}}});dojo.lang.extend(dojo.widget.Widget,{label:"",selected:false,closable:false,onClose:function(){return true}});dojo.provide("dojo.widget.html.layout");dojo.widget.html.layout=function(container,children,layoutPriority){dojo.html.addClass(container,"dojoLayoutContainer");children=dojo.lang.filter(children,function(child,idx){child.idx=idx;return dojo.lang.inArray(["top","bottom","left","right","client","flood"],child.layoutAlign)});if(layoutPriority&&layoutPriority!="none"){var rank=function(child){switch(child.layoutAlign){case"flood":return 1;case"left":case"right":return(layoutPriority=="left-right")?2:3;case"top":case"bottom":return(layoutPriority=="left-right")?3:2;default:return 4}};children.sort(function(a,b){return(rank(a)-rank(b))||(a.idx-b.idx)})}var f={top:dojo.html.getPixelValue(container,"padding-top",true),left:dojo.html.getPixelValue(container,"padding-left",true)};dojo.lang.mixin(f,dojo.html.getContentBox(container));dojo.lang.forEach(children,function(child){var elm=child.domNode;var pos=child.layoutAlign;with(elm.style){left=f.left+"px";top=f.top+"px";bottom="auto";right="auto"}dojo.html.addClass(elm,"dojoAlign"+dojo.string.capitalize(pos));if((pos=="top")||(pos=="bottom")){dojo.html.setMarginBox(elm,{width:f.width});var h=dojo.html.getMarginBox(elm).height;f.height-=h;if(pos=="top"){f.top+=h}else{elm.style.top=f.top+f.height+"px"}if(child.onResized){child.onResized()}}else{if(pos=="left"||pos=="right"){var w=dojo.html.getMarginBox(elm).width;if(child.resizeTo){child.resizeTo(w,f.height)}else{dojo.html.setMarginBox(elm,{width:w,height:f.height})}f.width-=w;if(pos=="left"){f.left+=w}else{elm.style.left=f.left+f.width+"px"}}else{if(pos=="flood"||pos=="client"){if(child.resizeTo){child.resizeTo(f.width,f.height)}else{dojo.html.setMarginBox(elm,{width:f.width,height:f.height})}}}}})};dojo.html.insertCssText(".dojoLayoutContainer{ position: relative; display: block; overflow: hidden; }\nbody .dojoAlignTop, body .dojoAlignBottom, body .dojoAlignLeft, body .dojoAlignRight { position: absolute; overflow: hidden; }\nbody .dojoAlignClient { position: absolute }\n.dojoAlignClient { overflow: auto; }\n");dojo.provide("dojo.widget.TabContainer");dojo.widget.defineWidget("dojo.widget.TabContainer",dojo.widget.PageContainer,{labelPosition:"top",closeButton:"none",templateString:null,templatePath:dojo.uri.dojoUri("src/widget/templates/TabContainer.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/TabContainer.css"),selectedTab:"",postMixInProperties:function(){if(this.selectedTab){dojo.deprecated("selectedTab deprecated, use selectedChild instead, will be removed in","0.5");this.selectedChild=this.selectedTab}if(this.closeButton!="none"){dojo.deprecated("closeButton deprecated, use closable='true' on each child instead, will be removed in","0.5")}dojo.widget.TabContainer.superclass.postMixInProperties.apply(this,arguments)},fillInTemplate:function(){this.tablist=dojo.widget.createWidget("TabController",{id:this.widgetId+"_tablist",labelPosition:this.labelPosition,doLayout:this.doLayout,containerId:this.widgetId},this.tablistNode);dojo.widget.TabContainer.superclass.fillInTemplate.apply(this,arguments)},postCreate:function(a,b){dojo.widget.TabContainer.superclass.postCreate.apply(this,arguments);this.onResized()},_setupChild:function(a){if(this.closeButton=="tab"||this.closeButton=="pane"){a.closable=true}dojo.html.addClass(a.domNode,"dojoTabPane");dojo.widget.TabContainer.superclass._setupChild.apply(this,arguments)},onResized:function(){if(!this.doLayout){return}var b=this.labelPosition.replace(/-h/,"");var a=[{domNode:this.tablist.domNode,layoutAlign:b},{domNode:this.containerNode,layoutAlign:"client"}];dojo.widget.html.layout(this.domNode,a);if(this.selectedChildWidget){var c=dojo.html.getContentBox(this.containerNode);this.selectedChildWidget.resizeTo(c.width,c.height)}},selectTab:function(b,a){dojo.deprecated("use selectChild() rather than selectTab(), selectTab() will be removed in","0.5");this.selectChild(b,a)},onKey:function(b){if(b.keyCode==b.KEY_UP_ARROW&&b.ctrlKey){var a=this.correspondingTabButton||this.selectedTabWidget.tabButton;a.focus();dojo.event.browser.stopEvent(b)}else{if(b.keyCode==b.KEY_DELETE&&b.altKey){if(this.selectedChildWidget.closable){this.closeChild(this.selectedChildWidget);dojo.event.browser.stopEvent(b)}}}},destroy:function(){this.tablist.destroy();dojo.widget.TabContainer.superclass.destroy.apply(this,arguments)}});dojo.widget.defineWidget("dojo.widget.TabController",dojo.widget.PageController,{templateString:"<div wairole='tablist' dojoAttachEvent='onKey'></div>",labelPosition:"top",doLayout:true,"class":"",buttonWidget:"TabButton",postMixInProperties:function(){if(!this["class"]){this["class"]="dojoTabLabels-"+this.labelPosition+(this.doLayout?"":" dojoTabNoLayout")}dojo.widget.TabController.superclass.postMixInProperties.apply(this,arguments)}});dojo.widget.defineWidget("dojo.widget.TabButton",dojo.widget.PageButton,{templateString:"<div class='dojoTab' dojoAttachEvent='onClick'><div dojoAttachPoint='innerDiv'><span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span><span dojoAttachPoint='closeButtonNode' class='close closeImage' style='${this.closeButtonStyle}'    dojoAttachEvent='onMouseOver:onCloseButtonMouseOver; onMouseOut:onCloseButtonMouseOut; onClick:onCloseButtonClick'></span></div></div>",postMixInProperties:function(){this.closeButtonStyle=this.closeButton?"":"display: none";dojo.widget.TabButton.superclass.postMixInProperties.apply(this,arguments)},fillInTemplate:function(){dojo.html.disableSelection(this.titleNode);dojo.widget.TabButton.superclass.fillInTemplate.apply(this,arguments)},onCloseButtonClick:function(a){a.stopPropagation();dojo.widget.TabButton.superclass.onCloseButtonClick.apply(this,arguments)}});dojo.widget.defineWidget("dojo.widget.a11y.TabButton",dojo.widget.TabButton,{imgPath:dojo.uri.dojoUri("src/widget/templates/images/tab_close.gif"),templateString:"<div class='dojoTab' dojoAttachEvent='onClick;onKey'><div dojoAttachPoint='innerDiv'><span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span><img class='close' src='${this.imgPath}' alt='[x]' style='${this.closeButtonStyle}'    dojoAttachEvent='onClick:onCloseButtonClick'></div></div>"});dojo.provide("dojo.widget.TreeNode");dojo.widget.defineWidget("dojo.widget.TreeNode",dojo.widget.HtmlWidget,function(){this.actionsDisabled=[]},{widgetType:"TreeNode",loadStates:{UNCHECKED:"UNCHECKED",LOADING:"LOADING",LOADED:"LOADED"},actions:{MOVE:"MOVE",REMOVE:"REMOVE",EDIT:"EDIT",ADDCHILD:"ADDCHILD"},isContainer:true,lockLevel:0,templateString:('<div class="dojoTreeNode"> <span treeNode="${this.widgetId}" class="dojoTreeNodeLabel" dojoAttachPoint="labelNode"> 		<span dojoAttachPoint="titleNode" dojoAttachEvent="onClick: onTitleClick" class="dojoTreeNodeLabelTitle">${this.title}</span> </span> <span class="dojoTreeNodeAfterLabel" dojoAttachPoint="afterLabelNode">${this.afterLabel}</span> <div dojoAttachPoint="containerNode" style="display:none"></div> </div>').replace(/(>|<)\s+/g,"$1"),childIconSrc:"",childIconFolderSrc:dojo.uri.dojoUri("src/widget/templates/images/Tree/closed.gif"),childIconDocumentSrc:dojo.uri.dojoUri("src/widget/templates/images/Tree/document.gif"),childIcon:null,isTreeNode:true,objectId:"",afterLabel:"",afterLabelNode:null,expandIcon:null,title:"",object:"",isFolder:false,labelNode:null,titleNode:null,imgs:null,expandLevel:"",tree:null,depth:0,isExpanded:false,state:null,domNodeInitialized:false,isFirstChild:function(){return this.getParentIndex()==0?true:false},isLastChild:function(){return this.getParentIndex()==this.parent.children.length-1?true:false},lock:function(){return this.tree.lock.apply(this,arguments)},unlock:function(){return this.tree.unlock.apply(this,arguments)},isLocked:function(){return this.tree.isLocked.apply(this,arguments)},cleanLock:function(){return this.tree.cleanLock.apply(this,arguments)},actionIsDisabled:function(b){var c=this;var a=false;if(this.tree.strictFolders&&b==this.actions.ADDCHILD&&!this.isFolder){a=true}if(dojo.lang.inArray(c.actionsDisabled,b)){a=true}if(this.isLocked()){a=true}return a},getInfo:function(){var a={widgetId:this.widgetId,objectId:this.objectId,index:this.getParentIndex(),isFolder:this.isFolder};return a},initialize:function(a,c){this.state=this.loadStates.UNCHECKED;for(var b=0;b<this.actionsDisabled.length;b++){this.actionsDisabled[b]=this.actionsDisabled[b].toUpperCase()}this.expandLevel=parseInt(this.expandLevel)},adjustDepth:function(c){for(var b=0;b<this.children.length;b++){this.children[b].adjustDepth(c)}this.depth+=c;if(c>0){for(var b=0;b<c;b++){var a=this.tree.makeBlankImg();this.imgs.unshift(a);dojo.html.insertBefore(this.imgs[0],this.domNode.firstChild)}}if(c<0){for(var b=0;b<-c;b++){this.imgs.shift();dojo.html.removeNode(this.domNode.firstChild)}}},markLoading:function(){this._markLoadingSavedIcon=this.expandIcon.src;this.expandIcon.src=this.tree.expandIconSrcLoading},unMarkLoading:function(){if(!this._markLoadingSavedIcon){return}var a=new Image();a.src=this.tree.expandIconSrcLoading;if(this.expandIcon.src==a.src){this.expandIcon.src=this._markLoadingSavedIcon}this._markLoadingSavedIcon=null},setFolder:function(){dojo.event.connect(this.expandIcon,"onclick",this,"onTreeClick");this.expandIcon.src=this.isExpanded?this.tree.expandIconSrcMinus:this.tree.expandIconSrcPlus;this.isFolder=true},createDOMNode:function(a,f){this.tree=a;this.depth=f;this.imgs=[];for(var c=0;c<this.depth+1;c++){var b=this.tree.makeBlankImg();this.domNode.insertBefore(b,this.labelNode);this.imgs.push(b)}this.expandIcon=this.imgs[this.imgs.length-1];this.childIcon=this.tree.makeBlankImg();this.imgs.push(this.childIcon);dojo.html.insertBefore(this.childIcon,this.titleNode);if(this.children.length||this.isFolder){this.setFolder()}else{this.state=this.loadStates.LOADED}dojo.event.connect(this.childIcon,"onclick",this,"onIconClick");for(var c=0;c<this.children.length;c++){this.children[c].parent=this;var d=this.children[c].createDOMNode(this.tree,this.depth+1);this.containerNode.appendChild(d)}if(this.children.length){this.state=this.loadStates.LOADED}this.updateIcons();this.domNodeInitialized=true;dojo.event.topic.publish(this.tree.eventNames.createDOMNode,{source:this});return this.domNode},onTreeClick:function(a){dojo.event.topic.publish(this.tree.eventNames.treeClick,{source:this,event:a})},onIconClick:function(a){dojo.event.topic.publish(this.tree.eventNames.iconClick,{source:this,event:a})},onTitleClick:function(a){dojo.event.topic.publish(this.tree.eventNames.titleClick,{source:this,event:a})},markSelected:function(){dojo.html.addClass(this.titleNode,"dojoTreeNodeLabelSelected")},unMarkSelected:function(){dojo.html.removeClass(this.titleNode,"dojoTreeNodeLabelSelected")},updateExpandIcon:function(){if(this.isFolder){this.expandIcon.src=this.isExpanded?this.tree.expandIconSrcMinus:this.tree.expandIconSrcPlus}else{this.expandIcon.src=this.tree.blankIconSrc}},updateExpandGrid:function(){if(this.tree.showGrid){if(this.depth){this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcL:this.tree.gridIconSrcT)}else{if(this.isFirstChild()){this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcX:this.tree.gridIconSrcY)}else{this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcL:this.tree.gridIconSrcT)}}}else{this.setGridImage(-2,this.tree.blankIconSrc)}},updateChildGrid:function(){if((this.depth||this.tree.showRootGrid)&&this.tree.showGrid){this.setGridImage(-1,(this.children.length&&this.isExpanded)?this.tree.gridIconSrcP:this.tree.gridIconSrcC)}else{if(this.tree.showGrid&&!this.tree.showRootGrid){this.setGridImage(-1,(this.children.length&&this.isExpanded)?this.tree.gridIconSrcZ:this.tree.blankIconSrc)}else{this.setGridImage(-1,this.tree.blankIconSrc)}}},updateParentGrid:function(){var d=this.parent;for(var c=0;c<this.depth;c++){var a=this.imgs.length-(3+c);var b=(this.tree.showGrid&&!d.isLastChild())?this.tree.gridIconSrcV:this.tree.blankIconSrc;this.setGridImage(a,b);d=d.parent}},updateExpandGridColumn:function(){if(!this.tree.showGrid){return}var b=this;var a=this.isLastChild()?this.tree.blankIconSrc:this.tree.gridIconSrcV;dojo.lang.forEach(b.getDescendants(),function(c){c.setGridImage(b.depth,a)});this.updateExpandGrid()},updateIcons:function(){this.imgs[0].style.display=this.tree.showRootGrid?"inline":"none";this.buildChildIcon();this.updateExpandGrid();this.updateChildGrid();this.updateParentGrid();dojo.profile.stop("updateIcons")},buildChildIcon:function(){if(this.childIconSrc){this.childIcon.src=this.childIconSrc}this.childIcon.style.display=this.childIconSrc?"inline":"none"},setGridImage:function(a,b){if(a<0){a=this.imgs.length+a}this.imgs[a].style.backgroundImage="url("+b+")"},updateIconTree:function(){this.tree.updateIconTree.call(this)},expand:function(){if(this.isExpanded){return}if(this.children.length){this.showChildren()}this.isExpanded=true;this.updateExpandIcon();dojo.event.topic.publish(this.tree.eventNames.expand,{source:this})},collapse:function(){if(!this.isExpanded){return}this.hideChildren();this.isExpanded=false;this.updateExpandIcon();dojo.event.topic.publish(this.tree.eventNames.collapse,{source:this})},hideChildren:function(){this.tree.toggleObj.hide(this.containerNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onHide"));if(dojo.exists(dojo,"dnd.dragManager.dragObjects")&&dojo.dnd.dragManager.dragObjects.length){dojo.dnd.dragManager.cacheTargetLocations()}},showChildren:function(){this.tree.toggleObj.show(this.containerNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onShow"));if(dojo.exists(dojo,"dnd.dragManager.dragObjects")&&dojo.dnd.dragManager.dragObjects.length){dojo.dnd.dragManager.cacheTargetLocations()}},addChild:function(){return this.tree.addChild.apply(this,arguments)},doAddChild:function(){return this.tree.doAddChild.apply(this,arguments)},edit:function(a){dojo.lang.mixin(this,a);if(a.title){this.titleNode.innerHTML=this.title}if(a.afterLabel){this.afterLabelNode.innerHTML=this.afterLabel}if(a.childIconSrc){this.buildChildIcon()}},removeNode:function(){return this.tree.removeNode.apply(this,arguments)},doRemoveNode:function(){return this.tree.doRemoveNode.apply(this,arguments)},toString:function(){return"["+this.widgetType+" Tree:"+this.tree+" ID:"+this.widgetId+" Title:"+this.title+"]"}});dojo.provide("dojo.dnd.TreeDragAndDrop");dojo.dnd.TreeDragSource=function(b,d,a,c){this.controller=d;this.treeNode=c;dojo.dnd.HtmlDragSource.call(this,b,a)};dojo.inherits(dojo.dnd.TreeDragSource,dojo.dnd.HtmlDragSource);dojo.lang.extend(dojo.dnd.TreeDragSource,{onDragStart:function(){var a=dojo.dnd.HtmlDragSource.prototype.onDragStart.call(this);a.treeNode=this.treeNode;a.onDragStart=dojo.lang.hitch(a,function(f){this.savedSelectedNode=this.treeNode.tree.selector.selectedNode;if(this.savedSelectedNode){this.savedSelectedNode.unMarkSelected()}var c=dojo.dnd.HtmlDragObject.prototype.onDragStart.apply(this,arguments);var b=this.dragClone.getElementsByTagName("img");for(var d=0;d<b.length;d++){b.item(d).style.backgroundImage="url()"}return c});a.onDragEnd=function(b){if(this.savedSelectedNode){this.savedSelectedNode.markSelected()}return dojo.dnd.HtmlDragObject.prototype.onDragEnd.apply(this,arguments)};return a},onDragEnd:function(b){var a=dojo.dnd.HtmlDragSource.prototype.onDragEnd.call(this,b);return a}});dojo.dnd.TreeDropTarget=function(c,a,b,d){this.treeNode=d;this.controller=a;dojo.dnd.HtmlDropTarget.apply(this,[c,b])};dojo.inherits(dojo.dnd.TreeDropTarget,dojo.dnd.HtmlDropTarget);dojo.lang.extend(dojo.dnd.TreeDropTarget,{autoExpandDelay:1500,autoExpandTimer:null,position:null,indicatorStyle:"2px black solid",showIndicator:function(a){if(this.position==a){return}this.hideIndicator();this.position=a;if(a=="before"){this.treeNode.labelNode.style.borderTop=this.indicatorStyle}else{if(a=="after"){this.treeNode.labelNode.style.borderBottom=this.indicatorStyle}else{if(a=="onto"){this.treeNode.markSelected()}}}},hideIndicator:function(){this.treeNode.labelNode.style.borderBottom="";this.treeNode.labelNode.style.borderTop="";this.treeNode.unMarkSelected();this.position=null},onDragOver:function(b){var a=dojo.dnd.HtmlDropTarget.prototype.onDragOver.apply(this,arguments);if(a&&this.treeNode.isFolder&&!this.treeNode.isExpanded){this.setAutoExpandTimer()}return a},accepts:function(c){var b=dojo.dnd.HtmlDropTarget.prototype.accepts.apply(this,arguments);if(!b){return false}var a=c[0].treeNode;if(dojo.lang.isUndefined(a)||!a||!a.isTreeNode){dojo.raise("Source is not TreeNode or not found")}if(a===this.treeNode){return false}return true},setAutoExpandTimer:function(){var b=this;var a=function(){if(dojo.dnd.dragManager.currentDropTarget===b){b.controller.expand(b.treeNode)}};this.autoExpandTimer=dojo.lang.setTimeout(a,b.autoExpandDelay)},getDNDMode:function(){return this.treeNode.tree.DNDMode},getAcceptPosition:function(d,c){var b=this.getDNDMode();if(b&dojo.widget.Tree.prototype.DNDModes.ONTO&&!(!this.treeNode.actionIsDisabled(dojo.widget.TreeNode.prototype.actions.ADDCHILD)&&c.parent!==this.treeNode&&this.controller.canMove(c,this.treeNode))){b&=~dojo.widget.Tree.prototype.DNDModes.ONTO}var a=this.getPosition(d,b);if(a=="onto"||(!this.isAdjacentNode(c,a)&&this.controller.canMove(c,this.treeNode.parent))){return a}else{return false}},onDragOut:function(a){this.clearAutoExpandTimer();this.hideIndicator()},clearAutoExpandTimer:function(){if(this.autoExpandTimer){clearTimeout(this.autoExpandTimer);this.autoExpandTimer=null}},onDragMove:function(d,c){var b=c[0].treeNode;var a=this.getAcceptPosition(d,b);if(a){this.showIndicator(a)}},isAdjacentNode:function(b,a){if(b===this.treeNode){return true}if(b.getNextSibling()===this.treeNode&&a=="before"){return true}if(b.getPreviousSibling()===this.treeNode&&a=="after"){return true}return false},getPosition:function(d,h){var b=dojo.byId(this.treeNode.labelNode);var j=d.pageY||d.clientY+dojo.body().scrollTop;var g=dojo.html.getAbsolutePosition(b).y;var k=dojo.html.getBorderBox(b).height;var f=j-g;var a=f/k;var c="";if(h&dojo.widget.Tree.prototype.DNDModes.ONTO&&h&dojo.widget.Tree.prototype.DNDModes.BETWEEN){if(a<=0.3){c="before"}else{if(a<=0.7){c="onto"}else{c="after"}}}else{if(h&dojo.widget.Tree.prototype.DNDModes.BETWEEN){if(a<=0.5){c="before"}else{c="after"}}else{if(h&dojo.widget.Tree.prototype.DNDModes.ONTO){c="onto"}}}return c},getTargetParentIndex:function(b,a){var c=a=="before"?this.treeNode.getParentIndex():this.treeNode.getParentIndex()+1;if(this.treeNode.parent===b.parent&&this.treeNode.getParentIndex()>b.getParentIndex()){c--}return c},onDrop:function(d){var a=this.position;this.onDragOut(d);var b=d.dragObject.treeNode;if(!dojo.lang.isObject(b)){dojo.raise("TreeNode not found in dragObject")}if(a=="onto"){return this.controller.move(b,this.treeNode,0)}else{var c=this.getTargetParentIndex(b,a);return this.controller.move(b,this.treeNode.parent,c)}}});dojo.dnd.TreeDNDController=function(a){this.treeController=a;this.dragSources={};this.dropTargets={}};dojo.lang.extend(dojo.dnd.TreeDNDController,{listenTree:function(a){dojo.event.topic.subscribe(a.eventNames.createDOMNode,this,"onCreateDOMNode");dojo.event.topic.subscribe(a.eventNames.moveFrom,this,"onMoveFrom");dojo.event.topic.subscribe(a.eventNames.moveTo,this,"onMoveTo");dojo.event.topic.subscribe(a.eventNames.addChild,this,"onAddChild");dojo.event.topic.subscribe(a.eventNames.removeNode,this,"onRemoveNode");dojo.event.topic.subscribe(a.eventNames.treeDestroy,this,"onTreeDestroy")},unlistenTree:function(a){dojo.event.topic.unsubscribe(a.eventNames.createDOMNode,this,"onCreateDOMNode");dojo.event.topic.unsubscribe(a.eventNames.moveFrom,this,"onMoveFrom");dojo.event.topic.unsubscribe(a.eventNames.moveTo,this,"onMoveTo");dojo.event.topic.unsubscribe(a.eventNames.addChild,this,"onAddChild");dojo.event.topic.unsubscribe(a.eventNames.removeNode,this,"onRemoveNode");dojo.event.topic.unsubscribe(a.eventNames.treeDestroy,this,"onTreeDestroy")},onTreeDestroy:function(a){this.unlistenTree(a.source)},onCreateDOMNode:function(a){this.registerDNDNode(a.source)},onAddChild:function(a){this.registerDNDNode(a.child)},onMoveFrom:function(a){var b=this;dojo.lang.forEach(a.child.getDescendants(),function(c){b.unregisterDNDNode(c)})},onMoveTo:function(a){var b=this;dojo.lang.forEach(a.child.getDescendants(),function(c){b.registerDNDNode(c)})},registerDNDNode:function(a){if(!a.tree.DNDMode){return}var b=null;var c=null;if(!a.actionIsDisabled(a.actions.MOVE)){var b=new dojo.dnd.TreeDragSource(a.labelNode,this,a.tree.widgetId,a);this.dragSources[a.widgetId]=b}var c=new dojo.dnd.TreeDropTarget(a.labelNode,this.treeController,a.tree.DNDAcceptTypes,a);this.dropTargets[a.widgetId]=c},unregisterDNDNode:function(a){if(this.dragSources[a.widgetId]){dojo.dnd.dragManager.unregisterDragSource(this.dragSources[a.widgetId]);delete this.dragSources[a.widgetId]}if(this.dropTargets[a.widgetId]){dojo.dnd.dragManager.unregisterDropTarget(this.dropTargets[a.widgetId]);delete this.dropTargets[a.widgetId]}}});dojo.provide("dojo.widget.TreeBasicController");dojo.widget.defineWidget("dojo.widget.TreeBasicController",dojo.widget.HtmlWidget,{widgetType:"TreeBasicController",DNDController:"",dieWithTree:false,initialize:function(a,b){if(this.DNDController=="create"){this.DNDController=new dojo.dnd.TreeDNDController(this)}},listenTree:function(a){dojo.event.topic.subscribe(a.eventNames.createDOMNode,this,"onCreateDOMNode");dojo.event.topic.subscribe(a.eventNames.treeClick,this,"onTreeClick");dojo.event.topic.subscribe(a.eventNames.treeCreate,this,"onTreeCreate");dojo.event.topic.subscribe(a.eventNames.treeDestroy,this,"onTreeDestroy");if(this.DNDController){this.DNDController.listenTree(a)}},unlistenTree:function(a){dojo.event.topic.unsubscribe(a.eventNames.createDOMNode,this,"onCreateDOMNode");dojo.event.topic.unsubscribe(a.eventNames.treeClick,this,"onTreeClick");dojo.event.topic.unsubscribe(a.eventNames.treeCreate,this,"onTreeCreate");dojo.event.topic.unsubscribe(a.eventNames.treeDestroy,this,"onTreeDestroy")},onTreeDestroy:function(b){var a=b.source;this.unlistenTree(a);if(this.dieWithTree){this.destroy()}},onCreateDOMNode:function(b){var a=b.source;if(a.expandLevel>0){this.expandToLevel(a,a.expandLevel)}},onTreeCreate:function(b){var a=b.source;var c=this;if(a.expandLevel){dojo.lang.forEach(a.children,function(d){c.expandToLevel(d,a.expandLevel-1)})}},expandToLevel:function(d,g){if(g==0){return}var a=d.children;var f=this;var c=function(h,j){this.node=h;this.expandLevel=j;this.process=function(){for(var k=0;k<this.node.children.length;k++){var l=h.children[k];f.expandToLevel(l,this.expandLevel)}}};var b=new c(d,g-1);this.expand(d,false,b,b.process)},onTreeClick:function(b){var a=b.source;if(a.isLocked()){return false}if(a.isExpanded){this.collapse(a)}else{this.expand(a)}},expand:function(c,b,d,a){c.expand();if(a){a.apply(d,[c])}},collapse:function(a){a.collapse()},canMove:function(c,b){if(c.actionIsDisabled(c.actions.MOVE)){return false}if(c.parent!==b&&b.actionIsDisabled(b.actions.ADDCHILD)){return false}var a=b;while(a.isTreeNode){if(a===c){return false}a=a.parent}return true},move:function(d,c,b){if(!this.canMove(d,c)){return false}var a=this.doMove(d,c,b);if(!a){return a}if(c.isTreeNode){this.expand(c)}return a},doMove:function(c,b,a){c.tree.move(c,b,a);return true},canRemoveNode:function(a){if(a.actionIsDisabled(a.actions.REMOVE)){return false}return true},removeNode:function(b,c,a){if(!this.canRemoveNode(b)){return false}return this.doRemoveNode(b,c,a)},doRemoveNode:function(b,c,a){b.tree.removeNode(b);if(a){a.apply(dojo.lang.isUndefined(c)?this:c,[b])}},canCreateChild:function(b,a,c){if(b.actionIsDisabled(b.actions.ADDCHILD)){return false}return true},createChild:function(c,b,f,d,a){if(!this.canCreateChild(c,b,f)){return false}return this.doCreateChild.apply(this,arguments)},doCreateChild:function(d,c,g,f,b){var h=g.widgetType?g.widgetType:"TreeNode";var a=dojo.widget.createWidget(h,g);d.addChild(a,c);this.expand(d);if(b){b.apply(f,[a])}return a}});dojo.provide("dojo.widget.TreeSelector");dojo.widget.defineWidget("dojo.widget.TreeSelector",dojo.widget.HtmlWidget,function(){this.eventNames={};this.listenedTrees=[]},{widgetType:"TreeSelector",selectedNode:null,dieWithTree:false,eventNamesDefault:{select:"select",destroy:"destroy",deselect:"deselect",dblselect:"dblselect"},initialize:function(){for(name in this.eventNamesDefault){if(dojo.lang.isUndefined(this.eventNames[name])){this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name]}}},destroy:function(){dojo.event.topic.publish(this.eventNames.destroy,{source:this});return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments)},listenTree:function(a){dojo.event.topic.subscribe(a.eventNames.titleClick,this,"select");dojo.event.topic.subscribe(a.eventNames.iconClick,this,"select");dojo.event.topic.subscribe(a.eventNames.collapse,this,"onCollapse");dojo.event.topic.subscribe(a.eventNames.moveFrom,this,"onMoveFrom");dojo.event.topic.subscribe(a.eventNames.removeNode,this,"onRemoveNode");dojo.event.topic.subscribe(a.eventNames.treeDestroy,this,"onTreeDestroy");this.listenedTrees.push(a)},unlistenTree:function(a){dojo.event.topic.unsubscribe(a.eventNames.titleClick,this,"select");dojo.event.topic.unsubscribe(a.eventNames.iconClick,this,"select");dojo.event.topic.unsubscribe(a.eventNames.collapse,this,"onCollapse");dojo.event.topic.unsubscribe(a.eventNames.moveFrom,this,"onMoveFrom");dojo.event.topic.unsubscribe(a.eventNames.removeNode,this,"onRemoveNode");dojo.event.topic.unsubscribe(a.eventNames.treeDestroy,this,"onTreeDestroy");for(var b=0;b<this.listenedTrees.length;b++){if(this.listenedTrees[b]===a){this.listenedTrees.splice(b,1);break}}},onTreeDestroy:function(a){this.unlistenTree(a.source);if(this.dieWithTree){this.destroy()}},onCollapse:function(c){if(!this.selectedNode){return}var b=c.source;var a=this.selectedNode.parent;while(a!==b&&a.isTreeNode){a=a.parent}if(a.isTreeNode){this.deselect()}},select:function(b){var a=b.source;var c=b.event;if(this.selectedNode===a){if(c.ctrlKey||c.shiftKey||c.metaKey){this.deselect();return}dojo.event.topic.publish(this.eventNames.dblselect,{node:a});return}if(this.selectedNode){this.deselect()}this.doSelect(a);dojo.event.topic.publish(this.eventNames.select,{node:a})},onMoveFrom:function(a){if(a.child!==this.selectedNode){return}if(!dojo.lang.inArray(this.listenedTrees,a.newTree)){this.deselect()}},onRemoveNode:function(a){if(a.child!==this.selectedNode){return}this.deselect()},doSelect:function(a){a.markSelected();this.selectedNode=a},deselect:function(){var a=this.selectedNode;this.selectedNode=null;a.unMarkSelected();dojo.event.topic.publish(this.eventNames.deselect,{node:a})}});dojo.provide("dojo.widget.Tree");dojo.widget.defineWidget("dojo.widget.Tree",dojo.widget.HtmlWidget,function(){this.eventNames={};this.tree=this;this.DNDAcceptTypes=[];this.actionsDisabled=[]},{widgetType:"Tree",eventNamesDefault:{createDOMNode:"createDOMNode",treeCreate:"treeCreate",treeDestroy:"treeDestroy",treeClick:"treeClick",iconClick:"iconClick",titleClick:"titleClick",moveFrom:"moveFrom",moveTo:"moveTo",addChild:"addChild",removeNode:"removeNode",expand:"expand",collapse:"collapse"},isContainer:true,DNDMode:"off",lockLevel:0,strictFolders:true,DNDModes:{BETWEEN:1,ONTO:2},DNDAcceptTypes:"",templateCssPath:dojo.uri.dojoUri("src/widget/templates/images/Tree/Tree.css"),templateString:'<div class="dojoTree"></div>',isExpanded:true,isTree:true,objectId:"",controller:"",selector:"",menu:"",expandLevel:"",blankIconSrc:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_blank.gif"),gridIconSrcT:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_t.gif"),gridIconSrcL:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_l.gif"),gridIconSrcV:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_v.gif"),gridIconSrcP:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_p.gif"),gridIconSrcC:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_c.gif"),gridIconSrcX:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_x.gif"),gridIconSrcY:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_y.gif"),gridIconSrcZ:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_z.gif"),expandIconSrcPlus:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_expand_plus.gif"),expandIconSrcMinus:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_expand_minus.gif"),expandIconSrcLoading:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_loading.gif"),iconWidth:18,iconHeight:18,showGrid:true,showRootGrid:true,actionIsDisabled:function(a){var b=this;return dojo.lang.inArray(b.actionsDisabled,a)},actions:{ADDCHILD:"ADDCHILD"},getInfo:function(){var a={widgetId:this.widgetId,objectId:this.objectId};return a},initializeController:function(){if(this.controller!="off"){if(this.controller){this.controller=dojo.widget.byId(this.controller)}else{this.controller=dojo.widget.createWidget("TreeBasicController",{DNDController:(this.DNDMode?"create":""),dieWithTree:true})}this.controller.listenTree(this)}else{this.controller=null}},initializeSelector:function(){if(this.selector!="off"){if(this.selector){this.selector=dojo.widget.byId(this.selector)}else{this.selector=dojo.widget.createWidget("TreeSelector",{dieWithTree:true})}this.selector.listenTree(this)}else{this.selector=null}},initialize:function(a,d){var c=this;for(name in this.eventNamesDefault){if(dojo.lang.isUndefined(this.eventNames[name])){this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name]}}for(var b=0;b<this.actionsDisabled.length;b++){this.actionsDisabled[b]=this.actionsDisabled[b].toUpperCase()}if(this.DNDMode=="off"){this.DNDMode=0}else{if(this.DNDMode=="between"){this.DNDMode=this.DNDModes.ONTO|this.DNDModes.BETWEEN}else{if(this.DNDMode=="onto"){this.DNDMode=this.DNDModes.ONTO}}}this.expandLevel=parseInt(this.expandLevel);this.initializeSelector();this.initializeController();if(this.menu){this.menu=dojo.widget.byId(this.menu);this.menu.listenTree(this)}this.containerNode=this.domNode},postCreate:function(){this.createDOMNode()},createDOMNode:function(){dojo.html.disableSelection(this.domNode);for(var a=0;a<this.children.length;a++){this.children[a].parent=this;var b=this.children[a].createDOMNode(this,0);this.domNode.appendChild(b)}if(!this.showRootGrid){for(var a=0;a<this.children.length;a++){this.children[a].expand()}}dojo.event.topic.publish(this.eventNames.treeCreate,{source:this})},destroy:function(){dojo.event.topic.publish(this.tree.eventNames.treeDestroy,{source:this});return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments)},addChild:function(c,a){var b={child:c,index:a,parent:this,domNodeInitialized:c.domNodeInitialized};this.doAddChild.apply(this,arguments);dojo.event.topic.publish(this.tree.eventNames.addChild,b)},doAddChild:function(g,a){if(dojo.lang.isUndefined(a)){a=this.children.length}if(!g.isTreeNode){dojo.raise("You can only add TreeNode widgets to a "+this.widgetType+" widget!");return}if(this.isTreeNode){if(!this.isFolder){this.setFolder()}}var f=this;dojo.lang.forEach(g.getDescendants(),function(d){d.tree=f.tree});g.parent=this;if(this.isTreeNode){this.state=this.loadStates.LOADED}if(a<this.children.length){dojo.html.insertBefore(g.domNode,this.children[a].domNode)}else{this.containerNode.appendChild(g.domNode);if(this.isExpanded&&this.isTreeNode){this.showChildren()}}this.children.splice(a,0,g);if(g.domNodeInitialized){var c=this.isTreeNode?this.depth:-1;g.adjustDepth(c-g.depth+1);g.updateIconTree()}else{g.depth=this.isTreeNode?this.depth+1:0;g.createDOMNode(g.tree,g.depth)}var b=g.getPreviousSibling();if(g.isLastChild()&&b){b.updateExpandGridColumn()}},makeBlankImg:function(){var a=document.createElement("img");a.style.width=this.iconWidth+"px";a.style.height=this.iconHeight+"px";a.src=this.blankIconSrc;a.style.verticalAlign="middle";return a},updateIconTree:function(){if(!this.isTree){this.updateIcons()}for(var a=0;a<this.children.length;a++){this.children[a].updateIconTree()}},toString:function(){return"["+this.widgetType+" ID:"+this.widgetId+"]"},move:function(h,f,b){var c=h.parent;var a=h.tree;this.doMove.apply(this,arguments);var f=h.parent;var g=h.tree;var d={oldParent:c,oldTree:a,newParent:f,newTree:g,child:h};dojo.event.topic.publish(a.eventNames.moveFrom,d);dojo.event.topic.publish(g.eventNames.moveTo,d)},doMove:function(c,b,a){c.parent.doRemoveNode(c);b.doAddChild(c,a)},removeNode:function(d){if(!d.parent){return}var a=d.tree;var b=d.parent;var c=this.doRemoveNode.apply(this,arguments);dojo.event.topic.publish(this.tree.eventNames.removeNode,{child:c,tree:a,parent:b});return c},doRemoveNode:function(d){if(!d.parent){return}var c=d.parent;var b=c.children;var a=d.getParentIndex();if(a<0){dojo.raise("Couldn't find node "+d+" for removal")}b.splice(a,1);dojo.html.removeNode(d.domNode);if(c.children.length==0&&!c.isTree){c.containerNode.style.display="none"}if(a==b.length&&a>0){b[a-1].updateExpandGridColumn()}if(c instanceof dojo.widget.Tree&&a==0&&b.length>0){b[0].updateExpandGrid()}d.parent=d.tree=null;return d},markLoading:function(){},unMarkLoading:function(){},lock:function(){!this.lockLevel&&this.markLoading();this.lockLevel++},unlock:function(){if(!this.lockLevel){dojo.raise("unlock: not locked")}this.lockLevel--;!this.lockLevel&&this.unMarkLoading()},isLocked:function(){var a=this;while(true){if(a.lockLevel){return true}if(a instanceof dojo.widget.Tree){break}a=a.parent}return false},flushLock:function(){this.lockLevel=0;this.unMarkLoading()}});dojo.provide("wc.render.Context");wc.render.contexts={};wc.render.getContextById=function(a){return wc.render.contexts[a]};wc.render.updateContext=function(b,a){wc.render.getContextById(b).update(a)};wc.render.declareContext=function(d,b,c){var a=new wc.render.Context(d,b,c);this.contexts[d]=a;return a};dojo.declare("wc.render.Context",null,{initializer:function(c,b,a){this.id=c;this.properties=b?b:{};this.url=a;this.contextChangedEventName=c+"/RenderContextChanged"},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(f){if(!this.properties){this.properties={}}if(this.url){var b={};for(var a in f){var d=f[a];if(dojo.lang.isUndefined(d)){if(dojo.lang.isUndefined(b.clear)){b.clear=[a]}else{b.clear.push(a)}}else{b["set_"+a]=d}}dojo.io.bind({url:this.url,mimetype:"text/json",content:b,properties:this.properties,successEventName:this.contextChangedEventName,load:function(k,m,g,l){if(dojo.lang.isArray(m.renderContextChanges)){for(var j=0;j<m.renderContextChanges.length;j++){var h=m.renderContextChanges[j];l.properties[h]=m[h]}}dojo.event.topic.publish(this.successEventName,m)},error:function(h,g){var j=dojo.i18n.getLocalization("wc","common");alert(j.communicationError)}})}else{var c={renderContextChanges:[]};for(var a in f){var d=f[a];if(d!=this.properties[a]){c.renderContextChanges.push(a);if(dojo.lang.isUndefined(d)){delete this.properties[a]}else{this.properties[a]=d;c[a]=d}}}dojo.event.topic.publish(this.contextChangedEventName,c)}}});dojo.provide("wc.render.RefreshController");wc.render.refreshControllers={};wc.render.getRefreshControllerById=function(a){return wc.render.refreshControllers[a]};wc.render.declareRefreshController=function(b){var a=new wc.render.RefreshController(b);this.refreshControllers[b.id]=a;return a};dojo.declare("wc.render.RefreshController",null,{initializer:function(a){dojo.lang.mixin(this,a);this.syncRCProperties();if(dojo.lang.isFunction(this.renderContextChangedHandler)){dojo.event.topic.subscribe(this.renderContext.contextChangedEventName,this,"renderContextChanged")}if(dojo.lang.isFunction(this.modelChangedHandler)){dojo.event.topic.subscribe("modelChanged",this,"modelChanged")}this.widgets={}},id:undefined,renderContext:undefined,url:undefined,mimetype:"text/html",renderContextChangedHandler:undefined,modelChangedHandler:undefined,postRefreshHandler:undefined,currentRCProperties:undefined,widgets:undefined,formId:undefined,addWidget:function(a){if(this.widgets[a.widgetId]){dojo.debug("RefreshController.addWidget: duplicate widget ID "+a.widgetId)}this.widgets[a.widgetId]=a},removeWidget:function(a){if(typeof this.widgets=="undefined"){dojo.debug("this.widgets in RefreshController#removeWidget(widget) is not defined yet. No deletion is needed");return}delete this.widgets[a.widgetId]},syncRCProperties:function(){if(this.renderContext){var a={};var b=this.renderContext.properties;for(var c in b){a[c]=b[c]}this.currentRCProperties=a}},renderContextChanged:function(b){for(var a in this.widgets){this.renderContextChangedHandler(b,this.widgets[a])}this.syncRCProperties()},modelChanged:function(b){for(var a in this.widgets){this.modelChangedHandler(b,this.widgets[a])}},refreshHandler:function(b,a){b.setInnerHTML(a)},refresh:function(c,a){var b=null;if(this.formId){b=document.getElementById(this.formId)}dojo.io.bind({url:this.url,mimetype:this.mimetype,formNode:b,content:a,load:function(g,h,f){var d=c.controller;d.refreshHandler(c,h);if(d.postRefreshHandler!=null){d.postRefreshHandler(c)}},error:function(f,d){var g=dojo.i18n.getLocalization("wc","common");alert(g.communicationError)}})},testForChangedRC:function(a){var d=false;for(var b=0;b<a.length;b++){var c=a[b];if(this.currentRCProperties[c]!=this.renderContext.properties[c]){d=true;break}}return d}});dojo.provide("wc.render.common");dojo.kwCompoundRequire({common:["wc.render.common"]});dojo.provide("wc.render.*");dojo.provide("wc.service.common");wc.service.services={};wc.service.getServiceById=function(a){return wc.service.services[a]};wc.service.declare=function(b){var a=new wc.service.Service(b);this.register(a);return a};wc.service.register=function(a){this.services[a.id]=a};wc.service.invoke=function(c,b){var a=this.getServiceById(c);if(a){a.invoke(b)}else{dojo.debug("Attempt to invoke an unregistered service: "+c)}};dojo.declare("wc.service.Service",null,{initializer:function(a){dojo.lang.mixin(this,a)},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(a){return true},validateForm:function(a){return true},successTest:function(a){return !a.errorMessage&&!a.errorMessageKey},successHandler:function(a){},failureHandler:function(a){var b=a.errorMessage;if(b){alert(b)}else{b=a.errorMessageKey;if(b){alert(b)}else{alert("Service request error.")}}},invoke:function(b){var a=true;var c=null;if(this.formId){c=document.getElementById(this.formId)}if(c){a=this.validateForm(c)}if(a){a=this.validateParameters(b)}if(a){dojo.io.bind({url:this.url,mimetype:"text/json",formNode:c,content:b,service:this,load:function(h,g,f,j){var d=j.service;g.serviceId=d.id;g.actionId=d.actionId;dojo.debug("Service response:");for(var k in g){dojo.debug("  "+k+"="+g[k])}if(d.successTest(g)){d.successHandler(g);dojo.event.topic.publish("modelChanged",g);if(d.actionId){dojo.event.topic.publish("modelChanged/"+d.actionId,g)}}else{d.failureHandler(g)}},error:function(f,d){var g=dojo.i18n.getLocalization("wc","common");alert(g.communicationError)}})}}});dojo.kwCompoundRequire({common:["wc.service.common"]});dojo.provide("wc.service.*");dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});dojo.provide("wc.widget.*");dojo.widget.manager.registerWidgetPackage("wc.widget");dojo.provide("dojo.widget.Tooltip");dojo.widget.defineWidget("dojo.widget.Tooltip",[dojo.widget.ContentPane,dojo.widget.PopupContainerBase],{caption:"",showDelay:500,hideDelay:100,connectId:"",templateCssPath:dojo.uri.dojoUri("src/widget/templates/TooltipTemplate.css"),fillInTemplate:function(a,c){if(this.caption!=""){this.domNode.appendChild(document.createTextNode(this.caption))}this._connectNode=dojo.byId(this.connectId);dojo.widget.Tooltip.superclass.fillInTemplate.call(this,a,c);this.addOnLoad(this,"_loadedContent");dojo.html.addClass(this.domNode,"dojoTooltip");var b=this.getFragNodeRef(c);dojo.html.copyStyle(this.domNode,b);this.applyPopupBasicStyle()},postCreate:function(a,b){dojo.event.connect(this._connectNode,"onmouseover",this,"_onMouseOver");dojo.widget.Tooltip.superclass.postCreate.call(this,a,b)},_onMouseOver:function(a){this._mouse={x:a.pageX,y:a.pageY};if(!this._tracking){dojo.event.connect(document.documentElement,"onmousemove",this,"_onMouseMove");this._tracking=true}this._onHover(a)},_onMouseMove:function(a){this._mouse={x:a.pageX,y:a.pageY};if(dojo.html.overElement(this._connectNode,a)||dojo.html.overElement(this.domNode,a)){this._onHover(a)}else{this._onUnHover(a)}},_onHover:function(a){if(this._hover){return}this._hover=true;if(this._hideTimer){clearTimeout(this._hideTimer);delete this._hideTimer}if(!this.isShowingNow&&!this._showTimer){this._showTimer=setTimeout(dojo.lang.hitch(this,"open"),this.showDelay)}},_onUnHover:function(a){if(!this._hover){return}this._hover=false;if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}if(this.isShowingNow&&!this._hideTimer){this._hideTimer=setTimeout(dojo.lang.hitch(this,"close"),this.hideDelay)}if(!this.isShowingNow){dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");this._tracking=false}},open:function(){if(this.isShowingNow){return}dojo.widget.PopupContainerBase.prototype.open.call(this,this._mouse.x,this._mouse.y,null,[this._mouse.x,this._mouse.y],"TL,TR,BL,BR",[10,15])},close:function(){if(this.isShowingNow){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer}if(this._hideTimer){clearTimeout(this._hideTimer);delete this._hideTimer}dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");this._tracking=false;dojo.widget.PopupContainerBase.prototype.close.call(this)}},_position:function(){this.move(this._mouse.x,this._mouse.y,[10,15],"TL,TR,BL,BR")},_loadedContent:function(){if(this.isShowingNow){this._position()}},checkSize:function(){},uninitialize:function(){this.close();dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver")}});dojo.provide("wc.widget.ProductQuickView");dojo.provide("wc.widget.BaseContent");dojo.provide("wc.widget.ToolTipContent");dojo.widget.defineWidget("wc.widget.ProductQuickView",dojo.widget.HtmlWidget,{templatePath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickView.html"),templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickView.css"),isContainer:true,widgetType:"ProductQuickView",identifier:"",defaultContent:false,dragAndDrop:true,dragSourceProperties:"",CatalogEntryThumbnailImageLink:"",CatalogEntryThumbnailImageSrc:"",CatalogEntryThumbnailImageAlt:"",CatalogEntryNameLink:"",CatalogEntryName:"",PriceImageLink:"",PriceImageSrc:"",PriceRange:"",SKU:"",ShortDescription:"",DiscountImage:"",DiscountLink:"",DiscountDetails:"",AdditionalText:"",catentryId:"",dragSourceType:"*",additionalProperties:"",DAPCatalogEntryContainer:null,DAPCatalogEntryThumbnailImageLink:null,DAPCatalogEntryThumbnailImage:null,DAPCatalogEntryNameLink:null,DAPCatalogEntryName:null,DAPPriceImageLink:null,DAPPriceImage:null,DAPPriceRange:null,DAPSKU:null,DAPShortDescription:null,DAPDiscountImage:null,DAPDiscountLink:null,DAPDiscountDetails:null,DAPAdditionalText:null,DAPProductQuickViewTable:null,fillInTemplate:function(){if(this.defaultContent){this.DAPCatalogEntryContainer.style.display="block";this.DAPCatalogEntryThumbnailImageLink.href=this.CatalogEntryThumbnailImageLink;this.DAPCatalogEntryThumbnailImage.src=this.CatalogEntryThumbnailImageSrc;this.DAPCatalogEntryThumbnailImage.alt=this.CatalogEntryThumbnailImageAlt;this.DAPCatalogEntryThumbnailImage.id=this.catentryId;this.DAPCatalogEntryNameLink.href=this.CatalogEntryNameLink;this.DAPCatalogEntryName.innerHTML=this.CatalogEntryName;this.DAPPriceImageLink.href=this.PriceImageLink;this.DAPPriceImage.src=this.PriceImageSrc;this.DAPPriceRange.innerHTML=this.insertWithBreak(this.PriceRange);this.DAPSKU.innerHTML=this.insertWithBreak(this.SKU);this.DAPShortDescription.innerHTML=this.insertWithBreak(this.ShortDescription);this.DAPDiscountImage.src=this.DiscountImage;this.DAPDiscountLink.href=this.insertWithBreak(this.DiscountLink);this.DAPDiscountDetails.innerHTML=this.insertWithBreak(this.DiscountDetails);this.DAPAdditionalText.innerHTML=this.insertWithBreak(this.AdditionalText)}else{this.DAPCatalogEntryContainer.style.display="none";dojo.dom.removeChildren(this.DAPProductQuickViewTable)}this.addDragDropFeature();var c=new Array();var a=new Array();c=this.additionalProperties.split(",");for(var b=0;b<c.length;b++){a=c[b].split("=");if(a.length==2){this[a[0]]=a[1]}}},insertWithBreak:function(a){if(a!=""){return a+"<br/><br/>"}return""},addDragDropFeature:function(){if(this.dragAndDrop&&this.defaultContent){var a=null;a=this.DAPCatalogEntryThumbnailImageLink;a.name=this.DAPCatalogEntryName.innerHTML;a.price=this.DAPPriceRange.innerHTML;a.catentryId=this.catentryId;var c=new Array();var b=new Array();c=this.dragSourceProperties.split(",");for(var d=0;d<c.length;d++){b=c[d].split("=");if(b.length==2){a[b[0]]=b[1]}}new dojo.dnd.HtmlDragSource(a,this.dragSourceType)}}});dojo.widget.defineWidget("wc.widget.BaseContent",dojo.widget.HtmlWidget,{catentryId:"",dragSourceId:"",isContainer:true,widgetType:"BaseContent",dragSourceType:"*",dragSourceProperties:"",templateString:"",userInnerHtml:"",dragAndDrop:true,postCreate:function(){if(this.userInnerHtml!=""){this.domNode.innerHTML=this.userInnerHtml}if(this.domNode.innerHTML!=null&&this.domNode.innerHTML!=""){if(this.dragAndDrop){var a=null;a=dojo.byId(this.dragSourceId);a.catentryId=this.catentryId;var c=new Array();var b=new Array();c=this.dragSourceProperties.split(",");for(var d=0;d<c.length;d++){b=c[d].split("=");if(b.length==2){a[b[0]]=b[1]}}new dojo.dnd.HtmlDragSource(a,this.dragSourceType)}}}});dojo.widget.defineWidget("wc.widget.ToolTipContent",dojo.widget.Tooltip,{connectId:"",userInnerHtml:"",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickViewToolTip.css"),fillInTemplate:function(a,b){if(this.userInnerHtml!=""){this.containerNode.innerHTML=this.userInnerHtml}wc.widget.ToolTipContent.superclass.fillInTemplate.call(this,a,b)},_getPosition:function(a){var b={x:0,y:0};if(!a.offsetParent){return b}b.x=a.offsetLeft;b.y=a.offsetTop;while(a=a.offsetParent){b.x+=a.offsetLeft;b.y+=a.offsetTop}return b},_isOverElement:function(c,d){c=dojo.byId(c);if(d.target.tagName.toLowerCase()=="option"||d.target.tagName.toLowerCase()=="select"){var f=this._getPosition(d.target.offsetParent);dojo.debug("mouse  = ("+f.x+" , "+f.y+") ")}else{var f=dojo.html.getCursorPosition(d)}var g=dojo.html.getBorderBox(c);var j=dojo.html.getAbsolutePosition(c,true,dojo.html.boxSizing.BORDER_BOX);var h=j.y;var a=h+g.height;var b=j.x;var k=b+g.width;dojo.debug("**** left = "+b+", right = "+k+", top = "+h+", bottom = "+a+" mouse: "+f.x+", "+f.y+") ");dojo.debug("**** mouse x y = ("+f.x+", "+f.y+") ");return(f.x>=b&&f.x<=k&&f.y>=h&&f.y<=a)},_onMouseMove:function(a){this._mouse={x:a.pageX,y:a.pageY};dojo.debug("mouse x = "+this._mouse.x+" y = "+this._mouse.y+" and target: "+a.target+" with coordinates: ("+this._getPosition(dojo.byId(a.target)).x+", "+this._getPosition(dojo.byId(a.target)).y+") ");if(this._isOverElement(this._connectNode,a)||this._isOverElement(this.domNode,a)){dojo.debug("on mouse on hover: {x = "+this._mouse.x+", y = "+this._mouse.y+" }");this._onHover(a)}else{dojo.debug("on mousemove unhover "+a+" and target is: "+a.target+" unHovering with mouse = {x = "+this._mouse.x+", y = "+this._mouse.y+" }");this._onUnHover(a)}},destroy:function(b){try{wc.widget.ToolTipContent.superclass.uninitialize.call(this);wc.widget.ToolTipContent.superclass.destroy.call(this,b)}catch(a){}}});dojo.provide("dojo.dnd.HtmlDragMove");dojo.declare("dojo.dnd.HtmlDragMoveSource",dojo.dnd.HtmlDragSource,{onDragStart:function(){var a=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);if(this.constrainToContainer){a.constrainTo(this.constrainingContainer)}return a},onSelected:function(){for(var a=0;a<this.dragObjects.length;a++){dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragMoveSource(this.dragObjects[a]))}}});dojo.declare("dojo.dnd.HtmlDragMoveObject",dojo.dnd.HtmlDragObject,{onDragStart:function(c){dojo.html.clearSelection();this.dragClone=this.domNode;if(dojo.html.getComputedStyle(this.domNode,"position")!="absolute"){this.domNode.style.position="relative"}var b=parseInt(dojo.html.getComputedStyle(this.domNode,"left"));var a=parseInt(dojo.html.getComputedStyle(this.domNode,"top"));this.dragStartPosition={x:isNaN(b)?0:b,y:isNaN(a)?0:a};this.scrollOffset=dojo.html.getScroll().offset;this.dragOffset={y:this.dragStartPosition.y-c.pageY,x:this.dragStartPosition.x-c.pageX};this.containingBlockPosition={x:0,y:0};if(this.constrainToContainer){this.constraints=this.getConstraints()}dojo.event.connect(this.domNode,"onclick",this,"_squelchOnClick")},onDragEnd:function(a){},setAbsolutePosition:function(a,b){if(!this.disableY){this.domNode.style.top=b+"px"}if(!this.disableX){this.domNode.style.left=a+"px"}},_squelchOnClick:function(a){dojo.event.browser.stopEvent(a);dojo.event.disconnect(this.domNode,"onclick",this,"_squelchOnClick")}});dojo.provide("dojo.style");dojo.kwCompoundRequire({browser:["dojo.html.style"]});dojo.deprecated("dojo.style","replaced by dojo.html.style","0.5");dojo.lang.mixin(dojo.style,dojo.html);dojo.provide("dojo.experimental");dojo.experimental=function(b,a){var c="EXPERIMENTAL: "+b;c+=" -- Not yet ready for use.  APIs subject to change without notice.";if(a){c+=" "+a}dojo.debug(c)};dojo.provide("dojo.regexp");dojo.evalObjPath("dojo.regexp.us",true);dojo.regexp.tld=function(d){d=(typeof d=="object")?d:{};if(typeof d.allowCC!="boolean"){d.allowCC=true}if(typeof d.allowInfra!="boolean"){d.allowInfra=true}if(typeof d.allowGeneric!="boolean"){d.allowGeneric=true}var h="arpa";var g="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";var f="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";var c=[];if(d.allowInfra){c.push(h)}if(d.allowGeneric){c.push(g)}if(d.allowCC){c.push(f)}var b="";if(c.length>0){b="("+c.join("|")+")"}return b};dojo.regexp.ipAddress=function(d){d=(typeof d=="object")?d:{};if(typeof d.allowDottedDecimal!="boolean"){d.allowDottedDecimal=true}if(typeof d.allowDottedHex!="boolean"){d.allowDottedHex=true}if(typeof d.allowDottedOctal!="boolean"){d.allowDottedOctal=true}if(typeof d.allowDecimal!="boolean"){d.allowDecimal=true}if(typeof d.allowHex!="boolean"){d.allowHex=true}if(typeof d.allowIPv6!="boolean"){d.allowIPv6=true}if(typeof d.allowHybrid!="boolean"){d.allowHybrid=true}var k="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var b="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";var g="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";var f="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";var c="0[xX]0*[\\da-fA-F]{1,8}";var m="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";var l="([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var j=[];if(d.allowDottedDecimal){j.push(k)}if(d.allowDottedHex){j.push(b)}if(d.allowDottedOctal){j.push(g)}if(d.allowDecimal){j.push(f)}if(d.allowHex){j.push(c)}if(d.allowIPv6){j.push(m)}if(d.allowHybrid){j.push(l)}var h="";if(j.length>0){h="("+j.join("|")+")"}return h};dojo.regexp.host=function(a){a=(typeof a=="object")?a:{};if(typeof a.allowIP!="boolean"){a.allowIP=true}if(typeof a.allowLocal!="boolean"){a.allowLocal=false}if(typeof a.allowPort!="boolean"){a.allowPort=true}var d="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(a);var c=(a.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";var b=d;if(a.allowIP){b+="|"+dojo.regexp.ipAddress(a)}if(a.allowLocal){b+="|localhost"}return"("+b+")"+c};dojo.regexp.url=function(b){b=(typeof b=="object")?b:{};if(typeof b.scheme=="undefined"){b.scheme=[true,false]}var c=dojo.regexp.buildGroupRE(b.scheme,function(d){if(d){return"(https?|ftps?)\\://"}return""});var a="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";return c+dojo.regexp.host(b)+a};dojo.regexp.emailAddress=function(a){a=(typeof a=="object")?a:{};if(typeof a.allowCruft!="boolean"){a.allowCruft=false}a.allowPort=false;var b="([\\da-z]+[-._+&'])*[\\da-z]+";var c=b+"@"+dojo.regexp.host(a);if(a.allowCruft){c="<?(mailto\\:)?"+c+">?"}return c};dojo.regexp.emailAddressList=function(a){a=(typeof a=="object")?a:{};if(typeof a.listSeparator!="string"){a.listSeparator="\\s;,"}var c=dojo.regexp.emailAddress(a);var b="("+c+"\\s*["+a.listSeparator+"]\\s*)*"+c+"\\s*["+a.listSeparator+"]?\\s*";return b};dojo.regexp.integer=function(a){a=(typeof a=="object")?a:{};if(typeof a.signed=="undefined"){a.signed=[true,false]}if(typeof a.separator=="undefined"){a.separator=""}else{if(typeof a.groupSize=="undefined"){a.groupSize=3}}var b=dojo.regexp.buildGroupRE(a.signed,function(d){return d?"[-+]":""});var c=dojo.regexp.buildGroupRE(a.separator,function(g){if(g==""){return"(0|[1-9]\\d*)"}var d=a.groupSize,f=a.groupSize2;if(typeof f!="undefined"){var h="(0|[1-9]\\d{0,"+(f-1)+"}(["+g+"]\\d{"+f+"})*["+g+"]\\d{"+d+"})";return((d-f)>0)?"("+h+"|(0|[1-9]\\d{0,"+(d-1)+"}))":h}return"(0|[1-9]\\d{0,"+(d-1)+"}(["+g+"]\\d{"+d+"})*)"});return b+c};dojo.regexp.realNumber=function(a){a=(typeof a=="object")?a:{};if(typeof a.places!="number"){a.places=Infinity}if(typeof a.decimal!="string"){a.decimal="."}if(typeof a.fractional=="undefined"){a.fractional=[true,false]}if(typeof a.exponent=="undefined"){a.exponent=[true,false]}if(typeof a.eSigned=="undefined"){a.eSigned=[true,false]}var b=dojo.regexp.integer(a);var d=dojo.regexp.buildGroupRE(a.fractional,function(g){var f="";if(g&&(a.places>0)){f="\\"+a.decimal;if(a.places==Infinity){f="("+f+"\\d+)?"}else{f=f+"\\d{"+a.places+"}"}}return f});var c=dojo.regexp.buildGroupRE(a.exponent,function(f){if(f){return"([eE]"+dojo.regexp.integer({signed:a.eSigned})+")"}return""});return b+d+c};dojo.regexp.currency=function(c){c=(typeof c=="object")?c:{};if(typeof c.signed=="undefined"){c.signed=[true,false]}if(typeof c.symbol=="undefined"){c.symbol="$"}if(typeof c.placement!="string"){c.placement="before"}if(typeof c.signPlacement!="string"){c.signPlacement="before"}if(typeof c.separator=="undefined"){c.separator=","}if(typeof c.fractional=="undefined"&&typeof c.cents!="undefined"){dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");c.fractional=c.cents}if(typeof c.decimal!="string"){c.decimal="."}var d=dojo.regexp.buildGroupRE(c.signed,function(h){if(h){return"[-+]"}return""});var g=dojo.regexp.buildGroupRE(c.symbol,function(h){return"\\s?"+h.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?"});switch(c.signPlacement){case"before":g=d+g;break;case"after":g=g+d;break}var b=c;b.signed=false;b.exponent=false;var f=dojo.regexp.realNumber(b);var a;switch(c.placement){case"before":a=g+f;break;case"after":a=f+g;break}switch(c.signPlacement){case"around":a="("+a+"|\\("+a+"\\))";break;case"begin":a=d+a;break;case"end":a=a+d;break}return a};dojo.regexp.us.state=function(b){b=(typeof b=="object")?b:{};if(typeof b.allowTerritories!="boolean"){b.allowTerritories=true}if(typeof b.allowMilitary!="boolean"){b.allowMilitary=true}var c="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";var a="AS|FM|GU|MH|MP|PW|PR|VI";var d="AA|AE|AP";if(b.allowTerritories){c+="|"+a}if(b.allowMilitary){c+="|"+d}return"("+c+")"};dojo.regexp.time=function(b){dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");b=(typeof b=="object")?b:{};if(typeof b.format=="undefined"){b.format="h:mm:ss t"}if(typeof b.amSymbol!="string"){b.amSymbol="AM"}if(typeof b.pmSymbol!="string"){b.pmSymbol="PM"}var a=function(f){f=f.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");var d=b.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");var c=b.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");f=f.replace("hh","(0[1-9]|1[0-2])");f=f.replace("h","([1-9]|1[0-2])");f=f.replace("HH","([01][0-9]|2[0-3])");f=f.replace("H","([0-9]|1[0-9]|2[0-3])");f=f.replace("mm","([0-5][0-9])");f=f.replace("m","([1-5][0-9]|[0-9])");f=f.replace("ss","([0-5][0-9])");f=f.replace("s","([1-5][0-9]|[0-9])");f=f.replace("t","\\s?("+d+"|"+c+")\\s?");return f};return dojo.regexp.buildGroupRE(b.format,a)};dojo.regexp.numberFormat=function(a){a=(typeof a=="object")?a:{};if(typeof a.format=="undefined"){a.format="###-###-####"}var b=function(c){c=c.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");c=c.replace(/\?/g,"\\d?");c=c.replace(/#/g,"\\d");return c};return dojo.regexp.buildGroupRE(a.format,b)};dojo.regexp.buildGroupRE=function(d,g){if(!(d instanceof Array)){return g(d)}var c=[];for(var f=0;f<d.length;f++){c.push(g(d[f]))}return"("+c.join("|")+")"};dojo.provide("dojo.i18n.number");dojo.experimental("dojo.i18n.number");dojo.i18n.number.format=function(j,d,h){d=(typeof d=="object")?d:{};var a=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,h);if(typeof d.separator=="undefined"){d.separator=a[1]}if(typeof d.decimal=="undefined"){d.decimal=a[2]}if(typeof d.groupSize=="undefined"){d.groupSize=a[3]}if(typeof d.groupSize2=="undefined"){d.groupSize2=a[4]}if(typeof d.round=="undefined"){d.round=true}if(typeof d.signed=="undefined"){d.signed=true}var c=(d.signed&&(j<0))?"-":"";j=Math.abs(j);var g=String((((d.places>0)||!d.round)?Math.floor:Math.round)(j));function b(n,m){for(var l=[];n.length>=m;n=n.substr(0,n.length-m)){l.push(n.substr(-m))}if(n.length>0){l.push(n)}return l.reverse()}if(d.groupSize2&&(g.length>d.groupSize)){var f=b(g.substr(0,g.length-d.groupSize),d.groupSize2);f.push(g.substr(-d.groupSize));c=c+f.join(d.separator)}else{if(d.groupSize){c=c+b(g,d.groupSize).join(d.separator)}else{c=c+g}}if(d.places>0){var k=j-Math.floor(j);k=(d.round?Math.round:Math.floor)(k*Math.pow(10,d.places));c=c+d.decimal+k}return c};dojo.i18n.number.parse=function(g,a,c){c=(typeof c=="object")?c:{};var h=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,a);if(typeof c.separator=="undefined"){c.separator=h[1]}if(typeof c.decimal=="undefined"){c.decimal=h[2]}if(typeof c.groupSize=="undefined"){c.groupSize=h[3]}if(typeof c.groupSize2=="undefined"){c.groupSize2=h[4]}if(typeof c.validate=="undefined"){c.validate=true}if(c.validate&&!dojo.i18n.number.isReal(g,a,c)){return Number.NaN}var b=g.split(c.decimal);if(b.length>2){return Number.NaN}var d=Number(b[0].replace(new RegExp("\\"+c.separator,"g"),""));var f=(b.length==1)?0:Number(b[1])/Math.pow(10,String(b[1]).length);return d+f};dojo.i18n.number.isInteger=function(d,a,b){b=(typeof b=="object")?b:{};var f=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,a);if(typeof b.separator=="undefined"){b.separator=f[1]}else{if(dojo.lang.isArray(b.separator)&&b.separator.length===0){b.separator=[f[1],""]}}if(typeof b.groupSize=="undefined"){b.groupSize=f[3]}if(typeof b.groupSize2=="undefined"){b.groupSize2=f[4]}var c=new RegExp("^"+dojo.regexp.integer(b)+"$");return c.test(d)};dojo.i18n.number.isReal=function(d,a,b){b=(typeof b=="object")?b:{};var f=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,a);if(typeof b.separator=="undefined"){b.separator=f[1]}else{if(dojo.lang.isArray(b.separator)&&b.separator.length===0){b.separator=[f[1],""]}}if(typeof b.decimal=="undefined"){b.decimal=f[2]}if(typeof b.groupSize=="undefined"){b.groupSize=f[3]}if(typeof b.groupSize2=="undefined"){b.groupSize2=f[4]}var c=new RegExp("^"+dojo.regexp.realNumber(b)+"$");return c.test(d)};(function(){dojo.i18n.number.FORMAT_TABLE={"ar-ae":["","",",",1],"ar-bh":["","",",",1],"ar-dz":["","",",",1],"ar-eg":["","",",",1],"ar-jo":["","",",",1],"ar-kw":["","",",",1],"ar-lb":["","",",",1],"ar-ma":["","",",",1],"ar-om":["","",",",1],"ar-qa":["","",",",1],"ar-sa":["","",",",1],"ar-sy":["","",",",1],"ar-tn":["","",",",1],"ar-ye":["","",",",1],"cs-cz":[".",".",",",3],"da-dk":[".",".",",",3],"de-at":[".",".",",",3],"de-de":[".",".",",",3],"de-lu":[".",".",",",3],"de-ch":["'","'",".",3],"el-gr":[".",".",",",3],"en-au":[",",",",".",3],"en-ca":[",",",",".",3],"en-gb":[",",",",".",3],"en-hk":[",",",",".",3],"en-ie":[",",",",".",3],"en-in":[",",",",".",3,2],"en-nz":[",",",",".",3],"en-us":[",",",",".",3],"en-za":[",",",",".",3],"es-ar":[".",".",",",3],"es-bo":[".",".",",",3],"es-cl":[".",".",",",3],"es-co":[".",".",",",3],"es-cr":[".",".",",",3],"es-do":[".",".",",",3],"es-ec":[".",".",",",3],"es-es":[".",".",",",3],"es-gt":[",",",",".",3],"es-hn":[",",",",".",3],"es-mx":[",",",",".",3],"es-ni":[",",",",".",3],"es-pa":[",",",",".",3],"es-pe":[",",",",".",3],"es-pr":[",",",",".",3],"es-py":[".",".",",",3],"es-sv":[",",",",".",3],"es-uy":[".",".",",",3],"es-ve":[".",".",",",3],"fi-fi":[" "," ",",",3],"fr-be":[".",".",",",3],"fr-ca":[" "," ",",",3],"fr-ch":[" "," ",".",3],"fr-fr":[" "," ",",",3],"fr-lu":[".",".",",",3],"he-il":[",",",",".",3],"hu-hu":[" "," ",",",3],"it-ch":[" "," ",".",3],"it-it":[".",".",",",3],"ja-jp":[",",",",".",3],"ko-kr":[",",",",".",3],"no-no":[".",".",",",3],"nl-be":[" "," ",",",3],"nl-nl":[".",".",",",3],"pl-pl":[".",".",",",3],"pt-br":[".",".",",",3],"pt-pt":[".",".","$",3],"ru-ru":[" "," ",",",3],"sv-se":["."," ",",",3],"tr-tr":[".",".",",",3],"zh-cn":[",",",",".",3],"zh-hk":[",",",",".",3],"zh-tw":[",",",",".",3],"*":[",",",",".",3]}})();dojo.i18n.number._mapToLocalizedFormatData=function(b,a){a=dojo.hostenv.normalizeLocale(a);var c=b[a];if(typeof c=="undefined"){c=b["*"]}return c};dojo.provide("dojo.i18n.currency");dojo.experimental("dojo.i18n.currency");dojo.i18n.currency.format=function(h,g,c,b){c=(typeof c=="object")?c:{};var j=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,g,b);if(typeof c.places=="undefined"){c.places=j.places}if(typeof c.places=="undefined"){c.places=2}c.signed=false;var a=dojo.i18n.number.format(h,c,b);var d=j.symbol;if(j.adjSpace=="symbol"){if(j.placement=="after"){d=" "+d}else{d=d+" "}}if(h<0){if(j.signPlacement=="before"){d="-"+d}else{if(j.signPlacement=="after"){d=d+"-"}}}var f=(j.adjSpace=="number")?" ":"";if(j.placement=="after"){a=a+f+d}else{a=d+f+a}if(h<0){if(j.signPlacement=="around"){a="("+a+")"}else{if(j.signPlacement=="end"){a=a+"-"}else{if(!j.signPlacement||j.signPlacement=="begin"){a="-"+a}}}}return a};dojo.i18n.currency.parse=function(h,g,b,d){if(typeof d.validate=="undefined"){d.validate=true}if(d.validate&&!dojo.i18n.number.isCurrency(h,g,b,d)){return Number.NaN}var c=(h.indexOf("-")!=-1);var a=a.replace(/\-/,"");var j=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,g,b);a=a.replace(new RegExp("\\"+j.symbol),"");var f=dojo.i18n.number.parse(a,b,d);if(c){f=f*-1}return f};dojo.i18n.currency.isCurrency=function(f,d,a,b){b=(typeof b=="object")?b:{};var h=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,a);if(typeof b.separator=="undefined"){b.separator=h[0]}else{if(dojo.lang.isArray(b.separator)&&b.separator.length==0){b.separator=[h[0],""]}}if(typeof b.decimal=="undefined"){b.decimal=h[2]}if(typeof b.groupSize=="undefined"){b.groupSize=h[3]}if(typeof b.groupSize2=="undefined"){b.groupSize2=h[4]}var g=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,d,a);if(typeof b.places=="undefined"){b.places=g.places}if(typeof b.places=="undefined"){b.places=2}if(typeof b.symbol=="undefined"){b.symbol=g.symbol}else{if(dojo.lang.isArray(b.symbol)&&b.symbol.length==0){b.symbol=[g.symbol,""]}}if(typeof b.placement=="undefined"){b.placement=g.placement}var c=new RegExp("^"+dojo.regexp.currency(b)+"$");return c.test(f)};dojo.i18n.currency._mapToLocalizedFormatData=function(c,b,a){var d=dojo.i18n.currency.FORMAT_TABLE[b];if(!dojo.lang.isArray(d)){return d}return dojo.i18n.number._mapToLocalizedFormatData(d[0],a)};(function(){var c={symbol:"\u062C",placement:"after",htmlSymbol:"?"};var b={symbol:"\u20AC",placement:"before",adjSpace:"symbol",htmlSymbol:"&euro;"};var a={symbol:"\u20AC",placement:"after",htmlSymbol:"&euro;"};dojo.i18n.currency.FORMAT_TABLE={AED:{symbol:"\u062c",placement:"after"},ARS:{symbol:"$",signPlacement:"after"},ATS:{symbol:"\u20AC",adjSpace:"number",signPlacement:"after",htmlSymbol:"&euro;"},AUD:{symbol:"$"},BOB:{symbol:"$b"},BRL:{symbol:"R$",adjSpace:"symbol"},BEF:a,BHD:c,CAD:[{"*":{symbol:"$"},"fr-ca":{symbol:"$",placement:"after",signPlacement:"around"}}],CHF:{symbol:"CHF",adjSpace:"symbol",signPlacement:"after"},CLP:{symbol:"$"},COP:{symbol:"$",signPlacement:"around"},CNY:{symbol:"\u00A5",htmlSymbol:"&yen;"},CRC:{symbol:"\u20A1",signPlacement:"after",htmlSymbol:"?"},CZK:{symbol:"Kc",adjSpace:"symbol",signPlacement:"after"},DEM:a,DKK:{symbol:"kr.",adjSpace:"symbol",signPlacement:"after"},DOP:{symbol:"$"},DZD:c,ECS:{symbol:"$",signPlacement:"after"},EGP:c,ESP:a,EUR:b,FIM:a,FRF:a,GBP:{symbol:"\u00A3",htmlSymbol:"&pound;"},GRD:{symbol:"\u20AC",signPlacement:"end",htmlSymbol:"&euro;"},GTQ:{symbol:"Q",signPlacement:"after"},HKD:{symbol:"HK$"},HNL:{symbol:"L.",signPlacement:"end"},HUF:{symbol:"Ft",placement:"after",adjSpace:"symbol"},IEP:{symbol:"\u20AC",htmlSymbol:"&euro;"},ILS:{symbol:"\u05E9\u0022\u05D7",placement:"after",htmlSymbol:"?"},INR:{symbol:"Rs."},ITL:{symbol:"\u20AC",signPlacement:"after",htmlSymbol:"&euro;"},JOD:c,JPY:{symbol:"\u00a5",places:0,htmlSymbol:"&yen;"},KRW:{symbol:"\u20A9",places:0,htmlSymbol:"?"},KWD:c,LBP:c,LUF:a,MAD:c,MXN:{symbol:"$",signPlacement:"around"},NIO:{symbol:"C$",adjSpace:"symbol",signPlacement:"after"},NLG:{symbol:"\u20AC",signPlacement:"end",htmlSymbol:"&euro;"},NOK:{symbol:"kr",adjSpace:"symbol",signPlacement:"after"},NZD:{symbol:"$"},OMR:c,PAB:{symbol:"B/",adjSpace:"symbol",signPlacement:"after"},PEN:{symbol:"S/",signPlacement:"after"},PLN:{symbol:"z",placement:"after"},PTE:a,PYG:{symbol:"Gs.",signPlacement:"after"},QAR:c,RUR:{symbol:"rub.",placement:"after"},SAR:c,SEK:{symbol:"kr",placement:"after",adjSpace:"symbol"},SGD:{symbol:"$"},SVC:{symbol:"\u20A1",signPlacement:"after",adjSpace:"symbol"},SYP:c,TND:c,TRL:{symbol:"TL",placement:"after"},TWD:{symbol:"NT$"},USD:{symbol:"$"},UYU:{symbol:"$U",signplacement:"after",adjSpace:"symbol"},VEB:{symbol:"Bs",signplacement:"after",adjSpace:"symbol"},YER:c,ZAR:{symbol:"R",signPlacement:"around"}}})();dojo.provide("wc.widget.RangeSlider");wc.widget.RangeSlider=function(){dojo.widget.HtmlWidget.call(this);this.widgetType="RangeSlider";this.isContainer=true;this.templateCssPath=dojo.uri.dojoUri("wc/widget/templates/RangeSlider.css");this.templatePath=dojo.uri.dojoUri("wc/widget/templates/RangeSlider.html");this.firstHandle=null;this.secondHandle=null;this.rangeSelectorBar=null;this.startRange=0;this.totalRange=100;this.defaultStart=0;this.defaultEnd=0;this.clickSelect=true;this.snapToGrid=true;this.activeDrag=true;this.incrementValue=1;this.decimalPoints=0;this.showTooltip=true;this.showTooltipAllTime=true;this.ralativePositionFirst=[-1,-1];this.ralativePositionSecond=[1,-1];this.prefix="";this.suffix="";this.currencyCode="";this.firstTooltip=null;this.secondTooltip=null;this.currentValue=new Object();this.fillInTemplate=function(a,b){dojo.lang.setTimeout(this,"initWidget",0)};this.initWidget=function(){this.pixelsOnSlider=dojo.html.getContentBoxWidth(this.rangeSelectorBar);this.endRange=this.startRange+this.totalRange;this.pixelsPerUnit=(this.pixelsOnSlider)/this.totalRange;this.noOfDecimalUnits=(this.totalRange*(Math.pow(10,this.decimalPoints)))/this.incrementValue;var a=Math.log(this.noOfDecimalUnits/this.pixelsOnSlider)*Math.LOG10E;if(a>0){dojo.debug("RangeSlider Widget: The whole range (along with decimal values) cannot be represented by the specified width of the widget. Please set decimalPoints value to "+Math.floor(this.decimalPoints-a)+" or less, OR Set the width of the widget to "+(this.noOfDecimalUnits)+" Pixels.");dojo.debug("RangeSlider Widget: The decimalPoints value is set to "+Math.floor(this.decimalPoints-a)+" from its origional value "+this.decimalPoints);this.decimalPoints=Math.floor(this.decimalPoints-a)}if(this.pixelsPerUnit<1){dojo.debug("RangeSlider Widget: The whole range cannot be represented by the specified width of the widget. Please decrese the range  by "+dojo.math.round((1-this.pixelsPerUnit)*this.totalRange)+" Units OR Increase the width of the widget by "+dojo.math.round((1-this.pixelsPerUnit)*this.totalRange)+" Pixels.")}if(this.defaultStart<this.startRange||this.defaultStart>=this.endRange){this.defaultStart=this.startRange}if(this.defaultEnd>this.endRange||this.defaultEnd<=this.startRange){this.defaultEnd=this.endRange}this.currentValue.lower=this.defaultStart;this.currentValue.upper=this.defaultEnd;this.setupSlider(this.firstHandle,"first");this.setupSlider(this.secondHandle,"second");if(this.clickSelect){dojo.event.connect(this.rangeSelectorBar,"onclick",this,"onSliderBarClick")}if(typeof window!="undefined"){dojo.event.connect(window,"onresize",this,"onWindowResized")}};this.setupSlider=function(d,b){this.handleMove=new dojo.widget.SliderDragMoveSource(d);this.handleMove=new dojo.widget.SliderDragMoveSource(d);this.handleMove.setParent(this);dojo.event.connect(this.handleMove,"onDragMove",this,"onDragMove");dojo.event.connect(this.handleMove,"onDragEnd",this,"onDragEnd");dojo.event.connect(this.handleMove,"onClick",this,"onClick");d.name=b;this.startLimit=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(this.firstHandle)/2;this.endLimit=this.startLimit+this.pixelsOnSlider;var c=[];if(b=="first"){c[0]=(this.ralativePositionFirst[0]<0)?(this.ralativePositionFirst[0]-20):(this.ralativePositionFirst[0]+dojo.html.getContentBoxWidth(this.firstHandle));c[1]=(this.ralativePositionFirst[1]<0)?(this.ralativePositionFirst[1]-15):(this.ralativePositionFirst[0]+dojo.html.getContentBoxHeight(this.firstHandle));var a=(this.currentValue.lower-this.startRange)*this.pixelsPerUnit+dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(d)/2;if(this.showTooltip){d.tempHandle=this.firstTooltip;dojo.style.hide(this.firstTooltip);if(this.showTooltipAllTime){dojo.style.show(this.firstTooltip)}}else{dojo.style.hide(this.firstTooltip)}}else{if(b=="second"){c[0]=(this.ralativePositionSecond[0]<0)?(this.ralativePositionSecond[0]-20):(this.ralativePositionSecond[0]+dojo.html.getContentBoxWidth(this.secondHandle));c[1]=(this.ralativePositionSecond[1]<0)?(this.ralativePositionSecond[1]-15):(this.ralativePositionSecond[0]+dojo.html.getContentBoxHeight(this.secondHandle));var a=(this.currentValue.upper-this.startRange)*this.pixelsPerUnit+dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(d)/2;if(this.showTooltip){d.tempHandle=this.secondTooltip;dojo.style.hide(this.secondTooltip);if(this.showTooltipAllTime){dojo.style.show(this.secondTooltip)}}else{dojo.style.hide(this.secondTooltip)}}else{dojo.debug("RangeSlider Widget: Something is wrong with name:"+b+" in this.setupSlider(handle, name)")}}if(this.snapToGrid){a=this.getPixelValue(this.getUnitValue(a))}d.style.left=a+"px";d.style.top=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).y+dojo.html.getContentBoxHeight(this.rangeSelectorBar)/2-dojo.html.getContentBoxHeight(this.firstHandle)/2+"px";if(this.showTooltip){if(b=="first"){d.tempHandle.style.position="absolute";d.tempHandle.style.top=dojo.style.getAbsolutePosition(d,true).y+parseInt(c[1])+"px";d.tempHandle.style.left=dojo.style.getAbsolutePosition(d,true).x+parseInt(c[0])+13+"px"}else{d.tempHandle.style.position="absolute";d.tempHandle.style.top=dojo.style.getAbsolutePosition(d,true).y+parseInt(c[1])+"px";d.tempHandle.style.left=dojo.style.getAbsolutePosition(d,true).x+parseInt(c[0])-25+"px"}}this.valueChanged(b)};this.round=function(a){return dojo.math.round(a,this.decimalPoints)};this.setUnitPosition=function(b,c){var a=(c-this.startRange)*this.pixelsPerUnit+this.startLimit;this.setPixelPosition(b,a)};this.setPixelPosition=function(g,a){this.currentHandle=g;var d=a;var b=this.getPixelValue(0)-5;var f=this.getPixelValue(this.totalRange)+5;var c=[];if(g.name=="first"){f=dojo.style.getAbsolutePosition(this.secondHandle,true).x;this.secondHandle.style.zIndex=10;this.secondTooltip.style.zIndex=30;this.firstHandle.style.zIndex=20;this.firstTooltip.style.zIndex=40;c[0]=(this.ralativePositionFirst[0]<0)?(this.ralativePositionFirst[0]-20):(this.ralativePositionFirst[0]+dojo.html.getContentBoxWidth(this.firstHandle));c[1]=(this.ralativePositionFirst[1]<0)?(this.ralativePositionFirst[1]-15):(this.ralativePositionFirst[0]+dojo.html.getContentBoxHeight(this.firstHandle))}else{if(g.name=="second"){b=dojo.style.getAbsolutePosition(this.firstHandle,true).x;this.firstHandle.style.zIndex=10;this.firstTooltip.style.zIndex=30;this.secondHandle.style.zIndex=20;this.secondTooltip.style.zIndex=40;c[0]=(this.ralativePositionSecond[0]<0)?(this.ralativePositionSecond[0]-20):(this.ralativePositionSecond[0]+dojo.html.getContentBoxWidth(this.secondHandle));c[1]=(this.ralativePositionSecond[1]<0)?(this.ralativePositionSecond[1]-15):(this.ralativePositionSecond[0]+dojo.html.getContentBoxHeight(this.secondHandle))}else{dojo.debug("RangeSlider Widget: Something is wrong with node.name:"+name+" in this.setPixelPosition(node,pixelValue)")}}if(b<=d&&d<=f){if(this.snapToGrid&&!this.activeDrag){a=this.getPixelValue(this.getUnitValue(a))}g.style.left=a+"px";dojo.style.show(g.tempHandle);this.valueChanged(g.name)}};this.getUnitValue=function(a){var d=this.startLimit;var c=a;var b=this.startRange+(c-d)/this.pixelsPerUnit;var b=this.round(b/this.incrementValue)*this.incrementValue;if(b<this.startRange){b=this.startRange}if(b>this.endRange){b=this.endRange}return b};this.getPixelValue=function(c){c=this.round(c/this.incrementValue)*this.incrementValue;var d=this.startLimit;var b=c*this.pixelsPerUnit;var a=(d+b);if(a<this.startLimit){a=this.startLimit}if(a>this.endLimit){a=this.endLimit}return a};this.getCloserSliderHandle=function(b){var c=dojo.style.getAbsolutePosition(this.firstHandle,true).x+dojo.html.getContentBoxWidth(this.firstHandle)/2;var a=dojo.style.getAbsolutePosition(this.secondHandle,true).x+dojo.html.getContentBoxWidth(this.secondHandle)/2;var d=b-c;var f=a-b;if(d<=f){return this.firstHandle}else{return this.secondHandle}};this.getCurrentValues=function(){return this.currentValue};this.valueChanged=function(a){if(a=="first"||a=="*"){this.currentValue.lower=this.round(this.getUnitValue(dojo.style.getAbsolutePosition(this.firstHandle,true).x))}if(a=="second"||a=="*"){this.currentValue.upper=this.round(this.getUnitValue(dojo.style.getAbsolutePosition(this.secondHandle,true).x))}var b=this.currentValue.lower;var c=this.currentValue.upper;if(this.currencyCode!=null&&this.currencyCode!=""){b=dojo.i18n.currency.format(b,this.currencyCode,{places:0});c=dojo.i18n.currency.format(c,this.currencyCode,{places:0})}if(this.showTooltip){this.firstTooltip.innerHTML=this.prefix+b+this.suffix;this.secondTooltip.innerHTML=this.prefix+c+this.suffix}this.onChange(this)};this.getFormattedValues=function(){var a=this.currentValue.lower;var b=this.currentValue.upper;if(this.currencyCode!=null&&this.currencyCode!=""){a=dojo.i18n.currency.format(a,this.currencyCode,{places:0});b=dojo.i18n.currency.format(b,this.currencyCode,{places:0})}return{lower:a,upper:b}};this.onSliderBarClick=function(c){var a=dojo.html.getScrollOffset().x+c.clientX;var b=this.getCloserSliderHandle(a);a=a-dojo.html.getContentBoxWidth(b)/2;this.setPixelPosition(b,a);this.onChangeMade(this)};this.onDragEnd=function(b){if(this.snapToGrid&&this.activeDrag&&this.currentHandle!==null){var a=this.getPixelValue(this.getUnitValue(dojo.style.getAbsolutePosition(this.currentHandle,true).x));this.currentHandle.style.left=a+"px"}if(!this.showTooltipAllTime){dojo.style.hide(this.firstTooltip);dojo.style.hide(this.secondTooltip)}this.onChangeMade(this)};this.onFirstMouseOver=function(){if(!this.showTooltipAllTime){dojo.style.show(this.firstTooltip)}dojo.html.addClass(this.firstHandle,"rangeSelectorHandleHover")};this.onFirstMouseOut=function(){if(!this.showTooltipAllTime){dojo.style.hide(this.firstTooltip)}dojo.html.removeClass(this.firstHandle,"rangeSelectorHandleHover")};this.onSecondMouseOver=function(){if(!this.showTooltipAllTime){dojo.style.show(this.secondTooltip)}dojo.html.addClass(this.secondHandle,"rangeSelectorHandleHover")};this.onSecondMouseOut=function(){if(!this.showTooltipAllTime){dojo.style.hide(this.secondTooltip)}dojo.html.removeClass(this.secondHandle,"rangeSelectorHandleHover")};this.onDragMove=function(a){};this.onClick=function(a){};this.onChange=function(a){};this.onChangeMade=function(a){};this.onWindowResized=function(){this.setupSlider(this.firstHandle,"first");this.setupSlider(this.secondHandle,"second")}};dojo.inherits(wc.widget.RangeSlider,dojo.widget.HtmlWidget);dojo.widget.tags.addParseTreeHandler("dojo:RangeSlider");dojo.declare("dojo.widget.SliderDragMoveSource",dojo.dnd.HtmlDragMoveSource,{isDragInProgress:false,slider:null,onDragStart:function(b){var a=this.createDragMoveObject();dojo.event.connect(a,"onDragMove",this,"onDragMove");return a},onDragMove:function(a){},createDragMoveObject:function(){var a=new dojo.widget.SliderDragMoveObject(this.dragObject,this.type);a.slider=this.slider;if(this.dragClass){a.dragClass=this.dragClass}return a},setParent:function(a){this.slider=a}});dojo.declare("dojo.widget.SliderDragMoveObject",dojo.dnd.HtmlDragMoveObject,{slider:null,onDragMove:function(b){if(this.slider.isEnableX&&0==this.slider.valueSizeX){this.slider.valueSizeX=(this.constraints.maxX-this.constraints.minX)/this.slider.valuesX}if(this.slider.isEnableY&&0==this.slider.valueSizeY){this.slider.valueSizeY=(this.constraints.maxY-this.constraints.minY)/this.slider.valuesY}this.updateDragOffset();var a=this.dragOffset.x+b.pageX;var c=this.dragOffset.y+b.pageY;this.slider.setPixelPosition(this.domNode,a)}});dojo.provide("wc.widget.RefreshArea");dojo.widget.defineWidget("wc.widget.RefreshArea",dojo.widget.HtmlWidget,{isContainer:true,controllerId:"",objectId:"",controller:null,initialize:function(){this.controller=wc.render.getRefreshControllerById(this.controllerId);if(!this.controller){throw new Error('Could not locate RefreshController "'+this.controllerId+'".')}this.controller.addWidget(this);this.containerNode=this.domNode},destroy:function(){this.controller.removeWidget(this);return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments)},refresh:function(a){if(!a){a={}}a.objectId=this.objectId;this.controller.refresh(this,a)},setInnerHTML:function(a){this.destroyChildren();this.containerNode.innerHTML=a;var c=new dojo.xml.Parse();var b=c.parseElement(this.containerNode,null,true);dojo.widget.getParser().createSubComponents(b,this)}});dojo.provide("wc.widget.ScrollablePane");dojo.require("dojo.event");dojo.widget.defineWidget("wc.widget.ScrollablePane",dojo.widget.HtmlWidget,{identifier:"",widgetType:"ScrollablePane",isContainer:true,snarfChildDomOutput:true,templatePath:dojo.uri.dojoUri("wc/widget/templates/ScrollablePane.html"),elements:[],objectArray:[],elementCount:0,forwardAnimation:null,backwardAnimation:null,oldReference:0,direction:"forward",backwardLimit:0,forwardLimit:100,padding:10,pixelsToMove:-1,elementsToMove:1,duration:1500,repeatCount:-1,direction:"forward",acceleration:0,exitEffect:"clip fade",widgetDimension:-1,noElementToDisplay:-1,mouseOverTimeOut:2000,stopButtonId:"",isHorozontal:true,widgetContainer:null,moveBackwardContainer:null,moveForwardContainer:null,moveBackwardButton:null,moveForwardButton:null,containerNode:null,widgetContainerClass:"",moveBackwardButtonClass:"",containerNodeClass:"",moveForwardButtonClass:"",moveForwardButtonHoverClass:"",moveBackwardButtonHoverClass:"",scrollablePaneElementsClass:"",onForward:function(){},onBackward:function(){},isMouseOverNow:false,zIndex:999,translatedTextBundle:new Object(),fillInTemplate:function(b,f){dojo.html.disableSelection(this.widgetContainer);dojo.html.addClass(this.widgetContainer,this.widgetContainerClass);dojo.html.addClass(this.moveForwardButton,this.moveForwardButtonClass);dojo.html.addClass(this.containerNode,this.containerNodeClass);dojo.html.addClass(this.moveBackwardButton,this.moveBackwardButtonClass);dojo.html.hide(this.widgetContainer);this.objectArray=[];var c=dojo.dom.getFirstChildElement(this.containerNode);while(c){var a=new Object();a.domNode=c;a.left=0;a.top=0;a.Width=0;a.Height=0;this.objectArray.push(a);c=dojo.dom.getNextSiblingElement(c)}if(this.stopButtonId!=null&&this.stopButtonId!=""){var d=dojo.byId(this.stopButtonId);if(d!=null){dojo.event.connect(d,"onclick",this,"playPause")}}if(typeof window!="undefined"){dojo.addOnLoad(this,"onWindowResized");dojo.event.connect(window,"onresize",this,"onWindowResized")}this.fadeEffect=false;this.clipEffect=false;this.hideEffect=false;if(this.exitEffect.indexOf("fade")>-1){this.fadeEffect=true}if(this.exitEffect.indexOf("clip")>-1){this.clipEffect=true}if(this.exitEffect.indexOf("hide")>-1){this.hideEffect=true}if(this.objectArray!==null&&this.objectArray.length>0){dojo.lang.setTimeout(this,"initWidget",0)}},initWidget:function(){dojo.html.show(this.widgetContainer);var c=this.getChildrenOfType(dojo.widget.HtmlWidget);var g=0;for(var h=0;h<this.objectArray.length;h++){if(dojo.html.hasAttribute(this.objectArray[h]["domNode"],"dojoType")){var a=this.objectArray[h]["domNode"];this.objectArray.splice(h,1);var f=new Object();f.domNode=c[g].domNode;f.left=0;f.top=0;f.Width=0;f.Height=0;this.objectArray.splice(h,0,f);a.parentNode.appendChild(c[g++].domNode);dojo.dom.removeNode(a)}}if(this.isHorozontal){this.axes="x";this.pos="left";this.dim="Width";this._pos="top";this._dim="Height"}else{this.axes="y";this.pos="top";this.dim="Height";this._pos="left";this._dim="Width"}this.left=this.getAbsolutePosition(this.widgetContainer,true).x;this.top=this.getAbsolutePosition(this.widgetContainer,true).y;var j=0;for(var h=0;h<this.objectArray.length;h++){this.objectArray[h][this._dim]=this.getAbsoluteDimension(this.objectArray[h]["domNode"])[this.dim];this.objectArray[h][this.dim]=this.getAbsoluteDimension(this.objectArray[h]["domNode"])[this._dim];if(this.objectArray[h][this._dim]>j){j=this.objectArray[h][this._dim]}}if(this.noElementToDisplay==-1){if(this.widgetDimension==-1){this.widgetDimension=200}}else{this.widgetDimension=(this.noElementToDisplay*this.getAbsoluteDimension(this.objectArray[0]["domNode"])[this.dim])+((this.noElementToDisplay+1)*this.padding)}this.moveBackwardContainer.style.position="relative";this.moveBackwardContainer.style.zIndex=this.zIndex;this.moveBackwardContainer.style[this.pos]=0+"px";this.moveBackwardContainer.style[this._pos]=(j/2)-(this.getAbsoluteDimension(this.moveBackwardContainer)[this._dim]/2)+"px";var b=this.dim+":"+this.widgetDimension+"px";dojo.html.setStyleAttributes(this.containerNode,b);var d=this._dim+":"+j+"px";dojo.html.setStyleAttributes(this.widgetContainer,d);this.moveForwardContainer.style.position="relative";this.moveForwardContainer.style.zIndex=this.zIndex;this.moveForwardContainer.style[this.pos]=0+"px";this.moveForwardContainer.style[this._pos]=(j/2)-(this.getAbsoluteDimension(this.moveForwardContainer)[this._dim]/2)+"px";this.backwardLimit=this.getAbsolutePosition(this.moveBackwardContainer,true)[this.axes]+this.getAbsoluteDimension(this.moveBackwardContainer)[this.dim]+this.padding;this.forwardLimit=this.getAbsolutePosition(this.moveForwardContainer,true)[this.axes]-this.padding;if(!(this.exitEffect.indexOf("clip")>-1)&&!(this.exitEffect.indexOf("hide")>-1)){this.exitEffect=this.exitEffect+" clip"}if(this.direction=="forward"){dojo.html.addClass(this.objectArray[0]["domNode"],this.scrollablePaneElementsClass);this.objectArray[0][this._pos]=this[this._pos]+(j/2)-(this.objectArray[0][this._dim]/2);this.objectArray[0][this.pos]=this.getAbsolutePosition(this.moveBackwardContainer,true)[this.axes]+this.getAbsoluteDimension(this.moveBackwardContainer)[this.dim]+this.padding;this.objectArray[0]["domNode"].style.position="absolute";this.objectArray[0]["domNode"].style[this.pos]=this.objectArray[0][this.pos]+"px";this.objectArray[0]["domNode"].style[this._pos]=this.objectArray[0][this._pos]+"px";this.elementCount=this.objectArray.length;for(var h=1;h<this.elementCount;h++){dojo.html.addClass(this.objectArray[h]["domNode"],this.scrollablePaneElementsClass);this.objectArray[h][this._pos]=this[this._pos]+(j/2)-(this.objectArray[0][this._dim]/2);this.objectArray[h][this.pos]=this.getAbsolutePosition(this.objectArray[h-1]["domNode"],true)[this.axes]+this.objectArray[h-1][this.dim]+this.padding;this.objectArray[h]["domNode"].style.position="absolute";this.objectArray[h]["domNode"].style[this.pos]=this.objectArray[h][this.pos]+"px";this.objectArray[h]["domNode"].style[this._pos]=this.objectArray[h][this._pos]+"px"}}else{this.elementCount=this.objectArray.length;dojo.html.addClass(this.objectArray[this.elementCount-1]["domNode"],this.scrollablePaneElementsClass);this.objectArray[this.elementCount-1][this._pos]=this[this._pos]+(j/2)-(this.objectArray[0][this._dim]/2);this.objectArray[this.elementCount-1][this.pos]=this.getAbsolutePosition(this.moveForwardContainer,true)[this.axes]-this.objectArray[this.elementCount-1][this.dim]-this.padding;this.objectArray[this.elementCount-1]["domNode"].style.position="absolute";this.objectArray[this.elementCount-1]["domNode"].style[this.pos]=this.objectArray[this.elementCount-1][this.pos]+"px";this.objectArray[this.elementCount-1]["domNode"].style[this._pos]=this.objectArray[this.elementCount-1][this._pos]+"px";for(var h=this.elementCount-2;h>-1;h--){dojo.html.addClass(this.objectArray[h]["domNode"],this.scrollablePaneElementsClass);this.objectArray[h][this._pos]=this[this._pos]+(j/2)-(this.objectArray[0][this._dim]/2);this.objectArray[h][this.pos]=this.getAbsolutePosition(this.objectArray[h+1]["domNode"],true)[this.axes]-this.objectArray[h+1][this.dim]-this.padding;this.objectArray[h]["domNode"].style.position="absolute";this.objectArray[h]["domNode"].style[this.pos]=this.objectArray[h][this.pos]+"px";this.objectArray[h]["domNode"].style[this._pos]=this.objectArray[h][this._pos]+"px"}}for(var h=0;h<this.elementCount;h++){this.applyEffects(this.objectArray[h])}if(this.repeatCount==-1){if(this.direction=="forward"){this.forward()}else{this.backward()}}this.updatePlayPauseLabel()},forward:function(){if(this.backwardAnimation!=null&&(this.backwardAnimation.status()=="playing"||this.backwardAnimation.status()=="paused")){this.backwardAnimation.stop()}if(this.forwardAnimation!=null&&(this.forwardAnimation.status()=="playing")){this.forwardAnimation.gotoPercent(100,true);this.forwardAnimation.stop();for(var d=0;d<this.elementCount;d++){this.applyEffects(this.objectArray[d])}dojo.lang.setTimeout(this,"playAnimationOnTimeOut",this.mouseOverTimeOut)}else{if(this.pixelsToMove==-1){if(this.elementsToMove<=1){if(this.repeatCount==-1){var f=this.forwardLimit-this.objectArray[this.getForwardElementIndex()][this.dim]-this.padding}else{var f=this.getAbsolutePosition(this.objectArray[this.getForwardElementIndex()]["domNode"],true)[this.axes]-this.padding}var b=this.forwardLimit}else{var c=this.elementCount-1;if(this.elementsToMove>=this.elementCount){this.elementsToMove=this.elementCount-1}if(this.repeatCount==-1){var f=this.forwardLimit-this.padding}else{var f=this.getAbsolutePosition(this.objectArray[this.getForwardElementIndex()]["domNode"],true)[this.axes]+this.objectArray[this.getForwardElementIndex()][this.dim]}for(var d=0;d<this.elementsToMove;d++){if((this.getForwardElementIndex()-d)<0){f=f-this.objectArray[c][this.dim]-this.padding;c--}else{f=f-this.objectArray[this.getForwardElementIndex()-d][this.dim]-this.padding}var b=this.forwardLimit-this.padding/2}}}else{var f=0;var b=this.pixelsToMove}if(this.isHorozontal){var a=new dojo.math.curves.Line([f,0],[b,0])}else{var a=new dojo.math.curves.Line([0,f],[0,b])}this.oldReference=f;this.oldReference_bak=f;this.direction="forward";this.forwardAnimation=new dojo.animation.Animation(a,this.duration,this.acceleration,this.repeatCount);dojo.event.connect(this.forwardAnimation,"handler",this,"movementHandler");this.currentAnimation=this.forwardAnimation;this.forwardAnimation.playPause();this.onForward()}},backward:function(){if(this.forwardAnimation!=null&&(this.forwardAnimation.status()=="playing"||this.forwardAnimation.status()=="paused")){this.forwardAnimation.stop()}if(this.backwardAnimation!=null&&(this.backwardAnimation.status()=="playing")){this.backwardAnimation.gotoPercent(100,true);this.backwardAnimation.stop();for(var c=0;c<this.elementCount;c++){this.applyEffects(this.objectArray[c])}dojo.lang.setTimeout(this,"playAnimationOnTimeOut",this.mouseOverTimeOut)}else{if(this.pixelsToMove==-1){if(this.elementsToMove==1){if(this.repeatCount==-1){var f=this.backwardLimit+this.objectArray[this.getBackwardElementIndex()][this.dim]+this.padding}else{var f=this.getAbsolutePosition(this.objectArray[this.getBackwardElementIndex()]["domNode"],true)[this.axes]+this.objectArray[this.getBackwardElementIndex()][this.dim]+this.padding}var a=this.backwardLimit}else{var b=0;if(this.repeatCount==-1){var f=this.backwardLimit+this.padding}else{var f=this.getAbsolutePosition(this.objectArray[this.getBackwardElementIndex()]["domNode"],true)[this.axes]}if(this.elementsToMove>=this.elementCount){this.elementsToMove=this.elementCount-1}for(var c=0;c<this.elementsToMove;c++){if((this.getBackwardElementIndex()+c)>=this.elementCount){f=f+this.objectArray[b][this.dim]+this.padding;b++}else{f=f+this.objectArray[this.getBackwardElementIndex()+c][this.dim]+this.padding}var a=this.backwardLimit+this.padding/2}}}else{var f=this.pixelsToMove;var a=0}if(this.isHorozontal){var d=new dojo.math.curves.Line([f,0],[a,0])}else{var d=new dojo.math.curves.Line([0,f],[0,a])}this.oldReference=f;this.oldReference_bak=f;this.direction="backward";this.backwardAnimation=new dojo.animation.Animation(d,this.duration,this.acceleration,this.repeatCount);dojo.event.connect(this.backwardAnimation,"handler",this,"movementHandler");this.currentAnimation=this.backwardAnimation;this.backwardAnimation.playPause();this.onBackward()}},playPause:function(a){if(this.currentAnimation!=null){this.currentAnimation.playPause();this.updatePlayPauseLabel()}},updatePlayPauseLabel:function(){if(this.stopButtonId!=null&&this.stopButtonId!=""){var a=document.getElementById(this.stopButtonId);var b="";if(this.currentAnimation!=null&&this.currentAnimation.status()=="playing"){b=(this.translatedTextBundle.Pause!=null||this.translatedTextBundle.Pause!="")?this.translatedTextBundle.Pause:"Pause"}if(this.currentAnimation!=null&&this.currentAnimation.status()=="paused"){b=(this.translatedTextBundle.Play!=null||this.translatedTextBundle.Play!="")?this.translatedTextBundle.Play:"Play"}if(a.innerHTML!=null){a.innerHTML=b}if(a.value!=null){a.innerHTML=b}}},movementHandler:function(g){switch(g.type){case"play":this.reArrangeElements();break;case"pause":break;case"animate":var f=g[this.axes];var d=this.oldReference-f;if(d!=0){var c=this.elementCount-1;var a=false;do{var b=this.objectArray[c];b[this.pos]=b[this.pos]-d;if(b[this.pos]<this.backwardLimit){if((b[this.pos]+b[this.dim])>this.backwardLimit){b.domNode.style[this.pos]=b[this.pos]+"px";this.applyEffects(b)}else{if(this.direction=="backward"){a=true}}}else{if((b[this.pos]+b[this.dim])>this.forwardLimit){if(b[this.pos]<this.forwardLimit){b.domNode.style[this.pos]=b[this.pos]+"px";this.applyEffects(b)}else{if(this.direction=="forward"){a=true}}}else{b.domNode.style[this.pos]=b[this.pos]+"px"}}}while(c--);if(a){this.reArrangeElements()}this.oldReference=f}break;case"end":this.oldReference=this.oldReference_bak;break}},reArrangeElements:function(){var b=this.objectArray[0];var c=this.objectArray[this.elementCount-1];if(this.direction=="backward"){if((b[this.pos]+b[this.dim])<this.backwardLimit){b[this.pos]=(c[this.pos]+c[this.dim])+this.padding;this.objectArray.push(b);this.objectArray.splice(0,1)}}if(this.direction=="forward"){if(c[this.pos]>this.forwardLimit){c[this.pos]=b[this.pos]-c[this.dim]-this.padding;var a=c;this.objectArray.splice(this.elementCount-1,1);this.objectArray.splice(0,0,a)}}},applyEffects:function(d){var b=d.domNode.style;var g=false;var c=this.backwardLimit;if(d[this.pos]<c){g=true;if(this.hideEffect){b.visibility="hidden"}else{if(this.clipEffect){var f=c-d[this.pos];if(this.isHorozontal){b.clip="rect(auto, auto, auto,"+f+"px)"}else{b.clip="rect("+f+"px, auto, auto, auto)"}}}}var a=this.forwardLimit;if((d[this.pos]+d[this.dim])>this.forwardLimit){g=true;if(this.hideEffect){b.visibility="hidden"}else{if(this.clipEffect){var f=a-d[this.pos];if(this.isHorozontal){b.clip="rect(auto, "+f+"px, auto, auto)"}else{b.clip="rect(auto, auto, "+f+"px, auto)"}}}}if(!g){b.clip="rect(auto, auto, auto, auto)";b.visibility="visible"}},onContainerMouseOver:function(){this.isMouseOverNow=true;if(this.currentAnimation!=null){this.currentAnimation.pause()}},onContainerMouseOut:function(){this.isMouseOverNow=false;dojo.lang.setTimeout(this,"playAnimationOnContainerMouseOut",this.mouseOverTimeOut)},playAnimationOnContainerMouseOut:function(){if(this.currentAnimation!=null&&!this.isMouseOverNow){if(this.currentAnimation.status()=="paused"){this.currentAnimation.playPause()}}},playAnimationOnTimeOut:function(){if(this.currentAnimation!=null&&(this.currentAnimation.status()=="stopped")){for(var a=0;a<this.elementCount;a++){this.applyEffects(this.objectArray[a])}this.currentAnimation.play()}},getAbsolutePosition:function(c,b){var a=new Object();a.x=dojo.html.getAbsolutePosition(c,b).left;a.y=dojo.html.getAbsolutePosition(c,b).top;return a},getAbsoluteDimension:function(b){var a=new Object();a.Width=dojo.html.getOuterWidth(b);a.Height=dojo.html.getOuterHeight(b);return a},setAbsoluteDimension:function(a,b,c){if(c=="Width"){dojo.html.setOuterWidth(a,b)}else{if(c=="Height"){dojo.html.setOuterHeight(a,b)}else{alert("Parameter dim was not recognized!!")}}},setAbsolutePosition:function(a,b,c){if(c=="left"){a.style.left=b+"px"}else{if(c=="top"){a.style.top=b+"px"}else{alert("Parameter pos was not recognized!!")}}},getBackwardElementIndex:function(){var b=0;for(var a=this.elementCount-1;a>=0;a--){if(this.backwardLimit<this.objectArray[a][this.pos]+this.objectArray[a][this.dim]){b=a}}return b},getForwardElementIndex:function(){var a=this.elementCount-1;for(var b=0;b<this.elementCount;b++){if(this.forwardLimit>this.objectArray[b][this.pos]){a=b}}return a},onBackwardMouseOver:function(){dojo.html.removeClass(this.moveBackwardButton,this.moveBackwardButtonClass);dojo.html.addClass(this.moveBackwardButton,this.moveBackwardButtonHoverClass)},onBackwardMouseOut:function(){dojo.html.removeClass(this.moveBackwardButton,this.moveBackwardButtonHoverClass);dojo.html.addClass(this.moveBackwardButton,this.moveBackwardButtonClass)},onForwardMouseOver:function(){dojo.html.removeClass(this.moveForwardButton,this.moveForwardButtonClass);dojo.html.addClass(this.moveForwardButton,this.moveForwardButtonHoverClass)},onForwardMouseOut:function(){dojo.html.removeClass(this.moveForwardButton,this.moveForwardButtonHoverClass);dojo.html.addClass(this.moveForwardButton,this.moveForwardButtonClass)},onWindowResized:function(){this.backwardLimit=this.getAbsolutePosition(this.moveBackwardContainer,true)[this.axes]+this.getAbsoluteDimension(this.moveBackwardContainer)[this.dim]+this.padding;this.forwardLimit=this.getAbsolutePosition(this.moveForwardContainer,true)[this.axes]-this.padding;for(var a=0;a<this.elementCount;a++){this.applyEffects(this.objectArray[a])}}});dojo.provide("dojo.widget.AccordionContainer");dojo.widget.defineWidget("dojo.widget.AccordionContainer",dojo.widget.HtmlWidget,{isContainer:true,labelNodeClass:"label",containerNodeClass:"accBody",duration:250,fillInTemplate:function(){with(this.domNode.style){if(position!="absolute"){position="relative"}overflow="hidden"}},addChild:function(a){var b=this._addChild(a);this._setSizes();return b},_addChild:function(a){if(a.open){dojo.deprecated("open parameter deprecated, use 'selected=true' instead will be removed in ","0.5");dojo.debug(a.widgetId+": open == "+a.open);a.selected=true}if(a.widgetType!="AccordionPane"){var b=dojo.widget.createWidget("AccordionPane",{label:a.label,selected:a.selected,labelNodeClass:this.labelNodeClass,containerNodeClass:this.containerNodeClass,allowCollapse:this.allowCollapse});b.addChild(a);this.addWidgetAsDirectChild(b);this.registerChild(b,this.children.length);return b}else{dojo.html.addClass(a.containerNode,this.containerNodeClass);dojo.html.addClass(a.labelNode,this.labelNodeClass);this.addWidgetAsDirectChild(a);this.registerChild(a,this.children.length);return a}},postCreate:function(){var a=this.children;this.children=[];dojo.html.removeChildren(this.domNode);dojo.lang.forEach(a,dojo.lang.hitch(this,"_addChild"));this._setSizes()},removeChild:function(a){dojo.widget.AccordionContainer.superclass.removeChild.call(this,a);this._setSizes()},onResized:function(){this._setSizes()},_setSizes:function(){var c=0;var a=0;dojo.lang.forEach(this.children,function(g,f){c+=g.getLabelHeight();if(g.selected){a=f}});var b=dojo.html.getContentBox(this.domNode);var d=0;dojo.lang.forEach(this.children,function(h,f){var g=h.getLabelHeight();h.resizeTo(b.width,b.height-c+g);h.domNode.style.zIndex=f+1;h.domNode.style.position="absolute";h.domNode.style.top=d+"px";d+=(f==a)?dojo.html.getBorderBox(h.domNode).height:g})},selectChild:function(b){dojo.lang.forEach(this.children,function(d){d.setSelected(d==b)});var c=0;var a=[];dojo.lang.forEach(this.children,function(f,d){if(f.domNode.style.top!=(c+"px")){a.push(dojo.lfx.html.slideTo(f.domNode,{top:c,left:0},this.duration))}c+=f.selected?dojo.html.getBorderBox(f.domNode).height:f.getLabelHeight()},this);dojo.lfx.combine(a).play()}});dojo.widget.defineWidget("dojo.widget.AccordionPane",dojo.widget.HtmlWidget,{label:"","class":"dojoAccordionPane",labelNodeClass:"label",containerNodeClass:"accBody",selected:false,templatePath:dojo.uri.dojoUri("src/widget/templates/AccordionPane.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/AccordionPane.css"),isContainer:true,fillInTemplate:function(){dojo.html.addClass(this.domNode,this["class"]);dojo.widget.AccordionPane.superclass.fillInTemplate.call(this);dojo.html.disableSelection(this.labelNode);this.setSelected(this.selected)},setLabel:function(a){this.labelNode.innerHTML=a},resizeTo:function(d,a){dojo.html.setMarginBox(this.domNode,{width:d,height:a});var c=[{domNode:this.labelNode,layoutAlign:"top"},{domNode:this.containerNode,layoutAlign:"client"}];dojo.widget.html.layout(this.domNode,c);var b=dojo.html.getContentBox(this.containerNode);this.children[0].resizeTo(b.width,b.height)},getLabelHeight:function(){return dojo.html.getMarginBox(this.labelNode).height},onLabelClick:function(){this.parent.selectChild(this)},setSelected:function(a){this.selected=a;(a?dojo.html.addClass:dojo.html.removeClass)(this.domNode,this["class"]+"-selected");var b=this.children[0];if(b){if(a){if(!b.isShowing()){b.show()}else{b.onShow()}}else{b.onHide()}}}});dojo.lang.extend(dojo.widget.Widget,{open:false});dojo.provide("wc.widget.WCAccordionContainer");dojo.provide("wc.widget.WCAccordionPane");dojo.provide("wc.widget.WCAccordionDropTarget");dojo.provide("wc.widget.TitlePaneTemplate");dojo.provide("wc.widget.ContentPaneTemplate");dojo.widget.defineWidget("wc.widget.WCAccordionContainer",dojo.widget.AccordionContainer,{widgetType:"WCAccordionContainer",isContainer:true,labelNodeClass:"",labelNodeClass_Expanded:"",labelNodeClass_Collapsed:"",containerNodeClass:"",containerNodeClass_Collapsed:"",containerNodeClass_Expanded:"",bottomNodeClass:"",bottomNodeClass_Expanded:"",bottomNodeClass_Collapsed:"",_addChild:function(g){var h=false;var o=null;var l=null;if(g.widgetType!="AccordionPane"&&g.widgetType!="WCAccordionPane"){var p=g.getChildrenOfType(dojo.widget.HtmlWidget);dojo.lang.forEach(p,function(r){if(r.widgetType=="TitlePaneTemplate"){g.label=r.domNode.innerHTML;dojo.dom.removeNode(r.domNode)}if(r.widgetType=="ContentPaneTemplate"){o=r;o.setSelected(g.selected);h=true}});var b=g.labelNodeClass;var m=g.labelNodeClass_Expanded;var n=g.labelNodeClass_Collapsed;var k=g.bottomNodeClass;var f=g.bottomNodeClass_Expanded;var a=g.bottomNodeClass_Collapsed;var q=g.containerNodeClass;var d=g.containerNodeClass_Expanded;var j=g.containerNodeClass_Collapsed;if(b==""){b=this.labelNodeClass}if(m==""){m=this.labelNodeClass_Expanded}if(n==""){n=this.labelNodeClass_Collapsed}if(k==""){k=this.bottomNodeClass}if(f==""){f=this.bottomNodeClass_Expanded}if(a==""){a=this.bottomNodeClass_Collapsed}if(q==""){q=this.containerNodeClass}if(d==""){d=this.containerNodeClass_Expanded}if(j==""){j=this.containerNodeClass_Collapsed}var c=dojo.widget.createWidget("WCAccordionPane",{label:g.label,selected:g.selected,allowCollapse:this.allowCollapse,acceptedTypes:g.acceptedTypes,dropEventHandler:g.dropEventHandler,labelNodeClass:b,labelNodeClass_Expanded:m,labelNodeClass_Collapsed:n,containerNodeClass:q,bottomNodeClass:k,bottomNodeClass_Expanded:f,bottomNodeClass_Collapsed:a});c.addChild(g);this.addWidgetAsDirectChild(c);this.registerChild(c,this.children.length);l=c}else{if(g.widgetType=="WCAccordionPane"){g.labelNodeClass=this.labelNodeClass;g.labelNodeClass_Expanded=this.labelNodeClass_Expanded;g.labelNodeClass_Collapsed=this.labelNodeClass_Collapsed;g.bottomNodeClass=this.bottomNodeClass;g.bottomNodeClass_Expanded=this.bottomNodeClass_Expanded;g.bottomNodeClass_Collapsed=this.bottomNodeClass_Collapsed}this.addWidgetAsDirectChild(g);this.registerChild(g,this.children.length);l=g}if(h){l.contentPaneTemplateNode=o}return l},_setSizes:function(){var c=0;var a=0;dojo.lang.forEach(this.children,function(f,d){c+=f.getLabelHeight();if(f.selected){a=d}});var b=dojo.html.getContentBox(this.domNode);dojo.lang.forEach(this.children,function(j,g){var h=j.getLabelHeight();var f=b.height-c+h;var d=(g==a)?f:h;j.resizeTo(b.width,f);dojo.html.setMarginBox(j.domNode,{width:b.width,height:d});j.domNode.style.zIndex=g+1})},selectChild:function(b){var f=dojo.html.getInnerHeight(this.domNode.parentNode);dojo.lang.forEach(this.children,function(g){g.setSelected(g==b);f=f-g.getLabelHeight()});var a=[];var d=0;var c=0;dojo.lang.forEach(this.children,function(h,g){this.animationCallback=function(){};if(h!=null&&h.contentPaneTemplateNode!=null){if(h.selected){this.animationCallback=function(){h.contentPaneTemplateNode.onShow()}}h.contentPaneTemplateNode.onHide()}if(h.selected){d=f+h.getLabelHeight();c=dojo.html.getContentBox(h.domNode).height}else{d=h.getLabelHeight();c=dojo.html.getContentBox(h.domNode).height}if(d!=c){a.push(dojo.lfx.propertyAnimation(h.domNode,{height:{start:c,end:d}},this.duration,null,{onEnd:this.animationCallback}))}},this);dojo.lfx.combine(a).play()}});dojo.widget.defineWidget("wc.widget.WCAccordionPane",dojo.widget.AccordionPane,{widgetType:"WCAccordionPane",labelNodeClass_Expanded:"",labelNodeClass_Collapsed:"",containerNodeClass:"",containerNodeClass_Collapsed:"",containerNodeClass_Expanded:"",bottomNodeClass:"",bottomNodeClass_Expanded:"",bottomNodeClass_Collapsed:"",bottomNode:null,templatePath:dojo.uri.dojoUri("wc/widget/templates/WCAccordionPane.html"),dropTarget:null,acceptedTypes:[],dropEventHandler:function(a){},contentPaneTemplateNode:null,fillInTemplate:function(){dojo.event.kwConnect({type:"after",srcObj:this,srcFunc:"setSelected",targetObj:this,targetFunc:"setStyles"});if(this.acceptedTypes.length>0&&this.dropEventHandler!==null){this.dropTarget=new wc.widget.WCAccordionDropTarget(this.domNode,this.acceptedTypes);this.dropTarget.setParentAccordion(this);this.onDropEventHandler=this.dropEventHandler}dojo.html.addClass(this.labelNode,this.labelNodeClass);dojo.html.addClass(this.containerNode,this.containerNodeClass);dojo.html.addClass(this.bottomNode,this.bottomNodeClass);wc.widget.WCAccordionPane.superclass.fillInTemplate.call(this)},postCreate:function(){if(this.label){this.labelNode.innerHTML=this.label}},getLabelHeight:function(){if(dojo.html.isVisible(this.bottomNode)){return dojo.html.getMarginBox(this.labelNode).height+dojo.html.getMarginBox(this.bottomNode).height}else{return dojo.html.getMarginBox(this.labelNode).height}},onDropEventHandler:function(a){},setStyles:function(a){this.selected=a;dojo.html.addClass(this.bottomNode,this.bottomNodeClass);dojo.html.addClass(this.labelNode,this.labelNodeClass);if(this.selected){if(this.labelNodeClass_Expanded!=""){dojo.html.removeClass(this.labelNode,this.labelNodeClass);dojo.html.removeClass(this.labelNode,this.labelNodeClass_Collapsed);dojo.html.addClass(this.labelNode,this.labelNodeClass_Expanded)}if(this.bottomNodeClass_Expanded!=""){dojo.html.removeClass(this.bottomNode,this.bottomNodeClass);dojo.html.removeClass(this.bottomNode,this.bottomNodeClass_Collapsed);dojo.html.addClass(this.bottomNode,this.bottomNodeClass_Expanded)}if(this.containerNodeClass_Expanded!=""){dojo.html.removeClass(this.bottomNode,this.containerNodeClass);dojo.html.removeClass(this.bottomNode,this.containerNodeClass_Collapsed);dojo.html.addClass(this.bottomNode,this.containerNodeClass_Expanded)}}else{if(this.labelNodeClass_Collapsed!=""){dojo.html.removeClass(this.labelNode,this.labelNodeClass);dojo.html.removeClass(this.labelNode,this.labelNodeClass_Expanded);dojo.html.addClass(this.labelNode,this.labelNodeClass_Collapsed)}if(this.bottomNodeClass_Collapsed!=""){dojo.html.removeClass(this.bottomNode,this.bottomNodeClass);dojo.html.removeClass(this.bottomNode,this.bottomNodeClass_Expanded);dojo.html.addClass(this.bottomNode,this.bottomNodeClass_Collapsed)}if(this.containerNodeClass_Collapsed!=""){dojo.html.removeClass(this.bottomNode,this.containerNodeClass);dojo.html.removeClass(this.bottomNode,this.containerNodeClass_Expanded);dojo.html.addClass(this.bottomNode,this.containerNodeClass_Collapsed)}}}});dojo.widget.defineWidget("wc.widget.WCAccordionDropTarget",dojo.dnd.HtmlDropTarget,{parentAccordionPane:null,setParentAccordion:function(a){this.parentAccordionPane=a},onDrop:function(a){this.onDragOut(a);this.parentAccordionPane.onDropEventHandler(a);this.onDragOut(a);return true},onDragOver:function(d){if(this.accepts(d.dragObjects)){if(!this.parentAccordionPane.selected){this.parentAccordionPane.onLabelClick()}}this.childBoxes=[];for(var b=0,g;b<this.domNode.childNodes.length;b++){g=this.domNode.childNodes[b];if(g.nodeType!=dojo.html.ELEMENT_NODE){continue}var f=dojo.html.getAbsolutePosition(g,true);var a=dojo.html.getBorderBox(g);this.childBoxes.push({top:f.y,bottom:f.y+a.height,left:f.x,right:f.x+a.width,height:a.height,width:a.width,node:g})}var c=this.parentAccordionPane.containerNode.childNodes[this.parentAccordionPane.containerNode.childNodes.length-1];this.scrollIntoView(c);return true},scrollIntoView:function(c){var a=c.parentNode;var b=a.scrollTop+dojo.html.getInnerHeight(a);var d=c.offsetTop+dojo.html.getOuterHeight(c);if(b<d){a.scrollTop+=(d-b)}else{if(a.scrollTop>c.offsetTop){a.scrollTop-=(a.scrollTop-c.offsetTop)}}}});dojo.widget.defineWidget("wc.widget.TitlePaneTemplate",dojo.widget.HtmlWidget,{widgetType:"TitlePaneTemplate",isContainer:true});dojo.widget.defineWidget("wc.widget.ContentPaneTemplate",dojo.widget.HtmlWidget,{widgetType:"ContentPaneTemplate",isContainer:true,selected:false,setSelected:function(a){this.selected=a;if(this.selected){this.onShow()}},onShow:function(){dojo.html.setStyle(this.domNode,"overflow-y","auto");dojo.html.setStyle(this.domNode,"diaplay","block")},onHide:function(){dojo.html.setStyle(this.domNode,"overflow","hidden");dojo.html.setStyle(this.domNode,"diaplay","none")}});dojo.lang.extend(dojo.widget.Widget,{label:"",open:false,allowCollapse:false,acceptedTypes:[],labelNodeClass:"",labelNodeClass_Expanded:"",labelNodeClass_Collapsed:"",containerNodeClass:"",containerNodeClass_Collapsed:"",containerNodeClass_Expanded:"",bottomNodeClass:"",bottomNodeClass_Expanded:"",bottomNodeClass_Collapsed:"",dropEventHandler:function(a){alert("dropEventHandler is not defined !!!")}});dojo.provide("wc.widget.WCHtmlDropTarget");dojo.widget.defineWidget("wc.widget.WCHtmlDropTarget",dojo.dnd.HtmlDropTarget,{insert:function(f,c,a){var d=f.dragObject.domNode;var b=d.cloneNode(true);new dojo.dnd.HtmlDragSource(b,"*");if(a=="before"){return dojo.html.insertBefore(b,c)}else{if(a=="after"){return dojo.html.insertAfter(b,c)}else{if(a=="append"){c.appendChild(b);return true}}}return false}});