(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(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 _8=tn+"";console[_8]=("log"in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};})();}}}if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){this.dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _9 in djConfig){d.config[_9]=djConfig[_9];}}dojo.locale=d.config.locale;var _a="$Rev: 18131 $".match(/\d+/);dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:_a?+_a[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 _b={};dojo._mixin=function(_c,_d){for(var x in _d){if(_b[x]===undefined||_b[x]!=_d[x]){_c[x]=_d[x];}}if(d.isIE&&_d){var p=_d.toString;if(typeof p=="function"&&p!=_c.toString&&p!=_b.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){_c.toString=_d.toString;}}return _c;};dojo.mixin=function(_e,_f){if(!_e){_e={};}for(var i=1,l=arguments.length;i<l;i++){d._mixin(_e,arguments[i]);}return _e;};dojo._getProp=function(_10,_11,_12){var obj=_12||d.global;for(var i=0,p;obj&&(p=_10[i]);i++){if(i==0&&this._scopeMap[p]){p=this._scopeMap[p];}obj=(p in obj?obj[p]:(_11?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_13,_14,_15){var _16=_13.split("."),p=_16.pop(),obj=d._getProp(_16,true,_15);return obj&&p?(obj[p]=_14):undefined;};dojo.getObject=function(_17,_18,_19){return d._getProp(_17.split("."),_18,_19);};dojo.exists=function(_1a,obj){return!!d.getObject(_1a,false,obj);};dojo["eval"]=function(_1b){return d.global.eval?d.global.eval(_1b):eval(_1b);};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(_1c){var mp=this._modulePrefixes;return!!(mp[_1c]&&mp[_1c].value);},_getModulePrefix:function(_1d){var mp=this._modulePrefixes;if(this._moduleHasPrefix(_1d)){return mp[_1d].value;}return _1d;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_1e,_1f,cb){var uri=((_1e.charAt(0)=="/"||_1e.match(/^\w+:/))?"":this.baseUrl)+_1e;try{return!_1f?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_1f,cb);}catch(e){console.error(e);return false;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _20=d._getText(uri,true);if(_20){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_20="("+_20+")";}else{_20=d._scopePrefix+_20+d._scopeSuffix;}if(!d.isIE){_20+="\r\n//@ sourceURL="+uri;}var _21=d["eval"](_20);if(cb){cb(_21);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return!!_20;};dojo._loadUriAndCheck=function(uri,_22,cb){var ok=false;try{ok=this._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return!!(ok&&this._loadedModules[_22]);};dojo.loaded=function(){this._loadNotifying=true;this._postLoad=true;var mll=d._loaders;this._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}this._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())();}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _23=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_23.call(obj);});}}};dojo.addOnLoad=function(obj,_24){d._onto(d._loaders,obj,_24);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(_25){var _26=_25.split(".");for(var i=_26.length;i>0;i--){var _27=_26.slice(0,i).join(".");if(i==1&&!this._moduleHasPrefix(_27)){_26[0]="../"+_26[0];}else{var _28=this._getModulePrefix(_27);if(_28!=_27){_26.splice(0,i,_28);break;}}}return _26;};dojo._global_omit_module_check=false;dojo.loadInit=function(_29){_29();};dojo._loadModule=dojo.require=function(_2a,_2b){_2b=this._global_omit_module_check||_2b;var _2c=this._loadedModules[_2a];if(_2c){return _2c;}var _2d=this._getModuleSymbols(_2a).join("/")+".js";var _2e=!_2b?_2a:null;var ok=this._loadPath(_2d,_2e);if(!ok&&!_2b){throw new Error("Could not load '"+_2a+"'; last tried '"+_2d+"'");}if(!_2b&&!this._isXDomain){_2c=this._loadedModules[_2a];if(!_2c){throw new Error("symbol '"+_2a+"' is not defined after loading '"+_2d+"'");}}return _2c;};dojo.provide=function(_2f){_2f=_2f+"";return(d._loadedModules[_2f]=d.getObject(_2f,true));};dojo.platformRequire=function(_30){var _31=_30.common||[];var _32=_31.concat(_30[d._name]||_30["default"]||[]);for(var x=0;x<_32.length;x++){var _33=_32[x];if(_33.constructor==Array){d._loadModule.apply(d,_33);}else{d._loadModule(_33);}}};dojo.requireIf=function(_34,_35){if(_34===true){var _36=[];for(var i=1;i<arguments.length;i++){_36.push(arguments[i]);}d.require.apply(d,_36);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_37,_38){d._modulePrefixes[_37]={name:_37,value:_38};};dojo.requireLocalization=function(_39,_3a,_3b,_3c){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,_3d=arguments,uri=[_3d[0]];for(var i=1;i<_3d.length;i++){if(!_3d[i]){continue;}var _3e=new d._Url(_3d[i]+""),_3f=new d._Url(uri[0]+"");if(_3e.path==""&&!_3e.scheme&&!_3e.authority&&!_3e.query){if(_3e.fragment!=n){_3f.fragment=_3e.fragment;}_3e=_3f;}else{if(!_3e.scheme){_3e.scheme=_3f.scheme;if(!_3e.authority){_3e.authority=_3f.authority;if(_3e.path.charAt(0)!="/"){var _40=_3f.path.substring(0,_3f.path.lastIndexOf("/")+1)+_3e.path;var _41=_40.split("/");for(var j=0;j<_41.length;j++){if(_41[j]=="."){if(j==_41.length-1){_41[j]="";}else{_41.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_41[0]=="")&&_41[j]==".."&&_41[j-1]!=".."){if(j==(_41.length-1)){_41.splice(j,1);_41[j-1]="";}else{_41.splice(j-1,2);j-=2;}}}}_3e.path=_41.join("/");}}}}uri=[];if(_3e.scheme){uri.push(_3e.scheme,":");}if(_3e.authority){uri.push("//",_3e.authority);}uri.push(_3e.path);if(_3e.query){uri.push("?",_3e.query);}if(_3e.fragment){uri.push("#",_3e.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(_42,url){var loc=d._getModuleSymbols(_42).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _43=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_43==-1||_43>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 _44=document.getElementsByTagName("script");var _45=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_44.length;i++){var src=_44[i].getAttribute("src");if(!src){continue;}var m=src.match(_45);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_44[i].getAttribute("djConfig");if(cfg){var _46=eval("({ "+cfg+" })");for(var x in _46){dojo.config[x]=_46[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 _47=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_47&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_47+7))<=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1]||dua.split("Shiretoko/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;if(d.isIE>=8&&document.documentMode!=5){d.isIE=document.documentMode;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _48,_49;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_48=new XMLHttpRequest();}catch(e){}}if(!_48){for(var i=0;i<3;++i){var _4a=d._XMLHTTP_PROGIDS[i];try{_48=new ActiveXObject(_4a);}catch(e){_49=e;}if(_48){d._XMLHTTP_PROGIDS=[_4a];break;}}}if(!_48){throw new Error("XMLHTTP not available: "+_49);}return _48;};d._isDocumentOk=function(_4b){var _4c=_4b.status||0,lp=location.protocol;return(_4c>=200&&_4c<300)||_4c==304||_4c==1223||(!_4c&&(lp=="file:"||lp=="chrome:"||lp=="app:"));};var _4d=window.location+"";var _4e=document.getElementsByTagName("base");var _4f=(_4e&&_4e.length>0);d._getText=function(uri,_50){var _51=this._xhrObj();if(!_4f&&dojo._Url){uri=(new dojo._Url(_4d,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_51.open("GET",uri,false);try{_51.send(null);if(!d._isDocumentOk(_51)){var err=Error("Unable to load "+uri+" status:"+_51.status);err.status=_51.status;err.responseText=_51.responseText;throw err;}}catch(e){if(_50){return null;}throw e;}return _51.responseText;};var _52=window;var _53=function(_54,fp){var _55=_52[_54]||function(){};_52[_54]=function(){fp.apply(_52,arguments);_55.apply(_52,arguments);};};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};var _56=0;d.addOnWindowUnload=function(obj,_57){d._onto(d._windowUnloaders,obj,_57);if(!_56){_56=1;_53("onunload",d.windowUnloaded);}};var _58=0;d.addOnUnload=function(obj,_59){d._onto(d._unloaders,obj,_59);if(!_58){_58=1;_53("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _5a=e&&e.type?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_5a!="domcontentloaded"&&_5a!="load")){return;}arguments.callee.initialized=true;if("_khtmlTimer"in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isWebKit>525||dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else{if((dojo.isWebKit<525)||dojo.isKhtml){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}}if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML);  display:inline-block");}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5b in mp){dojo.registerModulePath(_5b,mp[_5b]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");dojo.require("dojo.i18n");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");dojo.isString=function(it){return(typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=(function(){var _5c=function(it){var t=typeof it;return it&&(t=="function"||it instanceof Function)&&!it.nodeType;};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}return _5c(it);}:_5c;})();dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));};dojo.isArrayLike=function(it){var d=dojo;return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_5d,_5e){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(_5d.prototype,arguments[i]);}return _5d;};dojo._hitchArgs=function(_5f,_60){var pre=dojo._toArray(arguments,2);var _61=dojo.isString(_60);return function(){var _62=dojo._toArray(arguments);var f=_61?(_5f||dojo.global)[_60]:_60;return f&&f.apply(_5f||this,pre.concat(_62));};};dojo.hitch=function(_63,_64){if(arguments.length>2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_64){_64=_63;_63=null;}if(dojo.isString(_64)){_63=_63||dojo.global;if(!_63[_64]){throw(["dojo.hitch: scope[\"",_64,"\"] is null (scope=\"",_63,"\")"].join(""));}return function(){return _63[_64].apply(_63,arguments||[]);};}return!_63?_64:function(){return _64.apply(_63,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_65){TMP.prototype=obj;var tmp=new TMP();if(_65){dojo._mixin(tmp,_65);}return tmp;};})();(function(){var _66=function(obj,_67,_68){return(_68||[]).concat(Array.prototype.slice.call(obj,_67||0));};var _69=function(obj,_6a,_6b){var arr=_6b||[];for(var x=_6a||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=dojo.isIE?function(obj){return((obj.item)?_69:_66).apply(this,arguments);}:_66;})();dojo.partial=function(_6c){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));};dojo.clone=function(o){if(!o){return o;}if(dojo.isArray(o)){var r=[];for(var i=0;i<o.length;++i){r.push(dojo.clone(o[i]));}return r;}if(!dojo.isObject(o)){return o;}if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}r=new o.constructor();for(i in o){if(!(i in r)||r[i]!=o[i]){r[i]=dojo.clone(o[i]);}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");dojo.declare=function(_6d,_6e,_6f){var dd=arguments.callee,_70;if(dojo.isArray(_6e)){_70=_6e;_6e=_70.shift();}if(_70){dojo.forEach(_70,function(m,i){if(!m){throw(_6d+": mixin #"+i+" is null");}_6e=dd._delegate(_6e,m);});}var _71=dd._delegate(_6e);_6f=_6f||{};_71.extend(_6f);dojo.extend(_71,{declaredClass:_6d,_constructor:_6f.constructor});_71.prototype.constructor=_71;return dojo.setObject(_6d,_71);};dojo.mixin(dojo.declare,{_delegate:function(_72,_73){var bp=(_72||0).prototype,mp=(_73||0).prototype,dd=dojo.declare;var _74=dd._makeCtor();dojo.mixin(_74,{superclass:bp,mixin:mp,extend:dd._extend});if(_72){_74.prototype=dojo._delegate(bp);}dojo.extend(_74,dd._core,mp||0,{_constructor:null,preamble:null});_74.prototype.constructor=_74;_74.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;return _74;},_extend:function(_75){var i,fn;for(i in _75){if(dojo.isFunction(fn=_75[i])&&!0[i]){fn.nom=i;fn.ctor=this;}}dojo.extend(this,_75);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(_76){var c=_76.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_76,ii,fn;if(a[0]){if(((fn=a[0].preamble))){a=fn.apply(this,a)||a;}}if((fn=c.prototype.preamble)){a=fn.apply(this,a)||a;}if(ct&&ct.apply){ct.apply(this,a);}if(mct&&mct.apply){mct.apply(this,a);}if((ii=c.prototype._constructor)){ii.apply(this,_76);}if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,_76);}},_findMixin:function(_77){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==_77||(m instanceof _77.constructor)){return p;}if(m&&m._findMixin&&(m=m._findMixin(_77))){return m;}c=p&&p.constructor;}},_findMethod:function(_78,_79,_7a,has){var p=_7a,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(_78,_79,m,has))){return m;}if((f=p[_78])&&(has==(f==_79))){return p;}p=c.superclass;}while(p);return!has&&(p=this._findMixin(_7a))&&this._findMethod(_78,_79,p,has);},inherited:function(_7b,_7c,_7d){var a=arguments;if(typeof a[0]!="string"){_7d=_7c;_7c=_7b;_7b=_7c.callee.nom;}a=_7d||_7c;var c=_7c.callee,p=this.constructor.prototype,fn,mp;if(this[_7b]!=c||p[_7b]==c){mp=(c.ctor||0).superclass||this._findMethod(_7b,c,p,true);if(!mp){throw(this.declaredClass+": inherited method \""+_7b+"\" mismatch");}p=this._findMethod(_7b,c,mp,false);}fn=p&&p[_7b];if(!fn){throw(mp.declaredClass+": inherited method \""+_7b+"\" not found");}return fn.apply(this,a);}}});}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var lls;lls=[].concat(ls);for(var i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_7e,_7f,_80){_7e=_7e||dojo.global;var f=_7e[_7f];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_7e[_7f]=d;}return f._listeners.push(_80);},remove:function(_81,_82,_83){var f=(_81||dojo.global)[_82];if(f&&f._listeners&&_83--){delete f._listeners[_83];}}};dojo.connect=function(obj,_84,_85,_86,_87){var a=arguments,_88=[],i=0;_88.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_88.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_88.push(a[i]);}return dojo._connect.apply(this,_88);};dojo._connect=function(obj,_89,_8a,_8b){var l=dojo._listener,h=l.add(obj,_89,dojo.hitch(_8a,_8b));return[obj,_89,h,l];};dojo.disconnect=function(_8c){if(_8c&&_8c[0]!==undefined){dojo._disconnect.apply(this,_8c);delete _8c[0];}};dojo._disconnect=function(obj,_8d,_8e,_8f){_8f.remove(obj,_8d,_8e);};dojo._topics={};dojo.subscribe=function(_90,_91,_92){return[_90,dojo._listener.add(dojo._topics,_90,dojo.hitch(_91,_92))];};dojo.unsubscribe=function(_93){if(_93){dojo._listener.remove(dojo._topics,_93[0],_93[1]);}};dojo.publish=function(_94,_95){var f=dojo._topics[_94];if(f){f.apply(this,_95||[]);}};dojo.connectPublisher=function(_96,obj,_97){var pf=function(){dojo.publish(_96,arguments);};return(_97)?dojo.connect(obj,_97,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(_98){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_98;this.silentlyCancelled=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(err instanceof Error)){var res=err;var msg="Deferred Cancelled";if(err&&err.toString){msg+=": "+err.toString();}err=new Error(msg);err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0]instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,_99){var _9a=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_9a,_9a);},addCallback:function(cb,_9b){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,_9c){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0){this._fire();}return this;},_fire:function(){var _9d=this.chain;var _9e=this.fired;var res=this.results[_9e];var _9f=this;var cb=null;while((_9d.length>0)&&(this.paused==0)){var f=_9d.shift()[_9e];if(!f){continue;}var _a0=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}_9e=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){_9f._resback(res);_9f.paused--;if((_9f.paused==0)&&(_9f.fired>=0)){_9f._fire();}};this.paused++;}};if(dojo.config.debugAtAllCosts){_a0.call(this);}else{try{_a0.call(this);}catch(err){_9e=1;res=err;}}}this.fired=_9e;this.results[_9e]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(_a1){return eval("("+_a1+")");};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,_a2,_a3){if(it===undefined){return"undefined";}var _a4=typeof it;if(_a4=="number"||_a4=="boolean"){return it+"";}if(it===null){return"null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _a5=arguments.callee;var _a6;_a3=_a3||"";var _a7=_a2?_a3+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_a6=tf.call(it);if(it!==_a6){return _a5(_a6,_a2,_a7);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_a2?" ":"";var _a8=_a2?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_a5(obj,_a2,_a7);if(typeof val!="string"){val="undefined";}return _a8+_a7+val;});return"["+res.join(","+sep)+_a8+_a3+"]";}if(_a4=="function"){return null;}var _a9=[],key;for(key in it){var _aa,val;if(typeof key=="number"){_aa="\""+key+"\"";}else{if(typeof key=="string"){_aa=dojo._escapeString(key);}else{continue;}}val=_a5(it[key],_a2,_a7);if(typeof val!="string"){continue;}_a9.push(_a8+_a7+_aa+":"+sep+val);}return"{"+_a9.join(","+sep)+_a8+_a3+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _ab=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 _ac=function(_ad,arr,_ae,_af){var _b0=_ab(arr,_af,_ae);arr=_b0[0];for(var i=0,l=arr.length;i<l;++i){var _b1=!!_b0[2].call(_b0[1],arr[i],i,arr);if(_ad^_b1){return _b1;}}return _ad;};dojo.mixin(dojo,{indexOf:function(_b2,_b3,_b4,_b5){var _b6=1,end=_b2.length||0,i=0;if(_b5){i=end-1;_b6=end=-1;}if(_b4!=undefined){i=_b4;}if((_b5&&i>end)||i<end){for(;i!=end;i+=_b6){if(_b2[i]==_b3){return i;}}}return-1;},lastIndexOf:function(_b7,_b8,_b9){return dojo.indexOf(_b7,_b8,_b9,true);},forEach:function(arr,_ba,_bb){if(!arr||!arr.length){return;}var _bc=_ab(arr,_bb,_ba);arr=_bc[0];for(var i=0,l=arr.length;i<l;++i){_bc[2].call(_bc[1],arr[i],i,arr);}},every:function(arr,_bd,_be){return _ac(true,arr,_bd,_be);},some:function(arr,_bf,_c0){return _ac(false,arr,_bf,_c0);},map:function(arr,_c1,_c2){var _c3=_ab(arr,_c2,_c1);arr=_c3[0];var _c4=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_c4.push(_c3[2].call(_c3[1],arr[i],i,arr));}return _c4;},filter:function(arr,_c5,_c6){var _c7=_ab(arr,_c6,_c5);arr=_c7[0];var _c8=[];for(var i=0,l=arr.length;i<l;++i){if(_c7[2].call(_c7[1],arr[i],i,arr)){_c8.push(arr[i]);}}return _c8;}});})();}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_c9){if(_c9){this.setColor(_c9);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_ca){if(d.isString(_ca)){d.colorFromString(_ca,this);}else{if(d.isArray(_ca)){d.colorFromArray(_ca,this);}else{this._set(_ca.r,_ca.g,_ca.b,_ca.a);if(!(_ca 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(_cb){var t=this,rgb=t.r+", "+t.g+", "+t.b;return(_cb?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_cc,end,_cd,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_cc[x]+(end[x]-_cc[x])*_cd;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_ce,obj){var m=_ce.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_cf,obj){var t=obj||new d.Color(),_d0=(_cf.length==4)?4:8,_d1=(1<<_d0)-1;_cf=Number("0x"+_cf.substr(1));if(isNaN(_cf)){return null;}d.forEach(["b","g","r"],function(x){var c=_cf&_d1;_cf>>=_d0;t[x]=_d0==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(_d2,_d3){dojo.global=_d2;dojo.doc=_d3;};dojo.withGlobal=function(_d4,_d5,_d6,_d7){var _d8=dojo.global;try{dojo.global=_d4;return dojo.withDoc.call(null,_d4.document,_d5,_d6,_d7);}finally{dojo.global=_d8;}};dojo.withDoc=function(_d9,_da,_db,_dc){var _dd=dojo.doc,_de=dojo._bodyLtr;try{dojo.doc=_d9;delete dojo._bodyLtr;if(_db&&typeof _da=="string"){_da=_db[_da];}return _da.apply(_db,_dc||[]);}finally{dojo.doc=_dd;if(_de!==undefined){dojo._bodyLtr=_de;}}};}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(_df,_e0,fp){if(!_df){return;}_e0=del._normalizeEventName(_e0);fp=del._fixCallback(_e0,fp);var _e1=_e0;if(!dojo.isIE&&(_e0=="mouseenter"||_e0=="mouseleave")){var ofp=fp;_e0=(_e0=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(dojo.isFF<=2){try{e.relatedTarget.tagName;}catch(e2){return;}}if(!dojo.isDescendant(e.relatedTarget,_df)){return ofp.call(this,e);}};}_df.addEventListener(_e0,fp,false);return fp;},remove:function(_e2,_e3,_e4){if(_e2){_e3=del._normalizeEventName(_e3);if(!dojo.isIE&&(_e3=="mouseenter"||_e3=="mouseleave")){_e3=(_e3=="mouseenter")?"mouseover":"mouseout";}_e2.removeEventListener(_e3,_e4,false);}},_normalizeEventName:function(_e5){return _e5.slice(0,2)=="on"?_e5.slice(2):_e5;},_fixCallback:function(_e6,fp){return _e6!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_e7){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,_e8){return del._fixEvent(evt,_e8);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _e9=dojo._listener;dojo._connect=function(obj,_ea,_eb,_ec,_ed){var _ee=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_ee?(_ed?2:1):0,l=[dojo._listener,del,_e9][lid];var h=l.add(obj,_ea,dojo.hitch(_eb,_ec));return[obj,_ea,h,lid];};dojo._disconnect=function(obj,_ef,_f0,_f1){([dojo._listener,del,_e9][_f1]).remove(obj,_ef,_f0);};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.isSafari?91:224):17};var _f2=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_f2];};if(dojo.isIE){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_f3){return e.button&_f3;},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,_f4){return e.button==_f4;},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 _f5=function(e,_f6){try{return(e.keyCode=_f6);}catch(e){return 0;}};var iel=dojo._listener;var _f7=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_e9=iel=dojo._ie_listener={handlers:[],add:function(_f8,_f9,_fa){_f8=_f8||dojo.global;var f=_f8[_f9];if(!f||!f[_f7]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_f7]=[];f=_f8[_f9]=d;}return f[_f7].push(ieh.push(_fa)-1);},remove:function(_fb,_fc,_fd){var f=(_fb||dojo.global)[_fc],l=f&&f[_f7];if(f&&l&&_fd--){delete ieh[l[_fd]];delete l[_fd];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(_fe,_ff,fp){if(!_fe){return;}_ff=del._normalizeEventName(_ff);if(_ff=="onkeypress"){var kd=_fe.onkeydown;if(!kd||!kd[_f7]||!kd._stealthKeydownHandle){var h=del.add(_fe,"onkeydown",del._stealthKeyDown);kd=_fe.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(_fe,_ff,del._fixCallback(fp));},remove:function(node,_100,_101){_100=del._normalizeEventName(_100);iel.remove(node,_100,_101);if(_100=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_102){return _102.slice(0,2)!="on"?"on"+_102:_102;},_nop:function(){},_fixEvent:function(evt,_103){if(!evt){var w=_103&&(_103.ownerDocument||_103.document||_103).parentWindow||window;evt=w.event;}if(!evt){return(evt);}evt.target=evt.srcElement;evt.currentTarget=(_103||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _104=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _105=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_104.scrollLeft||0)-_105.x;evt.pageY=evt.clientY+(_104.scrollTop||0)-_105.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[_f7]){return;}var k=evt.keyCode;var _106=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_106||evt.ctrlKey){var c=_106?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;_f5(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_f5(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,_107){var faux=dojo.mixin({},evt,_107);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_108){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,_109,fp){if(!node){return;}var _10a=del._add(node,_109,fp);if(del._normalizeEventName(_109)=="keypress"){_10a._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _10b=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_10b||evt.ctrlKey){var c=_10b?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 _10a;},remove:function(node,_10c,_10d){if(node){if(_10d._stealthKeyDownHandle){del._remove(node,"keydown",_10d._stealthKeyDownHandle);}del._remove(node,_10c,_10d);}},_fixEvent:function(evt,_10e){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,_10f){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(_10f,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_10f,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(!id){return null;}if(id.nodeType){return id;}var _110=doc||dojo.doc,te=_110.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_110.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 _111=null;d.addOnWindowUnload(function(){_111=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{if(!_111||_111.ownerDocument!=node.ownerDocument){_111=node.ownerDocument.createElement("div");}_111.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_111.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_112){try{node=byId(node);_112=byId(_112);while(node){if(node===_112){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_113){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_113?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_113?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_113?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _114=function(node,ref){var _115=ref.parentNode;if(_115){_115.insertBefore(node,ref);}};var _116=function(node,ref){var _117=ref.parentNode;if(_117){if(_117.lastChild==ref){_117.appendChild(node);}else{_117.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_118,_119){_118=byId(_118);if(typeof node=="string"){node=node.charAt(0)=="<"?d._toDom(node,_118.ownerDocument):byId(node);}if(typeof _119=="number"){var cn=_118.childNodes;if(!cn.length||cn.length<=_119){_118.appendChild(node);}else{_114(node,cn[_119<0?0:_119]);}}else{switch(_119){case"before":_114(node,_118);break;case"after":_116(node,_118);break;case"replace":_118.parentNode.replaceChild(node,_118);break;case"only":d.empty(_118);_118.appendChild(node);break;case"first":if(_118.firstChild){_114(node,_118.firstChild);break;}default:_118.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){var _11a=document.compatMode;d.boxModel=_11a=="BackCompat"||_11a=="QuirksMode"||d.isIE<6?"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(_11b,_11c){return parseFloat(_11c)||0;};}else{d._toPixelValue=function(_11d,_11e){if(!_11e){return 0;}if(_11e=="medium"){return 4;}if(_11e.slice&&_11e.slice(-2)=="px"){return parseFloat(_11e);}with(_11d){var _11f=style.left;var _120=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_11e;_11e=style.pixelLeft;}catch(e){_11e=0;}style.left=_11f;runtimeStyle.left=_120;}return _11e;};}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,_121){var ov=_121*100;node.style.zoom=1;af(node,1).Enabled=!(_121==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,_121);});}return _121;}:function(node,_122){return node.style.opacity=_122;};var _123={left:true,top:true};var _124=/margin|padding|width|height|max|min|offset/;var _125=function(node,type,_126){type=type.toLowerCase();if(d.isIE){if(_126=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_126){case 700:return"bold";case 400:default:return"normal";}}}if(!(type in _123)){_123[type]=_124.test(type);}return _123[type]?px(node,_126):_126;};var _127=d.isIE?"styleFloat":"cssFloat",_128={"cssFloat":_127,"styleFloat":_127,"float":_127};dojo.style=function(node,_129,_12a){var n=byId(node),args=arguments.length,op=(_129=="opacity");_129=_128[_129]||_129;if(args==3){return op?d._setOpacity(n,_12a):n.style[_129]=_12a;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _129!="string"){for(var x in _129){d.style(node,x,_129[x]);}return s;}return(args==1)?s:_125(n,_129,s[_129]||n.style[_129]);};dojo._getPadExtents=function(n,_12b){var s=_12b||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,_12c){var ne="none",s=_12c||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,_12d){var s=_12d||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,_12e){var s=_12e||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,_12f){var s=_12f||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,_130){var s=_130||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,_131){var s=_131||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,_132,_133,_134){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_134);if(_132>=0){_132+=pb.w;}if(_133>=0){_133+=pb.h;}}d._setBox(node,NaN,NaN,_132,_133);};dojo._setMarginBox=function(node,_135,_136,_137,_138,_139){var s=_139||gcs(node),bb=d._usesBorderBox(node),pb=bb?_13a:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_137>=0&&!ns.width){ns.width="4px";}if(_138>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_137>=0){_137=Math.max(_137-pb.w-mb.w,0);}if(_138>=0){_138=Math.max(_138-pb.h-mb.h,0);}d._setBox(node,_135,_136,_137,_138);};var _13a={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 _13b=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_13c=0,_13d=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_13c+=val-0;if(node==_13d){break;}}node=node.parentNode;}return _13c;};dojo._docScroll=function(){var _13e=d.body(),_13f=d.global,de=d.doc.documentElement;return{y:(_13f.pageYOffset||de.scrollTop||_13e.scrollTop||0),x:(_13f.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_13e.scrollLeft||0)};};dojo._isBodyLtr=function(){return("_bodyLtr"in d)?d._bodyLtr:d._bodyLtr=gcs(d.body()).direction=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<7){return{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};}else{if(d.isIE<8){return{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top};}else{return{x:0,y:0};}}};dojo._fixIeBiDiScrollLeft=function(_140){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return _140+de.clientWidth-de.scrollWidth;}return _140;};dojo._abs=function(node,_141){var db=d.body(),dh=d.body().parentNode,ret;if(node["getBoundingClientRect"]){var _142=node.getBoundingClientRect();ret={x:_142.left,y:_142.top};if(d.isFF>=3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}if(d.isIE){var _143=d._getIeDocumentElementOffset();ret.x-=_143.x+(d.isQuirks?db.clientLeft:0);ret.y-=_143.y+(d.isQuirks?db.clientTop:0);}}else{ret={x:0,y:0};if(node["offsetParent"]){ret.x-=_13b(node,"scrollLeft");ret.y-=_13b(node,"scrollTop");var _144=node;do{var n=_144.offsetLeft,t=_144.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(_144);if(_144!=node){if(d.isFF){ret.x+=2*px(_144,cs.borderLeftWidth);ret.y+=2*px(_144,cs.borderTopWidth);}else{ret.x+=px(_144,cs.borderLeftWidth);ret.y+=px(_144,cs.borderTopWidth);}}if(d.isFF&&cs.position=="static"){var _145=_144.parentNode;while(_145!=_144.offsetParent){var pcs=gcs(_145);if(pcs.position=="static"){ret.x+=px(_144,pcs.borderLeftWidth);ret.y+=px(_144,pcs.borderTopWidth);}_145=_145.parentNode;}}_144=_144.offsetParent;}while((_144!=dh)&&_144);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}if(_141){var _146=d._docScroll();ret.x+=_146.x;ret.y+=_146.y;}return ret;};dojo.coords=function(node,_147){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,_147);mb.x=abs.x;mb.y=abs.y;return mb;};var _148={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_149={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_14a={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _14b=function(name){return _149[name.toLowerCase()]||name;};var _14c=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _14a[_148[lc]||name]||_14c(byId(node),_149[lc]||name);};var _14d={},_14e=0,_14f=dojo._scopeName+"attrid",_150={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_151){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(),_152=_148[lc]||name,_153=_14a[_152],_154=_149[lc]||name;if(args==3){do{if(_152=="style"&&typeof _151!="string"){d.style(node,_151);break;}if(_152=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase()in _150){d.empty(node);node.appendChild(d._toDom(_151,node.ownerDocument));}else{node[_152]=_151;}break;}if(d.isFunction(_151)){var _155=d.attr(node,_14f);if(!_155){_155=_14e++;d.attr(node,_14f,_155);}if(!_14d[_155]){_14d[_155]={};}var h=_14d[_155][_152];if(h){d.disconnect(h);}else{try{delete node[_152];}catch(e){}}_14d[_155][_152]=d.connect(node,_152,_151);break;}if(_153||typeof _151=="boolean"){node[_152]=_151;break;}node.setAttribute(_154,_151);}while(false);return node;}_151=node[_152];if(_153&&typeof _151!="undefined"){return _151;}if(_152!="href"&&(typeof _151=="boolean"||d.isFunction(_151))){return _151;}return _14c(node,_154)?node.getAttribute(_154):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_14b(name));};dojo.getEffectiveAttrValue=function(node,name){node=byId(node);var lc=name.toLowerCase(),_156=_148[lc]||name;if((_156 in node)&&_156!="href"){return node[_156];}var _157=_149[lc]||name;return _14c(node,_157)?node.getAttribute(_157):null;};dojo.create=function(tag,_158,_159,pos){var doc=d.doc;if(_159){_159=byId(_159);doc=_159.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_158){d.attr(tag,_158);}if(_159){d.place(tag,_159,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 _15a={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"]},_15b=/<\s*([\w\:]+)/,_15c={},_15d=0,_15e="__"+d._scopeName+"ToDomId";for(var _15f in _15a){var tw=_15a[_15f];tw.pre=_15f=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}d._toDom=function(frag,doc){doc=doc||d.doc;var _160=doc[_15e];if(!_160){doc[_15e]=_160=++_15d+"";_15c[_160]=doc.createElement("div");}frag+="";var _161=frag.match(_15b),tag=_161?_161[1].toLowerCase():"",_162=_15c[_160],wrap,i,fc,df;if(_161&&_15a[tag]){wrap=_15a[tag];_162.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_162=_162.firstChild;}}else{_162.innerHTML=frag;}if(_162.childNodes.length==1){return _162.removeChild(_162.firstChild);}df=doc.createDocumentFragment();while(fc=_162.firstChild){df.appendChild(fc);}return df;};var _163="className";dojo.hasClass=function(node,_164){return((" "+byId(node)[_163]+" ").indexOf(" "+_164+" ")>=0);};dojo.addClass=function(node,_165){node=byId(node);var cls=node[_163];if((" "+cls+" ").indexOf(" "+_165+" ")<0){node[_163]=cls+(cls?" ":"")+_165;}};dojo.removeClass=function(node,_166){node=byId(node);var t=d.trim((" "+node[_163]+" ").replace(" "+_166+" "," "));if(node[_163]!=t){node[_163]=t;}};dojo.toggleClass=function(node,_167,_168){if(_168===undefined){_168=!d.hasClass(node,_167);}d[_168?"addClass":"removeClass"](node,_167);};})();}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,_169){a.constructor=d._NodeListCtor;dojo._mixin(a,d._NodeListCtor.prototype);return _169?a._stash(_169):a;};var _16a=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 _16b=function(f,o){return function(){this.forEach(_16a(f,arguments,o));return this;};};var _16c=function(f,o){return function(){return this.map(_16a(f,arguments,o));};};var _16d=function(f,o){return function(){return this.filter(_16a(f,arguments,o));};};var _16e=function(f,g,o){return function(){var a=arguments,body=_16a(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _16f=function(a){return a.length==1&&(typeof a[0]=="string");};var _170=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=tnl;nl._adaptAsMap=_16c;nl._adaptAsForEach=_16b;nl._adaptAsFilter=_16d;nl._adaptWithCondition=_16e;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return tnl(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]=_16e(d[name],_16f);});d.forEach(["connect","addClass","removeClass","toggleClass","empty"],function(name){nlp[name]=_16b(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_171,_172){var _173=_171.parse===true?true:false;if(typeof _171.template=="string"){var _174=_171.templateFunc||(dojo.string&&dojo.string.substitute);_171=_174?_174(_171.template,_171):_171;}if(typeof _171=="string"){_171=dojo._toDom(_171,(_172&&_172.ownerDocument));if(_171.nodeType==11){_171=dojo._toArray(_171.childNodes);}else{_171=[_171];}}else{if(!dojo.isArrayLike(_171)){_171=[_171];}else{if(!dojo.isArray(_171)){_171=dojo._toArray(_171);}}}if(_173){_171._runParse=true;}return _171;},_place:function(ary,_175,_176,_177){var _178=_175,_179;var _17a=ary.length;for(var i=_17a-1;i>=0;i--){var node=(_177?ary[i].cloneNode(true):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_179){_179=_178.ownerDocument.createElement("div");}_179.appendChild(node);dojo.parser.parse(_179);node=_179.firstChild;while(_179.firstChild){_179.removeChild(_179.firstChild);}}if(i==_17a-1){dojo.place(node,_178,_176);}else{_178.parentNode.insertBefore(node,_178);}_178=node;}},_stash:function(_17b){this._parent=_17b;return this;},end:function(){if(this._parent){return this._parent;}else{throw new Error("Bad call to dojo.NodeList.end(): no parent NodeList");}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(a.constructor===NodeList||a.constructor==d._NodeListCtor)?aps.call(a,0):a;});return tnl(apc.apply(t,m),this);},map:function(func,obj){return tnl(d.map(this,func,obj),this);},forEach:function(_17c,_17d){d.forEach(this,_17c,_17d);return this;},coords:_16c(d.coords),place:function(_17e,_17f){var item=d.query(_17e)[0];return this.forEach(function(node){d.place(node,item,_17f);});},orphan:function(_180){return(_180?d._filterQueryResult(this,_180):this).forEach(_170);},adopt:function(_181,_182){return d.query(_181).place(this[0],_182)._stash(this);},query:function(_183){if(!_183){return this;}var ret=this.map(function(node){return d.query(_183,node).filter(function(_184){return _184!==undefined;});});return tnl(apc.apply([],ret),this);},filter:function(_185){var a=arguments,_186=this,_187=0;if(typeof _185=="string"){_186=d._filterQueryResult(this,a[0]);if(a.length==1){return _186._stash(this);}_187=1;}return tnl(d.filter(_186,a[_187],a[_187+1]),this);},addContent:function(_188,_189){_188=this._normalize(_188,this[0]);for(var i=0,node;node=this[i];i++){this._place(_188,node,_189,i>0);}return this;},instantiate:function(_18a,_18b){var c=d.isFunction(_18a)?_18a:d.getObject(_18a);_18b=_18b||{};var self=this;return this.forEach(function(node){new c(_18b,node);});},at:function(){var t=new dojo._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 _18c="on"+evt;nlp[_18c]=function(a,b){return this.connect(_18c,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 _18d=function(){return d.doc;};var _18e=(d.isWebKit&&((_18d().compatMode)=="BackCompat"));var _18f=!!_18d().firstChild["children"]?"children":"childNodes";var _190=">~+";var _191=false;var _192=function(){return true;};var _193=function(_194){if(_190.indexOf(_194.slice(-1))>=0){_194+=" * ";}else{_194+=" ";}var ts=function(s,e){return trim(_194.slice(s,e));};var _195=[];var _196=-1,_197=-1,_198=-1,_199=-1,_19a=-1,inId=-1,_19b=-1,lc="",cc="",_19c;var x=0,ql=_194.length,_19d=null,_19e=null;var _19f=function(){if(_19b>=0){var tv=(_19b==x)?null:ts(_19b,x);_19d[(_190.indexOf(tv)<0)?"tag":"oper"]=tv;_19b=-1;}};var _1a0=function(){if(inId>=0){_19d.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1a1=function(){if(_19a>=0){_19d.classes.push(ts(_19a+1,x).replace(/\\/g,""));_19a=-1;}};var _1a2=function(){_1a0();_19f();_1a1();};var _1a3=function(){_1a2();if(_199>=0){_19d.pseudos.push({name:ts(_199+1,x)});}_19d.loops=(_19d.pseudos.length||_19d.attrs.length||_19d.classes.length);_19d.oquery=_19d.query=ts(_19c,x);_19d.otag=_19d.tag=(_19d["oper"])?null:(_19d.tag||"*");if(_19d.tag){_19d.tag=_19d.tag.toUpperCase();}if(_195.length&&(_195[_195.length-1].oper)){_19d.infixOper=_195.pop();_19d.query=_19d.infixOper.query+" "+_19d.query;}_195.push(_19d);_19d=null;};for(;lc=cc,cc=_194.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_19d){_19c=x;_19d={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return(_191)?this.otag:this.tag;}};_19b=x;}if(_196>=0){if(cc=="]"){if(!_19e.attr){_19e.attr=ts(_196+1,x);}else{_19e.matchFor=ts((_198||_196+1),x);}var cmf=_19e.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_19e.matchFor=cmf.slice(1,-1);}}_19d.attrs.push(_19e);_19e=null;_196=_198=-1;}else{if(cc=="="){var _1a4=("|~^$*".indexOf(lc)>=0)?lc:"";_19e.type=_1a4+cc;_19e.attr=ts(_196+1,x-_1a4.length);_198=x+1;}}}else{if(_197>=0){if(cc==")"){if(_199>=0){_19e.value=ts(_197+1,x);}_199=_197=-1;}}else{if(cc=="#"){_1a2();inId=x+1;}else{if(cc=="."){_1a2();_19a=x;}else{if(cc==":"){_1a2();_199=x;}else{if(cc=="["){_1a2();_196=x;_19e={};}else{if(cc=="("){if(_199>=0){_19e={name:ts(_199+1,x),value:null};_19d.pseudos.push(_19e);}_197=x;}else{if((cc==" ")&&(lc!=cc)){_1a3();}}}}}}}}}return _195;};var _1a5=function(_1a6,_1a7){if(!_1a6){return _1a7;}if(!_1a7){return _1a6;}return function(){return _1a6.apply(window,arguments)&&_1a7.apply(window,arguments);};};var _1a8=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _1a9=function(n){return(1==n.nodeType);};var _1aa="";var _1ab=function(elem,attr){if(!elem){return _1aa;}if(attr=="class"){return elem.className||_1aa;}if(attr=="for"){return elem.htmlFor||_1aa;}if(attr=="style"){return elem.style.cssText||_1aa;}return(_191?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1aa;};var _1ac={"*=":function(attr,_1ad){return function(elem){return(_1ab(elem,attr).indexOf(_1ad)>=0);};},"^=":function(attr,_1ae){return function(elem){return(_1ab(elem,attr).indexOf(_1ae)==0);};},"$=":function(attr,_1af){var tval=" "+_1af;return function(elem){var ea=" "+_1ab(elem,attr);return(ea.lastIndexOf(_1af)==(ea.length-_1af.length));};},"~=":function(attr,_1b0){var tval=" "+_1b0+" ";return function(elem){var ea=" "+_1ab(elem,attr)+" ";return(ea.indexOf(tval)>=0);};},"|=":function(attr,_1b1){var _1b2=" "+_1b1+"-";return function(elem){var ea=" "+_1ab(elem,attr);return((ea==_1b1)||(ea.indexOf(_1b2)==0));};},"=":function(attr,_1b3){return function(elem){return(_1ab(elem,attr)==_1b3);};}};var _1b4=(typeof _18d().firstChild.nextElementSibling=="undefined");var _1b5=!_1b4?"nextElementSibling":"nextSibling";var _1b6=!_1b4?"previousElementSibling":"previousSibling";var _1b7=(_1b4?_1a9:_192);var _1b8=function(node){while(node=node[_1b6]){if(_1b7(node)){return false;}}return true;};var _1b9=function(node){while(node=node[_1b5]){if(_1b7(node)){return false;}}return true;};var _1ba=function(node){var root=node.parentNode;var i=0,tret=root[_18f],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[_1b5]){if(_1b7(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _1bb=function(elem){return!((_1ba(elem))%2);};var _1bc=function(elem){return((_1ba(elem))%2);};var _1bd={"checked":function(name,_1be){return function(elem){return!!d.attr(elem,"checked");};},"first-child":function(){return _1b8;},"last-child":function(){return _1b9;},"only-child":function(name,_1bf){return function(node){if(!_1b8(node)){return false;}if(!_1b9(node)){return false;}return true;};},"empty":function(name,_1c0){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,_1c1){var cz=_1c1.charAt(0);if(cz=="\""||cz=="'"){_1c1=_1c1.slice(1,-1);}return function(elem){return(elem.innerHTML.indexOf(_1c1)>=0);};},"not":function(name,_1c2){var p=_193(_1c2)[0];var _1c3={el:1};if(p.tag!="*"){_1c3.tag=1;}if(!p.classes.length){_1c3.classes=1;}var ntf=_1c4(p,_1c3);return function(elem){return(!ntf(elem));};},"nth-child":function(name,_1c5){var pi=parseInt;if(_1c5=="odd"){return _1bc;}else{if(_1c5=="even"){return _1bb;}}if(_1c5.indexOf("n")!=-1){var _1c6=_1c5.split("n",2);var pred=_1c6[0]?((_1c6[0]=="-")?-1:pi(_1c6[0])):1;var idx=_1c6[1]?pi(_1c6[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=_1ba(elem);return(i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_1c5=idx;}}var _1c7=pi(_1c5);return function(elem){return(_1ba(elem)==_1c7);};}};var _1c8=(d.isIE)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return(_191?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return(elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _1c4=function(_1c9,_1ca){if(!_1c9){return _192;}_1ca=_1ca||{};var ff=null;if(!("el"in _1ca)){ff=_1a5(ff,_1a9);}if(!("tag"in _1ca)){if(_1c9.tag!="*"){ff=_1a5(ff,function(elem){return(elem&&(elem.tagName==_1c9.getTag()));});}}if(!("classes"in _1ca)){each(_1c9.classes,function(_1cb,idx,arr){var re=new RegExp("(?:^|\\s)"+_1cb+"(?:\\s|$)");ff=_1a5(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos"in _1ca)){each(_1c9.pseudos,function(_1cc){var pn=_1cc.name;if(_1bd[pn]){ff=_1a5(ff,_1bd[pn](pn,_1cc.value));}});}if(!("attrs"in _1ca)){each(_1c9.attrs,function(attr){var _1cd;var a=attr.attr;if(attr.type&&_1ac[attr.type]){_1cd=_1ac[attr.type](a,attr.matchFor);}else{if(a.length){_1cd=_1c8(a);}}if(_1cd){ff=_1a5(ff,_1cd);}});}if(!("id"in _1ca)){if(_1c9.id){ff=_1a5(ff,function(elem){return(!!elem&&(elem.id==_1c9.id));});}}if(!ff){if(!("default"in _1ca)){ff=_192;}}return ff;};var _1ce=function(_1cf){return function(node,ret,bag){while(node=node[_1b5]){if(_1b4&&(!_1a9(node))){continue;}if((!bag||_1d0(node,bag))&&_1cf(node)){ret.push(node);}break;}return ret;};};var _1d1=function(_1d2){return function(root,ret,bag){var te=root[_1b5];while(te){if(_1b7(te)){if(bag&&!_1d0(te,bag)){break;}if(_1d2(te)){ret.push(te);}}te=te[_1b5];}return ret;};};var _1d3=function(_1d4){_1d4=_1d4||_192;return function(root,ret,bag){var te,x=0,tret=root[_18f];while(te=tret[x++]){if(_1b7(te)&&(!bag||_1d0(te,bag))&&(_1d4(te,x))){ret.push(te);}}return ret;};};var _1d5=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return!!pn;};var _1d6={};var _1d7=function(_1d8){var _1d9=_1d6[_1d8.query];if(_1d9){return _1d9;}var io=_1d8.infixOper;var oper=(io?io.oper:"");var _1da=_1c4(_1d8,{el:1});var qt=_1d8.tag;var _1db=("*"==qt);var ecs=_18d()["getElementsByClassName"];if(!oper){if(_1d8.id){_1da=(!_1d8.loops&&_1db)?_192:_1c4(_1d8,{el:1,id:1});_1d9=function(root,arr){var te=d.byId(_1d8.id,(root.ownerDocument||root));if(!te||!_1da(te)){return;}if(9==root.nodeType){return _1a8(te,arr);}else{if(_1d5(te,root)){return _1a8(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_1d8.classes.length&&!_18e){_1da=_1c4(_1d8,{el:1,classes:1,id:1});var _1dc=_1d8.classes.join(" ");_1d9=function(root,arr,bag){var ret=_1a8(0,arr),te,x=0;var tret=root.getElementsByClassName(_1dc);while((te=tret[x++])){if(_1da(te,root)&&_1d0(te,bag)){ret.push(te);}}return ret;};}else{if(!_1db&&!_1d8.loops){_1d9=function(root,arr,bag){var ret=_1a8(0,arr),te,x=0;var tret=root.getElementsByTagName(_1d8.getTag());while((te=tret[x++])){if(_1d0(te,bag)){ret.push(te);}}return ret;};}else{_1da=_1c4(_1d8,{el:1,tag:1,id:1});_1d9=function(root,arr,bag){var ret=_1a8(0,arr),te,x=0;var tret=root.getElementsByTagName(_1d8.getTag());while((te=tret[x++])){if(_1da(te,root)&&_1d0(te,bag)){ret.push(te);}}return ret;};}}}}else{var _1dd={el:1};if(_1db){_1dd.tag=1;}_1da=_1c4(_1d8,_1dd);if("+"==oper){_1d9=_1ce(_1da);}else{if("~"==oper){_1d9=_1d1(_1da);}else{if(">"==oper){_1d9=_1d3(_1da);}}}}return _1d6[_1d8.query]=_1d9;};var _1de=function(root,_1df){var _1e0=_1a8(root),qp,x,te,qpl=_1df.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_1df[i];x=_1e0.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_1d7(qp);while(te=_1e0[x--]){gef(te,ret,bag);}if(!ret.length){break;}_1e0=ret;}return ret;};var _1e1={},_1e2={};var _1e3=function(_1e4){var _1e5=_193(trim(_1e4));if(_1e5.length==1){var tef=_1d7(_1e5[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _1de(root,_1e5);};};var nua=navigator.userAgent;var wk="WebKit/";var _1e6=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _1e7=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _1e8=(!!_18d()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_1e6));var _1e9=function(_1ea,_1eb){if(_1e8){var _1ec=_1e2[_1ea];if(_1ec&&!_1eb){return _1ec;}}var _1ed=_1e1[_1ea];if(_1ed){return _1ed;}var qcz=_1ea.charAt(0);var _1ee=(-1==_1ea.indexOf(" "));if((_1ea.indexOf("#")>=0)&&(_1ee)){_1eb=true;}var _1ef=(_1e8&&(!_1eb)&&(_190.indexOf(qcz)==-1)&&(!d.isIE||(_1ea.indexOf(":")==-1))&&(!(_18e&&(_1ea.indexOf(".")>=0)))&&(_1ea.indexOf(":contains")==-1)&&(_1ea.indexOf("|=")==-1));if(_1ef){var tq=(_190.indexOf(_1ea.charAt(_1ea.length-1))>=0)?(_1ea+" *"):_1ea;return _1e2[_1ea]=function(root){try{if(!((9==root.nodeType)||_1ee)){throw"";}var r=root[qsa](tq);r[_1e7]=true;return r;}catch(e){return _1e9(_1ea,true)(root);}};}else{var _1f0=_1ea.split(/\s*,\s*/);return _1e1[_1ea]=((_1f0.length<2)?_1e3(_1ea):function(root){var _1f1=0,ret=[],tp;while((tp=_1f0[_1f1++])){ret=ret.concat(_1e3(tp)(root));}return ret;});}};var _1f2=0;var _1f3=d.isIE?function(node){if(_191){return(node.getAttribute("_uid")||node.setAttribute("_uid",++_1f2)||_1f2);}else{return node.uniqueID;}}:function(node){return(node._uid||(node._uid=++_1f2));};var _1d0=function(node,bag){if(!bag){return 1;}var id=_1f3(node);if(!bag[id]){return bag[id]=1;}return 0;};var _1f4="_zipIdx";var _1f5=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;}_1f2++;if(d.isIE&&_191){var _1f6=_1f2+"";arr[0].setAttribute(_1f4,_1f6);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_1f4)!=_1f6){ret.push(te);}te.setAttribute(_1f4,_1f6);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_1a9(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_1f4]=_1f2;}for(var x=1,te;te=arr[x];x++){if(arr[x][_1f4]!=_1f2){ret.push(te);}te[_1f4]=_1f2;}}}return ret;};d.query=function(_1f7,root){qlc=d._NodeListCtor;if(!_1f7){return new qlc();}if(_1f7.constructor==qlc){return _1f7;}if(typeof _1f7!="string"){return new qlc(_1f7);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_18d();var od=root.ownerDocument||root.documentElement;_191=(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=_1e9(_1f7)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _1f5(r);};d.query.pseudos=_1bd;d._filterQueryResult=function(_1f8,_1f9){var _1fa=new d._NodeListCtor();var _1fb=_1c4(_193(_1f9)[0]);for(var x=0,te;te=_1f8[x];x++){if(_1fb(te)){_1fa.push(te);}}return _1fa;};})(this["queryPortability"]||this["acme"]||dojo);}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _1fc=dojo;var cfg=dojo.config;function _1fd(obj,name,_1fe){if(_1fe===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_1fe];}else{if(_1fc.isArray(val)){val.push(_1fe);}else{obj[name]=_1fe;}}};dojo.fieldToObject=function(_1ff){var ret=null;var item=_1fc.byId(_1ff);if(item){var _200=item.name;var type=(item.type||"").toLowerCase();if(_200&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_1fc.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_201){var ret={};var _202="file|submit|image|reset|button|";_1fc.forEach(dojo.byId(_201).elements,function(item){var _203=item.name;var type=(item.type||"").toLowerCase();if(_203&&type&&_202.indexOf(type)==-1&&!item.disabled){_1fd(ret,_203,_1fc.fieldToObject(item));if(type=="image"){ret[_203+".x"]=ret[_203+".y"]=ret[_203].x=ret[_203].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _204=[];var _205={};for(var name in map){var _206=map[name];if(_206!=_205[name]){var _207=enc(name)+"=";if(_1fc.isArray(_206)){for(var i=0;i<_206.length;i++){_204.push(_207+enc(_206[i]));}}else{_204.push(_207+enc(_206));}}}return _204.join("&");};dojo.formToQuery=function(_208){return _1fc.objectToQuery(_1fc.formToObject(_208));};dojo.formToJson=function(_209,_20a){return _1fc.toJson(_1fc.formToObject(_209),_20a);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_1fc.forEach(qp,function(item){if(item.length){var _20b=item.split("=");var name=dec(_20b.shift());var val=dec(_20b.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_1fc.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;dojo._contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _1fc.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _20c=xhr.responseText;var _20d=_20c.indexOf("/*");var _20e=_20c.lastIndexOf("*/");if(_20d==-1||_20e==-1){throw new Error("JSON was not comment filtered");}return _1fc.fromJson(_20c.substring(_20d+2,_20e));},javascript:function(xhr){return _1fc.eval(xhr.responseText);},xml:function(xhr){var _20f=xhr.responseXML;if(_1fc.isIE&&(!_20f||!_20f.documentElement)){var ms=function(n){return"MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_1fc.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_20f=dom;}catch(e){return false;}return true;});}return _20f;}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var _210=_1fc._contentHandlers;if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _210["json-comment-filtered"](xhr);}else{return _210["json"](xhr);}};dojo._ioSetArgs=function(args,_211,_212,_213){var _214={args:args,url:args.url};var _215=null;if(args.form){var form=_1fc.byId(args.form);var _216=form.getAttributeNode("action");_214.url=_214.url||(_216?_216.value:null);_215=_1fc.formToObject(form);}var _217=[{}];if(_215){_217.push(_215);}if(args.content){_217.push(args.content);}if(args.preventCache){_217.push({"dojo.preventCache":new Date().valueOf()});}_214.query=_1fc.objectToQuery(_1fc.mixin.apply(null,_217));_214.handleAs=args.handleAs||"text";var d=new _1fc.Deferred(_211);d.addCallbacks(_212,function(_218){return _213(_218,d);});var ld=args.load;if(ld&&_1fc.isFunction(ld)){d.addCallback(function(_219){return ld.call(args,_219,_214);});}var err=args.error;if(err&&_1fc.isFunction(err)){d.addErrback(function(_21a){return err.call(args,_21a,_214);});}var _21b=args.handle;if(_21b&&_1fc.isFunction(_21b)){d.addBoth(function(_21c){return _21b.call(args,_21c,_214);});}if(cfg.ioPublish&&_1fc["publish"]&&_214.args.ioPublish!==false){d.addCallbacks(function(res){_1fc["publish"]("/dojo/io/load",[d,res]);return res;},function(res){_1fc["publish"]("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_1fc["publish"]("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_214;return d;};var _21d=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _21e=typeof xhr.abort;if(_21e=="function"||_21e=="object"||_21e=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _21f=function(dfd){var ret=_1fc._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _220=function(_221,dfd){console.error(_221);return _221;};var _222=null;var _223=[];var _224=0;var _225=function(dfd){if(_224<=0){_224=0;if(cfg.ioPublish&&_1fc["publish"]&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_1fc["publish"]("/dojo/io/stop");}}};var _226=function(){var now=(new Date()).getTime();if(!_1fc._blockAsync){for(var i=0,tif;i<_223.length&&(tif=_223[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_223.splice(i--,1);_224-=1;}else{if(tif.ioCheck(dfd)){_223.splice(i--,1);tif.resHandle(dfd);_224-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_223.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_224-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_225(dfd);if(!_223.length){clearInterval(_222);_222=null;return;}};dojo._ioCancelAll=function(){try{_1fc.forEach(_223,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_1fc.isIE){_1fc.addOnWindowUnload(_1fc._ioCancelAll);}_1fc._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_1fc["publish"]&&dfd.ioArgs.args.ioPublish!==false){if(!_224){_1fc["publish"]("/dojo/io/start");}_224+=1;_1fc["publish"]("/dojo/io/send",[dfd]);}};_1fc._ioWatch=function(dfd,_227,_228,_229){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_223.push({dfd:dfd,validCheck:_227,ioCheck:_228,resHandle:_229});if(!_222){_222=setInterval(_226,50);}if(args.sync){_226();}};var _22a="application/x-www-form-urlencoded";var _22b=function(dfd){return dfd.ioArgs.xhr.readyState;};var _22c=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _22d=function(dfd){var xhr=dfd.ioArgs.xhr;if(_1fc._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(_22e){if(_22e.query.length){_22e.url+=(_22e.url.indexOf("?")==-1?"?":"&")+_22e.query;_22e.query=null;}};dojo.xhr=function(_22f,args,_230){var dfd=_1fc._ioSetArgs(args,_21d,_21f,_220);var _231=dfd.ioArgs;var xhr=dfd.ioArgs.xhr=_1fc._xhrObj(dfd.ioArgs.args);if(!xhr){dfd.cancel();return dfd;}if("postData"in args){_231.query=args.postData;}else{if("putData"in args){_231.query=args.putData;}else{if("rawBody"in args){_231.query=args.rawBody;}else{if((arguments.length>2&&!_230)||"POST|PUT".indexOf(_22f.toUpperCase())==-1){_1fc._ioAddQueryToUrl(dfd.ioArgs);}}}}xhr.open(_22f,_231.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{xhr.setRequestHeader(hdr,args.headers[hdr]);}}}xhr.setRequestHeader("Content-Type",args.contentType||_22a);if(!args.headers||!args.headers["X-Requested-With"]){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_1fc._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_231.query);}else{try{xhr.send(_231.query);}catch(e){dfd.ioArgs.error=e;dfd.cancel();}}_1fc._ioWatch(dfd,_22b,_22c,_22d);xhr=null;return dfd;};dojo.xhrGet=function(args){return _1fc.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _1fc.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _1fc.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _1fc.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 _232=d._mixin;dojo._Line=function(_233,end){this.start=_233;this.end=end;};dojo._Line.prototype.getValue=function(n){return((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_232(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,_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(_234,_235){var _236=this;if(_236._delayTimer){_236._clearTimer();}if(_235){_236._stopTimer();_236._active=_236._paused=false;_236._percent=0;}else{if(_236._active&&!_236._paused){return _236;}}_236._fire("beforeBegin",[_236.node]);var de=_234||_236.delay,_237=dojo.hitch(_236,"_play",_235);if(de>0){_236._delayTimer=setTimeout(_237,de);return _236;}_237();return _236;},_play:function(_238){var _239=this;if(_239._delayTimer){_239._clearTimer();}_239._startTime=new Date().valueOf();if(_239._paused){_239._startTime-=_239.duration*_239._percent;}_239._endTime=_239._startTime+_239.duration;_239._active=true;_239._paused=false;var _23a=_239.curve.getValue(_239._percent);if(!_239._percent){if(!_239._startRepeatCount){_239._startRepeatCount=_239.repeat;}_239._fire("onBegin",[_23a]);}_239._fire("onPlay",[_23a]);_239._cycle();return _239;},pause:function(){var _23b=this;if(_23b._delayTimer){_23b._clearTimer();}_23b._stopTimer();if(!_23b._active){return _23b;}_23b._paused=true;_23b._fire("onPause",[_23b.curve.getValue(_23b._percent)]);return _23b;},gotoPercent:function(_23c,_23d){var _23e=this;_23e._stopTimer();_23e._active=_23e._paused=true;_23e._percent=_23c;if(_23d){_23e.play();}return _23e;},stop:function(_23f){var _240=this;if(_240._delayTimer){_240._clearTimer();}if(!_240._timer){return _240;}_240._stopTimer();if(_23f){_240._percent=1;}_240._fire("onStop",[_240.curve.getValue(_240._percent)]);_240._active=_240._paused=false;return _240;},status:function(){if(this._active){return this._paused?"paused":"playing";}return"stopped";},_cycle:function(){var _241=this;if(_241._active){var curr=new Date().valueOf();var step=(curr-_241._startTime)/(_241._endTime-_241._startTime);if(step>=1){step=1;}_241._percent=step;if(_241.easing){step=_241.easing(step);}_241._fire("onAnimate",[_241.curve.getValue(step)]);if(_241._percent<1){_241._startTimer();}else{_241._active=false;if(_241.repeat>0){_241.repeat--;_241.play(null,true);}else{if(_241.repeat==-1){_241.play(null,true);}else{if(_241._startRepeatCount){_241.repeat=_241._startRepeatCount;_241._startRepeatCount=0;}}}_241._percent=0;_241._fire("onEnd",[_241.node]);_241._stopTimer();}}return _241;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_242=[],_243=null,_244={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_244,"run",this,"_cycle");ctr++;}if(!_243){_243=setInterval(d.hitch(_244,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_243);_243=null;ctr=0;}}});var _245=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 _246=_232({properties:{}},args),_247=(_246.properties.opacity={});_247.start=!("start"in _246)?function(){return+d.style(_246.node,"opacity")||0;}:_246.start;_247.end=_246.end;var anim=d.animateProperty(_246);d.connect(anim,"beforeBegin",d.partial(_245,_246.node));return anim;};dojo.fadeIn=function(args){return d._fade(_232({end:1},args));};dojo.fadeOut=function(args){return d._fade(_232({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _248=function(_249){this._properties=_249;for(var p in _249){var prop=_249[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_248.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_24a=prop.start;if(_24a instanceof d.Color){ret[p]=d.blendColors(_24a,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_24a)){ret[p]=((prop.end-_24a)*r)+_24a+(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]=_232({},(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 _24b=(p.toLowerCase().indexOf("color")>=0);function _24c(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:(_24b?v:parseFloat(v));};if(!("end"in prop)){prop.end=_24c(n,p);}else{if(!("start"in prop)){prop.start=_24c(n,p);}}if(_24b){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 _248(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_24d,_24e,_24f,_250,_251){return d.animateProperty({node:node,duration:_24e||d.Animation.prototype.duration,properties:_24d,easing:_24f,onEnd:_250}).play(_251||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.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._loadInit,1000);}})();;if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _1=dojo.doc;if(_1.selection){var s=_1.selection;if(s.type=="Text"){return!s.createRange().htmlText.length;}else{return!s.createRange().length;}}else{var _2=dojo.global;var _3=_2.getSelection();return!_3||_3.isCollapsed||!_3.toString();}},getBookmark:function(){var _4,_5=dojo.doc.selection;if(_5){var _6=_5.createRange();if(_5.type.toUpperCase()=="CONTROL"){if(_6.length){_4=[];var i=0,_7=_6.length;while(i<_7){_4.push(_6.item(i++));}}else{_4=null;}}else{_4=_6.getBookmark();}}else{if(window.getSelection){_5=dojo.global.getSelection();if(_5){_6=_5.getRangeAt(0);_4=_6.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _4;},moveToBookmark:function(_8){var _9=dojo.doc;if(_9.selection){var _a;if(dojo.isArray(_8)){_a=_9.body.createControlRange();dojo.forEach(_8,function(n){_a.addElement(n);});}else{_a=_9.selection.createRange();_a.moveToBookmark(_8);}_a.select();}else{var _b=dojo.global.getSelection&&dojo.global.getSelection();if(_b&&_b.removeAllRanges){_b.removeAllRanges();_b.addRange(_8);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_c,_d){return{node:_c&&dojo.isDescendant(dijit._curFocus,_c.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_d||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_d||dojo.global,dijit.getBookmark):null,openedForWindow:_d};},focus:function(_e){if(!_e){return;}var _f="node"in _e?_e.node:_e,_10=_e.bookmark,_11=_e.openedForWindow;if(_f){var _12=(_f.tagName.toLowerCase()=="iframe")?_f.contentWindow:_f;if(_12&&_12.focus){try{_12.focus();}catch(e){}}dijit._onFocusNode(_f);}if(_10&&dojo.withGlobal(_11||dojo.global,dijit.isCollapsed)){if(_11){_11.focus();}try{dojo.withGlobal(_11||dojo.global,dijit.moveToBookmark,null,[_10]);}catch(e){}}},_activeStack:[],registerIframe:function(_13){dijit.registerWin(_13.contentWindow,_13);},registerWin:function(_14,_15){dojo.connect(_14.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_15||evt.target||evt.srcElement);});var doc=_14.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_15||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_15||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_15||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_15||evt.target);},true);}}doc=null;},_onBlurNode:function(_16){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(_17){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _18=[];try{while(_17){if(_17.dijitPopupParent){_17=dijit.byId(_17.dijitPopupParent).domNode;}else{if(_17.tagName&&_17.tagName.toLowerCase()=="body"){if(_17===dojo.body()){break;}_17=dijit.getDocumentWindow(_17.ownerDocument).frameElement;}else{var id=_17.getAttribute&&_17.getAttribute("widgetId");if(id){_18.unshift(id);}_17=_17.parentNode;}}}}catch(e){}dijit._setStack(_18);},_onFocusNode:function(_19){if(!_19){return;}if(_19.nodeType==9){return;}dijit._onTouchNode(_19);if(_19==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_19;dojo.publish("focusNode",[_19]);},_setStack:function(_1a){var _1b=dijit._activeStack;dijit._activeStack=_1a;for(var _1c=0;_1c<Math.min(_1b.length,_1a.length);_1c++){if(_1b[_1c]!=_1a[_1c]){break;}}for(var i=_1b.length-1;i>=_1c;i--){var _1d=dijit.byId(_1b[i]);if(_1d){_1d._focused=false;_1d._hasBeenBlurred=true;if(_1d._onBlur){_1d._onBlur();}if(_1d._setStateClass){_1d._setStateClass();}dojo.publish("widgetBlur",[_1d]);}}for(i=_1c;i<_1a.length;i++){_1d=dijit.byId(_1a[i]);if(_1d){_1d._focused=true;if(_1d._onFocus){_1d._onFocus();}if(_1d._setStateClass){_1d._setStateClass();}dojo.publish("widgetFocus",[_1d]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_1e){if(this._hash[_1e.id]){throw new Error("Tried to register widget with id=="+_1e.id+" but that id is already registered");}this._hash[_1e.id]=_1e;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_1f,_20){var i=0,id;for(id in this._hash){_1f.call(_20||dojo.global,this._hash[id],i++,this._hash);}return this;},filter:function(_21,_22){var res=new dijit.WidgetSet();this.forEach(function(_23,idx){if(_21.call(this,_23,idx)){res.add(_23);}},_22);return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_24){return _24.declaredClass==cls;});},toArray:function(){var ar=[];this.forEach(function(w){ar.push(w);});return ar;},map:function(_25,_26){return dojo.map(this.toArray(),_25,_26);},every:function(_27,_28){var x=0,i;for(i in this._hash){if(!_27.call(_28||dojo.global,this._hash[i],x++)){return false;}}return true;},some:function(_29,_2a){var x=0,i;for(i in this._hash){if(_29.call(_2a||dojo.global,this._hash[i],x++)){return true;}}return false;}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_2b){var id;do{id=_2b+"_"+(_2b in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_2b]:dijit._widgetTypeCtr[_2b]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_2c){var _2d=[];function _2e(_2f){var _30=dojo.isIE?_2f.children:_2f.childNodes,i=0,_31;while(_31=_30[i++]){if(_31.nodeType!=1){continue;}var _32=_31.getAttribute("widgetId");if(_32){var _33=dijit.byId(_32);_2d.push(_33);}else{_2e(_31);}}};_2e(_2c);return _2d;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_34){if(_34.destroyRecursive){_34.destroyRecursive();}else{if(_34.destroy){_34.destroy();}}});});}dijit.byId=function(id){return(dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_35){return dijit.registry.byId(_35.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_36){while(_36){if(_36.getAttribute&&_36.getAttribute("widgetId")){return dijit.registry.byId(_36.getAttribute("widgetId"));}_36=_36.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_37){var _38=dojo.style(_37);return(_38.visibility!="hidden")&&(_38.visibility!="collapsed")&&(_38.display!="none")&&(dojo.attr(_37,"type")!="hidden");};dijit.isTabNavigable=function(_39){if(dojo.hasAttr(_39,"disabled")){return false;}var _3a=dojo.hasAttr(_39,"tabIndex");var _3b=dojo.attr(_39,"tabIndex");if(_3a&&_3b>=0){return true;}var _3c=_39.nodeName.toLowerCase();if(((_3c=="a"&&dojo.hasAttr(_39,"href"))||dijit._tabElements[_3c])&&(!_3a||_3b>=0)){return true;}return false;};dijit._getTabNavigable=function(_3d){var _3e,_3f,_40,_41,_42,_43;var _44=function(_45){dojo.query("> *",_45).forEach(function(_46){var _47=dijit._isElementShown(_46);if(_47&&dijit.isTabNavigable(_46)){var _48=dojo.attr(_46,"tabIndex");if(!dojo.hasAttr(_46,"tabIndex")||_48==0){if(!_3e){_3e=_46;}_3f=_46;}else{if(_48>0){if(!_40||_48<_41){_41=_48;_40=_46;}if(!_42||_48>=_43){_43=_48;_42=_46;}}}}if(_47&&_46.nodeName.toUpperCase()!="SELECT"){_44(_46);}});};if(dijit._isElementShown(_3d)){_44(_3d);}return{first:_3e,last:_3f,lowest:_40,highest:_42};};dijit.getFirstInTabbingOrder=function(_49){var _4a=dijit._getTabNavigable(dojo.byId(_49));return _4a.lowest?_4a.lowest:_4a.first;};dijit.getLastInTabbingOrder=function(_4b){var _4c=dijit._getTabNavigable(dojo.byId(_4b));return _4c.last?_4c.last:_4c.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_4d){this.pairs=[];this.returnWrappers=_4d||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_4e,_4f,_50,_51,_52){this.pairs[((_52)?"unshift":"push")]([_4e,_4f,_50,_51]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _53=this.pairs[i];if(_53[1].apply(this,arguments)){if((_53[3])||(this.returnWrappers)){return _53[2];}else{return _53[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_54){for(var i=0;i<this.pairs.length;i++){var _55=this.pairs[i];if(_55[0]==_54){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 _56=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _57=dojo._docScroll();return{w:_56.clientWidth,h:_56.clientHeight,l:_57.x,t:_57.y};};dijit.placeOnScreen=function(_58,pos,_59,_5a){var _5b=dojo.map(_59,function(_5c){var c={corner:_5c,pos:{x:pos.x,y:pos.y}};if(_5a){c.pos.x+=_5c.charAt(1)=="L"?_5a.x:-_5a.x;c.pos.y+=_5c.charAt(0)=="T"?_5a.y:-_5a.y;}return c;});return dijit._place(_58,_5b);};dijit._place=function(_5d,_5e,_5f){var _60=dijit.getViewport();if(!_5d.parentNode||String(_5d.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_5d);}var _61=null;dojo.some(_5e,function(_62){var _63=_62.corner;var pos=_62.pos;if(_5f){_5f(_5d,_62.aroundCorner,_63);}var _64=_5d.style;var _65=_64.display;var _66=_64.visibility;_64.visibility="hidden";_64.display="";var mb=dojo.marginBox(_5d);_64.display=_65;_64.visibility=_66;var _67=(_63.charAt(1)=="L"?pos.x:Math.max(_60.l,pos.x-mb.w)),_68=(_63.charAt(0)=="T"?pos.y:Math.max(_60.t,pos.y-mb.h)),_69=(_63.charAt(1)=="L"?Math.min(_60.l+_60.w,_67+mb.w):pos.x),_6a=(_63.charAt(0)=="T"?Math.min(_60.t+_60.h,_68+mb.h):pos.y),_6b=_69-_67,_6c=_6a-_68,_6d=(mb.w-_6b)+(mb.h-_6c);if(_61==null||_6d<_61.overflow){_61={corner:_63,aroundCorner:_62.aroundCorner,x:_67,y:_68,w:_6b,h:_6c,overflow:_6d};}return!_6d;});_5d.style.left=_61.x+"px";_5d.style.top=_61.y+"px";if(_61.overflow&&_5f){_5f(_5d,_61.aroundCorner,_61.corner);}return _61;};dijit.placeOnScreenAroundNode=function(_6e,_6f,_70,_71){_6f=dojo.byId(_6f);var _72=_6f.style.display;_6f.style.display="";var _73=_6f.offsetWidth;var _74=_6f.offsetHeight;var _75=dojo.coords(_6f,true);_6f.style.display=_72;return dijit._placeOnScreenAroundRect(_6e,_75.x,_75.y,_73,_74,_70,_71);};dijit.placeOnScreenAroundRectangle=function(_76,_77,_78,_79){return dijit._placeOnScreenAroundRect(_76,_77.x,_77.y,_77.width,_77.height,_78,_79);};dijit._placeOnScreenAroundRect=function(_7a,x,y,_7b,_7c,_7d,_7e){var _7f=[];for(var _80 in _7d){_7f.push({aroundCorner:_80,corner:_7d[_80],pos:{x:x+(_80.charAt(1)=="L"?0:_7b),y:y+(_80.charAt(0)=="T"?0:_7c)}});}return dijit._place(_7a,_7f,_7e);};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(_81,_82,_83,_84){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _85=[],_86=1000,_87=1;this.prepare=function(_88){var s=_88.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(_88);};this.open=function(_89){var _8a=_89.popup,_8b=_89.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_8c=_89.around,id=(_89.around&&_89.around.id)?(_89.around.id+"_dropdown"):("popup_"+_87++);var _8d=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_86+_85.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_8d,"presentation");_8d.style.left=_8d.style.top="0px";if(_89.parent){_8d.dijitPopupParent=_89.parent.id;}var s=_8a.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_8d.appendChild(_8a.domNode);var _8e=new dijit.BackgroundIframe(_8d);var _8f=_8c?dijit.placeOnScreenAroundElement(_8d,_8c,_8b,_8a.orient?dojo.hitch(_8a,"orient"):null):dijit.placeOnScreen(_8d,_89,_8b=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_89.padding);_8d.style.visibility="visible";var _90=[];var _91=function(){for(var pi=_85.length-1;pi>0&&_85[pi].parent===_85[pi-1].widget;pi--){}return _85[pi];};_90.push(dojo.connect(_8d,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_89.onCancel){dojo.stopEvent(evt);_89.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _92=_91();if(_92&&_92.onCancel){_92.onCancel();}}}}));if(_8a.onCancel){_90.push(dojo.connect(_8a,"onCancel",null,_89.onCancel));}_90.push(dojo.connect(_8a,_8a.onExecute?"onExecute":"onChange",null,function(){var _93=_91();if(_93&&_93.onExecute){_93.onExecute();}}));_85.push({wrapper:_8d,iframe:_8e,widget:_8a,parent:_89.parent,onExecute:_89.onExecute,onCancel:_89.onCancel,onClose:_89.onClose,handlers:_90});if(_8a.onOpen){_8a.onOpen(_8f);}return _8f;};this.close=function(_94){while(dojo.some(_85,function(_95){return _95.widget==_94;})){var top=_85.pop(),_96=top.wrapper,_97=top.iframe,_98=top.widget,_99=top.onClose;if(_98.onClose){_98.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_98||!_98.domNode){return;}this.prepare(_98.domNode);_97.destroy();dojo.destroy(_96);if(_99){_99();}}};}();dijit._frames=new function(){var _9a=[];this.pop=function(){var _9b;if(_9a.length){_9b=_9a.pop();_9b.style.display="";}else{if(dojo.isIE){var _9c=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _9d="<iframe src='"+_9c+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_9b=dojo.doc.createElement(_9d);}else{_9b=dojo.create("iframe");_9b.src="javascript:\"\"";_9b.className="dijitBackgroundIframe";}_9b.tabIndex=-1;dojo.body().appendChild(_9b);}return _9b;};this.push=function(_9e){_9e.style.display="none";if(dojo.isIE){_9e.style.removeExpression("width");_9e.style.removeExpression("height");}_9a.push(_9e);};}();dijit.BackgroundIframe=function(_9f){if(!_9f.id){throw new Error("no id");}if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _a0=dijit._frames.pop();_9f.appendChild(_a0);if(dojo.isIE){_a0.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_9f.id+"').offsetWidth");_a0.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_9f.id+"').offsetHeight");}this.iframe=_a0;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(_a1){try{_a1=dojo.byId(_a1);var doc=_a1.ownerDocument||dojo.doc;var _a2=doc.body||dojo.body();var _a3=doc.documentElement||_a2.parentNode;if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||_a1==_a2||_a1==_a3)&&(typeof _a1.scrollIntoView=="function")){_a1.scrollIntoView(false);return;}var ltr=dojo._isBodyLtr();var _a4=dojo.isIE>=8&&!_a5;var rtl=!ltr&&!_a4;var _a6=_a2;var _a5=doc.compatMode=="BackCompat";if(_a5){_a3._offsetWidth=_a3._clientWidth=_a2._offsetWidth=_a2.clientWidth;_a3._offsetHeight=_a3._clientHeight=_a2._offsetHeight=_a2.clientHeight;}else{if(dojo.isWebKit){_a2._offsetWidth=_a2._clientWidth=_a3.clientWidth;_a2._offsetHeight=_a2._clientHeight=_a3.clientHeight;}else{_a6=_a3;}_a3._offsetHeight=_a3.clientHeight;_a3._offsetWidth=_a3.clientWidth;}function _a7(_a8){var ie=dojo.isIE;return((ie<=6||(ie>=7&&_a5))?false:(dojo.style(_a8,"position").toLowerCase()=="fixed"));};function _a9(_aa){var _ab=_aa.parentNode;var _ac=_aa.offsetParent;if(_ac==null||_a7(_aa)){_ac=_a3;_ab=(_aa==_a2)?_a3:null;}_aa._offsetParent=_ac;_aa._parent=_ab;var bp=dojo._getBorderExtents(_aa);_aa._borderStart={H:(_a4&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_aa._borderSize={H:bp.w,V:bp.h};_aa._scrolledAmount={H:_aa.scrollLeft,V:_aa.scrollTop};_aa._offsetSize={H:_aa._offsetWidth||_aa.offsetWidth,V:_aa._offsetHeight||_aa.offsetHeight};_aa._offsetStart={H:(_a4&&!ltr)?_ac.clientWidth-_aa.offsetLeft-_aa._offsetSize.H:_aa.offsetLeft,V:_aa.offsetTop};_aa._clientSize={H:_aa._clientWidth||_aa.clientWidth,V:_aa._clientHeight||_aa.clientHeight};if(_aa!=_a2&&_aa!=_a3&&_aa!=_a1){for(var dir in _aa._offsetSize){var _ad=_aa._offsetSize[dir]-_aa._clientSize[dir]-_aa._borderSize[dir];var _ae=_aa._clientSize[dir]>0&&_ad>0;if(_ae){_aa._offsetSize[dir]-=_ad;if(dojo.isIE&&rtl&&dir=="H"){_aa._offsetStart[dir]+=_ad;}}}}};var _af=_a1;while(_af!=null){if(_a7(_af)){_a1.scrollIntoView(false);return;}_a9(_af);_af=_af._parent;}if(dojo.isIE&&_a1._parent){var _b0=_a1._offsetParent;_a1._offsetStart.H+=_b0._borderStart.H;_a1._offsetStart.V+=_b0._borderStart.V;}if(dojo.isIE>=7&&_a6==_a3&&rtl&&_a2._offsetStart&&_a2._offsetStart.H==0){var _b1=_a3.scrollWidth-_a3._offsetSize.H;if(_b1>0){_a2._offsetStart.H=-_b1;}}if(dojo.isIE<=6&&!_a5){_a3._offsetSize.H+=_a3._borderSize.H;_a3._offsetSize.V+=_a3._borderSize.V;}if(rtl&&_a2._offsetStart&&_a6==_a3&&_a3._scrolledAmount){var ofs=_a2._offsetStart.H;if(ofs<0){_a3._scrolledAmount.H+=ofs;_a2._offsetStart.H=0;}}_af=_a1;while(_af){var _b2=_af._parent;if(!_b2){break;}if(_b2.tagName=="TD"){var _b3=_b2._parent._parent._parent;if(_b2!=_af._offsetParent&&_b2._offsetParent!=_af._offsetParent){_b2=_b3;}}var _b4=_af._offsetParent==_b2;for(var dir in _af._offsetStart){var _b5=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_b2!=_a3)&&(_b2!=_a2)&&(dojo.isIE||dojo.isWebKit)&&_b2._clientSize.H>0&&_b2.scrollWidth>_b2._clientSize.H){var _b6=_b2.scrollWidth-_b2._clientSize.H;if(_b6>0){_b2._scrolledAmount.H-=_b6;}}if(_b2._offsetParent.tagName=="TABLE"){if(dojo.isIE){_b2._offsetStart[dir]-=_b2._offsetParent._borderStart[dir];_b2._borderStart[dir]=_b2._borderSize[dir]=0;}else{_b2._offsetStart[dir]+=_b2._offsetParent._borderStart[dir];}}if(dojo.isIE){_b2._offsetStart[dir]+=_b2._offsetParent._borderStart[dir];}var _b7=_af._offsetStart[dir]-_b2._scrolledAmount[dir]-(_b4?0:_b2._offsetStart[dir])-_b2._borderStart[dir];var _b8=_b7+_af._offsetSize[dir]-_b2._offsetSize[dir]+_b2._borderSize[dir];var _b9=(dir=="H")?"scrollLeft":"scrollTop";var _ba=dir=="H"&&rtl;var _bb=_ba?-_b8:_b7;var _bc=_ba?-_b7:_b8;var _bd=(_bb*_bc<=0)?0:Math[(_bb<0)?"max":"min"](_bb,_bc);if(_bd!=0){var _be=_b2[_b9];_b2[_b9]+=(_ba)?-_bd:_bd;var _bf=_b2[_b9]-_be;}if(_b4){_af._offsetStart[dir]+=_b2._offsetStart[dir];}_af._offsetStart[dir]-=_b2[_b9];}_af._parent=_b2._parent;_af._offsetParent=_b2._offsetParent;}_b2=_a1;var _c0;while(_b2&&_b2.removeAttribute){_c0=_b2.parentNode;_b2.removeAttribute("_offsetParent");_b2.removeAttribute("_parent");_b2=_c0;}}catch(error){console.error("scrollIntoView: "+error);_a1.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,_c1=d.doc.documentElement,ie=d.isIE,_c2=d.isOpera,maj=Math.floor,ff=d.isFF,_c3=d.boxModel.replace(/-/,""),_c4={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:_c2,dj_opera8:maj(_c2)==8,dj_opera9:maj(_c2)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_c4["dj_"+_c3]=true;for(var p in _c4){if(_c4[p]){if(_c1.className){_c1.className+=" "+p;}else{_c1.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_c1.className+=" dijitRtl";for(var p in _c4){if(_c4[p]){_c1.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_c5,_c6,_c7,obj,_c8,_c9){if(obj!=this._obj){this.stop();this._initialDelay=_c9||500;this._subsequentDelay=_c8||0.9;this._obj=obj;this._evt=evt;this._node=_c6;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_c5,_c7);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(_ca,_cb,_cc,_cd,_ce,_cf){if(_cb.keyCode){_cb.charOrCode=_cb.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_cb.charCode){_cb.charOrCode=String.fromCharCode(_cb.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return[dojo.connect(_ca,"onkeypress",this,function(evt){if(evt.charOrCode==_cb.charOrCode&&(_cb.ctrlKey===undefined||_cb.ctrlKey==evt.ctrlKey)&&(_cb.altKey===undefined||_cb.altKey==evt.altKey)&&(_cb.metaKey===undefined||_cb.metaKey==(evt.metaKey||false))&&(_cb.shiftKey===undefined||_cb.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_cb,_cc,_ca,_cd,_cb,_ce,_cf);}else{if(dijit.typematic._obj==_cb){dijit.typematic.stop();}}}),dojo.connect(_ca,"onkeyup",this,function(evt){if(dijit.typematic._obj==_cb){dijit.typematic.stop();}})];},addMouseListener:function(_d0,_d1,_d2,_d3,_d4){var dc=dojo.connect;return[dc(_d0,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_d1,_d0,_d2,_d0,_d3,_d4);}),dc(_d0,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_d0,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_d0,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_d0,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_d1,_d0,_d2,_d0,_d3,_d4);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_d5,_d6,_d7,_d8,_d9,_da,_db){return this.addKeyListener(_d6,_d7,_d8,_d9,_da,_db).concat(this.addMouseListener(_d5,_d8,_d9,_da,_db));}};}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 _dc=cs.backgroundImage;var _dd=(cs.borderTopColor==cs.borderRightColor)||(_dc!=null&&(_dc=="none"||_dc=="url(invalid-url:)"));dojo[_dd?"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(_de,_df){var _e0=this.getWaiRole(_de);return _df?(_e0.indexOf(_df)>-1):(_e0.length>0);},getWaiRole:function(_e1){return dojo.trim((dojo.attr(_e1,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(_e2,_e3){var _e4=dojo.attr(_e2,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_e4)){dojo.attr(_e2,"role",dojo.isFF<3?"wairole:"+_e3:_e3);}else{if((" "+_e4+" ").indexOf(" "+_e3+" ")<0){var _e5=dojo.trim(_e4.replace(this._XhtmlRoles,""));var _e6=dojo.trim(_e4.replace(_e5,""));dojo.attr(_e2,"role",_e6+(_e6?" ":"")+_e3);}}},removeWaiRole:function(_e7,_e8){var _e9=dojo.attr(_e7,"role");if(!_e9){return;}if(_e8){var _ea=dojo.isFF<3?"wairole:"+_e8:_e8;var t=dojo.trim((" "+_e9+" ").replace(" "+_ea+" "," "));dojo.attr(_e7,"role",t);}else{_e7.removeAttribute("role");}},hasWaiState:function(_eb,_ec){if(dojo.isFF<3){return _eb.hasAttributeNS("http://www.w3.org/2005/07/aaa",_ec);}return _eb.hasAttribute?_eb.hasAttribute("aria-"+_ec):!!_eb.getAttribute("aria-"+_ec);},getWaiState:function(_ed,_ee){if(dojo.isFF<3){return _ed.getAttributeNS("http://www.w3.org/2005/07/aaa",_ee);}return _ed.getAttribute("aria-"+_ee)||"";},setWaiState:function(_ef,_f0,_f1){if(dojo.isFF<3){_ef.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_f0,_f1);}else{_ef.setAttribute("aria-"+_f0,_f1);}},removeWaiState:function(_f2,_f3){if(dojo.isFF<3){_f2.removeAttributeNS("http://www.w3.org/2005/07/aaa",_f3);}else{_f2.removeAttribute("aria-"+_f3);}}});}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(_f4,_f5){if(_f4&&dojo.isFunction(_f4._onConnect)){_f4._onConnect(_f5);}});dijit._connectOnUseEventHandler=function(_f6){};dijit._lastKeyDownNode=null;if(dojo.isIE){dojo.doc.attachEvent("onkeydown",function(evt){dijit._lastKeyDownNode=evt.srcElement;});}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _f7={};var _f8=function(dc){if(!_f7[dc]){var r=[];var _f9;var _fa=dojo.getObject(dc).prototype;for(var _fb in _fa){if(dojo.isFunction(_fa[_fb])&&(_f9=_fb.match(/^_set([a-zA-Z]*)Attr$/))&&_f9[1]){r.push(_f9[1].charAt(0).toLowerCase()+_f9[1].substr(1));}}_f7[dc]=r;}return _f7[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_fc,_fd){this.create(_fc,_fd);},create:function(_fe,_ff){this.srcNodeRef=dojo.byId(_ff);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(_fe){this.params=_fe;dojo.mixin(this,_fe);}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 _100=this.srcNodeRef;if(_100&&_100.parentNode){_100.parentNode.replaceChild(this.domNode,_100);}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 _101=function(attr,_102){if((_102.params&&attr in _102.params)||_102[attr]){_102.attr(attr,_102[attr]);}};for(var attr in this.attributeMap){_101(attr,this);}dojo.forEach(_f8(this.declaredClass),function(a){if(!(a in this.attributeMap)){_101(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_103){this.destroyDescendants(_103);this.destroy(_103);},destroy:function(_104){this.uninitialize();var d=dojo;var dfe=d.forEach;var dun=d.unsubscribe;dfe(this._connects,function(_105){dfe(_105,d.disconnect);});dfe(this._subscribes,function(_106){dun(_106);});dfe(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_104);dijit.registry.remove(this.id);},destroyRendering:function(_107){if(this.bgIframe){this.bgIframe.destroy(_107);delete this.bgIframe;}if(this.domNode){if(_107){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_107){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_108){dojo.forEach(this.getChildren(),function(_109){if(_109.destroyRecursive){_109.destroyRecursive(_108);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_10a){if(_10a in this._deferredConnects){var _10b=this[this._deferredConnects[_10a]||"domNode"];this.connect(_10b,_10a.toLowerCase(),_10a);delete this._deferredConnects[_10a];}},_setClassAttr:function(_10c){var _10d=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_10d,this["class"]);this["class"]=_10c;dojo.addClass(_10d,_10c);},_setStyleAttr:function(_10e){var _10f=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_10e)){dojo.style(_10f,_10e);}else{if(_10f.style.cssText){_10f.style.cssText+="; "+_10e;}else{_10f.style.cssText=_10e;}}this["style"]=_10e;},setAttribute:function(attr,_110){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_110);},_attrToDom:function(attr,_111){var _112=this.attributeMap[attr];dojo.forEach(dojo.isArray(_112)?_112:[_112],function(_113){var _114=this[_113.node||_113||"domNode"];var type=_113.type||"attribute";switch(type){case"attribute":if(dojo.isFunction(_111)){_111=dojo.hitch(this,_111);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_114,attr,_111);break;case"innerHTML":_114.innerHTML=_111;break;case"class":dojo.removeClass(_114,this[attr]);dojo.addClass(_114,_111);break;}},this);this[attr]=_111;},attr:function(name,_115){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _116=this._getAttrNames(name);if(args==2){if(this[_116.s]){return this[_116.s](_115)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_115);}this[name]=_115;}return this;}else{if(this[_116.g]){return this[_116.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return[];}},getChildren:function(){if(this.containerNode){return dijit.findWidgets(this.containerNode);}else{return[];}},nodesWithKeyClick:["input","button"],connect:function(obj,_117,_118){var d=dojo;var dc=dojo._connect;var _119=[];if(_117=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_118);_119.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);}}));}_117="onclick";}_119.push(dc(obj,_117,this,_118));this._connects.push(_119);return _119;},disconnect:function(_11a){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_11a){dojo.forEach(_11a,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_11b,_11c){var d=dojo;var _11d=d.subscribe(_11b,this,_11c);this._subscribes.push(_11d);return _11d;},unsubscribe:function(_11e){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_11e){dojo.unsubscribe(_11e);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_11f,_120){if(_11f["declaredClass"]&&_11f["addChild"]){_11f.addChild(this,_120);}else{dojo.place(this.domNode,_11f,_120);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){}});})();}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _121=dijit.byId(id);return _121.isContainer?_121:null;}}return null;},_getSibling:function(_122){var node=this.domNode;do{node=node[_122+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},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._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(_123,_124){var _125=this.containerNode;if(_124&&typeof _124=="number"){var _126=this.getChildren();if(_126&&_126.length>=_124){_125=_126[_124-1].domNode;_124="after";}}dojo.place(_123.domNode,_125,_124);if(this._started&&!_123._started){_123.startup();}},removeChild:function(_127){if(typeof _127=="number"&&_127>0){_127=this.getChildren()[_127];}if(!_127||!_127.domNode){return;}var node=_127.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return!!this._firstElement(this.containerNode);},destroyDescendants:function(_128){dojo.forEach(this.getChildren(),function(_129){_129.destroyRecursive(_128);});},_getSiblingOfChild:function(_12a,dir){var node=_12a.domNode;var _12b=(dir>0?"nextSibling":"previousSibling");do{node=node[_12b];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_12c){var _12d=this.getChildren();for(var i=0,c;c=_12d[i];i++){if(c==_12c){return i;}}return-1;}});}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;}dojo.forEach(this.getChildren(),function(_12e){_12e.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}this.inherited(arguments);},resize:function(_12f,_130){var node=this.domNode;if(_12f){dojo.marginBox(node,_12f);if(_12f.t){node.style.top=_12f.t+"px";}if(_12f.l){node.style.left=_12f.l+"px";}}var mb=_130||{};dojo.mixin(mb,_12f||{});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(_131){dojo.addClass(_131.domNode,this.baseClass+"-child");if(_131.baseClass){dojo.addClass(_131.domNode,this.baseClass+"-"+_131.baseClass);}},addChild:function(_132,_133){this.inherited(arguments);if(this._started){this._setupChild(_132);}},removeChild:function(_134){dojo.removeClass(_134.domNode,this.baseClass+"-child");if(_134.baseClass){dojo.removeClass(_134.domNode,this.baseClass+"-"+_134.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 _135=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_136,dim){_136.resize?_136.resize(dim):dojo.marginBox(_136.domNode,dim);dojo.mixin(_136,dojo.marginBox(_136.domNode));dojo.mixin(_136,dim);};dijit.layout.layoutChildren=function(_137,dim,_138){dim=dojo.mixin({},dim);dojo.addClass(_137,"dijitLayoutContainer");_138=dojo.filter(_138,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_138,function(item){return item.layoutAlign=="client";}));dojo.forEach(_138,function(_139){var elm=_139.domNode,pos=_139.layoutAlign;var _13a=elm.style;_13a.left=dim.l+"px";_13a.top=dim.t+"px";_13a.bottom=_13a.right="auto";dojo.addClass(elm,"dijitAlign"+_135(pos));if(pos=="top"||pos=="bottom"){size(_139,{w:dim.w});dim.h-=_139.h;if(pos=="top"){dim.t+=_139.h;}else{_13a.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_139,{h:dim.h});dim.w-=_139.w;if(pos=="left"){dim.l+=_139.w;}else{_13a.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_139,dim);}}}});};})();}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_13b,_13c){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 _13d=dojo.date.stamp._isoRegExp.exec(_13b);var _13e=null;if(_13d){_13d.shift();if(_13d[1]){_13d[1]--;}if(_13d[6]){_13d[6]*=1000;}if(_13c){_13c=new Date(_13c);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _13c["get"+prop]();}).forEach(function(_13f,_140){if(_13d[_140]===undefined){_13d[_140]=_13f;}});}_13e=new Date(_13d[0]||1970,_13d[1]||0,_13d[2]||1,_13d[3]||0,_13d[4]||0,_13d[5]||0,_13d[6]||0);var _141=0;var _142=_13d[7]&&_13d[7].charAt(0);if(_142!="Z"){_141=((_13d[8]||0)*60)+(Number(_13d[9])||0);if(_142!="-"){_141*=-1;}}if(_142){_141-=_13e.getTimezoneOffset();}if(_141){_13e.setTime(_13e.getTime()+_141*60000);}}return _13e;};dojo.date.stamp.toISOString=function(_143,_144){var _145=function(n){return(n<10)?"0"+n:n;};_144=_144||{};var _146=[];var _147=_144.zulu?"getUTC":"get";var date="";if(_144.selector!="time"){var year=_143[_147+"FullYear"]();date=["0000".substr((year+"").length)+year,_145(_143[_147+"Month"]()+1),_145(_143[_147+"Date"]())].join("-");}_146.push(date);if(_144.selector!="date"){var time=[_145(_143[_147+"Hours"]()),_145(_143[_147+"Minutes"]()),_145(_143[_147+"Seconds"]())].join(":");var _148=_143[_147+"Milliseconds"]();if(_144.milliseconds){time+="."+(_148<100?"0":"")+_145(_148);}if(_144.zulu){time+="Z";}else{if(_144.selector!="time"){var _149=_143.getTimezoneOffset();var _14a=Math.abs(_149);time+=(_149>0?"-":"+")+_145(Math.floor(_14a/60))+":"+_145(_14a%60);}}_146.push(time);}return _146.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+"]";var _14b=0,_14c={};var _14d=function(_14e,_14f){var nso=_14f||_14c;if(dojo.isIE){var cn=_14e["__dojoNameCache"];if(cn&&nso[cn]===_14e){return cn;}}var name;do{name="__"+_14b++;}while(name in nso);nso[name]=_14e;return name;};function _150(_151){if(d.isString(_151)){return"string";}if(typeof _151=="number"){return"number";}if(typeof _151=="boolean"){return"boolean";}if(d.isFunction(_151)){return"function";}if(d.isArray(_151)){return"array";}if(_151 instanceof Date){return"date";}if(_151 instanceof d._Url){return"url";}return"object";};function _152(_153,type){switch(type){case"string":return _153;case"number":return _153.length?Number(_153):NaN;case"boolean":return typeof _153=="boolean"?_153:!(_153.toLowerCase()=="false");case"function":if(d.isFunction(_153)){_153=_153.toString();_153=d.trim(_153.substring(_153.indexOf("{")+1,_153.length-1));}try{if(_153.search(/[^\w\.]+/i)!=-1){_153=_14d(new Function(_153),this);}return d.getObject(_153,false);}catch(e){return new Function();}case"array":return _153?_153.split(/\s*,\s*/):[];case"date":switch(_153){case"":return new Date("");case"now":return new Date();default:return d.date.stamp.fromISOString(_153);}case"url":return d.baseUrl+_153;default:return d.fromJson(_153);}};var _154={};function _155(_156){if(!_154[_156]){var cls=d.getObject(_156);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_156+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _157=cls.prototype;var _158={},_159={};for(var name in _157){if(name.charAt(0)=="_"){continue;}if(name in _159){continue;}var _15a=_157[name];_158[name]=_150(_15a);}_154[_156]={cls:cls,params:_158};}return _154[_156];};this._functionFromScript=function(_15b){var _15c="";var _15d="";var _15e=_15b.getAttribute("args");if(_15e){d.forEach(_15e.split(/\s*,\s*/),function(part,idx){_15c+="var "+part+" = arguments["+idx+"]; ";});}var _15f=_15b.getAttribute("with");if(_15f&&_15f.length){d.forEach(_15f.split(/\s*,\s*/),function(part){_15c+="with("+part+"){";_15d+="}";});}return new Function(_15c+_15b.innerHTML+_15d);};this.instantiate=function(_160,_161){var _162=[],dp=dojo.parser;_161=_161||{};d.forEach(_160,function(node){if(!node){return;}var type=dp._attrName in _161?_161[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _163=_155(type),_164=_163.cls,ps=_164._noScript||_164.prototype._noScript;var _165={},_166=node.attributes;for(var name in _163.params){var item=name in _161?{value:_161[name],specified:true}:_166.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _167=item.value;switch(name){case"class":_167="className"in _161?_161.className:node.className;break;case"style":_167="style"in _161?_161.style:(node.style&&node.style.cssText);}var _168=_163.params[name];if(typeof _167=="string"){_165[name]=_152(_167,_168);}else{_165[name]=_167;}}if(!ps){var _169=[],_16a=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_16b){var _16c=_16b.getAttribute("event"),type=_16b.getAttribute("type"),nf=d.parser._functionFromScript(_16b);if(_16c){if(type=="dojo/connect"){_169.push({event:_16c,func:nf});}else{_165[_16c]=nf;}}else{_16a.push(nf);}});}var _16d=_164["markupFactory"];if(!_16d&&_164["prototype"]){_16d=_164.prototype["markupFactory"];}var _16e=_16d?_16d(_165,node,_164):new _164(_165,node);_162.push(_16e);var _16f=node.getAttribute("jsId");if(_16f){d.setObject(_16f,_16e);}if(!ps){d.forEach(_169,function(_170){d.connect(_16e,_170.event,null,_170.func);});d.forEach(_16a,function(func){func.call(_16e);});}});if(!_161._started){d.forEach(_162,function(_171){if(_171&&_171.startup&&!_171._started&&(!_171.getParent||!_171.getParent())){_171.startup();}});}return _162;};this.parse=function(_172){var list=d.query(this._query,_172);var _173=this.instantiate(list);return _173;};}();(function(){var _174=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_174);}else{dojo._loaders.unshift(_174);}})();}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(_175,map,_176,_177){_177=_177||dojo.global;_176=_176?dojo.hitch(_177,_176):function(v){return v;};return _175.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_178,key,_179){var _17a=dojo.getObject(key,false,map);if(_179){_17a=dojo.getObject(_179,false,_177).call(_177,_17a,key);}return _176(_17a,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.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _17b=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont,_17c){if(_17c){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case"tr":pre="<tr>";post="</tr>";walk+=1;case"tbody":case"thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case"table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_17d,node){dojo.mixin(this,_17d||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_17b++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_17e){if(undefined!==cont){this.content=cont;}if(_17e){this._mixin(_17e);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _17f=this.onContentError(e);try{node.innerHTML=_17f;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _180=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_180){cont=_180[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return"Error occured setting content: "+err;},_mixin:function(_181){var _182={},key;for(key in _181){if(key in _182){continue;}this[key]=_181[key];}},_parse:function(){var _183=this.node;try{this.parseResults=dojo.parser.parse(_183,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_184){var _185=this["on"+type+"Error"].call(this,err);if(_184){console.error(_184,err);}else{if(_185){dojo.html._setNodeContent(this.node,_185,true);}}}});dojo.html.set=function(node,cont,_186){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_186){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_186,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_187,_188,_189){_189=dojo.i18n.normalizeLocale(_189);var _18a=_189.split("-");var _18b=[_187,"nls",_188].join(".");var _18c=dojo._loadedModules[_18b];if(_18c){var _18d;for(var i=_18a.length;i>0;i--){var loc=_18a.slice(0,i).join("_");if(_18c[loc]){_18d=_18c[loc];break;}}if(!_18d){_18d=_18c.ROOT;}if(_18d){var _18e=function(){};_18e.prototype=_18d;return new _18e();}}throw new Error("Bundle not found: "+_188+" in "+_187+" , locale="+_189);};dojo.i18n.normalizeLocale=function(_18f){var _190=_18f?_18f.toLowerCase():dojo.locale;if(_190=="root"){_190="ROOT";}return _190;};dojo.i18n._requireLocalization=function(_191,_192,_193,_194){var _195=dojo.i18n.normalizeLocale(_193);var _196=[_191,"nls",_192].join(".");var _197="";if(_194){var _198=_194.split(",");for(var i=0;i<_198.length;i++){if(_195["indexOf"](_198[i])==0){if(_198[i].length>_197.length){_197=_198[i];}}}if(!_197){_197="ROOT";}}var _199=_194?_197:_195;var _19a=dojo._loadedModules[_196];var _19b=null;if(_19a){if(dojo.config.localizationComplete&&_19a._built){return;}var _19c=_199.replace(/-/g,"_");var _19d=_196+"."+_19c;_19b=dojo._loadedModules[_19d];}if(!_19b){_19a=dojo["provide"](_196);var syms=dojo._getModuleSymbols(_191);var _19e=syms.concat("nls").join("/");var _19f;dojo.i18n._searchLocalePath(_199,_194,function(loc){var _1a0=loc.replace(/-/g,"_");var _1a1=_196+"."+_1a0;var _1a2=false;if(!dojo._loadedModules[_1a1]){dojo["provide"](_1a1);var _1a3=[_19e];if(loc!="ROOT"){_1a3.push(loc);}_1a3.push(_192);var _1a4=_1a3.join("/")+".js";_1a2=dojo._loadPath(_1a4,null,function(hash){var _1a5=function(){};_1a5.prototype=_19f;_19a[_1a0]=new _1a5();for(var j in hash){_19a[_1a0][j]=hash[j];}});}else{_1a2=true;}if(_1a2&&_19a[_1a0]){_19f=_19a[_1a0];}else{_19a[_1a0]=_19f;}if(_194){return true;}});}if(_194&&_195!=_197){_19a[_195.replace(/-/g,"_")]=_19a[_197.replace(/-/g,"_")];}};(function(){var _1a6=dojo.config.extraLocale;if(_1a6){if(!_1a6 instanceof Array){_1a6=[_1a6];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_1a7,_1a8){req(m,b,_1a7,_1a8);if(_1a7){return;}for(var i=0;i<_1a6.length;i++){req(m,b,_1a6[i],_1a8);}};}})();dojo.i18n._searchLocalePath=function(_1a9,down,_1aa){_1a9=dojo.i18n.normalizeLocale(_1a9);var _1ab=_1a9.split("-");var _1ac=[];for(var i=_1ab.length;i>0;i--){_1ac.push(_1ab.slice(0,i).join("-"));}_1ac.push(false);if(down){_1ac.reverse();}for(var j=_1ac.length-1;j>=0;j--){var loc=_1ac[j]||"ROOT";var stop=_1aa(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_1ad,_1ae){function _1af(_1b0){_1b0=dojo.i18n.normalizeLocale(_1b0);dojo.i18n._searchLocalePath(_1b0,true,function(loc){for(var i=0;i<_1ae.length;i++){if(_1ae[i]==loc){dojo["require"](_1ad+"_"+loc);return true;}}return false;});};_1af();var _1b1=dojo.config.extraLocale||[];for(var i=0;i<_1b1.length;i++){_1af(_1b1[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,onLoadDeferred:null,postMixInProperties:function(){this.inherited(arguments);var _1b2=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_1b2);this.errorMessage=dojo.string.substitute(this.errorMessage,_1b2);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.isLoaded){dojo.forEach(this.getChildren(),function(_1b3){_1b3.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _1b4=dojo.query(">",this.containerNode),_1b5=_1b4.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_1b6=dojo.filter(_1b5.map(dijit.byNode),function(_1b7){return _1b7&&_1b7.domNode&&_1b7.resize;});if(_1b4.length==_1b5.length&&_1b6.length==1){this._singleChild=_1b6[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.href=href;if(this._created&&(this.preload||this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_1b8){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=(this._contentBox=dijit.layout.marginBox2contentBox(node,mb));if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_isShown:function(){if("open"in this){return this.open;}else{var node=this.domNode;return(node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}},_onShow:function(){if(this._needLayout){this._layoutChildren();}this._loadCheck();this.inherited(arguments);},_loadCheck:function(){if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){this.refresh();}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _1b9={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1b9,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1b9));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoadDeferred.callback(data);this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _1ba=this._contentSetter;dojo.forEach(this.getChildren(),function(_1bb){if(_1bb.destroyRecursive){_1bb.destroyRecursive();}});if(_1ba){dojo.forEach(_1ba.parseResults,function(_1bc){if(_1bc.destroyRecursive&&_1bc.domNode&&_1bc.domNode.parentNode==dojo.body()){_1bc.destroyRecursive();}});delete _1ba.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_1bd){this.destroyDescendants();var _1be=this._contentSetter;if(!(_1be&&_1be instanceof dojo.html._ContentSetter)){_1be=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1bf=this.onContentError(e);try{this.containerNode.innerHTML=_1bf;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1c0=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_1be,_1c0);_1be.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_1bd){dojo.forEach(this.getChildren(),function(_1c1){_1c1.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_1c2){this.onLoadDeferred.errback(err);var _1c3=this["on"+type+"Error"].call(this,err);if(_1c2){console.error(_1c2,err);}else{if(_1c3){this._setContent(_1c3,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_1c4){if(_1c4.resize){_1c4.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1c5){},onDownloadError:function(_1c6){return this.errorMessage;},onDownloadEnd:function(){}});}dojo.i18n._preloadLocalizations("dojo.nls.mydojo",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);;function ajax_selection_form(object_to_update)
{submitForm('schoolEntry','/ajax.php',object_to_update);}
function update_checkout_price()
{if(typeof(document.forms.paymentInfo.amount.value)=='undefined')
{base_price=9.95;}
else
{base_price=parseFloat(document.paymentInfo.amount.value);}
feature_pro_price=9.95;if(document.getElementById("pro"))
{if(document.getElementById("checkout_price"))
{if(document.forms[0].pro.checked)
{new_price=parseFloat(base_price)+feature_pro_price;}
else
{new_price=base_price;}
new_price=new_price.toFixed(2);dojo.byId("checkout_price").innerHTML=new_price;}}}
function validation_with_free_snipe()
{if(dojo.byId('verification_code'))
{if(validate_verification_code())
{}
else
{return false;}}
else
{MM_validateForm('userEmail','','RisEmail','userPhone','','R','fname','','R','lname','','R');if(document.MM_returnValue)
{if(validate_phone_number())
{phone_number=all_numbers(document.paymentInfo.userPhone.value);email_address=escape(document.paymentInfo.userEmail.value);dojo.xhrGet({url:"/shared/ajax/verification_code.php?action=send_first_time&phone_number="+phone_number+"&email_address="+email_address+"",handleAs:"text",handle:function(data,args)
{if(typeof data=="error")
{console.warn("error!");console.log(args);}
else
{if(data=="free_snipe_already_used")
{document.paymentInfo.submit();}
else
{dojo.byId(verification_code_form).innerHTML=data;}}}});return false;}
else
{return false;}}
else
{return document.MM_returnValue;}}}
function MM_validateForm(){if(document.getElementById('disable_validation')&&document.getElementById('disable_validation').value==1)
{return true;}
if(document.getElementById)
{var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;for(i=0;i<(args.length-2);i+=3){test=args[i+2];val=document.getElementById(args[i]);if(val){nm=val.name;if((val=val.value)!=""){if(test.indexOf('isEmail')!=-1){p=val.indexOf('@');if(p<1||p==(val.length-1))errors+='- '+nm+' must contain an e-mail address.\n';}else if(test!='R'){num=parseFloat(val);if(isNaN(val))errors+='- '+nm+' must contain a number.\n';if(test.indexOf('inRange')!=-1){p=test.indexOf(':');min=test.substring(8,p);max=test.substring(p+1);if(num<min||max<num)errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';}}}else if(test.charAt(0)=='R')errors+='- '+nm+' is required.\n';}}
if(errors)
{alert('The following error(s) occurred:\n'+errors);}
document.MM_returnValue=(errors=='');}}
function submitForm(form_name,url,object_to_update,enable_further_ajax)
{if(!enable_further_ajax)
{var enable_further_ajax=false;}
dojo.xhrPost({url:url,form:form_name,load:function(data){if(enable_further_ajax)
{dijit.byId(object_to_update).setContent(data);}
else
{dojo.byId(object_to_update).innerHTML=data;}},error:function(error){console.error('Error: ',error);}});return false;}
function toggleAll(element)
{var form=document.forms.openinviter,z=0;for(z=0;z<form.length;z++)
{if(form[z].type=='checkbox')
form[z].checked=element.checked;}}
function popup(url,height,width)
{if(!height)
{height=650;}
if(!width)
{width=450;}
newwindow=window.open(url,'name','height='+height+',width='+width+',resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes');if(window.focus){newwindow.focus()}
return false;}
function element_exists(objID)
{if(document.getElementById(objID)!=null)
{return true;}
else
{return false;}}
function textFromScript(objId,url)
{dojo.xhrGet({url:url,handleAs:"text",handle:function(data,args)
{if(typeof data=="error")
{console.warn("error!");console.log(args);}
else
{dojo.byId(objId).innerHTML=data;}}});}
function setCookie(c_name,value,expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+
((expiredays==null)?"":";expires="+exdate.toGMTString());}
function php_asynch(url)
{dojo.xhrGet({url:url,handleAs:"text",handle:function(data,args)
{if(typeof data=="error")
{console.warn("error!");console.log(args);}
else
{return true;}}});}
function php_script(url){if(window.XMLHttpRequest){AJAX=new XMLHttpRequest();}else{AJAX=new ActiveXObject("Microsoft.XMLHTTP");}
if(AJAX){AJAX.open("GET",url,false);AJAX.send(null);return AJAX.responseText;}else{return false;}}
function run_php(url)
{if(url.indexOf('?')!=-1)
{getString="&stamp=";}
else
{getString="?stamp=";}
var responseText;var start=new Date();time=start.getTime();var req=new XMLHttpRequest();req.open('GET',url+getString+time,true);req.onreadystatechange=function(aEvt){if(req.readyState==4){if(req.status==200)
{var responseText=req.responseText;if(responseText=='true')
{setHiddenField('verification_code_valid','1');}}
else
dump("Error loading page\n");}};req.send(null);}
function all_numbers(x)
{var r=x.replace(/[^0-9\\.]/g,'').replace(/^(\d*\.\d*)\..*$/,"$1")*1.0;return x;}
function validate_verification_code()
{phone_number=all_numbers(document.getElementById('userPhone').value);verification_code=document.getElementById('verification_code').value;query_address='/shared/ajax/validate_verification_code.php?action=validate_code&phone_number='+phone_number+'&verification_code='+verification_code;var responseText=php_script(query_address);var myRegExp=/true/;var matchPos1=responseText.search(myRegExp);if(matchPos1!=-1)
{verification_code_valid=true;dojo.byId("verification_code_validation_result").innerHTML="";}
else
{dojo.byId("verification_code_validation_result").innerHTML=responseText;verification_code_valid=false;}
return verification_code_valid;}
function validate_phone_number()
{phone_number=all_numbers(document.getElementById('userPhone').value);query_address="/shared/ajax/validate_phone_number.php?phone_number="+phone_number;if(phone_number.length>=10)
{phone_number_validation_initialized=1;}
if(phone_number_validation_initialized==1)
{var responseText=php_script(query_address);var myRegExp=/accepted/;var matchPos1=responseText.search(myRegExp);if(matchPos1!=-1)
{dojo.byId("phone_number_validation_result").innerHTML="";phone_number_valid=true;}
else
{dojo.byId("phone_number_validation_result").innerHTML=responseText;phone_number_valid=false;}
return phone_number_valid;}
else
{return false;}}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&document.getElementById)x=document.getElementById(n);return x;}
function MM_changeProp2(objId,x,theProp,theValue){var obj=null;with(document){if(getElementById)
obj=getElementById(objId);}
if(obj){if(theValue==true||theValue==false)
eval("obj.style."+theProp+"="+theValue);else eval("obj.style."+theProp+"='"+theValue+"'");}}
function MM_showHideLayers2(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)
with(document)if(getElementById&&((obj=getElementById(args[i]))!=null)){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}}
function setHiddenField(objId,newValue)
{document.getElementById(objId).value=newValue;}
function switchFromFreeSnipe()
{setHiddenField('disable_validation','1');setHiddenField('submitted_by','suggestion_button_fromfreesnipe');setCookie('used_free_snipe',1,30);document.paymentInfo.submit();}
function switchToFullForm()
{setHiddenField('disable_validation','1');setHiddenField('submitted_by','suggestion_button');document.paymentInfo.submit();}
function copyit(theField){var tempval=eval(theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")}
function fade_out(div,fade_duration)
{if(!fade_duration)
{var fade_duration=180;}
if(element_exists(div)&&dojo.byId(div).style.opacity!="0")
{dojo.animateProperty({node:div,duration:fade_duration,properties:{height:{end:0},opacity:{end:0}},onEnd:function(){dojo.style(div,"display","none");}}).play();}}
function submit_contactlist_ifchecked()
{var checked=validate_checkboxes('openinviter');if(checked)
{return submitForm('openinviter','/shared/ajax/get_user_contacts.php','earnrefer_right_ajax_holder',true);}
else
{dojo.byId('inline_errors').innerHTML="<table cellspacing=\"3\" cellpadding=\"1\" border=\"0\" style=\"margin: 0pt; display: inline;\"><tbody><tr><td><img src=\"/shared/layout/images/inline_validation_error.gif\"/></td><td><span class=\"form_inline_validation_error\"> You haven't selected any contacts to invite.<br/></span></td></tr></tbody></table>";return false;}}
function validate_checkboxes(form_name)
{var checked=false;var elem=document.getElementById(form_name).elements;for(var i=0;i<elem.length;i++)
{if(elem[i].type=="checkbox"&&elem[i].checked)
{return true;}}
return false;}
function earnrefer_show_login_box(box_to_show)
{if(!box_to_show)
{box_to_show="gmail_login";}
var login_boxes=['gmail_login','yahoo_login','hotmail_login','facebook_login'];var login_radio_buttons=['gmail','yahoo','hotmail','facebook'];var triangle_word='_triangle';for(var i=0;i<login_boxes.length;i++)
{if(login_boxes[i]==box_to_show&&dojo.byId(login_radio_buttons[i]).checked)
{dojo.byId(box_to_show+triangle_word).style.display="block";}
if(!dojo.byId(login_radio_buttons[i]).checked)
{dojo.byId(login_boxes[i]+triangle_word).style.display="none";}}
document.invite.email_box.focus();}
function ie_img_label_fix()
{window.onload=function(){if(document.all&&navigator.appVersion.indexOf("MSIE")>-1&&navigator.appVersion.indexOf("Windows")>-1)
{var a=document.getElementsByTagName("label");for(var i=0,j=a.length;i<j;i++){if(a[i].hasChildNodes&&a[i].childNodes.item(0).tagName=="IMG")
{a[i].childNodes.item(0).forid=a[i].htmlFor;a[i].childNodes.item(0).onclick=function(){var e=document.getElementById(this.forid);switch(e.type){case"radio":e.checked|=1;break;case"checkbox":e.checked=!e.checked;break;case"text":case"password":case"textarea":e.focus();break;}}}}}}}