-
Notifications
You must be signed in to change notification settings - Fork 16
/
dojo.js
20 lines (14 loc) · 71.8 KB
/
dojo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
Copyright (c) 2004-2007, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/
/*
This is a compiled version of Dojo, built for deployment and not for
development. To get an editable version, please visit:
http://dojotoolkit.org
for documentation and information on getting the source.
*/
if(typeof dojo=="undefined"){(function(){if(typeof this["djConfig"]=="undefined"){this.djConfig={};}if((!this["console"])||(!console["firebug"])){this.console={};}var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","log","profile","profileEnd","time","timeEnd","trace","warn"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){console[tn]=function(){};}}if(typeof this["dojo"]=="undefined"){this.dojo={};}var d=dojo;dojo.global=this;var _5={isDebug:false,libraryScriptUri:"",preventBackButtonFix:true,delayMozLoadingFix:false};for(var _6 in _5){if(typeof djConfig[_6]=="undefined"){djConfig[_6]=_5[_6];}}var _7=["Browser","Rhino","Spidermonkey","Mobile"];var t;while(t=_7.shift()){d["is"+t]=false;}dojo.locale=djConfig.locale;dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 11205 $".match(/[0-9]+/)[0]),toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary("dojo","http://dojotoolkit.org",d.version.toString());}dojo._mixin=function(_9,_a){var _b={};for(var x in _a){if(_b[x]===undefined||_b[x]!=_a[x]){_9[x]=_a[x];}}if(d["isIE"]&&_a){var p=_a.toString;if(typeof p=="function"&&p!=_9.toString&&p!=_b.toString&&p!="\nfunction toString() {\n [native code]\n}\n"){_9.toString=_a.toString;}}return _9;};dojo.mixin=function(_e,_f){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_e,arguments[i]);}return _e;};dojo._getProp=function(_12,_13,_14){var obj=_14||d.global;for(var i=0,p;obj&&(p=_12[i]);i++){obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_18,_19,_1a){var _1b=_18.split("."),p=_1b.pop(),obj=d._getProp(_1b,true,_1a);return (obj&&p?(obj[p]=_19):undefined);};dojo.getObject=function(_1e,_1f,_20){return d._getProp(_1e.split("."),_1f,_20);};dojo.exists=function(_21,obj){return !!d.getObject(_21,false,obj);};dojo["eval"]=function(_23){return d.global.eval?d.global.eval(_23):eval(_23);};dojo.deprecated=dojo.experimental=function(){};})();(function(){var d=dojo;dojo.mixin(dojo,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_25){var mp=this._modulePrefixes;return !!(mp[_25]&&mp[_25].value);},_getModulePrefix:function(_27){var mp=this._modulePrefixes;if(this._moduleHasPrefix(_27)){return mp[_27].value;}return _27;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_29,_2a,cb){var uri=(((_29.charAt(0)=="/"||_29.match(/^\w+:/)))?"":this.baseUrl)+_29;if(djConfig.cacheBust&&d.isBrowser){uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");}try{return !_2a?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_2a,cb);}catch(e){console.debug(e);return false;}};dojo._loadUri=function(uri,cb){if(this._loadedUrls[uri]){return true;}var _2f=this._getText(uri,true);if(!_2f){return false;}this._loadedUrls[uri]=true;this._loadedUrls.push(uri);if(cb){_2f="("+_2f+")";}var _30=d["eval"](_2f+"\r\n//@ sourceURL="+uri);if(cb){cb(_30);}return true;};dojo._loadUriAndCheck=function(uri,_32,cb){var ok=false;try{ok=this._loadUri(uri,cb);}catch(e){console.debug("failed loading "+uri+" with error: "+e);}return Boolean(ok&&this._loadedModules[_32]);};dojo.loaded=function(){this._loadNotifying=true;this._postLoad=true;var mll=this._loaders;this._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}this._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&this._loaders.length>0){d._callLoaded();}};dojo.unloaded=function(){var mll=this._unloaders;while(mll.length){(mll.pop())();}};dojo.addOnLoad=function(obj,_39){if(arguments.length==1){d._loaders.push(obj);}else{if(arguments.length>1){d._loaders.push(function(){obj[_39]();});}}if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};dojo.addOnUnload=function(obj,_3b){if(arguments.length==1){d._unloaders.push(obj);}else{if(arguments.length>1){d._unloaders.push(function(){obj[_3b]();});}}};dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.debug("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(djConfig["useXDomain"]&&d.isOpera)){setTimeout("dojo.loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_3c){var _3d=_3c.split(".");for(var i=_3d.length;i>0;i--){var _3f=_3d.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(_3f)){_3d[0]="../"+_3d[0];}else{var _40=this._getModulePrefix(_3f);if(_40!=_3f){_3d.splice(0,i,_40);break;}}}return _3d;};dojo._global_omit_module_check=false;dojo.require=dojo._loadModule=function(_41,_42){_42=this._global_omit_module_check||_42;var _43=this._loadedModules[_41];if(_43){return _43;}var _44=this._getModuleSymbols(_41).join("/")+".js";var _45=(!_42)?_41:null;var ok=this._loadPath(_44,_45);if((!ok)&&(!_42)){throw new Error("Could not load '"+_41+"'; last tried '"+_44+"'");}if((!_42)&&(!this["_isXDomain"])){_43=this._loadedModules[_41];if(!_43){throw new Error("symbol '"+_41+"' is not defined after loading '"+_44+"'");}}return _43;};dojo.requireInto=function(_47,_48){dojo.require(_47);dojo.mixin(_48,dojo.getObject(_47));};dojo.provide=function(_49){_49=_49+"";return (d._loadedModules[_49]=d.getObject(_49,true));};dojo.platformRequire=function(_4a){var _4b=_4a["common"]||[];var _4c=_4b.concat(_4a[d._name]||_4a["default"]||[]);for(var x=0;x<_4c.length;x++){var _4e=_4c[x];if(_4e.constructor==Array){d._loadModule.apply(d,_4e);}else{d._loadModule(_4e);}}};dojo.requireIf=function(_4f,_50){if(_4f===true){var _51=[];for(var i=1;i<arguments.length;i++){_51.push(arguments[i]);}d.require.apply(d,_51);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_53,_54){d._modulePrefixes[_53]={name:_53,value:_54};};dojo.requireLocalization=function(_55,_56,_57,_58){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");var ire=new RegExp("^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$");dojo._Url=function(){var n=null;var _a=arguments;var uri=_a[0];for(var i=1;i<_a.length;i++){if(!_a[i]){continue;}var _5f=new d._Url(_a[i]+"");var _60=new d._Url(uri+"");if((_5f.path=="")&&(!_5f.scheme)&&(!_5f.authority)&&(!_5f.query)){if(_5f.fragment!=n){_60.fragment=_5f.fragment;}_5f=_60;}else{if(!_5f.scheme){_5f.scheme=_60.scheme;if(!_5f.authority){_5f.authority=_60.authority;if(_5f.path.charAt(0)!="/"){var _61=_60.path.substring(0,_60.path.lastIndexOf("/")+1)+_5f.path;var _62=_61.split("/");for(var j=0;j<_62.length;j++){if(_62[j]=="."){if(j==_62.length-1){_62[j]="";}else{_62.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_62[0]=="")&&_62[j]==".."&&_62[j-1]!=".."){if(j==(_62.length-1)){_62.splice(j,1);_62[j-1]="";}else{_62.splice(j-1,2);j-=2;}}}}_5f.path=_62.join("/");}}}}uri="";if(_5f.scheme){uri+=_5f.scheme+":";}if(_5f.authority){uri+="//"+_5f.authority;}uri+=_5f.path;if(_5f.query){uri+="?"+_5f.query;}if(_5f.fragment){uri+="#"+_5f.fragment;}}this.uri=uri.toString();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[5];this.port=r[7]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_65,url){var loc=dojo._getModuleSymbols(_65).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _68=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_68==-1||_68>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 _6a=document.getElementsByTagName("script");var _6b=/dojo(\.xd)?\.js([\?\.]|$)/i;for(var i=0;i<_6a.length;i++){var src=_6a[i].getAttribute("src");if(!src){continue;}var m=src.match(_6b);if(m){if(!djConfig["baseUrl"]){djConfig["baseUrl"]=src.substring(0,m.index);}var cfg=_6a[i].getAttribute("djConfig");if(cfg){var _70=eval("({ "+cfg+" })");for(var x in _70){djConfig[x]=_70[x];}}break;}}}d.baseUrl=djConfig["baseUrl"];var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);d.isOpera=(dua.indexOf("Opera")>=0)?tv:0;d.isKhtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0)?tv:0;d.isSafari=(dav.indexOf("Safari")>=0)?tv:0;var _76=dua.indexOf("Gecko");d.isMozilla=d.isMoz=((_76>=0)&&(!d.isKhtml))?tv:0;d.isFF=0;d.isIE=0;try{if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1].split(" ")[0]);}if((document.all)&&(!d.isOpera)){d.isIE=parseFloat(dav.split("MSIE ")[1].split(";")[0]);}}catch(e){}if(dojo.isIE&&(window.location.protocol==="file:")){djConfig.ieForceActiveXXhr=true;}var cm=document["compatMode"];d.isQuirks=(cm=="BackCompat")||(cm=="QuirksMode")||(d.isIE<6);d.locale=djConfig.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._println=console.debug;d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _78=null;var _79=null;if(!dojo.isIE||!djConfig.ieForceActiveXXhr){try{_78=new XMLHttpRequest();}catch(e){}}if(!_78){for(var i=0;i<3;++i){var _7b=dojo._XMLHTTP_PROGIDS[i];try{_78=new ActiveXObject(_7b);}catch(e){_79=e;}if(_78){dojo._XMLHTTP_PROGIDS=[_7b];break;}}}if(!_78){throw new Error("XMLHTTP not available: "+_79);}return _78;};d._isDocumentOk=function(_7c){var _7d=_7c.status||0;return ((_7d>=200)&&(_7d<300))||(_7d==304)||(_7d==1223)||(!_7d&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _7e=window.location+"";var _7f=document.getElementsByTagName("base");var _80=(_7f&&_7f.length>0);d._getText=function(uri,_82){var _83=this._xhrObj();if(!_80&&dojo._Url){uri=(new dojo._Url(_7e,uri)).toString();}_83.open("GET",uri,false);try{_83.send(null);if(!d._isDocumentOk(_83)){var err=Error("Unable to load "+uri+" status:"+_83.status);err.status=_83.status;err.responseText=_83.responseText;throw err;}}catch(e){if(_82){return null;}throw e;}return _83.responseText;};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _86=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_86!="domcontentloaded"&&_86!="load")){return;}arguments.callee.initialized=true;if(typeof dojo["_khtmlTimer"]!="undefined"){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};if(document.addEventListener){if(dojo.isOpera||(dojo.isMoz&&(djConfig["enableMozDomContentLoaded"]===true))){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(/(WebKit|khtml)/i.test(navigator.userAgent)){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}(function(){var _w=window;var _88=function(_89,fp){var _8b=_w[_89]||function(){};_w[_89]=function(){fp.apply(_w,arguments);_8b.apply(_w,arguments);};};if(dojo.isIE){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){dojo._loadInit();}\">"+"</scr"+"ipt>");var _8c=true;_88("onbeforeunload",function(){_w.setTimeout(function(){_8c=false;},0);});_88("onunload",function(){if(_8c){dojo.unloaded();}});try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}catch(e){}}else{_88("onbeforeunload",function(){dojo.unloaded();});}})();}if(djConfig.isDebug){dojo.require("dojo._firebug.firebug");}if(djConfig.debugAtAllCosts){djConfig.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 _8f=function(it){return typeof it=="function"||it instanceof Function;};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}return _8f(it);}:_8f;})();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(_96,_97){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(_96.prototype,arguments[i]);}return _96;};dojo._hitchArgs=function(_9a,_9b){var pre=dojo._toArray(arguments,2);var _9d=dojo.isString(_9b);return function(){var _9e=dojo._toArray(arguments);var f=_9d?(_9a||dojo.global)[_9b]:_9b;return f&&f.apply(_9a||this,pre.concat(_9e));};};dojo.hitch=function(_a0,_a1){if(arguments.length>2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_a1){_a1=_a0;_a0=null;}if(dojo.isString(_a1)){_a0=_a0||dojo.global;if(!_a0[_a1]){throw (["dojo.hitch: scope[\"",_a1,"\"] is null (scope=\"",_a0,"\")"].join(""));}return function(){return _a0[_a1].apply(_a0,arguments||[]);};}return !_a0?_a1:function(){return _a1.apply(_a0,arguments||[]);};};dojo._delegate=function(obj,_a3){function TMP(){};TMP.prototype=obj;var tmp=new TMP();if(_a3){dojo.mixin(tmp,_a3);}return tmp;};dojo.partial=function(_a5){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));};dojo._toArray=function(obj,_a8,_a9){var arr=_a9||[];for(var x=_a8||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};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;}else{if(dojo.isObject(o)){if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}else{var r=new o.constructor();for(var i in o){if(!(i in r)||r[i]!=o[i]){r[i]=dojo.clone(o[i]);}}return r;}}}return o;};dojo.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(_b0,_b1,_b2){if(dojo.isFunction(_b2)||(arguments.length>3)){dojo.deprecated("dojo.declare: for class '"+_b0+"' pass initializer function as 'constructor' property instead of as a separate argument.","","1.0");var c=_b2;_b2=arguments[3]||{};_b2.constructor=c;}var dd=arguments.callee,_b5=null;if(dojo.isArray(_b1)){_b5=_b1;_b1=_b5.shift();}if(_b5){for(var i=0,m;i<_b5.length;i++){m=_b5[i];if(!m){throw ("Mixin #"+i+" to declaration of "+_b0+" is null. It's likely a required module is not loaded.");}_b1=dd._delegate(_b1,m);}}var _b8=(_b2||0).constructor,_b9=dd._delegate(_b1),fn;for(var i in _b2){if(dojo.isFunction(fn=_b2[i])&&(!0[i])){fn.nom=i;}}dojo.extend(_b9,{declaredClass:_b0,_constructor:_b8,preamble:null},_b2||0);_b9.prototype.constructor=_b9;return dojo.setObject(_b0,_b9);};dojo.mixin(dojo.declare,{_delegate:function(_bb,_bc){var bp=(_bb||0).prototype,mp=(_bc||0).prototype;var _bf=dojo.declare._makeCtor();dojo.mixin(_bf,{superclass:bp,mixin:mp,extend:dojo.declare._extend});if(_bb){_bf.prototype=dojo._delegate(bp);}dojo.extend(_bf,dojo.declare._core,mp||0,{_constructor:null,preamble:null});_bf.prototype.constructor=_bf;_bf.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;dojo.setObject(_bf.prototype.declaredClass,_bf);return _bf;},_extend:function(_c0){for(var i in _c0){if(dojo.isFunction(fn=_c0[i])&&(!0[i])){fn.nom=i;}}dojo.extend(this,_c0);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(_c2){var c=_c2.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_c2,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,_c2);}if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,_c2);}},_findMixin:function(_cb){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==_cb||(m instanceof _cb.constructor)){return p;}if(m&&(m=m._findMixin(_cb))){return m;}c=p&&p.constructor;}},_findMethod:function(_cf,_d0,_d1,has){var p=_d1,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(_cf,_d0,m,has))){return m;}if((f=p[_cf])&&(has==(f==_d0))){return p;}p=c.superclass;}while(p);return !has&&(p=this._findMixin(_d1))&&this._findMethod(_cf,_d0,p,has);},inherited:function(_d7,_d8,_d9){var a=arguments;if(!dojo.isString(a[0])){_d9=_d8;_d8=_d7;_d7=_d8.callee.nom;}var c=_d8.callee,p=this.constructor.prototype,a=_d9||_d8,fn,mp;if(this[_d7]!=c||p[_d7]==c){mp=this._findMethod(_d7,c,p,true);if(!mp){throw (this.declaredClass+": name argument (\""+_d7+"\") to inherited must match callee (declare.js)");}p=this._findMethod(_d7,c,mp,false);}fn=p&&p[_d7];if(!fn){console.debug(mp.declaredClass+": no inherited \""+_d7+"\" was found (declare.js)");return;}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);for(var i in ls){if(!(i in ap)){ls[i].apply(this,arguments);}}return r;};},add:function(_e5,_e6,_e7){_e5=_e5||dojo.global;var f=_e5[_e6];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_e5[_e6]=d;}return f._listeners.push(_e7);},remove:function(_ea,_eb,_ec){var f=(_ea||dojo.global)[_eb];if(f&&f._listeners&&_ec--){delete f._listeners[_ec];}}};dojo.connect=function(obj,_ef,_f0,_f1,_f2){var a=arguments,_f4=[],i=0;_f4.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_f4.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_f4.push(a[i]);}return dojo._connect.apply(this,_f4);};dojo._connect=function(obj,_f9,_fa,_fb){var l=dojo._listener,h=l.add(obj,_f9,dojo.hitch(_fa,_fb));return [obj,_f9,h,l];};dojo.disconnect=function(_fe){if(_fe&&_fe[0]!==undefined){dojo._disconnect.apply(this,_fe);delete _fe[0];}};dojo._disconnect=function(obj,_100,_101,_102){_102.remove(obj,_100,_101);};dojo._topics={};dojo.subscribe=function(_103,_104,_105){return [_103,dojo._listener.add(dojo._topics,_103,dojo.hitch(_104,_105))];};dojo.unsubscribe=function(_106){if(_106){dojo._listener.remove(dojo._topics,_106[0],_106[1]);}};dojo.publish=function(_107,args){var f=dojo._topics[_107];if(f){f.apply(this,args||[]);}};dojo.connectPublisher=function(_10a,obj,_10c){var pf=function(){dojo.publish(_10a,arguments);};return (_10c)?dojo.connect(obj,_10c,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(_10e){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_10e;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;err=new Error("Deferred Cancelled");err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,cbfn){var _117=dojo.hitch(cb,cbfn);if(arguments.length>2){_117=dojo.partial(_117,arguments,2);}return this.addCallbacks(_117,_117);},addCallback:function(cb,cbfn){var _11a=dojo.hitch(cb,cbfn);if(arguments.length>2){_11a=dojo.partial(_11a,arguments,2);}return this.addCallbacks(_11a,null);},addErrback:function(cb,cbfn){var _11d=dojo.hitch(cb,cbfn);if(arguments.length>2){_11d=dojo.partial(_11d,arguments,2);}return this.addCallbacks(null,_11d);},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0){this._fire();}return this;},_fire:function(){var _120=this.chain;var _121=this.fired;var res=this.results[_121];var self=this;var cb=null;while((_120.length>0)&&(this.paused==0)){var f=_120.shift()[_121];if(!f){continue;}try{res=f(res);_121=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire();}};this.paused++;}}catch(err){console.debug(err);_121=1;res=err;}}this.fired=_121;this.results[_121]=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(json){try{return eval("("+json+")");}catch(e){console.debug(e);return json;}};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_12a,_12b){_12b=_12b||"";var _12c=(_12a?_12b+dojo.toJsonIndentStr:"");var _12d=(_12a?"\n":"");var _12e=typeof (it);if(_12e=="undefined"){return "undefined";}else{if((_12e=="number")||(_12e=="boolean")){return it+"";}else{if(it===null){return "null";}}}if(dojo.isString(it)){return dojo._escapeString(it);}var _12f=arguments.callee;var _130;if(typeof it.__json__=="function"){_130=it.__json__();if(it!==_130){return _12f(_130,_12a,_12c);}}if(typeof it.json=="function"){_130=it.json();if(it!==_130){return _12f(_130,_12a,_12c);}}if(dojo.isArray(it)){var res=[];for(var i=0;i<it.length;i++){var val=_12f(it[i],_12a,_12c);if(typeof (val)!="string"){val="undefined";}res.push(_12d+_12c+val);}return "["+res.join(", ")+_12d+_12b+"]";}if(_12e=="function"){return null;}var _134=[];for(var key in it){var _136;if(typeof (key)=="number"){_136="\""+key+"\"";}else{if(typeof (key)=="string"){_136=dojo._escapeString(key);}else{continue;}}val=_12f(it[key],_12a,_12c);if(typeof (val)!="string"){continue;}_134.push(_12d+_12c+_136+": "+val);}return "{"+_134.join(", ")+_12d+_12b+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _137=function(arr,obj,cb){return [(dojo.isString(arr)?arr.split(""):arr),(obj||dojo.global),(dojo.isString(cb)?(new Function("item","index","array",cb)):cb)];};dojo.mixin(dojo,{indexOf:function(_13b,_13c,_13d,_13e){var i=0,step=1,end=_13b.length;if(_13e){i=end-1;step=end=-1;}for(i=_13d||i;i!=end;i+=step){if(_13b[i]==_13c){return i;}}return -1;},lastIndexOf:function(_142,_143,_144){return dojo.indexOf(_142,_143,_144,true);},forEach:function(arr,_146,obj,_148){if(!arr||!arr.length){return;}var _p=_137(arr,obj,_146);arr=_p[0];for(var i=0,l=_p[0].length;i<l;i++){_p[2].call(_p[1],arr[i],i,arr);}},_everyOrSome:function(_14c,arr,_14e,obj){var _p=_137(arr,obj,_14e);arr=_p[0];for(var i=0,l=arr.length;i<l;i++){var _153=!!_p[2].call(_p[1],arr[i],i,arr);if(_14c^_153){return _153;}}return _14c;},every:function(arr,_155,_156){return this._everyOrSome(true,arr,_155,_156);},some:function(arr,_158,_159){return this._everyOrSome(false,arr,_158,_159);},map:function(arr,func,obj){var _p=_137(arr,obj,func);arr=_p[0];var _15e=((arguments[3])?(new arguments[3]()):[]);for(var i=0;i<arr.length;++i){_15e.push(_p[2].call(_p[1],arr[i],i,arr));}return _15e;},filter:function(arr,_161,obj){var _p=_137(arr,obj,_161);arr=_p[0];var _164=[];for(var i=0;i<arr.length;i++){if(_p[2].call(_p[1],arr[i],i,arr)){_164.push(arr[i]);}}return _164;}});})();}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");dojo.Color=function(_166){if(_166){this.setColor(_166);}};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(_16c){var d=dojo;if(d.isString(_16c)){d.colorFromString(_16c,this);}else{if(d.isArray(_16c)){d.colorFromArray(_16c,this);}else{this._set(_16c.r,_16c.g,_16c.b,_16c.a);if(!(_16c 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=dojo.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(_173){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_173?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_176,end,_178,obj){var d=dojo,t=obj||new dojo.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_176[x]+(end[x]-_176[x])*_178;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_17d,obj){var m=_17d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_180,obj){var d=dojo,t=obj||new d.Color(),bits=(_180.length==4)?4:8,mask=(1<<bits)-1;_180=Number("0x"+_180.substr(1));if(isNaN(_180)){return null;}d.forEach(["b","g","r"],function(x){var c=_180&mask;_180>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new dojo.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=dojo.Color.named[str];return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);};}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");(function(){if(djConfig.require){for(var x=0;x<djConfig.require.length;x++){dojo["require"](djConfig.require[x]);}}})();}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo._gearsObject=function(){var _18f;var _190;var _191=dojo.getObject("google.gears");if(_191){return _191;}if(typeof GearsFactory!="undefined"){_18f=new GearsFactory();}else{if(dojo.isIE){try{_18f=new ActiveXObject("Gears.Factory");}catch(e){}}else{if(navigator.mimeTypes["application/x-googlegears"]){_18f=document.createElement("object");_18f.setAttribute("type","application/x-googlegears");_18f.setAttribute("width",0);_18f.setAttribute("height",0);_18f.style.display="none";document.documentElement.appendChild(_18f);}}}if(!_18f){return null;}dojo.setObject("google.gears.factory",_18f);return dojo.getObject("google.gears");};dojo.isGears=(!!dojo._gearsObject())||0;dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_192,_193){dojo.global=_192;dojo.doc=_193;};dojo._fireCallback=function(_194,_195,_196){if((_195)&&((typeof _194=="string")||(_194 instanceof String))){_194=_195[_194];}return (_195?_194.apply(_195,_196||[]):_194());};dojo.withGlobal=function(_197,_198,_199,_19a){var rval;var _19c=dojo.global;var _19d=dojo.doc;try{dojo.setContext(_197,_197.document);rval=dojo._fireCallback(_198,_199,_19a);}finally{dojo.setContext(_19c,_19d);}return rval;};dojo.withDoc=function(_19e,_19f,_1a0,_1a1){var rval;var _1a3=dojo.doc;try{dojo.doc=_19e;rval=dojo._fireCallback(_19f,_1a0,_1a1);}finally{dojo.doc=_1a3;}return rval;};(function(){var mp=djConfig["modulePaths"];if(mp){for(var _1a5 in mp){dojo.registerModulePath(_1a5,mp[_1a5]);}}})();}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _1aa=name;if((!dojo.isIE)&&((name=="mouseenter")||(name=="mouseleave"))){var _1aa=name;var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){var id=dojo.isDescendant(e.relatedTarget,node);if(id==false){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_1af,_1b0){(node)&&(node.removeEventListener(del._normalizeEventName(_1af),_1b0,false));},_normalizeEventName:function(name){return (name.slice(0,2)=="on"?name.slice(2):name);},_fixCallback:function(name,fp){return (name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));});},_fixEvent:function(evt,_1b6){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=(evt.charCode?String.fromCharCode(evt.charCode):"");}};dojo.fixEvent=function(evt,_1b9){return del._fixEvent(evt,_1b9);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _1bb=dojo._listener;dojo._connect=function(obj,_1bd,_1be,_1bf,_1c0,_1c1){var _1c2=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=!_1c2?0:(!_1c0?1:2),l=[dojo._listener,del,_1bb][lid];var h=l.add(obj,_1bd,dojo.hitch(_1be,_1bf),_1c1);return [obj,_1bd,h,lid];};dojo._disconnect=function(obj,_1c7,_1c8,_1c9){([dojo._listener,del,_1bb][_1c9]).remove(obj,_1c7,_1c8);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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};if(dojo.isIE){_trySetKeyCode=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;if(!djConfig._allow_leaks){_1bb=iel=dojo._ie_listener={handlers:[],add:function(_1cd,_1ce,_1cf,_1d0){_1cd=_1cd||dojo.global;var f=_1cd[_1ce];if(!f||!f._listeners){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d._listeners=[];f=_1cd[_1ce]=d;}return f._listeners.push(ieh.push(_1cf)-1);},remove:function(_1d4,_1d5,_1d6){var f=(_1d4||dojo.global)[_1d5],l=f&&f._listeners;if(f&&l&&_1d6--){delete ieh[l[_1d6]];delete l[_1d6];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_1da,fp,_1dc){if(!node){return;}_1da=del._normalizeEventName(_1da);if(_1da=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd._listeners||!kd._stealthKeydown){del.add(node,"onkeydown",del._stealthKeyDown);node.onkeydown._stealthKeydown=true;}}return iel.add(node,_1da,del._fixCallback(fp));},remove:function(node,_1df,_1e0){iel.remove(node,del._normalizeEventName(_1df),_1e0);},_normalizeEventName:function(_1e1){return (_1e1.slice(0,2)!="on"?"on"+_1e1:_1e1);},_nop:function(){},_fixEvent:function(evt,_1e3){if(!evt){var w=(_1e3)&&((_1e3.ownerDocument||_1e3.document||_1e3).parentWindow)||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_1e3||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _1e7=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _1e8=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1e7.scrollLeft||0)-_1e8.x;evt.pageY=evt.clientY+(_1e7.scrollTop||0)-_1e8.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;},_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},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp._listeners){return;}var k=evt.keyCode;var _1ee=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_1ee||evt.ctrlKey){var c=(_1ee?0:k);if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_trySetKeyCode(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_trySetKeyCode(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_1f3){var faux=dojo.mixin({},evt,_1f3);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_1f6){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.isSafari){dojo.mixin(del,{_fixEvent:function(evt,_1f9){switch(evt.type){case "keypress":var c=evt.charCode,s=evt.shiftKey,k=evt.keyCode;k=k||_1fd[evt.keyIdentifier]||0;if(evt.keyIdentifier=="Enter"){c=0;}else{if((evt.ctrlKey)&&(c>0)&&(c<27)){c+=96;}else{if(c==dojo.keys.SHIFT_TAB){c=dojo.keys.TAB;s=true;}else{c=(c>=32&&c<63232?c:0);}}}return del._synthesizeEvent(evt,{charCode:c,shiftKey:s,keyCode:k});}return evt;}});dojo.mixin(dojo.keys,{SHIFT_TAB:25,UP_ARROW:63232,DOWN_ARROW:63233,LEFT_ARROW:63234,RIGHT_ARROW:63235,F1:63236,F2:63237,F3:63238,F4:63239,F5:63240,F6:63241,F7:63242,F8:63243,F9:63244,F10:63245,F11:63246,F12:63247,PAUSE:63250,DELETE:63272,HOME:63273,END:63275,PAGE_UP:63276,PAGE_DOWN:63277,INSERT:63302,PRINT_SCREEN:63248,SCROLL_LOCK:63249,NUM_LOCK:63289});var dk=dojo.keys,_1fd={"Up":dk.UP_ARROW,"Down":dk.DOWN_ARROW,"Left":dk.LEFT_ARROW,"Right":dk.RIGHT_ARROW,"PageUp":dk.PAGE_UP,"PageDown":dk.PAGE_DOWN};}})();if(dojo.isIE){dojo._getIeDispatcher=function(){return function(){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=arguments.callee,ls=c._listeners,t=h[c.target];var r=t&&t.apply(this,arguments);for(var i in ls){if(!(i in ap)){h[ls[i]].apply(this,arguments);}}return r;};};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(dojo.isString(id)){var _d=doc||dojo.doc;var te=_d.getElementById(id);if(te&&te.attributes.id.value==id){return te;}else{var eles=_d.all[id];if(!eles){return;}if(!eles.length){return eles;}var i=0;while((te=eles[i++])){if(te.attributes.id.value==id){return te;}}}}else{return id;}};}else{dojo.byId=function(id,doc){if(dojo.isString(id)){return (doc||dojo.doc).getElementById(id);}else{return id;}};}(function(){var _211=null;dojo._destroyElement=function(node){node=dojo.byId(node);try{if(!_211){_211=document.createElement("div");}_211.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_211.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_214){try{node=dojo.byId(node);_214=dojo.byId(_214);while(node){if(node===_214){return true;}node=node.parentNode;}}catch(e){return -1;}return false;};dojo.setSelectable=function(node,_216){node=dojo.byId(node);if(dojo.isMozilla){node.style.MozUserSelect=_216?"":"none";}else{if(dojo.isKhtml){node.style.KhtmlUserSelect=_216?"auto":"none";}else{if(dojo.isIE){node.unselectable=_216?"":"on";dojo.query("*",node).forEach(function(_217){_217.unselectable=_216?"":"on";});}}}};var _218=function(node,ref){ref.parentNode.insertBefore(node,ref);return true;};var _21b=function(node,ref){var pn=ref.parentNode;if(ref==pn.lastChild){pn.appendChild(node);}else{return _218(node,ref.nextSibling);}return true;};dojo.place=function(node,_220,_221){if(!node||!_220||_221===undefined){return false;}node=dojo.byId(node);_220=dojo.byId(_220);if(typeof _221=="number"){var cn=_220.childNodes;if((_221==0&&cn.length==0)||cn.length==_221){_220.appendChild(node);return true;}if(_221==0){return _218(node,_220.firstChild);}return _21b(node,cn[_221-1]);}switch(_221.toLowerCase()){case "before":return _218(node,_220);case "after":return _21b(node,_220);case "first":if(_220.firstChild){return _218(node,_220.firstChild);}else{_220.appendChild(node);return true;}break;default:_220.appendChild(node);return true;}};dojo.boxModel="content-box";if(dojo.isIE){var _dcm=document.compatMode;dojo.boxModel=(_dcm=="BackCompat")||(_dcm=="QuirksMode")||(dojo.isIE<6)?"border-box":"content-box";}var gcs,dv=document.defaultView;if(dojo.isSafari){gcs=function(node){var s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}return s||{};};}else{if(dojo.isIE){gcs=function(node){return node.currentStyle;};}else{gcs=function(node){return dv.getComputedStyle(node,null);};}}dojo.getComputedStyle=gcs;if(!dojo.isIE){dojo._toPixelValue=function(_22a,_22b){return parseFloat(_22b)||0;};}else{dojo._toPixelValue=function(_22c,_22d){if(!_22d){return 0;}if(_22d=="medium"){return 4;}if(_22d.slice&&(_22d.slice(-2)=="px")){return parseFloat(_22d);}with(_22c){var _22e=style.left;var _22f=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_22d;_22d=style.pixelLeft;}catch(e){_22d=0;}style.left=_22e;runtimeStyle.left=_22f;}return _22d;};}dojo._getOpacity=(dojo.isIE?function(node){try{return (node.filters.alpha.opacity/100);}catch(e){return 1;}}:function(node){return dojo.getComputedStyle(node).opacity;});dojo._setOpacity=(dojo.isIE?function(node,_233){if(_233==1){node.style.cssText=node.style.cssText.replace(/FILTER:[^;]*;/i,"");if(node.nodeName.toLowerCase()=="tr"){dojo.query("> td",node).forEach(function(i){i.style.cssText=i.style.cssText.replace(/FILTER:[^;]*;/i,"");});}}else{var o="Alpha(Opacity="+(_233*100)+")";node.style.filter=o;}if(node.nodeName.toLowerCase()=="tr"){dojo.query("> td",node).forEach(function(i){i.style.filter=o;});}return _233;}:function(node,_238){return node.style.opacity=_238;});var _239={width:true,height:true,left:true,top:true};var _23a=function(node,type,_23d){type=type.toLowerCase();if(_239[type]===true){return dojo._toPixelValue(node,_23d);}else{if(_239[type]===false){return _23d;}else{if(dojo.isOpera&&type=="cssText"){}if((type.indexOf("margin")>=0)||(type.indexOf("padding")>=0)||(type.indexOf("width")>=0)||(type.indexOf("height")>=0)||(type.indexOf("max")>=0)||(type.indexOf("min")>=0)||(type.indexOf("offset")>=0)){_239[type]=true;return dojo._toPixelValue(node,_23d);}else{_239[type]=false;return _23d;}}}};dojo.style=function(node,_23f,_240){var n=dojo.byId(node),args=arguments.length,op=(_23f=="opacity");if(args==3){return op?dojo._setOpacity(n,_240):n.style[_23f]=_240;}if(args==2&&op){return dojo._getOpacity(n);}var s=dojo.getComputedStyle(n);return (args==1)?s:_23a(n,_23f,s[_23f]);};dojo._getPadExtents=function(n,_246){var s=_246||gcs(n),px=dojo._toPixelValue,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,_24c){var ne="none",px=dojo._toPixelValue,s=_24c||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,_253){var s=_253||gcs(n),p=dojo._getPadExtents(n,s),b=dojo._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,_258){var s=_258||gcs(n),px=dojo._toPixelValue,l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(dojo.isSafari&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_260){var s=_260||gcs(node),me=dojo._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t;if(dojo.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{var p=node.parentNode;if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=dojo._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(dojo.isOpera){var p=node.parentNode;if(p){var be=dojo._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,_26b){var s=_26b||gcs(node),pe=dojo._getPadExtents(node,s),be=dojo._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(dojo.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,_272){var s=_272||gcs(node),pe=dojo._getPadExtents(node,s),cb=dojo._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";with(node.style){if(!isNaN(l)){left=l+u;}if(!isNaN(t)){top=t+u;}if(w>=0){width=w+u;}if(h>=0){height=h+u;}}};dojo._usesBorderBox=function(node){var n=node.tagName;return dojo.boxModel=="border-box"||n=="TABLE"||n=="BUTTON";};dojo._setContentSize=function(node,_27f,_280,_281){var bb=dojo._usesBorderBox(node);if(bb){var pb=dojo._getPadBorderExtents(node,_281);if(_27f>=0){_27f+=pb.w;}if(_280>=0){_280+=pb.h;}}dojo._setBox(node,NaN,NaN,_27f,_280);};dojo._setMarginBox=function(node,_285,_286,_287,_288,_289){var s=_289||dojo.getComputedStyle(node);var bb=dojo._usesBorderBox(node),pb=bb?_28d:dojo._getPadBorderExtents(node,s),mb=dojo._getMarginExtents(node,s);if(_287>=0){_287=Math.max(_287-pb.w-mb.w,0);}if(_288>=0){_288=Math.max(_288-pb.h-mb.h,0);}dojo._setBox(node,_285,_286,_287,_288);};var _28d={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=dojo.byId(node),s=gcs(n),b=box;return !b?dojo._getMarginBox(n,s):dojo._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=dojo.byId(node),s=gcs(n),b=box;return !b?dojo._getContentBox(n,s):dojo._setContentSize(n,b.w,b.h,s);};var _299=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_29d=0,_b=dojo.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_29d+=val-0;if(node==_b){break;}}node=node.parentNode;}return _29d;};dojo._docScroll=function(){var _b=dojo.body();var _w=dojo.global;var de=dojo.doc.documentElement;return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||dojo._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};};dojo._isBodyLtr=function(){return !("_bodyLtr" in dojo)?dojo._bodyLtr=dojo.getComputedStyle(dojo.body()).direction=="ltr":dojo._bodyLtr;};dojo._getIeDocumentElementOffset=function(){var de=dojo.doc.documentElement;if(dojo.isIE>=7){return {x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top};}else{return {x:dojo._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};}};dojo._fixIeBiDiScrollLeft=function(_2a3){if(dojo.isIE&&!dojo._isBodyLtr()){var de=dojo.doc.documentElement;return _2a3+de.clientWidth-de.scrollWidth;}return _2a3;};dojo._abs=function(node,_2a6){var _2a7=node.ownerDocument;var ret={x:0,y:0};var _2a9=false;var db=dojo.body();if(dojo.isIE){var _2ab=node.getBoundingClientRect();var _2ac=dojo._getIeDocumentElementOffset();ret.x=_2ab.left-_2ac.x;ret.y=_2ab.top-_2ac.y;}else{if(_2a7["getBoxObjectFor"]){var bo=_2a7.getBoxObjectFor(node);ret.x=bo.x-_299(node,"scrollLeft");ret.y=bo.y-_299(node,"scrollTop");}else{if(node["offsetParent"]){_2a9=true;var _2ae;if(dojo.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){_2ae=db;}else{_2ae=db.parentNode;}if(node.parentNode!=db){var nd=node;if(dojo.isOpera||(dojo.isSafari>=5)){nd=db;}ret.x-=_299(nd,"scrollLeft");ret.y-=_299(nd,"scrollTop");}var _2b0=node;do{var n=_2b0["offsetLeft"];if(!dojo.isOpera||n>0){ret.x+=isNaN(n)?0:n;}var m=_2b0["offsetTop"];ret.y+=isNaN(m)?0:m;_2b0=_2b0.offsetParent;}while((_2b0!=_2ae)&&_2b0);}else{if(node["x"]&&node["y"]){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(_2a9||_2a6){var _2b3=dojo._docScroll();var m=_2a9?(!_2a6?-1:0):1;ret.y+=m*_2b3.y;ret.x+=m*_2b3.x;}return ret;};dojo.coords=function(node,_2b5){var n=dojo.byId(node),s=gcs(n),mb=dojo._getMarginBox(n,s);var abs=dojo._abs(n,_2b5);mb.x=abs.x;mb.y=abs.y;return mb;};})();dojo.hasClass=function(node,_2bb){return ((" "+dojo.byId(node).className+" ").indexOf(" "+_2bb+" ")>=0);};dojo.addClass=function(node,_2bd){node=dojo.byId(node);var cls=node.className;if((" "+cls+" ").indexOf(" "+_2bd+" ")<0){node.className=cls+(cls?" ":"")+_2bd;}};dojo.removeClass=function(node,_2c0){node=dojo.byId(node);var t=dojo.trim((" "+node.className+" ").replace(" "+_2c0+" "," "));if(node.className!=t){node.className=t;}};dojo.toggleClass=function(node,_2c3,_2c4){if(_2c4===undefined){_2c4=!dojo.hasClass(node,_2c3);}dojo[_2c4?"addClass":"removeClass"](node,_2c3);};}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var tnl=function(arr){arr.constructor=dojo.NodeList;dojo._mixin(arr,dojo.NodeList.prototype);return arr;};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};dojo.NodeList._wrap=tnl;dojo.extend(dojo.NodeList,{slice:function(){var a=dojo._toArray(arguments);return tnl(a.slice.apply(this,a));},splice:function(){var a=dojo._toArray(arguments);return tnl(a.splice.apply(this,a));},concat:function(){var a=dojo._toArray(arguments,0,[this]);return tnl(a.concat.apply([],a));},indexOf:function(_2cb,_2cc){return d.indexOf(this,_2cb,_2cc);},lastIndexOf:function(){return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));},every:function(_2cd,_2ce){return d.every(this,_2cd,_2ce);},some:function(_2cf,_2d0){return d.some(this,_2cf,_2d0);},map:function(func,obj){return d.map(this,func,obj,d.NodeList);},forEach:function(_2d3,_2d4){d.forEach(this,_2d3,_2d4);return this;},coords:function(){return d.map(this,d.coords);},style:function(){var aa=d._toArray(arguments,0,[null]);var s=this.map(function(i){aa[0]=i;return d.style.apply(d,aa);});return (arguments.length>1)?this:s;},styles:function(){d.deprecated("NodeList.styles","use NodeList.style instead","1.1");return this.style.apply(this,arguments);},addClass:function(_2d8){this.forEach(function(i){d.addClass(i,_2d8);});return this;},removeClass:function(_2da){this.forEach(function(i){d.removeClass(i,_2da);});return this;},place:function(_2dc,_2dd){var item=d.query(_2dc)[0];_2dd=_2dd||"last";for(var x=0;x<this.length;x++){d.place(this[x],item,_2dd);}return this;},connect:function(_2e0,_2e1,_2e2){this.forEach(function(item){d.connect(item,_2e0,_2e1,_2e2);});return this;},orphan:function(_2e4){var _2e5=(_2e4)?d._filterQueryResult(this,_2e4):this;_2e5.forEach(function(item){if(item["parentNode"]){item.parentNode.removeChild(item);}});return _2e5;},adopt:function(_2e7,_2e8){var item=this[0];return d.query(_2e7).forEach(function(ai){d.place(ai,item,(_2e8||"last"));});},query:function(_2eb){_2eb=_2eb||"";var ret=d.NodeList();this.forEach(function(item){d.query(_2eb,item).forEach(function(_2ee){if(typeof _2ee!="undefined"){ret.push(_2ee);}});});return ret;},filter:function(_2ef){var _2f0=this;var _a=arguments;var r=d.NodeList();var rp=function(t){if(typeof t!="undefined"){r.push(t);}};if(d.isString(_2ef)){_2f0=d._filterQueryResult(this,_a[0]);if(_a.length==1){return _2f0;}d.forEach(d.filter(_2f0,_a[1],_a[2]),rp);return r;}d.forEach(d.filter(_2f0,_a[0],_a[1]),rp);return r;},addContent:function(_2f5,_2f6){var ta=d.doc.createElement("span");if(d.isString(_2f5)){ta.innerHTML=_2f5;}else{ta.appendChild(_2f5);}var ct=((_2f6=="first")||(_2f6=="after"))?"lastChild":"firstChild";this.forEach(function(item){var tn=ta.cloneNode(true);while(tn[ct]){d.place(tn[ct],item,_2f6);}});return this;}});d.forEach(["mouseover","click","mouseout","mousemove","blur","mousedown","mouseup","mousemove","keydown","keyup","keypress","mouseenter","mouseleave"],function(evt){var _oe="on"+evt;dojo.NodeList.prototype[_oe]=function(a,b){return this.connect(_oe,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;dojo.provide("dojo._base.query");(function(){var d=dojo;var _300=dojo.isIE?"children":"childNodes";var _301=["|","~","^","$","*"];var _302=[">","~","+"];var _303=function(_304){if(_304.charAt(_304.length-1)==">"){_304+=" *";}_304+=" ";var ts=function(s,e){return d.trim(_304.slice(s,e));};var _308=[];var _309=-1;var _30a=-1;var _30b=-1;var _30c=-1;var _30d=-1;var inId=-1;var _30f=-1;var lc="";var cc="";var x=0;var ql=_304.length;var _314=null;var _cp=null;var _316=function(){if(_30f>=0){var tv=(_30f==x)?null:ts(_30f,x).toLowerCase();_314[d.indexOf(_302,tv)?"tag":"oper"]=tv;_30f=-1;}};var _318=function(){if(inId>=0){_314.id=ts(inId,x).replace(/\\/g,"");doh.debug(_314.id);inId=-1;}};var _319=function(){if(_30d>=0){_314.classes.push(ts(_30d+1,x).replace(/\\/g,""));_30d=-1;}};var _31a=function(){_318();_316();_319();};for(;x<ql,lc=cc,cc=_304.charAt(x);x++){if(lc=="\\"){continue;}if(!_314){pStart=x;_314={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null};_30f=x;}if(_309>=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(_309+1,x);}else{_cp.matchFor=ts((_30b||_309+1),x);}var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.substring(1,cmf.length-1);}}_314.attrs.push(_cp);_cp=null;_309=_30b=-1;}else{if(cc=="="){var _31c=(d.indexOf(_301,lc)>=0)?lc:"";_cp.type=_31c+cc;_cp.attr=ts(_309+1,x-_31c.length);_30b=x+1;}}}else{if(_30a>=0){if(cc==")"){if(_30c>=0){_cp.value=ts(_30a+1,x);}_30c=_30a=-1;}}else{if(cc=="#"){_31a();inId=x+1;}else{if(cc=="."){_31a();_30d=x;}else{if(cc==":"){_31a();_30c=x;}else{if(cc=="["){_31a();_309=x;_cp={};}else{if(cc=="("){if(_30c>=0){_cp={name:ts(_30c+1,x),value:null};_314.pseudos.push(_cp);}_30a=x;}else{if(cc==" "&&lc!=cc){_31a();if(_30c>=0){_314.pseudos.push({name:ts(_30c+1,x)});}_314.hasLoops=(_314.pseudos.length||_314.attrs.length||_314.classes.length);_314.query=ts(pStart,x);_314.tag=(_314["oper"])?null:(_314.tag||"*");_308.push(_314);_314=null;}}}}}}}}}return _308;};var _31d={"*=":function(attr,_31f){return "[contains(@"+attr+", '"+_31f+"')]";},"^=":function(attr,_321){return "[starts-with(@"+attr+", '"+_321+"')]";},"$=":function(attr,_323){return "[substring(@"+attr+", string-length(@"+attr+")-"+(_323.length-1)+")='"+_323+"']";},"~=":function(attr,_325){return "[contains(concat(' ',@"+attr+",' '), ' "+_325+" ')]";},"|=":function(attr,_327){return "[contains(concat(' ',@"+attr+",' '), ' "+_327+"-')]";},"=":function(attr,_329){return "[@"+attr+"='"+_329+"']";}};var _32a=function(_32b,_32c,_32d,_32e){d.forEach(_32c.attrs,function(attr){var _330;if(attr.type&&_32b[attr.type]){_330=_32b[attr.type](attr.attr,attr.matchFor);}else{if(attr.attr.length){_330=_32d(attr.attr);}}if(_330){_32e(_330);}});};var _331=function(_332){var _333=".";var _334=_303(d.trim(_332));while(_334.length){var tqp=_334.shift();var _336;if(tqp.oper==">"){_336="/";tqp=_334.shift();}else{_336="//";}_333+=_336+tqp.tag;if(tqp.id){_333+="[@id='"+tqp.id+"'][1]";}d.forEach(tqp.classes,function(cn){var cnl=cn.length;var _339=" ";if(cn.charAt(cnl-1)=="*"){_339="";cn=cn.substr(0,cnl-1);}_333+="[contains(concat(' ',@class,' '), ' "+cn+_339+"')]";});_32a(_31d,tqp,function(_33a){return "[@"+_33a+"]";},function(_33b){_333+=_33b;});}return _333;};var _33c={};var _33d=function(path){if(_33c[path]){return _33c[path];}var doc=d.doc;var _340=_331(path);var tf=function(_342){var ret=[];var _344;try{_344=doc.evaluate(_340,_342,null,XPathResult.ANY_TYPE,null);}catch(e){console.debug("failure in exprssion:",_340,"under:",_342);console.debug(e);}var _345=_344.iterateNext();while(_345){ret.push(_345);_345=_344.iterateNext();}return ret;};return _33c[path]=tf;};var _346={};var _347={};var _348=function(_349,_34a){if(!_349){return _34a;}if(!_34a){return _349;}return function(){return _349.apply(window,arguments)&&_34a.apply(window,arguments);};};var _34b=function(_34c,_34d,_34e,idx){var nidx=idx+1;var _351=(_34d.length==nidx);var tqp=_34d[idx];if(tqp.oper==">"){var ecn=_34c[_300];if(!ecn.length){return;}nidx++;_351=(_34d.length==nidx);var tf=_355(_34d[idx+1]);for(var x=0,ecnl=ecn.length,te;x<ecnl,te=ecn[x];x++){if(tf(te)){if(_351){_34e.push(te);}else{_34b(te,_34d,_34e,nidx);}}}}var _359=_35a(tqp)(_34c);if(_351){while(_359.length){_34e.push(_359.shift());}}else{while(_359.length){_34b(_359.shift(),_34d,_34e,nidx);}}};var _35b=function(_35c,_35d){var ret=[];var x=_35c.length-1,te;while(te=_35c[x--]){_34b(te,_35d,ret,0);}return ret;};var _355=function(q){if(_346[q.query]){return _346[q.query];}var ff=null;if(q.tag){if(q.tag=="*"){ff=_348(ff,function(elem){return (elem.nodeType==1);});}else{ff=_348(ff,function(elem){return ((elem.nodeType==1)&&(q.tag==elem.tagName.toLowerCase()));});}}if(q.id){ff=_348(ff,function(elem){return ((elem.nodeType==1)&&(elem.id==q.id));});}if(q.hasLoops){ff=_348(ff,_366(q));}return _346[q.query]=ff;};var _367=function(node){var pn=node.parentNode;var pnc=pn.childNodes;var nidx=-1;var _36c=pn.firstChild;if(!_36c){return nidx;}var ci=node["__cachedIndex"];var cl=pn["__cachedLength"];if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){pn["__cachedLength"]=pnc.length;var idx=1;do{if(_36c===node){nidx=idx;}if(_36c.nodeType==1){_36c["__cachedIndex"]=idx;idx++;}_36c=_36c.nextSibling;}while(_36c);}else{nidx=ci;}return nidx;};var _370=0;var _371=function(elem,attr){var _374="";if(attr=="class"){return elem.className||_374;}if(attr=="for"){return elem.htmlFor||_374;}return elem.getAttribute(attr,2)||_374;};var _375={"*=":function(attr,_377){return function(elem){return (_371(elem,attr).indexOf(_377)>=0);};},"^=":function(attr,_37a){return function(elem){return (_371(elem,attr).indexOf(_37a)==0);};},"$=":function(attr,_37d){var tval=" "+_37d;return function(elem){var ea=" "+_371(elem,attr);return (ea.lastIndexOf(_37d)==(ea.length-_37d.length));};},"~=":function(attr,_382){var tval=" "+_382+" ";return function(elem){var ea=" "+_371(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_387){var _388=" "+_387+"-";return function(elem){var ea=" "+(elem.getAttribute(attr,2)||"");return ((ea==_387)||(ea.indexOf(_388)==0));};},"=":function(attr,_38c){return function(elem){return (_371(elem,attr)==_38c);};}};var _38e={"first-child":function(name,_390){return function(elem){if(elem.nodeType!=1){return false;}var fc=elem.previousSibling;while(fc&&(fc.nodeType!=1)){fc=fc.previousSibling;}return (!fc);};},"last-child":function(name,_394){return function(elem){if(elem.nodeType!=1){return false;}var nc=elem.nextSibling;while(nc&&(nc.nodeType!=1)){nc=nc.nextSibling;}return (!nc);};},"empty":function(name,_398){return function(elem){var cn=elem[_300];var cnl=elem[_300].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,_39f){return function(elem){return (elem.innerHTML.indexOf(_39f)>=0);};},"not":function(name,_3a2){var ntf=_355(_303(_3a2)[0]);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_3a6){var pi=parseInt;if(_3a6=="odd"){return function(elem){return (((_367(elem))%2)==1);};}else{if((_3a6=="2n")||(_3a6=="even")){return function(elem){return ((_367(elem)%2)==0);};}else{if(_3a6.indexOf("0n+")==0){var _3aa=pi(_3a6.substr(3));return function(elem){return (elem.parentNode[_300][_3aa-1]===elem);};}else{if((_3a6.indexOf("n+")>0)&&(_3a6.length>3)){var _3ac=_3a6.split("n+",2);var pred=pi(_3ac[0]);var idx=pi(_3ac[1]);return function(elem){return ((_367(elem)%pred)==idx);};}else{if(_3a6.indexOf("n")==-1){var _3aa=pi(_3a6);return function(elem){return (_367(elem)==_3aa);};}}}}}}};var _3b1=(d.isIE)?function(cond){var clc=cond.toLowerCase();return function(elem){return elem[cond]||elem[clc];};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _366=function(_3b7){var _3b8=(_347[_3b7.query]||_346[_3b7.query]);if(_3b8){return _3b8;}var ff=null;if(_3b7.id){if(_3b7.tag!="*"){ff=_348(ff,function(elem){return (elem.tagName.toLowerCase()==_3b7.tag);});}}d.forEach(_3b7.classes,function(_3bb,idx,arr){var _3be=_3bb.charAt(_3bb.length-1)=="*";if(_3be){_3bb=_3bb.substr(0,_3bb.length-1);}var re=new RegExp("(?:^|\\s)"+_3bb+(_3be?".*":"")+"(?:\\s|$)");ff=_348(ff,function(elem){return re.test(elem.className);});ff.count=idx;});d.forEach(_3b7.pseudos,function(_3c1){if(_38e[_3c1.name]){ff=_348(ff,_38e[_3c1.name](_3c1.name,_3c1.value));}});_32a(_375,_3b7,_3b1,function(_3c2){ff=_348(ff,_3c2);});if(!ff){ff=function(){return true;};}return _347[_3b7.query]=ff;};var _3c3={};var _35a=function(_3c4,root){var fHit=_3c3[_3c4.query];if(fHit){return fHit;}if(_3c4.id&&!_3c4.hasLoops&&!_3c4.tag){return _3c3[_3c4.query]=function(root){return [d.byId(_3c4.id)];};}var _3c8=_366(_3c4);var _3c9;if(_3c4.tag&&_3c4.id&&!_3c4.hasLoops){_3c9=function(root){var te=d.byId(_3c4.id);if(_3c8(te)){return [te];}};}else{var tret;if(!_3c4.hasLoops){_3c9=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_3c4.tag);while(te=tret[x++]){ret.push(te);}return ret;};}else{_3c9=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_3c4.tag);while(te=tret[x++]){if(_3c8(te)){ret.push(te);}}return ret;};}}return _3c3[_3c4.query]=_3c9;};var _3d5={};var _3d6={"*":d.isIE?function(root){return root.all;}:function(root){return root.getElementsByTagName("*");},">":function(root){var ret=[];var te,x=0,tret=root[_300];while(te=tret[x++]){if(te.nodeType==1){ret.push(te);}}return ret;}};var _3de=function(_3df){var _3e0=_303(d.trim(_3df));if(_3e0.length==1){var tt=_35a(_3e0[0]);tt.nozip=true;return tt;}var sqf=function(root){var _3e4=_3e0.slice(0);var _3e5;if(_3e4[0].oper==">"){_3e5=[root];}else{_3e5=_35a(_3e4.shift())(root);}return _35b(_3e5,_3e4);};return sqf;};var _3e6=((document["evaluate"]&&!d.isSafari)?function(_3e7){var _3e8=_3e7.split(" ");if((document["evaluate"])&&(_3e7.indexOf(":")==-1)&&((true))){if(((_3e8.length>2)&&(_3e7.indexOf(">")==-1))||(_3e8.length>3)||(_3e7.indexOf("[")>=0)||((1==_3e8.length)&&(0<=_3e7.indexOf(".")))){return _33d(_3e7);}}return _3de(_3e7);}:_3de);var _3e9=function(_3ea){if(_3d6[_3ea]){return _3d6[_3ea];}if(0>_3ea.indexOf(",")){return _3d6[_3ea]=_3e6(_3ea);}else{var _3eb=_3ea.split(/\s*,\s*/);var tf=function(root){var _3ee=0;var ret=[];var tp;while(tp=_3eb[_3ee++]){ret=ret.concat(_3e6(tp,tp.indexOf(" "))(root));}return ret;};return _3d6[_3ea]=tf;}};var _3f1=0;var _zip=function(arr){if(arr&&arr.nozip){return d.NodeList._wrap(arr);}var ret=new d.NodeList();if(!arr){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_3f1++;arr[0]["_zipIdx"]=_3f1;for(var x=1,te;te=arr[x];x++){if(arr[x]["_zipIdx"]!=_3f1){ret.push(te);}te["_zipIdx"]=_3f1;}return ret;};d.query=function(_3f7,root){if(_3f7.constructor==d.NodeList){return _3f7;}if(!d.isString(_3f7)){return new d.NodeList(_3f7);}if(d.isString(root)){root=d.byId(root);}return _zip(_3e9(_3f7)(root||d.doc));};d._filterQueryResult=function(_3f9,_3fa){var tnl=new d.NodeList();var ff=(_3fa)?_355(_303(_3fa)[0]):function(){return true;};for(var x=0,te;te=_3f9[x];x++){if(ff(te)){tnl.push(te);}}return tnl;};})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){function setValue(obj,name,_401){var val=obj[name];if(dojo.isString(val)){obj[name]=[val,_401];}else{if(dojo.isArray(val)){val.push(_401);}else{obj[name]=_401;}}};dojo.formToObject=function(_403){var ret={};var iq="input[type!=file][type!=submit][type!=image][type!=reset][type!=button], select, textarea";dojo.query(iq,_403).filter(function(node){return (!node.disabled);}).forEach(function(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(type=="radio"||type=="checkbox"){if(item.checked){setValue(ret,_in,item.value);}}else{if(item.multiple){ret[_in]=[];dojo.query("option",item).forEach(function(opt){if(opt.selected){setValue(ret,_in,opt.value);}});}else{setValue(ret,_in,item.value);if(type=="image"){ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;}}}});return ret;};})();dojo.objectToQuery=function(map){var ec=encodeURIComponent;var ret="";var _40e={};for(var x in map){if(map[x]!=_40e[x]){if(dojo.isArray(map[x])){for(var y=0;y<map[x].length;y++){ret+=ec(x)+"="+ec(map[x][y])+"&";}}else{ret+=ec(x)+"="+ec(map[x])+"&";}}}if(ret.length&&ret.charAt(ret.length-1)=="&"){ret=ret.substr(0,ret.length-1);}return ret;};dojo.formToQuery=function(_411){return dojo.objectToQuery(dojo.formToObject(_411));};dojo.formToJson=function(_412){return dojo.toJson(dojo.formToObject(_412));};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dc=decodeURIComponent;dojo.forEach(qp,function(item){if(item.length){var _418=item.split("=");var name=dc(_418.shift());var val=dc(_418.join("="));if(dojo.isString(ret[name])){ret[name]=[ret[name]];}if(dojo.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){if(!djConfig.usePlainJson){console.debug("Consider using mimetype:text/json-comment-filtered"+" to avoid potential security issues with JSON endpoints"+" (use djConfig.usePlainJson=true to turn off this message)");}return dojo.fromJson(xhr.responseText);},"json-comment-filtered":function(xhr){var _41e=xhr.responseText;var _41f=_41e.indexOf("/*");var _420=_41e.lastIndexOf("*/");if(_41f==-1||_420==-1){throw new Error("JSON was not comment filtered");}return dojo.fromJson(_41e.substring(_41f+2,_420));},"javascript":function(xhr){return dojo.eval(xhr.responseText);},"xml":function(xhr){if(dojo.isIE&&!xhr.responseXML){dojo.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(i){try{var doc=new ActiveXObject(prefixes[i]+".XMLDOM");doc.async=false;doc.loadXML(xhr.responseText);return doc;}catch(e){}});}else{return xhr.responseXML;}}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var _426=dojo._contentHandlers;try{return _426["json-comment-filtered"](xhr);}catch(e){return _426["json"](xhr);}};(function(){dojo._ioSetArgs=function(args,_428,_429,_42a){var _42b={args:args,url:args.url};var _42c=null;if(args.form){var form=dojo.byId(args.form);var _42e=form.getAttributeNode("action");_42b.url=_42b.url||(_42e?_42e.value:null);_42c=dojo.formToObject(form);}var _42f=[{}];if(_42c){_42f.push(_42c);}if(args.content){_42f.push(args.content);}if(args.preventCache){_42f.push({"dojo.preventCache":new Date().valueOf()});}_42b.query=dojo.objectToQuery(dojo.mixin.apply(null,_42f));_42b.handleAs=args.handleAs||"text";var d=new dojo.Deferred(_428);d.addCallbacks(_429,function(_431){return _42a(_431,d);});var ld=args.load;if(ld&&dojo.isFunction(ld)){d.addCallback(function(_433){return ld.call(args,_433,_42b);});}var err=args.error;if(err&&dojo.isFunction(err)){d.addErrback(function(_435){return err.call(args,_435,_42b);});}var _436=args.handle;if(_436&&dojo.isFunction(_436)){d.addBoth(function(_437){return _436.call(args,_437,_42b);});}d.ioArgs=_42b;return d;};var _438=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=(typeof xhr.abort);if((_at=="function")||(_at=="unknown")){xhr.abort();}var err=new Error("xhr cancelled");err.dojoType="cancel";return err;};var _43d=function(dfd){return dojo._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr,dfd.ioArgs);};var _43f=function(_440,dfd){console.debug(_440);return _440;};var _442=function(args){var dfd=dojo._ioSetArgs(args,_438,_43d,_43f);dfd.ioArgs.xhr=dojo._xhrObj(dfd.ioArgs.args);return dfd;};var _445=null;var _446=[];var _447=function(){var now=(new Date()).getTime();if(!dojo._blockAsync){for(var i=0,tif;(i<_446.length)&&(tif=_446[i]);i++){var dfd=tif.dfd;try{if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_446.splice(i--,1);}else{if(tif.ioCheck(dfd)){_446.splice(i--,1);tif.resHandle(dfd);}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_446.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();}}}}}catch(e){console.debug(e);dfd.errback(new Error("_watchInFlightError!"));}}}if(!_446.length){clearInterval(_445);_445=null;return;}};dojo._ioCancelAll=function(){try{dojo.forEach(_446,function(i){i.dfd.cancel();});}catch(e){}};if(dojo.isIE){dojo.addOnUnload(dojo._ioCancelAll);}dojo._ioWatch=function(dfd,_44f,_450,_451){if(dfd.ioArgs.args.timeout){dfd.startTime=(new Date()).getTime();}_446.push({dfd:dfd,validCheck:_44f,ioCheck:_450,resHandle:_451});if(!_445){_445=setInterval(_447,50);}_447();};var _452="application/x-www-form-urlencoded";var _453=function(dfd){return dfd.ioArgs.xhr.readyState;};var _455=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _457=function(dfd){if(dojo._isDocumentOk(dfd.ioArgs.xhr)){dfd.callback(dfd);}else{dfd.errback(new Error("bad http response code:"+dfd.ioArgs.xhr.status));}};var _459=function(type,dfd){var _45c=dfd.ioArgs;var args=_45c.args;_45c.xhr.open(type,_45c.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{_45c.xhr.setRequestHeader(hdr,args.headers[hdr]);}}}_45c.xhr.setRequestHeader("Content-Type",(args.contentType||_452));try{_45c.xhr.send(_45c.query);}catch(e){dfd.cancel();}dojo._ioWatch(dfd,_453,_455,_457);return dfd;};dojo._ioAddQueryToUrl=function(_45f){if(_45f.query.length){_45f.url+=(_45f.url.indexOf("?")==-1?"?":"&")+_45f.query;_45f.query=null;}};dojo.xhrGet=function(args){var dfd=_442(args);dojo._ioAddQueryToUrl(dfd.ioArgs);return _459("GET",dfd);};dojo.xhrPost=function(args){return _459("POST",_442(args));};dojo.rawXhrPost=function(args){var dfd=_442(args);dfd.ioArgs.query=args.postData;return _459("POST",dfd);};dojo.xhrPut=function(args){return _459("PUT",_442(args));};dojo.rawXhrPut=function(args){var dfd=_442(args);var _468=dfd.ioArgs;if(args["putData"]){_468.query=args.putData;args.putData=null;}return _459("PUT",dfd);};dojo.xhrDelete=function(args){var dfd=_442(args);dojo._ioAddQueryToUrl(dfd.ioArgs);return _459("DELETE",dfd);};dojo.wrapForm=function(_46b){throw new Error("dojo.wrapForm not yet implemented");};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");dojo._Line=function(_46c,end){this.start=_46c;this.end=end;this.getValue=function(n){return ((this.end-this.start)*n)+this.start;};};dojo.declare("dojo._Animation",null,{constructor:function(args){dojo.mixin(this,args);if(dojo.isArray(this.curve)){this.curve=new dojo._Line(this.curve[0],this.curve[1]);}},duration:1000,repeat:0,rate:10,_percent:0,_startRepeatCount:0,fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;},play:function(_472,_473){if(_473){this._stopTimer();this._active=this._paused=false;this._percent=0;}else{if(this._active&&!this._paused){return this;}}this.fire("beforeBegin");var d=_472||this.delay;var _p=dojo.hitch(this,"_play",_473);if(d>0){setTimeout(_p,d);return this;}_p();return this;},_play:function(_476){this._startTime=new Date().valueOf();if(this._paused){this._startTime-=this.duration*this._percent;}this._endTime=this._startTime+this.duration;this._active=true;this._paused=false;var _477=this.curve.getValue(this._percent);if(!this._percent){if(!this._startRepeatCount){this._startRepeatCount=this.repeat;}this.fire("onBegin",[_477]);}this.fire("onPlay",[_477]);this._cycle();return this;},pause:function(){this._stopTimer();if(!this._active){return this;}this._paused=true;this.fire("onPause",[this.curve.getValue(this._percent)]);return this;},gotoPercent:function(_478,_479){this._stopTimer();this._active=this._paused=true;this._percent=_478*100;if(_479){this.play();}return this;},stop:function(_47a){if(!this._timer){return;}this._stopTimer();if(_47a){this._percent=1;}this.fire("onStop",[this.curve.getValue(this._percent)]);this._active=this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){if(this._active){var curr=new Date().valueOf();var step=(curr-this._startTime)/(this._endTime-this._startTime);if(step>=1){step=1;}this._percent=step;if(this.easing){step=this.easing(step);}this.fire("onAnimate",[this.curve.getValue(step)]);if(step<1){this._startTimer();}else{this._active=false;if(this.repeat>0){this.repeat--;this.play(null,true);}else{if(this.repeat==-1){this.play(null,true);}else{if(this._startRepeatCount){this.repeat=this._startRepeatCount;this._startRepeatCount=0;}}}this._percent=0;this.fire("onEnd");}}return this;}});(function(){var d=dojo;var ctr=0;var _47f=[];var _480={run:function(){}};var _481=null;dojo._Animation.prototype._startTimer=function(){if(!this._timer){this._timer=dojo.connect(_480,"run",this,"_cycle");ctr++;}if(!_481){_481=setInterval(dojo.hitch(_480,"run"),this.rate);}};dojo._Animation.prototype._stopTimer=function(){dojo.disconnect(this._timer);this._timer=null;ctr--;if(!ctr){clearInterval(_481);_481=null;}};var _482=(d.isIE)?function(node){var ns=node.style;if(!ns.zoom.length&&d.style(node,"zoom")=="normal"){ns.zoom="1";}if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _486=d.mixin({properties:{}},args);var _487=(_486.properties.opacity={});_487.start=!("start" in _486)?function(){return Number(d.style(_486.node,"opacity"));}:_486.start;_487.end=_486.end;var anim=d.animateProperty(_486);d.connect(anim,"beforeBegin",d.partial(_482,_486.node));return anim;};dojo.fadeIn=function(args){return d._fade(d.mixin({end:1},args));};dojo.fadeOut=function(args){return d._fade(d.mixin({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _48c=function(_48d){this._properties=_48d;for(var p in _48d){var prop=_48d[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}this.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p];var _494=prop.start;if(_494 instanceof d.Color){ret[p]=d.blendColors(_494,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_494)){ret[p]=((prop.end-_494)*r)+_494+(p!="opacity"?prop.units||"px":"");}}}return ret;};};dojo.animateProperty=function(args){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){var prop=(pm[p]=d.mixin({},this.properties[p]));if(d.isFunction(prop.start)){prop.start=prop.start();}if(d.isFunction(prop.end)){prop.end=prop.end();}var _49a=(p.toLowerCase().indexOf("color")>=0);function getStyle(node,p){var v=({height:node.offsetHeight,width:node.offsetWidth})[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?Number(v):parseFloat(v);};if(!("end" in prop)){prop.end=getStyle(this.node,p);}else{if(!("start" in prop)){prop.start=getStyle(this.node,p);}}if(_49a){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);}}this.curve=new _48c(pm);});d.connect(anim,"onAnimate",anim,function(_49e){for(var s in _49e){d.style(this.node,s,_49e[s]);}});return anim;};})();}