(function(){var sMap=null;if((sMap||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var scopeDef="",scopePrefix="",scopeSuffix="",scopeMap={},scopeMapRev={};sMap=sMap||djConfig.scopeMap;for(var i=0;i<sMap.length;i++){var newScope=sMap[i];scopeDef+="var "+newScope[0]+" = {}; "+newScope[1]+" = "+newScope[0]+";"+newScope[1]+"._scopeName = '"+newScope[1]+"';";scopePrefix+=(i==0?"":",")+newScope[0];scopeSuffix+=(i==0?"":",")+newScope[1];scopeMap[newScope[0]]=newScope[1];scopeMapRev[newScope[1]]=newScope[0]}eval(scopeDef+"dojo._scopeArgs = ["+scopeSuffix+"];");dojo._scopePrefixArgs=scopePrefix;dojo._scopePrefix="(function("+scopePrefix+"){";dojo._scopeSuffix="})("+scopeSuffix+")";dojo._scopeMap=scopeMap;dojo._scopeMapRev=scopeMapRev}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]()}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var tcn=tn+"";console[tcn]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(tcn+":");console.log(a.join(" "))}:function(){};console[tcn]._fake=true})()}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}}}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"}}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"}}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox]}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var opt in djConfig){d.config[opt]=djConfig[opt]}}dojo.locale=d.config.locale;var rev="$Rev: 20973 $".match(/\d+/);dojo.version={major:1,minor:5,patch:0,flag:"",revision:rev?+rev[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")"}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString())}var extraNames,extraLen,empty={};for(var i in {toString:1}){extraNames=[];break}dojo._extraNames=extraNames=extraNames||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];extraLen=extraNames.length;dojo._mixin=function(target,source){var name,s,i;for(name in source){s=source[name];if(!(name in target)||(target[name]!==s&&(!(name in empty)||empty[name]!==s))){target[name]=s}}if(extraLen&&source){for(i=0;i<extraLen;++i){name=extraNames[i];s=source[name];if(!(name in target)||(target[name]!==s&&(!(name in empty)||empty[name]!==s))){target[name]=s}}}return target};dojo.mixin=function(obj,props){if(!obj){obj={}}for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i])}return obj};dojo._getProp=function(parts,create,context){var obj=context||d.global;for(var i=0,p;obj&&(p=parts[i]);i++){if(i==0&&d._scopeMap[p]){p=d._scopeMap[p]}obj=(p in obj?obj[p]:(create?obj[p]={}:undefined))}return obj};dojo.setObject=function(name,value,context){var parts=name.split("."),p=parts.pop(),obj=d._getProp(parts,true,context);return obj&&p?(obj[p]=value):undefined};dojo.getObject=function(name,create,context){return d._getProp(name.split("."),create,context)};dojo.exists=function(name,obj){return !!d.getObject(name,false,obj)};dojo["eval"]=function(scriptFragment){return d.global.eval?d.global.eval(scriptFragment):eval(scriptFragment)};d.deprecated=d.experimental=function(){}})();(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(module){var mp=d._modulePrefixes;return !!(mp[module]&&mp[module].value)},_getModulePrefix:function(module){var mp=d._modulePrefixes;if(d._moduleHasPrefix(module)){return mp[module].value}return module},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(relpath,module,cb){var uri=((relpath.charAt(0)=="/"||relpath.match(/^\w+:/))?"":d.baseUrl)+relpath;try{return !module?d._loadUri(uri,cb):d._loadUriAndCheck(uri,module,cb)}catch(e){console.error(e);return false}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true}d._inFlightCount++;var contents=d._getText(uri,true);if(contents){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){contents="("+contents+")"}else{contents=d._scopePrefix+contents+d._scopeSuffix}if(!d.isIE){contents+="\r\n//@ sourceURL="+uri}var value=d["eval"](contents);if(cb){cb(value)}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded()}},0)}return !!contents};dojo._loadUriAndCheck=function(uri,moduleName,cb){var ok=false;try{ok=d._loadUri(uri,cb)}catch(e){console.error("failed loading "+uri+" with error: "+e)}return !!(ok&&d._loadedModules[moduleName])};dojo.loaded=function(){d._loadNotifying=true;d._postLoad=true;var mll=d._loaders;d._loaders=[];for(var x=0;x<mll.length;x++){mll[x]()}d._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded()}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())()}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj)}else{if(fn){var func=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){func.call(obj)})}}};dojo.ready=dojo.addOnLoad=function(obj,functionName){d._onto(d._loaders,obj,functionName);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded()}};var dca=d.config.addOnLoad;if(dca){d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca)}dojo._modulesLoaded=function(){if(d._postLoad){return}if(d._inFlightCount>0){console.warn("files still in flight!");return}d._callLoaded()};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded()}:d._scopeName+".loaded();",0)}else{d.loaded()}};dojo._getModuleSymbols=function(modulename){var syms=modulename.split(".");for(var i=syms.length;i>0;i--){var parentModule=syms.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(parentModule)){syms[0]="../"+syms[0]}else{var parentModulePath=d._getModulePrefix(parentModule);if(parentModulePath!=parentModule){syms.splice(0,i,parentModulePath);break}}}return syms};dojo._global_omit_module_check=false;dojo.loadInit=function(init){init()};dojo._loadModule=dojo.require=function(moduleName,omitModuleCheck){omitModuleCheck=d._global_omit_module_check||omitModuleCheck;var module=d._loadedModules[moduleName];if(module){return module}var relpath=d._getModuleSymbols(moduleName).join("/")+".js";var modArg=!omitModuleCheck?moduleName:null;var ok=d._loadPath(relpath,modArg);if(!ok&&!omitModuleCheck){throw new Error("Could not load '"+moduleName+"'; last tried '"+relpath+"'")}if(!omitModuleCheck&&!d._isXDomain){module=d._loadedModules[moduleName];if(!module){throw new Error("symbol '"+moduleName+"' is not defined after loading '"+relpath+"'")}}return module};dojo.provide=function(resourceName){resourceName=resourceName+"";return(d._loadedModules[resourceName]=d.getObject(resourceName,true))};dojo.platformRequire=function(modMap){var common=modMap.common||[];var result=common.concat(modMap[d._name]||modMap["default"]||[]);for(var x=0;x<result.length;x++){var curr=result[x];if(curr.constructor==Array){d._loadModule.apply(d,curr)}else{d._loadModule(curr)}}};dojo.requireIf=function(condition,resourceName){if(condition===true){var args=[];for(var i=1;i<arguments.length;i++){args.push(arguments[i])}d.require.apply(d,args)}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(module,prefix){d._modulePrefixes[module]={name:module,value:prefix}};dojo.requireLocalization=function(moduleName,bundleName,locale,availableFlatLocales){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments)};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null,_a=arguments,uri=[_a[0]];for(var i=1;i<_a.length;i++){if(!_a[i]){continue}var relobj=new d._Url(_a[i]+""),uriobj=new d._Url(uri[0]+"");if(relobj.path==""&&!relobj.scheme&&!relobj.authority&&!relobj.query){if(relobj.fragment!=n){uriobj.fragment=relobj.fragment}relobj=uriobj}else{if(!relobj.scheme){relobj.scheme=uriobj.scheme;if(!relobj.authority){relobj.authority=uriobj.authority;if(relobj.path.charAt(0)!="/"){var path=uriobj.path.substring(0,uriobj.path.lastIndexOf("/")+1)+relobj.path;var segs=path.split("/");for(var j=0;j<segs.length;j++){if(segs[j]=="."){if(j==segs.length-1){segs[j]=""}else{segs.splice(j,1);j--}}else{if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){if(j==(segs.length-1)){segs.splice(j,1);segs[j-1]=""}else{segs.splice(j-1,2);j-=2}}}}relobj.path=segs.join("/")}}}}uri=[];if(relobj.scheme){uri.push(relobj.scheme,":")}if(relobj.authority){uri.push("//",relobj.authority)}uri.push(relobj.path);if(relobj.query){uri.push("?",relobj.query)}if(relobj.fragment){uri.push("#",relobj.fragment)}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n}};dojo._Url.prototype.toString=function(){return this.uri};dojo.moduleUrl=function(module,url){var loc=d._getModuleSymbols(module).join("/");if(!loc){return null}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/"}var colonIndex=loc.indexOf(":");if(loc.charAt(0)!="/"&&(colonIndex==-1||colonIndex>loc.indexOf("/"))){loc=d.baseUrl+loc}return new d._Url(loc,url)}})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var scripts=document.getElementsByTagName("script");var rePkg=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<scripts.length;i++){var src=scripts[i].getAttribute("src");if(!src){continue}var m=src.match(rePkg);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index)}var cfg=scripts[i].getAttribute("djConfig");if(cfg){var cfgo=eval("({ "+cfg+" })");for(var x in cfgo){dojo.config[x]=cfgo[x]}}break}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")>=0){d.isOpera=tv}if(dua.indexOf("AdobeAIR")>=0){d.isAIR=1}d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")>=0;var index=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(index&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(index+7))<=419.3){d.isSafari=2}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var mode=document.documentMode;if(mode&&mode!=5&&Math.floor(d.isIE)!=mode){d.isIE=mode}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var http,last_e;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{http=new XMLHttpRequest()}catch(e){}}if(!http){for(var i=0;i<3;++i){var progid=d._XMLHTTP_PROGIDS[i];try{http=new ActiveXObject(progid)}catch(e){last_e=e}if(http){d._XMLHTTP_PROGIDS=[progid];break}}}if(!http){throw new Error("XMLHTTP not available: "+last_e)}return http};d._isDocumentOk=function(http){var stat=http.status||0,lp=location.protocol;return(stat>=200&&stat<300)||stat==304||stat==1223||(!stat&&(lp=="file:"||lp=="chrome:"||lp=="app:"))};var owloc=window.location+"";var base=document.getElementsByTagName("base");var hasBase=(base&&base.length>0);d._getText=function(uri,fail_ok){var http=d._xhrObj();if(!hasBase&&dojo._Url){uri=(new dojo._Url(owloc,uri)).toString()}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"")}http.open("GET",uri,false);try{http.send(null);if(!d._isDocumentOk(http)){var err=Error("Unable to load "+uri+" status:"+http.status);err.status=http.status;err.responseText=http.responseText;throw err}}catch(e){if(fail_ok){return null}throw e}return http.responseText};var _w=window;var _handleNodeEvent=function(evtName,fp){var _a=_w.attachEvent||_w.addEventListener;evtName=_w.attachEvent?evtName:evtName.substring(2);_a(evtName,function(){fp.apply(_w,arguments)},false)};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())()}};var _onWindowUnloadAttached=0;d.addOnWindowUnload=function(obj,functionName){d._onto(d._windowUnloaders,obj,functionName);if(!_onWindowUnloadAttached){_onWindowUnloadAttached=1;_handleNodeEvent("onunload",d.windowUnloaded)}};var _onUnloadAttached=0;d.addOnUnload=function(obj,functionName){d._onto(d._unloaders,obj,functionName);if(!_onUnloadAttached){_onUnloadAttached=1;_handleNodeEvent("onbeforeunload",dojo.unloaded)}}})();dojo._initFired=false;dojo._loadInit=function(e){if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit)}if(dojo._inFlightCount==0){dojo._modulesLoaded()}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false)}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit)}}}if(dojo.isIE){if(!dojo.config.afterOnLoad&&!dojo.config.skipIeDomLoaded){document.write('<script defer src="//:" onreadystatechange="if(this.readyState==\'complete\'){'+dojo._scopeName+'._loadInit();}"><\/script>')}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");var vmlElems=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=vmlElems.length}for(;i<l;++i){s.addRule("v\\:"+vmlElems[i],"behavior:url(#default#VML); display:inline-block")}}catch(e){}}}(function(){var mp=dojo.config.modulePaths;if(mp){for(var param in mp){dojo.registerModulePath(param,mp[param])}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug")}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug")}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");(function(){var d=dojo,opts=Object.prototype.toString;dojo.isString=function(it){return(typeof it=="string"||it instanceof String)};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array")};dojo.isFunction=function(it){return opts.call(it)==="[object Function]"};dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it))};dojo.isArrayLike=function(it){return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length))};dojo.isAlien=function(it){return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it))};dojo.extend=function(constructor,props){for(var i=1,l=arguments.length;i<l;i++){d._mixin(constructor.prototype,arguments[i])}return constructor};dojo._hitchArgs=function(scope,method){var pre=d._toArray(arguments,2);var named=d.isString(method);return function(){var args=d._toArray(arguments);var f=named?(scope||d.global)[method]:method;return f&&f.apply(scope||this,pre.concat(args))}};dojo.hitch=function(scope,method){if(arguments.length>2){return d._hitchArgs.apply(d,arguments)}if(!method){method=scope;scope=null}if(d.isString(method)){scope=scope||d.global;if(!scope[method]){throw (['dojo.hitch: scope["',method,'"] is null (scope="',scope,'")'].join(""))}return function(){return scope[method].apply(scope,arguments||[])}}return !scope?method:function(){return method.apply(scope,arguments||[])}};dojo.delegate=dojo._delegate=(function(){function TMP(){}return function(obj,props){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(props){d._mixin(tmp,props)}return tmp}})();var efficient=function(obj,offset,startWith){return(startWith||[]).concat(Array.prototype.slice.call(obj,offset||0))};var slow=function(obj,offset,startWith){var arr=startWith||[];for(var x=offset||0;x<obj.length;x++){arr.push(obj[x])}return arr};dojo._toArray=d.isIE?function(obj){return((obj.item)?slow:efficient).apply(this,arguments)}:efficient;dojo.partial=function(method){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)))};var extraNames=d._extraNames,extraLen=extraNames.length,empty={};dojo.clone=function(o){if(!o||typeof o!="object"||d.isFunction(o)){return o}if(o.nodeType&&o.cloneNode){return o.cloneNode(true)}if(o instanceof Date){return new Date(o.getTime())}var r,i,l,s,name;if(d.isArray(o)){r=[];for(i=0,l=o.length;i<l;++i){if(i in o){r.push(d.clone(o[i]))}}}else{r=o.constructor?new o.constructor():{}}for(name in o){s=o[name];if(!(name in r)||(r[name]!==s&&(!(name in empty)||empty[name]!==s))){r[name]=d.clone(s)}}if(extraLen){for(i=0;i<extraLen;++i){name=extraNames[i];s=o[name];if(!(name in r)||(r[name]!==s&&(!(name in empty)||empty[name]!==s))){r[name]=s}}}return r};dojo.trim=String.prototype.trim?function(str){return str.trim()}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var _pattern=/\{([^\}]+)\}/g;dojo.replace=function(tmpl,map,pattern){return tmpl.replace(pattern||_pattern,d.isFunction(map)?map:function(_,k){return d.getObject(k,false,map)})}})()}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _getParts=function(arr,obj,cb){return[(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb]};var everyOrSome=function(every,arr,callback,thisObject){var _p=_getParts(arr,thisObject,callback);arr=_p[0];for(var i=0,l=arr.length;i<l;++i){var result=!!_p[2].call(_p[1],arr[i],i,arr);if(every^result){return result}}return every};dojo.mixin(dojo,{indexOf:function(array,value,fromIndex,findLast){var step=1,end=array.length||0,i=0;if(findLast){i=end-1;step=end=-1}if(fromIndex!=undefined){i=fromIndex}if((findLast&&i>end)||i<end){for(;i!=end;i+=step){if(array[i]==value){return i}}}return -1},lastIndexOf:function(array,value,fromIndex){return dojo.indexOf(array,value,fromIndex,true)},forEach:function(arr,callback,thisObject){if(!arr||!arr.length){return}var _p=_getParts(arr,thisObject,callback);arr=_p[0];for(var i=0,l=arr.length;i<l;++i){_p[2].call(_p[1],arr[i],i,arr)}},every:function(arr,callback,thisObject){return everyOrSome(true,arr,callback,thisObject)},some:function(arr,callback,thisObject){return everyOrSome(false,arr,callback,thisObject)},map:function(arr,callback,thisObject){var _p=_getParts(arr,thisObject,callback);arr=_p[0];var outArr=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){outArr.push(_p[2].call(_p[1],arr[i],i,arr))}return outArr},filter:function(arr,callback,thisObject){var _p=_getParts(arr,thisObject,callback);arr=_p[0];var outArr=[];for(var i=0,l=arr.length;i<l;++i){if(_p[2].call(_p[1],arr[i],i,arr)){outArr.push(arr[i])}}return outArr}})})()}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");(function(){var d=dojo,mix=d._mixin,op=Object.prototype,opts=op.toString,xtor=new Function,counter=0,cname="constructor";function err(msg){throw new Error("declare: "+msg)}function c3mro(bases){var result=[],roots=[{cls:0,refs:[]}],nameMap={},clsCount=1,l=bases.length,i=0,j,lin,base,top,proto,rec,name,refs;for(;i<l;++i){base=bases[i];if(!base){err("mixin #"+i+" is null")}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){proto=lin[j].prototype;if(!proto.hasOwnProperty("declaredClass")){proto.declaredClass="uniqName_"+(counter++)}name=proto.declaredClass;if(!nameMap.hasOwnProperty(name)){nameMap[name]={count:0,refs:[],cls:lin[j]};++clsCount}rec=nameMap[name];if(top&&top!==rec){rec.refs.push(top);++top.count}top=rec}++top.count;roots[0].refs.push(top)}while(roots.length){top=roots.pop();result.push(top.cls);--clsCount;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break}result.push(top.cls);--clsCount}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){roots.push(top)}}}}if(clsCount){err("can't build consistent linearization")}base=bases[0];result[0]=base?base._meta&&base===result[result.length-base._meta.bases.length]?base._meta.bases.length:1:0;return result}function inherited(args,a,f){var name,chains,bases,caller,meta,base,proto,opf,pos,cache=this._inherited=this._inherited||{};if(typeof args=="string"){name=args;args=a;a=f}f=0;caller=args.callee;name=name||caller.nom;if(!name){err("can't deduce a name to call inherited()")}meta=this.constructor._meta;bases=meta.bases;pos=cache.p;if(name!=cname){if(cache.c!==caller){pos=0;base=bases[0];meta=base._meta;if(meta.hidden[name]!==caller){chains=meta.chains;if(chains&&typeof chains[name]=="string"){err("calling chained method with inherited: "+name)}do{meta=base._meta;proto=base.prototype;if(meta&&(proto[name]===caller&&proto.hasOwnProperty(name)||meta.hidden[name]===caller)){break}}while(base=bases[++pos]);pos=base?pos:-1}}base=bases[++pos];if(base){proto=base.prototype;if(base._meta&&proto.hasOwnProperty(name)){f=proto[name]}else{opf=op[name];do{proto=base.prototype;f=proto[name];if(f&&(base._meta?proto.hasOwnProperty(name):f!==opf)){break}}while(base=bases[++pos])}}f=base&&f||op[name]}else{if(cache.c!==caller){pos=0;meta=bases[0]._meta;if(meta&&meta.ctor!==caller){chains=meta.chains;if(!chains||chains.constructor!=="manual"){err("calling chained constructor with inherited")}while(base=bases[++pos]){meta=base._meta;if(meta&&meta.ctor===caller){break}}pos=base?pos:-1}}while(base=bases[++pos]){meta=base._meta;f=meta?meta.ctor:base;if(f){break}}f=base&&f}cache.c=f;cache.p=pos;if(f){return a===true?f:f.apply(this,a||args)}}function getInherited(name,args){if(typeof name=="string"){return this.inherited(name,args,true)}return this.inherited(name,true)}function isInstanceOf(cls){var bases=this.constructor._meta.bases;for(var i=0,l=bases.length;i<l;++i){if(bases[i]===cls){return true}}return this instanceof cls}function safeMixin(target,source){var name,t,i=0,l=d._extraNames.length;for(name in source){t=source[name];if((t!==op[name]||!(name in op))&&name!=cname){if(opts.call(t)=="[object Function]"){t.nom=name}target[name]=t}}for(;i<l;++i){name=d._extraNames[i];t=source[name];if((t!==op[name]||!(name in op))&&name!=cname){if(opts.call(t)=="[object Function]"){t.nom=name}target[name]=t}}return target}function extend(source){safeMixin(this.prototype,source);return this}function chainedConstructor(bases,ctorSpecial){return function(){var a=arguments,args=a,a0=a[0],f,i,m,l=bases.length,preArgs;if(ctorSpecial&&(a0&&a0.preamble||this.preamble)){preArgs=new Array(bases.length);preArgs[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a}}f=bases[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a}if(++i==l){break}preArgs[i]=a}}for(i=l-1;i>=0;--i){f=bases[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,preArgs?preArgs[i]:a)}}f=this.postscript;if(f){f.apply(this,args)}}}function singleConstructor(ctor,ctorSpecial){return function(){var a=arguments,t=a,a0=a[0],f;if(ctorSpecial){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t}}f=this.preamble;if(f){f.apply(this,t)}}if(ctor){ctor.apply(this,a)}f=this.postscript;if(f){f.apply(this,a)}}}function simpleConstructor(bases){return function(){var a=arguments,i=0,f;for(;f=bases[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break}}f=this.postscript;if(f){f.apply(this,a)}}}function chain(name,bases,reversed){return function(){var b,m,f,i=0,step=1;if(reversed){i=bases.length-1;step=-1}for(;b=bases[i];i+=step){m=b._meta;f=(m?m.hidden:b.prototype)[name];if(f){f.apply(this,arguments)}}}}d.declare=function(className,superclass,props){var proto,i,t,ctor,name,bases,chains,mixins=1,parents=superclass;if(typeof className!="string"){props=superclass;superclass=className;className=""}props=props||{};if(opts.call(superclass)=="[object Array]"){bases=c3mro(superclass);t=bases[0];mixins=bases.length-t;superclass=bases[mixins]}else{bases=[0];if(superclass){t=superclass._meta;bases=bases.concat(t?t.bases:superclass)}}if(superclass){for(i=mixins-1;;--i){xtor.prototype=superclass.prototype;proto=new xtor;if(!i){break}t=bases[i];mix(proto,t._meta?t._meta.hidden:t.prototype);ctor=new Function;ctor.superclass=superclass;ctor.prototype=proto;superclass=proto.constructor=ctor}}else{proto={}}safeMixin(proto,props);t=props.constructor;if(t!==op.constructor){t.nom=cname;proto.constructor=t}xtor.prototype=0;for(i=mixins-1;i;--i){t=bases[i]._meta;if(t&&t.chains){chains=mix(chains||{},t.chains)}}if(proto["-chains-"]){chains=mix(chains||{},proto["-chains-"])}t=!chains||!chains.hasOwnProperty(cname);bases[0]=ctor=(chains&&chains.constructor==="manual")?simpleConstructor(bases):(bases.length==1?singleConstructor(props.constructor,t):chainedConstructor(bases,t));ctor._meta={bases:bases,hidden:props,chains:chains,parents:parents,ctor:props.constructor};ctor.superclass=superclass&&superclass.prototype;ctor.extend=extend;ctor.prototype=proto;proto.constructor=ctor;proto.getInherited=getInherited;proto.inherited=inherited;proto.isInstanceOf=isInstanceOf;if(className){proto.declaredClass=className;d.setObject(className,ctor)}if(chains){for(name in chains){if(proto[name]&&typeof chains[name]=="string"&&name!=cname){t=proto[name]=chain(name,bases,chains[name]==="after");t.nom=name}}}return ctor};d.safeMixin=safeMixin})()}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var lls;lls=[].concat(ls);for(var i in lls){if(!(i in ap)){lls[i].apply(this,arguments)}}return r}},add:function(source,method,listener){source=source||dojo.global;var f=source[method];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=source[method]=d}return f._listeners.push(listener)},remove:function(source,method,handle){var f=(source||dojo.global)[method];if(f&&f._listeners&&handle--){delete f._listeners[handle]}}};dojo.connect=function(obj,event,context,method,dontFix){var a=arguments,args=[],i=0;args.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i])}return dojo._connect.apply(this,args)};dojo._connect=function(obj,event,context,method){var l=dojo._listener,h=l.add(obj,event,dojo.hitch(context,method));return[obj,event,h,l]};dojo.disconnect=function(handle){if(handle&&handle[0]!==undefined){dojo._disconnect.apply(this,handle);delete handle[0]}};dojo._disconnect=function(obj,event,handle,listener){listener.remove(obj,event,handle)};dojo._topics={};dojo.subscribe=function(topic,context,method){return[topic,dojo._listener.add(dojo._topics,topic,dojo.hitch(context,method))]};dojo.unsubscribe=function(handle){if(handle){dojo._listener.remove(dojo._topics,handle[0],handle[1])}};dojo.publish=function(topic,args){var f=dojo._topics[topic];if(f){f.apply(this,args||[])}};dojo.connectPublisher=function(topic,obj,event){var pf=function(){dojo.publish(topic,arguments)};return(event)?dojo.connect(obj,event,pf):dojo.connect(obj,pf)}}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(canceller){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=canceller;this.silentlyCancelled=false;this.isFiring=false};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++}})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this)}else{this.silentlyCancelled=true}if(this.fired==-1){if(!(err instanceof Error)){var res=err;var msg="Deferred Cancelled";if(err&&err.toString){msg+=": "+err.toString()}err=new Error(msg);err.dojoType="cancel";err.cancelResult=res}this.errback(err)}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel()}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire()},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!")}this.silentlyCancelled=false;return}},callback:function(res){this._check();this._resback(res)},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res)}this._resback(res)},addBoth:function(cb,cbfn){var enclosed=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(enclosed,enclosed)},addCallback:function(cb,cbfn){return this.addCallbacks(dojo.hitch.apply(dojo,arguments))},addErrback:function(cb,cbfn){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments))},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0&&!this.isFiring){this._fire()}return this},_fire:function(){this.isFiring=true;var chain=this.chain;var fired=this.fired;var res=this.results[fired];var self=this;var cb=null;while((chain.length>0)&&(this.paused==0)){var f=chain.shift()[fired];if(!f){continue}var func=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret}fired=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire()}};this.paused++}};if(dojo.config.debugAtAllCosts){func.call(this)}else{try{func.call(this)}catch(err){fired=1;res=err}}}this.fired=fired;this.results[fired]=res;this.isFiring=false;if((cb)&&(this.paused)){res.addBoth(cb)}}})}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")")};dojo._escapeString=function(str){return('"'+str.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,prettyPrint,_indentStr){if(it===undefined){return"undefined"}var objtype=typeof it;if(objtype=="number"||objtype=="boolean"){return it+""}if(it===null){return"null"}if(dojo.isString(it)){return dojo._escapeString(it)}var recurse=arguments.callee;var newObj;_indentStr=_indentStr||"";var nextIndent=prettyPrint?_indentStr+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){newObj=tf.call(it);if(it!==newObj){return recurse(newObj,prettyPrint,nextIndent)}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes")}var sep=prettyPrint?" ":"";var newLine=prettyPrint?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=recurse(obj,prettyPrint,nextIndent);if(typeof val!="string"){val="undefined"}return newLine+nextIndent+val});return"["+res.join(","+sep)+newLine+_indentStr+"]"}if(objtype=="function"){return null}var output=[],key;for(key in it){var keyStr,val;if(typeof key=="number"){keyStr='"'+key+'"'}else{if(typeof key=="string"){keyStr=dojo._escapeString(key)}else{continue}}val=recurse(it[key],prettyPrint,nextIndent);if(typeof val!="string"){continue}output.push(newLine+nextIndent+keyStr+":"+sep+val)}return"{"+output.join(","+sep)+newLine+_indentStr+"}"}}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(color){if(color){this.setColor(color)}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a},setColor:function(color){if(d.isString(color)){d.colorFromString(color,this)}else{if(d.isArray(color)){d.colorFromArray(color,this)}else{this._set(color.r,color.g,color.b,color.a);if(!(color instanceof d.Color)){this.sanitize()}}}return this},sanitize:function(){return this},toRgb:function(){var t=this;return[t.r,t.g,t.b]},toRgba:function(){var t=this;return[t.r,t.g,t.b,t.a]},toHex:function(){var arr=d.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s},this);return"#"+arr.join("")},toCss:function(includeAlpha){var t=this,rgb=t.r+", "+t.g+", "+t.b;return(includeAlpha?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")"},toString:function(){return this.toCss(true)}});dojo.blendColors=function(start,end,weight,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=start[x]+(end[x]-start[x])*weight;if(x!="a"){t[x]=Math.round(t[x])}});return t.sanitize()};dojo.colorFromRgb=function(color,obj){var m=color.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj)};dojo.colorFromHex=function(color,obj){var t=obj||new d.Color(),bits=(color.length==4)?4:8,mask=(1<<bits)-1;color=Number("0x"+color.substr(1));if(isNaN(color)){return null}d.forEach(["b","g","r"],function(x){var c=color&mask;color>>=bits;t[x]=bits==4?17*c:c});t.a=1;return t};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1}return t.sanitize()};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj)}})()}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base")}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window.document||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0]};dojo.setContext=function(globalObject,globalDocument){dojo.global=globalObject;dojo.doc=globalDocument};dojo.withGlobal=function(globalObject,callback,thisObject,cbArguments){var oldGlob=dojo.global;try{dojo.global=globalObject;return dojo.withDoc.call(null,globalObject.document,callback,thisObject,cbArguments)}finally{dojo.global=oldGlob}};dojo.withDoc=function(documentObject,callback,thisObject,cbArguments){var oldDoc=dojo.doc,oldLtr=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=documentObject;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(thisObject&&typeof callback=="string"){callback=thisObject[callback]}return callback.apply(thisObject,cbArguments||[])}finally{dojo.doc=oldDoc;delete dojo._bodyLtr;if(oldLtr!==undefined){dojo._bodyLtr=oldLtr}dojo.isQuirks=oldQ}}}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var oname=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e)}}}node.addEventListener(name,fp,false);return fp},remove:function(node,event,handle){if(node){event=del._normalizeEventName(event);if(!dojo.isIE&&(event=="mouseenter"||event=="mouseleave")){event=(event=="mouseenter")?"mouseover":"mouseout"}node.removeEventListener(event,handle,false)}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this))}},_fixEvent:function(evt,sender){switch(evt.type){case"keypress":del._setKeyChar(evt);break}return evt},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,sender){return del._fixEvent(evt,sender)};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation()};var node_listener=dojo._listener;dojo._connect=function(obj,event,context,method,dontFix){var isNode=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=isNode?(dontFix?2:1):0,l=[dojo._listener,del,node_listener][lid];var h=l.add(obj,event,dojo.hitch(context,method));return[obj,event,h,lid]};dojo._disconnect=function(obj,event,handle,listener){([dojo._listener,del,node_listener][listener]).remove(obj,event,handle)};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var evtCopyKey=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[evtCopyKey]};if(dojo.isIE){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,button){return e.button&button},isLeft:function(e){return e.button&1},isMiddle:function(e){return e.button&4},isRight:function(e){return e.button&2}}}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,button){return e.button==button},isLeft:function(e){return e.button==0},isMiddle:function(e){return e.button==1},isRight:function(e){return e.button==2}}}if(dojo.isIE){var _trySetKeyCode=function(e,code){try{return(e.keyCode=code)}catch(e){return 0}};var iel=dojo._listener;var listenersName=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){node_listener=iel=dojo._ie_listener={handlers:[],add:function(source,method,listener){source=source||dojo.global;var f=source[method];if(!f||!f[listenersName]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[listenersName]=[];f=source[method]=d}return f[listenersName].push(ieh.push(listener)-1)},remove:function(source,method,handle){var f=(source||dojo.global)[method],l=f&&f[listenersName];if(f&&l&&handle--){delete ieh[l[handle]];delete l[handle]}}};var ieh=iel.handlers}dojo.mixin(del,{add:function(node,event,fp){if(!node){return}event=del._normalizeEventName(event);if(event=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[listenersName]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1}else{kd._stealthKeydownRefs++}}return iel.add(node,event,del._fixCallback(fp))},remove:function(node,event,handle){event=del._normalizeEventName(event);iel.remove(node,event,handle);if(event=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle}}},_normalizeEventName:function(eventName){return eventName.slice(0,2)!="on"?"on"+eventName:eventName},_nop:function(){},_fixEvent:function(evt,sender){if(!evt){var w=sender&&(sender.ownerDocument||sender.document||sender).parentWindow||window;evt=w.event}if(!evt){return(evt)}evt.target=evt.srcElement;evt.currentTarget=(sender||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var docBody=((dojo.isIE<6)||(doc.compatMode=="BackCompat"))?doc.body:doc.documentElement;var offset=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(docBody.scrollLeft||0)-offset.x;evt.pageY=evt.clientY+(docBody.scrollTop||0)-offset.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement}evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt)},_fixKeys:function(evt){switch(evt.type){case"keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13}else{if(c==13||c==27){c=0}else{if(c==3){c=99}}}evt.charCode=c;del._setKeyChar(evt);break}return evt},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[listenersName]){return}var k=evt.keyCode;var unprintable=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(unprintable||evt.ctrlKey){var c=unprintable?0:k;if(evt.ctrlKey){if(k==3||k==13){return}else{if(c>95&&c<106){c-=48}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32}else{c=del._punctMap[c]||c}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_trySetKeyCode(evt,faux.keyCode)}},_stopPropagation:function(){this.cancelBubble=true},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_trySetKeyCode(this,0)}this.returnValue=false}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt)}}del._synthesizeEvent=function(evt,props){var faux=dojo.mixin({},evt,props);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault()};faux.stopPropagation=function(){evt.stopPropagation()};return faux};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,sender){switch(evt.type){case"keypress":var c=evt.which;if(c==3){c=99}c=c<41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32}return del._synthesizeEvent(evt,{charCode:c})}return evt}})}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,event,fp){if(!node){return}var handle=del._add(node,event,fp);if(del._normalizeEventName(event)=="keypress"){handle._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var unprintable=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(unprintable||evt.ctrlKey){var c=unprintable?0:k;if(evt.ctrlKey){if(k==3||k==13){return}else{if(c>95&&c<106){c-=48}else{if(!evt.shiftKey&&c>=65&&c<=90){c+=32}else{c=del._punctMap[c]||c}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux)}})}return handle},remove:function(node,event,handle){if(node){if(handle._stealthKeyDownHandle){del._remove(node,"keydown",handle._stealthKeyDownHandle)}del._remove(node,event,handle)}},_fixEvent:function(evt,sender){switch(evt.type){case"keypress":if(evt.faux){return evt}var c=evt.charCode;c=c>=32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true})}return evt}})}})();if(dojo.isIE){dojo._ieDispatcher=function(args,sender){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(sender,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(sender,args)}}return r};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)")};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this))}}}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(typeof id!="string"){return id}var _d=doc||dojo.doc,te=_d.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te}else{var eles=_d.all[id];if(!eles||eles.nodeName){eles=[eles]}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te}}}}}else{dojo.byId=function(id,doc){return(typeof id=="string")?(doc||dojo.doc).getElementById(id):id}}(function(){var d=dojo;var byId=d.byId;var _destroyContainer=null,_destroyDoc;d.addOnWindowUnload(function(){_destroyContainer=null});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_destroyContainer||_destroyDoc!=doc){_destroyContainer=doc.createElement("div");_destroyDoc=doc}_destroyContainer.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_destroyContainer.innerHTML=""}catch(e){}};dojo.isDescendant=function(node,ancestor){try{node=byId(node);ancestor=byId(ancestor);while(node){if(node==ancestor){return true}node=node.parentNode}}catch(e){}return false};dojo.setSelectable=function(node,selectable){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=selectable?"":"none"}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=selectable?"auto":"none"}else{if(d.isIE){var v=(node.unselectable=selectable?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'")}}}};var _insertBefore=function(node,ref){var parent=ref.parentNode;if(parent){parent.insertBefore(node,ref)}};var _insertAfter=function(node,ref){var parent=ref.parentNode;if(parent){if(parent.lastChild==ref){parent.appendChild(node)}else{parent.insertBefore(node,ref.nextSibling)}}};dojo.place=function(node,refNode,position){refNode=byId(refNode);if(typeof node=="string"){node=node.charAt(0)=="<"?d._toDom(node,refNode.ownerDocument):byId(node)}if(typeof position=="number"){var cn=refNode.childNodes;if(!cn.length||cn.length<=position){refNode.appendChild(node)}else{_insertBefore(node,cn[position<0?0:position])}}else{switch(position){case"before":_insertBefore(node,refNode);break;case"after":_insertAfter(node,refNode);break;case"replace":refNode.parentNode.replaceChild(node,refNode);break;case"only":d.empty(refNode);refNode.appendChild(node);break;case"first":if(refNode.firstChild){_insertBefore(node,refNode.firstChild);break}default:refNode.appendChild(node)}}return node};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box"}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null)}}return s||{}}}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{}}}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{}}}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(element,value){return parseFloat(value)||0}}else{d._toPixelValue=function(element,avalue){if(!avalue){return 0}if(avalue=="medium"){return 4}if(avalue.slice&&avalue.slice(-2)=="px"){return parseFloat(avalue)}with(element){var sLeft=style.left;var rsLeft=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=avalue;avalue=style.pixelLeft}catch(e){avalue=0}style.left=sLeft;runtimeStyle.left=rsLeft}return avalue}}var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr)}catch(e){return f?{}:null}};dojo._getOpacity=d.isIE?function(node){try{return af(node).Opacity/100}catch(e){return 1}}:function(node){return gcs(node).opacity};dojo._setOpacity=d.isIE?function(node,opacity){var ov=opacity*100;node.style.zoom=1;af(node,1).Enabled=!(opacity==1);if(!af(node)){node.style.filter+=" progid:"+astr+"(Opacity="+ov+")"}else{af(node,1).Opacity=ov}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,opacity)})}return opacity}:function(node,opacity){return node.style.opacity=opacity};var _pixelNamesCache={left:true,top:true};var _pixelRegExp=/margin|padding|width|height|max|min|offset/;var _toStyleValue=function(node,type,value){type=type.toLowerCase();if(d.isIE){if(value=="auto"){if(type=="height"){return node.offsetHeight}if(type=="width"){return node.offsetWidth}}if(type=="fontweight"){switch(value){case 700:return"bold";case 400:default:return"normal"}}}if(!(type in _pixelNamesCache)){_pixelNamesCache[type]=_pixelRegExp.test(type)}return _pixelNamesCache[type]?px(node,value):value};var _floatStyle=d.isIE?"styleFloat":"cssFloat",_floatAliases={cssFloat:_floatStyle,styleFloat:_floatStyle,"float":_floatStyle};dojo.style=function(node,style,value){var n=byId(node),args=arguments.length,op=(style=="opacity");style=_floatAliases[style]||style;if(args==3){return op?d._setOpacity(n,value):n.style[style]=value}if(args==2&&op){return d._getOpacity(n)}var s=gcs(n);if(args==2&&typeof style!="string"){for(var x in style){d.style(node,x,style[x])}return s}return(args==1)?s:_toStyleValue(n,style,s[style]||n.style[style])};dojo._getPadExtents=function(n,computedStyle){var s=computedStyle||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return{l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)}};dojo._getBorderExtents=function(n,computedStyle){var ne="none",s=computedStyle||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return{l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)}};dojo._getPadBorderExtents=function(n,computedStyle){var s=computedStyle||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return{l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h}};dojo._getMarginExtents=function(n,computedStyle){var s=computedStyle||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l}return{l:l,t:t,w:l+r,h:t+b}};dojo._getMarginBox=function(node,computedStyle){var s=computedStyle||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t}}}return{l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h}};dojo._getContentBox=function(node,computedStyle){var s=computedStyle||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight}else{h=node.clientHeight,be.w=be.h=0}if(d.isOpera){pe.l+=be.l;pe.t+=be.t}return{l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h}};dojo._getBorderBox=function(node,computedStyle){var s=computedStyle||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return{l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h}};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u}if(!isNaN(t)){s.top=t+u}if(w>=0){s.width=w+u}if(h>=0){s.height=h+u}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON"};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node)};dojo._setContentSize=function(node,widthPx,heightPx,computedStyle){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,computedStyle);if(widthPx>=0){widthPx+=pb.w}if(heightPx>=0){heightPx+=pb.h}}d._setBox(node,NaN,NaN,widthPx,heightPx)};dojo._setMarginBox=function(node,leftPx,topPx,widthPx,heightPx,computedStyle){var s=computedStyle||gcs(node),bb=d._usesBorderBox(node),pb=bb?_nilExtents:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(widthPx>=0&&!ns.width){ns.width="4px"}if(heightPx>=0&&!ns.height){ns.height="4px"}}}var mb=d._getMarginExtents(node,s);if(widthPx>=0){widthPx=Math.max(widthPx-pb.w-mb.w,0)}if(heightPx>=0){heightPx=Math.max(heightPx-pb.h-mb.h,0)}d._setBox(node,leftPx,topPx,widthPx,heightPx)};var _nilExtents={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s)};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s)};var _sumAncestorProperties=function(node,prop){if(!(node=(node||0).parentNode)){return 0}var val,retVal=0,_b=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0}val=node[prop];if(val){retVal+=val-0;if(node==_b){break}}node=node.parentNode}return retVal};dojo._docScroll=function(){var n=d.global;return"pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.doc.documentElement,n.clientHeight?{x:d._fixIeBiDiScrollLeft(n.scrollLeft),y:n.scrollTop}:(n=d.body(),{x:n.scrollLeft||0,y:n.scrollTop||0}))};dojo._isBodyLtr=function(){return"_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr"};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE<7){l+=de.clientLeft;t+=de.clientTop}return{x:l<0?0:l,y:t<0?0:t}}else{return{x:0,y:0}}};dojo._fixIeBiDiScrollLeft=function(scrollLeft){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=d.isQuirks?dd.body:dd.documentElement;return scrollLeft+de.clientWidth-de.scrollWidth}return scrollLeft};dojo._abs=dojo.position=function(node,includeScroll){var db=d.body(),dh=db.parentNode,ret;node=byId(node);if(node.getBoundingClientRect){ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var offset=d._getIeDocumentElementOffset();ret.x-=offset.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=offset.y+(d.isQuirks?db.clientTop+db.offsetTop:0)}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth)}}}else{ret={x:0,y:0,w:node.offsetWidth,h:node.offsetHeight};if(node.offsetParent){ret.x-=_sumAncestorProperties(node,"scrollLeft");ret.y-=_sumAncestorProperties(node,"scrollTop");var curnode=node;do{var n=curnode.offsetLeft,t=curnode.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(curnode);if(curnode!=node){if(d.isMoz){ret.x+=2*px(curnode,cs.borderLeftWidth);ret.y+=2*px(curnode,cs.borderTopWidth)}else{ret.x+=px(curnode,cs.borderLeftWidth);ret.y+=px(curnode,cs.borderTopWidth)}}if(d.isMoz&&cs.position=="static"){var parent=curnode.parentNode;while(parent!=curnode.offsetParent){var pcs=gcs(parent);if(pcs.position=="static"){ret.x+=px(curnode,pcs.borderLeftWidth);ret.y+=px(curnode,pcs.borderTopWidth)}parent=parent.parentNode}}curnode=curnode.offsetParent}while((curnode!=dh)&&curnode)}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y}}}if(includeScroll){var scroll=d._docScroll();ret.x+=scroll.x;ret.y+=scroll.y}return ret};dojo.coords=function(node,includeScroll){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,includeScroll);mb.x=abs.x;mb.y=abs.y;return mb};var _propNames={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_attrNames={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_forcePropNames={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _fixAttrName=function(name){return _attrNames[name.toLowerCase()]||name};var _hasAttr=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _forcePropNames[_propNames[lc]||name]||_hasAttr(byId(node),_attrNames[lc]||name)};var _evtHdlrMap={},_ctr=0,_attrId=dojo._scopeName+"attrid",_roInnerHtml={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,value){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x])}return node}var lc=name.toLowerCase(),propName=_propNames[lc]||name,forceProp=_forcePropNames[propName],attrName=_attrNames[lc]||name;if(args==3){do{if(propName=="style"&&typeof value!="string"){d.style(node,value);break}if(propName=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _roInnerHtml){d.empty(node);node.appendChild(d._toDom(value,node.ownerDocument))}else{node[propName]=value}break}if(d.isFunction(value)){var attrId=d.attr(node,_attrId);if(!attrId){attrId=_ctr++;d.attr(node,_attrId,attrId)}if(!_evtHdlrMap[attrId]){_evtHdlrMap[attrId]={}}var h=_evtHdlrMap[attrId][propName];if(h){d.disconnect(h)}else{try{delete node[propName]}catch(e){}}_evtHdlrMap[attrId][propName]=d.connect(node,propName,value);break}if(forceProp||typeof value=="boolean"){node[propName]=value;break}node.setAttribute(attrName,value)}while(false);return node}value=node[propName];if(forceProp&&typeof value!="undefined"){return value}if(propName!="href"&&(typeof value=="boolean"||d.isFunction(value))){return value}return _hasAttr(node,attrName)?node.getAttribute(attrName):null};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_fixAttrName(name))};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),propName=_propNames[lc]||name;if((propName in node)&&propName!="href"){return node[propName]}var attrName=_attrNames[lc]||name;return _hasAttr(node,attrName)?node.getAttribute(attrName):null};dojo.create=function(tag,attrs,refNode,pos){var doc=d.doc;if(refNode){refNode=byId(refNode);doc=refNode.ownerDocument}if(typeof tag=="string"){tag=doc.createElement(tag)}if(attrs){d.attr(tag,attrs)}if(refNode){d.place(tag,refNode,pos)}return tag};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c)}}:function(node){byId(node).innerHTML=""};var tagWrap={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},reTag=/<\s*([\w\:]+)/,masterNode={},masterNum=0,masterName="__"+d._scopeName+"ToDomId";for(var param in tagWrap){var tw=tagWrap[param];tw.pre=param=="option"?'<select multiple="multiple">':"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">"}d._toDom=function(frag,doc){doc=doc||d.doc;var masterId=doc[masterName];if(!masterId){doc[masterName]=masterId=++masterNum+"";masterNode[masterId]=doc.createElement("div")}frag+="";var match=frag.match(reTag),tag=match?match[1].toLowerCase():"",master=masterNode[masterId],wrap,i,fc,df;if(match&&tagWrap[tag]){wrap=tagWrap[tag];master.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){master=master.firstChild}}else{master.innerHTML=frag}if(master.childNodes.length==1){return master.removeChild(master.firstChild)}df=doc.createDocumentFragment();while(fc=master.firstChild){df.appendChild(fc)}return df};var _className="className";dojo.hasClass=function(node,classStr){return((" "+byId(node)[_className]+" ").indexOf(" "+classStr+" ")>=0)};var spaces=/\s+/,a1=[""],str2array=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1}else{return s.split(spaces)}}return s};dojo.addClass=function(node,classStr){node=byId(node);classStr=str2array(classStr);var cls=" "+node[_className]+" ";for(var i=0,len=classStr.length,c;i<len;++i){c=classStr[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" "}}node[_className]=d.trim(cls)};dojo.removeClass=function(node,classStr){node=byId(node);var cls;if(classStr!==undefined){classStr=str2array(classStr);cls=" "+node[_className]+" ";for(var i=0,len=classStr.length;i<len;++i){cls=cls.replace(" "+classStr[i]+" "," ")}cls=d.trim(cls)}else{cls=""}if(node[_className]!=cls){node[_className]=cls}};dojo.toggleClass=function(node,classStr,condition){if(condition===undefined){condition=!d.hasClass(node,classStr)}d[condition?"addClass":"removeClass"](node,classStr)}})()}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var ap=Array.prototype,aps=ap.slice,apc=ap.concat;var tnl=function(a,parent,NodeListCtor){if(!a.sort){a=aps.call(a,0)}var ctor=NodeListCtor||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return parent?a._stash(parent):a};var loopBody=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||d.global;return function(node){a[0]=node;return f.apply(o,a)}};var adaptAsForEach=function(f,o){return function(){this.forEach(loopBody(f,arguments,o));return this}};var adaptAsMap=function(f,o){return function(){return this.map(loopBody(f,arguments,o))}};var adaptAsFilter=function(f,o){return function(){return this.filter(loopBody(f,arguments,o))}};var adaptWithCondition=function(f,g,o){return function(){var a=arguments,body=loopBody(f,a,o);if(g.call(o||d.global,a)){return this.map(body)}this.forEach(body);return this}};var magicGuard=function(a){return a.length==1&&(typeof a[0]=="string")};var orphan=function(node){var p=node.parentNode;if(p){p.removeChild(node)}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments))};d._NodeListCtor=d.NodeList;var nl=d.NodeList,nlp=nl.prototype;nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=adaptAsMap;nl._adaptAsForEach=adaptAsForEach;nl._adaptAsFilter=adaptAsFilter;nl._adaptWithCondition=adaptWithCondition;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null)}});d.forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=d[name];nlp[name]=function(){return f.apply(d,[this].concat(aps.call(arguments,0)))}});d.forEach(["attr","style"],function(name){nlp[name]=adaptWithCondition(d[name],magicGuard)});d.forEach(["connect","addClass","removeClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=adaptAsForEach(d[name])});dojo.extend(dojo.NodeList,{_normalize:function(content,refNode){var parse=content.parse===true?true:false;if(typeof content.template=="string"){var templateFunc=content.templateFunc||(dojo.string&&dojo.string.substitute);content=templateFunc?templateFunc(content.template,content):content}var type=(typeof content);if(type=="string"||type=="number"){content=dojo._toDom(content,(refNode&&refNode.ownerDocument));if(content.nodeType==11){content=dojo._toArray(content.childNodes)}else{content=[content]}}else{if(!dojo.isArrayLike(content)){content=[content]}else{if(!dojo.isArray(content)){content=dojo._toArray(content)}}}if(parse){content._runParse=true}return content},_cloneNode:function(node){return node.cloneNode(true)},_place:function(ary,refNode,position,useClone){if(refNode.nodeType!=1&&position=="only"){return}var rNode=refNode,tempNode;var length=ary.length;for(var i=length-1;i>=0;i--){var node=(useClone?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!tempNode){tempNode=rNode.ownerDocument.createElement("div")}tempNode.appendChild(node);dojo.parser.parse(tempNode);node=tempNode.firstChild;while(tempNode.firstChild){tempNode.removeChild(tempNode.firstChild)}}if(i==length-1){dojo.place(node,rNode,position)}else{rNode.parentNode.insertBefore(node,rNode)}rNode=node}},_stash:function(parent){this._parent=parent;return this},end:function(){if(this._parent){return this._parent}else{return new this._NodeListCtor()}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a});return this._wrap(apc.apply(t,m),this)},map:function(func,obj){return this._wrap(d.map(this,func,obj),this)},forEach:function(callback,thisObj){d.forEach(this,callback,thisObj);return this},coords:adaptAsMap(d.coords),position:adaptAsMap(d.position),place:function(queryOrNode,position){var item=d.query(queryOrNode)[0];return this.forEach(function(node){d.place(node,item,position)})},orphan:function(simpleFilter){return(simpleFilter?d._filterQueryResult(this,simpleFilter):this).forEach(orphan)},adopt:function(queryOrListOrNode,position){return d.query(queryOrListOrNode).place(this[0],position)._stash(this)},query:function(queryStr){if(!queryStr){return this}var ret=this.map(function(node){return d.query(queryStr,node).filter(function(subNode){return subNode!==undefined})});return this._wrap(apc.apply([],ret),this)},filter:function(simpleFilter){var a=arguments,items=this,start=0;if(typeof simpleFilter=="string"){items=d._filterQueryResult(this,a[0]);if(a.length==1){return items._stash(this)}start=1}return this._wrap(d.filter(items,a[start],a[start+1]),this)},addContent:function(content,position){content=this._normalize(content,this[0]);for(var i=0,node;node=this[i];i++){this._place(content,node,position,i>0)}return this},instantiate:function(declaredClass,properties){var c=d.isFunction(declaredClass)?declaredClass:d.getObject(declaredClass);properties=properties||{};return this.forEach(function(node){new c(properties,node)})},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(this[i]){t.push(this[i])}},this);return t._stash(this)}});nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];d.forEach(nl.events,function(evt){var _oe="on"+evt;nlp[_oe]=function(a,b){return this.connect(_oe,a,b)}})})()}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;if(typeof dojo!="undefined"){dojo.provide("dojo._base.query")}(function(d){var trim=d.trim;var each=d.forEach;var qlc=d._NodeListCtor=d.NodeList;var getDoc=function(){return d.doc};var cssCaseBug=((d.isWebKit||d.isMozilla)&&((getDoc().compatMode)=="BackCompat"));var childNodesName=!!getDoc().firstChild.children?"children":"childNodes";var specials=">~+";var caseSensitive=false;var yesman=function(){return true};var getQueryParts=function(query){if(specials.indexOf(query.slice(-1))>=0){query+=" * "}else{query+=" "}var ts=function(s,e){return trim(query.slice(s,e))};var queryParts=[];var inBrackets=-1,inParens=-1,inMatchFor=-1,inPseudo=-1,inClass=-1,inId=-1,inTag=-1,lc="",cc="",pStart;var x=0,ql=query.length,currentPart=null,_cp=null;var endTag=function(){if(inTag>=0){var tv=(inTag==x)?null:ts(inTag,x);currentPart[(specials.indexOf(tv)<0)?"tag":"oper"]=tv;inTag=-1}};var endId=function(){if(inId>=0){currentPart.id=ts(inId,x).replace(/\\/g,"");inId=-1}};var endClass=function(){if(inClass>=0){currentPart.classes.push(ts(inClass+1,x).replace(/\\/g,""));inClass=-1}};var endAll=function(){endId();endTag();endClass()};var endPart=function(){endAll();if(inPseudo>=0){currentPart.pseudos.push({name:ts(inPseudo+1,x)})}currentPart.loops=(currentPart.pseudos.length||currentPart.attrs.length||currentPart.classes.length);currentPart.oquery=currentPart.query=ts(pStart,x);currentPart.otag=currentPart.tag=(currentPart.oper)?null:(currentPart.tag||"*");if(currentPart.tag){currentPart.tag=currentPart.tag.toUpperCase()}if(queryParts.length&&(queryParts[queryParts.length-1].oper)){currentPart.infixOper=queryParts.pop();currentPart.query=currentPart.infixOper.query+" "+currentPart.query}queryParts.push(currentPart);currentPart=null};for(;lc=cc,cc=query.charAt(x),x<ql;x++){if(lc=="\\"){continue}if(!currentPart){pStart=x;currentPart={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return(caseSensitive)?this.otag:this.tag}};inTag=x}if(inBrackets>=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(inBrackets+1,x)}else{_cp.matchFor=ts((inMatchFor||inBrackets+1),x)}var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=='"')||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.slice(1,-1)}}currentPart.attrs.push(_cp);_cp=null;inBrackets=inMatchFor=-1}else{if(cc=="="){var addToCc=("|~^$*".indexOf(lc)>=0)?lc:"";_cp.type=addToCc+cc;_cp.attr=ts(inBrackets+1,x-addToCc.length);inMatchFor=x+1}}}else{if(inParens>=0){if(cc==")"){if(inPseudo>=0){_cp.value=ts(inParens+1,x)}inPseudo=inParens=-1}}else{if(cc=="#"){endAll();inId=x+1}else{if(cc=="."){endAll();inClass=x}else{if(cc==":"){endAll();inPseudo=x}else{if(cc=="["){endAll();inBrackets=x;_cp={}}else{if(cc=="("){if(inPseudo>=0){_cp={name:ts(inPseudo+1,x),value:null};currentPart.pseudos.push(_cp)}inParens=x}else{if((cc==" ")&&(lc!=cc)){endPart()}}}}}}}}}return queryParts};var agree=function(first,second){if(!first){return second}if(!second){return first}return function(){return first.apply(window,arguments)&&second.apply(window,arguments)}};var getArr=function(i,arr){var r=arr||[];if(i){r.push(i)}return r};var _isElement=function(n){return(1==n.nodeType)};var blank="";var _getAttr=function(elem,attr){if(!elem){return blank}if(attr=="class"){return elem.className||blank}if(attr=="for"){return elem.htmlFor||blank}if(attr=="style"){return elem.style.cssText||blank}return(caseSensitive?elem.getAttribute(attr):elem.getAttribute(attr,2))||blank};var attrs={"*=":function(attr,value){return function(elem){return(_getAttr(elem,attr).indexOf(value)>=0)}},"^=":function(attr,value){return function(elem){return(_getAttr(elem,attr).indexOf(value)==0)}},"$=":function(attr,value){var tval=" "+value;return function(elem){var ea=" "+_getAttr(elem,attr);return(ea.lastIndexOf(value)==(ea.length-value.length))}},"~=":function(attr,value){var tval=" "+value+" ";return function(elem){var ea=" "+_getAttr(elem,attr)+" ";return(ea.indexOf(tval)>=0)}},"|=":function(attr,value){var valueDash=" "+value+"-";return function(elem){var ea=" "+_getAttr(elem,attr);return((ea==value)||(ea.indexOf(valueDash)==0))}},"=":function(attr,value){return function(elem){return(_getAttr(elem,attr)==value)}}};var _noNES=(typeof getDoc().firstChild.nextElementSibling=="undefined");var _ns=!_noNES?"nextElementSibling":"nextSibling";var _ps=!_noNES?"previousElementSibling":"previousSibling";var _simpleNodeTest=(_noNES?_isElement:yesman);var _lookLeft=function(node){while(node=node[_ps]){if(_simpleNodeTest(node)){return false}}return true};var _lookRight=function(node){while(node=node[_ns]){if(_simpleNodeTest(node)){return false}}return true};var getNodeIndex=function(node){var root=node.parentNode;var i=0,tret=root[childNodesName],ci=(node._i||-1),cl=(root._l||-1);if(!tret){return -1}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci}root._l=l;ci=-1;for(var te=root.firstElementChild||root.firstChild;te;te=te[_ns]){if(_simpleNodeTest(te)){te._i=++i;if(node===te){ci=i}}}return ci};var isEven=function(elem){return !((getNodeIndex(elem))%2)};var isOdd=function(elem){return((getNodeIndex(elem))%2)};var pseudos={checked:function(name,condition){return function(elem){return !!("checked" in elem?elem.checked:elem.selected)}},"first-child":function(){return _lookLeft},"last-child":function(){return _lookRight},"only-child":function(name,condition){return function(node){if(!_lookLeft(node)){return false}if(!_lookRight(node)){return false}return true}},empty:function(name,condition){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false}}return true}},contains:function(name,condition){var cz=condition.charAt(0);if(cz=='"'||cz=="'"){condition=condition.slice(1,-1)}return function(elem){return(elem.innerHTML.indexOf(condition)>=0)}},not:function(name,condition){var p=getQueryParts(condition)[0];var ignores={el:1};if(p.tag!="*"){ignores.tag=1}if(!p.classes.length){ignores.classes=1}var ntf=getSimpleFilterFunc(p,ignores);return function(elem){return(!ntf(elem))}},"nth-child":function(name,condition){var pi=parseInt;if(condition=="odd"){return isOdd}else{if(condition=="even"){return isEven}}if(condition.indexOf("n")!=-1){var tparts=condition.split("n",2);var pred=tparts[0]?((tparts[0]=="-")?-1:pi(tparts[0])):1;var idx=tparts[1]?pi(tparts[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred))}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred}idx=idx%pred}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred}}}if(pred>0){return function(elem){var i=getNodeIndex(elem);return(i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx)}}else{condition=idx}}var ncount=pi(condition);return function(elem){return(getNodeIndex(elem)==ncount)}}};var defaultGetter=(d.isIE)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className"}return function(elem){return(caseSensitive?elem.getAttribute(cond):elem[cond]||elem[clc])}}:function(cond){return function(elem){return(elem&&elem.getAttribute&&elem.hasAttribute(cond))}};var getSimpleFilterFunc=function(query,ignores){if(!query){return yesman}ignores=ignores||{};var ff=null;if(!("el" in ignores)){ff=agree(ff,_isElement)}if(!("tag" in ignores)){if(query.tag!="*"){ff=agree(ff,function(elem){return(elem&&(elem.tagName==query.getTag()))})}}if(!("classes" in ignores)){each(query.classes,function(cname,idx,arr){var re=new RegExp("(?:^|\\s)"+cname+"(?:\\s|$)");ff=agree(ff,function(elem){return re.test(elem.className)});ff.count=idx})}if(!("pseudos" in ignores)){each(query.pseudos,function(pseudo){var pn=pseudo.name;if(pseudos[pn]){ff=agree(ff,pseudos[pn](pn,pseudo.value))}})}if(!("attrs" in ignores)){each(query.attrs,function(attr){var matcher;var a=attr.attr;if(attr.type&&attrs[attr.type]){matcher=attrs[attr.type](a,attr.matchFor)}else{if(a.length){matcher=defaultGetter(a)}}if(matcher){ff=agree(ff,matcher)}})}if(!("id" in ignores)){if(query.id){ff=agree(ff,function(elem){return(!!elem&&(elem.id==query.id))})}}if(!ff){if(!("default" in ignores)){ff=yesman}}return ff};var _nextSibling=function(filterFunc){return function(node,ret,bag){while(node=node[_ns]){if(_noNES&&(!_isElement(node))){continue}if((!bag||_isUnique(node,bag))&&filterFunc(node)){ret.push(node)}break}return ret}};var _nextSiblings=function(filterFunc){return function(root,ret,bag){var te=root[_ns];while(te){if(_simpleNodeTest(te)){if(bag&&!_isUnique(te,bag)){break}if(filterFunc(te)){ret.push(te)}}te=te[_ns]}return ret}};var _childElements=function(filterFunc){filterFunc=filterFunc||yesman;return function(root,ret,bag){var te,x=0,tret=root[childNodesName];while(te=tret[x++]){if(_simpleNodeTest(te)&&(!bag||_isUnique(te,bag))&&(filterFunc(te,x))){ret.push(te)}}return ret}};var _isDescendant=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break}pn=pn.parentNode}return !!pn};var _getElementsFuncCache={};var getElementsFunc=function(query){var retFunc=_getElementsFuncCache[query.query];if(retFunc){return retFunc}var io=query.infixOper;var oper=(io?io.oper:"");var filterFunc=getSimpleFilterFunc(query,{el:1});var qt=query.tag;var wildcardTag=("*"==qt);var ecs=getDoc()["getElementsByClassName"];if(!oper){if(query.id){filterFunc=(!query.loops&&wildcardTag)?yesman:getSimpleFilterFunc(query,{el:1,id:1});retFunc=function(root,arr){var te=d.byId(query.id,(root.ownerDocument||root));if(!te||!filterFunc(te)){return}if(9==root.nodeType){return getArr(te,arr)}else{if(_isDescendant(te,root)){return getArr(te,arr)}}}}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&query.classes.length&&!cssCaseBug){filterFunc=getSimpleFilterFunc(query,{el:1,classes:1,id:1});var classesString=query.classes.join(" ");retFunc=function(root,arr,bag){var ret=getArr(0,arr),te,x=0;var tret=root.getElementsByClassName(classesString);while((te=tret[x++])){if(filterFunc(te,root)&&_isUnique(te,bag)){ret.push(te)}}return ret}}else{if(!wildcardTag&&!query.loops){retFunc=function(root,arr,bag){var ret=getArr(0,arr),te,x=0;var tret=root.getElementsByTagName(query.getTag());while((te=tret[x++])){if(_isUnique(te,bag)){ret.push(te)}}return ret}}else{filterFunc=getSimpleFilterFunc(query,{el:1,tag:1,id:1});retFunc=function(root,arr,bag){var ret=getArr(0,arr),te,x=0;var tret=root.getElementsByTagName(query.getTag());while((te=tret[x++])){if(filterFunc(te,root)&&_isUnique(te,bag)){ret.push(te)}}return ret}}}}}else{var skipFilters={el:1};if(wildcardTag){skipFilters.tag=1}filterFunc=getSimpleFilterFunc(query,skipFilters);if("+"==oper){retFunc=_nextSibling(filterFunc)}else{if("~"==oper){retFunc=_nextSiblings(filterFunc)}else{if(">"==oper){retFunc=_childElements(filterFunc)}}}}return _getElementsFuncCache[query.query]=retFunc};var filterDown=function(root,queryParts){var candidates=getArr(root),qp,x,te,qpl=queryParts.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=queryParts[i];x=candidates.length-1;if(x>0){bag={};ret.nozip=true}var gef=getElementsFunc(qp);for(var j=0;(te=candidates[j]);j++){gef(te,ret,bag)}if(!ret.length){break}candidates=ret}return ret};var _queryFuncCacheDOM={},_queryFuncCacheQSA={};var getStepQueryFunc=function(query){var qparts=getQueryParts(trim(query));if(qparts.length==1){var tef=getElementsFunc(qparts[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true}return r}}return function(root){return filterDown(root,qparts)}};var nua=navigator.userAgent;var wk="WebKit/";var is525=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var noZip=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var qsaAvail=(!!getDoc()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||is525));var infixSpaceRe=/n\+\d|([^ ])?([>~+])([^ =])?/g;var infixSpaceFunc=function(match,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):match};var getQueryFunc=function(query,forceDOM){query=query.replace(infixSpaceRe,infixSpaceFunc);if(qsaAvail){var qsaCached=_queryFuncCacheQSA[query];if(qsaCached&&!forceDOM){return qsaCached}}var domCached=_queryFuncCacheDOM[query];if(domCached){return domCached}var qcz=query.charAt(0);var nospace=(-1==query.indexOf(" "));if((query.indexOf("#")>=0)&&(nospace)){forceDOM=true}var useQSA=(qsaAvail&&(!forceDOM)&&(specials.indexOf(qcz)==-1)&&(!d.isIE||(query.indexOf(":")==-1))&&(!(cssCaseBug&&(query.indexOf(".")>=0)))&&(query.indexOf(":contains")==-1)&&(query.indexOf(":checked")==-1)&&(query.indexOf("|=")==-1));if(useQSA){var tq=(specials.indexOf(query.charAt(query.length-1))>=0)?(query+" *"):query;return _queryFuncCacheQSA[query]=function(root){try{if(!((9==root.nodeType)||nospace)){throw""}var r=root[qsa](tq);r[noZip]=true;return r}catch(e){return getQueryFunc(query,true)(root)}}}else{var parts=query.split(/\s*,\s*/);return _queryFuncCacheDOM[query]=((parts.length<2)?getStepQueryFunc(query):function(root){var pindex=0,ret=[],tp;while((tp=parts[pindex++])){ret=ret.concat(getStepQueryFunc(tp)(root))}return ret})}};var _zipIdx=0;var _nodeUID=d.isIE?function(node){if(caseSensitive){return(node.getAttribute("_uid")||node.setAttribute("_uid",++_zipIdx)||_zipIdx)}else{return node.uniqueID}}:function(node){return(node._uid||(node._uid=++_zipIdx))};var _isUnique=function(node,bag){if(!bag){return 1}var id=_nodeUID(node);if(!bag[id]){return bag[id]=1}return 0};var _zipIdxName="_zipIdx";var _zip=function(arr){if(arr&&arr.nozip){return(qlc._wrap)?qlc._wrap(arr):arr}var ret=new qlc();if(!arr||!arr.length){return ret}if(arr[0]){ret.push(arr[0])}if(arr.length<2){return ret}_zipIdx++;if(d.isIE&&caseSensitive){var szidx=_zipIdx+"";arr[0].setAttribute(_zipIdxName,szidx);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_zipIdxName)!=szidx){ret.push(te)}te.setAttribute(_zipIdxName,szidx)}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_isElement(te)){ret.push(te)}}}catch(e){}}else{if(arr[0]){arr[0][_zipIdxName]=_zipIdx}for(var x=1,te;te=arr[x];x++){if(arr[x][_zipIdxName]!=_zipIdx){ret.push(te)}te[_zipIdxName]=_zipIdx}}}return ret};d.query=function(query,root){qlc=d._NodeListCtor;if(!query){return new qlc()}if(query.constructor==qlc){return query}if(typeof query!="string"){return new qlc(query)}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc()}}root=root||getDoc();var od=root.ownerDocument||root.documentElement;caseSensitive=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));var r=getQueryFunc(query)(root);if(r&&r.nozip&&!qlc._wrap){return r}return _zip(r)};d.query.pseudos=pseudos;d._filterQueryResult=function(nodeList,simpleFilter){var tmpNodeList=new d._NodeListCtor();var filterFunc=getSimpleFilterFunc(getQueryParts(simpleFilter)[0]);for(var x=0,te;te=nodeList[x];x++){if(filterFunc(te)){tmpNodeList.push(te)}}return tmpNodeList}})(this["queryPortability"]||this["acme"]||dojo)}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _d=dojo,cfg=_d.config;function setValue(obj,name,value){if(value===null){return}var val=obj[name];if(typeof val=="string"){obj[name]=[val,value]}else{if(_d.isArray(val)){val.push(value)}else{obj[name]=value}}}dojo.fieldToObject=function(inputNode){var ret=null;var item=_d.byId(inputNode);if(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(_in&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value}}else{if(item.multiple){ret=[];_d.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value)}})}else{ret=item.value}}}}return ret};dojo.formToObject=function(formNode){var ret={};var exclude="file|submit|image|reset|button|";_d.forEach(dojo.byId(formNode).elements,function(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(_in&&type&&exclude.indexOf(type)==-1&&!item.disabled){setValue(ret,_in,_d.fieldToObject(item));if(type=="image"){ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0}}});return ret};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var pairs=[];var backstop={};for(var name in map){var value=map[name];if(value!=backstop[name]){var assign=enc(name)+"=";if(_d.isArray(value)){for(var i=0;i<value.length;i++){pairs.push(assign+enc(value[i]))}}else{pairs.push(assign+enc(value))}}}return pairs.join("&")};dojo.formToQuery=function(formNode){return _d.objectToQuery(_d.formToObject(formNode))};dojo.formToJson=function(formNode,prettyPrint){return _d.toJson(_d.formToObject(formNode),prettyPrint)};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_d.forEach(qp,function(item){if(item.length){var parts=item.split("=");var name=dec(parts.shift());var val=dec(parts.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]]}if(_d.isArray(ret[name])){ret[name].push(val)}else{ret[name]=val}}});return ret};dojo._blockAsync=false;var handlers=_d._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText},json:function(xhr){return _d.fromJson(xhr.responseText||null)},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.")}var value=xhr.responseText;var cStartIdx=value.indexOf("/*");var cEndIdx=value.lastIndexOf("*/");if(cStartIdx==-1||cEndIdx==-1){throw new Error("JSON was not comment filtered")}return _d.fromJson(value.substring(cStartIdx+2,cEndIdx))},javascript:function(xhr){return _d.eval(xhr.responseText)},xml:function(xhr){var result=xhr.responseXML;if(_d.isIE&&(!result||!result.documentElement)){var ms=function(n){return"MSXML"+n+".DOMDocument"};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_d.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);result=dom}catch(e){return false}return true})}return result},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return handlers["json-comment-filtered"](xhr)}else{return handlers.json(xhr)}}};dojo._ioSetArgs=function(args,canceller,okHandler,errHandler){var ioArgs={args:args,url:args.url};var formObject=null;if(args.form){var form=_d.byId(args.form);var actnNode=form.getAttributeNode("action");ioArgs.url=ioArgs.url||(actnNode?actnNode.value:null);formObject=_d.formToObject(form)}var miArgs=[{}];if(formObject){miArgs.push(formObject)}if(args.content){miArgs.push(args.content)}if(args.preventCache){miArgs.push({"dojo.preventCache":new Date().valueOf()})}ioArgs.query=_d.objectToQuery(_d.mixin.apply(null,miArgs));ioArgs.handleAs=args.handleAs||"text";var d=new _d.Deferred(canceller);d.addCallbacks(okHandler,function(error){return errHandler(error,d)});var ld=args.load;if(ld&&_d.isFunction(ld)){d.addCallback(function(value){return ld.call(args,value,ioArgs)})}var err=args.error;if(err&&_d.isFunction(err)){d.addErrback(function(value){return err.call(args,value,ioArgs)})}var handle=args.handle;if(handle&&_d.isFunction(handle)){d.addBoth(function(value){return handle.call(args,value,ioArgs)})}if(cfg.ioPublish&&_d.publish&&ioArgs.args.ioPublish!==false){d.addCallbacks(function(res){_d.publish("/dojo/io/load",[d,res]);return res},function(res){_d.publish("/dojo/io/error",[d,res]);return res});d.addBoth(function(res){_d.publish("/dojo/io/done",[d,res]);return res})}d.ioArgs=ioArgs;return d};var _deferredCancel=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=typeof xhr.abort;if(_at=="function"||_at=="object"||_at=="unknown"){xhr.abort()}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel"}return err};var _deferredOk=function(dfd){var ret=handlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret};var _deferError=function(error,dfd){if(!dfd.ioArgs.args.failOk){console.error(error)}return error};var _inFlightIntvl=null;var _inFlight=[];var _pubCount=0;var _checkPubCount=function(dfd){if(_pubCount<=0){_pubCount=0;if(cfg.ioPublish&&_d.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_d.publish("/dojo/io/stop")}}};var _watchInFlight=function(){var now=(new Date()).getTime();if(!_d._blockAsync){for(var i=0,tif;i<_inFlight.length&&(tif=_inFlight[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_inFlight.splice(i--,1);_pubCount-=1}else{if(tif.ioCheck(dfd)){_inFlight.splice(i--,1);tif.resHandle(dfd);_pubCount-=1}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_inFlight.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_pubCount-=1}}}}};if(dojo.config.debugAtAllCosts){func.call(this)}else{try{func.call(this)}catch(e){dfd.errback(e)}}}}_checkPubCount(dfd);if(!_inFlight.length){clearInterval(_inFlightIntvl);_inFlightIntvl=null;return}};dojo._ioCancelAll=function(){try{_d.forEach(_inFlight,function(i){try{i.dfd.cancel()}catch(e){}})}catch(e){}};if(_d.isIE){_d.addOnWindowUnload(_d._ioCancelAll)}_d._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_d.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_pubCount){_d.publish("/dojo/io/start")}_pubCount+=1;_d.publish("/dojo/io/send",[dfd])}};_d._ioWatch=function(dfd,validCheck,ioCheck,resHandle){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime()}_inFlight.push({dfd:dfd,validCheck:validCheck,ioCheck:ioCheck,resHandle:resHandle});if(!_inFlightIntvl){_inFlightIntvl=setInterval(_watchInFlight,50)}if(args.sync){_watchInFlight()}};var _defaultContentType="application/x-www-form-urlencoded";var _validCheck=function(dfd){return dfd.ioArgs.xhr.readyState};var _ioCheck=function(dfd){return 4==dfd.ioArgs.xhr.readyState};var _resHandle=function(dfd){var xhr=dfd.ioArgs.xhr;if(_d._isDocumentOk(xhr)){dfd.callback(dfd)}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err)}};dojo._ioAddQueryToUrl=function(ioArgs){if(ioArgs.query.length){ioArgs.url+=(ioArgs.url.indexOf("?")==-1?"?":"&")+ioArgs.query;ioArgs.query=null}};dojo.xhr=function(method,args,hasBody){var dfd=_d._ioSetArgs(args,_deferredCancel,_deferredOk,_deferError);var ioArgs=dfd.ioArgs;var xhr=ioArgs.xhr=_d._xhrObj(ioArgs.args);if(!xhr){dfd.cancel();return dfd}if("postData" in args){ioArgs.query=args.postData}else{if("putData" in args){ioArgs.query=args.putData}else{if("rawBody" in args){ioArgs.query=args.rawBody}else{if((arguments.length>2&&!hasBody)||"POST|PUT".indexOf(method.toUpperCase())==-1){_d._ioAddQueryToUrl(ioArgs)}}}}xhr.open(method,ioArgs.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr]}else{if(args.headers[hdr]){xhr.setRequestHeader(hdr,args.headers[hdr])}}}}xhr.setRequestHeader("Content-Type",args.contentType||_defaultContentType);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest")}_d._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(ioArgs.query)}else{try{xhr.send(ioArgs.query)}catch(e){ioArgs.error=e;dfd.cancel()}}_d._ioWatch(dfd,_validCheck,_ioCheck,_resHandle);xhr=null;return dfd};dojo.xhrGet=function(args){return _d.xhr("GET",args)};dojo.rawXhrPost=dojo.xhrPost=function(args){return _d.xhr("POST",args,true)};dojo.rawXhrPut=dojo.xhrPut=function(args){return _d.xhr("PUT",args,true)};dojo.xhrDelete=function(args){return _d.xhr("DELETE",args)}})()}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;var _mixin=d._mixin;dojo._Line=function(start,end){this.start=start;this.end=end};dojo._Line.prototype.getValue=function(n){return((this.end-this.start)*n)+this.start};dojo.Animation=function(args){_mixin(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1])}};d._Animation=d.Animation;d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _p=this._percent,_e=this.easing;return _e?_e(_p):_p},_fire:function(evt,args){var a=args||[];if(this[evt]){if(d.config.debugAtAllCosts){this[evt].apply(this,a)}else{try{this[evt].apply(this,a)}catch(e){console.error("exception in animation handler for:",evt);console.error(e)}}}return this},play:function(delay,gotoStart){var _t=this;if(_t._delayTimer){_t._clearTimer()}if(gotoStart){_t._stopTimer();_t._active=_t._paused=false;_t._percent=0}else{if(_t._active&&!_t._paused){return _t}}_t._fire("beforeBegin",[_t.node]);var de=delay||_t.delay,_p=dojo.hitch(_t,"_play",gotoStart);if(de>0){_t._delayTimer=setTimeout(_p,de);return _t}_p();return _t},_play:function(gotoStart){var _t=this;if(_t._delayTimer){_t._clearTimer()}_t._startTime=new Date().valueOf();if(_t._paused){_t._startTime-=_t.duration*_t._percent}_t._endTime=_t._startTime+_t.duration;_t._active=true;_t._paused=false;var value=_t.curve.getValue(_t._getStep());if(!_t._percent){if(!_t._startRepeatCount){_t._startRepeatCount=_t.repeat}_t._fire("onBegin",[value])}_t._fire("onPlay",[value]);_t._cycle();return _t},pause:function(){var _t=this;if(_t._delayTimer){_t._clearTimer()}_t._stopTimer();if(!_t._active){return _t}_t._paused=true;_t._fire("onPause",[_t.curve.getValue(_t._getStep())]);return _t},gotoPercent:function(percent,andPlay){var _t=this;_t._stopTimer();_t._active=_t._paused=true;_t._percent=percent;if(andPlay){_t.play()}return _t},stop:function(gotoEnd){var _t=this;if(_t._delayTimer){_t._clearTimer()}if(!_t._timer){return _t}_t._stopTimer();if(gotoEnd){_t._percent=1}_t._fire("onStop",[_t.curve.getValue(_t._getStep())]);_t._active=_t._paused=false;return _t},status:function(){if(this._active){return this._paused?"paused":"playing"}return"stopped"},_cycle:function(){var _t=this;if(_t._active){var curr=new Date().valueOf();var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);if(step>=1){step=1}_t._percent=step;if(_t.easing){step=_t.easing(step)}_t._fire("onAnimate",[_t.curve.getValue(step)]);if(_t._percent<1){_t._startTimer()}else{_t._active=false;if(_t.repeat>0){_t.repeat--;_t.play(null,true)}else{if(_t.repeat==-1){_t.play(null,true)}else{if(_t._startRepeatCount){_t.repeat=_t._startRepeatCount;_t._startRepeatCount=0}}}_t._percent=0;_t._fire("onEnd",[_t.node]);!_t.repeat&&_t._stopTimer()}}return _t},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var ctr=0,_globalTimerList=[],timer=null,runner={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(runner,"run",this,"_cycle");ctr++}if(!timer){timer=setInterval(d.hitch(runner,"run"),this.rate)}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--}if(ctr<=0){clearInterval(timer);timer=null;ctr=0}}});var _makeFadeable=d.isIE?function(node){var ns=node.style;if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto"}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var fArgs=_mixin({properties:{}},args),props=(fArgs.properties.opacity={});props.start=!("start" in fArgs)?function(){return +d.style(fArgs.node,"opacity")||0}:fArgs.start;props.end=fArgs.end;var anim=d.animateProperty(fArgs);d.connect(anim,"beforeBegin",d.partial(_makeFadeable,fArgs.node));return anim};dojo.fadeIn=function(args){return d._fade(_mixin({end:1},args))};dojo.fadeOut=function(args){return d._fade(_mixin({end:0},args))};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2)};var PropLine=function(properties){this._properties=properties;for(var p in properties){var prop=properties[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color()}}};PropLine.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],start=prop.start;if(start instanceof d.Color){ret[p]=d.blendColors(start,prop.end,r,prop.tempColor).toCss()}else{if(!d.isArray(start)){ret[p]=((prop.end-start)*r)+start+(p!="opacity"?prop.units||"px":0)}}}return ret};dojo.animateProperty=function(args){var n=args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing}var anim=new d.Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block"}var prop=this.properties[p];if(d.isFunction(prop)){prop=prop(n)}prop=pm[p]=_mixin({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start(n)}if(d.isFunction(prop.end)){prop.end=prop.end(n)}var isColor=(p.toLowerCase().indexOf("color")>=0);function getStyle(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v}v=d.style(node,p);return(p=="opacity")?+v:(isColor?v:parseFloat(v))}if(!("end" in prop)){prop.end=getStyle(n,p)}else{if(!("start" in prop)){prop.start=getStyle(n,p)}}if(isColor){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end)}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start)}}this.curve=new PropLine(pm)});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim};dojo.anim=function(node,properties,duration,easing,onEnd,delay){return d.animateProperty({node:node,duration:duration||d.Animation.prototype.duration,properties:properties,easing:easing,onEnd:onEnd}).play(delay||0)}})()}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.forEach(dojo.config.require,function(i){dojo.require(i)})}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(formattedString,defaultTime){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/}var match=dojo.date.stamp._isoRegExp.exec(formattedString),result=null;if(match){match.shift();if(match[1]){match[1]--}if(match[6]){match[6]*=1000}if(defaultTime){defaultTime=new Date(defaultTime);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return defaultTime["get"+prop]()}).forEach(function(value,index){if(match[index]===undefined){match[index]=value}})}result=new Date(match[0]||1970,match[1]||0,match[2]||1,match[3]||0,match[4]||0,match[5]||0,match[6]||0);if(match[0]<100){result.setFullYear(match[0]||1970)}var offset=0,zoneSign=match[7]&&match[7].charAt(0);if(zoneSign!="Z"){offset=((match[8]||0)*60)+(Number(match[9])||0);if(zoneSign!="-"){offset*=-1}}if(zoneSign){offset-=result.getTimezoneOffset()}if(offset){result.setTime(result.getTime()+offset*60000)}}return result};dojo.date.stamp.toISOString=function(dateObject,options){var _=function(n){return(n<10)?"0"+n:n};options=options||{};var formattedDate=[],getter=options.zulu?"getUTC":"get",date="";if(options.selector!="time"){var year=dateObject[getter+"FullYear"]();date=["0000".substr((year+"").length)+year,_(dateObject[getter+"Month"]()+1),_(dateObject[getter+"Date"]())].join("-")}formattedDate.push(date);if(options.selector!="date"){var time=[_(dateObject[getter+"Hours"]()),_(dateObject[getter+"Minutes"]()),_(dateObject[getter+"Seconds"]())].join(":");var millis=dateObject[getter+"Milliseconds"]();if(options.milliseconds){time+="."+(millis<100?"0":"")+_(millis)}if(options.zulu){time+="Z"}else{if(options.selector!="time"){var timezoneOffset=dateObject.getTimezoneOffset();var absOffset=Math.abs(timezoneOffset);time+=(timezoneOffset>0?"-":"+")+_(Math.floor(absOffset/60))+":"+_(absOffset%60)}}formattedDate.push(time)}return formattedDate.join("T")}}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function val2type(value){if(d.isString(value)){return"string"}if(typeof value=="number"){return"number"}if(typeof value=="boolean"){return"boolean"}if(d.isFunction(value)){return"function"}if(d.isArray(value)){return"array"}if(value instanceof Date){return"date"}if(value instanceof d._Url){return"url"}return"object"}function str2obj(value,type){switch(type){case"string":return value;case"number":return value.length?Number(value):NaN;case"boolean":return typeof value=="boolean"?value:!(value.toLowerCase()=="false");case"function":if(d.isFunction(value)){value=value.toString();value=d.trim(value.substring(value.indexOf("{")+1,value.length-1))}try{if(value.search(/[^\w\.]+/i)!=-1){return new Function(value)}else{return d.getObject(value,false)}}catch(e){return new Function()}case"array":return value?value.split(/\s*,\s*/):[];case"date":switch(value){case"":return new Date("");case"now":return new Date();default:return d.date.stamp.fromISOString(value)}case"url":return d.baseUrl+value;default:return d.fromJson(value)}}var instanceClasses={};dojo.connect(dojo,"extend",function(){instanceClasses={}});function getClassInfo(className){if(!instanceClasses[className]){var cls=d.getObject(className);if(!d.isFunction(cls)){throw new Error("Could not load class '"+className+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?")}var proto=cls.prototype;var params={},dummyClass={};for(var name in proto){if(name.charAt(0)=="_"){continue}if(name in dummyClass){continue}var defVal=proto[name];params[name]=val2type(defVal)}instanceClasses[className]={cls:cls,params:params}}return instanceClasses[className]}this._functionFromScript=function(script){var preamble="";var suffix="";var argsStr=script.getAttribute("args");if(argsStr){d.forEach(argsStr.split(/\s*,\s*/),function(part,idx){preamble+="var "+part+" = arguments["+idx+"]; "})}var withStr=script.getAttribute("with");if(withStr&&withStr.length){d.forEach(withStr.split(/\s*,\s*/),function(part){preamble+="with("+part+"){";suffix+="}"})}return new Function(preamble+script.innerHTML+suffix)};this.instantiate=function(nodes,mixin,args){var thelist=[],dp=dojo.parser;mixin=mixin||{};args=args||{};d.forEach(nodes,function(node){if(!node){return}var type=dp._attrName in mixin?mixin[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return}var clsInfo=getClassInfo(type),clazz=clsInfo.cls,ps=clazz._noScript||clazz.prototype._noScript;var params={},attributes=node.attributes;for(var name in clsInfo.params){var item=name in mixin?{value:mixin[name],specified:true}:attributes.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue}var value=item.value;switch(name){case"class":value="className" in mixin?mixin.className:node.className;break;case"style":value="style" in mixin?mixin.style:(node.style&&node.style.cssText)}var _type=clsInfo.params[name];if(typeof value=="string"){params[name]=str2obj(value,_type)}else{params[name]=value}}if(!ps){var connects=[],calls=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(script){var event=script.getAttribute("event"),type=script.getAttribute("type"),nf=d.parser._functionFromScript(script);if(event){if(type=="dojo/connect"){connects.push({event:event,func:nf})}else{params[event]=nf}}else{calls.push(nf)}})}var markupFactory=clazz.markupFactory||clazz.prototype&&clazz.prototype.markupFactory;var instance=markupFactory?markupFactory(params,node,clazz):new clazz(params,node);thelist.push(instance);var jsname=node.getAttribute("jsId");if(jsname){d.setObject(jsname,instance)}if(!ps){d.forEach(connects,function(connect){d.connect(instance,connect.event,null,connect.func)});d.forEach(calls,function(func){func.call(instance)})}});if(!mixin._started){d.forEach(thelist,function(instance){if(!args.noStart&&instance&&instance.startup&&!instance._started&&(!instance.getParent||!instance.getParent())){instance.startup()}})}return thelist};this.parse=function(rootNode,args){var root;if(!args&&rootNode&&rootNode.rootNode){args=rootNode;root=args.rootNode}else{root=rootNode}var list=d.query(this._query,root);return this.instantiate(list,null,args)}}();(function(){var parseRunner=function(){if(dojo.config.parseOnLoad){dojo.parser.parse()}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,parseRunner)}else{dojo._loaders.unshift(parseRunner)}})()}if(!dojo._hasResource["dojo.rpc.RpcService"]){dojo._hasResource["dojo.rpc.RpcService"]=true;dojo.provide("dojo.rpc.RpcService");dojo.declare("dojo.rpc.RpcService",null,{constructor:function(args){if(args){if((dojo.isString(args))||(args instanceof dojo._Url)){if(args instanceof dojo._Url){var url=args+""}else{url=args}var def=dojo.xhrGet({url:url,handleAs:"json-comment-optional",sync:true});def.addCallback(this,"processSmd");def.addErrback(function(){throw new Error("Unable to load SMD from "+args)})}else{if(args.smdStr){this.processSmd(dojo.eval("("+args.smdStr+")"))}else{if(args.serviceUrl){this.serviceUrl=args.serviceUrl}this.timeout=args.timeout||3000;if("strictArgChecks" in args){this.strictArgChecks=args.strictArgChecks}this.processSmd(args)}}}},strictArgChecks:true,serviceUrl:"",parseResults:function(obj){return obj},errorCallback:function(deferredRequestHandler){return function(data){deferredRequestHandler.errback(data.message)}},resultCallback:function(deferredRequestHandler){var tf=dojo.hitch(this,function(obj){if(obj.error!=null){var err;if(typeof obj.error=="object"){err=new Error(obj.error.message);err.code=obj.error.code;err.error=obj.error.error}else{err=new Error(obj.error)}err.id=obj.id;err.errorObject=obj;deferredRequestHandler.errback(err)}else{deferredRequestHandler.callback(this.parseResults(obj))}});return tf},generateMethod:function(method,parameters,url){return dojo.hitch(this,function(){var deferredRequestHandler=new dojo.Deferred();if((this.strictArgChecks)&&(parameters!=null)&&(arguments.length!=parameters.length)){throw new Error("Invalid number of parameters for remote method.")}else{this.bind(method,dojo._toArray(arguments),deferredRequestHandler,url)}return deferredRequestHandler})},processSmd:function(object){if(object.methods){dojo.forEach(object.methods,function(m){if(m&&m.name){this[m.name]=this.generateMethod(m.name,m.parameters,m.url||m.serviceUrl||m.serviceURL);if(!dojo.isFunction(this[m.name])){throw new Error("RpcService: Failed to create"+m.name+"()")}}},this)}this.serviceUrl=object.serviceUrl||object.serviceURL;this.required=object.required;this.smd=object}})}if(!dojo._hasResource["dojo.rpc.JsonService"]){dojo._hasResource["dojo.rpc.JsonService"]=true;dojo.provide("dojo.rpc.JsonService");dojo.declare("dojo.rpc.JsonService",dojo.rpc.RpcService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(method,params){var deferred=new dojo.Deferred();this.bind(method,params,deferred);return deferred},bind:function(method,parameters,deferredRequestHandler,url){var def=dojo.rawXhrPost({url:url||this.serviceUrl,postData:this.createRequest(method,parameters),contentType:this.contentType,timeout:this.timeout,handleAs:"json-comment-optional"});def.addCallbacks(this.resultCallback(deferredRequestHandler),this.errorCallback(deferredRequestHandler))},createRequest:function(method,params){var req={params:params,method:method,id:++this.lastSubmissionId};var data=dojo.toJson(req);return data},parseResults:function(obj){if(dojo.isObject(obj)){if("result" in obj){return obj.result}if("Result" in obj){return obj.Result}if("ResultSet" in obj){return obj.ResultSet}}return obj}})}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return""}var buf=[];for(;;){if(num&1){buf.push(str)}if(!(num>>=1)){break}str+=str}return buf.join("")};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0"}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out};dojo.string.substitute=function(template,map,transform,thisObject){thisObject=thisObject||dojo.global;transform=transform?dojo.hitch(thisObject,transform):function(v){return v};return template.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(match,key,format){var value=dojo.getObject(key,false,map);if(format){value=dojo.getObject(format,false,thisObject).call(thisObject,value,key)}return transform(value,key).toString()})};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break}}return str}}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(packageName,bundleName,locale){locale=dojo.i18n.normalizeLocale(locale);var elements=locale.split("-");var module=[packageName,"nls",bundleName].join(".");var bundle=dojo._loadedModules[module];if(bundle){var localization;for(var i=elements.length;i>0;i--){var loc=elements.slice(0,i).join("_");if(bundle[loc]){localization=bundle[loc];break}}if(!localization){localization=bundle.ROOT}if(localization){var clazz=function(){};clazz.prototype=localization;return new clazz()}}throw new Error("Bundle not found: "+bundleName+" in "+packageName+" , locale="+locale)};dojo.i18n.normalizeLocale=function(locale){var result=locale?locale.toLowerCase():dojo.locale;if(result=="root"){result="ROOT"}return result};dojo.i18n._requireLocalization=function(moduleName,bundleName,locale,availableFlatLocales){var targetLocale=dojo.i18n.normalizeLocale(locale);var bundlePackage=[moduleName,"nls",bundleName].join(".");var bestLocale="";if(availableFlatLocales){var flatLocales=availableFlatLocales.split(",");for(var i=0;i<flatLocales.length;i++){if(targetLocale.indexOf(flatLocales[i])==0){if(flatLocales[i].length>bestLocale.length){bestLocale=flatLocales[i]}}}if(!bestLocale){bestLocale="ROOT"}}var tempLocale=availableFlatLocales?bestLocale:targetLocale;var bundle=dojo._loadedModules[bundlePackage];var localizedBundle=null;if(bundle){if(dojo.config.localizationComplete&&bundle._built){return}var jsLoc=tempLocale.replace(/-/g,"_");var translationPackage=bundlePackage+"."+jsLoc;localizedBundle=dojo._loadedModules[translationPackage]}if(!localizedBundle){bundle=dojo.provide(bundlePackage);var syms=dojo._getModuleSymbols(moduleName);var modpath=syms.concat("nls").join("/");var parent;dojo.i18n._searchLocalePath(tempLocale,availableFlatLocales,function(loc){var jsLoc=loc.replace(/-/g,"_");var translationPackage=bundlePackage+"."+jsLoc;var loaded=false;if(!dojo._loadedModules[translationPackage]){dojo.provide(translationPackage);var module=[modpath];if(loc!="ROOT"){module.push(loc)}module.push(bundleName);var filespec=module.join("/")+".js";loaded=dojo._loadPath(filespec,null,function(hash){var clazz=function(){};clazz.prototype=parent;bundle[jsLoc]=new clazz();for(var j in hash){bundle[jsLoc][j]=hash[j]}})}else{loaded=true}if(loaded&&bundle[jsLoc]){parent=bundle[jsLoc]}else{bundle[jsLoc]=parent}if(availableFlatLocales){return true}})}if(availableFlatLocales&&targetLocale!=bestLocale){bundle[targetLocale.replace(/-/g,"_")]=bundle[bestLocale.replace(/-/g,"_")]}};(function(){var extra=dojo.config.extraLocale;if(extra){if(!extra instanceof Array){extra=[extra]}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,locale,availableFlatLocales){req(m,b,locale,availableFlatLocales);if(locale){return}for(var i=0;i<extra.length;i++){req(m,b,extra[i],availableFlatLocales)}}}})();dojo.i18n._searchLocalePath=function(locale,down,searchFunc){locale=dojo.i18n.normalizeLocale(locale);var elements=locale.split("-");var searchlist=[];for(var i=elements.length;i>0;i--){searchlist.push(elements.slice(0,i).join("-"))}searchlist.push(false);if(down){searchlist.reverse()}for(var j=searchlist.length-1;j>=0;j--){var loc=searchlist[j]||"ROOT";var stop=searchFunc(loc);if(stop){break}}};dojo.i18n._preloadLocalizations=function(bundlePrefix,localesGenerated){function preload(locale){locale=dojo.i18n.normalizeLocale(locale);dojo.i18n._searchLocalePath(locale,true,function(loc){for(var i=0;i<localesGenerated.length;i++){if(localesGenerated[i]==loc){dojo.require(bundlePrefix+"_"+loc);return true}}return false})}preload();var extra=dojo.config.extraLocale||[];for(var i=0;i<extra.length;i++){preload(extra[i])}}}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(dateObject){var month=dateObject.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(month==1&&dojo.date.isLeapYear(dateObject)){return 29}return days[month]};dojo.date.isLeapYear=function(dateObject){var year=dateObject.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100))};dojo.date.getTimezoneName=function(dateObject){var str=dateObject.toString();var tz="";var match;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"))}else{var pat=/([A-Z\/]+) \d{4}$/;if((match=str.match(pat))){tz=match[1]}else{str=dateObject.toLocaleString();pat=/ ([A-Z\/]+)$/;if((match=str.match(pat))){tz=match[1]}}}return(tz=="AM"||tz=="PM")?"":tz};dojo.date.compare=function(date1,date2,portion){date1=new Date(+date1);date2=new Date(+(date2||new Date()));if(portion=="date"){date1.setHours(0,0,0,0);date2.setHours(0,0,0,0)}else{if(portion=="time"){date1.setFullYear(0,0,0);date2.setFullYear(0,0,0)}}if(date1>date2){return 1}if(date1<date2){return -1}return 0};dojo.date.add=function(date,interval,amount){var sum=new Date(+date);var fixOvershoot=false;var property="Date";switch(interval){case"day":break;case"weekday":var days,weeks;var mod=amount%5;if(!mod){days=(amount>0)?5:-5;weeks=(amount>0)?((amount-5)/5):((amount+5)/5)}else{days=mod;weeks=parseInt(amount/5)}var strt=date.getDay();var adj=0;if(strt==6&&amount>0){adj=1}else{if(strt==0&&amount<0){adj=-1}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(amount>0)?2:-2}amount=(7*weeks)+days+adj;break;case"year":property="FullYear";fixOvershoot=true;break;case"week":amount*=7;break;case"quarter":amount*=3;case"month":fixOvershoot=true;property="Month";break;default:property="UTC"+interval.charAt(0).toUpperCase()+interval.substring(1)+"s"}if(property){sum["set"+property](sum["get"+property]()+amount)}if(fixOvershoot&&(sum.getDate()<date.getDate())){sum.setDate(0)}return sum};dojo.date.difference=function(date1,date2,interval){date2=date2||new Date();interval=interval||"day";var yearDiff=date2.getFullYear()-date1.getFullYear();var delta=1;switch(interval){case"quarter":var m1=date1.getMonth();var m2=date2.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(yearDiff*4);delta=q2-q1;break;case"weekday":var days=Math.round(dojo.date.difference(date1,date2,"day"));var weeks=parseInt(dojo.date.difference(date1,date2,"week"));var mod=days%7;if(mod==0){days=weeks*5}else{var adj=0;var aDay=date1.getDay();var bDay=date2.getDay();weeks=parseInt(days/7);mod=days%7;var dtMark=new Date(date1);dtMark.setDate(dtMark.getDate()+(weeks*7));var dayMark=dtMark.getDay();if(days>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}}else{if(days<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}}}days+=adj;days-=(weeks*2)}delta=days;break;case"year":delta=yearDiff;break;case"month":delta=(date2.getMonth()-date1.getMonth())+(yearDiff*12);break;case"week":delta=parseInt(dojo.date.difference(date1,date2,"day")/7);break;case"day":delta/=24;case"hour":delta/=60;case"minute":delta/=60;case"second":delta/=1000;case"millisecond":delta*=date2.getTime()-date1.getTime()}return Math.round(delta)}}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,except){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(except&&except.indexOf(ch)!=-1){return ch}return"\\"+ch})};dojo.regexp.buildGroupRE=function(arr,re,nonCapture){if(!(arr instanceof Array)){return re(arr)}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]))}return dojo.regexp.group(b.join("|"),nonCapture)};dojo.regexp.group=function(expression,nonCapture){return"("+(nonCapture?"?:":"")+expression+")"}}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");(function(){var loadEvent=dojo.isIE?"onreadystatechange":"load",readyRegExp=/complete|loaded/;dojo.io.script={get:function(args){var dfd=this._makeScriptDeferred(args);var ioArgs=dfd.ioArgs;dojo._ioAddQueryToUrl(ioArgs);dojo._ioNotifyStart(dfd);if(this._canAttach(ioArgs)){var node=this.attach(ioArgs.id,ioArgs.url,args.frameDoc);if(!ioArgs.jsonp&&!ioArgs.args.checkString){var handle=dojo.connect(node,loadEvent,function(evt){if(evt.type=="load"||readyRegExp.test(node.readyState)){dojo.disconnect(handle);ioArgs.scriptLoaded=evt}})}}dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd},attach:function(id,url,frameDocument){var doc=(frameDocument||dojo.doc);var element=doc.createElement("script");element.type="text/javascript";element.src=url;element.id=id;element.charset="utf-8";return doc.getElementsByTagName("head")[0].appendChild(element)},remove:function(id,frameDocument){dojo.destroy(dojo.byId(id,frameDocument));if(this["jsonp_"+id]){delete this["jsonp_"+id]}},_makeScriptDeferred:function(args){var dfd=dojo._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);var ioArgs=dfd.ioArgs;ioArgs.id=dojo._scopeName+"IoScript"+(this._counter++);ioArgs.canDelete=false;ioArgs.jsonp=args.callbackParamName||args.jsonp;if(ioArgs.jsonp){ioArgs.query=ioArgs.query||"";if(ioArgs.query.length>0){ioArgs.query+="&"}ioArgs.query+=ioArgs.jsonp+"="+(args.frameDoc?"parent.":"")+dojo._scopeName+".io.script.jsonp_"+ioArgs.id+"._jsonpCallback";ioArgs.frameDoc=args.frameDoc;ioArgs.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+ioArgs.id]=dfd}return dfd},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._addDeadScript(dfd.ioArgs)}},_deferredOk:function(dfd){var ioArgs=dfd.ioArgs;if(ioArgs.canDelete){dojo.io.script._addDeadScript(ioArgs)}return ioArgs.json||ioArgs.scriptLoaded||ioArgs},_deferredError:function(error,dfd){if(dfd.ioArgs.canDelete){if(error.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id,dfd.ioArgs.frameDoc)}else{dojo.io.script._addDeadScript(dfd.ioArgs)}}console.log("dojo.io.script error",error);return error},_deadScripts:[],_counter:1,_addDeadScript:function(ioArgs){dojo.io.script._deadScripts.push({id:ioArgs.id,frameDoc:ioArgs.frameDoc});ioArgs.frameDoc=null},_validCheck:function(dfd){var _self=dojo.io.script;var deadScripts=_self._deadScripts;if(deadScripts&&deadScripts.length>0){for(var i=0;i<deadScripts.length;i++){_self.remove(deadScripts[i].id,deadScripts[i].frameDoc);deadScripts[i].frameDoc=null}dojo.io.script._deadScripts=[]}return true},_ioCheck:function(dfd){var ioArgs=dfd.ioArgs;if(ioArgs.json||(ioArgs.scriptLoaded&&!ioArgs.args.checkString)){return true}var checkString=ioArgs.args.checkString;if(checkString&&eval("typeof("+checkString+") != 'undefined'")){return true}return false},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd)}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"))}},_canAttach:function(ioArgs){return true},_jsonpCallback:function(json){this.ioArgs.json=json}}})()}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true))},show:function(delay){return this.showAnim.play(delay||0)},hide:function(delay){return this.hideAnim.play(delay||0)}})}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_baseObj={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[])}return this}};var _chain=function(animations){this._index=-1;this._animations=animations||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay}},this)};d.extend(_chain,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd")}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true)}},play:function(delay,gotoStart){if(!this._current){this._current=this._animations[this._index=0]}if(!gotoStart&&this._current.status()=="playing"){return this}var beforeBegin=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),onBegin=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments)}),onPlay=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(beforeBegin);d.disconnect(onBegin);d.disconnect(onPlay)});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx)}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx)}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e)});this._current.pause()}return this},gotoPercent:function(percent,andPlay){this.pause();var offset=this.duration*percent;this._current=null;d.some(this._animations,function(a){if(a.duration<=offset){this._current=a;return true}offset-=a.duration;return false});if(this._current){this._current.gotoPercent(offset/this._current.duration,andPlay)}return this},stop:function(gotoEnd){if(this._current){if(gotoEnd){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true)}this._current=this._animations[this._index]}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx)}if(this._onEndCtx){d.disconnect(this._onEndCtx)}}});d.extend(_chain,_baseObj);dojo.fx.chain=function(animations){return new _chain(animations)};var _combine=function(animations){this._animations=animations||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(animations,function(a){var duration=a.duration;if(a.delay){duration+=a.delay}if(this.duration<duration){this.duration=duration}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments)}))})};d.extend(_combine,{_doAction:function(action,args){d.forEach(this._animations,function(a){a[action].apply(a,args)});return this},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd")}},_call:function(action,args){var t=this._pseudoAnimation;t[action].apply(t,args)},play:function(delay,gotoStart){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(percent,andPlay){var ms=this.duration*percent;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),andPlay)});this._call("gotoPercent",arguments);return this},stop:function(gotoEnd){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){d.forEach(this._connects,dojo.disconnect)}});d.extend(_combine,_baseObj);dojo.fx.combine=function(animations){return new _combine(animations)};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1}else{var height=d.style(node,"height");return Math.max(height,1)}},end:function(){return node.scrollHeight}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o});return anim};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display=""});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none"});return anim};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px"}}})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim}})()}if(!dojo._hasResource["dojox.fx._base"]){dojo._hasResource["dojox.fx._base"]=true;dojo.provide("dojox.fx._base");dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});dojox.fx.sizeTo=function(args){var node=args.node=dojo.byId(args.node),abs="absolute";var method=args.method||"chain";if(!args.duration){args.duration=500}if(method=="chain"){args.duration=Math.floor(args.duration/2)}var top,newTop,left,newLeft,width,height=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);width=(w=="auto"?0:parseInt(w));height=(h=="auto"?0:parseInt(h));newLeft=left-Math.floor((args.width-width)/2);newTop=top-Math.floor((args.height-height)/2);if(pos!=abs&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position=abs;n.style.top=top+"px";n.style.left=left+"px"}}})(node);var anim1=dojo.animateProperty(dojo.mixin({properties:{height:function(){init();return{end:args.height||0,start:height}},top:function(){return{start:top,end:newTop}}}},args));var anim2=dojo.animateProperty(dojo.mixin({properties:{width:function(){return{start:width,end:args.width||0}},left:function(){return{start:left,end:newLeft}}}},args));var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([anim1,anim2]);return anim};dojox.fx.slideBy=function(args){var node=args.node=dojo.byId(args.node),top,left;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px"}}})(node);init();var _anim=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));dojo.connect(_anim,"beforeBegin",_anim,init);return _anim};dojox.fx.crossFade=function(args){var node1=args.nodes[0]=dojo.byId(args.nodes[0]),op1=dojo.style(node1,"opacity"),node2=args.nodes[1]=dojo.byId(args.nodes[1]),op2=dojo.style(node2,"opacity");var _anim=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:node1},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:node2},args))]);return _anim};dojox.fx.highlight=function(args){var node=args.node=dojo.byId(args.node);args.duration=args.duration||400;var startColor=args.color||"#ffff99",endColor=dojo.style(node,"backgroundColor");if(endColor=="rgba(0, 0, 0, 0)"){endColor="transparent"}var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:startColor,end:endColor}}},args));if(endColor=="transparent"){dojo.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=endColor})}return anim};dojox.fx.wipeTo=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),endVal=args[dir],props={};props[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1}else{var now=dojo.style(node,dir);return Math.max(now,1)}},end:endVal};var anim=dojo.animateProperty(dojo.mixin({properties:props},args));return anim}}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(widget){if(this._hash[widget.id]){throw new Error("Tried to register widget with id=="+widget.id+" but that id is already registered")}this._hash[widget.id]=widget;this.length++},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--}},forEach:function(func,thisObj){thisObj=thisObj||dojo.global;var i=0,id;for(id in this._hash){func.call(thisObj,this._hash[id],i++,this._hash)}return this},filter:function(filter,thisObj){thisObj=thisObj||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(filter.call(thisObj,w,i++,this._hash)){res.add(w)}}return res},byId:function(id){return this._hash[id]},byClass:function(cls){var res=new dijit.WidgetSet(),id,widget;for(id in this._hash){widget=this._hash[id];if(widget.declaredClass==cls){res.add(widget)}}return res},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id])}return ar},map:function(func,thisObj){return dojo.map(this.toArray(),func,thisObj)},every:function(func,thisObj){thisObj=thisObj||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(thisObj,this._hash[i],x++,this._hash)){return false}}return true},some:function(func,thisObj){thisObj=thisObj||dojo.global;var x=0,i;for(i in this._hash){if(func.call(thisObj,this._hash[i],x++,this._hash)){return true}}return false}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(widgetType){var id;do{id=widgetType+"_"+(widgetType in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[widgetType]:dijit._widgetTypeCtr[widgetType]=0)}while(dijit.byId(id));return id};dijit.findWidgets=function(root){var outAry=[];function getChildrenHelper(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var widgetId=node.getAttribute("widgetId");if(widgetId){var widget=dijit.byId(widgetId);outAry.push(widget)}else{getChildrenHelper(node)}}}}getChildrenHelper(root);return outAry};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(widget){if(!widget._destroyed){if(widget.destroyRecursive){widget.destroyRecursive()}else{if(widget.destroy){widget.destroy()}}}})};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll()})}dijit.byId=function(id){return typeof id=="string"?dijit.registry._hash[id]:id};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"))};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return dijit.byId(id)}node=node.parentNode}return null};dijit._isElementShown=function(elem){var style=dojo.style(elem);return(style.visibility!="hidden")&&(style.visibility!="collapsed")&&(style.display!="none")&&(dojo.attr(elem,"type")!="hidden")};dijit.isTabNavigable=function(elem){if(dojo.attr(elem,"disabled")){return false}else{if(dojo.hasAttr(elem,"tabIndex")){return dojo.attr(elem,"tabIndex")>=0}else{switch(elem.nodeName.toLowerCase()){case"a":return dojo.hasAttr(elem,"href");case"area":case"button":case"input":case"object":case"select":case"textarea":return true;case"iframe":if(dojo.isMoz){return elem.contentDocument.designMode=="on"}else{if(dojo.isWebKit){var doc=elem.contentDocument,body=doc&&doc.body;return body&&body.contentEditable=="true"}else{doc=elem.contentWindow.document;body=doc&&doc.body;return body&&body.firstChild&&body.firstChild.contentEditable=="true"}}default:return elem.contentEditable=="true"}}}};dijit._getTabNavigable=function(root){var first,last,lowest,lowestTabindex,highest,highestTabindex;var walkTree=function(parent){dojo.query("> *",parent).forEach(function(child){var isShown=dijit._isElementShown(child);if(isShown&&dijit.isTabNavigable(child)){var tabindex=dojo.attr(child,"tabIndex");if(!dojo.hasAttr(child,"tabIndex")||tabindex==0){if(!first){first=child}last=child}else{if(tabindex>0){if(!lowest||tabindex<lowestTabindex){lowestTabindex=tabindex;lowest=child}if(!highest||tabindex>=highestTabindex){highestTabindex=tabindex;highest=child}}}}if(isShown&&child.nodeName.toUpperCase()!="SELECT"){walkTree(child)}})};if(dijit._isElementShown(root)){walkTree(root)}return{first:first,last:last,lowest:lowest,highest:highest}};dijit.getFirstInTabbingOrder=function(root){var elems=dijit._getTabNavigable(dojo.byId(root));return elems.lowest?elems.lowest:elems.first};dijit.getLastInTabbingOrder=function(root){var elems=dijit._getTabNavigable(dojo.byId(root));return elems.last?elems.last:elems.highest};dijit.defaultDuration=dojo.config.defaultDuration||200}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return{isCollapsed:(sel.end<=sel.start),mark:sel}}}bm={isCollapsed:true}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()}}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return{isCollapsed:true,mark:null}}else{rg=sel.createRange();return{isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}}}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length)}catch(e){bm.isCollapsed=true;return bm}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++))}}else{bm.isCollapsed=true;bm.mark=null}}else{bm.mark=rg.getBookmark()}}else{console.warn("No idea how to store the current selection for this browser!")}}return bm},moveToBookmark:function(bookmark){var _doc=dojo.doc,mark=bookmark.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end}else{sel.removeAllRanges();sel.addRange(mark)}}else{console.warn("No idea how to restore selection for this browser!")}}else{if(_doc.selection&&mark){var rg;if(mark.pRange){rg=mark.range}else{if(dojo.isArray(mark)){rg=_doc.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n)})}else{rg=_doc.body.createTextRange();rg.moveToBookmark(mark)}}rg.select()}}}},getFocus:function(menu,openedForWindow){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return{node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(openedForWindow||dojo.global,dijit.getBookmark),openedForWindow:openedForWindow}},focus:function(handle){if(!handle){return}var node="node" in handle?handle.node:handle,bookmark=handle.bookmark,openedForWindow=handle.openedForWindow,collapsed=bookmark?bookmark.isCollapsed:false;if(node){var focusNode=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(focusNode&&focusNode.focus){try{focusNode.focus()}catch(e){}}dijit._onFocusNode(node)}if(bookmark&&dojo.withGlobal(openedForWindow||dojo.global,dijit.isCollapsed)&&!collapsed){if(openedForWindow){openedForWindow.focus()}try{dojo.withGlobal(openedForWindow||dojo.global,dijit.moveToBookmark,null,[bookmark])}catch(e2){}}},_activeStack:[],registerIframe:function(iframe){return dijit.registerWin(iframe.contentWindow,iframe)},unregisterIframe:function(handle){dijit.unregisterWin(handle)},registerWin:function(targetWindow,effectiveNode){var mousedownListener=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false},0);dijit._onTouchNode(effectiveNode||evt.target||evt.srcElement,"mouse")};var doc=dojo.isIE?targetWindow.document.documentElement:targetWindow.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",mousedownListener);var activateListener=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(effectiveNode||evt.srcElement)}else{dijit._onTouchNode(effectiveNode||evt.srcElement)}};doc.attachEvent("onactivate",activateListener);var deactivateListener=function(evt){dijit._onBlurNode(effectiveNode||evt.srcElement)};doc.attachEvent("ondeactivate",deactivateListener);return function(){doc.detachEvent("onmousedown",mousedownListener);doc.detachEvent("onactivate",activateListener);doc.detachEvent("ondeactivate",deactivateListener);doc=null}}else{doc.addEventListener("mousedown",mousedownListener,true);var focusListener=function(evt){dijit._onFocusNode(effectiveNode||evt.target)};doc.addEventListener("focus",focusListener,true);var blurListener=function(evt){dijit._onBlurNode(effectiveNode||evt.target)};doc.addEventListener("blur",blurListener,true);return function(){doc.removeEventListener("mousedown",mousedownListener,true);doc.removeEventListener("focus",focusListener,true);doc.removeEventListener("blur",blurListener,true);doc=null}}}},unregisterWin:function(handle){handle&&handle()},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer)}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null},100)},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer}var newStack=[];try{while(node){var popupParent=dojo.attr(node,"dijitPopupParent");if(popupParent){node=dijit.byId(popupParent).domNode}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break}node=dijit.getDocumentWindow(node.ownerDocument).frameElement}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){newStack.unshift(id)}node=node.parentNode}}}}catch(e){}dijit._setStack(newStack,by)},_onFocusNode:function(node){if(!node){return}if(node.nodeType==9){return}dijit._onTouchNode(node);if(node==dijit._curFocus){return}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus}dijit._curFocus=node;dojo.publish("focusNode",[node])},_setStack:function(newStack,by){var oldStack=dijit._activeStack;dijit._activeStack=newStack;for(var nCommon=0;nCommon<Math.min(oldStack.length,newStack.length);nCommon++){if(oldStack[nCommon]!=newStack[nCommon]){break}}var widget;for(var i=oldStack.length-1;i>=nCommon;i--){widget=dijit.byId(oldStack[i]);if(widget){widget._focused=false;widget._hasBeenBlurred=true;if(widget._onBlur){widget._onBlur(by)}if(widget._setStateClass){widget._setStateClass()}dojo.publish("widgetBlur",[widget,by])}}for(i=nCommon;i<newStack.length;i++){widget=dijit.byId(newStack[i]);if(widget){widget._focused=true;if(widget._onFocus){widget._onFocus(by)}if(widget._setStateClass){widget._setStateClass()}dojo.publish("widgetFocus",[widget,by])}}}});dojo.addOnLoad(function(){var handle=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(handle);handle=null})}})}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(returnWrappers){this.pairs=[];this.returnWrappers=returnWrappers||false};dojo.extend(dojo.AdapterRegistry,{register:function(name,check,wrap,directReturn,override){this.pairs[((override)?"unshift":"push")]([name,check,wrap,directReturn])},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2]}else{return pair[2].apply(this,arguments)}}}throw new Error("No match found")},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true}}return false}})}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var scrollRoot=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var scroll=dojo._docScroll();return{w:scrollRoot.clientWidth,h:scrollRoot.clientHeight,l:scroll.x,t:scroll.y}};dijit.placeOnScreen=function(node,pos,corners,padding){var choices=dojo.map(corners,function(corner){var c={corner:corner,pos:{x:pos.x,y:pos.y}};if(padding){c.pos.x+=corner.charAt(1)=="L"?padding.x:-padding.x;c.pos.y+=corner.charAt(0)=="T"?padding.y:-padding.y}return c});return dijit._place(node,choices)};dijit._place=function(node,choices,layoutNode){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node)}var best=null;dojo.some(choices,function(choice){var corner=choice.corner;var pos=choice.pos;if(layoutNode){layoutNode(node,choice.aroundCorner,corner)}var style=node.style;var oldDisplay=style.display;var oldVis=style.visibility;style.visibility="hidden";style.display="";var mb=dojo.marginBox(node);style.display=oldDisplay;style.visibility=oldVis;var startX=Math.max(view.l,corner.charAt(1)=="L"?pos.x:(pos.x-mb.w)),startY=Math.max(view.t,corner.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,corner.charAt(1)=="L"?(startX+mb.w):pos.x),endY=Math.min(view.t+view.h,corner.charAt(0)=="T"?(startY+mb.h):pos.y),width=endX-startX,height=endY-startY,overflow=(mb.w-width)+(mb.h-height);if(best==null||overflow<best.overflow){best={corner:corner,aroundCorner:choice.aroundCorner,x:startX,y:startY,w:width,h:height,overflow:overflow}}return !overflow});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&layoutNode){layoutNode(node,best.aroundCorner,best.corner)}return best};dijit.placeOnScreenAroundNode=function(node,aroundNode,aroundCorners,layoutNode){aroundNode=dojo.byId(aroundNode);var oldDisplay=aroundNode.style.display;aroundNode.style.display="";var aroundNodePos=dojo.position(aroundNode,true);aroundNode.style.display=oldDisplay;return dijit._placeOnScreenAroundRect(node,aroundNodePos.x,aroundNodePos.y,aroundNodePos.w,aroundNodePos.h,aroundCorners,layoutNode)};dijit.placeOnScreenAroundRectangle=function(node,aroundRect,aroundCorners,layoutNode){return dijit._placeOnScreenAroundRect(node,aroundRect.x,aroundRect.y,aroundRect.width,aroundRect.height,aroundCorners,layoutNode)};dijit._placeOnScreenAroundRect=function(node,x,y,width,height,aroundCorners,layoutNode){var choices=[];for(var nodeCorner in aroundCorners){choices.push({aroundCorner:nodeCorner,corner:aroundCorners[nodeCorner],pos:{x:x+(nodeCorner.charAt(1)=="L"?0:width),y:y+(nodeCorner.charAt(0)=="T"?0:height)}})}return dijit._place(node,choices,layoutNode)};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined"},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,aroundElement,aroundCorners,layoutNode){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments)};dijit.getPopupAlignment=function(position,leftToRight){var align={};dojo.forEach(position,function(pos){switch(pos){case"after":align[leftToRight?"BR":"BL"]=leftToRight?"BL":"BR";break;case"before":align[leftToRight?"BL":"BR"]=leftToRight?"BR":"BL";break;case"below":align[leftToRight?"BL":"BR"]=leftToRight?"TL":"TR";align[leftToRight?"BR":"BL"]=leftToRight?"TR":"TL";break;case"above":default:align[leftToRight?"TL":"TR"]=leftToRight?"BL":"BR";align[leftToRight?"TR":"TL"]=leftToRight?"BR":"BL";break}});return align};dijit.getPopupAroundAlignment=function(position,leftToRight){var align={};dojo.forEach(position,function(pos){switch(pos){case"after":align[leftToRight?"BR":"BL"]=leftToRight?"BL":"BR";break;case"before":align[leftToRight?"BL":"BR"]=leftToRight?"BR":"BL";break;case"below":align[leftToRight?"BL":"BR"]=leftToRight?"TL":"TR";align[leftToRight?"BR":"BL"]=leftToRight?"TR":"TL";break;case"above":default:align[leftToRight?"TL":"TR"]=leftToRight?"BL":"BR";align[leftToRight?"TR":"TL"]=leftToRight?"BR":"BL";break}});return align}}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win}return doc._parentWindow||doc.parentWindow||doc.defaultView}}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var stack=[],beginZIndex=1000,idGen=1;this.moveOffScreen=function(node){var s=node.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display=""}dojo.body().appendChild(node)};var getTopPopup=function(){for(var pi=stack.length-1;pi>0&&stack[pi].parent===stack[pi-1].widget;pi--){}return stack[pi]};var wrappers=[];this.open=function(args){var widget=args.popup,orient=args.orient||(dojo._isBodyLtr()?{BL:"TL",BR:"TR",TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),around=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+idGen++);var wrapperobj=wrappers.pop(),wrapper,iframe;if(!wrapperobj){wrapper=dojo.create("div",{"class":"dijitPopup"},dojo.body());dijit.setWaiRole(wrapper,"presentation")}else{wrapper=wrapperobj[0];iframe=wrapperobj[1]}dojo.attr(wrapper,{id:id,style:{zIndex:beginZIndex+stack.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});var s=widget.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";wrapper.appendChild(widget.domNode);if(!iframe){iframe=new dijit.BackgroundIframe(wrapper)}else{iframe.resize(wrapper)}var best=around?dijit.placeOnScreenAroundElement(wrapper,around,orient,widget.orient?dojo.hitch(widget,"orient"):null):dijit.placeOnScreen(wrapper,args,orient=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);wrapper.style.visibility="visible";var handlers=[];handlers.push(dojo.connect(wrapper,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel()}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var topPopup=getTopPopup();if(topPopup&&topPopup.onCancel){topPopup.onCancel()}}}}));if(widget.onCancel){handlers.push(dojo.connect(widget,"onCancel",args.onCancel))}handlers.push(dojo.connect(widget,widget.onExecute?"onExecute":"onChange",function(){var topPopup=getTopPopup();if(topPopup&&topPopup.onExecute){topPopup.onExecute()}}));stack.push({wrapper:wrapper,iframe:iframe,widget:widget,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:handlers});if(widget.onOpen){widget.onOpen(best)}return best};this.close=function(popup){while(dojo.some(stack,function(elem){return elem.widget==popup})){var top=stack.pop(),wrapper=top.wrapper,iframe=top.iframe,widget=top.widget,onClose=top.onClose;if(widget.onClose){widget.onClose()}dojo.forEach(top.handlers,dojo.disconnect);if(widget&&widget.domNode){this.moveOffScreen(widget.domNode)}wrapper.style.top="-9999px";wrapper.style.visibility="hidden";wrappers.push([wrapper,iframe]);if(onClose){onClose()}}}}();dijit._frames=new function(){var queue=[];this.pop=function(){var iframe;if(queue.length){iframe=queue.pop();iframe.style.display=""}else{if(dojo.isIE){var burl=dojo.config.dojoBlankHtmlUrl||(dojo.moduleUrl("dojo","resources/blank.html")+"")||'javascript:""';var html="<iframe src='"+burl+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";iframe=dojo.doc.createElement(html)}else{iframe=dojo.create("iframe");iframe.src='javascript:""';iframe.className="dijitBackgroundIframe";dojo.style(iframe,"opacity",0.1)}iframe.tabIndex=-1}return iframe};this.push=function(iframe){iframe.style.display="none";queue.push(iframe)}}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id")}if(dojo.isIE||dojo.isMoz){var iframe=dijit._frames.pop();node.appendChild(iframe);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node)})}else{dojo.style(iframe,{width:"100%",height:"100%"})}this.iframe=iframe}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"})}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe}}})}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return}var backCompat=doc.compatMode=="BackCompat",clientAreaRoot=backCompat?body:html,scrollRoot=isWK?body:clientAreaRoot,rootWidth=clientAreaRoot.clientWidth,rootHeight=clientAreaRoot.clientHeight,rtl=!dojo._isBodyLtr(),nodePos=pos||dojo.position(node),el=node.parentNode,isFixed=function(el){return((isIE<=6||(isIE&&backCompat))?false:(dojo.style(el,"position").toLowerCase()=="fixed"))};if(isFixed(node)){return}while(el){if(el==body){el=scrollRoot}var elPos=dojo.position(el),fixedPos=isFixed(el);with(elPos){if(el==scrollRoot){w=rootWidth,h=rootHeight;if(scrollRoot==html&&isIE&&rtl){x+=scrollRoot.offsetWidth-w}if(x<0||!isIE){x=0}if(y<0||!isIE){y=0}}else{var pb=dojo._getPadBorderExtents(el);w-=pb.w;h-=pb.h;x+=pb.l;y+=pb.t}with(el){if(el!=scrollRoot){var clientSize=clientWidth,scrollBarSize=w-clientSize;if(clientSize>0&&scrollBarSize>0){w=clientSize;if(isIE&&rtl){x+=scrollBarSize}}clientSize=clientHeight;scrollBarSize=h-clientSize;if(clientSize>0&&scrollBarSize>0){h=clientSize}}if(fixedPos){if(y<0){h+=y,y=0}if(x<0){w+=x,x=0}if(y+h>rootHeight){h=rootHeight-y}if(x+w>rootWidth){w=rootWidth-x}}var l=nodePos.x-x,t=nodePos.y-Math.max(y,0),r=l+nodePos.w-w,bot=t+nodePos.h-h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);nodePos.x+=scrollLeft;scrollLeft+=(isIE>=8&&!backCompat&&rtl)?-s:s;nodePos.x-=scrollLeft}if(bot*t>0){nodePos.y+=scrollTop;scrollTop+=Math[t<0?"max":"min"](t,bot);nodePos.y-=scrollTop}}}el=(el!=scrollRoot)&&!fixedPos&&el.parentNode}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false)}}}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,opera=d.isOpera,maj=Math.floor,ff=d.isFF,boxModel=d.boxModel.replace(/-/,""),classes={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:opera,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};classes["dj_"+boxModel]=true;for(var p in classes){if(classes[p]){if(html.className){html.className+=" "+p}else{html.className=p}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in classes){if(classes[p]){html.className+=" "+p+"-rtl"}}}})})()}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(evt,_this,node,callback,obj,subsequentDelay,initialDelay){if(obj!=this._obj){this.stop();this._initialDelay=initialDelay||500;this._subsequentDelay=subsequentDelay||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_this,callback);this._fireEventAndReload()}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null}},addKeyListener:function(node,keyObject,_this,callback,subsequentDelay,initialDelay){if(keyObject.keyCode){keyObject.charOrCode=keyObject.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}else{if(keyObject.charCode){keyObject.charOrCode=String.fromCharCode(keyObject.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0")}}return[dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==keyObject.charOrCode&&(keyObject.ctrlKey===undefined||keyObject.ctrlKey==evt.ctrlKey)&&(keyObject.altKey===undefined||keyObject.altKey==evt.altKey)&&(keyObject.metaKey===undefined||keyObject.metaKey==(evt.metaKey||false))&&(keyObject.shiftKey===undefined||keyObject.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(keyObject,_this,node,callback,keyObject,subsequentDelay,initialDelay)}else{if(dijit.typematic._obj==keyObject){dijit.typematic.stop()}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==keyObject){dijit.typematic.stop()}})]},addMouseListener:function(node,_this,callback,subsequentDelay,initialDelay){var dc=dojo.connect;return[dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_this,node,callback,node,subsequentDelay,initialDelay)}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop()}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop()}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt)}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_this,node,callback,node,subsequentDelay,initialDelay);setTimeout(dojo.hitch(this,dijit.typematic.stop),50)}})]},addListener:function(mouseNode,keyNode,keyObject,_this,callback,subsequentDelay,initialDelay){return this.addKeyListener(keyNode,keyObject,_this,callback,subsequentDelay,initialDelay).concat(this.addMouseListener(mouseNode,_this,callback,subsequentDelay,initialDelay))}}}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+'");'}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var bkImg=cs.backgroundImage;var needsA11y=(cs.borderTopColor==cs.borderRightColor)||(bkImg!=null&&(bkImg=="none"||bkImg=="url(invalid-url:)"));dojo[needsA11y?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML=""}else{dojo.body().removeChild(div)}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload)}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var waiRole=this.getWaiRole(elem);return role?(waiRole.indexOf(role)>-1):(waiRole.length>0)},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""))},setWaiRole:function(elem,role){var curRole=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(curRole)){dojo.attr(elem,"role",role)}else{if((" "+curRole+" ").indexOf(" "+role+" ")<0){var clearXhtml=dojo.trim(curRole.replace(this._XhtmlRoles,""));var cleanRole=dojo.trim(curRole.replace(clearXhtml,""));dojo.attr(elem,"role",cleanRole+(cleanRole?" ":"")+role)}}},removeWaiRole:function(elem,role){var roleValue=dojo.attr(elem,"role");if(!roleValue){return}if(role){var t=dojo.trim((" "+roleValue+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t)}else{elem.removeAttribute("role")}},hasWaiState:function(elem,state){return elem.hasAttribute?elem.hasAttribute("aria-"+state):!!elem.getAttribute("aria-"+state)},getWaiState:function(elem,state){return elem.getAttribute("aria-"+state)||""},setWaiState:function(elem,state,value){elem.setAttribute("aria-"+state,value)},removeWaiState:function(elem,state){elem.removeAttribute("aria-"+state)}})}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base")}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(widget,event){if(widget&&dojo.isFunction(widget._onConnect)){widget._onConnect(event)}});dijit._connectOnUseEventHandler=function(event){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var keydownCallback=function(evt){dijit._lastKeyDownNode=evt.srcElement};dojo.doc.attachEvent("onkeydown",keydownCallback);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",keydownCallback)})})()}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target},true)}(function(){var _attrReg={},getSetterAttributes=function(widget){var dc=widget.declaredClass;if(!_attrReg[dc]){var r=[],attrs,proto=widget.constructor.prototype;for(var fxName in proto){if(dojo.isFunction(proto[fxName])&&(attrs=fxName.match(/^_set([a-zA-Z]*)Attr$/))&&attrs[1]){r.push(attrs[1].charAt(0).toLowerCase()+attrs[1].substr(1))}}_attrReg[dc]=r}return _attrReg[dc]||[]};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(params,srcNodeRef){this.create(params,srcNodeRef)},create:function(params,srcNodeRef){this.srcNodeRef=dojo.byId(srcNodeRef);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr]}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr]}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id}if(params){this.params=params;dojo.mixin(this,params)}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"))}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var source=this.srcNodeRef;if(source&&source.parentNode){source.parentNode.replaceChild(this.domNode,source)}for(attr in this.params){this._onConnect(attr)}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id)}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef}this._created=true},_applyAttributes:function(){var condAttrApply=function(attr,scope){if((scope.params&&attr in scope.params)||scope[attr]){scope.attr(attr,scope[attr])}};for(var attr in this.attributeMap){condAttrApply(attr,this)}dojo.forEach(getSetterAttributes(this),function(a){if(!(a in this.attributeMap)){condAttrApply(a,this)}},this)},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div")},postCreate:function(){},startup:function(){this._started=true},destroyRecursive:function(preserveDom){this._beingDestroyed=true;this.destroyDescendants(preserveDom);this.destroy(preserveDom)},destroy:function(preserveDom){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(array){dfe(array,d.disconnect)});dfe(this._subscribes,function(handle){dun(handle)});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive()}else{if(w.destroy){w.destroy()}}});this.destroyRendering(preserveDom);dijit.registry.remove(this.id);this._destroyed=true},destroyRendering:function(preserveDom){if(this.bgIframe){this.bgIframe.destroy(preserveDom);delete this.bgIframe}if(this.domNode){if(preserveDom){dojo.removeAttr(this.domNode,"widgetId")}else{dojo.destroy(this.domNode)}delete this.domNode}if(this.srcNodeRef){if(!preserveDom){dojo.destroy(this.srcNodeRef)}delete this.srcNodeRef}},destroyDescendants:function(preserveDom){dojo.forEach(this.getChildren(),function(widget){if(widget.destroyRecursive){widget.destroyRecursive(preserveDom)}})},uninitialize:function(){return false},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus()},_onBlur:function(){this.onBlur()},_onConnect:function(event){if(event in this._deferredConnects){var mapNode=this[this._deferredConnects[event]||"domNode"];this.connect(mapNode,event.toLowerCase(),event);delete this._deferredConnects[event]}},_setClassAttr:function(value){var mapNode=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(mapNode,this["class"]);this["class"]=value;dojo.addClass(mapNode,value)},_setStyleAttr:function(value){var mapNode=this[this.attributeMap.style||"domNode"];if(dojo.isObject(value)){dojo.style(mapNode,value)}else{if(mapNode.style.cssText){mapNode.style.cssText+="; "+value}else{mapNode.style.cssText=value}}this.style=value},setAttribute:function(attr,value){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,value)},_attrToDom:function(attr,value){var commands=this.attributeMap[attr];dojo.forEach(dojo.isArray(commands)?commands:[commands],function(command){var mapNode=this[command.node||command||"domNode"];var type=command.type||"attribute";switch(type){case"attribute":if(dojo.isFunction(value)){value=dojo.hitch(this,value)}var attrName=command.attribute?command.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(mapNode,attrName,value);break;case"innerText":mapNode.innerHTML="";mapNode.appendChild(dojo.doc.createTextNode(value));break;case"innerHTML":mapNode.innerHTML=value;break;case"class":dojo.removeClass(mapNode,this[attr]);dojo.addClass(mapNode,value);break}},this);this[attr]=value},attr:function(name,value){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x])}return this}var names=this._getAttrNames(name);if(args>=2){if(this[names.s]){args=dojo._toArray(arguments,1);return this[names.s].apply(this,args)||this}else{if(name in this.attributeMap){this._attrToDom(name,value)}this[name]=value}return this}else{return this[names.g]?this[names.g]():this[name]}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name]}var uc=name.charAt(0).toUpperCase()+name.substr(1);return(apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"})},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[]},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[]},nodesWithKeyClick:["input","button"],connect:function(obj,event,method){var d=dojo,dc=d._connect,handles=[];if(event=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,method);handles.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;d.stopEvent(e)}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e)}}))}event="onclick"}handles.push(dc(obj,event,this,method));this._connects.push(handles);return handles},disconnect:function(handles){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==handles){dojo.forEach(handles,dojo.disconnect);this._connects.splice(i,1);return}}},subscribe:function(topic,method){var d=dojo,handle=d.subscribe(topic,this,method);this._subscribes.push(handle);return handle},unsubscribe:function(handle){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==handle){dojo.unsubscribe(handle);this._subscribes.splice(i,1);return}}},isLeftToRight:function(){return dojo._isBodyLtr()},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none")},placeAt:function(reference,position){if(reference.declaredClass&&reference.addChild){reference.addChild(this,position)}else{dojo.place(this.domNode,reference,position)}return this},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){}})})()}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var cache={};dojo.cache=function(module,url,value){if(typeof module=="string"){var pathObj=dojo.moduleUrl(module,url)}else{pathObj=module;value=url}var key=pathObj.toString();var val=value;if(value!==undefined&&!dojo.isString(value)){val=("value" in value?value.value:undefined)}var sanitize=value&&value.sanitize?true:false;if(val||val===null){if(val==null){delete cache[key]}else{val=cache[key]=sanitize?dojo.cache._sanitize(val):val}}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=sanitize?dojo.cache._sanitize(val):val}val=cache[key]}return val};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var matches=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(matches){val=matches[1]}}else{val=""}return val}})()}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,_stringRepl:function(tmpl){var className=this.declaredClass,_this=this;return dojo.string.substitute(tmpl,this,function(value,key){if(key.charAt(0)=="!"){value=dojo.getObject(key.substr(1),false,_this)}if(typeof value=="undefined"){throw new Error(className+" template:"+key)}if(value==null){return""}return key.charAt(0)=="!"?value:value.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){this._attachPoints=[];var cached=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(cached)){node=dojo._toDom(this._stringRepl(cached));if(node.nodeType!=1){throw new Error("Invalid template: "+cached)}}else{node=cached.cloneNode(true)}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var parser=dojo.parser,qry,attr;if(parser._query!="[dojoType]"){qry=parser._query;attr=parser._attrName;parser._query="[dojoType]";parser._attrName="dojoType"}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){parser._query=qry;parser._attrName=attr}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p]})}this._fillContent(this.srcNodeRef)},_fillContent:function(source){var dest=this.containerNode;if(source&&dest){while(source.hasChildNodes()){dest.appendChild(source.firstChild)}}},_attachTemplateNodes:function(rootNode,getAttrFunc){getAttrFunc=getAttrFunc||function(n,p){return n.getAttribute(p)};var nodes=dojo.isArray(rootNode)?rootNode:(rootNode.all||rootNode.getElementsByTagName("*"));var x=dojo.isArray(rootNode)?0:-1;for(;x<nodes.length;x++){var baseNode=(x==-1)?rootNode:nodes[x];if(this.widgetsInTemplate&&getAttrFunc(baseNode,"dojoType")){continue}var attachPoint=getAttrFunc(baseNode,"dojoAttachPoint");if(attachPoint){var point,points=attachPoint.split(/\s*,\s*/);while((point=points.shift())){if(dojo.isArray(this[point])){this[point].push(baseNode)}else{this[point]=baseNode}this._attachPoints.push(point)}}var attachEvent=getAttrFunc(baseNode,"dojoAttachEvent");if(attachEvent){var event,events=attachEvent.split(/\s*,\s*/);var trim=dojo.trim;while((event=events.shift())){if(event){var thisFunc=null;if(event.indexOf(":")!=-1){var funcNameArr=event.split(":");event=trim(funcNameArr[0]);thisFunc=trim(funcNameArr[1])}else{event=trim(event)}if(!thisFunc){thisFunc=event}this.connect(baseNode,event,thisFunc)}}}var role=getAttrFunc(baseNode,"waiRole");if(role){dijit.setWaiRole(baseNode,role)}var values=getAttrFunc(baseNode,"waiState");if(values){dojo.forEach(values.split(/\s*,\s*/),function(stateValue){if(stateValue.indexOf("-")!=-1){var pair=stateValue.split("-");dijit.setWaiState(baseNode,pair[0],pair[1])}})}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup()}});this.inherited(arguments)},destroyRendering:function(){dojo.forEach(this._attachPoints,function(point){delete this[point]},this);this._attachPoints=[];this.inherited(arguments)}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(templatePath,templateString,alwaysUseString){var tmplts=dijit._Templated._templateCache;var key=templateString||templatePath;var cached=tmplts[key];if(cached){try{if(!cached.ownerDocument||cached.ownerDocument==dojo.doc){return cached}}catch(e){}dojo.destroy(cached)}if(!templateString){templateString=dojo.cache(templatePath,{sanitize:true})}templateString=dojo.string.trim(templateString);if(alwaysUseString||templateString.match(/\$\{([^\}]+)\}/g)){return(tmplts[key]=templateString)}else{var node=dojo._toDom(templateString);if(node.nodeType!=1){throw new Error("Invalid template: "+templateString)}return(tmplts[key]=node)}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var cache=dijit._Templated._templateCache;for(var key in cache){var value=cache[key];if(typeof value=="object"){dojo.destroy(value)}delete cache[key]}})}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""})}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode}},addChild:function(widget,insertIndex){var refNode=this.containerNode;if(insertIndex&&typeof insertIndex=="number"){var children=this.getChildren();if(children&&children.length>=insertIndex){refNode=children[insertIndex-1].domNode;insertIndex="after"}}dojo.place(widget.domNode,refNode,insertIndex);if(this._started&&!widget._started){widget.startup()}},removeChild:function(widget){if(typeof widget=="number"&&widget>0){widget=this.getChildren()[widget]}if(widget&&widget.domNode){var node=widget.domNode;node.parentNode.removeChild(node)}},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode)},hasChildren:function(){return dojo.query("> [widgetId]",this.containerNode).length>0},destroyDescendants:function(preserveDom){dojo.forEach(this.getChildren(),function(child){child.destroyRecursive(preserveDom)})},_getSiblingOfChild:function(child,dir){var node=child.domNode,which=(dir>0?"nextSibling":"previousSibling");do{node=node[which]}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node)},getIndexOfChild:function(child){return dojo.indexOf(this.getChildren(),child)},startup:function(){if(this._started){return}dojo.forEach(this.getChildren(),function(child){child.startup()});this.inherited(arguments)}})}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var parent=dijit.getEnclosingWidget(this.domNode.parentNode);return parent&&parent.isContainer?parent:null},_getSibling:function(which){var node=this.domNode;do{node=node[which+"Sibling"]}while(node&&node.nodeType!=1);return node&&dijit.byNode(node)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1}return p.getIndexOfChild(this)}})}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);this.inherited(arguments)},startup:function(){if(this._started){return}this.inherited(arguments);var parent=this.getParent&&this.getParent();if(!(parent&&parent.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize()})}},resize:function(changeSize,resultSize){var node=this.domNode;if(changeSize){dojo.marginBox(node,changeSize);if(changeSize.t){node.style.top=changeSize.t+"px"}if(changeSize.l){node.style.left=changeSize.l+"px"}}var mb=resultSize||{};dojo.mixin(mb,changeSize||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb)}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout()},layout:function(){},_setupChild:function(child){dojo.addClass(child.domNode,this.baseClass+"-child");if(child.baseClass){dojo.addClass(child.domNode,this.baseClass+"-"+child.baseClass)}},addChild:function(child,insertIndex){this.inherited(arguments);if(this._started){this._setupChild(child)}},removeChild:function(child){dojo.removeClass(child.domNode,this.baseClass+"-child");if(child.baseClass){dojo.removeClass(child.domNode,this.baseClass+"-"+child.baseClass)}this.inherited(arguments)}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return{l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)}};(function(){var capitalize=function(word){return word.substring(0,1).toUpperCase()+word.substring(1)};var size=function(widget,dim){widget.resize?widget.resize(dim):dojo.marginBox(widget.domNode,dim);dojo.mixin(widget,dojo.marginBox(widget.domNode));dojo.mixin(widget,dim)};dijit.layout.layoutChildren=function(container,dim,children){dim=dojo.mixin({},dim);dojo.addClass(container,"dijitLayoutContainer");children=dojo.filter(children,function(item){return item.layoutAlign!="client"}).concat(dojo.filter(children,function(item){return item.layoutAlign=="client"}));dojo.forEach(children,function(child){var elm=child.domNode,pos=child.layoutAlign;var elmStyle=elm.style;elmStyle.left=dim.l+"px";elmStyle.top=dim.t+"px";elmStyle.bottom=elmStyle.right="auto";dojo.addClass(elm,"dijitAlign"+capitalize(pos));if(pos=="top"||pos=="bottom"){size(child,{w:dim.w});dim.h-=child.h;if(pos=="top"){dim.t+=child.h}else{elmStyle.top=dim.t+dim.h+"px"}}else{if(pos=="left"||pos=="right"){size(child,{h:dim.h});dim.w-=child.w;if(pos=="left"){dim.l+=child.w}else{elmStyle.left=dim.l+dim.w+"px"}}else{if(pos=="client"){size(child,dim)}}}})}})()}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments)},_setDisabledAttr:function(value){this.disabled=value;dojo.attr(this.focusNode,"disabled",value);if(this.valueNode){dojo.attr(this.valueNode,"disabled",value)}dijit.setWaiState(this.focusNode,"disabled",value);if(value){this._hovering=false;this._active=false;this.focusNode.setAttribute("tabIndex","-1")}else{this.focusNode.setAttribute("tabIndex",this.tabIndex)}this._setStateClass()},setDisabled:function(disabled){dojo.deprecated("setDisabled("+disabled+") is deprecated. Use attr('disabled',"+disabled+") instead.","","2.0");this.attr("disabled",disabled)},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode)}this.inherited(arguments)},_onMouse:function(event){var mouseNode=event.currentTarget;if(mouseNode&&mouseNode.getAttribute){this.stateModifier=mouseNode.getAttribute("stateModifier")||""}if(!this.disabled){switch(event.type){case"mouseenter":case"mouseover":this._hovering=true;this._active=this._mouseDown;break;case"mouseout":case"mouseleave":this._hovering=false;this._active=false;break;case"mousedown":this._active=true;this._mouseDown=true;var mouseUpConnector=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus()}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(mouseUpConnector)});break}this._setStateClass()}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none")},focus:function(){dijit.focus(this.focusNode)},_setStateClass:function(){var newStateClasses=this.baseClass.split(" ");function multiply(modifier){newStateClasses=newStateClasses.concat(dojo.map(newStateClasses,function(c){return c+modifier}),"dijit"+modifier)}if(this.checked){multiply("Checked")}if(this.state){multiply(this.state)}if(this.selected){multiply("Selected")}if(this.disabled){multiply("Disabled")}else{if(this.readOnly){multiply("ReadOnly")}else{if(this._active){multiply(this.stateModifier+"Active")}else{if(this._focused){multiply("Focused")}if(this._hovering){multiply(this.stateModifier+"Hover")}}}}var tn=this.stateNode||this.domNode,classHash={};dojo.forEach(tn.className.split(" "),function(c){classHash[c]=true});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete classHash[c]})}dojo.forEach(newStateClasses,function(c){classHash[c]=true});var newClasses=[];for(var c in classHash){newClasses.push(c)}tn.className=newClasses.join(" ");this._stateClasses=newStateClasses},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return(isNaN(val1)&&isNaN(val2))?0:val1-val2}else{if(val1>val2){return 1}else{if(val1<val2){return -1}else{return 0}}}},onChange:function(newValue){},_onChangeActive:false,_handleOnChange:function(newValue,priorityChange){this._lastValue=newValue;if(this._lastValueReported==undefined&&(priorityChange===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=newValue}if((this.intermediateChanges||priorityChange||priorityChange===undefined)&&((typeof newValue!=typeof this._lastValueReported)||this.compare(newValue,this._lastValueReported)!=0)){this._lastValueReported=newValue;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle)}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(newValue)}),0)}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass()},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported)}this.inherited(arguments)},setValue:function(value){dojo.deprecated("dijit.form._FormWidget:setValue("+value+") is deprecated.  Use attr('value',"+value+") instead.","","2.0");this.attr("value",value)},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value")}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(value){this.readOnly=value;dojo.attr(this.focusNode,"readOnly",value);dijit.setWaiState(this.focusNode,"readonly",value);this._setStateClass()},postCreate:function(){if(dojo.isIE){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown)}if(this._resetValue===undefined){this._resetValue=this.value}},_setValueAttr:function(newValue,priorityChange){this.value=newValue;this._handleOnChange(newValue,priorityChange)},_getValueAttr:function(){return this._lastValue},undo:function(){this._setValueAttr(this._lastValueReported,false)},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true)},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te)}}},_layoutHackIE7:function(){if(dojo.isIE==7){var domNode=this.domNode;var parent=domNode.parentNode;var pingNode=domNode.firstChild||domNode;var origFilter=pingNode.style.filter;while(parent&&parent.clientHeight==0){parent._disconnectHandle=this.connect(parent,"onscroll",dojo.hitch(this,function(e){this.disconnect(parent._disconnectHandle);parent.removeAttribute("_disconnectHandle");pingNode.style.filter=(new Date()).getMilliseconds();setTimeout(function(){pingNode.style.filter=origFilter},0)}));parent=parent.parentNode}}}})}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit")}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(widget){if(widget.reset){widget.reset()}})},validate:function(){var didFocus=false;return dojo.every(dojo.map(this.getDescendants(),function(widget){widget._hasBeenBlurred=true;var valid=widget.disabled||!widget.validate||widget.validate();if(!valid&&!didFocus){dijit.scrollIntoView(widget.containerNode||widget.domNode);widget.focus();didFocus=true}return valid}),function(item){return item})},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val)},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(widget){if(!widget.name){return}var entry=map[widget.name]||(map[widget.name]=[]);entry.push(widget)});for(var name in map){if(!map.hasOwnProperty(name)){continue}var widgets=map[name],values=dojo.getObject(name,false,obj);if(values===undefined){continue}if(!dojo.isArray(values)){values=[values]}if(typeof widgets[0].checked=="boolean"){dojo.forEach(widgets,function(w,i){w.attr("value",dojo.indexOf(values,w.value)!=-1)})}else{if(widgets[0].multiple){widgets[0].attr("value",values)}else{dojo.forEach(widgets,function(w,i){w.attr("value",values[i])})}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value")},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(widget){var name=widget.name;if(!name||widget.disabled){return}var value=widget.attr("value");if(typeof widget.checked=="boolean"){if(/Radio/.test(widget.declaredClass)){if(value!==false){dojo.setObject(name,value,obj)}else{value=dojo.getObject(name,false,obj);if(value===undefined){dojo.setObject(name,null,obj)}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj)}if(value!==false){ary.push(value)}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(value)}else{dojo.setObject(name,[prev,value],obj)}}else{dojo.setObject(name,value,obj)}}});return obj},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(widget){return !widget.disabled&&widget.isValid&&!widget.isValid()});return !this._invalidWidgets.length},onValidStateChange:function(isValid){},_widgetChange:function(widget){var isValid=this._lastValidState;if(!widget||this._lastValidState===undefined){isValid=this.isValid();if(this._lastValidState===undefined){this._lastValidState=isValid}}else{if(widget.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return(w!=widget)},this);if(!widget.isValid()&&!widget.attr("disabled")){this._invalidWidgets.push(widget)}isValid=(this._invalidWidgets.length===0)}}if(isValid!==this._lastValidState){this._lastValidState=isValid;this.onValidStateChange(isValid)}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _this=this;var conns=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate}),function(widget){conns.push(_this.connect(widget,"validate",dojo.hitch(_this,"_widgetChange",widget)));conns.push(_this.connect(widget,"_setDisabledAttr",dojo.hitch(_this,"_widgetChange",widget)))});this._widgetChange(null)},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren()}})}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${nameAttrSetting}></form>",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments)},execute:function(formContents){},onExecute:function(){},_setEncTypeAttr:function(value){this.encType=value;dojo.attr(this.domNode,"encType",value);if(dojo.isIE){this.domNode.encoding=value}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value)}}this.inherited(arguments)},onReset:function(e){return true},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset()}dojo.stopEvent(e);return false},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues())}if(this.onSubmit(e)===false){dojo.stopEvent(e)}},onSubmit:function(e){return this.isValid()},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit()}}})}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId)}while(dojo.byId(id));return id};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode}return" button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0}}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return{w:dd.clientWidth,h:w.innerHeight}}else{if(!dojo.isOpera&&w.innerWidth){return{w:w.innerWidth,h:w.innerHeight}}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return{w:dd.clientWidth,h:dd.clientHeight}}else{if(b.clientWidth){return{w:b.clientWidth,h:b.clientHeight}}}}}return null};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE}}window.scrollBy(dx,dy)};dojo.dnd._validNodes={div:1,p:1,td:1};dojo.dnd._validOverflow={auto:1,scroll:1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop}if(rx>0&&rx<b.w){if(rx<w){dx=-w}else{if(rx>b.w-w){dx=w}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h}else{if(ry>b.h-h){dy=h}}}var oldLeft=n.scrollLeft,oldTop=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(oldLeft!=n.scrollLeft||oldTop!=n.scrollTop){return}}}try{n=n.parentNode}catch(x){n=null}}dojo.dnd.autoScroll(e)}}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,firstEvent=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),firstEvent];if(h&&h.onMoveStart){h.onMoveStart(this)}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e)},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy()}dojo.stopEvent(e)},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case"relative":case"absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this)}dojo.disconnect(this.events.pop())},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this)}this.events=this.node=this.host=null}})}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,params){this.node=dojo.byId(node);if(!params){params={}}this.handle=params.handle?dojo.byId(params.handle):null;if(!this.handle){this.handle=this.node}this.delay=params.delay>0?params.delay:0;this.skip=params.skip;this.mover=params.mover?params.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(params,node){return new dojo.dnd.Moveable(node,params)},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY}else{this.onDragDetected(e)}dojo.stopEvent(e)},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e)}dojo.stopEvent(e)},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop())}dojo.stopEvent(e)},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e)}},onDragDetected:function(e){new this.mover(this.node,e,this)},onMoveStart:function(mover){dojo.publish("/dnd/move/start",[mover]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem")},onMoveStop:function(mover){dojo.publish("/dnd/move/stop",[mover]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(mover){},onMove:function(mover,leftTop){this.onMoving(mover,leftTop);var s=mover.node.style;s.left=leftTop.l+"px";s.top=leftTop.t+"px";this.onMoved(mover,leftTop)},onMoving:function(mover,leftTop){},onMoved:function(mover,leftTop){}})}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(params,node){return new dojo.dnd.move.constrainedMoveable(node,params)},constructor:function(node,params){if(!params){params={}}this.constraints=params.constraints;this.within=params.within},onFirstMove:function(mover){var c=this.constraintBox=this.constraints.call(this,mover);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(mover.node);c.r-=mb.w;c.b-=mb.h}},onMove:function(mover,leftTop){var c=this.constraintBox,s=mover.node.style;s.left=(leftTop.l<c.l?c.l:c.r<leftTop.l?c.r:leftTop.l)+"px";s.top=(leftTop.t<c.t?c.t:c.b<leftTop.t?c.b:leftTop.t)+"px"}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(params,node){return new dojo.dnd.move.boxConstrainedMoveable(node,params)},constructor:function(node,params){var box=params&&params.box;this.constraints=function(){return box}}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(params,node){return new dojo.dnd.move.parentConstrainedMoveable(node,params)},constructor:function(node,params){var area=params&&params.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb}}});dojo.dnd.move.constrainedMover=function(fun,within){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var mover=function(node,e,notifier){dojo.dnd.Mover.call(this,node,e,notifier)};dojo.extend(mover,dojo.dnd.Mover.prototype);dojo.extend(mover,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t})},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(within){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h}}});return mover};dojo.dnd.move.boxConstrainedMover=function(box,within){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box},within)};dojo.dnd.move.parentConstrainedMover=function(area,within){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb};return dojo.dnd.move.constrainedMover(fun,within)};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover}if(dojo.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._loadInit,1000)}})();