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={};}dojo.global=this;var _4={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",preventBackButtonFix:true,delayMozLoadingFix:false};for(var _5 in _4){if(typeof djConfig[_5]=="undefined"){djConfig[_5]=_4[_5];}}var _6=["Browser","Rhino","Spidermonkey","Mobile"];var t;while(t=_6.shift()){dojo["is"+t]=false;}})();dojo.locale=djConfig.locale;dojo.version={major:0,minor:9,patch:0,flag:"",revision:Number("$Rev: 10315 $".match(/[0-9]+/)[0]),toString:function(){with(dojo.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};dojo._getProp=function(_8,_9,_a){var _b=_a||dojo.global;for(var i=0,p;_b&&(p=_8[i]);i++){_b=(p in _b?_b[p]:(_9?_b[p]={}:undefined));}return _b;};dojo.setObject=function(_e,_f,_10){var _11=_e.split("."),p=_11.pop(),obj=dojo._getProp(_11,true,_10);return (obj&&p?(obj[p]=_f):undefined);};dojo.getObject=function(_14,_15,_16){return dojo._getProp(_14.split("."),_15,_16);};dojo.exists=function(_17,obj){return !!dojo.getObject(_17,false,obj);};dojo["eval"]=function(_19){return dojo.global.eval?dojo.global.eval(_19):eval(_19);};dojo.deprecated=function(_1a,_1b,_1c){var _1d="DEPRECATED: "+_1a;if(_1b){_1d+=" "+_1b;}if(_1c){_1d+=" -- will be removed in version: "+_1c;}console.debug(_1d);};dojo.experimental=function(_1e,_1f){var _20="EXPERIMENTAL: "+_1e+" -- APIs subject to change without notice.";if(_1f){_20+=" "+_1f;}console.debug(_20);};(function(){var _21={_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_22){var mp=this._modulePrefixes;return Boolean(mp[_22]&&mp[_22].value);},_getModulePrefix:function(_24){var mp=this._modulePrefixes;if(this._moduleHasPrefix(_24)){return mp[_24].value;}return _24;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false};for(var _26 in _21){dojo[_26]=_21[_26];}})();dojo._loadPath=function(_27,_28,cb){var uri=(((_27.charAt(0)=="/"||_27.match(/^\w+:/)))?"":this.baseUrl)+_27;if(djConfig.cacheBust&&dojo.isBrowser){uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");}try{return !_28?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_28,cb);}catch(e){console.debug(e);return false;}};dojo._loadUri=function(uri,cb){if(this._loadedUrls[uri]){return true;}var _2d=this._getText(uri,true);if(!_2d){return false;}this._loadedUrls[uri]=true;this._loadedUrls.push(uri);if(cb){_2d="("+_2d+")";}var _2e=dojo["eval"](_2d+"\r\n//@ sourceURL="+uri);if(cb){cb(_2e);}return true;};dojo._loadUriAndCheck=function(uri,_30,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[_30]);};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(dojo._postLoad&&dojo._inFlightCount==0&&this._loaders.length>0){dojo._callLoaded();}};dojo.unloaded=function(){var mll=this._unloaders;while(mll.length){(mll.pop())();}};dojo.addOnLoad=function(obj,_37){var d=dojo;if(arguments.length==1){d._loaders.push(obj);}else{if(arguments.length>1){d._loaders.push(function(){obj[_37]();});}}if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};dojo.addOnUnload=function(obj,_3a){var d=dojo;if(arguments.length==1){d._unloaders.push(obj);}else{if(arguments.length>1){d._unloaders.push(function(){obj[_3a]();});}}};dojo._modulesLoaded=function(){if(this._postLoad){return;}if(this._inFlightCount>0){console.debug("files still in flight!");return;}dojo._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(djConfig["useXDomain"]&&dojo.isOpera)){setTimeout("dojo.loaded();",0);}else{dojo.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._loadModule=function(_41,_42,_43){_43=this._global_omit_module_check||_43;var _44=this._loadedModules[_41];if(_44){return _44;}var _45=_41.split(".");var _46=this._getModuleSymbols(_41);var _47=((_46[0].charAt(0)!="/")&&!_46[0].match(/^\w+:/));var _48=_46[_46.length-1];var _49;if(_48=="*"){_41=_45.slice(0,-1).join(".");_46.pop();_49=_46.join("/")+"/"+(djConfig["packageFileName"]||"__package__")+".js";if(_47&&_49.charAt(0)=="/"){_49=_49.slice(1);}}else{_49=_46.join("/")+".js";_41=_45.join(".");}var _4a=(!_43)?_41:null;var ok=this._loadPath(_49,_4a);if((!ok)&&(!_43)){throw new Error("Could not load '"+_41+"'; last tried '"+_49+"'");}if((!_43)&&(!this["_isXDomain"])){_44=this._loadedModules[_41];if(!_44){throw new Error("symbol '"+_41+"' is not defined after loading '"+_49+"'");}}return _44;};dojo.require=dojo._loadModule;dojo.provide=function(_4c){var _4d=_4c+"";var _4e=_4d;var _4f=_4c.split(/\./);if(_4f[_4f.length-1]=="*"){_4f.pop();_4e=_4f.join(".");}var _50=dojo.getObject(_4e,true);this._loadedModules[_4d]=_50;this._loadedModules[_4e]=_50;return _50;};dojo.platformRequire=function(_51){var _52=_51["common"]||[];var _53=_52.concat(_51[dojo._name]||_51["default"]||[]);for(var x=0;x<_53.length;x++){var _55=_53[x];if(_55.constructor==Array){dojo._loadModule.apply(dojo,_55);}else{dojo._loadModule(_55);}}};dojo.requireIf=function(_56,_57){if(_56===true){var _58=[];for(var i=1;i<arguments.length;i++){_58.push(arguments[i]);}dojo.require.apply(dojo,_58);}};dojo.requireAfterIf=dojo.requireIf;dojo.registerModulePath=function(_5a,_5b){this._modulePrefixes[_5a]={name:_5a,value:_5b};};dojo.requireLocalization=function(_5c,_5d,_5e,_5f){dojo.require("dojo.i18n");dojo.i18n._requireLocalization.apply(dojo.hostenv,arguments);};(function(){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 _66=new dojo._Url(_a[i]+"");var _67=new dojo._Url(uri+"");if((_66.path=="")&&(!_66.scheme)&&(!_66.authority)&&(!_66.query)){if(_66.fragment!=n){_67.fragment=_66.fragment;}_66=_67;}else{if(!_66.scheme){_66.scheme=_67.scheme;if(!_66.authority){_66.authority=_67.authority;if(_66.path.charAt(0)!="/"){var _68=_67.path.substring(0,_67.path.lastIndexOf("/")+1)+_66.path;var _69=_68.split("/");for(var j=0;j<_69.length;j++){if(_69[j]=="."){if(j==_69.length-1){_69[j]="";}else{_69.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_69[0]=="")&&_69[j]==".."&&_69[j-1]!=".."){if(j==(_69.length-1)){_69.splice(j,1);_69[j-1]="";}else{_69.splice(j-1,2);j-=2;}}}}_66.path=_69.join("/");}}}}uri="";if(_66.scheme){uri+=_66.scheme+":";}if(_66.authority){uri+="//"+_66.authority;}uri+=_66.path;if(_66.query){uri+="?"+_66.query;}if(_66.fragment){uri+="#"+_66.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(_6c,url){var loc=dojo._getModuleSymbols(_6c).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _6f=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_6f==-1||_6f>loc.indexOf("/"))){loc=dojo.baseUrl+loc;}return new dojo._Url(loc,url);};if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _71=document.getElementsByTagName("script");var _72=/dojo(\.xd)?\.js([\?\.]|$)/i;for(var i=0;i<_71.length;i++){var src=_71[i].getAttribute("src");if(!src){continue;}var m=src.match(_72);if(m){if(!djConfig["baseUrl"]){djConfig["baseUrl"]=src.substring(0,m.index);}var cfg=_71[i].getAttribute("djConfig");if(cfg){var _77=eval("({ "+cfg+" })");for(var x in _77){djConfig[x]=_77[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 _7d=dua.indexOf("Gecko");d.isMozilla=d.isMoz=((_7d>=0)&&(!d.isKhtml))?tv:0;d.isFF=0;d.isIE=0;d.isGears=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;}d._gearsObject=function(){var _7e;var _7f;var _80=d.getObject("google.gears");if(_80){return _80;}if(typeof GearsFactory!="undefined"){_7e=new GearsFactory();}else{if(d.isIE){try{_7e=new ActiveXObject("Gears.Factory");}catch(e){}}else{if(navigator.mimeTypes["application/x-googlegears"]){_7e=document.createElement("object");_7e.setAttribute("type","application/x-googlegears");_7e.setAttribute("width",0);_7e.setAttribute("height",0);_7e.style.display="none";document.documentElement.appendChild(_7e);}}}if(!_7e){return null;}dojo.setObject("google.gears.factory",_7e);return dojo.getObject("google.gears");};var _81=d._gearsObject();if(_81){d.isGears=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 _83=null;var _84=null;if(!dojo.isIE||!djConfig.ieForceActiveXXhr){try{_83=new XMLHttpRequest();}catch(e){}}if(!_83){for(var i=0;i<3;++i){var _86=dojo._XMLHTTP_PROGIDS[i];try{_83=new ActiveXObject(_86);}catch(e){_84=e;}if(_83){dojo._XMLHTTP_PROGIDS=[_86];break;}}}if(!_83){throw new Error("XMLHTTP not available: "+_84);}return _83;};d._isDocumentOk=function(_87){var _88=_87.status||0;return ((_88>=200)&&(_88<300))||(_88==304)||(_88==1223)||(!_88&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _89=document.getElementsByTagName("base");var _8a=(_89&&_89.length>0);d._getText=function(uri,_8c){var _8d=this._xhrObj();if(!_8a&&dojo._Url){uri=(new dojo._Url(window.location,uri)).toString();}_8d.open("GET",uri,false);try{_8d.send(null);if(!d._isDocumentOk(_8d)){var err=Error("Unable to load "+uri+" status:"+_8d.status);err.status=_8d.status;err.responseText=_8d.responseText;throw err;}}catch(e){if(_8c){return null;}throw e;}return _8d.responseText;};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _90=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_90!="domcontentloaded"&&_90!="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 _92=function(_93,fp){var _95=_w[_93]||function(){};_w[_93]=function(){fp.apply(_w,arguments);_95.apply(_w,arguments);};};if(dojo.isIE){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){dojo._loadInit();}\">"+"</scr"+"ipt>");var _96=true;_92("onbeforeunload",function(){_w.setTimeout(function(){_96=false;},0);});_92("onunload",function(){if(_96){dojo.unloaded();}});try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}catch(e){}}else{_92("onbeforeunload",function(){dojo.unloaded();});}})();dojo._writeIncludes=function(){};dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_97,_98){dojo.global=_97;dojo.doc=_98;};dojo._fireCallback=function(_99,_9a,_9b){if((_9a)&&((typeof _99=="string")||(_99 instanceof String))){_99=_9a[_99];}return (_9a?_99.apply(_9a,_9b||[]):_99());};dojo.withGlobal=function(_9c,_9d,_9e,_9f){var _a0;var _a1=dojo.global;var _a2=dojo.doc;try{dojo.setContext(_9c,_9c.document);_a0=dojo._fireCallback(_9d,_9e,_9f);}finally{dojo.setContext(_a1,_a2);}return _a0;};dojo.withDoc=function(_a3,_a4,_a5,_a6){var _a7;var _a8=dojo.doc;try{dojo.doc=_a3;_a7=dojo._fireCallback(_a4,_a5,_a6);}finally{dojo.doc=_a8;}return _a7;};if(djConfig["modulePaths"]){for(var param in djConfig["modulePaths"]){dojo.registerModulePath(param,djConfig["modulePaths"][param]);}}}if(djConfig.isDebug){if(!console.firebug){dojo.require("dojo._firebug.firebug");}}}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"||((typeof dojo["NodeList"]!="undefined")&&(it instanceof dojo.NodeList)));};if(dojo.isBrowser&&dojo.isSafari){dojo.isFunction=function(it){if((typeof (it)=="function")&&(it=="[object NodeList]")){return false;}return (typeof it=="function"||it instanceof Function);};}else{dojo.isFunction=function(it){return (typeof it=="function"||it instanceof Function);};}dojo.isObject=function(it){if(typeof it=="undefined"){return false;}return (it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));};dojo.isArrayLike=function(it){var d=dojo;if((!it)||(typeof it=="undefined")){return false;}if(d.isString(it)){return false;}if(d.isFunction(it)){return false;}if(d.isArray(it)){return true;}if((it.tagName)&&(it.tagName.toLowerCase()=="form")){return false;}if(isFinite(it.length)){return true;}return false;};dojo.isAlien=function(it){if(!it){return false;}return !dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo._mixin=function(obj,_b2){var _b3={};for(var x in _b2){if((typeof _b3[x]=="undefined")||(_b3[x]!=_b2[x])){obj[x]=_b2[x];}}if(dojo.isIE){var p=_b2.toString;if((typeof (p)=="function")&&(p!=obj.toString)&&(p!=_b3.toString)&&(p!="\nfunction toString() {\n    [native code]\n}\n")){obj.toString=_b2.toString;}}return obj;};dojo.mixin=function(obj,_b7){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(obj,arguments[i]);}return obj;};dojo.extend=function(_ba,_bb){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(_ba.prototype,arguments[i]);}return _ba;};dojo._hitchArgs=function(_be,_bf){var pre=dojo._toArray(arguments,2);var _c1=dojo.isString(_bf);return function(){var _c2=dojo._toArray(arguments);var f=(_c1?(_be||dojo.global)[_bf]:_bf);return (f)&&(f.apply(_be||this,pre.concat(_c2)));};};dojo.hitch=function(_c4,_c5){if(arguments.length>2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_c5){_c5=_c4;_c4=null;}if(dojo.isString(_c5)){_c4=_c4||dojo.global;if(!_c4[_c5]){throw (["dojo.hitch: scope[\"",_c5,"\"] is null (scope=\"",_c4,"\")"].join(""));}return function(){return _c4[_c5].apply(_c4,arguments||[]);};}else{return (!_c4?_c5:function(){return _c5.apply(_c4,arguments||[]);});}};dojo._delegate=function(obj,_c7){function TMP(){};TMP.prototype=obj;var tmp=new TMP();if(_c7){dojo.mixin(tmp,_c7);}return tmp;};dojo.partial=function(_ca){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));};dojo._toArray=function(obj,_cd){var arr=[];for(var x=_cd||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(_d4,_d5,_d6){if(dojo.isFunction(_d6)||(arguments.length>3)){dojo.deprecated("dojo.declare: for class '"+_d4+"' pass initializer function as 'constructor' property instead of as a separate argument.","","1.0");var c=_d6;_d6=arguments[3]||{};_d6.constructor=c;}var dd=arguments.callee,_d9=null;if(dojo.isArray(_d5)){_d9=_d5;_d5=_d9.shift();}if(_d9){for(var i=0,m;i<_d9.length;i++){m=_d9[i];if(!m){throw ("Mixin #"+i+" to declaration of "+_d4+" is null. It's likely a required module is not loaded.");}_d5=dd._delegate(_d5,m);}}var _dc=(_d6||0).constructor,_dd=dd._delegate(_d5),fn;for(var i in _d6){if(dojo.isFunction(fn=_d6[i])&&(!0[i])){fn.nom=i;}}dojo.extend(_dd,{declaredClass:_d4,_constructor:_dc,preamble:null},_d6||0);_dd.prototype.constructor=_dd;return dojo.setObject(_d4,_dd);};dojo.mixin(dojo.declare,{_delegate:function(_df,_e0){var bp=(_df||0).prototype,mp=(_e0||0).prototype;var _e3=dojo.declare._makeCtor();dojo.mixin(_e3,{superclass:bp,mixin:mp});if(_df){_e3.prototype=dojo._delegate(bp);}dojo.extend(_e3,dojo.declare._core,mp||0,{_constructor:null});_e3.prototype.constructor=_e3;_e3.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;dojo.setObject(_e3.prototype.declaredClass,_e3);return _e3;},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(_e4){var c=_e4.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_e4,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,_e4);}},_findMixin:function(_ed){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==_ed||(m instanceof _ed.constructor)){return p;}if(m&&(m=m._findMixin(_ed))){return m;}c=p&&p.constructor;}},_findMethod:function(_f1,_f2,_f3,has){var p=_f3,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(_f1,_f2,m,has))){return m;}if((f=p[_f1])&&(has==(f==_f2))){return p;}p=c.superclass;}while(p);return !has&&(p=this._findMixin(_f3))&&this._findMethod(_f1,_f2,p,has);},inherited:function(_f9,_fa,_fb){var a=arguments;if(!dojo.isString(a[0])){_fb=_fa;_fa=_f9;_f9=_fa.callee.nom;}var c=_fa.callee,p=this.constructor.prototype,a=_fb||_fa,fn,mp;if(this[_f9]!=c||p[_f9]==c){mp=this._findMethod(_f9,c,p,true);if(!mp){throw (this.declaredClass+": name argument (\""+_f9+"\") to inherited must match callee (declare.js)");}p=this._findMethod(_f9,c,mp,false);}fn=p&&p[_f9];if(!fn){console.debug(mp.declaredClass+": no inherited \""+_f9+"\" 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(_107,_108,_109){_107=_107||dojo.global;var f=_107[_108];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_107[_108]=d;}return f._listeners.push(_109);},remove:function(_10c,_10d,_10e){var f=(_10c||dojo.global)[_10d];if(f&&f._listeners&&_10e--){delete f._listeners[_10e];}}};dojo.connect=function(obj,_111,_112,_113,_114){var a=arguments,args=[],i=0;args.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}return dojo._connect.apply(this,args);};dojo._connect=function(obj,_11b,_11c,_11d){var l=dojo._listener,h=l.add(obj,_11b,dojo.hitch(_11c,_11d));return [obj,_11b,h,l];};dojo.disconnect=function(_120){if(_120&&_120[0]!==undefined){dojo._disconnect.apply(this,_120);delete _120[0];}};dojo._disconnect=function(obj,_122,_123,_124){_124.remove(obj,_122,_123);};dojo._topics={};dojo.subscribe=function(_125,_126,_127){return [_125,dojo._listener.add(dojo._topics,_125,dojo.hitch(_126,_127))];};dojo.unsubscribe=function(_128){if(_128){dojo._listener.remove(dojo._topics,_128[0],_128[1]);}};dojo.publish=function(_129,args){var f=dojo._topics[_129];(f)&&(f.apply(this,args||[]));};dojo.connectPublisher=function(_12c,obj,_12e){var pf=function(){dojo.publish(_12c,arguments);};return (_12e)?dojo.connect(obj,_12e,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(_130){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_130;this.silentlyCancelled=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){if(this.fired==-1){if(this.canceller){this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){var err=new Error("Deferred Cancelled");err.dojoType="cancel";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 _138=dojo.hitch(cb,cbfn);if(arguments.length>2){_138=dojo.partial(_138,arguments,2);}return this.addCallbacks(_138,_138);},addCallback:function(cb,cbfn){var _13b=dojo.hitch(cb,cbfn);if(arguments.length>2){_13b=dojo.partial(_13b,arguments,2);}return this.addCallbacks(_13b,null);},addErrback:function(cb,cbfn){var _13e=dojo.hitch(cb,cbfn);if(arguments.length>2){_13e=dojo.partial(_13e,arguments,2);}return this.addCallbacks(null,_13e);},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0){this._fire();}return this;},_fire:function(){var _141=this.chain;var _142=this.fired;var res=this.results[_142];var self=this;var cb=null;while((_141.length>0)&&(this.paused==0)){var f=_141.shift()[_142];if(!f){continue;}try{res=f(res);_142=((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);_142=1;res=err;}}this.fired=_142;this.results[_142]=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,_14b,_14c){_14c=_14c||"";var _14d=(_14b?_14c+dojo.toJsonIndentStr:"");var _14e=(_14b?"\n":"");var _14f=typeof (it);if(_14f=="undefined"){return "undefined";}else{if((_14f=="number")||(_14f=="boolean")){return it+"";}else{if(it===null){return "null";}}}if(_14f=="string"){return dojo._escapeString(it);}var _150=arguments.callee;var _151;if(typeof it.__json__=="function"){_151=it.__json__();if(it!==_151){return _150(_151,_14b,_14d);}}if(typeof it.json=="function"){_151=it.json();if(it!==_151){return _150(_151,_14b,_14d);}}if(dojo.isArray(it)){var res=[];for(var i=0;i<it.length;i++){var val=_150(it[i],_14b,_14d);if(typeof (val)!="string"){val="undefined";}res.push(_14e+_14d+val);}return "["+res.join(", ")+_14e+_14c+"]";}if(_14f=="function"){return null;}var _155=[];for(var key in it){var _157;if(typeof (key)=="number"){_157="\""+key+"\"";}else{if(typeof (key)=="string"){_157=dojo._escapeString(key);}else{continue;}}val=_150(it[key],_14b,_14d);if(typeof (val)!="string"){continue;}_155.push(_14e+_14d+_157+": "+val);}return "{"+_155.join(", ")+_14e+_14c+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _158=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(_15c,_15d,_15e,_15f){var i=0,step=1,end=_15c.length;if(_15f){i=end-1;step=end=-1;}for(i=_15e||i;i!=end;i+=step){if(_15c[i]==_15d){return i;}}return -1;},lastIndexOf:function(_163,_164,_165){return dojo.indexOf(_163,_164,_165,true);},forEach:function(arr,_167,obj){if(!arr||!arr.length){return;}var _p=_158(arr,obj,_167);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(_16c,arr,_16e,obj){var _p=_158(arr,obj,_16e);arr=_p[0];for(var i=0,l=arr.length;i<l;i++){var _173=!!_p[2].call(_p[1],arr[i],i,arr);if(_16c^_173){return _173;}}return _16c;},every:function(arr,_175,_176){return this._everyOrSome(true,arr,_175,_176);},some:function(arr,_178,_179){return this._everyOrSome(false,arr,_178,_179);},map:function(arr,func,obj){var _p=_158(arr,obj,func);arr=_p[0];var _17e=((arguments[3])?(new arguments[3]()):[]);for(var i=0;i<arr.length;++i){_17e.push(_p[2].call(_p[1],arr[i],i,arr));}return _17e;},filter:function(arr,_181,obj){var _p=_158(arr,obj,_181);arr=_p[0];var _184=[];for(var i=0;i<arr.length;i++){if(_p[2].call(_p[1],arr[i],i,arr)){_184.push(arr[i]);}}return _184;}});})();}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");dojo.Color=function(_186){if(_186){this.setColor(_186);}};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(_18c){var d=dojo;if(d.isString(_18c)){d.colorFromString(_18c,this);}else{if(d.isArray(_18c)){d.colorFromArray(_18c,this);}else{this._set(_18c.r,_18c.g,_18c.b,_18c.a);if(!(_18c 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(_193){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_193?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_196,end,_198,obj){var d=dojo,t=obj||new dojo.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_196[x]+(end[x]-_196[x])*_198;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_19d,obj){var m=_19d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_1a0,obj){var d=dojo,t=obj||new d.Color(),bits=(_1a0.length==4)?4:8,mask=(1<<bits)-1;_1a0=Number("0x"+_1a0.substr(1));if(isNaN(_1a0)){return null;}d.forEach(["b","g","r"],function(x){var c=_1a0&mask;_1a0>>=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");}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,_1b0,fp){if(!node){return;}_1b0=del._normalizeEventName(_1b0);fp=del._fixCallback(_1b0,fp);node.addEventListener(_1b0,fp,false);return fp;},remove:function(node,_1b3,_1b4){(node)&&(node.removeEventListener(del._normalizeEventName(_1b3),_1b4,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,_1ba){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,_1bd){return del._fixEvent(evt,_1bd);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _1bf=dojo._listener;dojo._connect=function(obj,_1c1,_1c2,_1c3,_1c4){var _1c5=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=!_1c5?0:(!_1c4?1:2),l=[dojo._listener,del,_1bf][lid];var h=l.add(obj,_1c1,dojo.hitch(_1c2,_1c3));return [obj,_1c1,h,lid];};dojo._disconnect=function(obj,_1ca,_1cb,_1cc){([dojo._listener,del,_1bf][_1cc]).remove(obj,_1ca,_1cb);};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){_1bf=iel=dojo._ie_listener={handlers:[],add:function(_1d0,_1d1,_1d2){_1d0=_1d0||dojo.global;var f=_1d0[_1d1];if(!f||!f._listeners){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d._listeners=[];f=_1d0[_1d1]=d;}return f._listeners.push(ieh.push(_1d2)-1);},remove:function(_1d6,_1d7,_1d8){var f=(_1d6||dojo.global)[_1d7],l=f&&f._listeners;if(f&&l&&_1d8--){delete ieh[l[_1d8]];delete l[_1d8];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_1dc,fp){if(!node){return;}_1dc=del._normalizeEventName(_1dc);if(_1dc=="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,_1dc,del._fixCallback(fp));},remove:function(node,_1e0,_1e1){iel.remove(node,del._normalizeEventName(_1e0),_1e1);},_normalizeEventName:function(_1e2){return (_1e2.slice(0,2)!="on"?"on"+_1e2:_1e2);},_nop:function(){},_fixEvent:function(evt,_1e4){if(!evt){var w=(_1e4)&&((_1e4.ownerDocument||_1e4.document||_1e4).parentWindow)||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_1e4||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _1e8=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _1e9=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1e8.scrollLeft||0)-_1e9.x;evt.pageY=evt.clientY+(_1e8.scrollTop||0)-_1e9.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 _1ef=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_1ef||evt.ctrlKey){var c=(_1ef?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,_1f4){var faux=dojo.mixin({},evt,_1f4);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_1f7){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,_1fa){switch(evt.type){case "keypress":var c=evt.charCode,s=evt.shiftKey,k=evt.keyCode;k=k||_1fe[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,_1fe={"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 _212=null;dojo._destroyElement=function(node){node=dojo.byId(node);try{if(!_212){_212=document.createElement("div");}_212.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_212.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_215){try{node=dojo.byId(node);_215=dojo.byId(_215);while(node){if(node===_215){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_217){node=dojo.byId(node);if(dojo.isMozilla){node.style.MozUserSelect=(_217)?"normal":"none";}else{if(dojo.isKhtml){node.style.KhtmlUserSelect=(_217)?"auto":"none";}else{if(dojo.isIE){node.unselectable=(_217)?"":"on";dojo.query("*",node).forEach(function(_218){_218.unselectable=(_217)?"":"on";});}}}};var _219=function(node,ref){ref.parentNode.insertBefore(node,ref);return true;};var _21c=function(node,ref){var pn=ref.parentNode;if(ref==pn.lastChild){pn.appendChild(node);}else{return _219(node,ref.nextSibling);}return true;};dojo.place=function(node,_221,_222){if((!node)||(!_221)||(typeof _222=="undefined")){return false;}node=dojo.byId(node);_221=dojo.byId(_221);if(typeof _222=="number"){var cn=_221.childNodes;if(((_222==0)&&(cn.length==0))||(cn.length==_222)){_221.appendChild(node);return true;}if(_222==0){return _219(node,_221.firstChild);}return _21c(node,cn[_222-1]);}switch(_222.toLowerCase()){case "before":return _219(node,_221);case "after":return _21c(node,_221);case "first":if(_221.firstChild){return _219(node,_221.firstChild);}else{_221.appendChild(node);return true;}break;default:_221.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(_22b,_22c){return parseFloat(_22c)||0;};}else{dojo._toPixelValue=function(_22d,_22e){if(!_22e){return 0;}if(_22e=="medium"){return 4;}if(_22e.slice&&(_22e.slice(-2)=="px")){return parseFloat(_22e);}with(_22d){var _22f=style.left;var _230=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_22e;_22e=style.pixelLeft;}catch(e){_22e=0;}style.left=_22f;runtimeStyle.left=_230;}return _22e;};}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,_234){if(_234==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="+(_234*100)+")";node.style.filter=o;}if(node.nodeName.toLowerCase()=="tr"){dojo.query("> td",node).forEach(function(i){i.style.filter=o;});}return _234;}:function(node,_239){return node.style.opacity=_239;});var _23a={width:true,height:true,left:true,top:true};var _23b=function(node,type,_23e){type=type.toLowerCase();if(_23a[type]===true){return dojo._toPixelValue(node,_23e);}else{if(_23a[type]===false){return _23e;}else{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)){_23a[type]=true;return dojo._toPixelValue(node,_23e);}else{_23a[type]=false;return _23e;}}}};dojo.style=function(node,_240,_241){var n=dojo.byId(node),args=arguments.length,op=(_240=="opacity");if(args==3){return op?dojo._setOpacity(n,_241):n.style[_240]=_241;}if(args==2&&op){return dojo._getOpacity(n);}var s=dojo.getComputedStyle(n);return (args==1)?s:_23b(n,_240,s[_240]);};dojo._getPadExtents=function(n,_247){var s=_247||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,_24d){var ne="none",px=dojo._toPixelValue,s=_24d||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,_254){var s=_254||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,_259){var s=_259||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,_261){var s=_261||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,_26c){var s=_26c||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,_273){var s=_273||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,_280,_281,_282){var bb=dojo._usesBorderBox(node);if(bb){var pb=dojo._getPadBorderExtents(node,_282);if(_280>=0){_280+=pb.w;}if(_281>=0){_281+=pb.h;}}dojo._setBox(node,NaN,NaN,_280,_281);};dojo._setMarginBox=function(node,_286,_287,_288,_289,_28a){var s=_28a||dojo.getComputedStyle(node);var bb=dojo._usesBorderBox(node),pb=bb?_28e:dojo._getPadBorderExtents(node,s),mb=dojo._getMarginExtents(node,s);if(_288>=0){_288=Math.max(_288-pb.w-mb.w,0);}if(_289>=0){_289=Math.max(_289-pb.h-mb.h,0);}dojo._setBox(node,_286,_287,_288,_289);};var _28e={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 _29a=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_29e=0,_b=dojo.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_29e+=val-0;if(node==_b){break;}}node=node.parentNode;}return _29e;};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 typeof dojo._bodyLtr=="undefined"?(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(_2a4){if(dojo.isIE&&!dojo._isBodyLtr()){var de=dojo.doc.documentElement;return _2a4+de.clientWidth-de.scrollWidth;}return _2a4;};dojo._abs=function(node,_2a7){var _2a8=node.ownerDocument;var ret={x:0,y:0};var _2aa=false;var db=dojo.body();if(dojo.isIE){var _2ac=node.getBoundingClientRect();var _2ad=dojo._getIeDocumentElementOffset();ret.x=_2ac.left-_2ad.x;ret.y=_2ac.top-_2ad.y;}else{if(_2a8["getBoxObjectFor"]){var bo=_2a8.getBoxObjectFor(node);ret.x=bo.x-_29a(node,"scrollLeft");ret.y=bo.y-_29a(node,"scrollTop");}else{if(node["offsetParent"]){_2aa=true;var _2af;if(dojo.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){_2af=db;}else{_2af=db.parentNode;}if(node.parentNode!=db){var nd=node;if(dojo.isOpera){nd=db;}ret.x-=_29a(nd,"scrollLeft");ret.y-=_29a(nd,"scrollTop");}var _2b1=node;do{var n=_2b1["offsetLeft"];if(!dojo.isOpera||n>0){ret.x+=isNaN(n)?0:n;}var m=_2b1["offsetTop"];ret.y+=isNaN(m)?0:m;_2b1=_2b1.offsetParent;}while((_2b1!=_2af)&&_2b1);}else{if(node["x"]&&node["y"]){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(_2aa||_2a7){var _2b4=dojo._docScroll();var m=_2aa?(!_2a7?-1:0):1;ret.y+=m*_2b4.y;ret.x+=m*_2b4.x;}return ret;};dojo.coords=function(node,_2b6){var n=dojo.byId(node),s=gcs(n),mb=dojo._getMarginBox(n,s);var abs=dojo._abs(n,_2b6);mb.x=abs.x;mb.y=abs.y;return mb;};})();dojo.hasClass=function(node,_2bc){return ((" "+node.className+" ").indexOf(" "+_2bc+" ")>=0);};dojo.addClass=function(node,_2be){var cls=node.className;if((" "+cls+" ").indexOf(" "+_2be+" ")<0){node.className=cls+(cls?" ":"")+_2be;}};dojo.removeClass=function(node,_2c1){var t=dojo.trim((" "+node.className+" ").replace(" "+_2c1+" "," "));if(node.className!=t){node.className=t;}};dojo.toggleClass=function(node,_2c4,_2c5){if(typeof _2c5=="undefined"){_2c5=!dojo.hasClass(node,_2c4);}dojo[_2c5?"addClass":"removeClass"](node,_2c4);};}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;dojo.NodeList=function(){var args=arguments;if((args.length==1)&&(typeof args[0]=="number")){this.length=parseInt(args[0]);}else{if(args.length){d.forEach(args,function(i){this.push(i);},this);}}};dojo.NodeList.prototype=new Array;if(d.isIE){var _2c9=function(_2ca){return ("var a2 = parent."+_2ca+"; "+"var ap = Array.prototype; "+"var a2p = a2.prototype; "+"for(var x in a2p){ ap[x] = a2p[x]; } "+"parent."+_2ca+" = Array; ");};var scs=_2c9("dojo.NodeList");var _2cc=window.createPopup();_2cc.document.write("<script>"+scs+"</script>");_2cc.show(1,1,1,1);}dojo.extend(dojo.NodeList,{indexOf:function(_2cd,_2ce){return d.indexOf(this,_2cd,_2ce);},lastIndexOf:function(_2cf,_2d0){var aa=d._toArray(arguments);aa.unshift(this);return d.lastIndexOf.apply(d,aa);},every:function(_2d2,_2d3){return d.every(this,_2d2,_2d3);},some:function(_2d4,_2d5){return d.some(this,_2d4,_2d5);},forEach:function(_2d6,_2d7){d.forEach(this,_2d6,_2d7);return this;},map:function(func,obj){return d.map(this,func,obj,d.NodeList);},coords:function(){return d.map(this,d.coords);},style:function(_2da,_2db){var aa=d._toArray(arguments);aa.unshift(this[0]);var s=d.style.apply(d,aa);return (arguments.length>1)?this:s;},styles:function(_2de,_2df){var aa=d._toArray(arguments);aa.unshift(null);var s=this.map(function(i){aa[0]=i;return d.style.apply(d,aa);});return (arguments.length>1)?this:s;},addClass:function(_2e3){return this.forEach(function(i){dojo.addClass(i,_2e3);});},removeClass:function(_2e5){return this.forEach(function(i){dojo.removeClass(i,_2e5);});},place:function(_2e7,_2e8){var item=d.query(_2e7)[0];_2e8=_2e8||"last";for(var x=0;x<this.length;x++){d.place(this[x],item,_2e8);}return this;},connect:function(_2eb,_2ec,_2ed){this.forEach(function(item){d.connect(item,_2eb,_2ec,_2ed);});return this;},orphan:function(_2ef){var _2f0=(_2ef)?d._filterQueryResult(this,_2ef):this;_2f0.forEach(function(item){if(item["parentNode"]){item.parentNode.removeChild(item);}});return _2f0;},adopt:function(_2f2,_2f3){var item=this[0];return d.query(_2f2).forEach(function(ai){d.place(ai,item,(_2f3||"last"));});},query:function(_2f6){_2f6=_2f6||"";var ret=new d.NodeList();this.forEach(function(item){d.query(_2f6,item).forEach(function(_2f9){if(typeof _2f9!="undefined"){ret.push(_2f9);}});});return ret;},filter:function(_2fa){var _2fb=this;var _a=arguments;var r=new d.NodeList();var rp=function(t){if(typeof t!="undefined"){r.push(t);}};if(d.isString(_2fa)){_2fb=d._filterQueryResult(this,_a[0]);if(_a.length==1){return _2fb;}d.forEach(d.filter(_2fb,_a[1],_a[2]),rp);return r;}d.forEach(d.filter(_2fb,_a[0],_a[1]),rp);return r;},addContent:function(_300,_301){var ta=d.doc.createElement("span");if(d.isString(_300)){ta.innerHTML=_300;}else{ta.appendChild(_300);}var ct=((_301=="first")||(_301=="after"))?"lastChild":"firstChild";this.forEach(function(item){var tn=ta.cloneNode(true);while(tn[ct]){d.place(tn[ct],item,_301);}});return this;},_anim:function(_306,args){var _308=[];args=args||{};this.forEach(function(item){var _30a={node:item};d.mixin(_30a,args);_308.push(d[_306](_30a));});return d.fx.combine(_308);},fadeIn:function(args){return this._anim("fadeIn",args);},fadeOut:function(args){return this._anim("fadeOut",args);},animateProperty:function(args){return this._anim("animateProperty",args);}});dojo.forEach(["mouseover","click","mouseout","mousemove","blur","mousedown","mouseup","mousemove","keydown","keyup","keypress"],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 _313=function(q){return [q.indexOf("#"),q.indexOf("."),q.indexOf("["),q.indexOf(":")];};var _315=function(_316,_317){var ql=_316.length;var i=_313(_316);var end=ql;for(var x=_317;x<i.length;x++){if(i[x]>=0){if(i[x]<end){end=i[x];}}}return (end<0)?ql:end;};var _31c=function(_31d){var i=_313(_31d);if(i[0]!=-1){return _31d.substring(i[0]+1,_315(_31d,1));}else{return "";}};var _31f=function(_320){var _321;var i=_313(_320);if((i[0]==0)||(i[1]==0)){_321=0;}else{_321=_315(_320,0);}return ((_321>0)?_320.substr(0,_321).toLowerCase():"*");};var _323=function(arr){var ret=-1;for(var x=0;x<arr.length;x++){var ta=arr[x];if(ta>=0){if((ta>ret)||(ret==-1)){ret=ta;}}}return ret;};var _328=function(_329){var i=_313(_329);if(-1==i[1]){return "";}var di=i[1]+1;var _32c=_323(i.slice(2));if(di<_32c){return _329.substring(di,_32c);}else{if(-1==_32c){return _329.substr(di);}else{return "";}}};var _32d=[{key:"|=",match:function(attr,_32f){return "[contains(concat(' ',@"+attr+",' '), ' "+_32f+"-')]";}},{key:"~=",match:function(attr,_331){return "[contains(concat(' ',@"+attr+",' '), ' "+_331+" ')]";}},{key:"^=",match:function(attr,_333){return "[starts-with(@"+attr+", '"+_333+"')]";}},{key:"*=",match:function(attr,_335){return "[contains(@"+attr+", '"+_335+"')]";}},{key:"$=",match:function(attr,_337){return "[substring(@"+attr+", string-length(@"+attr+")-"+(_337.length-1)+")='"+_337+"']";}},{key:"!=",match:function(attr,_339){return "[not(@"+attr+"='"+_339+"')]";}},{key:"=",match:function(attr,_33b){return "[@"+attr+"='"+_33b+"']";}}];var _33c=function(_33d,_33e,_33f,_340){var _341;var i=_313(_33e);if(i[2]>=0){var _343=_33e.indexOf("]",i[2]);var _344=_33e.substring(i[2]+1,_343);while(_344&&_344.length){if(_344.charAt(0)=="@"){_344=_344.slice(1);}_341=null;for(var x=0;x<_33d.length;x++){var ta=_33d[x];var tci=_344.indexOf(ta.key);if(tci>=0){var attr=_344.substring(0,tci);var _349=_344.substring(tci+ta.key.length);if((_349.charAt(0)=="\"")||(_349.charAt(0)=="'")){_349=_349.substring(1,_349.length-1);}_341=ta.match(d.trim(attr),d.trim(_349));break;}}if((!_341)&&(_344.length)){_341=_33f(_344);}if(_341){_340(_341);}_344=null;var _34a=_33e.indexOf("[",_343);if(0<=_34a){_343=_33e.indexOf("]",_34a);if(0<=_343){_344=_33e.substring(_34a+1,_343);}}}}};var _34b=function(_34c){var _34d=".";var _34e=_34c.split(" ");while(_34e.length){var tqp=_34e.shift();var _350;if(tqp==">"){_350="/";tqp=_34e.shift();}else{_350="//";}var _351=_31f(tqp);_34d+=_350+_351;var id=_31c(tqp);if(id.length){_34d+="[@id='"+id+"'][1]";}var cn=_328(tqp);if(cn.length){var _354=" ";if(cn.charAt(cn.length-1)=="*"){_354="";cn=cn.substr(0,cn.length-1);}_34d+="[contains(concat(' ',@class,' '), ' "+cn+_354+"')]";}_33c(_32d,tqp,function(_355){return "[@"+_355+"]";},function(_356){_34d+=_356;});}return _34d;};var _357={};var _358=function(path){if(_357[path]){return _357[path];}var doc=d.doc;var _35b=_34b(path);var tf=function(_35d){var ret=[];var _35f;try{_35f=doc.evaluate(_35b,_35d,null,XPathResult.ANY_TYPE,null);}catch(e){console.debug("failure in exprssion:",_35b,"under:",_35d);console.debug(e);}var _360=_35f.iterateNext();while(_360){ret.push(_360);_360=_35f.iterateNext();}return ret;};return _357[path]=tf;};var _361={};var _362={};var _363=function(_364,_365){if(!_364){return _365;}if(!_365){return _364;}return function(){return _364.apply(window,arguments)&&_365.apply(window,arguments);};};var _366=function(_367,_368,_369,idx){var nidx=idx+1;var _36c=(_368.length==nidx);var tqp=_368[idx];if(tqp==">"){var ecn=_367.childNodes;if(!ecn.length){return;}nidx++;_36c=(_368.length==nidx);var tf=_370(_368[idx+1]);for(var x=0,te;x<ecn.length,te=ecn[x];x++){if(tf(te)){if(_36c){_369.push(te);}else{_366(te,_368,_369,nidx);}}}}var _373=_374(tqp)(_367);if(_36c){while(_373.length){_369.push(_373.shift());}}else{while(_373.length){_366(_373.shift(),_368,_369,nidx);}}};var _375=function(_376,_377){var ret=[];var x=_376.length-1,te;while(te=_376[x--]){_366(te,_377,ret,0);}return ret;};var _370=function(_37b){if(_361[_37b]){return _361[_37b];}var ff=null;var _37d=_31f(_37b);if(_37d!="*"){ff=_363(ff,function(elem){return ((elem.nodeType==1)&&(_37d==elem.tagName.toLowerCase()));});}var _37f=_31c(_37b);if(_37f.length){ff=_363(ff,function(elem){return ((elem.nodeType==1)&&(elem.id==_37f));});}if(Math.max.apply(this,_313(_37b).slice(1))>=0){ff=_363(ff,_381(_37b));}return _361[_37b]=ff;};var _382=function(node){var pn=node.parentNode;var pnc=pn.childNodes;var nidx=-1;var _387=pn.firstChild;if(!_387){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(_387===node){nidx=idx;}if(_387.nodeType==1){_387["__cachedIndex"]=idx;idx++;}_387=_387.nextSibling;}while(_387);}else{nidx=ci;}return nidx;};var _38b=0;var _38c=function(elem,attr){var _38f="";if(attr=="class"){return elem.className||_38f;}if(attr=="for"){return elem.htmlFor||_38f;}return elem.getAttribute(attr,2)||_38f;};var _390=[{key:"|=",match:function(attr,_392){var _393=" "+_392+"-";return function(elem){var ea=" "+(elem.getAttribute(attr,2)||"");return ((ea==_392)||(ea.indexOf(_393)==0));};}},{key:"^=",match:function(attr,_397){return function(elem){return (_38c(elem,attr).indexOf(_397)==0);};}},{key:"*=",match:function(attr,_39a){return function(elem){return (_38c(elem,attr).indexOf(_39a)>=0);};}},{key:"~=",match:function(attr,_39d){var tval=" "+_39d+" ";return function(elem){var ea=" "+_38c(elem,attr)+" ";return (ea.indexOf(tval)>=0);};}},{key:"$=",match:function(attr,_3a2){var tval=" "+_3a2;return function(elem){var ea=" "+_38c(elem,attr);return (ea.lastIndexOf(_3a2)==(ea.length-_3a2.length));};}},{key:"!=",match:function(attr,_3a7){return function(elem){return (_38c(elem,attr)!=_3a7);};}},{key:"=",match:function(attr,_3aa){return function(elem){return (_38c(elem,attr)==_3aa);};}}];var _3ac=[{key:"first-child",match:function(name,_3ae){return function(elem){if(elem.nodeType!=1){return false;}var fc=elem.previousSibling;while(fc&&(fc.nodeType!=1)){fc=fc.previousSibling;}return (!fc);};}},{key:"last-child",match:function(name,_3b2){return function(elem){if(elem.nodeType!=1){return false;}var nc=elem.nextSibling;while(nc&&(nc.nodeType!=1)){nc=nc.nextSibling;}return (!nc);};}},{key:"empty",match:function(name,_3b6){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;};}},{key:"contains",match:function(name,_3bd){return function(elem){return (elem.innerHTML.indexOf(_3bd)>=0);};}},{key:"not",match:function(name,_3c0){var ntf=_370(_3c0);return function(elem){return (!ntf(elem));};}},{key:"nth-child",match:function(name,_3c4){var pi=parseInt;if(_3c4=="odd"){return function(elem){return (((_382(elem))%2)==1);};}else{if((_3c4=="2n")||(_3c4=="even")){return function(elem){return ((_382(elem)%2)==0);};}else{if(_3c4.indexOf("0n+")==0){var _3c8=pi(_3c4.substr(3));return function(elem){return (elem.parentNode.childNodes[_3c8-1]===elem);};}else{if((_3c4.indexOf("n+")>0)&&(_3c4.length>3)){var _3ca=_3c4.split("n+",2);var pred=pi(_3ca[0]);var idx=pi(_3ca[1]);return function(elem){return ((_382(elem)%pred)==idx);};}else{if(_3c4.indexOf("n")==-1){var _3c8=pi(_3c4);return function(elem){return (_382(elem)==_3c8);};}}}}}}}];var _381=function(_3cf){var _3d0=(_362[_3cf]||_361[_3cf]);if(_3d0){return _3d0;}var ff=null;var i=_313(_3cf);if(i[0]>=0){var tn=_31f(_3cf);if(tn!="*"){ff=_363(ff,function(elem){return (elem.tagName.toLowerCase()==tn);});}}var _3d5;var _3d6=_328(_3cf);if(_3d6.length){var _3d7=_3d6.charAt(_3d6.length-1)=="*";if(_3d7){_3d6=_3d6.substr(0,_3d6.length-1);}var re=new RegExp("(?:^|\\s)"+_3d6+(_3d7?".*":"")+"(?:\\s|$)");ff=_363(ff,function(elem){return re.test(elem.className);});}if(i[3]>=0){var _3da=_3cf.substr(i[3]+1);var _3db="";var obi=_3da.indexOf("(");var cbi=_3da.lastIndexOf(")");if((0<=obi)&&(0<=cbi)&&(cbi>obi)){_3db=_3da.substring(obi+1,cbi);_3da=_3da.substr(0,obi);}_3d5=null;for(var x=0;x<_3ac.length;x++){var ta=_3ac[x];if(ta.key==_3da){_3d5=ta.match(_3da,_3db);break;}}if(_3d5){ff=_363(ff,_3d5);}}var _3e0=(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));};};_33c(_390,_3cf,_3e0,function(_3e6){ff=_363(ff,_3e6);});if(!ff){ff=function(){return true;};}return _362[_3cf]=ff;};var _3e7={};var _374=function(_3e8,root){var fHit=_3e7[_3e8];if(fHit){return fHit;}var i=_313(_3e8);var id=_31c(_3e8);if(i[0]==0){return _3e7[_3e8]=function(root){return [d.byId(id)];};}var _3ee=_381(_3e8);var _3ef;if(i[0]>=0){_3ef=function(root){var te=d.byId(id);if(_3ee(te)){return [te];}};}else{var tret;var tn=_31f(_3e8);if(Math.max.apply(this,_313(_3e8))==-1){_3ef=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(tn);while(te=tret[x++]){ret.push(te);}return ret;};}else{_3ef=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(tn);while(te=tret[x++]){if(_3ee(te)){ret.push(te);}}return ret;};}}return _3e7[_3e8]=_3ef;};var _3fc={};var _3fd={">":function(root){var ret=[];var te,x=0,tret=root.childNodes;while(te=tret[x++]){if(te.nodeType==1){ret.push(te);}}return ret;}};var _403=function(_404){if(0>_404.indexOf(" ")){return _374(_404);}var sqf=function(root){var _407=_404.split(" ");var _408;if(_407[0]==">"){_408=[root];}else{_408=_374(_407.shift())(root);}return _375(_408,_407);};return sqf;};var _409=((document["evaluate"]&&!d.isSafari)?function(_40a){var _40b=_40a.split(" ");if((document["evaluate"])&&(_40a.indexOf(":")==-1)&&((true))){if(((_40b.length>2)&&(_40a.indexOf(">")==-1))||(_40b.length>3)||(_40a.indexOf("[")>=0)||((1==_40b.length)&&(0<=_40a.indexOf(".")))){return _358(_40a);}}return _403(_40a);}:_403);var _40c=function(_40d){if(_3fd[_40d]){return _3fd[_40d];}if(0>_40d.indexOf(",")){return _3fd[_40d]=_409(_40d);}else{var _40e=_40d.split(/\s*,\s*/);var tf=function(root){var _411=0;var ret=[];var tp;while(tp=_40e[_411++]){ret=ret.concat(_409(tp,tp.indexOf(" "))(root));}return ret;};return _3fd[_40d]=tf;}};var _414=0;var _zip=function(arr){var ret=new d.NodeList();if(!arr){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_414++;arr[0]["_zipIdx"]=_414;for(var x=1,te;te=arr[x];x++){if(arr[x]["_zipIdx"]!=_414){ret.push(te);}te["_zipIdx"]=_414;}return ret;};d.query=function(_41a,root){if(typeof _41a!="string"){return new d.NodeList(_41a);}if(typeof root=="string"){root=d.byId(root);}return _zip(_40c(_41a)(root||d.doc));};d._filterQueryResult=function(_41c,_41d){var tnl=new d.NodeList();var ff=(_41d)?_370(_41d):function(){return true;};for(var x=0,te;te=_41c[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");dojo.formToObject=function(_422){var ret={};var iq="input[type!=file][type!=submit][type!=image][type!=reset][type!=button], select, textarea";dojo.query(iq,_422).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){ret[_in]=item.value;}}else{if(item.multiple){var ria=ret[_in]=[];dojo.query("option[selected]",item).forEach(function(opt){ria.push(opt.value);});}else{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 _42e={};for(var x in map){if(map[x]!=_42e[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(_431){return dojo.objectToQuery(dojo.formToObject(_431));};dojo.formToJson=function(_432){return dojo.toJson(dojo.formToObject(_432));};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dc=decodeURIComponent;dojo.forEach(qp,function(item){if(item.length){var _438=item.split("=");var name=dc(_438.shift());var val=dc(_438.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("please consider using a mimetype of 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-optional":function(xhr){var _43e=xhr.responseText;var _43f=_43e.indexOf("/*");var _440=_43e.lastIndexOf("*/");if((_43f==-1)||(_440==-1)){return dojo.fromJson(xhr.responseText);}return dojo.fromJson(_43e.substring(_43f+2,_440));},"json-comment-filtered":function(xhr){var _442=xhr.responseText;var _443=_442.indexOf("/*");var _444=_442.lastIndexOf("*/");if((_443==-1)||(_444==-1)){console.debug("your JSON wasn't comment filtered!");return "";}return dojo.fromJson(_442.substring(_443+2,_444));},"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;}}};(function(){dojo._ioSetArgs=function(args,_44a,_44b,_44c){var _44d={};_44d.args=args;var _44e=null;if(args.form){var form=dojo.byId(args.form);var _450=form.getAttributeNode("action");_44d.url=args.url||(_450?_450.value:null);_44e=dojo.formToObject(form);}else{_44d.url=args.url;}var _451=[{}];if(_44e){_451.push(_44e);}if(args.content){_451.push(args.content);}if(args.preventCache){_451.push({"dojo.preventCache":new Date().valueOf()});}_44d.query=dojo.objectToQuery(dojo.mixin.apply(null,_451));_44d.handleAs=args.handleAs||"text";var d=new dojo.Deferred(_44a);d.addCallbacks(_44b,function(_453){return _44c(_453,d);});var ld=args.load;if(ld&&dojo.isFunction(ld)){d.addCallback(function(_455){return ld.call(args,_455,_44d);});}var err=args.error;if(err&&dojo.isFunction(err)){d.addErrback(function(_457){return err.call(args,_457,_44d);});}var _458=args.handle;if(_458&&dojo.isFunction(_458)){d.addBoth(function(_459){return _458.call(args,_459,_44d);});}d.ioArgs=_44d;return d;};var _45a=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;if(typeof xhr.abort=="function"){xhr.abort();}};var _45d=function(dfd){return dojo._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);};var _45f=function(_460,dfd){console.debug(_460);return _460;};var _462=function(args){var dfd=dojo._ioSetArgs(args,_45a,_45d,_45f);dfd.ioArgs.xhr=dojo._xhrObj(dfd.ioArgs.args);return dfd;};var _465=null;var _466=[];var _467=function(){var now=(new Date()).getTime();if(!dojo._blockAsync){dojo.forEach(_466,function(tif,_46a){if(!tif){return;}var dfd=tif.dfd;try{if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_466.splice(_46a,1);return;}if(tif.ioCheck(dfd)){_466.splice(_46a,1);tif.resHandle(dfd);}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_466.splice(_46a,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(!_466.length){clearInterval(_465);_465=null;return;}};dojo._ioCancelAll=function(){try{dojo.forEach(_466,function(i){i.dfd.cancel();});}catch(e){}};if(dojo.isIE){dojo.addOnUnload(dojo._ioCancelAll);}dojo._ioWatch=function(dfd,_46f,_470,_471){if(dfd.ioArgs.args.timeout){dfd.startTime=(new Date()).getTime();}_466.push({dfd:dfd,validCheck:_46f,ioCheck:_470,resHandle:_471});if(!_465){_465=setInterval(_467,50);}_467();};var _472="application/x-www-form-urlencoded";var _473=function(dfd){return dfd.ioArgs.xhr.readyState;};var _475=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _477=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 _479=function(type,dfd){var _47c=dfd.ioArgs;var args=_47c.args;_47c.xhr.open(type,_47c.url,(args.sync!==true),(args.user?args.user:undefined),(args.password?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{_47c.xhr.setRequestHeader(hdr,args.headers[hdr]);}}}_47c.xhr.setRequestHeader("Content-Type",(args.contentType||_472));try{_47c.xhr.send(_47c.query);}catch(e){dfd.cancel();}dojo._ioWatch(dfd,_473,_475,_477);return dfd;};dojo._ioAddQueryToUrl=function(_47f){if(_47f.query.length){_47f.url+=(_47f.url.indexOf("?")==-1?"?":"&")+_47f.query;_47f.query=null;}};dojo.xhrGet=function(args){var dfd=_462(args);dojo._ioAddQueryToUrl(dfd.ioArgs);return _479("GET",dfd);};dojo.xhrPost=function(args){return _479("POST",_462(args));};dojo.rawXhrPost=function(args){var dfd=_462(args);dfd.ioArgs.query=args.postData;return _479("POST",dfd);};dojo.xhrPut=function(args){return _479("PUT",_462(args));};dojo.rawXhrPut=function(args){var dfd=_462(args);var _488=dfd.ioArgs;if(args["putData"]){_488.query=args.putData;args.putData=null;}return _479("PUT",dfd);};dojo.xhrDelete=function(args){var dfd=_462(args);dojo._ioAddQueryToUrl(dfd.ioArgs);return _479("DELETE",dfd);};dojo.wrapForm=function(_48b){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(_48c,end){this.start=_48c;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]);}},curve:null,duration:1000,easing:null,repeat:0,rate:10,delay:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,_active:false,_paused:false,_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;},play:function(_492,_493){if(_493){clearTimeout(this._timer);this._active=this._paused=false;this._percent=0;}else{if(this._active&&!this._paused){return this;}}this.fire("beforeBegin");var d=_492||this.delay;if(d>0){setTimeout(dojo.hitch(this,function(){this.play(null,_493);}),d);return this;}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 _495=this.curve.getValue(this._percent);if(!this._percent){if(!this._startRepeatCount){this._startRepeatCount=this.repeat;}this.fire("onBegin",[_495]);}this.fire("onPlay",[_495]);this._cycle();return this;},pause:function(){clearTimeout(this._timer);if(!this._active){return this;}this._paused=true;this.fire("onPause",[this.curve.getValue(this._percent)]);return this;},gotoPercent:function(pct,_497){clearTimeout(this._timer);this._active=this._paused=true;this._percent=pct*100;if(_497){this.play();}return this;},stop:function(_498){if(!this._timer){return;}clearTimeout(this._timer);if(_498){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(){clearTimeout(this._timer);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._timer=setTimeout(dojo.hitch(this,"_cycle"),this.rate);}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 _49b=function(node){if(dojo.isIE){var ns=node.style;if(!ns.zoom.length&&dojo.style(node,"zoom")=="normal"){ns.zoom="1";}if(!ns.width.length&&dojo.style(node,"width")=="auto"){ns.width="auto";}}};dojo._fade=function(args){if(typeof args.end=="undefined"){throw new Error("dojo._fade needs an end value");}args.node=dojo.byId(args.node);var _49f=dojo.mixin({properties:{}},args);var _4a0=(_49f.properties.opacity={});_4a0.start=(typeof _49f.start=="undefined")?function(){return Number(dojo.style(_49f.node,"opacity"));}:_49f.start;_4a0.end=_49f.end;var anim=dojo.animateProperty(_49f);dojo.connect(anim,"beforeBegin",null,function(){_49b(_49f.node);});return anim;};dojo.fadeIn=function(args){return dojo._fade(dojo.mixin({end:1},args));};dojo.fadeOut=function(args){return dojo._fade(dojo.mixin({end:0},args));};if(dojo.isKhtml&&!dojo.isSafari){dojo._defaultEasing=function(n){return parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2);};}else{dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};}var _4a6=function(_4a7){this._properties=_4a7;for(var p in _4a7){var prop=_4a7[p];if(prop.start instanceof dojo.Color){prop.tempColor=new dojo.Color();}}this.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p];var _4ae=null;if(prop.start instanceof dojo.Color){_4ae=dojo.blendColors(prop.start,prop.end,r,prop.tempColor).toCss();}else{if(!dojo.isArray(prop.start)){_4ae=((prop.end-prop.start)*r)+prop.start+(p!="opacity"?prop.units||"px":"");}}ret[p]=_4ae;}return ret;};};dojo.animateProperty=function(args){args.node=dojo.byId(args.node);if(!args.easing){args.easing=dojo._defaultEasing;}var anim=new dojo._Animation(args);dojo.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){var prop=pm[p]=dojo.mixin({},this.properties[p]);if(dojo.isFunction(prop.start)){prop.start=prop.start();}if(dojo.isFunction(prop.end)){prop.end=prop.end();}var _4b4=(p.toLowerCase().indexOf("color")>=0);function _4b5(node,p){switch(p){case "height":return node.offsetHeight;case "width":return node.offsetWidth;}var v=dojo.style(node,p);return (p=="opacity")?Number(v):parseFloat(v);};if(typeof prop.end=="undefined"){prop.end=_4b5(this.node,p);}else{if(typeof prop.start=="undefined"){prop.start=_4b5(this.node,p);}}if(_4b4){prop.start=new dojo.Color(prop.start);prop.end=new dojo.Color(prop.end);}else{prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);}}this.curve=new _4a6(pm);});dojo.connect(anim,"onAnimate",anim,function(_4b9){for(var s in _4b9){dojo.style(this.node,s,_4b9[s]);}});return anim;};})();}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id="dojoUnique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);console.debug(b.l,b.t,t.x,t.y,n.scrollLeft,n.scrollTop);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _4d2=n.scrollLeft,_4d3=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(dx||dy){console.debug(_4d2+", "+_4d3+"\n"+dx+", "+dy+"\n"+n.scrollLeft+", "+n.scrollTop);}if(_4d2!=n.scrollLeft||_4d3!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");dojo.fx.chain=function(_4d4){var _4d5=_4d4.shift();var _4d6=_4d5;dojo.forEach(_4d4,function(_4d7){dojo.connect(_4d6,"onEnd",_4d7,"play");_4d6=_4d7;});return _4d5;};dojo.fx.combine=function(_4d8){var _4d9=_4d8.shift();dojo.forEach(_4d8,function(_4da){dojo.forEach(["play","pause","stop"],function(_4db){if(_4da[_4db]){dojo.connect(_4d9,_4db,_4da,_4db);}},this);});return _4d9;};dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,_showArgs:null,_showAnim:null,_hideArgs:null,_hideAnim:null,_isShowing:false,_isHiding:false,show:function(_4de){_4de=_4de||0;return this.showAnim.play(_4de);},hide:function(_4df){_4df=_4df||0;return this.hideAnim.play(_4df);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _4e4=dojo.style(node,"height");return Math.max(_4e4,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",anim,function(){s.height="auto";});return anim;};dojo.fx.wipeOut=function(args){var node=(args.node=dojo.byId(args.node));var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",anim,function(){var s=node.style;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",anim,function(){var s=this.node.style;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=dojo.byId(args.node);var _4ec=dojo.getComputedStyle;var top=null;var left=null;var init=(function(){var _4f0=node;return function(){var pos=_4ec(_4f0).position;top=(pos=="absolute"?node.offsetTop:parseInt(_4ec(node).top)||0);left=(pos=="absolute"?node.offsetLeft:parseInt(_4ec(node).left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(_4f0,true);top=ret.y;left=ret.x;_4f0.style.position="absolute";_4f0.style.top=top+"px";_4f0.style.left=left+"px";}};})();init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{start:top,end:args.top||0},left:{start:left,end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}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 _4f4=dojo.global;var _4f5=dojo.doc;if(_4f5.selection){return !_4f5.selection.createRange().text;}else{if(_4f4.getSelection){var _4f6=_4f4.getSelection();if(dojo.isString(_4f6)){return !_4f6;}else{return _4f6.isCollapsed||!_4f6.toString();}}}},getBookmark:function(){var _4f7,_4f8=dojo.doc.selection;if(_4f8){var _4f9=_4f8.createRange();if(_4f8.type.toUpperCase()=="CONTROL"){_4f7=_4f9.length?dojo._toArray(_4f9):null;}else{_4f7=_4f9.getBookmark();}}else{if(dojo.global.getSelection){_4f8=dojo.global.getSelection();if(_4f8){var _4f9=_4f8.getRangeAt(0);_4f7=_4f9.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _4f7;},moveToBookmark:function(_4fa){var _4fb=dojo.doc;if(_4fb.selection){var _4fc;if(dojo.isArray(_4fa)){_4fc=_4fb.body.createControlRange();dojo.forEach(_4fa,_4fc.addElement);}else{_4fc=_4fb.selection.createRange();_4fc.moveToBookmark(_4fa);}_4fc.select();}else{var _4fd=dojo.global.getSelection&&dojo.global.getSelection();if(_4fd&&_4fd.removeAllRanges){_4fd.removeAllRanges();_4fd.addRange(_4fa);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_4ff){return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_4ff||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_4ff||dojo.global,dijit.getBookmark):null,openedForWindow:_4ff};},focus:function(_500){if(!_500){return;}var node="node" in _500?_500.node:_500,_502=_500.bookmark,_503=_500.openedForWindow;if(node){var _504=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_504&&_504.focus){try{_504.focus();}catch(e){}}dijit._onFocusNode(node);}if(_502&&dojo.withGlobal(_503||dojo.global,dijit.isCollapsed)){if(_503){_503.focus();}try{dojo.withGlobal(_503||dojo.global,moveToBookmark,null,[_502]);}catch(e){}}},_activeStack:[],registerWin:function(_505){if(!_505){_505=window;}dojo.connect(_505.document,"onmousedown",null,function(evt){dijit._ignoreNextBlurEvent=true;setTimeout(function(){dijit._ignoreNextBlurEvent=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var body=_505.document.body||_505.document.getElementsByTagName("body")[0];if(body){if(dojo.isIE){body.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});body.attachEvent("ondeactivate",function(evt){dijit._onBlurNode();});}else{body.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);body.addEventListener("blur",function(evt){dijit._onBlurNode();},true);}}},_onBlurNode:function(){if(dijit._ignoreNextBlurEvent){dijit._ignoreNextBlurEvent=false;return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._blurAllTimer){clearTimeout(dijit._blurAllTimer);}dijit._blurAllTimer=setTimeout(function(){delete dijit._blurAllTimer;dijit._setStack([]);},100);},_onTouchNode:function(node){if(dijit._blurAllTimer){clearTimeout(dijit._blurAllTimer);delete dijit._blurAllTimer;}var _50d=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.query("iframe").filter(function(_50e){return _50e.contentDocument.body===node;})[0];}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_50d.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_50d);},_onFocusNode:function(node){if(node&&node.tagName&&node.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=node;dojo.publish("focusNode",[node]);var w=dijit.byId(node.id);if(w&&w._setStateClass){w._focused=true;w._setStateClass();var _512=dojo.connect(node,"onblur",function(){w._focused=false;w._setStateClass();dojo.disconnect(_512);});}},_setStack:function(_513){var _514=dijit._activeStack;dijit._activeStack=_513;for(var _515=0;_515<Math.min(_514.length,_513.length);_515++){if(_514[_515]!=_513[_515]){break;}}for(var i=_514.length-1;i>=_515;i--){var _517=dijit.byId(_514[i]);if(_517){dojo.publish("widgetBlur",[_517]);if(_517._onBlur){_517._onBlur();}}}for(var i=_515;i<_513.length;i++){var _517=dijit.byId(_513[i]);if(_517){dojo.publish("widgetFocus",[_517]);if(_517._onFocus){_517._onFocus();}}}}});dojo.addOnLoad(dijit.registerWin);}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={};},add:function(_518){this._hash[_518.id]=_518;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_51c){var res=new dijit.WidgetSet();this.forEach(function(_51e){if(_51c(_51e)){res.add(_51e);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_521){return _521.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_522){var id;do{id=_522+"_"+(dijit._widgetTypeCtr[_522]!==undefined?++dijit._widgetTypeCtr[_522]:dijit._widgetTypeCtr[_522]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_524){_524.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _527=dojo.global;var _528=dojo.doc;var w=0,h=0;if(dojo.isMozilla){w=_528.documentElement.clientWidth;h=_527.innerHeight;}else{if(!dojo.isOpera&&_527.innerWidth){w=_527.innerWidth;h=_527.innerHeight;}else{if(dojo.isIE&&_528.documentElement&&_528.documentElement.clientHeight){w=_528.documentElement.clientWidth;h=_528.documentElement.clientHeight;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _52b=dojo._docScroll();return {w:w,h:h,l:_52b.x,t:_52b.y};};dijit.placeOnScreen=function(node,pos,_52e,_52f){var _530=dojo.map(_52e,function(_531){return {corner:_531,pos:pos};});return dijit._place(node,_530);};dijit._place=function(node,_533,_534){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;for(var i=0;i<_533.length;i++){var _538=_533[i].corner;var pos=_533[i].pos;if(_534){_534(_538);}var _53a=node.style.display;var _53b=node.style.visibility;node.style.visibility="hidden";node.style.display="";var mb=dojo.marginBox(node);node.style.display=_53a;node.style.visibility=_53b;var _53d=(_538.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_53e=(_538.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_538.charAt(1)=="L"?Math.min(view.l+view.w,_53d+mb.w):pos.x),endY=(_538.charAt(0)=="T"?Math.min(view.t+view.h,_53e+mb.h):pos.y),_541=endX-_53d,_542=endY-_53e,_543=(mb.w-_541)+(mb.h-_542);if(best==null||_543<best.overflow){best={corner:_538,aroundCorner:_533[i].aroundCorner,x:_53d,y:_53e,w:_541,h:_542,overflow:_543};}if(_543==0){break;}}node.style.left=best.x+"px";node.style.top=best.y+"px";return best;};dijit.placeOnScreenAroundElement=function(node,_545,_546,_547){_545=dojo.byId(_545);var _548=_545.style.display;_545.style.display="";var _549=_545.offsetWidth;var _54a=_545.offsetHeight;var _54b=dojo.coords(_545,true);_545.style.display=_548;var _54c=[];for(var _54d in _546){_54c.push({aroundCorner:_54d,corner:_546[_54d],pos:{x:_54b.x+(_54d.charAt(1)=="L"?0:_549),y:_54b.y+(_54d.charAt(0)=="T"?0:_54a)}});}return dijit._place(node,_54c,_547);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}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.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){if(dojo.isIE){if(dojo.marginBox(node.parentNode).h<=node.parentNode.scrollHeight){node.scrollIntoView(false);}}else{if(dojo.isMozilla){node.scrollIntoView(false);}else{var _554=node.parentNode;var _555=_554.scrollTop+dojo.marginBox(_554).h;var _556=node.offsetTop+dojo.marginBox(node).h;if(_555<_556){_554.scrollTop+=(_556-_555);}else{if(_554.scrollTop>node.offsetTop){_554.scrollTop-=(_554.scrollTop-node.offsetTop);}}}}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _559=d.isOpera;var maj=Math.floor;var _55b={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_559,dj_opera8:maj(_559)==8,dj_opera9:maj(_559)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _55b){if(_55b[p]){var html=dojo.doc.documentElement;if(html.className){html.className+=" "+p;}else{html.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}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,_55f,node,_561,obj,_563,_564){if(obj!=this._obj){this.stop();this._initialDelay=_564?_564:500;this._subsequentDelay=_563?_563:0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_55f,_561);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_566,_567,_568,_569,_56a){var ary=[];ary.push(dojo.connect(node,"onkeypress",this,function(evt){if(evt.keyCode==_566.keyCode&&(!_566.charCode||_566.charCode==evt.charCode)&&((typeof _566.ctrlKey=="undefined")||_566.ctrlKey==evt.ctrlKey)&&((typeof _566.altKey=="undefined")||_566.altKey==evt.ctrlKey)&&((typeof _566.shiftKey=="undefined")||_566.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_566,_567,node,_568,_566,_569,_56a);}else{if(dijit.typematic._obj==_566){dijit.typematic.stop();}}}));ary.push(dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_566){dijit.typematic.stop();}}));return ary;},addMouseListener:function(node,_56f,_570,_571,_572){var ary=[];ary.push(dojo.connect(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_56f,node,_570,node,_571,_572);}));ary.push(dojo.connect(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}));ary.push(dojo.connect(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}));ary.push(dojo.connect(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}));ary.push(dojo.connect(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_56f,node,_570,node,_571,_572);setTimeout("dijit.typematic.stop()",50);}}));return ary;},addListener:function(_579,_57a,_57b,_57c,_57d,_57e,_57f){return this.addKeyListener(_57a,_57b,_57c,_57d,_57e,_57f).concat(this.addMouseListener(_579,_57c,_57d,_57e,_57f));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.waiNames=["waiRole","waiState"];dijit.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_583){if(dojo.isIE){node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_583);}else{node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_583);}},getAttr:function(node,ns,attr){if(dojo.isIE){return node.getAttribute(this[ns].alias+":"+attr);}else{return node.getAttributeNS(this[ns]["namespace"],attr);}},removeAttr:function(node,ns,attr){var _58a=true;if(dojo.isIE){_58a=node.removeAttribute(this[ns].alias+":"+attr);}else{node.removeAttributeNS(this[ns]["namespace"],attr);}return _58a;},onload:function(){var div=document.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"left: -999px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dijit","form/templates/blank.gif")+"\");";dojo.body().appendChild(div);function _58c(){var cs=dojo.getComputedStyle(div);if(cs){var _58e=cs.backgroundImage;var _58f=(cs.borderTopColor==cs.borderRightColor)||(_58e!=null&&(_58e=="none"||_58e=="url(invalid-url:)"));dojo[_58f?"addClass":"removeClass"](dojo.body(),"dijit_a11y");}};_58c();if(dojo.isIE){setInterval(_58c,4000);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_595,map,_597,_598){return _595.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_599,key,_59b){var _59c=dojo.getObject(key,false,map);if(_59b){_59c=dojo.getObject(_59b,false,_598)(_59c);}if(_597){_59c=_597(_59c,key);}return _59c.toString();});};dojo.string.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.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_59f,_5a0){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 _5a1=dojo.date.stamp._isoRegExp.exec(_59f);var _5a2=null;if(_5a1){_5a1.shift();_5a1[1]&&_5a1[1]--;_5a1[6]&&(_5a1[6]*=1000);if(_5a0){_5a0=new Date(_5a0);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _5a0["get"+prop]();}).forEach(function(_5a4,_5a5){if(_5a1[_5a5]===undefined){_5a1[_5a5]=_5a4;}});}_5a2=new Date(_5a1[0]||1970,_5a1[1]||0,_5a1[2]||0,_5a1[3]||0,_5a1[4]||0,_5a1[5]||0,_5a1[6]||0);var _5a6=0;var _5a7=_5a1[7]&&_5a1[7].charAt(0);if(_5a7!="Z"){_5a6=((_5a1[8]||0)*60)+(Number(_5a1[9])||0);if(_5a7!="-"){_5a6*=-1;}}if(_5a7){_5a6-=_5a2.getTimezoneOffset();}if(_5a6){_5a2.setTime(_5a2.getTime()+_5a6*60000);}}return _5a2;};dojo.date.stamp.toISOString=function(_5a8,_5a9){var _=function(n){return (n<10)?"0"+n:n;};_5a9=_5a9||{};var _5ac=[];var _5ad=_5a9.zulu?"getUTC":"get";var date="";if(_5a9.selector!="time"){date=[_5a8[_5ad+"FullYear"](),_(_5a8[_5ad+"Month"]()+1),_(_5a8[_5ad+"Date"]())].join("-");}_5ac.push(date);if(_5a9.selector!="date"){var time=[_(_5a8[_5ad+"Hours"]()),_(_5a8[_5ad+"Minutes"]()),_(_5a8[_5ad+"Seconds"]())].join(":");var _5b0=_5a8[_5ad+"Milliseconds"]();if(_5a9.milliseconds){time+="."+(_5b0<100?"0":"")+_(_5b0);}if(_5a9.zulu){time+="Z";}else{var _5b1=_5a8.getTimezoneOffset();var _5b2=Math.abs(_5b1);time+=(_5b1>0?"-":"+")+_(Math.floor(_5b2/60))+":"+_(_5b2%60);}_5ac.push(time);}return _5ac.join("T");};}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");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 _5b5=dijit.byId(id);return _5b5.isContainer?_5b5:null;}}return null;},_getSibling:function(_5b6){var node=this.domNode;do{node=node[_5b6+"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");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_5b9,_5ba){if(typeof _5ba=="undefined"){_5ba="last";}dojo.place(_5b9.domNode,this.containerNode||this.domNode,_5ba);if(this._started&&!_5b9._started){_5b9.startup();}},removeChild:function(_5bb){var node=_5bb.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||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_5c0,_5c1,_5c2){_5c2=dojo.i18n.normalizeLocale(_5c2);var _5c3=_5c2.split("-");var _5c4=[_5c0,"nls",_5c1].join(".");var _5c5=dojo._loadedModules[_5c4];if(_5c5){var _5c6;for(var i=_5c3.length;i>0;i--){var loc=_5c3.slice(0,i).join("_");if(_5c5[loc]){_5c6=_5c5[loc];break;}}if(!_5c6){_5c6=_5c5.ROOT;}if(_5c6){var _5c9=function(){};_5c9.prototype=_5c6;return new _5c9();}}throw new Error("Bundle not found: "+_5c1+" in "+_5c0+" , locale="+_5c2);};dojo.i18n.normalizeLocale=function(_5ca){var _5cb=_5ca?_5ca.toLowerCase():dojo.locale;if(_5cb=="root"){_5cb="ROOT";}return _5cb;};dojo.i18n._requireLocalization=function(_5cc,_5cd,_5ce,_5cf){var _5d0=dojo.i18n.normalizeLocale(_5ce);var _5d1=[_5cc,"nls",_5cd].join(".");var _5d2="";if(_5cf){var _5d3=_5cf.split(",");for(var i=0;i<_5d3.length;i++){if(_5d0.indexOf(_5d3[i])==0){if(_5d3[i].length>_5d2.length){_5d2=_5d3[i];}}}if(!_5d2){_5d2="ROOT";}}var _5d5=_5cf?_5d2:_5d0;var _5d6=dojo._loadedModules[_5d1];var _5d7=null;if(_5d6){if(djConfig.localizationComplete&&_5d6._built){return;}var _5d8=_5d5.replace(/-/g,"_");var _5d9=_5d1+"."+_5d8;_5d7=dojo._loadedModules[_5d9];}if(!_5d7){_5d6=dojo["provide"](_5d1);var syms=dojo._getModuleSymbols(_5cc);var _5db=syms.concat("nls").join("/");var _5dc;dojo.i18n._searchLocalePath(_5d5,_5cf,function(loc){var _5de=loc.replace(/-/g,"_");var _5df=_5d1+"."+_5de;var _5e0=false;if(!dojo._loadedModules[_5df]){dojo["provide"](_5df);var _5e1=[_5db];if(loc!="ROOT"){_5e1.push(loc);}_5e1.push(_5cd);var _5e2=_5e1.join("/")+".js";_5e0=dojo._loadPath(_5e2,null,function(hash){var _5e4=function(){};_5e4.prototype=_5dc;_5d6[_5de]=new _5e4();for(var j in hash){_5d6[_5de][j]=hash[j];}});}else{_5e0=true;}if(_5e0&&_5d6[_5de]){_5dc=_5d6[_5de];}else{_5d6[_5de]=_5dc;}if(_5cf){return true;}});}if(_5cf&&_5d0!=_5d2){_5d6[_5d0.replace(/-/g,"_")]=_5d6[_5d2.replace(/-/g,"_")];}};(function(){var _5e6=djConfig.extraLocale;if(_5e6){if(!_5e6 instanceof Array){_5e6=[_5e6];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_5ea,_5eb){req(m,b,_5ea,_5eb);if(_5ea){return;}for(var i=0;i<_5e6.length;i++){req(m,b,_5e6[i],_5eb);}};}})();dojo.i18n._searchLocalePath=function(_5ed,down,_5ef){_5ed=dojo.i18n.normalizeLocale(_5ed);var _5f0=_5ed.split("-");var _5f1=[];for(var i=_5f0.length;i>0;i--){_5f1.push(_5f0.slice(0,i).join("-"));}_5f1.push(false);if(down){_5f1.reverse();}for(var j=_5f1.length-1;j>=0;j--){var loc=_5f1[j]||"ROOT";var stop=_5ef(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_5f6,_5f7){function _5f8(_5f9){_5f9=dojo.i18n.normalizeLocale(_5f9);dojo.i18n._searchLocalePath(_5f9,true,function(loc){for(var i=0;i<_5f7.length;i++){if(_5f7[i]==loc){dojo["require"](_5f6+"_"+loc);return true;}}return false;});};_5f8();var _5fc=djConfig.extraLocale||[];for(var i=0;i<_5fc.length;i++){_5f8(_5fc[i]);}};}if(!dojo._hasResource["dojox.crypto._base"]){dojo._hasResource["dojox.crypto._base"]=true;dojo.provide("dojox.crypto._base");(function(){var dxc=dojox.crypto;dxc.cipherModes={ECB:0,CBC:1,PCBC:2,CFB:3,OFB:4,CTR:5};dxc.outputTypes={Base64:0,Hex:1,String:2,Raw:3};})();}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_600,_601){var c=document.cookie;if(arguments.length==1){var idx=c.lastIndexOf(name+"=");if(idx==-1){return null;}var _604=idx+name.length+1;var end=c.indexOf(";",idx+name.length+1);if(end==-1){end=c.length;}return decodeURIComponent(c.substring(_604,end));}else{_601=_601||{};_600=encodeURIComponent(_600);if(typeof (_601.expires)=="number"){var d=new Date();d.setTime(d.getTime()+(_601.expires*24*60*60*1000));_601.expires=d;}document.cookie=name+"="+_600+(_601.expires?"; expires="+_601.expires.toUTCString():"")+(_601.path?"; path="+_601.path:"")+(_601.domain?"; domain="+_601.domain:"")+(_601.secure?"; secure":"");return null;}};}if(!dojo._hasResource["dojox.collections._base"]){dojo._hasResource["dojox.collections._base"]=true;dojo.provide("dojox.collections._base");dojox.collections.DictionaryEntry=function(k,v){this.key=k;this.value=v;this.valueOf=function(){return this.value;};this.toString=function(){return String(this.value);};};dojox.collections.Iterator=function(arr){var a=arr;var _60b=0;this.element=a[_60b]||null;this.atEnd=function(){return (_60b>=a.length);};this.get=function(){if(this.atEnd()){return null;}this.element=a[_60b++];return this.element;};this.map=function(fn,_60d){var s=_60d||dojo.global;if(Array.map){return Array.map(a,fn,s);}else{var arr=[];for(var i=0;i<a.length;i++){arr.push(fn.call(s,a[i]));}return arr;}};this.reset=function(){_60b=0;this.element=a[_60b];};};dojox.collections.DictionaryIterator=function(obj){var a=[];var _613={};for(var p in obj){if(!_613[p]){a.push(obj[p]);}}var _615=0;this.element=a[_615]||null;this.atEnd=function(){return (_615>=a.length);};this.get=function(){if(this.atEnd()){return null;}this.element=a[_615++];return this.element;};this.map=function(fn,_617){var s=_617||dojo.global;if(Array.map){return Array.map(a,fn,s);}else{var arr=[];for(var i=0;i<a.length;i++){arr.push(fn.call(s,a[i]));}return arr;}};this.reset=function(){_615=0;this.element=a[_615];};};}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.require("dojo.dnd.common");dojo.require("dojo.dnd.autoscroll");dojo.dnd.Mover=function(node,e){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};var d=node.ownerDocument,_61e=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"destroy"),dojo.connect(d,"ondragstart",dojo,"stopEvent"),dojo.connect(d,"onselectstart",dojo,"stopEvent"),_61e];dojo.publish("/dnd/move/start",[this.node]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");};dojo.extend(dojo.dnd.Mover,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;dojo.marginBox(this.node,{l:m.l+e.pageX,t:m.t+e.pageY});},onFirstMove:function(){this.node.style.position="absolute";var m=dojo.marginBox(this.node);m.l-=this.marginBox.l;m.t-=this.marginBox.t;this.marginBox=m;dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);dojo.publish("/dnd/move/stop",[this.node]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");this.events=this.node=null;}});dojo.dnd.Moveable=function(node,_623){this.node=dojo.byId(node);this.handle=(_623&&_623.handle)?dojo.byId(_623.handle):null;if(!this.handle){this.handle=this.node;}this.delay=(_623&&_623.delay>0)?_623.delay:0;this.skip=_623&&_623.skip;this.mover=(_623&&_623.mover)?_623.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",dojo,"stopEvent"),dojo.connect(this.handle,"onselectstart",dojo,"stopEvent")];};dojo.extend(dojo.dnd.Moveable,{handle:"",delay:0,skip:false,markupFactory:function(_624,node){return new dojo.dnd.Moveable(node,_624);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{new this.mover(this.node,e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);new this.mover(this.node,e);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());}});dojo.dnd.constrainedMover=function(fun,_62a){var _62b=function(node,e){dojo.dnd.Mover.call(this,node,e);};dojo.extend(_62b,dojo.dnd.Mover.prototype);dojo.extend(_62b,{onMouseMove:function(e){var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;dojo.marginBox(this.node,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this),m=this.marginBox;c.r=c.l+c.w-(_62a?m.w:0);c.b=c.t+c.h-(_62a?m.h:0);}});return _62b;};dojo.dnd.boxConstrainedMover=function(box,_636){return dojo.dnd.constrainedMover(function(){return box;},_636);};dojo.dnd.parentConstrainedMover=function(area,_638){var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.constrainedMover(fun,_638);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dojo.require("dijit._base.focus");dojo.require("dijit._base.place");dojo.require("dijit._base.window");dijit.popup=new function(){var _63e=[],_63f=1000,_640=1;this.open=function(args){var _642=args.popup,_643=args.orient||{"BL":"TL","TL":"BL"},_644=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_640++);if(!args.submenu){this.closeAll();}var _646=dojo.doc.createElement("div");_646.id=id;_646.className="dijitPopup";_646.style.zIndex=_63f+_63e.length;if(args.parent){_646.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_646);_642.domNode.style.display="";_646.appendChild(_642.domNode);var _647=new dijit.BackgroundIframe(_646);var best=_644?dijit.placeOnScreenAroundElement(_646,_644,_643,_642.orient?dojo.hitch(_642,"orient"):null):dijit.placeOnScreen(_646,args,_643=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);var _649=[];_649.push(dojo.connect(_646,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE){args.onCancel();}}));if(_642.onCancel){_649.push(dojo.connect(_642,"onCancel",null,args.onCancel));}_649.push(dojo.connect(_642,_642.onExecute?"onExecute":"onChange",null,function(){if(_63e[0]&&_63e[0].onExecute){_63e[0].onExecute();}}));_63e.push({wrapper:_646,iframe:_647,widget:_642,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_649});if(_642.onOpen){_642.onOpen(best);}return best;};this.close=function(){var _64b=_63e[_63e.length-1].widget;if(_64b.onClose){_64b.onClose();}if(!_63e.length){return;}var top=_63e.pop();var _64d=top.wrapper,_64e=top.iframe,_64b=top.widget,_64f=top.onClose;dojo.forEach(top.handlers,dojo.disconnect);if(!_64b||!_64b.domNode){return;}dojo.style(_64b.domNode,"display","none");dojo.body().appendChild(_64b.domNode);_64e.destroy();dojo._destroyElement(_64d);if(_64f){_64f();}};this.closeAll=function(){while(_63e.length){this.close();}};this.closeTo=function(_650){while(_63e.length&&_63e[_63e.length-1].widget.id!=_650.id){this.close();}};}();dijit._frames=new function(){var _651=[];this.pop=function(){var _652;if(_651.length){_652=_651.pop();_652.style.display="";}else{if(dojo.isIE){var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_652=dojo.doc.createElement(html);}else{var _652=dojo.doc.createElement("iframe");_652.src="javascript:\"\"";_652.className="dijitBackgroundIframe";}_652.tabIndex=-1;dojo.body().appendChild(_652);}return _652;};this.push=function(_654){_654.style.display="";if(dojo.isIE){_654.style.removeExpression("width");_654.style.removeExpression("height");}_651.push(_654);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _657=dijit._frames.pop();node.appendChild(_657);if(dojo.isIE){_657.style.setExpression("width","document.getElementById('"+node.id+"').offsetWidth");_657.style.setExpression("height","document.getElementById('"+node.id+"').offsetHeight");}this.iframe=_657;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.require("dojo.date.stamp");dojo.parser=new function(){var d=dojo;function _659(_65a){if(d.isString(_65a)){return "string";}if(typeof _65a=="number"){return "number";}if(typeof _65a=="boolean"){return "boolean";}if(d.isFunction(_65a)){return "function";}if(d.isArray(_65a)){return "array";}if(_65a instanceof Date){return "date";}if(_65a instanceof d._Url){return "url";}return "object";};function _65b(_65c,type){switch(type){case "string":return _65c;case "number":return _65c.length?Number(_65c):NaN;case "boolean":return typeof _65c=="boolean"?_65c:!(_65c.toLowerCase()=="false");case "function":if(d.isFunction(_65c)){_65c=_65c.toString();_65c=d.trim(_65c.substring(_65c.indexOf("{")+1,_65c.length-1));}try{if(_65c.search(/[^\w\.]+/i)!=-1){_65c=d.parser._nameAnonFunc(new Function(_65c),this);}return d.getObject(_65c,false);}catch(e){return new Function();}case "array":return _65c.split(/\s*,\s*/);case "date":switch(_65c){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_65c);}case "url":return d.baseUrl+_65c;default:return d.fromJson(_65c);}};var _65e={};function _65f(_660){if(!_65e[_660]){var cls=d.getObject(_660);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_660+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _662=cls.prototype;var _663={};for(var name in _662){if(name.charAt(0)=="_"){continue;}var _665=_662[name];_663[name]=_659(_665);}_65e[_660]={cls:cls,params:_663};}return _65e[_660];};this._functionFromScript=function(_666){var _667="";var _668="";var _669=_666.getAttribute("args");if(_669){d.forEach(_669.split(/\s*,\s*/),function(part,idx){_667+="var "+part+" = arguments["+idx+"]; ";});}var _66c=_666.getAttribute("with");if(_66c&&_66c.length){d.forEach(_66c.split(/\s*,\s*/),function(part){_667+="with("+part+"){";_668+="}";});}return new Function(_667+_666.innerHTML+_668);};this._wireUpMethod=function(_66e,_66f){var nf=this._functionFromScript(_66f);var _671=_66f.getAttribute("event");if(_671){var mode=_66f.getAttribute("type");if(mode&&(mode=="dojo/connect")){d.connect(_66e,_671,null,nf);}else{_66e[_671]=nf;}}else{nf.call(_66e);}};this.instantiate=function(_673){var _674=[];d.forEach(_673,function(node){if(!node){return;}var type=node.getAttribute("dojoType");if((!type)||(!type.length)){return;}var _677=_65f(type);var _678=_677.cls;var ps=_678._noScript||_678.prototype._noScript;var _67a={};var _67b=node.attributes;for(var name in _677.params){var item=_67b.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _67e=_677.params[name];_67a[name]=_65b(item.value,_67e);}if(!ps){var _67f=d.query("> script[type='dojo/method'][event='preamble']",node).orphan();if(_67f.length){_67a.preamble=d.parser._functionFromScript(_67f[0]);}var _680=d.query("> script[type^='dojo/']",node).orphan();}var _681=_678["markupFactory"];if(!_681&&_678["prototype"]){_681=_678.prototype["markupFactory"];}var _682=_681?_681(_67a,node,_678):new _678(_67a,node);_674.push(_682);var _683=node.getAttribute("jsId");if(_683){d.setObject(_683,_682);}if(!ps){_680.forEach(function(_684){d.parser._wireUpMethod(_682,_684);});}});d.forEach(_674,function(_685){if(_685&&(_685.startup)&&((!_685.getParent)||(!_685.getParent()))){_685.startup();}});return _674;};this.parse=function(_686){var list=d.query("[dojoType]",_686);var _688=this.instantiate(list);return _688;};}();(function(){var _689=function(){if(djConfig["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_689);}else{dojo._loaders.unshift(_689);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_68a,_68b){var jpn="$joinpoint";var nso=(_68b||dojo.parser._anon);if(dojo.isIE){var cn=_68a["__dojoNameCache"];if(cn&&nso[cn]===_68a){return _68a["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_68a;return ret;};}if(!dojo._hasResource["dojox.crypto.MD5"]){dojo._hasResource["dojox.crypto.MD5"]=true;dojo.provide("dojox.crypto.MD5");dojo.require("dojox.crypto._base");dojox.crypto.MD5=new function(){var _690=8;var mask=(1<<_690)-1;function _692(s){var wa=[];for(var i=0;i<s.length*_690;i+=_690){wa[i>>5]|=(s.charCodeAt(i/_690)&mask)<<(i%32);}return wa;};function _696(wa){var s=[];for(var i=0;i<wa.length*32;i+=_690){s.push(String.fromCharCode((wa[i>>5]>>>(i%32))&mask));}return s.join("");};function _69a(wa){var h="0123456789abcdef";var s=[];for(var i=0;i<wa.length*4;i++){s.push(h.charAt((wa[i>>2]>>((i%4)*8+4))&15)+h.charAt((wa[i>>2]>>((i%4)*8))&15));}return s.join("");};function _69f(wa){var p="=";var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var s=[];for(var i=0;i<wa.length*4;i+=3){var t=(((wa[i>>2]>>8*(i%4))&255)<<16)|(((wa[i+1>>2]>>8*((i+1)%4))&255)<<8)|((wa[i+2>>2]>>8*((i+2)%4))&255);for(var j=0;j<4;j++){if(i*8+j*6>wa.length*32){s.push(p);}else{s.push(tab.charAt((t>>6*(3-j))&63));}}}return s.join("");};function add(x,y){var l=(x&65535)+(y&65535);var m=(x>>16)+(y>>16)+(l>>16);return (m<<16)|(l&65535);};function R(n,c){return (n<<c)|(n>>>(32-c));};function C(q,a,b,x,s,t){return add(R(add(add(a,q),add(x,t)),s),b);};function FF(a,b,c,d,x,s,t){return C((b&c)|((~b)&d),a,b,x,s,t);};function GG(a,b,c,d,x,s,t){return C((b&d)|(c&(~d)),a,b,x,s,t);};function HH(a,b,c,d,x,s,t){return C(b^c^d,a,b,x,s,t);};function II(a,b,c,d,x,s,t){return C(c^(b|(~d)),a,b,x,s,t);};function core(x,len){x[len>>5]|=128<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i<x.length;i+=16){var olda=a;var oldb=b;var oldc=c;var oldd=d;a=FF(a,b,c,d,x[i+0],7,-680876936);d=FF(d,a,b,c,x[i+1],12,-389564586);c=FF(c,d,a,b,x[i+2],17,606105819);b=FF(b,c,d,a,x[i+3],22,-1044525330);a=FF(a,b,c,d,x[i+4],7,-176418897);d=FF(d,a,b,c,x[i+5],12,1200080426);c=FF(c,d,a,b,x[i+6],17,-1473231341);b=FF(b,c,d,a,x[i+7],22,-45705983);a=FF(a,b,c,d,x[i+8],7,1770035416);d=FF(d,a,b,c,x[i+9],12,-1958414417);c=FF(c,d,a,b,x[i+10],17,-42063);b=FF(b,c,d,a,x[i+11],22,-1990404162);a=FF(a,b,c,d,x[i+12],7,1804603682);d=FF(d,a,b,c,x[i+13],12,-40341101);c=FF(c,d,a,b,x[i+14],17,-1502002290);b=FF(b,c,d,a,x[i+15],22,1236535329);a=GG(a,b,c,d,x[i+1],5,-165796510);d=GG(d,a,b,c,x[i+6],9,-1069501632);c=GG(c,d,a,b,x[i+11],14,643717713);b=GG(b,c,d,a,x[i+0],20,-373897302);a=GG(a,b,c,d,x[i+5],5,-701558691);d=GG(d,a,b,c,x[i+10],9,38016083);c=GG(c,d,a,b,x[i+15],14,-660478335);b=GG(b,c,d,a,x[i+4],20,-405537848);a=GG(a,b,c,d,x[i+9],5,568446438);d=GG(d,a,b,c,x[i+14],9,-1019803690);c=GG(c,d,a,b,x[i+3],14,-187363961);b=GG(b,c,d,a,x[i+8],20,1163531501);a=GG(a,b,c,d,x[i+13],5,-1444681467);d=GG(d,a,b,c,x[i+2],9,-51403784);c=GG(c,d,a,b,x[i+7],14,1735328473);b=GG(b,c,d,a,x[i+12],20,-1926607734);a=HH(a,b,c,d,x[i+5],4,-378558);d=HH(d,a,b,c,x[i+8],11,-2022574463);c=HH(c,d,a,b,x[i+11],16,1839030562);b=HH(b,c,d,a,x[i+14],23,-35309556);a=HH(a,b,c,d,x[i+1],4,-1530992060);d=HH(d,a,b,c,x[i+4],11,1272893353);c=HH(c,d,a,b,x[i+7],16,-155497632);b=HH(b,c,d,a,x[i+10],23,-1094730640);a=HH(a,b,c,d,x[i+13],4,681279174);d=HH(d,a,b,c,x[i+0],11,-358537222);c=HH(c,d,a,b,x[i+3],16,-722521979);b=HH(b,c,d,a,x[i+6],23,76029189);a=HH(a,b,c,d,x[i+9],4,-640364487);d=HH(d,a,b,c,x[i+12],11,-421815835);c=HH(c,d,a,b,x[i+15],16,530742520);b=HH(b,c,d,a,x[i+2],23,-995338651);a=II(a,b,c,d,x[i+0],6,-198630844);d=II(d,a,b,c,x[i+7],10,1126891415);c=II(c,d,a,b,x[i+14],15,-1416354905);b=II(b,c,d,a,x[i+5],21,-57434055);a=II(a,b,c,d,x[i+12],6,1700485571);d=II(d,a,b,c,x[i+3],10,-1894986606);c=II(c,d,a,b,x[i+10],15,-1051523);b=II(b,c,d,a,x[i+1],21,-2054922799);a=II(a,b,c,d,x[i+8],6,1873313359);d=II(d,a,b,c,x[i+15],10,-30611744);c=II(c,d,a,b,x[i+6],15,-1560198380);b=II(b,c,d,a,x[i+13],21,1309151649);a=II(a,b,c,d,x[i+4],6,-145523070);d=II(d,a,b,c,x[i+11],10,-1120210379);c=II(c,d,a,b,x[i+2],15,718787259);b=II(b,c,d,a,x[i+9],21,-343485551);a=add(a,olda);b=add(b,oldb);c=add(c,oldc);d=add(d,oldd);}return [a,b,c,d];};function hmac(data,key){var wa=_692(key);if(wa.length>16){wa=core(wa,key.length*_690);}var l=[],r=[];for(var i=0;i<16;i++){l[i]=wa[i]^909522486;r[i]=wa[i]^1549556828;}var h=core(l.concat(_692(data)),512+data.length*_690);return core(r.concat(h),640);};this.compute=function(data,_6eb){var out=_6eb||dojox.crypto.outputTypes.Base64;switch(out){case dojox.crypto.outputTypes.Hex:return _69a(core(_692(data),data.length*_690));case dojox.crypto.outputTypes.String:return _696(core(_692(data),data.length*_690));default:return _69f(core(_692(data),data.length*_690));}};this.getHMAC=function(data,key,_6ef){var out=_6ef||dojox.crypto.outputTypes.Base64;switch(out){case dojox.crypto.outputTypes.Hex:return _69a(hmac(data,key));case dojox.crypto.outputTypes.String:return _696(hmac(data,key));default:return _69f(hmac(data,key));}};}();}if(!dojo._hasResource["dojox.collections"]){dojo._hasResource["dojox.collections"]=true;dojo.provide("dojox.collections");dojo.require("dojox.collections._base");}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");dojo.require("dijit._base.focus");dojo.require("dijit._base.manager");dojo.require("dijit._base.place");dojo.require("dijit._base.popup");dojo.require("dijit._base.scroll");dojo.require("dijit._base.sniff");dojo.require("dijit._base.bidi");dojo.require("dijit._base.typematic");dojo.require("dijit._base.wai");dojo.require("dijit._base.window");}if(!dojo._hasResource["dojox.collections.Dictionary"]){dojo._hasResource["dojox.collections.Dictionary"]=true;dojo.provide("dojox.collections.Dictionary");dojo.require("dojox.collections");dojox.collections.Dictionary=function(_6f1){var _6f2={};this.count=0;var _6f3={};this.add=function(k,v){var b=(k in _6f2);_6f2[k]=new dojox.collections.DictionaryEntry(k,v);if(!b){this.count++;}};this.clear=function(){_6f2={};this.count=0;};this.clone=function(){return new dojox.collections.Dictionary(this);};this.contains=this.containsKey=function(k){if(_6f3[k]){return false;}return (_6f2[k]!=null);};this.containsValue=function(v){var e=this.getIterator();while(e.get()){if(e.element.value==v){return true;}}return false;};this.entry=function(k){return _6f2[k];};this.forEach=function(fn,_6fc){var a=[];for(var p in _6f2){if(!_6f3[p]){a.push(_6f2[p]);}}var s=_6fc||dj_global;if(Array.forEach){Array.forEach(a,fn,s);}else{for(var i=0;i<a.length;i++){fn.call(s,a[i],i,a);}}};this.getKeyList=function(){return (this.getIterator()).map(function(_701){return _701.key;});};this.getValueList=function(){return (this.getIterator()).map(function(_702){return _702.value;});};this.item=function(k){if(k in _6f2){return _6f2[k].valueOf();}return undefined;};this.getIterator=function(){return new dojox.collections.DictionaryIterator(_6f2);};this.remove=function(k){if(k in _6f2&&!_6f3[k]){delete _6f2[k];this.count--;return true;}return false;};if(_6f1){var e=_6f1.getIterator();while(e.get()){this.add(e.element.key,e.element.value);}}};}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.declare("dijit._Widget",null,{constructor:function(_706,_707){this.create(_706,_707);},id:"",lang:"",dir:"",srcNodeRef:null,domNode:null,create:function(_708,_709){this.srcNodeRef=dojo.byId(_709);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_708){dojo.mixin(this,_708);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this.domNode.setAttribute("widgetId",this.id);if(this.srcNodeRef&&this.srcNodeRef.dir){this.domNode.dir=this.srcNodeRef.dir;}}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef;},postCreate:function(){},startup:function(){},destroyRecursive:function(_70a){this.destroyDescendants();this.destroy();},destroy:function(_70b){this.uninitialize();dojo.forEach(this._connects,function(_70c){dojo.forEach(_70c,dojo.disconnect);});this.destroyRendering(_70b);dijit.registry.remove(this.id);},destroyRendering:function(_70d){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_70e){_70e.destroy();});},uninitialize:function(){return false;},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){var list=dojo.query("[widgetId]",this.domNode);return list.map(dijit.byNode);},nodesWithKeyClick:["input","button"],connect:function(obj,_711,_712){var _713=[];if(_711=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_713.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_712))?w[_712](e):_712.call(w,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_713.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_712)?w[_712](e):_712.call(w,e);}}));}_711="onclick";}_713.push(dojo.connect(obj,_711,this,_712));this._connects.push(_713);return _713;},disconnect:function(_717){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_717){dojo.forEach(_717,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){this._ltr=(this.dir||dojo.getComputedStyle(this.domNode).direction)!="rtl";}return this._ltr;}});}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.require("dijit._Widget");dojo.require("dojo.string");dojo.require("dojo.parser");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,buildRendering:function(){var _719=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString);var node;if(dojo.isString(_719)){var _71b=this.declaredClass,_71c=this;var tstr=dojo.string.substitute(_719,this,function(_71e,key){if(key.charAt(0)=="!"){_71e=_71c[key.substr(1)];}if(typeof _71e=="undefined"){throw new Error(_71b+" template:"+key);}return key.charAt(0)=="!"?_71e:_71e.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_719.cloneNode(true);}this._attachTemplateNodes(node);if(this.srcNodeRef){dojo.style(this.styleNode||node,"cssText",this.srcNodeRef.style.cssText);if(this.srcNodeRef.className){node.className+=" "+this.srcNodeRef.className;}}this.domNode=node;if(this.srcNodeRef&&this.srcNodeRef.parentNode){this.srcNodeRef.parentNode.replaceChild(this.domNode,this.srcNodeRef);}if(this.widgetsInTemplate){var _720=dojo.parser.parse(this.domNode);this._attachTemplateNodes(_720,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_723){var dest=this.containerNode;if(_723&&dest){while(_723.hasChildNodes()){dest.appendChild(_723.firstChild);}}},_attachTemplateNodes:function(_725,_726){_726=_726||function(n,p){return n.getAttribute(p);};var _729=dojo.isArray(_725)?_725:(_725.all||_725.getElementsByTagName("*"));var x=dojo.isArray(_725)?0:-1;for(;x<_729.length;x++){var _72b=(x==-1)?_725:_729[x];if(this.widgetsInTemplate&&_726(_72b,"dojoType")){continue;}var _72c=_726(_72b,"dojoAttachPoint");if(_72c){var _72d,_72e=_72c.split(/\s*,\s*/);while(_72d=_72e.shift()){if(dojo.isArray(this[_72d])){this[_72d].push(_72b);}else{this[_72d]=_72b;}}}var _72f=_726(_72b,"dojoAttachEvent");if(_72f){var _730,_731=_72f.split(/\s*,\s*/);var trim=dojo.trim;while(_730=_731.shift()){if(_730){var _733=null;if(_730.indexOf(":")!=-1){var _734=_730.split(":");_730=trim(_734[0]);_733=trim(_734[1]);}else{_730=trim(_730);}if(!_733){_733=_730;}this.connect(_72b,_730,_733);}}}var name,_736=["waiRole","waiState"];while(name=_736.shift()){var wai=dijit.wai[name];var _738=_726(_72b,wai.name);if(_738){var role="role";var val;_738=_738.split(/\s*,\s*/);while(val=_738.shift()){if(val.indexOf("-")!=-1){var _73b=val.split("-");role=_73b[0];val=_73b[1];}dijit.wai.setAttr(_72b,wai.name,role,val);}}}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_73c,_73d){var _73e=dijit._Templated._templateCache;var key=_73d||_73c;var _740=_73e[key];if(_740){return _740;}if(!_73d){_73d=dijit._Templated._sanitizeTemplateString(dojo._getText(_73c));}_73d=dojo.string.trim(_73d);if(_73d.match(/\$\{([^\}]+)\}/g)){return (_73e[key]=_73d);}else{return (_73e[key]=dijit._Templated._createNodesFromText(_73d)[0]);}};dijit._Templated._sanitizeTemplateString=function(_741){if(_741){_741=_741.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _742=_741.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_742){_741=_742[1];}}else{_741="";}return _741;};if(dojo.isIE){dojo.addOnUnload(function(){var _743=dijit._Templated._templateCache;for(var key in _743){var _745=_743[key];if(!isNaN(_745.nodeType)){dojo._destroyElement(_745);}_743[key]=null;}});}(function(){var _746={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";}var _749="none";var _74a=text.replace(/^\s+/,"");for(var type in _746){var map=_746[type];if(map.re.test(_74a)){_749=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;dojo.body().appendChild(tn);if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_749];var _74e=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _74f=[];while(_74e.firstChild){_74f.push(_74e.removeChild(_74e.firstChild));}tn.innerHTML="";return _74f;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.require("dijit._Widget");dojo.require("dojo.parser");dojo.require("dojo.string");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,"class":"dijitContentPane",postCreate:function(){this.domNode.title="";if(this.preload){this._loadCheck();}var _750={loadingState:"Loading...",errorState:"Sorry, an error occurred"};this.loadingMessage=dojo.string.substitute(this.loadingMessage,_750);this.errorMessage=dojo.string.substitute(this.errorMessage,_750);dojo.addClass(this.domNode,this["class"]);},startup:function(){if(!this._started){this._loadCheck();this._started=true;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;dijit.layout.ContentPane.superclass.destroy.call(this);},resize:function(size){dojo.marginBox(this.domNode,size);},_prepareLoad:function(_754){this.cancel();this.isLoaded=false;this._loadCheck(_754);},_loadCheck:function(_755){var _756=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(_755||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_756&&!this._xhrDfd)||(!this.isLoaded&&_756&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _758={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_758,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_758);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _75f=this.onContentError(e);try{node.innerHTML=_75f;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_762){var _763=this["on"+type+"Error"].call(this,err);if(_762){console.error(_762,err);}else{if(_763){this._setContent.call(this,_763);}}},_createSubWidgets:function(){var _764=this.containerNode||this.domNode;try{dojo.parser.parse(_764,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_767){},onDownloadError:function(_768){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.declare("dijit.form._FormMixin",null,{execute:function(_769){},onCancel:function(){},onExecute:function(){},templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onsubmit:_onSubmit' enctype='multipart/form-data'></form>",_onSubmit:function(e){dojo.stopEvent(e);this.onExecute();this.execute(this.getValues());},submit:function(){this.containerNode.submit();},setValues:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_76d){if(!_76d.name){return;}var _76e=map[_76d.name]||(map[_76d.name]=[]);_76e.push(_76d);});for(var name in map){var _770=map[name],_771=dojo.getObject(name,false,obj);if(!dojo.isArray(_771)){_771=[_771];}if(_770[0].setChecked){dojo.forEach(_770,function(w,i){w.setChecked(dojo.indexOf(_771,w.value)!=-1);});}else{dojo.forEach(_770,function(w,i){w.setValue(_771[i]);});}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_777){var _778=_777.getValue?_777.getValue():_777.value;var name=_777.name;if(!name){return;}if(_777.setChecked){if(/Radio/.test(_777.declaredClass)){if(_777.checked){dojo.setObject(name,_778,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_777.checked){ary.push(_778);}}}else{dojo.setObject(name,_778,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_77b){return !_77b.isValid||_77b.isValid();});}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],null);}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",value:"",name:"",id:"",alt:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,setDisabled:function(_77c){this.domNode.disabled=this.disabled=_77c;if(this.focusNode){this.focusNode.disabled=_77c;}if(_77c){this._hovering=false;this._active=false;}dijit.wai.setAttr(this.focusNode||this.domNode,"waiState","disabled",_77c);this._setStateClass();},_onMouse:function(_77d){var _77e=_77d.target;if(!this.disabled){switch(_77d.type){case "mouseover":this._hovering=true;var _77f,node=_77e;while(node.nodeType===1&&!(_77f=node.getAttribute("baseClass"))&&node!=this.domNode){node=node.parentNode;}this.baseClass=_77f||"dijit"+this.declaredClass.replace(/.*\./g,"");break;case "mouseout":this._hovering=false;this.baseClass=null;break;case "mousedown":this._active=true;var self=this;var _782=this.connect(dojo.body(),"onmouseup",function(){self._active=false;self._setStateClass();self.disconnect(_782);});break;}this._setStateClass();}},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(base){var _784=(this.styleNode||this.domNode).className;var base=this.baseClass||this.domNode.getAttribute("baseClass")||"dijitFormWidget";_784=_784.replace(new RegExp("\\b"+base+"(Checked)?(Selected)?(Disabled|Active|Focused|Hover)?\\b\\s*","g"),"");var _785=[base];function _786(_787){_785=_785.concat(dojo.map(_785,function(c){return c+_787;}));};if(this.checked){_786("Checked");}if(this.selected){_786("Selected");}if(this.disabled){_786("Disabled");}else{if(this._active){_786("Active");}else{if(this._focused){_786("Focused");}else{if(this._hovering){_786("Hover");}}}}(this.styleNode||this.domNode).className=_784+" "+_785.join(" ");},onChange:function(_789){},postCreate:function(){this.setValue(this.value,true);this.setDisabled(this.disabled);this._setStateClass();},setValue:function(_78a,_78b){this._lastValue=_78a;dijit.wai.setAttr(this.focusNode||this.domNode,"waiState","valuenow",this.forWaiValuenow());if((this.intermediateChanges||_78b)&&_78a!=this._lastValueReported){this._lastValueReported=_78a;this.onChange(_78a);}},getValue:function(){return this._lastValue;},undo:function(){this.setValue(this._lastValueReported,false);},_onKeyPress:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){var v=this.getValue();var lv=this._lastValueReported;if(lv!=undefined&&v.toString()!=lv.toString()){this.undo();dojo.stopEvent(e);return false;}}return true;},forWaiValuenow:function(){return this.getValue();}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:200,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")}),this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_78f,_790){if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_78f;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _791=this.isLeftToRight()?{"BR":"BL","BL":"BR"}:{"BL":"BR","BR":"BL"};var pos=dijit.placeOnScreenAroundElement(this.domNode,_790,_791);this.domNode.className="dijitTooltip dijitTooltip"+(pos.corner=="BL"?"Right":"Left");dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(){if(this._onDeck){this._onDeck=null;return;}this.fadeIn.stop();this.isShowingNow=false;this.fadeOut.play();},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dojo.addOnLoad(function(){dijit.MasterTooltip=new dijit._MasterTooltip();});dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:"",postCreate:function(){this.srcNodeRef.style.display="none";this._connectNode=dojo.byId(this.connectId);dojo.forEach(["onMouseOver","onHover","onMouseOut","onUnHover"],function(_793){this.connect(this._connectNode,_793.toLowerCase(),"_"+_793);},this);},_onMouseOver:function(e){this._onHover(e);},_onMouseOut:function(e){if(dojo.isDescendant(e.relatedTarget,this._connectNode)){return;}this._onUnHover(e);},_onHover:function(e){if(this._hover){return;}this._hover=true;if(!this.isShowingNow&&!this._showTimer){this._showTimer=setTimeout(dojo.hitch(this,"open"),this.showDelay);}},_onUnHover:function(e){if(!this._hover){return;}this._hover=false;if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}else{this.close();}},open:function(){if(this.isShowingNow){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.MasterTooltip.show(this.label||this.domNode.innerHTML,this._connectNode);this.isShowingNow=true;},close:function(){if(!this.isShowingNow){return;}dijit.MasterTooltip.hide();this.isShowingNow=false;},uninitialize:function(){this.close();}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.require("dojo.fx");dojo.require("dijit._Templated");dojo.require("dijit.layout.ContentPane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:250,templateString:"<div class=\"dijitTitlePane\">\n\t<div dojoAttachEvent=\"onclick:toggle,onkeypress: _onTitleKey\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"focusNode\">\n\t\t<span dojoAttachPoint=\"arrowNode\" class=\"dijitInline dijitArrowNode\"><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijit_a11y dijitArrowNodeInner\"></span></span>\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dijitInlineBox dijitTitleNode\"></span>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",postCreate:function(){this.setTitle(this.title);if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.TitlePane.superclass.postCreate.apply(this,arguments);dijit.wai.setAttr(this.containerNode,"waiState","titleledby",this.titleNode.id);dijit.wai.setAttr(this.focusNode,"waiState","haspopup","true");var _798=this.hideNode,_799=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_798.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_798.style.display="none";}});},setContent:function(_79a){if(this._wipeOut.status()=="playing"){dijit.layout.ContentPane.prototype.setContent.apply(this,_79a);}else{if(this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});dijit.layout.ContentPane.prototype.setContent.apply(this,arguments);this._wipeIn.play();}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_79b){if(_79b.status()=="playing"){_79b.stop();}});this[this.open?"_wipeOut":"_wipeIn"].play();this.open=!this.open;this._loadCheck();this._setCss();},_setCss:function(){var _79c=["dijitClosed","dijitOpen"];var _79d=this.open;dojo.removeClass(this.focusNode,_79c[!_79d+0]);this.focusNode.className+=" "+_79c[_79d+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.keyCode==dojo.keys.ENTER||e.charCode==dojo.keys.SPACE){this._onTitleClick();}else{if(e.keyCode==dojo.keys.DOWN_ARROW){if(this.open){this.containerNode.focus();e.preventDefault();}}}},setTitle:function(_79f){this.titleNode.innerHTML=_79f;}});}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");dojo.require("dijit.layout.ContentPane");(function(){if(dojo.isIE){var _7a0=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _7a1=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;function _7a2(_7a3,_7a4){if(!_7a4||!_7a3){return;}if(_7a0){_7a4=_7a4.replace(_7a0,function(_7a5,pre,_7a7,url,post){return pre+(new dojo._Url(_7a3,"./"+url).toString())+post;});}return _7a4.replace(_7a1,function(_7aa,_7ab,_7ac,_7ad,_7ae,_7af){if(_7ac){return "@import \""+(new dojo._Url(_7a3,"./"+_7ac).toString())+"\""+_7af;}else{return "url("+(new dojo._Url(_7a3,"./"+_7ae).toString())+")"+_7af;}});};var _7b0=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;function _7b1(_7b2,cont){var url=_7b2||"./";return cont.replace(_7b0,function(tag,_7b6,name,_7b8,_7b9,_7ba,_7bb,end){return _7b6+(name?(name+"="+_7b8+(new dojo._Url(url,_7b9).toString())+_7b8):("style="+_7ba+_7a2(url,_7bb)+_7ba))+end;});};function _7bd(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};function _7bf(_7c0,cont,_7c2){_7c2.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_7c3,_7c4,_7c5,_7c6,_7c7,href){var i,attr=(_7c4||_7c6||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_7c5){i=_7c2.push(_7c0?_7a2(_7c0,_7c5):_7c5);}else{i=_7c2.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _7cb={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_7cb[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_7c2.attributes[i-1]=_7cb;}return "";});};function _7cf(cont,_7d1){_7d1.code="";function _7d2(src){if(_7d1.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(code){_7d1.code+=code+";";},error:_7d1.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_7d5,_7d6,src,code){if(src){_7d2(src);}else{_7d1.code+=code;}return "";});};function _7d9(code,_7db){_7db=_7db||dojo.doc.body;var n=_7db.ownerDocument.createElement("script");n.type="text/javascript";_7db.appendChild(n);n.text=code;};dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,preamble:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;this.onLoadDeferred=new dojo.Deferred();this.onUnloadDeferred=new dojo.Deferred();},postCreate:function(){this._setUpDeferreds();dijit.layout.ContentPane.prototype.postCreate.apply(this,arguments);},onExecError:function(e){},setContent:function(data){if(!this._isDownloaded){var _7df=this._setUpDeferreds();}dijit.layout.ContentPane.prototype.setContent.apply(this,arguments);return _7df;},cancel:function(){if(this._xhrDfd&&this._xhrDfd.fired==-1){this.onUnloadDeferred=null;}dijit.layout.ContentPane.prototype.cancel.apply(this,arguments);},_setUpDeferreds:function(){var _t=this,_7e1=function(){_t.cancel();};var _7e2=(_t.onLoadDeferred=new dojo.Deferred());var _7e3=(_t._nextUnloadDeferred=new dojo.Deferred());return {cancel:_7e1,addOnLoad:function(func){_7e2.addCallback(func);},addOnUnload:function(func){_7e3.addCallback(func);}};},_onLoadHandler:function(){dijit.layout.ContentPane.prototype._onLoadHandler.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();if(this.onUnloadDeferred){this.onUnloadDeferred.callback(true);}dijit.layout.ContentPane.prototype._onUnloadHandler.apply(this,arguments);if(this._nextUnloadDeferred){this.onUnloadDeferred=this._nextUnloadDeferred;}},_onError:function(type,err){dijit.layout.ContentPane.prototype._onError.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.errback(err);}},_prepareLoad:function(_7e8){var _7e9=this._setUpDeferreds();dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);return _7e9;},_setContent:function(cont){var _7eb=[];if(dojo.isString(cont)){if(this.adjustPaths&&this.href){cont=_7b1(this.href,cont);}if(this.cleanContent){cont=_7bd(cont);}if(this.renderStyles||this.cleanContent){cont=_7bf(this.href,cont,_7eb);}if(this.executeScripts){var _t=this,code,_7ee={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};cont=_7cf(cont,_7ee);code=_7ee.code;}var node=(this.containerNode||this.domNode),pre=post="",walk=0;switch(name=node.nodeName.toLowerCase()){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);cont=n.childNodes;}}dijit.layout.ContentPane.prototype._setContent.call(this,cont);if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}if(this.renderStyles&&_7eb&&_7eb.length){this._renderStyles(_7eb);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,"dijit.byId('"+this.id+"')");}try{_7d9(code,(this.containerNode||this.domNode));}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}},_renderStyles:function(_7f4){this._styleNodes=[];var st,att,_7f7,doc=this.domNode.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_7f4.length;i<e;i++){_7f7=_7f4[i];att=_7f4.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_7f7;}else{st.appendChild(doc.createTextNode(_7f7));}}}});})();}if(!dojo._hasResource["dojox.widget.Toaster"]){dojo._hasResource["dojox.widget.Toaster"]=true;dojo.provide("dojox.widget.Toaster");dojo.require("dojo.fx");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.declare("dojox.widget.Toaster",[dijit._Widget,dijit._Templated],{templateString:"<div dojoAttachPoint=\"clipNode\"><div dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onclick:onSelect\"><div dojoAttachPoint=\"contentNode\"></div></div></div>",messageTopic:"",_uniqueId:0,messageTypes:{MESSAGE:"message",WARNING:"warning",ERROR:"error",FATAL:"fatal"},defaultType:"message",positionDirection:"br-up",positionDirectionTypes:["br-up","br-left","bl-up","bl-right","tr-down","tr-left","tl-down","tl-right"],duration:"2000",separator:"<hr></hr>",postCreate:function(){dojox.widget.Toaster.superclass.postCreate.apply(this);this.hide();this.clipNode.className="dijitToasterClip";this.containerNode.className+=" dijitToasterContainer";this.contentNode.className="dijitToasterContent";if(this.messageTopic){dojo.subscribe(this.messageTopic,this,"_handleMessage");}},_handleMessage:function(_7fd){if(dojo.isString(_7fd)){this.setContent(_7fd);}else{this.setContent(_7fd.message,_7fd.type,_7fd.duration);}},setContent:function(_7fe,_7ff,_800){_800=_800||this.duration;if(this.slideAnim){if(this.slideAnim.status()!="playing"){this.slideAnim.stop();}if(this.slideAnim.status()=="playing"||(this.fadeAnim&&this.fadeAnim.status()=="playing")){setTimeout(dojo.hitch(this,function(){this.setContent(_7fe,_7ff);}),50);return;}}var _801=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};for(var type in this.messageTypes){dojo.removeClass(this.containerNode,"dijitToaster"+_801(this.messageTypes[type]));}dojo.style(this.containerNode,"opacity",1);if(_7fe&&this.isVisible){_7fe=this.contentNode.innerHTML+this.separator+_7fe;}this.contentNode.innerHTML=_7fe;dojo.addClass(this.containerNode,"dijitToaster"+_801(_7ff||this.defaultType));this.show();var _804=dojo.marginBox(this.containerNode);if(this.isVisible){this._placeClip();}else{var _805=this.containerNode.style;var pd=this.positionDirection;if(pd.indexOf("-up")>=0){_805.left=0+"px";_805.top=_804.h+10+"px";}else{if(pd.indexOf("-left")>=0){_805.left=_804.w+10+"px";_805.top=0+"px";}else{if(pd.indexOf("-right")>=0){_805.left=0-_804.w-10+"px";_805.top=0+"px";}else{if(pd.indexOf("-down")>=0){_805.left=0+"px";_805.top=0-_804.h-10+"px";}else{throw new Error(this.id+".positionDirection is invalid: "+pd);}}}}this.slideAnim=dojo.fx.slideTo({node:this.containerNode,top:0,left:0,duration:450});dojo.connect(this.slideAnim,"onEnd",this,function(_807,anim){this.fadeAnim=dojo.fadeOut({node:this.containerNode,duration:1000});dojo.connect(this.fadeAnim,"onEnd",this,function(evt){this.isVisible=false;this.hide();});if(_800>0){setTimeout(dojo.hitch(this,function(evt){if(this.bgIframe&&this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.fadeAnim.play();}),_800);}else{dojo.connect(this,"onSelect",this,function(evt){this.fadeAnim.play();});}this.isVisible=true;});this.slideAnim.play();}},_placeClip:function(){var view=dijit.getViewport();var _80d=dojo.marginBox(this.containerNode);var _80e=this.clipNode.style;_80e.height=_80d.h+"px";_80e.width=_80d.w+"px";var pd=this.positionDirection;if(pd.match(/^t/)){_80e.top=view.t+"px";}else{if(pd.match(/^b/)){_80e.top=(view.h-_80d.h-2+view.t)+"px";}}if(pd.match(/^[tb]r-/)){_80e.left=(view.w-_80d.w-1-view.l)+"px";}else{if(pd.match(/^[tb]l-/)){_80e.left=0+"px";}}_80e.clip="rect(0px, "+_80d.w+"px, "+_80d.h+"px, 0px)";if(dojo.isIE){if(!this.bgIframe){this.clipNode.id="__dojoXToaster_"+this._uniqueId++;this.bgIframe=new dijit.BackgroundIframe(this.clipNode);}var _810=this.bgIframe.iframe;_810&&(_810.style.display="block");}},onSelect:function(e){},show:function(){dojo.style(this.containerNode,"display","");this._placeClip();if(!this._scrollConnected){this._scrollConnected=dojo.connect(window,"onscroll",this,this._placeClip);}},hide:function(){dojo.style(this.containerNode,"display","none");if(this._scrollConnected){dojo.disconnect(this._scrollConnected);this._scrollConnected=false;}dojo.style(this.containerNode,"opacity",1);}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.require("dojo.dnd.move");dojo.require("dojo.fx");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.require("dijit.layout.ContentPane");dojo.require("dijit.form.Form");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class=dijitDialogUnderlayWrapper id='${id}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node'></div></div>",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _812=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_812.t+"px";os.left=_812.l+"px";is.width=_812.w+"px";is.height=_812.h+"px";var _815=dijit.getViewport();if(_812.w!=_815.w){is.width=_815.w+"px";}if(_812.h!=_815.h){is.height=_815.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}this._resizeHandler=this.connect(window,"onresize","layout");},hide:function(){this.domNode.style.display="none";this.domNode.style.width=this.domNode.style.height="1px";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.disconnect(this._resizeHandler);},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{templateString:null,templateString:"<div class=\"dijitDialog\">\n\t\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\" title=\"${title}\">\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\n\t\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: hide\">\n\t\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\n\t\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n\t<span dojoAttachPoint=\"tabEnd\" dojoAttachEvent=\"onfocus:_cycleFocus\" tabindex=\"0\"></span>\n</div>\n",title:"",duration:400,_lastFocusItem:null,postCreate:function(){dojo.body().appendChild(this.domNode);dijit.Dialog.superclass.postCreate.apply(this,arguments);this.domNode.style.display="none";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");},onLoad:function(){this._position();dijit.Dialog.superclass.onLoad.call(this);},_setup:function(){this._modalconnects=[];if(this.titleBar){this._moveable=new dojo.dnd.Moveable(this.domNode,{handle:this.titleBar});}this._underlay=new dijit.DialogUnderlay();var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.display="none";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);},uninitialize:function(){if(this._underlay){this._underlay.destroy();}},_position:function(){var _817=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _819=this.domNode.style;_819.left=(_817.l+(_817.w-mb.w)/2)+"px";_819.top=(_817.t+(_817.h-mb.h)/2)+"px";},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.titleBar.focus();},_onKey:function(evt){if(evt.keyCode){var node=evt.target;if(node==this.titleBar&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}else{return;}}node=node.parentNode;}if(evt.keyCode!=dojo.keys.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this.titleBar.focus();}catch(e){}}}}}},show:function(){if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(document.documentElement,"onkeypress",this,"_onKey"));var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this._modalconnects.push(dojo.connect(this.containerNode,ev,this,"_findLastFocus"));dojo.style(this.domNode,"opacity",0);this.domNode.style.display="block";this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);setTimeout(dojo.hitch(this,function(){dijit.focus(this.titleBar);}),50);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];dijit.focus(this._savedFocus);},layout:function(){if(this.domNode.style.display=="block"){this._underlay.layout();this._position();}}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{title:"",_lastFocusItem:null,templateString:null,templateString:"<div id=\"${id}\" class=\"dijitTooltipDialog\" >\n\t<div class=\"dijitTooltipContainer\">\n\t\t<div  class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"0\" waiRole=\"dialog\"></div>\n\t</div>\n\t<span dojoAttachPoint=\"tabEnd\" tabindex=\"0\" dojoAttachEvent=\"focus:_cycleFocus\"></span>\n\t<div class=\"dijitTooltipConnector\" ></div>\n</div>\n",postCreate:function(){dijit.TooltipDialog.superclass.postCreate.apply(this,arguments);this.connect(this.containerNode,"onkeypress","_onKey");var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this.connect(this.containerNode,ev,"_findLastFocus");this.containerNode.title=this.title;},orient:function(_820){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_820.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_820.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(pos.corner);this._loadCheck();this.containerNode.focus();},_onKey:function(evt){if(evt.keyCode==dojo.keys.ESCAPE){this.onCancel();}else{if(evt.target==this.containerNode&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}}},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.containerNode.focus();}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.require("dijit.form._FormWidget");dojo.declare("dijit.form.TextBox",dijit.form._FormWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,size:"20",maxlength:"999999",templateString:"<input dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus,onkeyup,onkeypress:_onKeyPress' autocomplete=\"off\"\n\tid='${id}' name='${name}' class=\"dijitInputField\" type='${type}' size='${size}' maxlength='${maxlength}' tabIndex='${tabIndex}'>\n",getTextValue:function(){return this.filter(this.textbox.value);},getValue:function(){return this.parse(this.getTextValue(),this.constraints);},setValue:function(_825,_826,_827){if(_825==null){_825="";}_825=this.filter(_825);if(typeof _827=="undefined"){_827=(typeof _825=="undefined"||_825==null||_825==NaN)?null:this.format(_825,this.constraints);}if(_827!=null){var _828=this;this.textbox.value=_827;}dijit.form.TextBox.superclass.setValue.call(this,_825,_826);},forWaiValuenow:function(){return this.getTextValue();},format:function(_829,_82a){return _829;},parse:function(_82b,_82c){return _82b;},postCreate:function(){if(typeof this.nodeWithBorder!="object"){this.nodeWithBorder=this.textbox;}this.textbox.setAttribute("value",this.getTextValue());this.inherited("postCreate",arguments);},filter:function(val){if(val==null){return null;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},onfocus:function(){dojo.addClass(this.nodeWithBorder,"dijitInputFieldFocused");},_onBlur:function(){dojo.removeClass(this.nodeWithBorder,"dijitInputFieldFocused");this.setValue(this.getValue(),true);},onkeyup:function(){}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.require("dijit.form._FormWidget");dojo.require("dijit._Container");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<div class=\"dijit dijitLeft dijitInline dijitButton\" baseClass=\"${baseClass}\"\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseover:_onMouse,onmouseout:_onMouse,onmousedown:_onMouse\"\n\t><div class='dijitRight'\n\t><button class=\"dijitStretch dijitButtonNode dijitButtonContents\" dojoAttachPoint=\"focusNode,titleNode\"\n\t\ttabIndex=\"${tabIndex}\" type=\"${type}\" id=\"${id}\" name=\"${name}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t><div class=\"dijitInline ${iconClass}\"></div\n\t\t><span class=\"dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</span\n\t></button\n></div></div>\n",_onButtonClick:function(e){dojo.stopEvent(e);if(this.disabled){return;}return this.onClick(e);},postCreate:function(){if(this.showLabel==false){var _830="";this.label=this.containerNode.innerHTML;_830=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);this.titleNode.title=_830;dojo.addClass(this.containerNode,"dijitDisplayNone");}dijit.form._FormWidget.prototype.postCreate.apply(this,arguments);},onClick:function(e){if(this.type=="submit"){for(var node=this.domNode;node;node=node.parentNode){var _833=dijit.byNode(node);if(_833&&_833._onSubmit){_833._onSubmit(e);break;}if(node.tagName.toLowerCase()=="form"){node.submit();break;}}}},setLabel:function(_834){this.containerNode.innerHTML=this.label=_834;if(dojo.isMozilla){var _835=dojo.getComputedStyle(this.domNode).display;this.domNode.style.display="none";var _836=this;setTimeout(function(){_836.domNode.style.display=_835;},1);}if(this.showLabel==false){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<div class=\"dijit dijitLeft dijitInline dijitDropDownButton\" baseClass=\"dijitDropDownButton\"\n\tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onmousedown:_onMouse,onclick:_onArrowClick,onkeypress:_onKey\"\n\t><div class='dijitRight'>\n\t<button tabIndex=\"${tabIndex}\" class=\"dijitStretch dijitButtonNode dijitButtonContents\" type=\"${type}\" id=\"${id}\" name=\"${name}\"\n\t\tdojoAttachPoint=\"focusNode,titleNode\" waiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t><div class=\"dijitInline ${iconClass}\"></div\n\t\t><span class=\"dijitButtonText\" \tdojoAttachPoint=\"containerNode,popupStateNode\"\n\t\tid=\"${id}_label\">${label}</span\n\t\t><span class='dijitA11yDownArrow'>&#9660;</span>\n\t</button>\n</div></div>\n",_fillContent:function(){if(this.srcNodeRef){var _837=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_837[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(!this.dropDown){var _838=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_838);delete this.dropDownContainer;}dojo.body().appendChild(this.dropDown.domNode);this.dropDown.domNode.style.display="none";},_onArrowClick:function(e){if(this.disabled){return;}this._toggleDropDown();},_onKey:function(e){if(this.disabled){return;}if(e.keyCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.display=="none"){dojo.stopEvent(e);return this._toggleDropDown();}}},_onBlur:function(){dijit.popup.closeAll();},_toggleDropDown:function(){if(this.disabled){return;}dijit.focus(this.popupStateNode);var _83b=this.dropDown;if(!_83b){return false;}if(!_83b.isShowingNow){if(_83b.href&&!_83b.isLoaded){var self=this;var _83d=dojo.connect(_83b,"onLoad",function(){dojo.disconnect(_83d);self._openDropDown();});_83b._loadCheck(true);return;}else{this._openDropDown();}}else{dijit.popup.closeAll();this._opened=false;}},_openDropDown:function(){var _83e=this.dropDown;var _83f=_83e.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_83e,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){dijit.popup.closeAll();self.focus();},onCancel:function(){dijit.popup.closeAll();self.focus();},onClose:function(){_83e.domNode.style.width=_83f;self.popupStateNode.removeAttribute("popupActive");}});if(this.domNode.offsetWidth>_83e.domNode.offsetWidth){var _841=null;if(!this.isLeftToRight()){_841=_83e.domNode.parentNode;var _842=_841.offsetLeft+_841.offsetWidth;}dojo.marginBox(_83e.domNode,{w:this.domNode.offsetWidth});if(_841){_841.style.left=_842-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_83e.focus){_83e.focus();}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft dijitComboButton'  baseClass='dijitComboButton'\n\tid=\"${id}\" name=\"${name}\" cellspacing='0' cellpadding='0'\n\tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onmousedown:_onMouse\">\n\t<tr>\n\t\t<td\tclass=\"dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\ttabIndex=\"${tabIndex}\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\">\n\t\t\t<div class=\"dijitInline ${iconClass}\"></div>\n\t\t\t<span class=\"dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</span>\n\t\t</td>\n\t\t<td class='dijitReset dijitRight dijitButtonNode dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onmousedown:_onMouse,ondijitclick:_onArrowClick, onkeypress:_onKey\"\n\t\t\tbaseClass=\"dijitComboButtonDownArrow\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\ttabIndex=\"${tabIndex}\"\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t><div waiRole=\"presentation\">&#9660;</div>\n\t</td></tr>\n</table>\n",optionsTitle:"",baseClass:"dijitComboButton"});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,onClick:function(evt){this.setChecked(!this.checked);},setChecked:function(_844){this.checked=_844;this._setStateClass();this.onChange(_844);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.require("dijit.form.Button");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<span class=\"${baseClass}\" baseClass=\"${baseClass}\"\n\t><input\n\t \tid=\"${id}\" tabIndex=\"${tabIndex}\" type=\"${_type}\" name=\"${name}\" value=\"${value}\"\n\t\tclass=\"dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"inputNode,focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:onClick\"\n></span>\n",baseClass:"dijitCheckBox",_type:"checkbox",value:"on",postCreate:function(){dojo.setSelectable(this.inputNode,false);this.setChecked(this.checked);dijit.form.ToggleButton.prototype.postCreate.apply(this,arguments);},setChecked:function(_845){this.checked=_845;if(dojo.isIE){if(_845){this.inputNode.setAttribute("checked","checked");}else{this.inputNode.removeAttribute("checked");}}else{this.inputNode.checked=_845;}dijit.form.ToggleButton.prototype.setChecked.apply(this,arguments);},setValue:function(_846){if(_846==null){_846="";}this.inputNode.value=_846;dijit.form.CheckBox.superclass.setValue.call(this,_846);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{_type:"radio",baseClass:"dijitRadio",_groups:{},postCreate:function(){(this._groups[this.name]=this._groups[this.name]||[]).push(this);dijit.form.CheckBox.prototype.postCreate.apply(this,arguments);},uninitialize:function(){dojo.forEach(this._groups[this.name],function(_847,i,arr){if(_847===this){arr.splice(i,1);return;}},this);},setChecked:function(_84a){if(_84a){dojo.forEach(this._groups[this.name],function(_84b){if(_84b!=this&&_84b.checked){_84b.setChecked(false);}},this);}dijit.form.CheckBox.prototype.setChecked.apply(this,arguments);},onClick:function(e){if(!this.checked){this.setChecked(true);}}});}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.require("dojo.i18n");dojo.require("dijit.form.TextBox");dojo.require("dijit.Tooltip");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{required:false,promptMessage:"",invalidMessage:"",constraints:{},regExp:".*",regExpGen:function(_84d){return this.regExp;},setValue:function(){this.inherited("setValue",arguments);this.validate(false);},validator:function(_84e,_84f){return (new RegExp("^("+this.regExpGen(_84f)+")"+(this.required?"":"?")+"$")).test(_84e)&&(!this.required||!this._isEmpty(_84e));},isValid:function(_850){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_851){return /^\s*$/.test(_851);},getErrorMessage:function(_852){return this.invalidMessage;},getPromptMessage:function(_853){return this.promptMessage;},validate:function(_854){var _855="";var _856=this.isValid(_854);var _857=_856?"Normal":"Error";if(!dojo.hasClass(this.nodeWithBorder,"dijitInputFieldValidation"+_857)){dojo.removeClass(this.nodeWithBorder,"dijitInputFieldValidation"+((_857=="Normal")?"Error":"Normal"));dojo.addClass(this.nodeWithBorder,"dijitInputFieldValidation"+_857);}dijit.wai.setAttr(this.focusNode,"waiState","invalid",(_856?"false":"true"));if(_854){if(this._isEmpty(this.textbox.value)){_855=this.getPromptMessage(true);}if(!_855&&!_856){_855=this.getErrorMessage(true);}}this._displayMessage(_855);},_message:"",_displayMessage:function(_858){if(this._message==_858){return;}this._message=_858;this.displayMessage(_858);},displayMessage:function(_859){if(_859){dijit.MasterTooltip.show(_859,this.domNode);}else{dijit.MasterTooltip.hide();}},_onBlur:function(evt){this.validate(false);this.inherited("_onBlur",arguments);},onfocus:function(evt){this.inherited("onfocus",arguments);this.validate(true);},onkeyup:function(evt){this.onfocus(evt);},postMixInProperties:function(){if(this.constraints==dijit.form.ValidationTextBox.prototype.constraints){this.constraints={};}this.inherited("postMixInProperties",arguments);this.constraints.locale=this.lang;this.messages={rangeMessage:"* This value is out of range.",invalidMessage:"* The value entered is not valid.",missingMessage:"* This value is required."};dojo.forEach(["invalidMessage","missingMessage"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);var p=this.regExpGen(this.constraints);this.regExp=p;}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val){return val.toString();},toString:function(){var val=this.getValue();return (val!=null)?((typeof val=="string")?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();this.inherited("validate",arguments);},postCreate:function(){var _861=this.textbox;var _862=(this.valueNode=document.createElement("input"));_862.setAttribute("type",_861.type);_862.setAttribute("value",this.toString());dojo.style(_862,"display","none");_862.name=this.textbox.name;this.textbox.removeAttribute("name");dojo.place(_862,_861,"after");this.inherited("postCreate",arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",compare:function(val1,val2){return val1-val2;},rangeCheck:function(_865,_866){var _867=(typeof _866.min!="undefined");var _868=(typeof _866.max!="undefined");if(_867||_868){return (!_867||this.compare(_865,_866.min)>=0)&&(!_868||this.compare(_865,_866.max)<=0);}else{return true;}},isInRange:function(_869){return this.rangeCheck(this.getValue(),this.constraints);},isValid:function(_86a){return this.inherited("isValid",arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_86a));},getErrorMessage:function(_86b){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_86b)){return this.rangeMessage;}else{return this.inherited("getErrorMessage",arguments);}},postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(!this.rangeMessage){this.messages={rangeMessage:"* This value is out of range.",invalidMessage:"* The value entered is not valid.",missingMessage:"* This value is required."};this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited("postCreate",arguments);if(typeof this.constraints.min!="undefined"){dijit.wai.setAttr(this.domNode,"waiState","valuemin",this.constraints.min);}if(typeof this.constraints.max!="undefined"){dijit.wai.setAttr(this.domNode,"waiState","valuemax",this.constraints.max);}}});}dojo.provide("LandingPage");dojo.require("dijit.Dialog");dojo.require("dijit.form.TextBox");dojo.require("dijit.form.CheckBox");dojo.require("dijit.form.Button");dojo.require("dijit.form.ValidationTextBox");LandingPage=function(){this._view=null;this.setView=function(view){this._view=view;};this.afterPropertiesSet=function(){if(!this._view){throw ("The view property must be set");}this._installCallbacks();securityManager.createSession();};this._installCallbacks=function(){this._view.loginDialog.execute=dojo.hitch(securityManager,securityManager.login);dojo.subscribe("SESSION_CHANGE_EVENT",this,this._reloadAfterLogin);this._view.login.onclick=dojo.hitch(this,this.showLoginPanel);this._view.join.onclick=dojo.hitch(this,this._createUser);this._view.reactivate.onclick=dojo.hitch(this,this._sendReminder,"activation");this._view.repassword.onclick=dojo.hitch(this,this._sendReminder,"password");};this._createUser=function(){this._view.mainContent.style.display="none";this._view.secondContent.style.display="";while(this._view.secondContent.childNodes.length>0){this._view.secondContent.removeChild(this._view.secondContent.childNodes[0]);}var pane=g_createContentPane({url:"gadgets/subscribe/subscribe.html",parameters:{tabName:"YoYo! Signup",tabGroup:"signup",replace:true}});this._view.secondContent.appendChild(pane.domNode);var that=this;mainAppController._view.appletTabContainer={closeChild:function(){that._view.mainContent.style.display="";that._view.secondContent.style.display="none";}};};this.showLoginPanel=function(){var _86f=securityManager.getOldUserNameFromCookie();if(_86f){this._view.loginDialog.setValues({user:_86f,remme:"on"});}this._view.loginDialog.show();};this._reloadAfterLogin=function(){if(securityManager.sessionId==null){alert("Unable to create a session with the server...\nPlease click 'refresh' on your browser.");return;}if(securityManager.isLoggedIn()){location.replace("app.html");return;}};this._sendReminder=function(type){this._view.loginDialog.hide();this._view.mainContent.style.display="none";this._view.secondContent.style.display="";while(this._view.secondContent.childNodes.length>0){this._view.secondContent.removeChild(this._view.secondContent.childNodes[0]);}var pane=g_createContentPane({url:"gadgets/subscribe/emailme.html",parameters:{whatToEmail:type}});this._view.secondContent.appendChild(pane.domNode);var that=this;mainAppController._view.appletTabContainer={closeChild:function(){that._view.mainContent.style.display="";that._view.secondContent.style.display="none";}};};};if(dwr==null){var dwr={};}if(dwr.engine==null){dwr.engine={};}if(DWREngine==null){var DWREngine=dwr.engine;}dwr.engine.setErrorHandler=function(_873){dwr.engine._errorHandler=_873;};dwr.engine.setWarningHandler=function(_874){dwr.engine._warningHandler=_874;};dwr.engine.setTextHtmlHandler=function(_875){dwr.engine._textHtmlHandler=_875;};dwr.engine.setTimeout=function(_876){dwr.engine._timeout=_876;};dwr.engine.setPreHook=function(_877){dwr.engine._preHook=_877;};dwr.engine.setPostHook=function(_878){dwr.engine._postHook=_878;};dwr.engine.setHeaders=function(_879){dwr.engine._headers=_879;};dwr.engine.setParameters=function(_87a){dwr.engine._parameters=_87a;};dwr.engine.XMLHttpRequest=1;dwr.engine.IFrame=2;dwr.engine.ScriptTag=3;dwr.engine.setRpcType=function(_87b){if(_87b!=dwr.engine.XMLHttpRequest&&_87b!=dwr.engine.IFrame&&_87b!=dwr.engine.ScriptTag){dwr.engine._handleError(null,{name:"dwr.engine.invalidRpcType",message:"RpcType must be one of dwr.engine.XMLHttpRequest or dwr.engine.IFrame or dwr.engine.ScriptTag"});return;}dwr.engine._rpcType=_87b;};dwr.engine.setHttpMethod=function(_87c){if(_87c!="GET"&&_87c!="POST"){dwr.engine._handleError(null,{name:"dwr.engine.invalidHttpMethod",message:"Remoting method must be one of GET or POST"});return;}dwr.engine._httpMethod=_87c;};dwr.engine.setOrdered=function(_87d){dwr.engine._ordered=_87d;};dwr.engine.setAsync=function(_87e){dwr.engine._async=_87e;};dwr.engine.setActiveReverseAjax=function(_87f){dwr.engine._activeReverseAjax=_87f;if(dwr.engine._activeReverseAjax){dwr.engine._poll();}};dwr.engine.setPollUsingComet=function(_880){dwr.engine._pollComet=_880;};dwr.engine.setPollType=function(_881){if(_881!=dwr.engine.XMLHttpRequest&&_881!=dwr.engine.IFrame){dwr.engine._handleError(null,{name:"dwr.engine.invalidPollType",message:"PollType must be one of dwr.engine.XMLHttpRequest or dwr.engine.IFrame"});return;}dwr.engine._pollType=_881;};dwr.engine.defaultErrorHandler=function(_882,ex){dwr.engine._debug("Error: "+ex.name+", "+ex.message,true);if(_882==null||_882==""){alert("A server error has occured. More information may be available in the console.");}else{if(_882.indexOf("0x80040111")!=-1){dwr.engine._debug(_882);}else{alert(_882);}}};dwr.engine.defaultWarningHandler=function(_884,ex){dwr.engine._debug(_884);};dwr.engine.beginBatch=function(){if(dwr.engine._batch){dwr.engine._handleError(null,{name:"dwr.engine.batchBegun",message:"Batch already begun"});return;}dwr.engine._batch=dwr.engine._createBatch();};dwr.engine.endBatch=function(_886){var _887=dwr.engine._batch;if(_887==null){dwr.engine._handleError(null,{name:"dwr.engine.batchNotBegun",message:"No batch in progress"});return;}dwr.engine._batch=null;if(_887.map.callCount==0){return;}if(_886){dwr.engine._mergeBatch(_887,_886);}if(dwr.engine._ordered&&dwr.engine._batchesLength!=0){dwr.engine._batchQueue[dwr.engine._batchQueue.length]=_887;}else{dwr.engine._sendData(_887);}};dwr.engine.setPollMethod=function(type){dwr.engine.setPollType(type);};dwr.engine.setMethod=function(type){dwr.engine.setRpcType(type);};dwr.engine.setVerb=function(verb){dwr.engine.setHttpMethod(verb);};dwr.engine._origScriptSessionId="3FBDE4145A551235239DEAF08E1556D9";dwr.engine._sessionCookieName="JSESSIONID";dwr.engine._allowGetForSafariButMakeForgeryEasier=false;dwr.engine._scriptSessionId=null;dwr.engine._getScriptSessionId=function(){if(dwr.engine._scriptSessionId==null){dwr.engine._scriptSessionId=dwr.engine._origScriptSessionId+Math.floor(Math.random()*1000);}return dwr.engine._scriptSessionId;};dwr.engine._errorHandler=dwr.engine.defaultErrorHandler;dwr.engine._warningHandler=dwr.engine.defaultWarningHandler;dwr.engine._preHook=null;dwr.engine._postHook=null;dwr.engine._batches={};dwr.engine._batchesLength=0;dwr.engine._batchQueue=[];dwr.engine._rpcType=dwr.engine.XMLHttpRequest;dwr.engine._httpMethod="POST";dwr.engine._ordered=false;dwr.engine._async=true;dwr.engine._batch=null;dwr.engine._timeout=0;dwr.engine._DOMDocument=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];dwr.engine._XMLHTTP=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];dwr.engine._activeReverseAjax=false;dwr.engine._pollComet=true;dwr.engine._pollType=dwr.engine.XMLHttpRequest;dwr.engine._pollFrame=null;dwr.engine._pollReq=null;dwr.engine._cometProcessed=0;dwr.engine._pollCometInterval=200;dwr.engine._textHtmlHandler=null;dwr.engine._headers=null;dwr.engine._parameters=null;dwr.engine._postSeperator="\n";dwr.engine._defaultInterceptor=function(data){return data;};dwr.engine._urlRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._contentRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._replyRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._nextBatchId=0;dwr.engine._propnames=["rpcType","httpMethod","async","timeout","errorHandler","warningHandler","textHtmlHandler"];dwr.engine._execute=function(path,_88d,_88e,_88f){var _890=false;if(dwr.engine._batch==null){dwr.engine.beginBatch();_890=true;}var _891=dwr.engine._batch;var args=[];for(var i=0;i<arguments.length-3;i++){args[i]=arguments[i+3];}if(_891.path==null){_891.path=path;}else{if(_891.path!=path){dwr.engine._handleError(_891,{name:"dwr.engine.multipleServlets",message:"Can't batch requests to multiple DWR Servlets."});return;}}var _894;var _895=args[args.length-1];if(typeof _895=="function"||_895==null){_894={callback:args.pop()};}else{_894=args.pop();}dwr.engine._mergeBatch(_891,_894);_891.handlers[_891.map.callCount]={exceptionHandler:_894.exceptionHandler,callback:_894.callback};var _896="c"+_891.map.callCount+"-";_891.map[_896+"scriptName"]=_88d;_891.map[_896+"methodName"]=_88e;_891.map[_896+"id"]=_891.map.callCount;for(i=0;i<args.length;i++){dwr.engine._serializeAll(_891,[],args[i],_896+"param"+i);}_891.map.callCount++;if(_890){dwr.engine.endBatch();}};dwr.engine._poll=function(_897){if(!dwr.engine._activeReverseAjax){return;}var _898=dwr.engine._createBatch();_898.map.id=0;_898.map.callCount=1;_898.map.partialResponse=(document.all)?"false":"true";_898.isPoll=true;_898.rpcType=dwr.engine._pollType;_898.httpMethod="POST";_898.async=true;_898.timeout=0;_898.path=(_897)?_897:dwr.engine._defaultPath;_898.preHooks=[];_898.postHooks=[];_898.handlers[0]={callback:function(_899){dwr.engine._cometBatch=null;setTimeout("dwr.engine._poll()",_899);}};dwr.engine._sendData(_898);if(_898.map.partialResponse=="true"){dwr.engine._cometBatch=_898;dwr.engine._checkCometPoll();}};dwr.engine._createBatch=function(){var _89a={map:{callCount:0,page:window.location.pathname,httpSessionId:dwr.engine._getJSessionId(),scriptSessionId:dwr.engine._getScriptSessionId()},paramCount:0,isPoll:false,headers:{},handlers:{},preHooks:[],postHooks:[],rpcType:dwr.engine._rpcType,httpMethod:dwr.engine._httpMethod,async:dwr.engine._async,timeout:dwr.engine._timeout,errorHandler:dwr.engine._errorHandler,warningHandler:dwr.engine._warningHandler,textHtmlHandler:dwr.engine._textHtmlHandler};if(dwr.engine._preHook){_89a.preHooks.push(dwr.engine._preHook);}if(dwr.engine._postHook){_89a.postHooks.push(dwr.engine._postHook);}var _89b,data;if(dwr.engine._headers){for(_89b in dwr.engine._headers){data=dwr.engine._headers[_89b];if(typeof data!="function"){_89a.headers[_89b]=""+data;}}}if(dwr.engine._parameters){for(_89b in dwr.engine._parameters){data=dwr.engine._parameters[_89b];if(typeof data!="function"){_89a.parameters[_89b]=""+data;}}}return _89a;};dwr.engine._mergeBatch=function(_89d,_89e){var _89f,data;for(var i=0;i<dwr.engine._propnames.length;i++){_89f=dwr.engine._propnames[i];if(_89e[_89f]!=null){_89d[_89f]=_89e[_89f];}}if(_89e.preHook!=null){_89d.preHooks.unshift(_89e.preHook);}if(_89e.postHook!=null){_89d.postHooks.push(_89e.postHook);}if(_89e.headers){for(_89f in _89e.headers){data=_89e[_89f];if(typeof data!="function"){_89d.headers[_89f]=""+data;}}}if(_89e.parameters){for(_89f in _89e.parameters){data=_89e[_89f];if(typeof data!="function"){_89d.map[_89f]=""+data;}}}};dwr.engine._getJSessionId=function(){var _8a2=document.cookie.split(";");for(var i=0;i<_8a2.length;i++){var _8a4=_8a2[i];while(_8a4.charAt(0)==" "){_8a4=_8a4.substring(1,_8a4.length);}if(_8a4.indexOf(dwr.engine._sessionCookieName+"=")==0){return _8a4.substring(11,_8a4.length);}}return "";};dwr.engine._checkCometPoll=function(){if(dwr.engine._pollComet){try{dwr.engine._receivedBatch=dwr.engine._cometBatch;if(dwr.engine._pollFrame){var text=dwr.engine._getTextFromCometIFrame();dwr.engine._processCometResponse(text);}else{if(dwr.engine._pollReq){var _8a6=dwr.engine._pollReq.responseText;dwr.engine._processCometResponse(_8a6);}}dwr.engine._receivedBatch=null;}catch(ex){}if(dwr.engine._pollFrame||dwr.engine._pollReq){setTimeout("dwr.engine._checkCometPoll()",dwr.engine._pollCometInterval);}}};dwr.engine._getTextFromCometIFrame=function(){var _8a7;if(dwr.engine._pollFrame.contentDocument){_8a7=dwr.engine._pollFrame.contentDocument.defaultView.document;}else{if(dwr.engine._pollFrame.contentWindow){_8a7=dwr.engine._pollFrame.contentWindow.document;}else{return "";}}var _8a8=_8a7.getElementsByTagName("body");if(_8a8==null||_8a8.length==0){return "";}if(_8a8[0]==null){return "";}var text=_8a8[0].innerHTML.toString();if(text.indexOf("<PRE>")==0){text=text.substring(5,text.length-7);}return text;};dwr.engine._processCometResponse=function(_8aa){if(dwr.engine._cometProcessed!=_8aa.length){if(_8aa.length==0){dwr.engine._cometProcessed=0;}else{var _8ab=_8aa.indexOf("//#DWR-START#",dwr.engine._cometProcessed);if(_8ab==-1){dwr.engine._cometProcessed=_8aa.length;}else{var _8ac=_8aa.lastIndexOf("//#DWR-END#");if(_8ac!=-1){var exec=_8aa.substring(_8ab+13,_8ac);if(_8aa.charCodeAt(_8ac+11)==13&&_8aa.charCodeAt(_8ac+12)==10){dwr.engine._cometProcessed=_8ac+13;}else{dwr.engine._cometProcessed=_8ac+11;}dwr.engine._eval(exec);}}}}};dwr.engine._sendData=function(_8ae){_8ae.map.batchId=dwr.engine._nextBatchId++;dwr.engine._batches[_8ae.map.batchId]=_8ae;dwr.engine._batchesLength++;_8ae.completed=false;for(var i=0;i<_8ae.preHooks.length;i++){_8ae.preHooks[i]();}_8ae.preHooks=null;if(_8ae.timeout&&_8ae.timeout!=0){_8ae.interval=setInterval(function(){dwr.engine._abortRequest(_8ae);},_8ae.timeout);}if(_8ae.rpcType==dwr.engine.XMLHttpRequest){if(window.XMLHttpRequest){_8ae.req=new XMLHttpRequest();}else{if(window.ActiveXObject&&!(navigator.userAgent.indexOf("Mac")>=0&&navigator.userAgent.indexOf("MSIE")>=0)){_8ae.req=dwr.engine._newActiveXObject(dwr.engine._XMLHTTP);}}}var prop,_8b1;if(_8ae.req){if(_8ae.async){_8ae.req.onreadystatechange=function(){dwr.engine._stateChange(_8ae);};}if(_8ae.isPoll){dwr.engine._pollReq=_8ae.req;}var _8b2=navigator.userAgent.indexOf("Safari/");if(_8b2>=0){if(dwr.engine._allowGetForSafariButMakeForgeryEasier){var _8b3=navigator.userAgent.substring(_8b2+7);if(parseInt(_8b3,10)<400){_8ae.httpMethod="GET";}}else{dwr.engine._handleWarning(_8ae,{name:"dwr.engine.oldSafari",message:"Safari GET support disabled. See http://getahead.ltd.uk/dwr/server/servlet and allowGetForSafariButMakeForgeryEasier."});}}_8ae.mode=_8ae.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;_8b1=dwr.engine._constructRequest(_8ae);try{_8ae.req.open(_8ae.httpMethod,_8b1.url,_8ae.async);try{for(prop in _8ae.headers){var _8b4=_8ae.headers[prop];if(typeof _8b4=="string"){_8ae.req.setRequestHeader(prop,_8b4);}}if(!_8ae.headers["Content-Type"]){_8ae.req.setRequestHeader("Content-Type","text/plain");}}catch(ex){dwr.engine._handleWarning(_8ae,ex);}_8ae.req.send(_8b1.body);if(!_8ae.async){dwr.engine._stateChange(_8ae);}}catch(ex){dwr.engine._handleError(_8ae,ex);}}else{if(_8ae.rpcType!=dwr.engine.ScriptTag){var _8b5="dwr-if-"+_8ae.map["c0-id"];_8ae.div=document.createElement("div");_8ae.div.innerHTML="<iframe src='javascript:void(0)' frameborder='0' width='0' height='0' id='"+_8b5+"' name='"+_8b5+"'></iframe>";document.body.appendChild(_8ae.div);_8ae.iframe=document.getElementById(_8b5);_8ae.iframe.setAttribute("style","width:0px; height:0px; border:0px;");_8ae.iframe.batch=_8ae;_8ae.mode=_8ae.isPoll?dwr.engine._ModeHtmlPoll:dwr.engine._ModeHtmlCall;if(_8ae.isPoll){dwr.engine._pollFrame=_8ae.iframe;dwr.engine._cometProcessed=0;}_8b1=dwr.engine._constructRequest(_8ae);if(_8ae.httpMethod=="GET"){_8ae.iframe.setAttribute("src",_8b1.url);document.body.appendChild(_8ae.iframe);}else{_8ae.form=document.createElement("form");_8ae.form.setAttribute("id","dwr-form");_8ae.form.setAttribute("action",_8b1.url);_8ae.form.setAttribute("target",_8b5);_8ae.form.target=_8b5;_8ae.form.setAttribute("method",_8ae.httpMethod);for(prop in _8ae.map){var _8b4=_8ae.map[prop];if(typeof _8b4!="function"){var _8b6=document.createElement("input");_8b6.setAttribute("type","hidden");_8b6.setAttribute("name",prop);_8b6.setAttribute("value",_8b4);_8ae.form.appendChild(_8b6);}}document.body.appendChild(_8ae.form);_8ae.form.submit();}}else{_8ae.httpMethod="GET";_8ae.mode=_8ae.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;_8b1=dwr.engine._constructRequest(_8ae);_8ae.script=document.createElement("script");_8ae.script.id="dwr-st-"+_8ae.map["c0-id"];_8ae.script.src=_8b1.url;document.body.appendChild(_8ae.script);}}};dwr.engine._ModePlainCall="/call/plaincall/";dwr.engine._ModeHtmlCall="/call/htmlcall/";dwr.engine._ModePlainPoll="/call/plainpoll/";dwr.engine._ModeHtmlPoll="/call/htmlpoll/";dwr.engine._constructRequest=function(_8b7){var _8b8={url:_8b7.path+_8b7.mode,body:null};if(_8b7.isPoll==true){_8b8.url+="ReverseAjax.dwr";}else{if(_8b7.map.callCount==1){_8b8.url+=_8b7.map["c0-scriptName"]+"."+_8b7.map["c0-methodName"]+".dwr";}else{_8b8.url+="Multiple."+_8b7.map.callCount+".dwr";}}var _8b9=location.href.match(/jsessionid=(\w+)/);if(_8b9!=null){_8b8.url+=";jsessionid="+_8b9[1];}var prop;if(_8b7.httpMethod=="GET"){_8b7.map.callCount=""+_8b7.map.callCount;_8b8.url+="?";for(prop in _8b7.map){if(typeof _8b7.map[prop]!="function"){_8b8.url+=encodeURIComponent(prop)+"="+encodeURIComponent(_8b7.map[prop])+"&";}}_8b8.url=_8b8.url.substring(0,_8b8.url.length-1);}else{_8b8.body="";for(prop in _8b7.map){if(typeof _8b7.map[prop]!="function"){_8b8.body+=prop+"="+_8b7.map[prop]+dwr.engine._postSeperator;}}_8b8.body=dwr.engine._contentRewriteHandler(_8b8.body);}_8b8.url=dwr.engine._urlRewriteHandler(_8b8.url);return _8b8;};dwr.engine._stateChange=function(_8bb){var _8bc;if(_8bb.completed){dwr.engine._debug("Error: _stateChange() with batch.completed");return;}try{if(_8bb.req.readyState!=4){return;}}catch(ex){dwr.engine._handleWarning(_8bb,ex);dwr.engine._clearUp(_8bb);return;}try{var _8bd=_8bb.req.responseText;_8bd=dwr.engine._replyRewriteHandler(_8bd);var _8be=_8bb.req.status;if(_8bd==null||_8bd==""){dwr.engine._handleWarning(_8bb,{name:"dwr.engine.missingData",message:"No data received from server"});}else{if(_8be!=200){dwr.engine._handleError(_8bb,{name:"dwr.engine.http."+_8be,message:_8bb.req.statusText});}else{var _8bf=_8bb.req.getResponseHeader("Content-Type");if(!_8bf.match(/^text\/plain/)&&!_8bf.match(/^text\/javascript/)){if(_8bf.match(/^text\/html/)&&typeof _8bb.textHtmlHandler=="function"){_8bb.textHtmlHandler();}else{dwr.engine._handleWarning(_8bb,{name:"dwr.engine.invalidMimeType",message:"Invalid content type: '"+_8bf+"'"});}}else{if(_8bb.req==dwr.engine._pollReq&&_8bb.map.partialResponse=="true"){dwr.engine._receivedBatch=_8bb;dwr.engine._processCometResponse(_8bd);dwr.engine._receivedBatch=null;}else{if(_8bd.search("//#DWR")==-1){dwr.engine._handleWarning(_8bb,{name:"dwr.engine.invalidReply",message:"Invalid reply from server"});}else{_8bc=_8bd;}}}}}}catch(ex){dwr.engine._handleWarning(_8bb,ex);}dwr.engine._callPostHooks(_8bb);dwr.engine._receivedBatch=_8bb;dwr.engine._eval(_8bc);dwr.engine._receivedBatch=null;dwr.engine._clearUp(_8bb);};dwr.engine._remoteHandleCallback=function(_8c0,_8c1,_8c2){var _8c3=dwr.engine._batches[_8c0];if(_8c3==null){dwr.engine._debug("Warning: batch == null in remoteHandleCallback for batchId="+_8c0,true);return;}try{var _8c4=_8c3.handlers[_8c1];if(!_8c4){dwr.engine._debug("Warning: Missing handlers. callId="+_8c1,true);}else{if(typeof _8c4.callback=="function"){_8c4.callback(_8c2);}}}catch(ex){dwr.engine._handleError(_8c3,ex);}};dwr.engine._remoteHandleException=function(_8c5,_8c6,ex){var _8c8=dwr.engine._batches[_8c5];if(_8c8==null){dwr.engine._debug("Warning: null batch in remoteHandleException",true);return;}var _8c9=_8c8.handlers[_8c6];if(_8c9==null){dwr.engine._debug("Warning: null handlers in remoteHandleException",true);return;}if(ex.message==undefined){ex.message="";}if(typeof _8c9.exceptionHandler=="function"){_8c9.exceptionHandler(ex.message,ex);}else{if(typeof _8c8.errorHandler=="function"){_8c8.errorHandler(ex.message,ex);}}};dwr.engine._remoteHandleBatchException=function(ex,_8cb){var _8cc=(dwr.engine._receivedBatch==null&&_8cb!=null);if(_8cc){dwr.engine._receivedBatch=dwr.engine._batches[_8cb];}if(ex.message==undefined){ex.message="";}dwr.engine._handleError(dwr.engine._receivedBatch,ex);if(_8cc){dwr.engine._receivedBatch=null;dwr.engine._clearUp(dwr.engine._batches[_8cb]);}};dwr.engine._remotePollCometDisabled=function(ex,_8ce){dwr.engine.setActiveReverseAjax(false);var _8cf=(dwr.engine._receivedBatch==null&&_8ce!=null);if(_8cf){dwr.engine._receivedBatch=dwr.engine._batches[_8ce];}if(ex.message==undefined){ex.message="";}dwr.engine._handleError(dwr.engine._receivedBatch,ex);if(_8cf){dwr.engine._receivedBatch=null;dwr.engine._clearUp(dwr.engine._batches[_8ce]);}};dwr.engine._remoteBeginIFrameResponse=function(_8d0,_8d1){dwr.engine._receivedBatch=_8d0.batch;_8d0.batch=null;dwr.engine._callPostHooks(batch);};dwr.engine._remoteEndIFrameResponse=function(_8d2){dwr.engine._clearUp(dwr.engine._receivedBatch);dwr.engine._receivedBatch=null;};dwr.engine._eval=function(_8d3){if(_8d3==null){return null;}if(_8d3==""){dwr.engine._debug("Warning: blank script",true);return null;}return eval(_8d3);};dwr.engine._abortRequest=function(_8d4){if(_8d4&&!_8d4.completed){clearInterval(_8d4.interval);dwr.engine._clearUp(_8d4);if(_8d4.req){_8d4.req.abort();}dwr.engine._handleError(_8d4,{name:"dwr.engine.timeout",message:"Timeout"});}};dwr.engine._callPostHooks=function(_8d5){if(_8d5.postHooks){for(var i=0;i<_8d5.postHooks.length;i++){_8d5.postHooks[i]();}_8d5.postHooks=null;}};dwr.engine._clearUp=function(_8d7){if(!_8d7){dwr.engine._debug("Warning: null batch in dwr.engine._clearUp()",true);return;}if(_8d7.completed=="true"){dwr.engine._debug("Warning: Double complete",true);return;}if(_8d7.div){_8d7.div.parentNode.removeChild(_8d7.div);}if(_8d7.iframe){if(_8d7.iframe==dwr.engine._pollFrame){dwr.engine._pollFrame=null;}_8d7.iframe.parentNode.removeChild(_8d7.iframe);}if(_8d7.form){_8d7.form.parentNode.removeChild(_8d7.form);}if(_8d7.req){if(_8d7.req==dwr.engine._pollReq){dwr.engine._pollReq=null;}delete _8d7.req;}if(_8d7.map&&_8d7.map.batchId){delete dwr.engine._batches[_8d7.map.batchId];dwr.engine._batchesLength--;}_8d7.completed=true;if(dwr.engine._batchQueue.length!=0){var _8d8=dwr.engine._batchQueue.shift();dwr.engine._sendData(_8d8);}};dwr.engine._handleError=function(_8d9,ex){if(typeof ex=="string"){ex={name:"unknown",message:ex};}if(ex.message==null){ex.message="";}if(ex.name==null){ex.name="unknown";}if(_8d9&&typeof _8d9.errorHandler=="function"){_8d9.errorHandler(ex.message,ex);}else{if(dwr.engine._errorHandler){dwr.engine._errorHandler(ex.message,ex);}}dwr.engine._clearUp(_8d9);};dwr.engine._handleWarning=function(_8db,ex){if(typeof ex=="string"){ex={name:"unknown",message:ex};}if(ex.message==null){ex.message="";}if(ex.name==null){ex.name="unknown";}if(_8db&&typeof _8db.warningHandler=="function"){_8db.warningHandler(ex.message,ex);}else{if(dwr.engine._warningHandler){dwr.engine._warningHandler(ex.message,ex);}}dwr.engine._clearUp(_8db);};dwr.engine._serializeAll=function(_8dd,_8de,data,name){if(data==null){_8dd.map[name]="null:null";return;}switch(typeof data){case "boolean":_8dd.map[name]="boolean:"+data;break;case "number":_8dd.map[name]="number:"+data;break;case "string":_8dd.map[name]="string:"+encodeURIComponent(data);break;case "object":if(data instanceof String){_8dd.map[name]="String:"+encodeURIComponent(data);}else{if(data instanceof Boolean){_8dd.map[name]="Boolean:"+data;}else{if(data instanceof Number){_8dd.map[name]="Number:"+data;}else{if(data instanceof Date){_8dd.map[name]="Date:"+data.getTime();}else{if(data instanceof Array){_8dd.map[name]=dwr.engine._serializeArray(_8dd,_8de,data,name);}else{_8dd.map[name]=dwr.engine._serializeObject(_8dd,_8de,data,name);}}}}}break;case "function":break;default:dwr.engine._handleWarning(null,{name:"dwr.engine.unexpectedType",message:"Unexpected type: "+typeof data+", attempting default converter."});_8dd.map[name]="default:"+data;break;}};dwr.engine._lookup=function(_8e1,data,name){var _8e4;for(var i=0;i<_8e1.length;i++){if(_8e1[i].data==data){_8e4=_8e1[i];break;}}if(_8e4){return "reference:"+_8e4.name;}_8e1.push({data:data,name:name});return null;};dwr.engine._serializeObject=function(_8e6,_8e7,data,name){var ref=dwr.engine._lookup(_8e7,data,name);if(ref){return ref;}if(data.nodeName&&data.nodeType){return dwr.engine._serializeXml(_8e6,_8e7,data,name);}var _8eb="Object_"+dwr.engine._getObjectClassName(data)+":{";var _8ec;for(_8ec in data){_8e6.paramCount++;var _8ed="c"+dwr.engine._batch.map.callCount+"-e"+_8e6.paramCount;dwr.engine._serializeAll(_8e6,_8e7,data[_8ec],_8ed);_8eb+=encodeURIComponent(_8ec)+":reference:"+_8ed+", ";}if(_8eb.substring(_8eb.length-2)==", "){_8eb=_8eb.substring(0,_8eb.length-2);}_8eb+="}";return _8eb;};dwr.engine._errorClasses={"Error":Error,"EvalError":EvalError,"RangeError":RangeError,"ReferenceError":ReferenceError,"SyntaxError":SyntaxError,"TypeError":TypeError,"URIError":URIError};dwr.engine._getObjectClassName=function(obj){if(obj&&obj.constructor&&obj.constructor.toString){var str=obj.constructor.toString();var _8f0=str.match(/function\s+(\w+)/);if(_8f0&&_8f0.length==2){return _8f0[1];}}if(obj&&obj.constructor){for(var _8f1 in dwr.engine._errorClasses){if(obj.constructor==dwr.engine._errorClasses[_8f1]){return _8f1;}}}if(obj){var str=Object.prototype.toString.call(obj);var _8f0=str.match(/\[object\s+(\w+)/);if(_8f0&&_8f0.length==2){return _8f0[1];}}return "Object";};dwr.engine._serializeXml=function(_8f2,_8f3,data,name){var ref=dwr.engine._lookup(_8f3,data,name);if(ref){return ref;}var _8f7;if(window.XMLSerializer){_8f7=new XMLSerializer().serializeToString(data);}else{if(data.toXml){_8f7=data.toXml;}else{_8f7=data.innerHTML;}}return "XML:"+encodeURIComponent(_8f7);};dwr.engine._serializeArray=function(_8f8,_8f9,data,name){var ref=dwr.engine._lookup(_8f9,data,name);if(ref){return ref;}var _8fd="Array:[";for(var i=0;i<data.length;i++){if(i!=0){_8fd+=",";}_8f8.paramCount++;var _8ff="c"+dwr.engine._batch.map.callCount+"-e"+_8f8.paramCount;dwr.engine._serializeAll(_8f8,_8f9,data[i],_8ff);_8fd+="reference:";_8fd+=_8ff;}_8fd+="]";return _8fd;};dwr.engine._unserializeDocument=function(xml){var dom;if(window.DOMParser){var _902=new DOMParser();dom=_902.parseFromString(xml,"text/xml");if(!dom.documentElement||dom.documentElement.tagName=="parsererror"){var _903=dom.documentElement.firstChild.data;_903+="\n"+dom.documentElement.firstChild.nextSibling.firstChild.data;throw _903;}return dom;}else{if(window.ActiveXObject){dom=dwr.engine._newActiveXObject(dwr.engine._DOMDocument);dom.loadXML(xml);return dom;}else{var div=document.createElement("div");div.innerHTML=xml;return div;}}};dwr.engine._newActiveXObject=function(_905){var _906;for(var i=0;i<_905.length;i++){try{_906=new ActiveXObject(_905[i]);break;}catch(ex){}}return _906;};dwr.engine._debug=function(_908,_909){var _90a=false;try{if(window.console){if(_909&&window.console.trace){window.console.trace();}window.console.log(_908);_90a=true;}else{if(window.opera&&window.opera.postError){window.opera.postError(_908);_90a=true;}}}catch(ex){}if(!_90a){var _90b=document.getElementById("dwr-debug");if(_90b){var _90c=_908+"<br/>"+_90b.innerHTML;if(_90c.length>2048){_90c=_90c.substring(0,2048);}_90b.innerHTML=_90c;}}};if(dwr==null){var dwr={};}if(dwr.engine==null){dwr.engine={};}if(DWREngine==null){var DWREngine=dwr.engine;}dwr.engine._defaultPath="/dwr";if(WebUserInterface==null){var WebUserInterface={};}WebUserInterface._path="/dwr";WebUserInterface.createSession=function(p1,_90e){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","createSession",false,p1,_90e);};WebUserInterface.afterPropertiesSet=function(_90f){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","afterPropertiesSet",_90f);};WebUserInterface.logout=function(_910){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","logout",false,_910);};WebUserInterface.sendPasswordReminderEmail=function(p1,p2,_913){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","sendPasswordReminderEmail",false,p1,p2,_913);};WebUserInterface.setHttpSessionMapper=function(p0,_915){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","setHttpSessionMapper",p0,_915);};WebUserInterface.setYyiUserManager=function(p0,_917){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","setYyiUserManager",p0,_917);};WebUserInterface.login=function(p1,p2,_91a){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","login",false,p1,p2,_91a);};WebUserInterface.addUser=function(p1,_91c){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","addUser",false,p1,_91c);};WebUserInterface.resendActivationEmail=function(p1,p2,_91f){dwr.engine._execute(WebUserInterface._path,"WebUserInterface","resendActivationEmail",false,p1,p2,_91f);};dojo.require("dojox.crypto.MD5");dojo.require("dojo.cookie");function SecurityManager(){this.GUEST_USERNAME="guest";this.userName=this.GUEST_USERNAME;this.SESSION_EVENT="SESSION_CHANGE_EVENT";this.sessionId=null;this.authenticated=false;this._remember=null;this.login=function(_920){this._remember=_920.remme.length;try{WebUserInterface.login(_920.user,_920.pwd,{callback:dojo.hitch(this,this._onLogin),errorHandler:dojo.hitch(this,this._onLoginError)});}catch(ex){console.debug("Pretending to login...");this._onLogin(_920.user);}};this._onLoginError=function(msg,ex){this._clearSessionCookie();if(ex.javaClassName&&ex.javaClassName.indexOf("ActivationException")>0){alert("Unable to login! Did you activate your account?"+"\nAfter signing up, you should have received an activation email with a link to click on.\n"+"Check your inbox for the activation email or request a new activation email\n"+"by clicking on the 'send activation e-mail again' link in the login dialog.");}else{alert("Unable to login!\nCheck spelling and case of your user name and password.");}mainAppController.showLoginPanel();};this._onLogin=function(_923){this.userName=_923;this.authenticated=true;if(this._remember){this._saveSessionToCookie();}else{this._clearSessionCookie();}console.debug("onLogin ["+_923+"]");dojo.publish(this.SESSION_EVENT);};this._onLogout=function(){console.debug("onLogout ["+this.userName+"]");this.userName=this.GUEST_USERNAME;this.authenticated=false;this.sessionId=null;dojo.publish(this.SESSION_EVENT);};this.logout=function(){try{WebUserInterface.logout({callback:dojo.hitch(this,this._onLogout),timeout:10000,errorHandler:dojo.hitch(this,this._onLogout)});}catch(ex){this._onLogout();}};this._onSessionCreated=function(key){this.sessionId=key;if(key.indexOf("revived:")==0){console.debug("page refreshed but http session same");var _925=key.substr("revived:".length).split(",");this.sessionId=_925[1];this._remember=this._getOldSessionIdFromCookie();this._onLogin(_925[0]);}else{if(this._getOldSessionIdFromCookie()==key){console.debug("auto login");this._remember=true;this._onLogin(this.getOldUserNameFromCookie());}else{console.debug("session ["+key+"] created");dojo.publish(this.SESSION_EVENT);}}};this._getOldSessionIdFromCookie=function(){return dojo.cookie("YYI-Session-ID");};this.getOldUserNameFromCookie=function(){return dojo.cookie("YYI-User-Name");};this._saveSessionToCookie=function(){dojo.cookie("YYI-User-Name",this.userName,{expires:99});dojo.cookie("YYI-Session-ID",this.sessionId,{expires:99});};this._clearSessionCookie=function(){dojo.cookie("YYI-User-Name","");dojo.cookie("YYI-Session-ID","");};this.createSession=function(){try{WebUserInterface.createSession(this._getOldSessionIdFromCookie(),{callback:dojo.hitch(this,this._onSessionCreated),async:false,timeout:8172});}catch(ex){alert("Creating dummy session instead.");this._clearSessionCookie();this._onSessionCreated("dummySessionKeyIDABCDE1234567890");}};this.isLoggedIn=function(){return this.authenticated;};};dojo.require("dijit.TitlePane");dojo.require("dojox.layout.ContentPane");dojo.require("dojox.collections.Dictionary");dojo.require("dojox.widget.Toaster");dojo.require("dijit.Dialog");g_IMAGE_SIZE=40;g_ContentPaneUuidCounter=1006;g_createContentPane=function(_926){var _927=new dojox.layout.ContentPane({scriptHasHooks:true,renderStyles:true,parameters:_926.parameters},dojo.doc.createElement("div"));var old=dojox.layout.ContentPane.prototype.setContent;_927.setContent=function(cont){if(_927._isDownloaded){g_ContentPaneUuidCounter++;var _92a=cont.replace(/_uuid_(?!\s*=[^=])/g,g_ContentPaneUuidCounter);old.call(this,_92a);}};_927.uninitialize=function(){this.destroyDescendants();};_927.setHref(_926.url);return _927;};g_installStandardOnUnload=function(_92b,_92c){_92b.onUnload=function(){if(dojo.isFunction(_92c.finalize)){_92c.finalize();}delete _92c;};};g_addOnLoad=function(_92d,func){if(dojo.isIE){dojo.addOnLoad(func);}else{_92d.onLoadDeferred.addCallback(func);}};g_createApplet=function(_92f){var _930=new dijit.TitlePane({title:_92f.title},dojo.doc.createElement("div"));_930.domNode.style.margin="3px";_930.domNode.style.padding="3px";var _931=g_createContentPane(_92f);_930.setContent(_931.domNode);return _930;};g_showGroupEditor=function(_932){yoyoUtil.showYoYoToasterMessage("Loading Groups...");g_showAppletInTab({url:"gadgets/buddies/Buddies.html",parameters:{userName:securityManager.userName,callback:_932,tabName:"Groups",tabGroup:"groups",replace:true}});};g_showProfile=function(_933){yoyoUtil.showYoYoToasterMessage("Loading Profile...");g_showAppletInTab({url:"gadgets/profile/Profile.html",parameters:{userName:_933||securityManager.userName,tabName:"Profile of "+(_933||securityManager.userName),tabGroup:"profile",replace:true}});};g_showBookOfMe=function(_934){yoyoUtil.showYoYoToasterMessage("Loading Book of Me...");g_showAppletInTab({url:"gadgets/profile/BookOfMe.html",parameters:{userName:_934||securityManager.userName,tabName:"Book of "+(_934||securityManager.userName),tabGroup:"bom",replace:true}});};g_showBuddyDesktop=function(_935){yoyoUtil.showYoYoToasterMessage("Loading "+_935+"'s user page...");var _936={userName:_935,replace:true};if(_935===securityManager.userName){_936.tabGroup="MyDesktop";_936.tabName="My Desktop";_936.closable=false;}else{_936.tabGroup="BuddyDesktop";_936.tabName="User page of "+_935;}g_showAppletInTab({url:"gadgets/buddies/BuddyDesktop.html",parameters:_936});};g_showSubscribePage=function(){g_showAppletInTab({url:"gadgets/subscribe/subscribe.html",parameters:{tabName:"YoYo! Signup",tabGroup:"signup",replace:true}});};g_showBuddyBlogs=function(_937){yoyoUtil.showAppToasterMessage("Reading Blogs...");g_showAppletInTab({url:"gadgets/blogger/blogLists.html",parameters:{userName:_937||securityManager.userName,tabName:"Buddy's Blogs",tabGroup:"buddyblogs",replace:true}});};g_showBlockAccess=function(_938,_939,_93a,_93b){yoyoUtil.showAppToasterMessage("Opening Access page...");g_showAppletInTab({url:"gadgets/access/accessPage.html",parameters:{objectDescription:_93a,objectId:_939,objectAction:_938,tabName:"Block Access",tabGroup:"blockaccess",replace:true}});};g_showPeopleList=function(){yoyoUtil.showAppToasterMessage("Build Your Network...");g_showAppletInTab({url:"gadgets/buddies/findBuddies.html",parameters:{tabName:"Network",tabGroup:"network",replace:true}});};g_showBuddyList=function(_93c){yoyoUtil.showAppToasterMessage("Retrieving Blogs...");g_showAppletInTab({url:"gadgets/buddies/BuddiesList.html",parameters:{userName:_93c||securityManager.userName,tabName:"Buddies",tabGroup:"buddies",replace:true}});};g_showBlogList=function(){yoyoUtil.showAppToasterMessage("Retrieving Blogs...");g_showAppletInTab({url:"gadgets/blogger/blogLists.html",parameters:{tabName:"Blogs",tabGroup:"ext-blogger",replace:true}});};g_showFrontPage=function(){yoyoUtil.showAppToasterMessage("Loading Welcome Page...");g_showAppletInTab({url:"gadgets/admin/FrontPage.html",parameters:{replace:true,closable:securityManager.isLoggedIn(),tabGroup:"frontpage",tabName:"YoYoIndia!"}});};g_showSearch=function(){yoyoUtil.showAppToasterMessage("Search for Buddies...");g_showAppletInTab({url:"gadgets/membersearch/search.html",parameters:{tabName:"Search",tabGroup:"search",replace:true}});};g_showNotifications=function(){yoyoUtil.showAppToasterMessage("Displaying Notifications...");g_showAppletInTab({url:"gadgets/messaging/MessageMain.html",parameters:{tabName:"Messages",tabGroup:"notifications",replace:true}});};g_showAppletInTab=function(_93d){if(_93d.url==null){return;}var pane=g_createContentPane(_93d);pane.title=_93d.parameters.tabName;if(yoyoUtil.isDefined(_93d.parameters,"closable")){pane.closable=_93d.parameters.closable;}else{pane.closable=true;}pane.isLoaded=true;var _93f=yoyoUtil.isDefined(_93d.parameters,"replace")&&_93d.parameters.replace;var _940=yoyoUtil.isDefined(_93d.parameters,"tabGroup")?_93d.parameters.tabGroup:_93d.parameters.tabName;g_showInDetailTab(pane,_940,_93f);return pane;};g_closeDetailTab=function(_941){if(_941.isLoaded){mainAppController._view.appletTabContainer.closeChild(_941);}if(yoyoUtil.isDefined(mainAppController._view.appletTabContainer,"tabMap")){if(mainAppController._view.appletTabContainer.tabMap.containsValue(_941)){var e=mainAppController._view.appletTabContainer.tabMap.getIterator();while(e.get()){if(e.element.value==_941){mainAppController._view.appletTabContainer.tabMap.remove(e.element.key);return;}}}}};g_removeDetailTab=function(_943){if(_943){if(yoyoUtil.isDefined(mainAppController._view.appletTabContainer,"tabMap")&&mainAppController._view.appletTabContainer.tabMap.containsKey(_943)){var _944=mainAppController._view.appletTabContainer.tabMap.item(_943);g_closeDetailTab(_944);}}else{while(mainAppController._view.appletTabContainer.getChildren().length>1){var _945=mainAppController._view.appletTabContainer.getChildren()[1];mainAppController._view.appletTabContainer.closeChild(_945);}}};g_showInDetailTab=function(_946,_947,_948){if(!yoyoUtil.isDefined(mainAppController._view.appletTabContainer,"tabMap")){mainAppController._view.appletTabContainer.tabMap=new dojox.collections.Dictionary();}if(_947){if(_948&&mainAppController._view.appletTabContainer.tabMap.containsKey(_947)){var _949=mainAppController._view.appletTabContainer.tabMap.item(_947);g_closeDetailTab(_949);}mainAppController._view.appletTabContainer.tabMap.add(_947,_946);}mainAppController._view.appletTabContainer.addChild(_946);mainAppController._view.appletTabContainer.selectChild(_946);mainAppController._view.appletTabContainer.layout();dojo.publish("EVENT:LOAD_NEW_ADVERT");};g_userImage=function(_94a,_94b,_94c){if(_94a.parentNode==null){throw "image has no parent...";}if(!_94b.indexOf("guest")==0){if(_94b===securityManager.userName){dojo.addClass(_94a.parentNode,"pic-thumb");_94a.onclick=dojo.hitch(null,g_showProfile,_94b);_94a.title="Show full profile of "+_94b;}else{dojo.addClass(_94a.parentNode,"pic-thumb");if(_94c=="profile"){_94a.onclick=dojo.hitch(null,g_showProfile,_94b);_94a.title="Show full profile of "+_94b;}else{_94a.onclick=dojo.hitch(null,g_showBuddyDesktop,_94b);_94a.title="Goto page of "+_94b;}}_94a.onmouseover=function(){dojo.addClass(this,"hover");};_94a.onmouseout=function(){dojo.removeClass(this,"hover");};}};_resizeImage=function(_94d,_94e,_94f){if(_94d.height>_94f||_94d.width>_94e){var _950=_94e/_94f;var _951=_94d.width;var _952=_94d.height;if(_951/_952>_950){_94d.style.width=_94e;_94d.style.height=_952*_94e/_951;}else{_94d.style.height=_94f;_94d.style.width=_951*_94f/_952;}}else{_94d.style.height="";_94d.style.width="";}_94d.style.display="";};g_setPreferedSize=function(node,w,h){if(node.attributes.getNamedItem("preferedHeight")||node.attributes.getNamedItem("preferedWidth")){var _956=1000;var _957=1000;if(node.attributes.getNamedItem("preferedWidth")&&node.attributes.getNamedItem("preferedWidth").value){_956=node.attributes.getNamedItem("preferedWidth").value;}if(node.attributes.getNamedItem("preferedHeight")&&node.attributes.getNamedItem("preferedHeight").value){_957=node.attributes.getNamedItem("preferedHeight").value;}g_resizeImage(node,_956,_957);}};g_centerImage=function(_958){if(_958==null||_958.parentNode==null){return;}var w=(_958.parentNode.clientWidth-_958.scrollWidth)/2;var h=(_958.parentNode.clientHeight-_958.scrollHeight)/2;if(w>0){_958.style.marginLeft=w;_958.style.marginRight=w;}if(h>0){_958.style.marginTop=h;_958.style.marginBottom=h;}};g_resizeImage=function(_95b,w,h){if(_95b.complete){_resizeImage(_95b,w,h);}else{if(typeof _95b["onload"]!="undefined"&&_95b.onload!=null){}_95b.onload=dojo.hitch(null,_resizeImage,_95b,w,h);}};g_showDetailImage=function(_95e){var _95f=null;if(_95e.attributes.getNamedItem("detailUrl")!=null){_95f=_95e.attributes.getNamedItem("detailUrl").value;}else{if(yoyoUtil.isDefined(_95e,"detailUrl")){_95f=_95e.detailUrl;}}if(_95f==null){return;}var _960=yoyoUtil.getDetailDialog();_960.show();var _961=dojo.doc.createElement("img");_961.style.width="700px";_961.style.height="500px";_961.style.overflow="hidden";_961.src="images/loading_wheel.gif";_960.setContent(_961);var div=dojo.doc.createElement("div");div.style.width="700px";div.style.height="500px";div.style.marginTop="auto";div.style.marginBottom="auto";div.style.marginLeft="auto";div.style.marginRight="auto";dojo.addClass(div,"detailPicture");var _963=dojo.doc.createElement("img");_963.onload=function(){_960.setContent(div);_resizeImage(this,660,450);g_centerImage(this);_960.layout();};_963.src=_95f;div.appendChild(_963);};function ReloadCalculator(_964){this._lastLoadReloadDate=new Date().getTime();var _965=60*1000;if(_964){this._lastLoadReloadDate=0;}this.canReload=function(){var _966=new Date().getTime();if(_966-this._lastLoadReloadDate>_965){this._lastLoadReloadDate=_966;return true;}return false;};};function TimerDebounce(_967,func,_969){this._timeout=_969;this._timerId=null;this._scope=_967;this._func=func;this.trigger=function(){if(this._timerId!=null){clearTimeout(this._timerId);}this._timerId=setTimeout(dojo.hitch(this,"_clearTimerAndCall"),this._timeout);};this._clearTimerAndCall=function(){this._timerId=null;this._scope[this._func].apply(this._scope,[]);};};g_resize_body=function(node){var body=dojo.body();if(body.clientWidth>1100){var marg=(body.clientWidth-1034);node.style.width="1034";node.style.marginRight=node.style.marginLeft=marg/2;}else{node.style.width="94%";node.style.marginRight=node.style.marginLeft="3%";}};function Util(){this.toasters=new Toaster();this.test=false;this._detailDialog=null;this.getDetailDialog=function(){if(this._detailDialog==null){var _96d=dojo.doc.createElement("div");_96d.style.width="750px";_96d.style.display="none";dojo.doc.body.appendChild(_96d);this._detailDialog=new dijit.Dialog({title:"YoYo India - Detail Picture"},_96d);}return this._detailDialog;};var _96e=function(_96f,node){dojo.forEach(node.childNodes,function(_971){if(_971.tagName&&_971.tagName.toLowerCase()=="img"){if(!_971.complete){_96f.push(_971);}}else{_96e(_96f,_971);}});};this.findImagesDownloading=function(node){var _973=[];_96e(_973,node);return _973;};this.setMaxHeight=function(node,_975){if(node==null){return;}if(!dojo.isIE){node.style.maxHeight=_975;node.style.overflowY="auto";return;}this._setMaxHeightLater(node,_975,20);};this._setMaxHeightLater=function(node,_977,_978){if(node.scrollHeight>_977){node.style.height=_977;node.style.overflowY="auto";return;}if(_978<0){return;}var _979=this.findImagesDownloading(node);if(_979.length>0){setTimeout(dojo.hitch(this,this._setMaxHeightLater,node,_977,_978--),200);}};this._setMaxHeight=function(node,_97b){if(node.scrollHeight>_97b){node.style.height=_97b;node.style.overflowY="auto";}};this.setupTest=function(_97c){securityManager.authenticated=true;yoyoUtil.test=true;mainAppController={_view:{appletTabContainer:_97c}};};this.trim=function(str){if(str==null){return null;}return dojo.string.trim(str);};this.blankFunc=function(){};this.showYoYoToasterMessage=function(_97e){this.toasters.showToaster(this.toasters.yoyoMessage,_97e);};this.showAppToasterMessage=function(_97f){this.toasters.showToaster(this.toasters.applicationMessage,_97f);};this.extractNames=function(_980){var _981=[];for(var name in _980){_981.push(name);}return _981;};this.isDefined=function(obj,prop){return !(typeof obj[prop]=="undefined");};function _985(that){var b=dojo.body();that.view.glassPane=document.createElement("div");that.view.glassPane.className="dialogUnderlay";with(that.view.glassPane.style){position="absolute";left=top="0px";zIndex=777;display="none";}b.appendChild(that.view.glassPane);};this.getSearchParams=function(_988){var _989={};var qstr=_988.substr(1);if(qstr.length){var _98b=qstr.split("&");for(var x=0;x<_98b.length;x++){var tp=_98b[x].split("=");_989[tp[0]]=tp[1];}}return _989;};this.configureAjaxAsyncHooks=function(){if(typeof dwr!="undefined"){dwr.engine.setPreHook(function(){document.body.style.cursor="wait";});dwr.engine.setPostHook(function(){document.body.style.cursor="default";});}};this.raiseShield=function(that){dojo.html.setOpacity(that.view.accordionMenu.domNode,0.5);var _98f=dojo.html.getViewport();var h=_98f.height;var w=_98f.width;with(that.view.glassPane.style){width=w+"px";height=h+"px";}dojo.html.show(that.view.glassPane);};this.lowerShield=function(that){dojo.html.setOpacity(that.view.accordionMenu.domNode,1);dojo.html.hide(that.view.glassPane);};};dojo.require("dojox.widget.Toaster");function Toaster(){this._toaster1=null;this._toaster2=null;this._timerID=null;this.applicationMessage="applicationMessage";this.yoyoMessage="yoyoMessage";if(this._toaster1==null){this._toaster1=new dojox.widget.Toaster({separator:"<hr>",positionDirection:"br-left",duration:"1500",messageTopic:"yoyoMessage"},dojo.doc.createElement("div"));dojo.body().appendChild(this._toaster1.domNode);this._toaster2=new dojox.widget.Toaster({separator:"<hr>",positionDirection:"bl-up",duration:"1500",messageTopic:"applicationMessage"},dojo.doc.createElement("div"));dojo.body().appendChild(this._toaster2.domNode);}this.showToaster=function(_993,_994){var _995=2800;if(this._timerID>0){clearTimeout(this._timerID);this._timerID=0;}this._toaster1.domNode.style.zIndex="5000";this._toaster2.domNode.style.zIndex="5000";if(_993==="applicationMessage"){dojo.publish(_993,[{message:_994,duration:1300}]);}else{dojo.publish(_993,[{message:_994,type:"warning",duration:1300}]);}var _996=this;this._timerID=setTimeout(function(){if(dojo.isObject(_996._toaster1.domNode)&&_996._toaster1.domNode!=null){_996._toaster1.domNode.style.zIndex="-1";}if(dojo.isObject(_996._toaster2.domNode)&&_996._toaster1.domNode!=null){_996._toaster2.domNode.style.zIndex="-1";}},_995);};};