if(typeof dojo=="undefined"){var dj_global=this;function dj_undef(_1,_2){if(_2==null){_2=dj_global;}return (typeof _2[_1]=="undefined");}if(dj_undef("djConfig")){var djConfig={};}if(dj_undef("dojo")){var dojo={};}dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 4342 $".match(/[0-9]+/)[0]),toString:function(){with(dojo.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};dojo.evalProp=function(_3,_4,_5){return (_4&&!dj_undef(_3,_4)?_4[_3]:(_5?(_4[_3]={}):undefined));};dojo.parseObjPath=function(_6,_7,_8){var _9=(_7!=null?_7:dj_global);var _a=_6.split(".");var _b=_a.pop();for(var i=0,l=_a.length;i<l&&_9;i++){_9=dojo.evalProp(_a[i],_9,_8);}return {obj:_9,prop:_b};};dojo.evalObjPath=function(_d,_e){if(typeof _d!="string"){return dj_global;}if(_d.indexOf(".")==-1){return dojo.evalProp(_d,dj_global,_e);}var _f=dojo.parseObjPath(_d,dj_global,_e);if(_f){return dojo.evalProp(_f.prop,_f.obj,_e);}return null;};dojo.errorToString=function(_10){if(!dj_undef("message",_10)){return _10.message;}else{if(!dj_undef("description",_10)){return _10.description;}else{return _10;}}};dojo.raise=function(_11,_12){if(_12){_11=_11+": "+dojo.errorToString(_12);}try{dojo.hostenv.println("FATAL: "+_11);}catch(e){}throw Error(_11);};dojo.debug=function(){};dojo.debugShallow=function(obj){};dojo.profile={start:function(){},end:function(){},stop:function(){},dump:function(){}};function dj_eval(_14){return dj_global.eval?dj_global.eval(_14):eval(_14);}dojo.unimplemented=function(_15,_16){var _17="'"+_15+"' not implemented";if(_16!=null){_17+=" "+_16;}dojo.raise(_17);};dojo.deprecated=function(_18,_19,_1a){var _1b="DEPRECATED: "+_18;if(_19){_1b+=" "+_19;}if(_1a){_1b+=" -- will be removed in version: "+_1a;}dojo.debug(_1b);};dojo.inherits=function(_1c,_1d){if(typeof _1d!="function"){dojo.raise("dojo.inherits: superclass argument ["+_1d+"] must be a function (subclass: ["+_1c+"']");}_1c.prototype=new _1d();_1c.prototype.constructor=_1c;_1c.superclass=_1d.prototype;_1c["super"]=_1d.prototype;};dojo.render=(function(){function vscaffold(_1e,_1f){var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1e};for(var _21 in _1f){tmp[_21]=false;}return tmp;}return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};})();dojo.hostenv=(function(){var _22={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};if(typeof djConfig=="undefined"){djConfig=_22;}else{for(var _23 in _22){if(typeof djConfig[_23]=="undefined"){djConfig[_23]=_22[_23];}}}return {name_:"(unset)",version_:"(unset)",getName:function(){return this.name_;},getVersion:function(){return this.version_;},getText:function(uri){dojo.unimplemented("getText","uri="+uri);}};})();dojo.hostenv.getBaseScriptUri=function(){if(djConfig.baseScriptUri.length){return djConfig.baseScriptUri;}var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);if(!uri){dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);}var _26=uri.lastIndexOf("/");djConfig.baseScriptUri=djConfig.baseRelativePath;return djConfig.baseScriptUri;};(function(){var _27={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_28,_29){this.modulePrefixes_[_28]={name:_28,value:_29};},getModulePrefix:function(_2a){var mp=this.modulePrefixes_;if((mp[_2a])&&(mp[_2a]["name"])){return mp[_2a].value;}return _2a;},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};for(var _2c in _27){dojo.hostenv[_2c]=_27[_2c];}})();dojo.hostenv.loadPath=function(_2d,_2e,cb){var uri;if((_2d.charAt(0)=="/")||(_2d.match(/^\w+:/))){uri=_2d;}else{uri=this.getBaseScriptUri()+_2d;}if(djConfig.cacheBust&&dojo.render.html.capable){uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");}try{return ((!_2e)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb));}catch(e){dojo.debug(e);return false;}};dojo.hostenv.loadUri=function(uri,cb){if(this.loadedUris[uri]){return 1;}var _33=this.getText(uri,null,true);if(_33==null){return 0;}this.loadedUris[uri]=true;if(cb){_33="("+_33+")";}var _34=dj_eval(_33);if(cb){cb(_34);}return 1;};dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){var ok=true;try{ok=this.loadUri(uri,cb);}catch(e){dojo.debug("failed loading ",uri," with error: ",e);}return ((ok)&&(this.findModule(_36,false)))?true:false;};dojo.loaded=function(){};dojo.unloaded=function(){};dojo.hostenv.loaded=function(){this.loadNotifying=true;this.post_load_=true;var mll=this.modulesLoadedListeners;for(var x=0;x<mll.length;x++){mll[x]();}this.modulesLoadedListeners=[];this.loadNotifying=false;dojo.loaded();};dojo.hostenv.unloaded=function(){var mll=this.unloadListeners;while(mll.length){(mll.pop())();}dojo.unloaded();};dojo.addOnLoad=function(obj,_3d){var dh=dojo.hostenv;if(arguments.length==1){dh.modulesLoadedListeners.push(obj);}else{if(arguments.length>1){dh.modulesLoadedListeners.push(function(){obj[_3d]();});}}if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){dh.callLoaded();}};dojo.addOnUnload=function(obj,_40){var dh=dojo.hostenv;if(arguments.length==1){dh.unloadListeners.push(obj);}else{if(arguments.length>1){dh.unloadListeners.push(function(){obj[_40]();});}}};dojo.hostenv.modulesLoaded=function(){if(this.post_load_){return;}if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){if(this.inFlightCount>0){dojo.debug("files still in flight!");return;}dojo.hostenv.callLoaded();}};dojo.hostenv.callLoaded=function(){if(typeof setTimeout=="object"){setTimeout("dojo.hostenv.loaded();",0);}else{dojo.hostenv.loaded();}};dojo.hostenv.getModuleSymbols=function(_42){var _43=_42.split(".");for(var i=_43.length-1;i>0;i--){var _45=_43.slice(0,i).join(".");var _46=this.getModulePrefix(_45);if(_46!=_45){_43.splice(0,i,_46);break;}}return _43;};dojo.hostenv._global_omit_module_check=false;dojo.hostenv.loadModule=function(_47,_48,_49){if(!_47){return;}_49=this._global_omit_module_check||_49;var _4a=this.findModule(_47,false);if(_4a){return _4a;}if(dj_undef(_47,this.loading_modules_)){this.addedToLoadingCount.push(_47);}this.loading_modules_[_47]=1;var _4b=_47.replace(/\./g,"/")+".js";var _4c=this.getModuleSymbols(_47);var _4d=((_4c[0].charAt(0)!="/")&&(!_4c[0].match(/^\w+:/)));var _4e=_4c[_4c.length-1];var _4f=_47.split(".");if(_4e=="*"){_47=(_4f.slice(0,-1)).join(".");while(_4c.length){_4c.pop();_4c.push(this.pkgFileName);_4b=_4c.join("/")+".js";if(_4d&&(_4b.charAt(0)=="/")){_4b=_4b.slice(1);}ok=this.loadPath(_4b,((!_49)?_47:null));if(ok){break;}_4c.pop();}}else{_4b=_4c.join("/")+".js";_47=_4f.join(".");var ok=this.loadPath(_4b,((!_49)?_47:null));if((!ok)&&(!_48)){_4c.pop();while(_4c.length){_4b=_4c.join("/")+".js";ok=this.loadPath(_4b,((!_49)?_47:null));if(ok){break;}_4c.pop();_4b=_4c.join("/")+"/"+this.pkgFileName+".js";if(_4d&&(_4b.charAt(0)=="/")){_4b=_4b.slice(1);}ok=this.loadPath(_4b,((!_49)?_47:null));if(ok){break;}}}if((!ok)&&(!_49)){dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");}}if(!_49&&!this["isXDomain"]){_4a=this.findModule(_47,false);if(!_4a){dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");}}return _4a;};dojo.hostenv.startPackage=function(_51){var _52=dojo.evalObjPath((_51.split(".").slice(0,-1)).join("."));this.loaded_modules_[(new String(_51)).toLowerCase()]=_52;var _53=_51.split(/\./);if(_53[_53.length-1]=="*"){_53.pop();}return dojo.evalObjPath(_53.join("."),true);};dojo.hostenv.findModule=function(_54,_55){var lmn=(new String(_54)).toLowerCase();if(this.loaded_modules_[lmn]){return this.loaded_modules_[lmn];}var _57=dojo.evalObjPath(_54);if((_54)&&(typeof _57!="undefined")&&(_57)){this.loaded_modules_[lmn]=_57;return _57;}if(_55){dojo.raise("no loaded module named '"+_54+"'");}return null;};dojo.kwCompoundRequire=function(_58){var _59=_58["common"]||[];var _5a=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]);for(var x=0;x<_5a.length;x++){var _5c=_5a[x];if(_5c.constructor==Array){dojo.hostenv.loadModule.apply(dojo.hostenv,_5c);}else{dojo.hostenv.loadModule(_5c);}}};dojo.require=function(){dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);};dojo.requireIf=function(){if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){var _5d=[];for(var i=1;i<arguments.length;i++){_5d.push(arguments[i]);}dojo.require.apply(dojo,_5d);}};dojo.requireAfterIf=dojo.requireIf;dojo.provide=function(){return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);};dojo.setModulePrefix=function(_5f,_60){return dojo.hostenv.setModulePrefix(_5f,_60);};dojo.exists=function(obj,_62){var p=_62.split(".");for(var i=0;i<p.length;i++){if(!(obj[p[i]])){return false;}obj=obj[p[i]];}return true;};}if(typeof window=="undefined"){dojo.raise("no window object");}(function(){if(djConfig.allowQueryConfig){var _65=document.location.toString();var _66=_65.split("?",2);if(_66.length>1){var _67=_66[1];var _68=_67.split("&");for(var x in _68){var sp=_68[x].split("=");if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){var opt=sp[0].substr(9);try{djConfig[opt]=eval(sp[1]);}catch(e){djConfig[opt]=sp[1];}}}}}if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){var _6c=document.getElementsByTagName("script");var _6d=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;for(var i=0;i<_6c.length;i++){var src=_6c[i].getAttribute("src");if(!src){continue;}var m=src.match(_6d);if(m){var _71=src.substring(0,m.index);if(src.indexOf("bootstrap1")>-1){_71+="../";}if(!this["djConfig"]){djConfig={};}if(djConfig["baseScriptUri"]==""){djConfig["baseScriptUri"]=_71;}if(djConfig["baseRelativePath"]==""){djConfig["baseRelativePath"]=_71;}break;}}}var dr=dojo.render;var drh=dojo.render.html;var drs=dojo.render.svg;var dua=drh.UA=navigator.userAgent;var dav=drh.AV=navigator.appVersion;var t=true;var f=false;drh.capable=t;drh.support.builtin=t;dr.ver=parseFloat(drh.AV);dr.os.mac=dav.indexOf("Macintosh")>=0;dr.os.win=dav.indexOf("Windows")>=0;dr.os.linux=dav.indexOf("X11")>=0;drh.opera=dua.indexOf("Opera")>=0;drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);drh.safari=dav.indexOf("Safari")>=0;var _79=dua.indexOf("Gecko");drh.mozilla=drh.moz=(_79>=0)&&(!drh.khtml);if(drh.mozilla){drh.geckoVersion=dua.substring(_79+6,_79+14);}drh.ie=(document.all)&&(!drh.opera);drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;dojo.locale=(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();dr.vml.capable=drh.ie;drs.capable=f;drs.support.plugin=f;drs.support.builtin=f;if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){drs.capable=t;drs.support.builtin=t;drs.support.plugin=f;}})();dojo.hostenv.startPackage("dojo.hostenv");dojo.render.name=dojo.hostenv.name_="browser";dojo.hostenv.searchIds=[];dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];dojo.hostenv.getXmlhttpObject=function(){var _7a=null;var _7b=null;try{_7a=new XMLHttpRequest();}catch(e){}if(!_7a){for(var i=0;i<3;++i){var _7d=dojo.hostenv._XMLHTTP_PROGIDS[i];try{_7a=new ActiveXObject(_7d);}catch(e){_7b=e;}if(_7a){dojo.hostenv._XMLHTTP_PROGIDS=[_7d];break;}}}if(!_7a){return dojo.raise("XMLHTTP not available",_7b);}return _7a;};dojo.hostenv.getText=function(uri,_7f,_80){var _81=this.getXmlhttpObject();if(_7f){_81.onreadystatechange=function(){if(4==_81.readyState){if((!_81["status"])||((200<=_81.status)&&(300>_81.status))){_7f(_81.responseText);}}};}_81.open("GET",uri,_7f?true:false);try{_81.send(null);if(_7f){return null;}if((_81["status"])&&((200>_81.status)||(300<=_81.status))){throw Error("Unable to load "+uri+" status:"+_81.status);}}catch(e){if((_80)&&(!_7f)){return null;}else{throw e;}}return _81.responseText;};dojo.hostenv.defaultDebugContainerId="dojoDebug";dojo.hostenv._println_buffer=[];dojo.hostenv._println_safe=false;dojo.hostenv.println=function(_82){if(!dojo.hostenv._println_safe){dojo.hostenv._println_buffer.push(_82);}else{try{var _83=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);if(!_83){_83=document.getElementsByTagName("body")[0]||document.body;}var div=document.createElement("div");div.appendChild(document.createTextNode(_82));_83.appendChild(div);}catch(e){try{document.write("<div>"+_82+"</div>");}catch(e2){window.status=_82;}}}};dojo.addOnLoad(function(){dojo.hostenv._println_safe=true;while(dojo.hostenv._println_buffer.length>0){dojo.hostenv.println(dojo.hostenv._println_buffer.shift());}});function dj_addNodeEvtHdlr(_85,_86,fp,_88){var _89=_85["on"+_86]||function(){};_85["on"+_86]=function(){fp.apply(_85,arguments);_89.apply(_85,arguments);};return true;}dj_addNodeEvtHdlr(window,"load",function(){if(arguments.callee.initialized){return;}arguments.callee.initialized=true;var _8a=function(){if(dojo.render.html.ie){dojo.hostenv.makeWidgets();}};if(dojo.hostenv.inFlightCount==0){_8a();dojo.hostenv.modulesLoaded();}else{dojo.addOnLoad(_8a);}});dj_addNodeEvtHdlr(window,"unload",function(){dojo.hostenv.unloaded();});dojo.hostenv.makeWidgets=function(){var _8b=[];if(djConfig.searchIds&&djConfig.searchIds.length>0){_8b=_8b.concat(djConfig.searchIds);}if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){_8b=_8b.concat(dojo.hostenv.searchIds);}if((djConfig.parseWidgets)||(_8b.length>0)){if(dojo.evalObjPath("dojo.widget.Parse")){var _8c=new dojo.xml.Parse();if(_8b.length>0){for(var x=0;x<_8b.length;x++){var _8e=document.getElementById(_8b[x]);if(!_8e){continue;}var _8f=_8c.parseElement(_8e,null,true);dojo.widget.getParser().createComponents(_8f);}}else{if(djConfig.parseWidgets){var _8f=_8c.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);dojo.widget.getParser().createComponents(_8f);}}}}};dojo.addOnLoad(function(){if(!dojo.render.html.ie){dojo.hostenv.makeWidgets();}});try{if(dojo.render.html.ie){document.write("<style>v:*{ behavior:url(#default#VML); }</style>");document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");}}catch(e){}dojo.hostenv.writeIncludes=function(){};dojo.byId=function(id,doc){if(id&&(typeof id=="string"||id instanceof String)){if(!doc){doc=document;}return doc.getElementById(id);}return id;};(function(){if(typeof dj_usingBootstrap!="undefined"){return;}var _92=false;var _93=false;var _94=false;if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){_92=true;}else{if(typeof this["load"]=="function"){_93=true;}else{if(window.widget){_94=true;}}}var _95=[];if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){_95.push("debug.js");}if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_92)&&(!_94)){_95.push("browser_debug.js");}if((this["djConfig"])&&(djConfig["compat"])){_95.push("compat/"+djConfig["compat"]+".js");}var _96=djConfig["baseScriptUri"];if((this["djConfig"])&&(djConfig["baseLoaderUri"])){_96=djConfig["baseLoaderUri"];}for(var x=0;x<_95.length;x++){var _98=_96+"src/"+_95[x];if(_92||_93){load(_98);}else{try{document.write("<scr"+"ipt type='text/javascript' src='"+_98+"'></scr"+"ipt>");}catch(e){var _99=document.createElement("script");_99.src=_98;document.getElementsByTagName("head")[0].appendChild(_99);}}}})();dojo.fallback_locale="en";dojo.normalizeLocale=function(_9a){return _9a?_9a.toLowerCase():dojo.locale;};dojo.requireLocalization=function(_9b,_9c,_9d){dojo.debug("EXPERIMENTAL: dojo.requireLocalization");var _9e=dojo.hostenv.getModuleSymbols(_9b);var _9f=_9e.concat("nls").join("/");_9d=dojo.normalizeLocale(_9d);var _a0=_9d.split("-");var _a1=[];for(var i=_a0.length;i>0;i--){_a1.push(_a0.slice(0,i).join("-"));}if(_a1[_a1.length-1]!=dojo.fallback_locale){_a1.push(dojo.fallback_locale);}var _a3=[_9b,"_nls",_9c].join(".");var _a4=dojo.hostenv.startPackage(_a3);dojo.hostenv.loaded_modules_[_a3]=_a4;var _a5=false;for(var i=_a1.length-1;i>=0;i--){var loc=_a1[i];var pkg=[_a3,loc].join(".");var _a8=false;if(!dojo.hostenv.findModule(pkg)){dojo.hostenv.loaded_modules_[pkg]=null;var _a9=[_9f,loc,_9c].join("/")+".js";_a8=dojo.hostenv.loadPath(_a9,null,function(_aa){_a4[loc]=_aa;if(_a5){for(var x in _a5){if(!_a4[loc][x]){_a4[loc][x]=_a5[x];}}}});}else{_a8=true;}if(_a8&&_a4[loc]){_a5=_a4[loc];}}};dojo.provide("dojo.lang.common");dojo.require("dojo.lang");dojo.lang._mixin=function(obj,_ad){var _ae={};for(var x in _ad){if(typeof _ae[x]=="undefined"||_ae[x]!=_ad[x]){obj[x]=_ad[x];}}if(dojo.render.html.ie&&dojo.lang.isFunction(_ad["toString"])&&_ad["toString"]!=obj["toString"]){obj.toString=_ad.toString;}return obj;};dojo.lang.mixin=function(obj,_b1){for(var i=1,l=arguments.length;i<l;i++){dojo.lang._mixin(obj,arguments[i]);}return obj;};dojo.lang.extend=function(_b3,_b4){for(var i=1,l=arguments.length;i<l;i++){dojo.lang._mixin(_b3.prototype,arguments[i]);}return _b3;};dojo.lang.find=function(arr,val,_b8,_b9){if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){var a=arr;arr=val;val=a;}var _bb=dojo.lang.isString(arr);if(_bb){arr=arr.split("");}if(_b9){var _bc=-1;var i=arr.length-1;var end=-1;}else{var _bc=1;var i=0;var end=arr.length;}if(_b8){while(i!=end){if(arr[i]===val){return i;}i+=_bc;}}else{while(i!=end){if(arr[i]==val){return i;}i+=_bc;}}return -1;};dojo.lang.indexOf=dojo.lang.find;dojo.lang.findLast=function(arr,val,_c1){return dojo.lang.find(arr,val,_c1,true);};dojo.lang.lastIndexOf=dojo.lang.findLast;dojo.lang.inArray=function(arr,val){return dojo.lang.find(arr,val)>-1;};dojo.lang.isObject=function(wh){if(typeof wh=="undefined"){return false;}return (typeof wh=="object"||wh===null||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh));};dojo.lang.isArray=function(wh){return (wh instanceof Array||typeof wh=="array");};dojo.lang.isArrayLike=function(wh){if(dojo.lang.isString(wh)){return false;}if(dojo.lang.isFunction(wh)){return false;}if(dojo.lang.isArray(wh)){return true;}if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){return true;}return false;};dojo.lang.isFunction=function(wh){if(!wh){return false;}return (wh instanceof Function||typeof wh=="function");};dojo.lang.isString=function(wh){return (wh instanceof String||typeof wh=="string");};dojo.lang.isAlien=function(wh){if(!wh){return false;}return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));};dojo.lang.isBoolean=function(wh){return (wh instanceof Boolean||typeof wh=="boolean");};dojo.lang.isNumber=function(wh){return (wh instanceof Number||typeof wh=="number");};dojo.lang.isUndefined=function(wh){return ((wh==undefined)&&(typeof wh=="undefined"));};dojo.provide("dojo.lang.array");dojo.require("dojo.lang.common");dojo.lang.has=function(obj,_ce){try{return (typeof obj[_ce]!="undefined");}catch(e){return false;}};dojo.lang.isEmpty=function(obj){if(dojo.lang.isObject(obj)){var tmp={};var _d1=0;for(var x in obj){if(obj[x]&&(!tmp[x])){_d1++;break;}}return (_d1==0);}else{if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){return obj.length==0;}}};dojo.lang.map=function(arr,obj,_d5){var _d6=dojo.lang.isString(arr);if(_d6){arr=arr.split("");}if(dojo.lang.isFunction(obj)&&(!_d5)){_d5=obj;obj=dj_global;}else{if(dojo.lang.isFunction(obj)&&_d5){var _d7=obj;obj=_d5;_d5=_d7;}}if(Array.map){var _d8=Array.map(arr,_d5,obj);}else{var _d8=[];for(var i=0;i<arr.length;++i){_d8.push(_d5.call(obj,arr[i]));}}if(_d6){return _d8.join("");}else{return _d8;}};dojo.lang.forEach=function(_da,_db,_dc){if(dojo.lang.isString(_da)){_da=_da.split("");}if(Array.forEach){Array.forEach(_da,_db,_dc);}else{if(!_dc){_dc=dj_global;}for(var i=0,l=_da.length;i<l;i++){_db.call(_dc,_da[i],i,_da);}}};dojo.lang._everyOrSome=function(_de,arr,_e0,_e1){if(dojo.lang.isString(arr)){arr=arr.split("");}if(Array.every){return Array[(_de)?"every":"some"](arr,_e0,_e1);}else{if(!_e1){_e1=dj_global;}for(var i=0,l=arr.length;i<l;i++){var _e3=_e0.call(_e1,arr[i],i,arr);if((_de)&&(!_e3)){return false;}else{if((!_de)&&(_e3)){return true;}}}return (_de)?true:false;}};dojo.lang.every=function(arr,_e5,_e6){return this._everyOrSome(true,arr,_e5,_e6);};dojo.lang.some=function(arr,_e8,_e9){return this._everyOrSome(false,arr,_e8,_e9);};dojo.lang.filter=function(arr,_eb,_ec){var _ed=dojo.lang.isString(arr);if(_ed){arr=arr.split("");}if(Array.filter){var _ee=Array.filter(arr,_eb,_ec);}else{if(!_ec){if(arguments.length>=3){dojo.raise("thisObject doesn't exist!");}_ec=dj_global;}var _ee=[];for(var i=0;i<arr.length;i++){if(_eb.call(_ec,arr[i],i,arr)){_ee.push(arr[i]);}}}if(_ed){return _ee.join("");}else{return _ee;}};dojo.lang.unnest=function(){var out=[];for(var i=0;i<arguments.length;i++){if(dojo.lang.isArrayLike(arguments[i])){var add=dojo.lang.unnest.apply(this,arguments[i]);out=out.concat(add);}else{out.push(arguments[i]);}}return out;};dojo.lang.toArray=function(_f3,_f4){var _f5=[];for(var i=_f4||0;i<_f3.length;i++){_f5.push(_f3[i]);}return _f5;};dojo.provide("dojo.lang.extras");dojo.require("dojo.lang.common");dojo.lang.setTimeout=function(_f7,_f8){var _f9=window,argsStart=2;if(!dojo.lang.isFunction(_f7)){_f9=_f7;_f7=_f8;_f8=arguments[2];argsStart++;}if(dojo.lang.isString(_f7)){_f7=_f9[_f7];}var _fa=[];for(var i=argsStart;i<arguments.length;i++){_fa.push(arguments[i]);}return setTimeout(function(){_f7.apply(_f9,_fa);},_f8);};dojo.lang.getNameInObj=function(ns,_fd){if(!ns){ns=dj_global;}for(var x in ns){if(ns[x]===_fd){return new String(x);}}return null;};dojo.lang.shallowCopy=function(obj){var ret={},key;for(key in obj){if(dojo.lang.isUndefined(ret[key])){ret[key]=obj[key];}}return ret;};dojo.lang.firstValued=function(){for(var i=0;i<arguments.length;i++){if(typeof arguments[i]!="undefined"){return arguments[i];}}return undefined;};dojo.lang.getObjPathValue=function(_102,_103,_104){with(dojo.parseObjPath(_102,_103,_104)){return dojo.evalProp(prop,obj,_104);}};dojo.lang.setObjPathValue=function(_105,_106,_107,_108){if(arguments.length<4){_108=true;}with(dojo.parseObjPath(_105,_107,_108)){if(obj&&(_108||(prop in obj))){obj[prop]=_106;}}};dojo.provide("dojo.lang.func");dojo.require("dojo.lang.common");dojo.lang.hitch=function(_109,_10a){if(dojo.lang.isString(_10a)){var fcn=_109[_10a];}else{var fcn=_10a;}return function(){return fcn.apply(_109,arguments);};};dojo.lang.anonCtr=0;dojo.lang.anon={};dojo.lang.nameAnonFunc=function(_10c,_10d,_10e){var nso=(_10d||dojo.lang.anon);if((_10e)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){for(var x in nso){if(nso[x]===_10c){return x;}}}var ret="__"+dojo.lang.anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.lang.anonCtr++;}nso[ret]=_10c;return ret;};dojo.lang.forward=function(_112){return function(){return this[_112].apply(this,arguments);};};dojo.lang.curry=function(ns,func){var _115=[];ns=ns||dj_global;if(dojo.lang.isString(func)){func=ns[func];}for(var x=2;x<arguments.length;x++){_115.push(arguments[x]);}var _117=(func["__preJoinArity"]||func.length)-_115.length;function gather(_118,_119,_11a){var _11b=_11a;var _11c=_119.slice(0);for(var x=0;x<_118.length;x++){_11c.push(_118[x]);}_11a=_11a-_118.length;if(_11a<=0){var res=func.apply(ns,_11c);_11a=_11b;return res;}else{return function(){return gather(arguments,_11c,_11a);};}}return gather([],_115,_117);};dojo.lang.curryArguments=function(ns,func,args,_122){var _123=[];var x=_122||0;for(x=_122;x<args.length;x++){_123.push(args[x]);}return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_123));};dojo.lang.tryThese=function(){for(var x=0;x<arguments.length;x++){try{if(typeof arguments[x]=="function"){var ret=(arguments[x]());if(ret){return ret;}}}catch(e){dojo.debug(e);}}};dojo.lang.delayThese=function(farr,cb,_129,_12a){if(!farr.length){if(typeof _12a=="function"){_12a();}return;}if((typeof _129=="undefined")&&(typeof cb=="number")){_129=cb;cb=function(){};}else{if(!cb){cb=function(){};if(!_129){_129=0;}}}setTimeout(function(){(farr.shift())();cb();dojo.lang.delayThese(farr,cb,_129,_12a);},_129);};dojo.provide("dojo.event");dojo.require("dojo.lang.array");dojo.require("dojo.lang.extras");dojo.require("dojo.lang.func");dojo.event=new function(){this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);function interpolateArgs(args,_12c){var dl=dojo.lang;var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};switch(args.length){case 0:return;case 1:return;case 2:ao.srcFunc=args[0];ao.adviceFunc=args[1];break;case 3:if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){ao.adviceType="after";ao.srcObj=args[0];ao.srcFunc=args[1];ao.adviceFunc=args[2];}else{if((dl.isString(args[1]))&&(dl.isString(args[2]))){ao.srcFunc=args[1];ao.adviceFunc=args[2];}else{if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){ao.adviceType="after";ao.srcObj=args[0];ao.srcFunc=args[1];var _12f=dl.nameAnonFunc(args[2],ao.adviceObj,_12c);ao.adviceFunc=_12f;}else{if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){ao.adviceType="after";ao.srcObj=dj_global;var _12f=dl.nameAnonFunc(args[0],ao.srcObj,_12c);ao.srcFunc=_12f;ao.adviceObj=args[1];ao.adviceFunc=args[2];}}}}break;case 4:if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){ao.adviceType="after";ao.srcObj=args[0];ao.srcFunc=args[1];ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){ao.adviceType=args[0];ao.srcObj=dj_global;ao.srcFunc=args[1];ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){ao.adviceType=args[0];ao.srcObj=dj_global;var _12f=dl.nameAnonFunc(args[1],dj_global,_12c);ao.srcFunc=_12f;ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){ao.srcObj=args[1];ao.srcFunc=args[2];var _12f=dl.nameAnonFunc(args[3],dj_global,_12c);ao.adviceObj=dj_global;ao.adviceFunc=_12f;}else{if(dl.isObject(args[1])){ao.srcObj=args[1];ao.srcFunc=args[2];ao.adviceObj=dj_global;ao.adviceFunc=args[3];}else{if(dl.isObject(args[2])){ao.srcObj=dj_global;ao.srcFunc=args[1];ao.adviceObj=args[2];ao.adviceFunc=args[3];}else{ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;ao.srcFunc=args[1];ao.adviceFunc=args[2];ao.aroundFunc=args[3];}}}}}}break;case 6:ao.srcObj=args[1];ao.srcFunc=args[2];ao.adviceObj=args[3];ao.adviceFunc=args[4];ao.aroundFunc=args[5];ao.aroundObj=dj_global;break;default:ao.srcObj=args[1];ao.srcFunc=args[2];ao.adviceObj=args[3];ao.adviceFunc=args[4];ao.aroundObj=args[5];ao.aroundFunc=args[6];ao.once=args[7];ao.delay=args[8];ao.rate=args[9];ao.adviceMsg=args[10];break;}if(dl.isFunction(ao.aroundFunc)){var _12f=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_12c);ao.aroundFunc=_12f;}if(dl.isFunction(ao.srcFunc)){ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);}if(dl.isFunction(ao.adviceFunc)){ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);}if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);}if(!ao.srcObj){dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);}if(!ao.adviceObj){dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);}return ao;}this.connect=function(){if(arguments.length==1){var ao=arguments[0];}else{var ao=interpolateArgs(arguments,true);}if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){var _131={};for(var x in ao){_131[x]=ao[x];}var mjps=[];dojo.lang.forEach(ao.srcObj,function(src){if((dojo.render.html.capable)&&(dojo.lang.isString(src))){src=dojo.byId(src);}_131.srcObj=src;mjps.push(dojo.event.connect.call(dojo.event,_131));});return mjps;}var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);if(ao.adviceFunc){var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);}mjp.kwAddAdvice(ao);return mjp;};this.log=function(a1,a2){var _139;if((arguments.length==1)&&(typeof a1=="object")){_139=a1;}else{_139={srcObj:a1,srcFunc:a2};}_139.adviceFunc=function(){var _13a=[];for(var x=0;x<arguments.length;x++){_13a.push(arguments[x]);}dojo.debug("("+_139.srcObj+")."+_139.srcFunc,":",_13a.join(", "));};this.kwConnect(_139);};this.connectBefore=function(){var args=["before"];for(var i=0;i<arguments.length;i++){args.push(arguments[i]);}return this.connect.apply(this,args);};this.connectAround=function(){var args=["around"];for(var i=0;i<arguments.length;i++){args.push(arguments[i]);}return this.connect.apply(this,args);};this.connectOnce=function(){var ao=interpolateArgs(arguments,true);ao.once=true;return this.connect(ao);};this._kwConnectImpl=function(_141,_142){var fn=(_142)?"disconnect":"connect";if(typeof _141["srcFunc"]=="function"){_141.srcObj=_141["srcObj"]||dj_global;var _144=dojo.lang.nameAnonFunc(_141.srcFunc,_141.srcObj,true);_141.srcFunc=_144;}if(typeof _141["adviceFunc"]=="function"){_141.adviceObj=_141["adviceObj"]||dj_global;var _144=dojo.lang.nameAnonFunc(_141.adviceFunc,_141.adviceObj,true);_141.adviceFunc=_144;}return dojo.event[fn]((_141["type"]||_141["adviceType"]||"after"),_141["srcObj"]||dj_global,_141["srcFunc"],_141["adviceObj"]||_141["targetObj"]||dj_global,_141["adviceFunc"]||_141["targetFunc"],_141["aroundObj"],_141["aroundFunc"],_141["once"],_141["delay"],_141["rate"],_141["adviceMsg"]||false);};this.kwConnect=function(_145){return this._kwConnectImpl(_145,false);};this.disconnect=function(){var ao=interpolateArgs(arguments,true);if(!ao.adviceFunc){return;}var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);};this.kwDisconnect=function(_148){return this._kwConnectImpl(_148,true);};};dojo.event.MethodInvocation=function(_149,obj,args){this.jp_=_149;this.object=obj;this.args=[];for(var x=0;x<args.length;x++){this.args[x]=args[x];}this.around_index=-1;};dojo.event.MethodInvocation.prototype.proceed=function(){this.around_index++;if(this.around_index>=this.jp_.around.length){return this.jp_.object[this.jp_.methodname].apply(this.jp_.object,this.args);}else{var ti=this.jp_.around[this.around_index];var mobj=ti[0]||dj_global;var meth=ti[1];return mobj[meth].call(mobj,this);}};dojo.event.MethodJoinPoint=function(obj,_151){this.object=obj||dj_global;this.methodname=_151;this.methodfunc=this.object[_151];this.before=[];this.after=[];this.around=[];};dojo.event.MethodJoinPoint.getForMethod=function(obj,_153){if(!obj){obj=dj_global;}if(!obj[_153]){obj[_153]=function(){};if(!obj[_153]){dojo.raise("Cannot set do-nothing method on that object "+_153);}}else{if((!dojo.lang.isFunction(obj[_153]))&&(!dojo.lang.isAlien(obj[_153]))){return null;}}var _154=_153+"$joinpoint";var _155=_153+"$joinpoint$method";var _156=obj[_154];if(!_156){var _157=false;if(dojo.event["browser"]){if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){_157=true;dojo.event.browser.addClobberNodeAttrs(obj,[_154,_155,_153]);}}var _158=obj[_153].length;obj[_155]=obj[_153];_156=obj[_154]=new dojo.event.MethodJoinPoint(obj,_155);obj[_153]=function(){var args=[];if((_157)&&(!arguments.length)){var evt=null;try{if(obj.ownerDocument){evt=obj.ownerDocument.parentWindow.event;}else{if(obj.documentElement){evt=obj.documentElement.ownerDocument.parentWindow.event;}else{evt=window.event;}}}catch(e){evt=window.event;}if(evt){args.push(dojo.event.browser.fixEvent(evt,this));}}else{for(var x=0;x<arguments.length;x++){if((x==0)&&(_157)&&(dojo.event.browser.isEvent(arguments[x]))){args.push(dojo.event.browser.fixEvent(arguments[x],this));}else{args.push(arguments[x]);}}}return _156.run.apply(_156,args);};obj[_153].__preJoinArity=_158;}return _156;};dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){this.object[this.methodname]=this.methodfunc;this.before=[];this.after=[];this.around=[];},disconnect:dojo.lang.forward("unintercept"),run:function(){var obj=this.object||dj_global;var args=arguments;var _15e=[];for(var x=0;x<args.length;x++){_15e[x]=args[x];}var _160=function(marr){if(!marr){dojo.debug("Null argument to unrollAdvice()");return;}var _162=marr[0]||dj_global;var _163=marr[1];if(!_162[_163]){dojo.raise("function \""+_163+"\" does not exist on \""+_162+"\"");}var _164=marr[2]||dj_global;var _165=marr[3];var msg=marr[6];var _167;var to={args:[],jp_:this,object:obj,proceed:function(){return _162[_163].apply(_162,to.args);}};to.args=_15e;var _169=parseInt(marr[4]);var _16a=((!isNaN(_169))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));if(marr[5]){var rate=parseInt(marr[5]);var cur=new Date();var _16d=false;if((marr["last"])&&((cur-marr.last)<=rate)){if(dojo.event.canTimeout){if(marr["delayTimer"]){clearTimeout(marr.delayTimer);}var tod=parseInt(rate*2);var mcpy=dojo.lang.shallowCopy(marr);marr.delayTimer=setTimeout(function(){mcpy[5]=0;_160(mcpy);},tod);}return;}else{marr.last=cur;}}if(_165){_164[_165].call(_164,to);}else{if((_16a)&&((dojo.render.html)||(dojo.render.svg))){dj_global["setTimeout"](function(){if(msg){_162[_163].call(_162,to);}else{_162[_163].apply(_162,args);}},_169);}else{if(msg){_162[_163].call(_162,to);}else{_162[_163].apply(_162,args);}}}};if(this.before.length>0){dojo.lang.forEach(this.before,_160);}var _170;if(this.around.length>0){var mi=new dojo.event.MethodInvocation(this,obj,args);_170=mi.proceed();}else{if(this.methodfunc){_170=this.object[this.methodname].apply(this.object,args);}}if(this.after.length>0){dojo.lang.forEach(this.after,_160);}return (this.methodfunc)?_170:null;},getArr:function(kind){var arr=this.after;if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){arr=this.before;}else{if(kind=="around"){arr=this.around;}}return arr;},kwAddAdvice:function(args){this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]);},addAdvice:function(_175,_176,_177,_178,_179,_17a,once,_17c,rate,_17e){var arr=this.getArr(_179);if(!arr){dojo.raise("bad this: "+this);}var ao=[_175,_176,_177,_178,_17c,rate,_17e];if(once){if(this.hasAdvice(_175,_176,_179,arr)>=0){return;}}if(_17a=="first"){arr.unshift(ao);}else{arr.push(ao);}},hasAdvice:function(_181,_182,_183,arr){if(!arr){arr=this.getArr(_183);}var ind=-1;for(var x=0;x<arr.length;x++){var aao=(typeof _182=="object")?(new String(_182)).toString():_182;var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];if((arr[x][0]==_181)&&(a1o==aao)){ind=x;}}return ind;},removeAdvice:function(_189,_18a,_18b,once){var arr=this.getArr(_18b);var ind=this.hasAdvice(_189,_18a,_18b,arr);if(ind==-1){return false;}while(ind!=-1){arr.splice(ind,1);if(once){break;}ind=this.hasAdvice(_189,_18a,_18b,arr);}return true;}});dojo.require("dojo.event");dojo.provide("dojo.event.topic");dojo.event.topic=new function(){this.topics={};this.getTopic=function(_18f){if(!this.topics[_18f]){this.topics[_18f]=new this.TopicImpl(_18f);}return this.topics[_18f];};this.registerPublisher=function(_190,obj,_192){var _190=this.getTopic(_190);_190.registerPublisher(obj,_192);};this.subscribe=function(_193,obj,_195){var _193=this.getTopic(_193);_193.subscribe(obj,_195);};this.unsubscribe=function(_196,obj,_198){var _196=this.getTopic(_196);_196.unsubscribe(obj,_198);};this.destroy=function(_199){this.getTopic(_199).destroy();delete this.topics[_199];};this.publishApply=function(_19a,args){var _19a=this.getTopic(_19a);_19a.sendMessage.apply(_19a,args);};this.publish=function(_19c,_19d){var _19c=this.getTopic(_19c);var args=[];for(var x=1;x<arguments.length;x++){args.push(arguments[x]);}_19c.sendMessage.apply(_19c,args);};};dojo.event.topic.TopicImpl=function(_1a0){this.topicName=_1a0;this.subscribe=function(_1a1,_1a2){var tf=_1a2||_1a1;var to=(!_1a2)?dj_global:_1a1;dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});};this.unsubscribe=function(_1a5,_1a6){var tf=(!_1a6)?_1a5:_1a6;var to=(!_1a6)?null:_1a5;dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});};this.destroy=function(){dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();};this.registerPublisher=function(_1a9,_1aa){dojo.event.connect(_1a9,_1aa,this,"sendMessage");};this.sendMessage=function(_1ab){};};dojo.provide("dojo.event.browser");dojo.require("dojo.event");dojo._ie_clobber=new function(){this.clobberNodes=[];function nukeProp(node,prop){try{node[prop]=null;}catch(e){}try{delete node[prop];}catch(e){}try{node.removeAttribute(prop);}catch(e){}}this.clobber=function(_1ae){var na;var tna;if(_1ae){tna=_1ae.all||_1ae.getElementsByTagName("*");na=[_1ae];for(var x=0;x<tna.length;x++){if(tna[x]["__doClobber__"]){na.push(tna[x]);}}}else{try{window.onload=null;}catch(e){}na=(this.clobberNodes.length)?this.clobberNodes:document.all;}tna=null;var _1b2={};for(var i=na.length-1;i>=0;i=i-1){var el=na[i];if(el["__clobberAttrs__"]){for(var j=0;j<el.__clobberAttrs__.length;j++){nukeProp(el,el.__clobberAttrs__[j]);}nukeProp(el,"__clobberAttrs__");nukeProp(el,"__doClobber__");}}na=null;};};if(dojo.render.html.ie){dojo.addOnUnload(function(){dojo._ie_clobber.clobber();try{if((dojo["widget"])&&(dojo.widget["manager"])){dojo.widget.manager.destroyAll();}}catch(e){}try{window.onload=null;}catch(e){}try{window.onunload=null;}catch(e){}dojo._ie_clobber.clobberNodes=[];});}dojo.event.browser=new function(){var _1b6=0;this.clean=function(node){if(dojo.render.html.ie){dojo._ie_clobber.clobber(node);}};this.addClobberNode=function(node){if(!dojo.render.html.ie){return;}if(!node["__doClobber__"]){node.__doClobber__=true;dojo._ie_clobber.clobberNodes.push(node);node.__clobberAttrs__=[];}};this.addClobberNodeAttrs=function(node,_1ba){if(!dojo.render.html.ie){return;}this.addClobberNode(node);for(var x=0;x<_1ba.length;x++){node.__clobberAttrs__.push(_1ba[x]);}};this.removeListener=function(node,_1bd,fp,_1bf){if(!_1bf){var _1bf=false;}_1bd=_1bd.toLowerCase();if(_1bd.substr(0,2)=="on"){_1bd=_1bd.substr(2);}if(node.removeEventListener){node.removeEventListener(_1bd,fp,_1bf);}};this.addListener=function(node,_1c1,fp,_1c3,_1c4){if(!node){return;}if(!_1c3){var _1c3=false;}_1c1=_1c1.toLowerCase();if(_1c1.substr(0,2)!="on"){_1c1="on"+_1c1;}if(!_1c4){var _1c5=function(evt){if(!evt){evt=window.event;}var ret=fp(dojo.event.browser.fixEvent(evt,this));if(_1c3){dojo.event.browser.stopEvent(evt);}return ret;};}else{_1c5=fp;}if(node.addEventListener){node.addEventListener(_1c1.substr(2),_1c5,_1c3);return _1c5;}else{if(typeof node[_1c1]=="function"){var _1c8=node[_1c1];node[_1c1]=function(e){_1c8(e);return _1c5(e);};}else{node[_1c1]=_1c5;}if(dojo.render.html.ie){this.addClobberNodeAttrs(node,[_1c1]);}return _1c5;}};this.isEvent=function(obj){return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);};this.currentEvent=null;this.callListener=function(_1cb,_1cc){if(typeof _1cb!="function"){dojo.raise("listener not a function: "+_1cb);}dojo.event.browser.currentEvent.currentTarget=_1cc;return _1cb.call(_1cc,dojo.event.browser.currentEvent);};this.stopPropagation=function(){dojo.event.browser.currentEvent.cancelBubble=true;};this.preventDefault=function(){dojo.event.browser.currentEvent.returnValue=false;};this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};this.revKeys=[];for(var key in this.keys){this.revKeys[this.keys[key]]=key;}this.fixEvent=function(evt,_1cf){if((!evt)&&(window["event"])){var evt=window.event;}if((evt["type"])&&(evt["type"].indexOf("key")==0)){evt.keys=this.revKeys;for(var key in this.keys){evt[key]=this.keys[key];}if((dojo.render.html.ie)&&(evt["type"]=="keypress")){evt.charCode=evt.keyCode;}}if(dojo.render.html.ie){if(!evt.target){evt.target=evt.srcElement;}if(!evt.currentTarget){evt.currentTarget=(_1cf?_1cf:evt.srcElement);}if(!evt.layerX){evt.layerX=evt.offsetX;}if(!evt.layerY){evt.layerY=evt.offsetY;}var _1d1=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;if(!evt.pageX){evt.pageX=evt.clientX+(_1d1.scrollLeft||0);}if(!evt.pageY){evt.pageY=evt.clientY+(_1d1.scrollTop||0);}if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}this.currentEvent=evt;evt.callListener=this.callListener;evt.stopPropagation=this.stopPropagation;evt.preventDefault=this.preventDefault;}return evt;};this.stopEvent=function(ev){if(window.event){ev.returnValue=false;ev.cancelBubble=true;}else{ev.preventDefault();ev.stopPropagation();}};};dojo.kwCompoundRequire({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});dojo.provide("dojo.event.*");dojo.provide("dojo.dom");dojo.require("dojo.lang.array");dojo.dom.ELEMENT_NODE=1;dojo.dom.ATTRIBUTE_NODE=2;dojo.dom.TEXT_NODE=3;dojo.dom.CDATA_SECTION_NODE=4;dojo.dom.ENTITY_REFERENCE_NODE=5;dojo.dom.ENTITY_NODE=6;dojo.dom.PROCESSING_INSTRUCTION_NODE=7;dojo.dom.COMMENT_NODE=8;dojo.dom.DOCUMENT_NODE=9;dojo.dom.DOCUMENT_TYPE_NODE=10;dojo.dom.DOCUMENT_FRAGMENT_NODE=11;dojo.dom.NOTATION_NODE=12;dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};dojo.dom.isNode=function(wh){if(typeof Element=="object"){try{return wh instanceof Element;}catch(E){}}else{return wh&&!isNaN(wh.nodeType);}};dojo.dom.getTagName=function(node){dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");var _1d5=node.tagName;if(_1d5.substr(0,5).toLowerCase()!="dojo:"){if(_1d5.substr(0,4).toLowerCase()=="dojo"){return "dojo:"+_1d5.substring(4).toLowerCase();}var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");if(djt){return "dojo:"+djt.toLowerCase();}if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase();}try{djt=node.getAttribute("dojo:type");}catch(e){}if(djt){return "dojo:"+djt.toLowerCase();}if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){var _1d7=node.className||node.getAttribute("class");if((_1d7)&&(_1d7.indexOf)&&(_1d7.indexOf("dojo-")!=-1)){var _1d8=_1d7.split(" ");for(var x=0;x<_1d8.length;x++){if((_1d8[x].length>5)&&(_1d8[x].indexOf("dojo-")>=0)){return "dojo:"+_1d8[x].substr(5).toLowerCase();}}}}}return _1d5.toLowerCase();};dojo.dom.getUniqueId=function(){do{var id="dj_unique_"+(++arguments.callee._idIncrement);}while(document.getElementById(id));return id;};dojo.dom.getUniqueId._idIncrement=0;dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1db,_1dc){var node=_1db.firstChild;while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){node=node.nextSibling;}if(_1dc&&node&&node.tagName&&node.tagName.toLowerCase()!=_1dc.toLowerCase()){node=dojo.dom.nextElement(node,_1dc);}return node;};dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1de,_1df){var node=_1de.lastChild;while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){node=node.previousSibling;}if(_1df&&node&&node.tagName&&node.tagName.toLowerCase()!=_1df.toLowerCase()){node=dojo.dom.prevElement(node,_1df);}return node;};dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1e2){if(!node){return null;}do{node=node.nextSibling;}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);if(node&&_1e2&&_1e2.toLowerCase()!=node.tagName.toLowerCase()){return dojo.dom.nextElement(node,_1e2);}return node;};dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1e4){if(!node){return null;}if(_1e4){_1e4=_1e4.toLowerCase();}do{node=node.previousSibling;}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);if(node&&_1e4&&_1e4.toLowerCase()!=node.tagName.toLowerCase()){return dojo.dom.prevElement(node,_1e4);}return node;};dojo.dom.moveChildren=function(_1e5,_1e6,trim){var _1e8=0;if(trim){while(_1e5.hasChildNodes()&&_1e5.firstChild.nodeType==dojo.dom.TEXT_NODE){_1e5.removeChild(_1e5.firstChild);}while(_1e5.hasChildNodes()&&_1e5.lastChild.nodeType==dojo.dom.TEXT_NODE){_1e5.removeChild(_1e5.lastChild);}}while(_1e5.hasChildNodes()){_1e6.appendChild(_1e5.firstChild);_1e8++;}return _1e8;};dojo.dom.copyChildren=function(_1e9,_1ea,trim){var _1ec=_1e9.cloneNode(true);return this.moveChildren(_1ec,_1ea,trim);};dojo.dom.removeChildren=function(node){var _1ee=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _1ee;};dojo.dom.replaceChildren=function(node,_1f0){dojo.dom.removeChildren(node);node.appendChild(_1f0);};dojo.dom.removeNode=function(node){if(node&&node.parentNode){return node.parentNode.removeChild(node);}};dojo.dom.getAncestors=function(node,_1f3,_1f4){var _1f5=[];var _1f6=dojo.lang.isFunction(_1f3);while(node){if(!_1f6||_1f3(node)){_1f5.push(node);}if(_1f4&&_1f5.length>0){return _1f5[0];}node=node.parentNode;}if(_1f4){return null;}return _1f5;};dojo.dom.getAncestorsByTag=function(node,tag,_1f9){tag=tag.toLowerCase();return dojo.dom.getAncestors(node,function(el){return ((el.tagName)&&(el.tagName.toLowerCase()==tag));},_1f9);};dojo.dom.getFirstAncestorByTag=function(node,tag){return dojo.dom.getAncestorsByTag(node,tag,true);};dojo.dom.isDescendantOf=function(node,_1fe,_1ff){if(_1ff&&node){node=node.parentNode;}while(node){if(node==_1fe){return true;}node=node.parentNode;}return false;};dojo.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}};dojo.dom.createDocument=function(){var doc=null;if(!dj_undef("ActiveXObject")){var _202=["MSXML2","Microsoft","MSXML","MSXML3"];for(var i=0;i<_202.length;i++){try{doc=new ActiveXObject(_202[i]+".XMLDOM");}catch(e){}if(doc){break;}}}else{if((document.implementation)&&(document.implementation.createDocument)){doc=document.implementation.createDocument("","",null);}}return doc;};dojo.dom.createDocumentFromText=function(str,_205){if(!_205){_205="text/xml";}if(!dj_undef("DOMParser")){var _206=new DOMParser();return _206.parseFromString(str,_205);}else{if(!dj_undef("ActiveXObject")){var _207=dojo.dom.createDocument();if(_207){_207.async=false;_207.loadXML(str);return _207;}else{dojo.debug("toXml didn't work?");}}else{if(document.createElement){var tmp=document.createElement("xml");tmp.innerHTML=str;if(document.implementation&&document.implementation.createDocument){var _209=document.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_209.importNode(tmp.childNodes.item(i),true);}return _209;}return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));}}}return null;};dojo.dom.prependChild=function(node,_20c){if(_20c.firstChild){_20c.insertBefore(node,_20c.firstChild);}else{_20c.appendChild(node);}return true;};dojo.dom.insertBefore=function(node,ref,_20f){if(_20f!=true&&(node===ref||node.nextSibling===ref)){return false;}var _210=ref.parentNode;_210.insertBefore(node,ref);return true;};dojo.dom.insertAfter=function(node,ref,_213){var pn=ref.parentNode;if(ref==pn.lastChild){if((_213!=true)&&(node===ref)){return false;}pn.appendChild(node);}else{return this.insertBefore(node,ref.nextSibling,_213);}return true;};dojo.dom.insertAtPosition=function(node,ref,_217){if((!node)||(!ref)||(!_217)){return false;}switch(_217.toLowerCase()){case "before":return dojo.dom.insertBefore(node,ref);case "after":return dojo.dom.insertAfter(node,ref);case "first":if(ref.firstChild){return dojo.dom.insertBefore(node,ref.firstChild);}else{ref.appendChild(node);return true;}break;default:ref.appendChild(node);return true;}};dojo.dom.insertAtIndex=function(node,_219,_21a){var _21b=_219.childNodes;if(!_21b.length){_219.appendChild(node);return true;}var _21c=null;for(var i=0;i<_21b.length;i++){var _21e=_21b.item(i)["getAttribute"]?parseInt(_21b.item(i).getAttribute("dojoinsertionindex")):-1;if(_21e<_21a){_21c=_21b.item(i);}}if(_21c){return dojo.dom.insertAfter(node,_21c);}else{return dojo.dom.insertBefore(node,_21b.item(0));}};dojo.dom.textContent=function(node,text){if(text){dojo.dom.replaceChildren(node,document.createTextNode(text));return text;}else{var _221="";if(node==null){return _221;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_221+=dojo.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_221+=node.childNodes[i].nodeValue;break;default:break;}}return _221;}};dojo.dom.collectionToArray=function(_223){dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");return dojo.lang.toArray(_223);};dojo.dom.hasParent=function(node){return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);};dojo.dom.isTag=function(node){if(node&&node.tagName){var arr=dojo.lang.toArray(arguments,1);return arr[dojo.lang.find(node.tagName,arr)]||"";}return "";};dojo.provide("dojo.xml.Parse");dojo.require("dojo.dom");dojo.xml.Parse=function(){function getDojoTagName(node){var _228=node.tagName;if(_228.substr(0,5).toLowerCase()!="dojo:"){if(_228.substr(0,4).toLowerCase()=="dojo"){return "dojo:"+_228.substring(4).toLowerCase();}var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");if(djt){return "dojo:"+djt.toLowerCase();}if(node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type")){return "dojo:"+node.getAttributeNS(dojo.dom.dojoml,"type").toLowerCase();}try{djt=node.getAttribute("dojo:type");}catch(e){}if(djt){return "dojo:"+djt.toLowerCase();}if(!dj_global["djConfig"]||!djConfig["ignoreClassNames"]){var _22a=node.className||node.getAttribute("class");if(_22a&&_22a.indexOf&&_22a.indexOf("dojo-")!=-1){var _22b=_22a.split(" ");for(var x=0;x<_22b.length;x++){if(_22b[x].length>5&&_22b[x].indexOf("dojo-")>=0){return "dojo:"+_22b[x].substr(5).toLowerCase();}}}}}return _228.toLowerCase();}this.parseElement=function(node,_22e,_22f,_230){if(node.getAttribute("parseWidgets")=="false"){return {};}var _231={};var _232=getDojoTagName(node);_231[_232]=[];if((!_22f)||(_232.substr(0,4).toLowerCase()=="dojo")){var _233=parseAttributes(node);for(var attr in _233){if((!_231[_232][attr])||(typeof _231[_232][attr]!="array")){_231[_232][attr]=[];}_231[_232][attr].push(_233[attr]);}_231[_232].nodeRef=node;_231.tagName=_232;_231.index=_230||0;}var _235=0;var tcn,i=0,nodes=node.childNodes;while(tcn=nodes[i++]){switch(tcn.nodeType){case dojo.dom.ELEMENT_NODE:_235++;var ctn=getDojoTagName(tcn);if(!_231[ctn]){_231[ctn]=[];}_231[ctn].push(this.parseElement(tcn,true,_22f,_235));if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){_231[ctn][_231[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;}break;case dojo.dom.TEXT_NODE:if(node.childNodes.length==1){_231[_232].push({value:node.childNodes.item(0).nodeValue});}break;default:break;}}return _231;};function parseAttributes(node){var _239={};var atts=node.attributes;var _23b,i=0;while(_23b=atts[i++]){if((dojo.render.html.capable)&&(dojo.render.html.ie)){if(!_23b){continue;}if((typeof _23b=="object")&&(typeof _23b.nodeValue=="undefined")||(_23b.nodeValue==null)||(_23b.nodeValue=="")){continue;}}var nn=(_23b.nodeName.indexOf("dojo:")==-1)?_23b.nodeName:_23b.nodeName.split("dojo:")[1];_239[nn]={value:_23b.nodeValue};}return _239;}};dojo.provide("dojo.lang.declare");dojo.require("dojo.lang.common");dojo.require("dojo.lang.extras");dojo.lang.declare=function(_23d,_23e,init,_240){if((dojo.lang.isFunction(_240))||((!_240)&&(!dojo.lang.isFunction(init)))){var temp=_240;_240=init;init=temp;}var _242=[];if(dojo.lang.isArray(_23e)){_242=_23e;_23e=_242.shift();}if(!init){init=dojo.evalObjPath(_23d,false);if((init)&&(!dojo.lang.isFunction(init))){init=null;}}var ctor=dojo.lang.declare._makeConstructor();var scp=(_23e?_23e.prototype:null);if(scp){scp.prototyping=true;ctor.prototype=new _23e();scp.prototyping=false;}ctor.superclass=scp;ctor.mixins=_242;for(var i=0,l=_242.length;i<l;i++){dojo.lang.extend(ctor,_242[i].prototype);}ctor.prototype.initializer=null;ctor.prototype.declaredClass=_23d;if(dojo.lang.isArray(_240)){dojo.lang.extend.apply(dojo.lang,[ctor].concat(_240));}else{dojo.lang.extend(ctor,(_240)||{});}dojo.lang.extend(ctor,dojo.lang.declare.base);ctor.prototype.constructor=ctor;ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){});dojo.lang.setObjPathValue(_23d,ctor,null,true);};dojo.lang.declare._makeConstructor=function(){return function(){var self=this._getPropContext();var s=self.constructor.superclass;if((s)&&(s.constructor)){if(s.constructor==arguments.callee){this.inherited("constructor",arguments);}else{this._inherited(s,"constructor",arguments);}}var m=(self.constructor.mixins)||([]);for(var i=0,l=m.length;i<l;i++){(((m[i].prototype)&&(m[i].prototype.initializer))||(m[i])).apply(this,arguments);}if((!this.prototyping)&&(self.initializer)){self.initializer.apply(this,arguments);}};};dojo.lang.declare.base={_getPropContext:function(){return (this.___proto||this);},_inherited:function(_24a,_24b,args){var _24d=this.___proto;this.___proto=_24a;var _24e=_24a[_24b].apply(this,(args||[]));this.___proto=_24d;return _24e;},inheritedFrom:function(ctor,prop,args){var p=((ctor)&&(ctor.prototype)&&(ctor.prototype[prop]));return (dojo.lang.isFunction(p)?p.apply(this,(args||[])):p);},inherited:function(prop,args){var p=this._getPropContext();do{if((!p.constructor)||(!p.constructor.superclass)){return;}p=p.constructor.superclass;}while(!(prop in p));return (dojo.lang.isFunction(p[prop])?this._inherited(p,prop,args):p[prop]);}};dojo.declare=dojo.lang.declare;dojo.provide("dojo.widget.Manager");dojo.require("dojo.lang.array");dojo.require("dojo.lang.func");dojo.require("dojo.event.*");dojo.widget.manager=new function(){this.widgets=[];this.widgetIds=[];this.topWidgets={};var _256={};var _257=[];this.getUniqueId=function(_258){return _258+"_"+(_256[_258]!=undefined?++_256[_258]:_256[_258]=0);};this.add=function(_259){dojo.profile.start("dojo.widget.manager.add");this.widgets.push(_259);if(!_259.extraArgs["id"]){_259.extraArgs["id"]=_259.extraArgs["ID"];}if(_259.widgetId==""){if(_259["id"]){_259.widgetId=_259["id"];}else{if(_259.extraArgs["id"]){_259.widgetId=_259.extraArgs["id"];}else{_259.widgetId=this.getUniqueId(_259.widgetType);}}}if(this.widgetIds[_259.widgetId]){dojo.debug("widget ID collision on ID: "+_259.widgetId);}this.widgetIds[_259.widgetId]=_259;dojo.profile.end("dojo.widget.manager.add");};this.destroyAll=function(){for(var x=this.widgets.length-1;x>=0;x--){try{this.widgets[x].destroy(true);delete this.widgets[x];}catch(e){}}};this.remove=function(_25b){var tw=this.widgets[_25b].widgetId;delete this.widgetIds[tw];this.widgets.splice(_25b,1);};this.removeById=function(id){for(var i=0;i<this.widgets.length;i++){if(this.widgets[i].widgetId==id){this.remove(i);break;}}};this.getWidgetById=function(id){return this.widgetIds[id];};this.getWidgetsByType=function(type){var lt=type.toLowerCase();var ret=[];dojo.lang.forEach(this.widgets,function(x){if(x.widgetType.toLowerCase()==lt){ret.push(x);}});return ret;};this.getWidgetsOfType=function(id){dojo.deprecated("getWidgetsOfType","use getWidgetsByType","0.4");return dojo.widget.manager.getWidgetsByType(id);};this.getWidgetsByFilter=function(_265,_266){var ret=[];dojo.lang.every(this.widgets,function(x){if(_265(x)){ret.push(x);if(_266){return false;}}return true;});return (_266?ret[0]:ret);};this.getAllWidgets=function(){return this.widgets.concat();};this.getWidgetByNode=function(node){var w=this.getAllWidgets();for(var i=0;i<w.length;i++){if(w[i].domNode==node){return w[i];}}return null;};this.byId=this.getWidgetById;this.byType=this.getWidgetsByType;this.byFilter=this.getWidgetsByFilter;this.byNode=this.getWidgetByNode;var _26c={};var _26d=["dojo.widget"];for(var i=0;i<_26d.length;i++){_26d[_26d[i]]=true;}this.registerWidgetPackage=function(_26f){if(!_26d[_26f]){_26d[_26f]=true;_26d.push(_26f);}};this.getWidgetPackageList=function(){return dojo.lang.map(_26d,function(elt){return (elt!==true?elt:undefined);});};this.getImplementation=function(_271,_272,_273){var impl=this.getImplementationName(_271);if(impl){var ret=new impl(_272);return ret;}};this.getImplementationName=function(_276){var _277=_276.toLowerCase();var impl=_26c[_277];if(impl){return impl;}if(!_257.length){for(var _279 in dojo.render){if(dojo.render[_279]["capable"]===true){var _27a=dojo.render[_279].prefixes;for(var i=0;i<_27a.length;i++){_257.push(_27a[i].toLowerCase());}}}_257.push("");}for(var i=0;i<_26d.length;i++){var _27c=dojo.evalObjPath(_26d[i]);if(!_27c){continue;}for(var j=0;j<_257.length;j++){if(!_27c[_257[j]]){continue;}for(var _27e in _27c[_257[j]]){if(_27e.toLowerCase()!=_277){continue;}_26c[_277]=_27c[_257[j]][_27e];return _26c[_277];}}for(var j=0;j<_257.length;j++){for(var _27e in _27c){if(_27e.toLowerCase()!=(_257[j]+_277)){continue;}_26c[_277]=_27c[_27e];return _26c[_277];}}}throw new Error("Could not locate \""+_276+"\" class");};this.resizing=false;this.onWindowResized=function(){if(this.resizing){return;}try{this.resizing=true;for(var id in this.topWidgets){var _280=this.topWidgets[id];if(_280.checkSize){_280.checkSize();}}}catch(e){}finally{this.resizing=false;}};if(typeof window!="undefined"){dojo.addOnLoad(this,"onWindowResized");dojo.event.connect(window,"onresize",this,"onWindowResized");}};(function(){var dw=dojo.widget;var dwm=dw.manager;var h=dojo.lang.curry(dojo.lang,"hitch",dwm);var g=function(_285,_286){dw[(_286||_285)]=h(_285);};g("add","addWidget");g("destroyAll","destroyAllWidgets");g("remove","removeWidget");g("removeById","removeWidgetById");g("getWidgetById");g("getWidgetById","byId");g("getWidgetsByType");g("getWidgetsByFilter");g("getWidgetsByType","byType");g("getWidgetsByFilter","byFilter");g("getWidgetByNode","byNode");dw.all=function(n){var _288=dwm.getAllWidgets.apply(dwm,arguments);if(arguments.length>0){return _288[n];}return _288;};g("registerWidgetPackage");g("getImplementation","getWidgetImplementation");g("getImplementationName","getWidgetImplementationName");dw.widgets=dwm.widgets;dw.widgetIds=dwm.widgetIds;dw.root=dwm.root;})();dojo.provide("dojo.widget.Widget");dojo.provide("dojo.widget.tags");dojo.require("dojo.lang.func");dojo.require("dojo.lang.array");dojo.require("dojo.lang.extras");dojo.require("dojo.lang.declare");dojo.require("dojo.widget.Manager");dojo.require("dojo.event.*");dojo.declare("dojo.widget.Widget",null,{initializer:function(){this.children=[];this.extraArgs={};},parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",toString:function(){return "[Widget "+this.widgetType+", "+(this.widgetId||"NO ID")+"]";},repr:function(){return this.toString();},enable:function(){this.isEnabled=true;},disable:function(){this.isEnabled=false;},hide:function(){this.isHidden=true;},show:function(){this.isHidden=false;},onResized:function(){this.notifyChildrenOfResize();},notifyChildrenOfResize:function(){for(var i=0;i<this.children.length;i++){var _28a=this.children[i];if(_28a.onResized){_28a.onResized();}}},create:function(args,_28c,_28d){this.satisfyPropertySets(args,_28c,_28d);this.mixInProperties(args,_28c,_28d);this.postMixInProperties(args,_28c,_28d);dojo.widget.manager.add(this);this.buildRendering(args,_28c,_28d);this.initialize(args,_28c,_28d);this.postInitialize(args,_28c,_28d);this.postCreate(args,_28c,_28d);return this;},destroy:function(_28e){this.destroyChildren();this.uninitialize();this.destroyRendering(_28e);dojo.widget.manager.removeById(this.widgetId);},destroyChildren:function(){while(this.children.length>0){var tc=this.children[0];this.removeChild(tc);tc.destroy();}},getChildrenOfType:function(type,_291){var ret=[];var _293=dojo.lang.isFunction(type);if(!_293){type=type.toLowerCase();}for(var x=0;x<this.children.length;x++){if(_293){if(this.children[x] instanceof type){ret.push(this.children[x]);}}else{if(this.children[x].widgetType.toLowerCase()==type){ret.push(this.children[x]);}}if(_291){ret=ret.concat(this.children[x].getChildrenOfType(type,_291));}}return ret;},getDescendants:function(){var _295=[];var _296=[this];var elem;while(elem=_296.pop()){_295.push(elem);dojo.lang.forEach(elem.children,function(elem){_296.push(elem);});}return _295;},satisfyPropertySets:function(args){return args;},mixInProperties:function(args,frag){if((args["fastMixIn"])||(frag["fastMixIn"])){for(var x in args){this[x]=args[x];}return;}var _29d;var _29e=dojo.widget.lcArgsCache[this.widgetType];if(_29e==null){_29e={};for(var y in this){_29e[((new String(y)).toLowerCase())]=y;}dojo.widget.lcArgsCache[this.widgetType]=_29e;}var _2a0={};for(var x in args){if(!this[x]){var y=_29e[(new String(x)).toLowerCase()];if(y){args[y]=args[x];x=y;}}if(_2a0[x]){continue;}_2a0[x]=true;if((typeof this[x])!=(typeof _29d)){if(typeof args[x]!="string"){this[x]=args[x];}else{if(dojo.lang.isString(this[x])){this[x]=args[x];}else{if(dojo.lang.isNumber(this[x])){this[x]=new Number(args[x]);}else{if(dojo.lang.isBoolean(this[x])){this[x]=(args[x].toLowerCase()=="false")?false:true;}else{if(dojo.lang.isFunction(this[x])){if(args[x].search(/[^\w\.]+/i)==-1){this[x]=dojo.evalObjPath(args[x],false);}else{var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);dojo.event.connect(this,x,this,tn);}}else{if(dojo.lang.isArray(this[x])){this[x]=args[x].split(";");}else{if(this[x] instanceof Date){this[x]=new Date(Number(args[x]));}else{if(typeof this[x]=="object"){if(this[x] instanceof dojo.uri.Uri){this[x]=args[x];}else{var _2a2=args[x].split(";");for(var y=0;y<_2a2.length;y++){var si=_2a2[y].indexOf(":");if((si!=-1)&&(_2a2[y].length>si)){this[x][_2a2[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_2a2[y].substr(si+1);}}}}else{this[x]=args[x];}}}}}}}}}else{this.extraArgs[x.toLowerCase()]=args[x];}}},postMixInProperties:function(){},initialize:function(args,frag){return false;},postInitialize:function(args,frag){return false;},postCreate:function(args,frag){return false;},uninitialize:function(){return false;},buildRendering:function(){dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");return false;},destroyRendering:function(){dojo.unimplemented("dojo.widget.Widget.destroyRendering");return false;},cleanUp:function(){dojo.unimplemented("dojo.widget.Widget.cleanUp");return false;},addedTo:function(_2aa){},addChild:function(_2ab){dojo.unimplemented("dojo.widget.Widget.addChild");return false;},removeChild:function(_2ac){for(var x=0;x<this.children.length;x++){if(this.children[x]===_2ac){this.children.splice(x,1);break;}}return _2ac;},resize:function(_2ae,_2af){this.setWidth(_2ae);this.setHeight(_2af);},setWidth:function(_2b0){if((typeof _2b0=="string")&&(_2b0.substr(-1)=="%")){this.setPercentageWidth(_2b0);}else{this.setNativeWidth(_2b0);}},setHeight:function(_2b1){if((typeof _2b1=="string")&&(_2b1.substr(-1)=="%")){this.setPercentageHeight(_2b1);}else{this.setNativeHeight(_2b1);}},setPercentageHeight:function(_2b2){return false;},setNativeHeight:function(_2b3){return false;},setPercentageWidth:function(_2b4){return false;},setNativeWidth:function(_2b5){return false;},getPreviousSibling:function(){var idx=this.getParentIndex();if(idx<=0){return null;}return this.getSiblings()[idx-1];},getSiblings:function(){return this.parent.children;},getParentIndex:function(){return dojo.lang.indexOf(this.getSiblings(),this,true);},getNextSibling:function(){var idx=this.getParentIndex();if(idx==this.getSiblings().length-1){return null;}if(idx<0){return null;}return this.getSiblings()[idx+1];}});dojo.widget.lcArgsCache={};dojo.widget.tags={};dojo.widget.tags.addParseTreeHandler=function(type){var _2b9=type.toLowerCase();this[_2b9]=function(_2ba,_2bb,_2bc,_2bd,_2be){return dojo.widget.buildWidgetFromParseTree(_2b9,_2ba,_2bb,_2bc,_2bd,_2be);};};dojo.widget.tags.addParseTreeHandler("dojo:widget");dojo.widget.tags["dojo:propertyset"]=function(_2bf,_2c0,_2c1){var _2c2=_2c0.parseProperties(_2bf["dojo:propertyset"]);};dojo.widget.tags["dojo:connect"]=function(_2c3,_2c4,_2c5){var _2c6=_2c4.parseProperties(_2c3["dojo:connect"]);};dojo.widget.buildWidgetFromParseTree=function(type,frag,_2c9,_2ca,_2cb,_2cc){var _2cd=type.split(":");_2cd=(_2cd.length==2)?_2cd[1]:type;var _2ce=_2cc||_2c9.parseProperties(frag["dojo:"+_2cd]);var _2cf=dojo.widget.manager.getImplementation(_2cd);if(!_2cf){throw new Error("cannot find \""+_2cd+"\" widget");}else{if(!_2cf.create){throw new Error("\""+_2cd+"\" widget object does not appear to implement *Widget");}}_2ce["dojoinsertionindex"]=_2cb;var ret=_2cf.create(_2ce,frag,_2ca);return ret;};dojo.widget.defineWidget=function(_2d1,_2d2,_2d3,init,_2d5){if(dojo.lang.isString(arguments[3])){dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);}else{var args=[arguments[0]],p=3;if(dojo.lang.isString(arguments[1])){args.push(arguments[1],arguments[2]);}else{args.push("",arguments[1]);p=2;}if(dojo.lang.isFunction(arguments[p])){args.push(arguments[p],arguments[p+1]);}else{args.push(null,arguments[p]);}dojo.widget._defineWidget.apply(this,args);}};dojo.widget.defineWidget.renderers="html|svg|vml";dojo.widget._defineWidget=function(_2d7,_2d8,_2d9,init,_2db){var _2dc=_2d7.split(".");var type=_2dc.pop();var regx="\\.("+(_2d8?_2d8+"|":"")+dojo.widget.defineWidget.renderers+")\\.";var r=_2d7.search(new RegExp(regx));_2dc=(r<0?_2dc.join("."):_2d7.substr(0,r));dojo.widget.manager.registerWidgetPackage(_2dc);dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());_2db=(_2db)||{};_2db.widgetType=type;if((!init)&&(_2db["classConstructor"])){init=_2db.classConstructor;delete _2db.classConstructor;}dojo.declare(_2d7,_2d9,init,_2db);};dojo.provide("dojo.widget.Parse");dojo.require("dojo.widget.Manager");dojo.require("dojo.dom");dojo.widget.Parse=function(_2e0){this.propertySetsList=[];this.fragment=_2e0;this.createComponents=function(frag,_2e2){var _2e3=[];var _2e4=false;try{if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){var _2e5=dojo.widget.tags;var tna=String(frag["tagName"]).split(";");for(var x=0;x<tna.length;x++){var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();if(_2e5[ltn]){_2e4=true;frag.tagName=ltn;var ret=_2e5[ltn](frag,this,_2e2,frag["index"]);_2e3.push(ret);}else{if((dojo.lang.isString(ltn))&&(ltn.substr(0,5)=="dojo:")){dojo.debug("no tag handler registed for type: ",ltn);}}}}}catch(e){dojo.debug("dojo.widget.Parse: error:",e);}if(!_2e4){_2e3=_2e3.concat(this.createSubComponents(frag,_2e2));}return _2e3;};this.createSubComponents=function(_2ea,_2eb){var frag,comps=[];for(var item in _2ea){frag=_2ea[item];if((frag)&&(typeof frag=="object")&&(frag!=_2ea.nodeRef)&&(frag!=_2ea["tagName"])){comps=comps.concat(this.createComponents(frag,_2eb));}}return comps;};this.parsePropertySets=function(_2ee){return [];var _2ef=[];for(var item in _2ee){if((_2ee[item]["tagName"]=="dojo:propertyset")){_2ef.push(_2ee[item]);}}this.propertySetsList.push(_2ef);return _2ef;};this.parseProperties=function(_2f1){var _2f2={};for(var item in _2f1){if((_2f1[item]==_2f1["tagName"])||(_2f1[item]==_2f1.nodeRef)){}else{if((_2f1[item]["tagName"])&&(dojo.widget.tags[_2f1[item].tagName.toLowerCase()])){}else{if((_2f1[item][0])&&(_2f1[item][0].value!="")&&(_2f1[item][0].value!=null)){try{if(item.toLowerCase()=="dataprovider"){var _2f4=this;this.getDataProvider(_2f4,_2f1[item][0].value);_2f2.dataProvider=this.dataProvider;}_2f2[item]=_2f1[item][0].value;var _2f5=this.parseProperties(_2f1[item]);for(var _2f6 in _2f5){_2f2[_2f6]=_2f5[_2f6];}}catch(e){dojo.debug(e);}}}}}return _2f2;};this.getDataProvider=function(_2f7,_2f8){dojo.io.bind({url:_2f8,load:function(type,_2fa){if(type=="load"){_2f7.dataProvider=_2fa;}},mimetype:"text/javascript",sync:true});};this.getPropertySetById=function(_2fb){for(var x=0;x<this.propertySetsList.length;x++){if(_2fb==this.propertySetsList[x]["id"][0].value){return this.propertySetsList[x];}}return "";};this.getPropertySetsByType=function(_2fd){var _2fe=[];for(var x=0;x<this.propertySetsList.length;x++){var cpl=this.propertySetsList[x];var cpcc=cpl["componentClass"]||cpl["componentType"]||null;if((cpcc)&&(propertySetId==cpcc[0].value)){_2fe.push(cpl);}}return _2fe;};this.getPropertySets=function(_302){var ppl="dojo:propertyproviderlist";var _304=[];var _305=_302["tagName"];if(_302[ppl]){var _306=_302[ppl].value.split(" ");for(var _307 in _306){if((_307.indexOf("..")==-1)&&(_307.indexOf("://")==-1)){var _308=this.getPropertySetById(_307);if(_308!=""){_304.push(_308);}}else{}}}return (this.getPropertySetsByType(_305)).concat(_304);};this.createComponentFromScript=function(_309,_30a,_30b){var ltn="dojo:"+_30a.toLowerCase();if(dojo.widget.tags[ltn]){_30b.fastMixIn=true;return [dojo.widget.tags[ltn](_30b,this,null,null,_30b)];}else{if(ltn.substr(0,5)=="dojo:"){dojo.debug("no tag handler registed for type: ",ltn);}}};};dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};dojo.widget.getParser=function(name){if(!name){name="dojo";}if(!this._parser_collection[name]){this._parser_collection[name]=new dojo.widget.Parse();}return this._parser_collection[name];};dojo.widget.createWidget=function(name,_30f,_310,_311){var _312=name.toLowerCase();var _313="dojo:"+_312;var _314=(dojo.byId(name)&&(!dojo.widget.tags[_313]));if((arguments.length==1)&&((typeof name!="string")||(_314))){var xp=new dojo.xml.Parse();var tn=(_314)?dojo.byId(name):name;return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];}function fromScript(_317,name,_319){_319[_313]={dojotype:[{value:_312}],nodeRef:_317,fastMixIn:true};return dojo.widget.getParser().createComponentFromScript(_317,name,_319,true);}if(typeof name!="string"&&typeof _30f=="string"){dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])","0.4");return fromScript(name,_30f,_310);}_30f=_30f||{};var _31a=false;var tn=null;var h=dojo.render.html.capable;if(h){tn=document.createElement("span");}if(!_310){_31a=true;_310=tn;if(h){document.body.appendChild(_310);}}else{if(_311){dojo.dom.insertAtPosition(tn,_310,_311);}else{tn=_310;}}var _31c=fromScript(tn,name,_30f);if(!_31c||!_31c[0]||typeof _31c[0].widgetType=="undefined"){throw new Error("createWidget: Creation of \""+name+"\" widget failed.");}if(_31a){if(_31c[0].domNode.parentNode){_31c[0].domNode.parentNode.removeChild(_31c[0].domNode);}}return _31c[0];};dojo.widget.fromScript=function(name,_31e,_31f,_320){dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");return dojo.widget.createWidget(name,_31e,_31f,_320);};dojo.provide("dojo.uri.Uri");dojo.uri=new function(){this.joinPath=function(){var arr=[];for(var i=0;i<arguments.length;i++){arr.push(arguments[i]);}return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");};this.dojoUri=function(uri){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);};this.Uri=function(){var uri=arguments[0];for(var i=1;i<arguments.length;i++){if(!arguments[i]){continue;}var _326=new dojo.uri.Uri(arguments[i].toString());var _327=new dojo.uri.Uri(uri.toString());if(_326.path==""&&_326.scheme==null&&_326.authority==null&&_326.query==null){if(_326.fragment!=null){_327.fragment=_326.fragment;}_326=_327;}else{if(_326.scheme==null){_326.scheme=_327.scheme;if(_326.authority==null){_326.authority=_327.authority;if(_326.path.charAt(0)!="/"){var path=_327.path.substring(0,_327.path.lastIndexOf("/")+1)+_326.path;var segs=path.split("/");for(var j=0;j<segs.length;j++){if(segs[j]=="."){if(j==segs.length-1){segs[j]="";}else{segs.splice(j,1);j--;}}else{if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){if(j==segs.length-1){segs.splice(j,1);segs[j-1]="";}else{segs.splice(j-1,2);j-=2;}}}}_326.path=segs.join("/");}}}}uri="";if(_326.scheme!=null){uri+=_326.scheme+":";}if(_326.authority!=null){uri+="//"+_326.authority;}uri+=_326.path;if(_326.query!=null){uri+="?"+_326.query;}if(_326.fragment!=null){uri+="#"+_326.fragment;}}this.uri=uri.toString();var _32b="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";var r=this.uri.match(new RegExp(_32b));this.scheme=r[2]||(r[1]?"":null);this.authority=r[4]||(r[3]?"":null);this.path=r[5];this.query=r[7]||(r[6]?"":null);this.fragment=r[9]||(r[8]?"":null);if(this.authority!=null){_32b="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";r=this.authority.match(new RegExp(_32b));this.user=r[3]||null;this.password=r[4]||null;this.host=r[5];this.port=r[7]||null;}this.toString=function(){return this.uri;};};};dojo.kwCompoundRequire({common:["dojo.uri.Uri",false,false]});dojo.provide("dojo.uri.*");dojo.provide("dojo.widget.DomWidget");dojo.require("dojo.event.*");dojo.require("dojo.widget.Widget");dojo.require("dojo.dom");dojo.require("dojo.xml.Parse");dojo.require("dojo.uri.*");dojo.require("dojo.lang.func");dojo.require("dojo.lang.extras");dojo.widget._cssFiles={};dojo.widget._cssStrings={};dojo.widget._templateCache={};dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};dojo.widget.buildFromTemplate=function(){dojo.lang.forward("fillFromTemplateCache");};dojo.widget.fillFromTemplateCache=function(obj,_32e,_32f,_330,_331){var _332=_32e||obj.templatePath;var _333=_32f||obj.templateCssPath;if(_332&&!(_332 instanceof dojo.uri.Uri)){_332=dojo.uri.dojoUri(_332);dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");}if(_333&&!(_333 instanceof dojo.uri.Uri)){_333=dojo.uri.dojoUri(_333);dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");}var _334=dojo.widget._templateCache;if(!obj["widgetType"]){do{var _335="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;}while(_334[_335]);obj.widgetType=_335;}var wt=obj.widgetType;if(_333&&!dojo.widget._cssFiles[_333.toString()]){if((!obj.templateCssString)&&(_333)){obj.templateCssString=dojo.hostenv.getText(_333);obj.templateCssPath=null;}if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){dojo.style.insertCssText(obj.templateCssString,null,_333);if(!obj.templateCssString){obj.templateCssString="";}obj.templateCssString.loaded=true;}dojo.widget._cssFiles[_333.toString()]=true;}var ts=_334[wt];if(!ts){_334[wt]={"string":null,"node":null};if(_331){ts={};}else{ts=_334[wt];}}if((!obj.templateString)&&(!_331)){obj.templateString=_330||ts["string"];}if((!obj.templateNode)&&(!_331)){obj.templateNode=ts["node"];}if((!obj.templateNode)&&(!obj.templateString)&&(_332)){var _338=dojo.hostenv.getText(_332);if(_338){_338=_338.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _339=_338.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_339){_338=_339[1];}}else{_338="";}obj.templateString=_338;if(!_331){_334[wt]["string"]=_338;}}if((!ts["string"])&&(!_331)){ts.string=obj.templateString;}};dojo.widget._templateCache.dummyCount=0;dojo.widget.attachProperties=["dojoAttachPoint","id"];dojo.widget.eventAttachProperty="dojoAttachEvent";dojo.widget.onBuildProperty="dojoOnBuild";dojo.widget.waiNames=["waiRole","waiState"];dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:",nsName:"role"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:"",nsName:"state"},setAttr:function(node,attr,_33c){if(dojo.render.html.ie){node.setAttribute(this[attr].alias+":"+this[attr].nsName,this[attr].prefix+_33c);}else{node.setAttributeNS(this[attr].namespace,this[attr].nsName,this[attr].prefix+_33c);}}};dojo.widget.attachTemplateNodes=function(_33d,_33e,_33f){var _340=dojo.dom.ELEMENT_NODE;function trim(str){return str.replace(/^\s+|\s+$/g,"");}if(!_33d){_33d=_33e.domNode;}if(_33d.nodeType!=_340){return;}var _342=_33d.all||_33d.getElementsByTagName("*");var _343=_33e;for(var x=-1;x<_342.length;x++){var _345=(x==-1)?_33d:_342[x];var _346=[];for(var y=0;y<this.attachProperties.length;y++){var _348=_345.getAttribute(this.attachProperties[y]);if(_348){_346=_348.split(";");for(var z=0;z<_346.length;z++){if(dojo.lang.isArray(_33e[_346[z]])){_33e[_346[z]].push(_345);}else{_33e[_346[z]]=_345;}}break;}}var _34a=_345.getAttribute(this.templateProperty);if(_34a){_33e[_34a]=_345;}dojo.lang.forEach(dojo.widget.waiNames,function(name){var wai=dojo.widget.wai[name];var val=_345.getAttribute(wai.name);if(val){dojo.widget.wai.setAttr(_345,wai.name,val);}},this);var _34e=_345.getAttribute(this.eventAttachProperty);if(_34e){var evts=_34e.split(";");for(var y=0;y<evts.length;y++){if((!evts[y])||(!evts[y].length)){continue;}var _350=null;var tevt=trim(evts[y]);if(evts[y].indexOf(":")>=0){var _352=tevt.split(":");tevt=trim(_352[0]);_350=trim(_352[1]);}if(!_350){_350=tevt;}var tf=function(){var ntf=new String(_350);return function(evt){if(_343[ntf]){_343[ntf](dojo.event.browser.fixEvent(evt,this));}};}();dojo.event.browser.addListener(_345,tevt,tf,false,true);}}for(var y=0;y<_33f.length;y++){var _356=_345.getAttribute(_33f[y]);if((_356)&&(_356.length)){var _350=null;var _357=_33f[y].substr(4);_350=trim(_356);var _358=[_350];if(_350.indexOf(";")>=0){_358=dojo.lang.map(_350.split(";"),trim);}for(var z=0;z<_358.length;z++){if(!_358[z].length){continue;}var tf=function(){var ntf=new String(_358[z]);return function(evt){if(_343[ntf]){_343[ntf](dojo.event.browser.fixEvent(evt,this));}};}();dojo.event.browser.addListener(_345,_357,tf,false,true);}}}var _35b=_345.getAttribute(this.onBuildProperty);if(_35b){eval("var node = baseNode; var widget = targetObj; "+_35b);}}};dojo.widget.getDojoEventsFromStr=function(str){var re=/(dojoOn([a-z]+)(\s?))=/gi;var evts=str?str.match(re)||[]:[];var ret=[];var lem={};for(var x=0;x<evts.length;x++){if(evts[x].legth<1){continue;}var cm=evts[x].replace(/\s/,"");cm=(cm.slice(0,cm.length-1));if(!lem[cm]){lem[cm]=true;ret.push(cm);}}return ret;};dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,{initializer:function(){if((arguments.length>0)&&(typeof arguments[0]=="object")){this.create(arguments[0]);}},templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_363,_364,pos,ref,_367){if(!this.isContainer){dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");return null;}else{this.addWidgetAsDirectChild(_363,_364,pos,ref,_367);this.registerChild(_363,_367);}return _363;},addWidgetAsDirectChild:function(_368,_369,pos,ref,_36c){if((!this.containerNode)&&(!_369)){this.containerNode=this.domNode;}var cn=(_369)?_369:this.containerNode;if(!pos){pos="after";}if(!ref){if(!cn){cn=document.body;}ref=cn.lastChild;}if(!_36c){_36c=0;}_368.domNode.setAttribute("dojoinsertionindex",_36c);if(!ref){cn.appendChild(_368.domNode);}else{if(pos=="insertAtIndex"){dojo.dom.insertAtIndex(_368.domNode,ref.parentNode,_36c);}else{if((pos=="after")&&(ref===cn.lastChild)){cn.appendChild(_368.domNode);}else{dojo.dom.insertAtPosition(_368.domNode,cn,pos);}}}},registerChild:function(_36e,_36f){_36e.dojoInsertionIndex=_36f;var idx=-1;for(var i=0;i<this.children.length;i++){if(this.children[i].dojoInsertionIndex<_36f){idx=i;}}this.children.splice(idx+1,0,_36e);_36e.parent=this;_36e.addedTo(this);delete dojo.widget.manager.topWidgets[_36e.widgetId];},removeChild:function(_372){dojo.dom.removeNode(_372.domNode);return dojo.widget.DomWidget.superclass.removeChild.call(this,_372);},getFragNodeRef:function(frag){if(!frag||!frag["dojo:"+this.widgetType.toLowerCase()]){dojo.raise("Error: no frag for widget type "+this.widgetType+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");}return (frag?frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"]:null);},postInitialize:function(args,frag,_376){var _377=this.getFragNodeRef(frag);if(_376&&(_376.snarfChildDomOutput||!_377)){_376.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_377);}else{if(_377){if(this.domNode&&(this.domNode!==_377)){var _378=_377.parentNode.replaceChild(this.domNode,_377);}}}if(_376){_376.registerChild(this,args.dojoinsertionindex);}else{dojo.widget.manager.topWidgets[this.widgetId]=this;}if(this.isContainer){var _379=dojo.widget.getParser();_379.createSubComponents(frag,this);}},buildRendering:function(args,frag){var ts=dojo.widget._templateCache[this.widgetType];if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){this.buildFromTemplate(args,frag);}else{this.domNode=this.getFragNodeRef(frag);}this.fillInTemplate(args,frag);},buildFromTemplate:function(args,frag){var _37f=false;if(args["templatecsspath"]){args["templateCssPath"]=args["templatecsspath"];}if(args["templatepath"]){_37f=true;args["templatePath"]=args["templatepath"];}dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_37f);var ts=dojo.widget._templateCache[this.widgetType];if((ts)&&(!_37f)){if(!this.templateString.length){this.templateString=ts["string"];}if(!this.templateNode){this.templateNode=ts["node"];}}var _381=false;var node=null;var tstr=this.templateString;if((!this.templateNode)&&(this.templateString)){_381=this.templateString.match(/\$\{([^\}]+)\}/g);if(_381){var hash=this.strings||{};for(var key in dojo.widget.defaultStrings){if(dojo.lang.isUndefined(hash[key])){hash[key]=dojo.widget.defaultStrings[key];}}for(var i=0;i<_381.length;i++){var key=_381[i];key=key.substring(2,key.length-1);var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];var _388;if((kval)||(dojo.lang.isString(kval))){_388=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;tstr=tstr.replace(_381[i],_388);}}}else{this.templateNode=this.createNodesFromText(this.templateString,true)[0];if(!_37f){ts.node=this.templateNode;}}}if((!this.templateNode)&&(!_381)){dojo.debug("weren't able to create template!");return false;}else{if(!_381){node=this.templateNode.cloneNode(true);if(!node){return false;}}else{node=this.createNodesFromText(tstr,true)[0];}}this.domNode=node;this.attachTemplateNodes(this.domNode,this);if(this.isContainer&&this.containerNode){var src=this.getFragNodeRef(frag);if(src){dojo.dom.moveChildren(src,this.containerNode);}}},attachTemplateNodes:function(_38a,_38b){if(!_38b){_38b=this;}return dojo.widget.attachTemplateNodes(_38a,_38b,dojo.widget.getDojoEventsFromStr(this.templateString));},fillInTemplate:function(){},destroyRendering:function(){try{delete this.domNode;}catch(e){}},cleanUp:function(){},getContainerHeight:function(){dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");},getContainerWidth:function(){dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");},createNodesFromText:function(){dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");}});dojo.provide("dojo.graphics.color");dojo.require("dojo.lang.array");dojo.graphics.color.Color=function(r,g,b,a){if(dojo.lang.isArray(r)){this.r=r[0];this.g=r[1];this.b=r[2];this.a=r[3]||1;}else{if(dojo.lang.isString(r)){var rgb=dojo.graphics.color.extractRGB(r);this.r=rgb[0];this.g=rgb[1];this.b=rgb[2];this.a=g||1;}else{if(r instanceof dojo.graphics.color.Color){this.r=r.r;this.b=r.b;this.g=r.g;this.a=r.a;}else{this.r=r;this.g=g;this.b=b;this.a=a;}}}};dojo.graphics.color.Color.fromArray=function(arr){return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]);};dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_392){if(_392){return this.toRgba();}else{return [this.r,this.g,this.b];}},toRgba:function(){return [this.r,this.g,this.b,this.a];},toHex:function(){return dojo.graphics.color.rgb2hex(this.toRgb());},toCss:function(){return "rgb("+this.toRgb().join()+")";},toString:function(){return this.toHex();},blend:function(_393,_394){return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_393).toRgb(),_394);}});dojo.graphics.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};dojo.graphics.color.blend=function(a,b,_397){if(typeof a=="string"){return dojo.graphics.color.blendHex(a,b,_397);}if(!_397){_397=0;}else{if(_397>1){_397=1;}else{if(_397<-1){_397=-1;}}}var c=new Array(3);for(var i=0;i<3;i++){var half=Math.abs(a[i]-b[i])/2;c[i]=Math.floor(Math.min(a[i],b[i])+half+(half*_397));}return c;};dojo.graphics.color.blendHex=function(a,b,_39d){return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_39d));};dojo.graphics.color.extractRGB=function(_39e){var hex="0123456789abcdef";_39e=_39e.toLowerCase();if(_39e.indexOf("rgb")==0){var _3a0=_39e.match(/rgba*\((\d+), *(\d+), *(\d+)/i);var ret=_3a0.splice(1,3);return ret;}else{var _3a2=dojo.graphics.color.hex2rgb(_39e);if(_3a2){return _3a2;}else{return dojo.graphics.color.named[_39e]||[255,255,255];}}};dojo.graphics.color.hex2rgb=function(hex){var _3a4="0123456789ABCDEF";var rgb=new Array(3);if(hex.indexOf("#")==0){hex=hex.substring(1);}hex=hex.toUpperCase();if(hex.replace(new RegExp("["+_3a4+"]","g"),"")!=""){return null;}if(hex.length==3){rgb[0]=hex.charAt(0)+hex.charAt(0);rgb[1]=hex.charAt(1)+hex.charAt(1);rgb[2]=hex.charAt(2)+hex.charAt(2);}else{rgb[0]=hex.substring(0,2);rgb[1]=hex.substring(2,4);rgb[2]=hex.substring(4);}for(var i=0;i<rgb.length;i++){rgb[i]=_3a4.indexOf(rgb[i].charAt(0))*16+_3a4.indexOf(rgb[i].charAt(1));}return rgb;};dojo.graphics.color.rgb2hex=function(r,g,b){if(dojo.lang.isArray(r)){g=r[1]||0;b=r[2]||0;r=r[0]||0;}var ret=dojo.lang.map([r,g,b],function(x){x=new Number(x);var s=x.toString(16);while(s.length<2){s="0"+s;}return s;});ret.unshift("#");return ret.join("");};dojo.provide("dojo.style");dojo.require("dojo.graphics.color");dojo.require("dojo.uri.Uri");dojo.require("dojo.lang.common");(function(){var h=dojo.render.html;var ds=dojo.style;var db=document["body"]||document["documentElement"];ds.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};var bs=ds.boxSizing;ds.getBoxSizing=function(node){if((h.ie)||(h.opera)){var cm=document["compatMode"];if((cm=="BackCompat")||(cm=="QuirksMode")){return bs.BORDER_BOX;}else{return bs.CONTENT_BOX;}}else{if(arguments.length==0){node=document.documentElement;}var _3b3=ds.getStyle(node,"-moz-box-sizing");if(!_3b3){_3b3=ds.getStyle(node,"box-sizing");}return (_3b3?_3b3:bs.CONTENT_BOX);}};ds.isBorderBox=function(node){return (ds.getBoxSizing(node)==bs.BORDER_BOX);};ds.getUnitValue=function(node,_3b6,_3b7){var s=ds.getComputedStyle(node,_3b6);if((!s)||((s=="auto")&&(_3b7))){return {value:0,units:"px"};}if(dojo.lang.isUndefined(s)){return ds.getUnitValue.bad;}var _3b9=s.match(/(\-?[\d.]+)([a-z%]*)/i);if(!_3b9){return ds.getUnitValue.bad;}return {value:Number(_3b9[1]),units:_3b9[2].toLowerCase()};};ds.getUnitValue.bad={value:NaN,units:""};ds.getPixelValue=function(node,_3bb,_3bc){var _3bd=ds.getUnitValue(node,_3bb,_3bc);if(isNaN(_3bd.value)){return 0;}if((_3bd.value)&&(_3bd.units!="px")){return NaN;}return _3bd.value;};ds.getNumericStyle=function(){dojo.deprecated("dojo.(style|html).getNumericStyle","in favor of dojo.(style|html).getPixelValue","0.4");return ds.getPixelValue.apply(this,arguments);};ds.setPositivePixelValue=function(node,_3bf,_3c0){if(isNaN(_3c0)){return false;}node.style[_3bf]=Math.max(0,_3c0)+"px";return true;};ds._sumPixelValues=function(node,_3c2,_3c3){var _3c4=0;for(var x=0;x<_3c2.length;x++){_3c4+=ds.getPixelValue(node,_3c2[x],_3c3);}return _3c4;};ds.isPositionAbsolute=function(node){return (ds.getComputedStyle(node,"position")=="absolute");};ds.getBorderExtent=function(node,side){return (ds.getStyle(node,"border-"+side+"-style")=="none"?0:ds.getPixelValue(node,"border-"+side+"-width"));};ds.getMarginWidth=function(node){return ds._sumPixelValues(node,["margin-left","margin-right"],ds.isPositionAbsolute(node));};ds.getBorderWidth=function(node){return ds.getBorderExtent(node,"left")+ds.getBorderExtent(node,"right");};ds.getPaddingWidth=function(node){return ds._sumPixelValues(node,["padding-left","padding-right"],true);};ds.getPadBorderWidth=function(node){return ds.getPaddingWidth(node)+ds.getBorderWidth(node);};ds.getContentBoxWidth=function(node){node=dojo.byId(node);return node.offsetWidth-ds.getPadBorderWidth(node);};ds.getBorderBoxWidth=function(node){node=dojo.byId(node);return node.offsetWidth;};ds.getMarginBoxWidth=function(node){return ds.getInnerWidth(node)+ds.getMarginWidth(node);};ds.setContentBoxWidth=function(node,_3d1){node=dojo.byId(node);if(ds.isBorderBox(node)){_3d1+=ds.getPadBorderWidth(node);}return ds.setPositivePixelValue(node,"width",_3d1);};ds.setMarginBoxWidth=function(node,_3d3){node=dojo.byId(node);if(!ds.isBorderBox(node)){_3d3-=ds.getPadBorderWidth(node);}_3d3-=ds.getMarginWidth(node);return ds.setPositivePixelValue(node,"width",_3d3);};ds.getContentWidth=ds.getContentBoxWidth;ds.getInnerWidth=ds.getBorderBoxWidth;ds.getOuterWidth=ds.getMarginBoxWidth;ds.setContentWidth=ds.setContentBoxWidth;ds.setOuterWidth=ds.setMarginBoxWidth;ds.getMarginHeight=function(node){return ds._sumPixelValues(node,["margin-top","margin-bottom"],ds.isPositionAbsolute(node));};ds.getBorderHeight=function(node){return ds.getBorderExtent(node,"top")+ds.getBorderExtent(node,"bottom");};ds.getPaddingHeight=function(node){return ds._sumPixelValues(node,["padding-top","padding-bottom"],true);};ds.getPadBorderHeight=function(node){return ds.getPaddingHeight(node)+ds.getBorderHeight(node);};ds.getContentBoxHeight=function(node){node=dojo.byId(node);return node.offsetHeight-ds.getPadBorderHeight(node);};ds.getBorderBoxHeight=function(node){node=dojo.byId(node);return node.offsetHeight;};ds.getMarginBoxHeight=function(node){return ds.getInnerHeight(node)+ds.getMarginHeight(node);};ds.setContentBoxHeight=function(node,_3dc){node=dojo.byId(node);if(ds.isBorderBox(node)){_3dc+=ds.getPadBorderHeight(node);}return ds.setPositivePixelValue(node,"height",_3dc);};ds.setMarginBoxHeight=function(node,_3de){node=dojo.byId(node);if(!ds.isBorderBox(node)){_3de-=ds.getPadBorderHeight(node);}_3de-=ds.getMarginHeight(node);return ds.setPositivePixelValue(node,"height",_3de);};ds.getContentHeight=ds.getContentBoxHeight;ds.getInnerHeight=ds.getBorderBoxHeight;ds.getOuterHeight=ds.getMarginBoxHeight;ds.setContentHeight=ds.setContentBoxHeight;ds.setOuterHeight=ds.setMarginBoxHeight;ds.getAbsolutePosition=ds.abs=function(node,_3e0){node=dojo.byId(node);var ret=[];ret.x=ret.y=0;var st=dojo.html.getScrollTop();var sl=dojo.html.getScrollLeft();if(h.ie){with(node.getBoundingClientRect()){ret.x=left-2;ret.y=top-2;}}else{if(document.getBoxObjectFor){var bo=document.getBoxObjectFor(node);ret.x=bo.x-ds.sumAncestorProperties(node,"scrollLeft");ret.y=bo.y-ds.sumAncestorProperties(node,"scrollTop");}else{if(node["offsetParent"]){var _3e5;if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){_3e5=db;}else{_3e5=db.parentNode;}if(node.parentNode!=db){var nd=node;if(window.opera){nd=db;}ret.x-=ds.sumAncestorProperties(nd,"scrollLeft");ret.y-=ds.sumAncestorProperties(nd,"scrollTop");}do{var n=node["offsetLeft"];ret.x+=isNaN(n)?0:n;var m=node["offsetTop"];ret.y+=isNaN(m)?0:m;node=node.offsetParent;}while((node!=_3e5)&&(node!=null));}else{if(node["x"]&&node["y"]){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(_3e0){ret.y+=st;ret.x+=sl;}ret[0]=ret.x;ret[1]=ret.y;return ret;};ds.sumAncestorProperties=function(node,prop){node=dojo.byId(node);if(!node){return 0;}var _3eb=0;while(node){var val=node[prop];if(val){_3eb+=val-0;if(node==document.body){break;}}node=node.parentNode;}return _3eb;};ds.getTotalOffset=function(node,type,_3ef){return ds.abs(node,_3ef)[(type=="top")?"y":"x"];};ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_3f1){return ds.getTotalOffset(node,"left",_3f1);};ds.getAbsoluteY=ds.totalOffsetTop=function(node,_3f3){return ds.getTotalOffset(node,"top",_3f3);};ds.styleSheet=null;ds.insertCssRule=function(_3f4,_3f5,_3f6){if(!ds.styleSheet){if(document.createStyleSheet){ds.styleSheet=document.createStyleSheet();}else{if(document.styleSheets[0]){ds.styleSheet=document.styleSheets[0];}else{return null;}}}if(arguments.length<3){if(ds.styleSheet.cssRules){_3f6=ds.styleSheet.cssRules.length;}else{if(ds.styleSheet.rules){_3f6=ds.styleSheet.rules.length;}else{return null;}}}if(ds.styleSheet.insertRule){var rule=_3f4+" { "+_3f5+" }";return ds.styleSheet.insertRule(rule,_3f6);}else{if(ds.styleSheet.addRule){return ds.styleSheet.addRule(_3f4,_3f5,_3f6);}else{return null;}}};ds.removeCssRule=function(_3f8){if(!ds.styleSheet){dojo.debug("no stylesheet defined for removing rules");return false;}if(h.ie){if(!_3f8){_3f8=ds.styleSheet.rules.length;ds.styleSheet.removeRule(_3f8);}}else{if(document.styleSheets[0]){if(!_3f8){_3f8=ds.styleSheet.cssRules.length;}ds.styleSheet.deleteRule(_3f8);}}return true;};ds.insertCssFile=function(URI,doc,_3fb){if(!URI){return;}if(!doc){doc=document;}var _3fc=dojo.hostenv.getText(URI);_3fc=ds.fixPathsInCssText(_3fc,URI);if(_3fb){var _3fd=doc.getElementsByTagName("style");var _3fe="";for(var i=0;i<_3fd.length;i++){_3fe=(_3fd[i].styleSheet&&_3fd[i].styleSheet.cssText)?_3fd[i].styleSheet.cssText:_3fd[i].innerHTML;if(_3fc==_3fe){return;}}}var _400=ds.insertCssText(_3fc);if(_400&&djConfig.isDebug){_400.setAttribute("dbgHref",URI);}return _400;};ds.insertCssText=function(_401,doc,URI){if(!_401){return;}if(!doc){doc=document;}if(URI){_401=ds.fixPathsInCssText(_401,URI);}var _404=doc.createElement("style");_404.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){dojo.debug("No head tag in document, aborting styles");return;}else{head.appendChild(_404);}if(_404.styleSheet){_404.styleSheet.cssText=_401;}else{var _406=doc.createTextNode(_401);_404.appendChild(_406);}return _404;};ds.fixPathsInCssText=function(_407,URI){if(!_407||!URI){return;}var pos=0;var str="";var url="";while(pos!=-1){pos=0;url="";pos=_407.indexOf("url(",pos);if(pos<0){break;}str+=_407.slice(0,pos+4);_407=_407.substring(pos+4,_407.length);url+=_407.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];_407=_407.substring(url.length-1,_407.length);url=url.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");if(url.search(/(file|https?|ftps?):\/\//)==-1){url=(new dojo.uri.Uri(URI,url).toString());}str+=url;}return str+_407;};ds.getBackgroundColor=function(node){node=dojo.byId(node);var _40d;do{_40d=ds.getStyle(node,"background-color");if(_40d.toLowerCase()=="rgba(0, 0, 0, 0)"){_40d="transparent";}if(node==document.getElementsByTagName("body")[0]){node=null;break;}node=node.parentNode;}while(node&&dojo.lang.inArray(_40d,["transparent",""]));if(_40d=="transparent"){_40d=[255,255,255,0];}else{_40d=dojo.graphics.color.extractRGB(_40d);}return _40d;};ds.getComputedStyle=function(node,_40f,_410){node=dojo.byId(node);var _40f=ds.toSelectorCase(_40f);var _411=ds.toCamelCase(_40f);if(!node||!node.style){return _410;}else{if(document.defaultView){try{var cs=document.defaultView.getComputedStyle(node,"");if(cs){return cs.getPropertyValue(_40f);}}catch(e){if(node.style.getPropertyValue){return node.style.getPropertyValue(_40f);}else{return _410;}}}else{if(node.currentStyle){return node.currentStyle[_411];}}}if(node.style.getPropertyValue){return node.style.getPropertyValue(_40f);}else{return _410;}};ds.getStyleProperty=function(node,_414){node=dojo.byId(node);return (node&&node.style?node.style[ds.toCamelCase(_414)]:undefined);};ds.getStyle=function(node,_416){var _417=ds.getStyleProperty(node,_416);return (_417?_417:ds.getComputedStyle(node,_416));};ds.setStyle=function(node,_419,_41a){node=dojo.byId(node);if(node&&node.style){var _41b=ds.toCamelCase(_419);node.style[_41b]=_41a;}};ds.toCamelCase=function(_41c){var arr=_41c.split("-"),cc=arr[0];for(var i=1;i<arr.length;i++){cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);}return cc;};ds.toSelectorCase=function(_41f){return _41f.replace(/([A-Z])/g,"-$1").toLowerCase();};ds.setOpacity=function setOpacity(node,_421,_422){node=dojo.byId(node);if(!_422){if(_421>=1){if(h.ie){ds.clearOpacity(node);return;}else{_421=0.999999;}}else{if(_421<0){_421=0;}}}if(h.ie){if(node.nodeName.toLowerCase()=="tr"){var tds=node.getElementsByTagName("td");for(var x=0;x<tds.length;x++){tds[x].style.filter="Alpha(Opacity="+_421*100+")";}}node.style.filter="Alpha(Opacity="+_421*100+")";}else{if(h.moz){node.style.opacity=_421;node.style.MozOpacity=_421;}else{if(h.safari){node.style.opacity=_421;node.style.KhtmlOpacity=_421;}else{node.style.opacity=_421;}}}};ds.getOpacity=function getOpacity(node){node=dojo.byId(node);if(h.ie){var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;}else{var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;}return opac>=0.999999?1:Number(opac);};ds.clearOpacity=function clearOpacity(node){node=dojo.byId(node);var ns=node.style;if(h.ie){try{if(node.filters&&node.filters.alpha){ns.filter="";}}catch(e){}}else{if(h.moz){ns.opacity=1;ns.MozOpacity=1;}else{if(h.safari){ns.opacity=1;ns.KhtmlOpacity=1;}else{ns.opacity=1;}}}};ds.setStyleAttributes=function(node,_42a){var _42b={"opacity":dojo.style.setOpacity,"content-height":dojo.style.setContentHeight,"content-width":dojo.style.setContentWidth,"outer-height":dojo.style.setOuterHeight,"outer-width":dojo.style.setOuterWidth};var _42c=_42a.replace(/(;)?\s*$/,"").split(";");for(var i=0;i<_42c.length;i++){var _42e=_42c[i].split(":");var name=_42e[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();var _430=_42e[1].replace(/\s*$/,"").replace(/^\s*/,"");if(dojo.lang.has(_42b,name)){_42b[name](node,_430);}else{node.style[dojo.style.toCamelCase(name)]=_430;}}};ds._toggle=function(node,_432,_433){node=dojo.byId(node);_433(node,!_432(node));return _432(node);};ds.show=function(node){node=dojo.byId(node);if(ds.getStyleProperty(node,"display")=="none"){ds.setStyle(node,"display",(node.dojoDisplayCache||""));node.dojoDisplayCache=undefined;}};ds.hide=function(node){node=dojo.byId(node);if(typeof node["dojoDisplayCache"]=="undefined"){var d=ds.getStyleProperty(node,"display");if(d!="none"){node.dojoDisplayCache=d;}}ds.setStyle(node,"display","none");};ds.setShowing=function(node,_438){ds[(_438?"show":"hide")](node);};ds.isShowing=function(node){return (ds.getStyleProperty(node,"display")!="none");};ds.toggleShowing=function(node){return ds._toggle(node,ds.isShowing,ds.setShowing);};ds.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};ds.suggestDisplayByTagName=function(node){node=dojo.byId(node);if(node&&node.tagName){var tag=node.tagName.toLowerCase();return (tag in ds.displayMap?ds.displayMap[tag]:"block");}};ds.setDisplay=function(node,_43e){ds.setStyle(node,"display",(dojo.lang.isString(_43e)?_43e:(_43e?ds.suggestDisplayByTagName(node):"none")));};ds.isDisplayed=function(node){return (ds.getComputedStyle(node,"display")!="none");};ds.toggleDisplay=function(node){return ds._toggle(node,ds.isDisplayed,ds.setDisplay);};ds.setVisibility=function(node,_442){ds.setStyle(node,"visibility",(dojo.lang.isString(_442)?_442:(_442?"visible":"hidden")));};ds.isVisible=function(node){return (ds.getComputedStyle(node,"visibility")!="hidden");};ds.toggleVisibility=function(node){return ds._toggle(node,ds.isVisible,ds.setVisibility);};ds.toCoordinateArray=function(_445,_446){if(dojo.lang.isArray(_445)){while(_445.length<4){_445.push(0);}while(_445.length>4){_445.pop();}var ret=_445;}else{var node=dojo.byId(_445);var pos=ds.getAbsolutePosition(node,_446);var ret=[pos.x,pos.y,ds.getBorderBoxWidth(node),ds.getBorderBoxHeight(node)];}ret.x=ret[0];ret.y=ret[1];ret.w=ret[2];ret.h=ret[3];return ret;};})();dojo.provide("dojo.string.common");dojo.require("dojo.string");dojo.string.trim=function(str,wh){if(!str.replace){return str;}if(!str.length){return str;}var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g);return str.replace(re,"");};dojo.string.trimStart=function(str){return dojo.string.trim(str,1);};dojo.string.trimEnd=function(str){return dojo.string.trim(str,-1);};dojo.string.repeat=function(str,_450,_451){var out="";for(var i=0;i<_450;i++){out+=str;if(_451&&i<_450-1){out+=_451;}}return out;};dojo.string.pad=function(str,len,c,dir){var out=String(str);if(!c){c="0";}if(!dir){dir=1;}while(out.length<len){if(dir>0){out=c+out;}else{out+=c;}}return out;};dojo.string.padLeft=function(str,len,c){return dojo.string.pad(str,len,c,1);};dojo.string.padRight=function(str,len,c){return dojo.string.pad(str,len,c,-1);};dojo.provide("dojo.string");dojo.require("dojo.string.common");dojo.provide("dojo.html");dojo.require("dojo.lang.func");dojo.require("dojo.dom");dojo.require("dojo.style");dojo.require("dojo.string");dojo.lang.mixin(dojo.html,dojo.dom);dojo.lang.mixin(dojo.html,dojo.style);dojo.html.clearSelection=function(){try{if(window["getSelection"]){if(dojo.render.html.safari){window.getSelection().collapse();}else{window.getSelection().removeAllRanges();}}else{if(document.selection){if(document.selection.empty){document.selection.empty();}else{if(document.selection.clear){document.selection.clear();}}}}return true;}catch(e){dojo.debug(e);return false;}};dojo.html.disableSelection=function(_45f){_45f=dojo.byId(_45f)||document.body;var h=dojo.render.html;if(h.mozilla){_45f.style.MozUserSelect="none";}else{if(h.safari){_45f.style.KhtmlUserSelect="none";}else{if(h.ie){_45f.unselectable="on";}else{return false;}}}return true;};dojo.html.enableSelection=function(_461){_461=dojo.byId(_461)||document.body;var h=dojo.render.html;if(h.mozilla){_461.style.MozUserSelect="";}else{if(h.safari){_461.style.KhtmlUserSelect="";}else{if(h.ie){_461.unselectable="off";}else{return false;}}}return true;};dojo.html.selectElement=function(_463){_463=dojo.byId(_463);if(document.selection&&document.body.createTextRange){var _464=document.body.createTextRange();_464.moveToElementText(_463);_464.select();}else{if(window["getSelection"]){var _465=window.getSelection();if(_465["selectAllChildren"]){_465.selectAllChildren(_463);}}}};dojo.html.selectInputText=function(_466){_466=dojo.byId(_466);if(document.selection&&document.body.createTextRange){var _467=_466.createTextRange();_467.moveStart("character",0);_467.moveEnd("character",_466.value.length);_467.select();}else{if(window["getSelection"]){var _468=window.getSelection();_466.setSelectionRange(0,_466.value.length);}}_466.focus();};dojo.html.isSelectionCollapsed=function(){if(document["selection"]){return document.selection.createRange().text=="";}else{if(window["getSelection"]){var _469=window.getSelection();if(dojo.lang.isString(_469)){return _469=="";}else{return _469.isCollapsed;}}}};dojo.html.getEventTarget=function(evt){if(!evt){evt=window.event||{};}var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));while((t)&&(t.nodeType!=1)){t=t.parentNode;}return t;};dojo.html.getDocumentWidth=function(){dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");return dojo.html.getViewportWidth();};dojo.html.getDocumentHeight=function(){dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");return dojo.html.getViewportHeight();};dojo.html.getDocumentSize=function(){dojo.deprecated("dojo.html.getDocument*","replaced of dojo.html.getViewport*","0.4");return dojo.html.getViewportSize();};dojo.html.getViewportWidth=function(){var w=0;if(window.innerWidth){w=window.innerWidth;}if(dojo.exists(document,"documentElement.clientWidth")){var w2=document.documentElement.clientWidth;if(!w||w2&&w2<w){w=w2;}return w;}if(document.body){return document.body.clientWidth;}return 0;};dojo.html.getViewportHeight=function(){if(window.innerHeight){return window.innerHeight;}if(dojo.exists(document,"documentElement.clientHeight")){return document.documentElement.clientHeight;}if(document.body){return document.body.clientHeight;}return 0;};dojo.html.getViewportSize=function(){var ret=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()];ret.w=ret[0];ret.h=ret[1];return ret;};dojo.html.getScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;};dojo.html.getScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;};dojo.html.getScrollOffset=function(){var off=[dojo.html.getScrollLeft(),dojo.html.getScrollTop()];off.x=off[0];off.y=off[1];return off;};dojo.html.getParentOfType=function(node,type){dojo.deprecated("dojo.html.getParentOfType","replaced by dojo.html.getParentByType*","0.4");return dojo.html.getParentByType(node,type);};dojo.html.getParentByType=function(node,type){var _474=dojo.byId(node);type=type.toLowerCase();while((_474)&&(_474.nodeName.toLowerCase()!=type)){if(_474==(document["body"]||document["documentElement"])){return null;}_474=_474.parentNode;}return _474;};dojo.html.getAttribute=function(node,attr){node=dojo.byId(node);if((!node)||(!node.getAttribute)){return null;}var ta=typeof attr=="string"?attr:new String(attr);var v=node.getAttribute(ta.toUpperCase());if((v)&&(typeof v=="string")&&(v!="")){return v;}if(v&&v.value){return v.value;}if((node.getAttributeNode)&&(node.getAttributeNode(ta))){return (node.getAttributeNode(ta)).value;}else{if(node.getAttribute(ta)){return node.getAttribute(ta);}else{if(node.getAttribute(ta.toLowerCase())){return node.getAttribute(ta.toLowerCase());}}}return null;};dojo.html.hasAttribute=function(node,attr){node=dojo.byId(node);return dojo.html.getAttribute(node,attr)?true:false;};dojo.html.getClass=function(node){node=dojo.byId(node);if(!node){return "";}var cs="";if(node.className){cs=node.className;}else{if(dojo.html.hasAttribute(node,"class")){cs=dojo.html.getAttribute(node,"class");}}return dojo.string.trim(cs);};dojo.html.getClasses=function(node){var c=dojo.html.getClass(node);return (c=="")?[]:c.split(/\s+/g);};dojo.html.hasClass=function(node,_480){return dojo.lang.inArray(dojo.html.getClasses(node),_480);};dojo.html.prependClass=function(node,_482){_482+=" "+dojo.html.getClass(node);return dojo.html.setClass(node,_482);};dojo.html.addClass=function(node,_484){if(dojo.html.hasClass(node,_484)){return false;}_484=dojo.string.trim(dojo.html.getClass(node)+" "+_484);return dojo.html.setClass(node,_484);};dojo.html.setClass=function(node,_486){node=dojo.byId(node);var cs=new String(_486);try{if(typeof node.className=="string"){node.className=cs;}else{if(node.setAttribute){node.setAttribute("class",_486);node.className=cs;}else{return false;}}}catch(e){dojo.debug("dojo.html.setClass() failed",e);}return true;};dojo.html.removeClass=function(node,_489,_48a){var _489=dojo.string.trim(new String(_489));try{var cs=dojo.html.getClasses(node);var nca=[];if(_48a){for(var i=0;i<cs.length;i++){if(cs[i].indexOf(_489)==-1){nca.push(cs[i]);}}}else{for(var i=0;i<cs.length;i++){if(cs[i]!=_489){nca.push(cs[i]);}}}dojo.html.setClass(node,nca.join(" "));}catch(e){dojo.debug("dojo.html.removeClass() failed",e);}return true;};dojo.html.replaceClass=function(node,_48f,_490){dojo.html.removeClass(node,_490);dojo.html.addClass(node,_48f);};dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};dojo.html.getElementsByClass=function(_491,_492,_493,_494,_495){_492=dojo.byId(_492)||document;var _496=_491.split(/\s+/g);var _497=[];if(_494!=1&&_494!=2){_494=0;}var _498=new RegExp("(\\s|^)(("+_496.join(")|(")+"))(\\s|$)");var _499=[];if(!_495&&document.evaluate){var _49a="//"+(_493||"*")+"[contains(";if(_494!=dojo.html.classMatchType.ContainsAny){_49a+="concat(' ',@class,' '), ' "+_496.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";}else{_49a+="concat(' ',@class,' '), ' "+_496.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";}var _49b=document.evaluate(_49a,_492,null,XPathResult.ANY_TYPE,null);var _49c=_49b.iterateNext();while(_49c){try{_499.push(_49c);_49c=_49b.iterateNext();}catch(e){break;}}return _499;}else{if(!_493){_493="*";}_499=_492.getElementsByTagName(_493);var node,i=0;outer:while(node=_499[i++]){var _49e=dojo.html.getClasses(node);if(_49e.length==0){continue outer;}var _49f=0;for(var j=0;j<_49e.length;j++){if(_498.test(_49e[j])){if(_494==dojo.html.classMatchType.ContainsAny){_497.push(node);continue outer;}else{_49f++;}}else{if(_494==dojo.html.classMatchType.IsOnly){continue outer;}}}if(_49f==_496.length){if((_494==dojo.html.classMatchType.IsOnly)&&(_49f==_49e.length)){_497.push(node);}else{if(_494==dojo.html.classMatchType.ContainsAll){_497.push(node);}}}}return _497;}};dojo.html.getElementsByClassName=dojo.html.getElementsByClass;dojo.html.getCursorPosition=function(e){e=e||window.event;var _4a2={x:0,y:0};if(e.pageX||e.pageY){_4a2.x=e.pageX;_4a2.y=e.pageY;}else{var de=document.documentElement;var db=document.body;_4a2.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);_4a2.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);}return _4a2;};dojo.html.overElement=function(_4a5,e){_4a5=dojo.byId(_4a5);var _4a7=dojo.html.getCursorPosition(e);with(dojo.html){var top=getAbsoluteY(_4a5,true);var _4a9=top+getInnerHeight(_4a5);var left=getAbsoluteX(_4a5,true);var _4ab=left+getInnerWidth(_4a5);}return (_4a7.x>=left&&_4a7.x<=_4ab&&_4a7.y>=top&&_4a7.y<=_4a9);};dojo.html.setActiveStyleSheet=function(_4ac){var i=0,a,els=document.getElementsByTagName("link");while(a=els[i++]){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){a.disabled=true;if(a.getAttribute("title")==_4ac){a.disabled=false;}}}};dojo.html.getActiveStyleSheet=function(){var i=0,a,els=document.getElementsByTagName("link");while(a=els[i++]){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){return a.getAttribute("title");}}return null;};dojo.html.getPreferredStyleSheet=function(){var i=0,a,els=document.getElementsByTagName("link");while(a=els[i++]){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){return a.getAttribute("title");}}return null;};dojo.html.body=function(){return document.body||document.getElementsByTagName("body")[0];};dojo.html.isTag=function(node){node=dojo.byId(node);if(node&&node.tagName){var arr=dojo.lang.map(dojo.lang.toArray(arguments,1),function(a){return String(a).toLowerCase();});return arr[dojo.lang.find(node.tagName.toLowerCase(),arr)]||"";}return "";};dojo.html.copyStyle=function(_4b3,_4b4){if(dojo.lang.isUndefined(_4b4.style.cssText)){_4b3.setAttribute("style",_4b4.getAttribute("style"));}else{_4b3.style.cssText=_4b4.style.cssText;}dojo.html.addClass(_4b3,dojo.html.getClass(_4b4));};dojo.html._callExtrasDeprecated=function(_4b5,args){var _4b7="dojo.html.extras";dojo.deprecated("dojo.html."+_4b5,"moved to "+_4b7,"0.4");dojo["require"](_4b7);return dojo.html[_4b5].apply(dojo.html,args);};dojo.html.createNodesFromText=function(){return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);};dojo.html.gravity=function(){return dojo.html._callExtrasDeprecated("gravity",arguments);};dojo.html.placeOnScreen=function(){return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);};dojo.html.placeOnScreenPoint=function(){return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);};dojo.html.renderedTextContent=function(){return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);};dojo.html.BackgroundIframe=function(){return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);};dojo.provide("dojo.string.extras");dojo.require("dojo.string.common");dojo.require("dojo.lang");dojo.string.substituteParams=function(_4b8,hash){var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);return _4b8.replace(/\%\{(\w+)\}/g,function(_4bb,key){return map[key]||dojo.raise("Substitution not found: "+key);});};dojo.string.paramString=function(str,_4be,_4bf){dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");for(var name in _4be){var re=new RegExp("\\%\\{"+name+"\\}","g");str=str.replace(re,_4be[name]);}if(_4bf){str=str.replace(/%\{([^\}\s]+)\}/g,"");}return str;};dojo.string.capitalize=function(str){if(!dojo.lang.isString(str)){return "";}if(arguments.length==0){str=this;}var _4c3=str.split(" ");for(var i=0;i<_4c3.length;i++){_4c3[i]=_4c3[i].charAt(0).toUpperCase()+_4c3[i].substring(1);}return _4c3.join(" ");};dojo.string.isBlank=function(str){if(!dojo.lang.isString(str)){return true;}return (dojo.string.trim(str).length==0);};dojo.string.encodeAscii=function(str){if(!dojo.lang.isString(str)){return str;}var ret="";var _4c8=escape(str);var _4c9,re=/%u([0-9A-F]{4})/i;while((_4c9=_4c8.match(re))){var num=Number("0x"+_4c9[1]);var _4cb=escape("&#"+num+";");ret+=_4c8.substring(0,_4c9.index)+_4cb;_4c8=_4c8.substring(_4c9.index+_4c9[0].length);}ret+=_4c8.replace(/\+/g,"%2B");return ret;};dojo.string.escape=function(type,str){var args=dojo.lang.toArray(arguments,1);switch(type.toLowerCase()){case "xml":case "html":case "xhtml":return dojo.string.escapeXml.apply(this,args);case "sql":return dojo.string.escapeSql.apply(this,args);case "regexp":case "regex":return dojo.string.escapeRegExp.apply(this,args);case "javascript":case "jscript":case "js":return dojo.string.escapeJavaScript.apply(this,args);case "ascii":return dojo.string.encodeAscii.apply(this,args);default:return str;}};dojo.string.escapeXml=function(str,_4d0){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_4d0){str=str.replace(/'/gm,"&#39;");}return str;};dojo.string.escapeSql=function(str){return str.replace(/'/gm,"''");};dojo.string.escapeRegExp=function(str){return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");};dojo.string.escapeJavaScript=function(str){return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");};dojo.string.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.string.summary=function(str,len){if(!len||str.length<=len){return str;}else{return str.substring(0,len).replace(/\.+$/,"")+"...";}};dojo.string.endsWith=function(str,end,_4d9){if(_4d9){str=str.toLowerCase();end=end.toLowerCase();}if((str.length-end.length)<0){return false;}return str.lastIndexOf(end)==str.length-end.length;};dojo.string.endsWithAny=function(str){for(var i=1;i<arguments.length;i++){if(dojo.string.endsWith(str,arguments[i])){return true;}}return false;};dojo.string.startsWith=function(str,_4dd,_4de){if(_4de){str=str.toLowerCase();_4dd=_4dd.toLowerCase();}return str.indexOf(_4dd)==0;};dojo.string.startsWithAny=function(str){for(var i=1;i<arguments.length;i++){if(dojo.string.startsWith(str,arguments[i])){return true;}}return false;};dojo.string.has=function(str){for(var i=1;i<arguments.length;i++){if(str.indexOf(arguments[i])>-1){return true;}}return false;};dojo.string.normalizeNewlines=function(text,_4e4){if(_4e4=="\n"){text=text.replace(/\r\n/g,"\n");text=text.replace(/\r/g,"\n");}else{if(_4e4=="\r"){text=text.replace(/\r\n/g,"\r");text=text.replace(/\n/g,"\r");}else{text=text.replace(/([^\r])\n/g,"$1\r\n");text=text.replace(/\r([^\n])/g,"\r\n$1");}}return text;};dojo.string.splitEscaped=function(str,_4e6){var _4e7=[];for(var i=0,prevcomma=0;i<str.length;i++){if(str.charAt(i)=="\\"){i++;continue;}if(str.charAt(i)==_4e6){_4e7.push(str.substring(prevcomma,i));prevcomma=i+1;}}_4e7.push(str.substr(prevcomma));return _4e7;};dojo.require("dojo.html");dojo.provide("dojo.html.extras");dojo.require("dojo.string.extras");dojo.html.gravity=function(node,e){node=dojo.byId(node);var _4eb=dojo.html.getCursorPosition(e);with(dojo.html){var _4ec=getAbsoluteX(node,true)+(getInnerWidth(node)/2);var _4ed=getAbsoluteY(node,true)+(getInnerHeight(node)/2);}with(dojo.html.gravity){return ((_4eb.x<_4ec?WEST:EAST)|(_4eb.y<_4ed?NORTH:SOUTH));}};dojo.html.gravity.NORTH=1;dojo.html.gravity.SOUTH=1<<1;dojo.html.gravity.EAST=1<<2;dojo.html.gravity.WEST=1<<3;dojo.html.renderedTextContent=function(node){node=dojo.byId(node);var _4ef="";if(node==null){return _4ef;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:var _4f1="unknown";try{_4f1=dojo.style.getStyle(node.childNodes[i],"display");}catch(E){}switch(_4f1){case "block":case "list-item":case "run-in":case "table":case "table-row-group":case "table-header-group":case "table-footer-group":case "table-row":case "table-column-group":case "table-column":case "table-cell":case "table-caption":_4ef+="\n";_4ef+=dojo.html.renderedTextContent(node.childNodes[i]);_4ef+="\n";break;case "none":break;default:if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){_4ef+="\n";}else{_4ef+=dojo.html.renderedTextContent(node.childNodes[i]);}break;}break;case 3:case 2:case 4:var text=node.childNodes[i].nodeValue;var _4f3="unknown";try{_4f3=dojo.style.getStyle(node,"text-transform");}catch(E){}switch(_4f3){case "capitalize":text=dojo.string.capitalize(text);break;case "uppercase":text=text.toUpperCase();break;case "lowercase":text=text.toLowerCase();break;default:break;}switch(_4f3){case "nowrap":break;case "pre-wrap":break;case "pre-line":break;case "pre":break;default:text=text.replace(/\s+/," ");if(/\s$/.test(_4ef)){text.replace(/^\s/,"");}break;}_4ef+=text;break;default:break;}}return _4ef;};dojo.html.createNodesFromText=function(txt,trim){if(trim){txt=dojo.string.trim(txt);}var tn=document.createElement("div");tn.style.visibility="hidden";document.body.appendChild(tn);var _4f7="none";if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";_4f7="cell";}else{if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){txt="<table><tbody>"+txt+"</tbody></table>";_4f7="row";}else{if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){txt="<table>"+txt+"</table>";_4f7="section";}}}tn.innerHTML=txt;if(tn["normalize"]){tn.normalize();}var _4f8=null;switch(_4f7){case "cell":_4f8=tn.getElementsByTagName("tr")[0];break;case "row":_4f8=tn.getElementsByTagName("tbody")[0];break;case "section":_4f8=tn.getElementsByTagName("table")[0];break;default:_4f8=tn;break;}var _4f9=[];for(var x=0;x<_4f8.childNodes.length;x++){_4f9.push(_4f8.childNodes[x].cloneNode(true));}tn.style.display="none";document.body.removeChild(tn);return _4f9;};dojo.html.placeOnScreen=function(node,_4fc,_4fd,_4fe,_4ff){if(dojo.lang.isArray(_4fc)){_4ff=_4fe;_4fe=_4fd;_4fd=_4fc[1];_4fc=_4fc[0];}if(!isNaN(_4fe)){_4fe=[Number(_4fe),Number(_4fe)];}else{if(!dojo.lang.isArray(_4fe)){_4fe=[0,0];}}var _500=dojo.html.getScrollOffset();var view=dojo.html.getViewportSize();node=dojo.byId(node);var w=node.offsetWidth+_4fe[0];var h=node.offsetHeight+_4fe[1];if(_4ff){_4fc-=_500.x;_4fd-=_500.y;}var x=_4fc+w;if(x>view.w){x=view.w-w;}else{x=_4fc;}x=Math.max(_4fe[0],x)+_500.x;var y=_4fd+h;if(y>view.h){y=view.h-h;}else{y=_4fd;}y=Math.max(_4fe[1],y)+_500.y;node.style.left=x+"px";node.style.top=y+"px";var ret=[x,y];ret.x=x;ret.y=y;return ret;};dojo.html.placeOnScreenPoint=function(node,_508,_509,_50a,_50b){if(dojo.lang.isArray(_508)){_50b=_50a;_50a=_509;_509=_508[1];_508=_508[0];}if(!isNaN(_50a)){_50a=[Number(_50a),Number(_50a)];}else{if(!dojo.lang.isArray(_50a)){_50a=[0,0];}}var _50c=dojo.html.getScrollOffset();var view=dojo.html.getViewportSize();node=dojo.byId(node);var _50e=node.style.display;node.style.display="";var w=dojo.style.getInnerWidth(node);var h=dojo.style.getInnerHeight(node);node.style.display=_50e;if(_50b){_508-=_50c.x;_509-=_50c.y;}var x=-1,y=-1;if((_508+_50a[0])+w<=view.w&&(_509+_50a[1])+h<=view.h){x=(_508+_50a[0]);y=(_509+_50a[1]);}if((x<0||y<0)&&(_508-_50a[0])<=view.w&&(_509+_50a[1])+h<=view.h){x=(_508-_50a[0])-w;y=(_509+_50a[1]);}if((x<0||y<0)&&(_508+_50a[0])+w<=view.w&&(_509-_50a[1])<=view.h){x=(_508+_50a[0]);y=(_509-_50a[1])-h;}if((x<0||y<0)&&(_508-_50a[0])<=view.w&&(_509-_50a[1])<=view.h){x=(_508-_50a[0])-w;y=(_509-_50a[1])-h;}if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){return dojo.html.placeOnScreen(node,_508,_509,_50a,_50b);}x+=_50c.x;y+=_50c.y;node.style.left=x+"px";node.style.top=y+"px";var ret=[x,y];ret.x=x;ret.y=y;return ret;};dojo.html.BackgroundIframe=function(node){if(dojo.render.html.ie55||dojo.render.html.ie60){var html="<iframe "+"style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";this.iframe=document.createElement(html);if(node){node.appendChild(this.iframe);this.domNode=node;}else{document.body.appendChild(this.iframe);this.iframe.style.display="none";}}};dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){if(this.iframe&&this.domNode&&this.domNode.parentElement){var w=dojo.style.getOuterWidth(this.domNode);var h=dojo.style.getOuterHeight(this.domNode);if(w==0||h==0){dojo.lang.setTimeout(this,this.onResized,50);return;}var s=this.iframe.style;s.width=w+"px";s.height=h+"px";}},size:function(node){if(!this.iframe){return;}var _519=dojo.style.toCoordinateArray(node,true);var s=this.iframe.style;s.width=_519.w+"px";s.height=_519.h+"px";s.left=_519.x+"px";s.top=_519.y+"px";},setZIndex:function(node){if(!this.iframe){return;}if(dojo.dom.isNode(node)){this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;}else{if(!isNaN(node)){this.iframe.style.zIndex=node;}}},show:function(){if(!this.iframe){return;}this.iframe.style.display="block";},hide:function(){if(!this.ie){return;}var s=this.iframe.style;s.display="none";},remove:function(){dojo.dom.removeNode(this.iframe);}});dojo.provide("dojo.lfx.Animation");dojo.provide("dojo.lfx.Line");dojo.require("dojo.lang.func");dojo.lfx.Line=function(_51d,end){this.start=_51d;this.end=end;if(dojo.lang.isArray(_51d)){var diff=[];dojo.lang.forEach(this.start,function(s,i){diff[i]=this.end[i]-s;},this);this.getValue=function(n){var res=[];dojo.lang.forEach(this.start,function(s,i){res[i]=(diff[i]*n)+s;},this);return res;};}else{var diff=end-_51d;this.getValue=function(n){return (diff*n)+this.start;};}};dojo.lfx.easeIn=function(n){return Math.pow(n,3);};dojo.lfx.easeOut=function(n){return (1-Math.pow(1-n,3));};dojo.lfx.easeInOut=function(n){return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));};dojo.lfx.IAnimation=function(){};dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,fire:function(evt,args){if(this[evt]){this[evt].apply(this,(args||[]));}},_active:false,_paused:false});dojo.lfx.Animation=function(_52c,_52d,_52e,_52f,_530,rate){dojo.lfx.IAnimation.call(this);if(dojo.lang.isNumber(_52c)||(!_52c&&_52d.getValue)){rate=_530;_530=_52f;_52f=_52e;_52e=_52d;_52d=_52c;_52c=null;}else{if(_52c.getValue||dojo.lang.isArray(_52c)){rate=_52f;_530=_52e;_52f=_52d;_52e=_52c;_52d=null;_52c=null;}}if(dojo.lang.isArray(_52e)){this.curve=new dojo.lfx.Line(_52e[0],_52e[1]);}else{this.curve=_52e;}if(_52d!=null&&_52d>0){this.duration=_52d;}if(_530){this.repeatCount=_530;}if(rate){this.rate=rate;}if(_52c){this.handler=_52c.handler;this.beforeBegin=_52c.beforeBegin;this.onBegin=_52c.onBegin;this.onEnd=_52c.onEnd;this.onPlay=_52c.onPlay;this.onPause=_52c.onPause;this.onStop=_52c.onStop;this.onAnimate=_52c.onAnimate;}if(_52f&&dojo.lang.isFunction(_52f)){this.easing=_52f;}};dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_532,_533){if(_533){clearTimeout(this._timer);this._active=false;this._paused=false;this._percent=0;}else{if(this._active&&!this._paused){return this;}}this.fire("handler",["beforeBegin"]);this.fire("beforeBegin");if(_532>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,_533);}),_532);return this;}this._startTime=new Date().valueOf();if(this._paused){this._startTime-=(this.duration*this._percent/100);}this._endTime=this._startTime+this.duration;this._active=true;this._paused=false;var step=this._percent/100;var _535=this.curve.getValue(step);if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount;}this.fire("handler",["begin",_535]);this.fire("onBegin",[_535]);}this.fire("handler",["play",_535]);this.fire("onPlay",[_535]);this._cycle();return this;},pause:function(){clearTimeout(this._timer);if(!this._active){return this;}this._paused=true;var _536=this.curve.getValue(this._percent/100);this.fire("handler",["pause",_536]);this.fire("onPause",[_536]);return this;},gotoPercent:function(pct,_538){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=pct;if(_538){this.play();}},stop:function(_539){clearTimeout(this._timer);var step=this._percent/100;if(_539){step=1;}var _53b=this.curve.getValue(step);this.fire("handler",["stop",_53b]);this.fire("onStop",[_53b]);this._active=false;this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}else{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=100;}else{this._percent=step*100;}if((this.easing)&&(dojo.lang.isFunction(this.easing))){step=this.easing(step);}var _53e=this.curve.getValue(step);this.fire("handler",["animate",_53e]);this.fire("onAnimate",[_53e]);if(step<1){this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);}else{this._active=false;this.fire("handler",["end"]);this.fire("onEnd");if(this.repeatCount>0){this.repeatCount--;this.play(null,true);}else{if(this.repeatCount==-1){this.play(null,true);}else{if(this._startRepeatCount){this.repeatCount=this._startRepeatCount;this._startRepeatCount=0;}}}}}return this;}});dojo.lfx.Combine=function(){dojo.lfx.IAnimation.call(this);this._anims=[];this._animsEnded=0;var _53f=arguments;if(_53f.length==1&&(dojo.lang.isArray(_53f[0])||dojo.lang.isArrayLike(_53f[0]))){_53f=_53f[0];}var _540=this;dojo.lang.forEach(_53f,function(anim){_540._anims.push(anim);var _542=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_542();_540._onAnimsEnded();};});};dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_543,_544){if(!this._anims.length){return this;}this.fire("beforeBegin");if(_543>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,_544);}),_543);return this;}if(_544||this._anims[0].percent==0){this.fire("onBegin");}this.fire("onPlay");this._animsCall("play",null,_544);return this;},pause:function(){this.fire("onPause");this._animsCall("pause");return this;},stop:function(_545){this.fire("onStop");this._animsCall("stop",_545);return this;},_onAnimsEnded:function(){this._animsEnded++;if(this._animsEnded>=this._anims.length){this.fire("onEnd");}return this;},_animsCall:function(_546){var args=[];if(arguments.length>1){for(var i=1;i<arguments.length;i++){args.push(arguments[i]);}}var _549=this;dojo.lang.forEach(this._anims,function(anim){anim[_546](args);},_549);return this;}});dojo.lfx.Chain=function(){dojo.lfx.IAnimation.call(this);this._anims=[];this._currAnim=-1;var _54b=arguments;if(_54b.length==1&&(dojo.lang.isArray(_54b[0])||dojo.lang.isArrayLike(_54b[0]))){_54b=_54b[0];}var _54c=this;dojo.lang.forEach(_54b,function(anim,i,_54f){_54c._anims.push(anim);var _550=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};if(i<_54f.length-1){anim.onEnd=function(){_550();_54c._playNext();};}else{anim.onEnd=function(){_550();_54c.fire("onEnd");};}},_54c);};dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_551,_552){if(!this._anims.length){return this;}if(_552||!this._anims[this._currAnim]){this._currAnim=0;}var _553=this._anims[this._currAnim];this.fire("beforeBegin");if(_551>0){setTimeout(dojo.lang.hitch(this,function(){this.play(null,_552);}),_551);return this;}if(_553){if(this._currAnim==0){this.fire("handler",["begin",this._currAnim]);this.fire("onBegin",[this._currAnim]);}this.fire("onPlay",[this._currAnim]);_553.play(null,_552);}return this;},pause:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].pause();this.fire("onPause",[this._currAnim]);}return this;},playPause:function(){if(this._anims.length==0){return this;}if(this._currAnim==-1){this._currAnim=0;}var _554=this._anims[this._currAnim];if(_554){if(!_554._active||_554._paused){this.play();}else{this.pause();}}return this;},stop:function(){var _555=this._anims[this._currAnim];if(_555){_555.stop();this.fire("onStop",[this._currAnim]);}return _555;},_playNext:function(){if(this._currAnim==-1||this._anims.length==0){return this;}this._currAnim++;if(this._anims[this._currAnim]){this._anims[this._currAnim].play(null,true);}return this;}});dojo.lfx.combine=function(){var _556=arguments;if(dojo.lang.isArray(arguments[0])){_556=arguments[0];}return new dojo.lfx.Combine(_556);};dojo.lfx.chain=function(){var _557=arguments;if(dojo.lang.isArray(arguments[0])){_557=arguments[0];}return new dojo.lfx.Chain(_557);};dojo.provide("dojo.lfx.html");dojo.require("dojo.lfx.Animation");dojo.require("dojo.html");dojo.lfx.html._byId=function(_558){if(!_558){return [];}if(dojo.lang.isArray(_558)){if(!_558.alreadyChecked){var n=[];dojo.lang.forEach(_558,function(node){n.push(dojo.byId(node));});n.alreadyChecked=true;return n;}else{return _558;}}else{var n=[];n.push(dojo.byId(_558));n.alreadyChecked=true;return n;}};dojo.lfx.html.propertyAnimation=function(_55b,_55c,_55d,_55e){_55b=dojo.lfx.html._byId(_55b);if(_55b.length==1){dojo.lang.forEach(_55c,function(prop){if(typeof prop["start"]=="undefined"){if(prop.property!="opacity"){prop.start=parseInt(dojo.style.getComputedStyle(_55b[0],prop.property));}else{prop.start=dojo.style.getOpacity(_55b[0]);}}});}var _560=function(_561){var _562=new Array(_561.length);for(var i=0;i<_561.length;i++){_562[i]=Math.round(_561[i]);}return _562;};var _564=function(n,_566){n=dojo.byId(n);if(!n||!n.style){return;}for(var s in _566){if(s=="opacity"){dojo.style.setOpacity(n,_566[s]);}else{n.style[s]=_566[s];}}};var _568=function(_569){this._properties=_569;this.diffs=new Array(_569.length);dojo.lang.forEach(_569,function(prop,i){if(dojo.lang.isArray(prop.start)){this.diffs[i]=null;}else{if(prop.start instanceof dojo.graphics.color.Color){prop.startRgb=prop.start.toRgb();prop.endRgb=prop.end.toRgb();}else{this.diffs[i]=prop.end-prop.start;}}},this);this.getValue=function(n){var ret={};dojo.lang.forEach(this._properties,function(prop,i){var _570=null;if(dojo.lang.isArray(prop.start)){}else{if(prop.start instanceof dojo.graphics.color.Color){_570=(prop.units||"rgb")+"(";for(var j=0;j<prop.startRgb.length;j++){_570+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");}_570+=")";}else{_570=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");}}ret[dojo.style.toCamelCase(prop.property)]=_570;},this);return ret;};};var anim=new dojo.lfx.Animation({onAnimate:function(_573){dojo.lang.forEach(_55b,function(node){_564(node,_573);});}},_55d,new _568(_55c),_55e);return anim;};dojo.lfx.html._makeFadeable=function(_575){var _576=function(node){if(dojo.render.html.ie){if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){node.style.zoom="1";}if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){node.style.width="auto";}}};if(dojo.lang.isArrayLike(_575)){dojo.lang.forEach(_575,_576);}else{_576(_575);}};dojo.lfx.html.fadeIn=function(_578,_579,_57a,_57b){_578=dojo.lfx.html._byId(_578);dojo.lfx.html._makeFadeable(_578);var anim=dojo.lfx.propertyAnimation(_578,[{property:"opacity",start:dojo.style.getOpacity(_578[0]),end:1}],_579,_57a);if(_57b){var _57d=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_57d();_57b(_578,anim);};}return anim;};dojo.lfx.html.fadeOut=function(_57e,_57f,_580,_581){_57e=dojo.lfx.html._byId(_57e);dojo.lfx.html._makeFadeable(_57e);var anim=dojo.lfx.propertyAnimation(_57e,[{property:"opacity",start:dojo.style.getOpacity(_57e[0]),end:0}],_57f,_580);if(_581){var _583=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_583();_581(_57e,anim);};}return anim;};dojo.lfx.html.fadeShow=function(_584,_585,_586,_587){var anim=dojo.lfx.html.fadeIn(_584,_585,_586,_587);var _589=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){};anim.beforeBegin=function(){_589();if(dojo.lang.isArrayLike(_584)){dojo.lang.forEach(_584,dojo.style.show);}else{dojo.style.show(_584);}};return anim;};dojo.lfx.html.fadeHide=function(_58a,_58b,_58c,_58d){var anim=dojo.lfx.html.fadeOut(_58a,_58b,_58c,function(){if(dojo.lang.isArrayLike(_58a)){dojo.lang.forEach(_58a,dojo.style.hide);}else{dojo.style.hide(_58a);}if(_58d){_58d(_58a,anim);}});return anim;};dojo.lfx.html.wipeIn=function(_58f,_590,_591,_592){_58f=dojo.lfx.html._byId(_58f);var _593=[];dojo.lang.forEach(_58f,function(node){var _595=dojo.style.getStyle(node,"overflow");if(_595=="visible"){node.style.overflow="hidden";}node.style.height="0px";dojo.style.show(node);var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:0,end:node.scrollHeight}],_590,_591);var _597=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_597();node.style.overflow=_595;node.style.height="auto";if(_592){_592(node,anim);}};_593.push(anim);});if(_58f.length>1){return dojo.lfx.combine(_593);}else{return _593[0];}};dojo.lfx.html.wipeOut=function(_598,_599,_59a,_59b){_598=dojo.lfx.html._byId(_598);var _59c=[];dojo.lang.forEach(_598,function(node){var _59e=dojo.style.getStyle(node,"overflow");if(_59e=="visible"){node.style.overflow="hidden";}dojo.style.show(node);var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_599,_59a);var _5a0=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5a0();dojo.style.hide(node);node.style.overflow=_59e;if(_59b){_59b(node,anim);}};_59c.push(anim);});if(_598.length>1){return dojo.lfx.combine(_59c);}else{return _59c[0];}};dojo.lfx.html.slideTo=function(_5a1,_5a2,_5a3,_5a4,_5a5){_5a1=dojo.lfx.html._byId(_5a1);var _5a6=[];dojo.lang.forEach(_5a1,function(node){var top=null;var left=null;var init=(function(){var _5ab=node;return function(){top=_5ab.offsetTop;left=_5ab.offsetLeft;if(!dojo.style.isPositionAbsolute(_5ab)){var ret=dojo.style.abs(_5ab,true);dojo.style.setStyleAttributes(_5ab,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");top=ret.y;left=ret.x;}};})();init();var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:_5a2[0]},{property:"left",start:left,end:_5a2[1]}],_5a3,_5a4);var _5ae=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){};anim.beforeBegin=function(){_5ae();init();};if(_5a5){var _5af=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5af();_5a5(_5a1,anim);};}_5a6.push(anim);});if(_5a1.length>1){return dojo.lfx.combine(_5a6);}else{return _5a6[0];}};dojo.lfx.html.slideBy=function(_5b0,_5b1,_5b2,_5b3,_5b4){_5b0=dojo.lfx.html._byId(_5b0);var _5b5=[];dojo.lang.forEach(_5b0,function(node){var top=null;var left=null;var init=(function(){var _5ba=node;return function(){top=node.offsetTop;left=node.offsetLeft;if(!dojo.style.isPositionAbsolute(_5ba)){var ret=dojo.style.abs(_5ba);dojo.style.setStyleAttributes(_5ba,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");top=ret.y;left=ret.x;}};})();init();var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:top+_5b1[0]},{property:"left",start:left,end:left+_5b1[1]}],_5b2,_5b3);var _5bd=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){};anim.beforeBegin=function(){_5bd();init();};if(_5b4){var _5be=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5be();_5b4(_5b0,anim);};}_5b5.push(anim);});if(_5b0.length>1){return dojo.lfx.combine(_5b5);}else{return _5b5[0];}};dojo.lfx.html.explode=function(_5bf,_5c0,_5c1,_5c2,_5c3){_5bf=dojo.byId(_5bf);_5c0=dojo.byId(_5c0);var _5c4=dojo.style.toCoordinateArray(_5bf,true);var _5c5=document.createElement("div");dojo.html.copyStyle(_5c5,_5c0);with(_5c5.style){position="absolute";display="none";}document.body.appendChild(_5c5);with(_5c0.style){visibility="hidden";display="block";}var _5c6=dojo.style.toCoordinateArray(_5c0,true);with(_5c0.style){display="none";visibility="visible";}var anim=new dojo.lfx.propertyAnimation(_5c5,[{property:"height",start:_5c4[3],end:_5c6[3]},{property:"width",start:_5c4[2],end:_5c6[2]},{property:"top",start:_5c4[1],end:_5c6[1]},{property:"left",start:_5c4[0],end:_5c6[0]},{property:"opacity",start:0.3,end:1}],_5c1,_5c2);anim.beforeBegin=function(){dojo.style.setDisplay(_5c5,"block");};anim.onEnd=function(){dojo.style.setDisplay(_5c0,"block");_5c5.parentNode.removeChild(_5c5);};if(_5c3){var _5c8=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5c8();_5c3(_5c0,anim);};}return anim;};dojo.lfx.html.implode=function(_5c9,end,_5cb,_5cc,_5cd){_5c9=dojo.byId(_5c9);end=dojo.byId(end);var _5ce=dojo.style.toCoordinateArray(_5c9,true);var _5cf=dojo.style.toCoordinateArray(end,true);var _5d0=document.createElement("div");dojo.html.copyStyle(_5d0,_5c9);dojo.style.setOpacity(_5d0,0.3);with(_5d0.style){position="absolute";display="none";}document.body.appendChild(_5d0);var anim=new dojo.lfx.propertyAnimation(_5d0,[{property:"height",start:_5ce[3],end:_5cf[3]},{property:"width",start:_5ce[2],end:_5cf[2]},{property:"top",start:_5ce[1],end:_5cf[1]},{property:"left",start:_5ce[0],end:_5cf[0]},{property:"opacity",start:1,end:0.3}],_5cb,_5cc);anim.beforeBegin=function(){dojo.style.hide(_5c9);dojo.style.show(_5d0);};anim.onEnd=function(){_5d0.parentNode.removeChild(_5d0);};if(_5cd){var _5d2=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5d2();_5cd(_5c9,anim);};}return anim;};dojo.lfx.html.highlight=function(_5d3,_5d4,_5d5,_5d6,_5d7){_5d3=dojo.lfx.html._byId(_5d3);var _5d8=[];dojo.lang.forEach(_5d3,function(node){var _5da=dojo.style.getBackgroundColor(node);var bg=dojo.style.getStyle(node,"background-color").toLowerCase();var _5dc=dojo.style.getStyle(node,"background-image");var _5dd=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");while(_5da.length>3){_5da.pop();}var rgb=new dojo.graphics.color.Color(_5d4);var _5df=new dojo.graphics.color.Color(_5da);var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_5df}],_5d5,_5d6);var _5e1=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){};anim.beforeBegin=function(){_5e1();if(_5dc){node.style.backgroundImage="none";}node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";};var _5e2=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5e2();if(_5dc){node.style.backgroundImage=_5dc;}if(_5dd){node.style.backgroundColor="transparent";}if(_5d7){_5d7(node,anim);}};_5d8.push(anim);});if(_5d3.length>1){return dojo.lfx.combine(_5d8);}else{return _5d8[0];}};dojo.lfx.html.unhighlight=function(_5e3,_5e4,_5e5,_5e6,_5e7){_5e3=dojo.lfx.html._byId(_5e3);var _5e8=[];dojo.lang.forEach(_5e3,function(node){var _5ea=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));var rgb=new dojo.graphics.color.Color(_5e4);var _5ec=dojo.style.getStyle(node,"background-image");var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_5ea,end:rgb}],_5e5,_5e6);var _5ee=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){};anim.beforeBegin=function(){_5ee();if(_5ec){node.style.backgroundImage="none";}node.style.backgroundColor="rgb("+_5ea.toRgb().join(",")+")";};var _5ef=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){};anim.onEnd=function(){_5ef();if(_5e7){_5e7(node,anim);}};_5e8.push(anim);});if(_5e3.length>1){return dojo.lfx.combine(_5e8);}else{return _5e8[0];}};dojo.lang.mixin(dojo.lfx,dojo.lfx.html);dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});dojo.provide("dojo.lfx.*");dojo.provide("dojo.lfx.toggle");dojo.require("dojo.lfx.*");dojo.lfx.toggle.plain={show:function(node,_5f1,_5f2,_5f3){dojo.style.show(node);if(dojo.lang.isFunction(_5f3)){_5f3();}},hide:function(node,_5f5,_5f6,_5f7){dojo.style.hide(node);if(dojo.lang.isFunction(_5f7)){_5f7();}}};dojo.lfx.toggle.fade={show:function(node,_5f9,_5fa,_5fb){dojo.lfx.fadeShow(node,_5f9,_5fa,_5fb).play();},hide:function(node,_5fd,_5fe,_5ff){dojo.lfx.fadeHide(node,_5fd,_5fe,_5ff).play();}};dojo.lfx.toggle.wipe={show:function(node,_601,_602,_603){dojo.lfx.wipeIn(node,_601,_602,_603).play();},hide:function(node,_605,_606,_607){dojo.lfx.wipeOut(node,_605,_606,_607).play();}};dojo.lfx.toggle.explode={show:function(node,_609,_60a,_60b,_60c){dojo.lfx.explode(_60c||[0,0,0,0],node,_609,_60a,_60b).play();},hide:function(node,_60e,_60f,_610,_611){dojo.lfx.implode(node,_611||[0,0,0,0],_60e,_60f,_610).play();}};dojo.provide("dojo.widget.HtmlWidget");dojo.require("dojo.widget.DomWidget");dojo.require("dojo.html");dojo.require("dojo.html.extras");dojo.require("dojo.lang.extras");dojo.require("dojo.lang.func");dojo.require("dojo.lfx.toggle");dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;},getContainerHeight:function(){dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");},getContainerWidth:function(){return this.parent.domNode.offsetWidth;},setNativeHeight:function(_616){var ch=this.getContainerHeight();},createNodesFromText:function(txt,wrap){return dojo.html.createNodesFromText(txt,wrap);},destroyRendering:function(_61a){try{if(!_61a){dojo.event.browser.clean(this.domNode);}this.domNode.parentNode.removeChild(this.domNode);delete this.domNode;}catch(e){}},isShowing:function(){return dojo.style.isShowing(this.domNode);},toggleShowing:function(){if(this.isHidden){this.show();}else{this.hide();}},show:function(){this.animationInProgress=true;this.isHidden=false;this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);},onShow:function(){this.animationInProgress=false;this.checkSize();},hide:function(){this.animationInProgress=true;this.isHidden=true;this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);},onHide:function(){this.animationInProgress=false;},_isResized:function(w,h){if(!this.isShowing()){return false;}w=w||dojo.style.getOuterWidth(this.domNode);h=h||dojo.style.getOuterHeight(this.domNode);if(this.width==w&&this.height==h){return false;}this.width=w;this.height=h;return true;},checkSize:function(){if(!this._isResized()){return;}this.onResized();},resizeTo:function(w,h){if(!this._isResized(w,h)){return;}dojo.style.setOuterWidth(this.domNode,w);dojo.style.setOuterHeight(this.domNode,h);this.onResized();},resizeSoon:function(){if(this.isShowing()){dojo.lang.setTimeout(this,this.onResized,0);}},onResized:function(){dojo.lang.forEach(this.children,function(_61f){_61f.checkSize();});}});dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});dojo.provide("dojo.widget.*");dojo.provide("dojo.io.IO");dojo.require("dojo.string");dojo.require("dojo.lang.extras");dojo.io.transports=[];dojo.io.hdlrFuncNames=["load","error","timeout"];dojo.io.Request=function(url,_621,_622,_623){if((arguments.length==1)&&(arguments[0].constructor==Object)){this.fromKwArgs(arguments[0]);}else{this.url=url;if(_621){this.mimetype=_621;}if(_622){this.transport=_622;}if(arguments.length>=4){this.changeUrl=_623;}}};dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){},error:function(type,_628){},timeout:function(type){},handle:function(){},timeoutSeconds:0,abort:function(){},fromKwArgs:function(_62a){if(_62a["url"]){_62a.url=_62a.url.toString();}if(_62a["formNode"]){_62a.formNode=dojo.byId(_62a.formNode);}if(!_62a["method"]&&_62a["formNode"]&&_62a["formNode"].method){_62a.method=_62a["formNode"].method;}if(!_62a["handle"]&&_62a["handler"]){_62a.handle=_62a.handler;}if(!_62a["load"]&&_62a["loaded"]){_62a.load=_62a.loaded;}if(!_62a["changeUrl"]&&_62a["changeURL"]){_62a.changeUrl=_62a.changeURL;}_62a.encoding=dojo.lang.firstValued(_62a["encoding"],djConfig["bindEncoding"],"");_62a.sendTransport=dojo.lang.firstValued(_62a["sendTransport"],djConfig["ioSendTransport"],false);var _62b=dojo.lang.isFunction;for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){var fn=dojo.io.hdlrFuncNames[x];if(_62b(_62a[fn])){continue;}if(_62b(_62a["handle"])){_62a[fn]=_62a.handle;}}dojo.lang.mixin(this,_62a);}});dojo.io.Error=function(msg,type,num){this.message=msg;this.type=type||"unknown";this.number=num||0;};dojo.io.transports.addTransport=function(name){this.push(name);this[name]=dojo.io[name];};dojo.io.bind=function(_632){if(!(_632 instanceof dojo.io.Request)){try{_632=new dojo.io.Request(_632);}catch(e){dojo.debug(e);}}var _633="";if(_632["transport"]){_633=_632["transport"];if(!this[_633]){return _632;}}else{for(var x=0;x<dojo.io.transports.length;x++){var tmp=dojo.io.transports[x];if((this[tmp])&&(this[tmp].canHandle(_632))){_633=tmp;}}if(_633==""){return _632;}}this[_633].bind(_632);_632.bindSuccess=true;return _632;};dojo.io.queueBind=function(_636){if(!(_636 instanceof dojo.io.Request)){try{_636=new dojo.io.Request(_636);}catch(e){dojo.debug(e);}}var _637=_636.load;_636.load=function(){dojo.io._queueBindInFlight=false;var ret=_637.apply(this,arguments);dojo.io._dispatchNextQueueBind();return ret;};var _639=_636.error;_636.error=function(){dojo.io._queueBindInFlight=false;var ret=_639.apply(this,arguments);dojo.io._dispatchNextQueueBind();return ret;};dojo.io._bindQueue.push(_636);dojo.io._dispatchNextQueueBind();return _636;};dojo.io._dispatchNextQueueBind=function(){if(!dojo.io._queueBindInFlight){dojo.io._queueBindInFlight=true;if(dojo.io._bindQueue.length>0){dojo.io.bind(dojo.io._bindQueue.shift());}else{dojo.io._queueBindInFlight=false;}}};dojo.io._bindQueue=[];dojo.io._queueBindInFlight=false;dojo.io.argsFromMap=function(map,_63c,last){var enc=/utf/i.test(_63c||"")?encodeURIComponent:dojo.string.encodeAscii;var _63f=[];var _640=new Object();for(var name in map){var _642=function(elt){var val=enc(name)+"="+enc(elt);_63f[(last==name)?"push":"unshift"](val);};if(!_640[name]){var _645=map[name];if(dojo.lang.isArray(_645)){dojo.lang.forEach(_645,_642);}else{_642(_645);}}}return _63f.join("&");};dojo.io.setIFrameSrc=function(_646,src,_648){try{var r=dojo.render.html;if(!_648){if(r.safari){_646.location=src;}else{frames[_646.name].location=src;}}else{var idoc;if(r.ie){idoc=_646.contentWindow.document;}else{if(r.safari){idoc=_646.document;}else{idoc=_646.contentWindow;}}if(!idoc){_646.location=src;return;}else{idoc.location.replace(src);}}}catch(e){dojo.debug(e);dojo.debug("setIFrameSrc: "+e);}};dojo.provide("dojo.undo.browser");dojo.require("dojo.io");try{if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");}}catch(e){}if(dojo.render.html.opera){dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");}dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){this.initialState={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash};},addToHistory:function(args){var hash=null;if(!this.historyIframe){this.historyIframe=window.frames["djhistory"];}if(!this.bookmarkAnchor){this.bookmarkAnchor=document.createElement("a");(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);this.bookmarkAnchor.style.display="none";}if((!args["changeUrl"])||(dojo.render.html.ie)){var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();this.moveForward=true;dojo.io.setIFrameSrc(this.historyIframe,url,false);}if(args["changeUrl"]){this.changingUrl=true;hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);this.bookmarkAnchor.href=hash;if(dojo.render.html.ie){var _64f=args["back"]||args["backButton"]||args["handle"];var tcb=function(_651){if(window.location.hash!=""){setTimeout("window.location.href = '"+hash+"';",1);}_64f.apply(this,[_651]);};if(args["back"]){args.back=tcb;}else{if(args["backButton"]){args.backButton=tcb;}else{if(args["handle"]){args.handle=tcb;}}}this.forwardStack=[];var _652=args["forward"]||args["forwardButton"]||args["handle"];var tfw=function(_654){if(window.location.hash!=""){window.location.href=hash;}if(_652){_652.apply(this,[_654]);}};if(args["forward"]){args.forward=tfw;}else{if(args["forwardButton"]){args.forwardButton=tfw;}else{if(args["handle"]){args.handle=tfw;}}}}else{if(dojo.render.html.moz){if(!this.locationTimer){this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);}}}}this.historyStack.push({"url":url,"kwArgs":args,"urlHash":hash});},checkLocation:function(){if(!this.changingUrl){var hsl=this.historyStack.length;if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){this.handleBackButton();return;}if(this.forwardStack.length>0){if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){this.handleForwardButton();return;}}if((hsl>=2)&&(this.historyStack[hsl-2])){if(this.historyStack[hsl-2].urlHash==window.location.hash){this.handleBackButton();return;}}}},iframeLoaded:function(evt,_657){if(!dojo.render.html.opera){var _658=this._getUrlQuery(_657.href);if(_658==null){if(this.historyStack.length==1){this.handleBackButton();}return;}if(this.moveForward){this.moveForward=false;return;}if(this.historyStack.length>=2&&_658==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){this.handleBackButton();}else{if(this.forwardStack.length>0&&_658==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){this.handleForwardButton();}}}},handleBackButton:function(){var _659=this.historyStack.pop();if(!_659){return;}var last=this.historyStack[this.historyStack.length-1];if(!last&&this.historyStack.length==0){last=this.initialState;}if(last){if(last.kwArgs["back"]){last.kwArgs["back"]();}else{if(last.kwArgs["backButton"]){last.kwArgs["backButton"]();}else{if(last.kwArgs["handle"]){last.kwArgs.handle("back");}}}}this.forwardStack.push(_659);},handleForwardButton:function(){var last=this.forwardStack.pop();if(!last){return;}if(last.kwArgs["forward"]){last.kwArgs.forward();}else{if(last.kwArgs["forwardButton"]){last.kwArgs.forwardButton();}else{if(last.kwArgs["handle"]){last.kwArgs.handle("forward");}}}this.historyStack.push(last);},_getUrlQuery:function(url){var _65d=url.split("?");if(_65d.length<2){return null;}else{return _65d[1];}}};dojo.provide("dojo.io.BrowserIO");dojo.require("dojo.io");dojo.require("dojo.lang.array");dojo.require("dojo.lang.func");dojo.require("dojo.string.extras");dojo.require("dojo.dom");dojo.require("dojo.undo.browser");dojo.io.checkChildrenForFile=function(node){var _65f=false;var _660=node.getElementsByTagName("input");dojo.lang.forEach(_660,function(_661){if(_65f){return;}if(_661.getAttribute("type")=="file"){_65f=true;}});return _65f;};dojo.io.formHasFile=function(_662){return dojo.io.checkChildrenForFile(_662);};dojo.io.updateNode=function(node,_664){node=dojo.byId(node);var args=_664;if(dojo.lang.isString(_664)){args={url:_664};}args.mimetype="text/html";args.load=function(t,d,e){while(node.firstChild){if(dojo["event"]){try{dojo.event.browser.clean(node.firstChild);}catch(e){}}node.removeChild(node.firstChild);}node.innerHTML=d;};dojo.io.bind(args);};dojo.io.formFilter=function(node){var type=(node.type||"").toLowerCase();return !node.disabled&&node.name&&!dojo.lang.inArray(type,["file","submit","image","reset","button"]);};dojo.io.encodeForm=function(_66b,_66c,_66d){if((!_66b)||(!_66b.tagName)||(!_66b.tagName.toLowerCase()=="form")){dojo.raise("Attempted to encode a non-form element.");}if(!_66d){_66d=dojo.io.formFilter;}var enc=/utf/i.test(_66c||"")?encodeURIComponent:dojo.string.encodeAscii;var _66f=[];for(var i=0;i<_66b.elements.length;i++){var elm=_66b.elements[i];if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_66d(elm)){continue;}var name=enc(elm.name);var type=elm.type.toLowerCase();if(type=="select-multiple"){for(var j=0;j<elm.options.length;j++){if(elm.options[j].selected){_66f.push(name+"="+enc(elm.options[j].value));}}}else{if(dojo.lang.inArray(type,["radio","checkbox"])){if(elm.checked){_66f.push(name+"="+enc(elm.value));}}else{_66f.push(name+"="+enc(elm.value));}}}var _675=_66b.getElementsByTagName("input");for(var i=0;i<_675.length;i++){var _676=_675[i];if(_676.type.toLowerCase()=="image"&&_676.form==_66b&&_66d(_676)){var name=enc(_676.name);_66f.push(name+"="+enc(_676.value));_66f.push(name+".x=0");_66f.push(name+".y=0");}}return _66f.join("&")+"&";};dojo.io.FormBind=function(args){this.bindArgs={};if(args&&args.formNode){this.init(args);}else{if(args){this.init({formNode:args});}}};dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){var form=dojo.byId(args.formNode);if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){throw new Error("FormBind: Couldn't apply, invalid form");}else{if(this.form==form){return;}else{if(this.form){throw new Error("FormBind: Already applied to a form");}}}dojo.lang.mixin(this.bindArgs,args);this.form=form;this.connect(form,"onsubmit","submit");for(var i=0;i<form.elements.length;i++){var node=form.elements[i];if(node&&node.type&&dojo.lang.inArray(node.type.toLowerCase(),["submit","button"])){this.connect(node,"onclick","click");}}var _67c=form.getElementsByTagName("input");for(var i=0;i<_67c.length;i++){var _67d=_67c[i];if(_67d.type.toLowerCase()=="image"&&_67d.form==form){this.connect(_67d,"onclick","click");}}},onSubmit:function(form){return true;},submit:function(e){e.preventDefault();if(this.onSubmit(this.form)){dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}));}},click:function(e){var node=e.currentTarget;if(node.disabled){return;}this.clickedButton=node;},formFilter:function(node){var type=(node.type||"").toLowerCase();var _684=false;if(node.disabled||!node.name){_684=false;}else{if(dojo.lang.inArray(type,["submit","button","image"])){if(!this.clickedButton){this.clickedButton=node;}_684=node==this.clickedButton;}else{_684=!dojo.lang.inArray(type,["file","submit","reset","button"]);}}return _684;},connect:function(_685,_686,_687){if(dojo.evalObjPath("dojo.event.connect")){dojo.event.connect(_685,_686,this,_687);}else{var fcn=dojo.lang.hitch(this,_687);_685[_686]=function(e){if(!e){e=window.event;}if(!e.currentTarget){e.currentTarget=e.srcElement;}if(!e.preventDefault){e.preventDefault=function(){window.event.returnValue=false;};}fcn(e);};}}});dojo.io.XMLHTTPTransport=new function(){var _68a=this;var _68b={};this.useCache=false;this.preventCache=false;function getCacheKey(url,_68d,_68e){return url+"|"+_68d+"|"+_68e.toLowerCase();}function addToCache(url,_690,_691,http){_68b[getCacheKey(url,_690,_691)]=http;}function getFromCache(url,_694,_695){return _68b[getCacheKey(url,_694,_695)];}this.clearCache=function(){_68b={};};function doLoad(_696,http,url,_699,_69a){if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){var ret;if(_696.method.toLowerCase()=="head"){var _69c=http.getAllResponseHeaders();ret={};ret.toString=function(){return _69c;};var _69d=_69c.split(/[\r\n]+/g);for(var i=0;i<_69d.length;i++){var pair=_69d[i].match(/^([^:]+)\s*:\s*(.+)$/i);if(pair){ret[pair[1]]=pair[2];}}}else{if(_696.mimetype=="text/javascript"){try{ret=dj_eval(http.responseText);}catch(e){dojo.debug(e);dojo.debug(http.responseText);ret=null;}}else{if(_696.mimetype=="text/json"){try{ret=dj_eval("("+http.responseText+")");}catch(e){dojo.debug(e);dojo.debug(http.responseText);ret=false;}}else{if((_696.mimetype=="application/xml")||(_696.mimetype=="text/xml")){ret=http.responseXML;if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){ret=dojo.dom.createDocumentFromText(http.responseText);}}else{ret=http.responseText;}}}}if(_69a){addToCache(url,_699,_696.method,http);}_696[(typeof _696.load=="function")?"load":"handle"]("load",ret,http,_696);}else{var _6a0=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);_696[(typeof _696.error=="function")?"error":"handle"]("error",_6a0,http,_696);}}function setHeaders(http,_6a2){if(_6a2["headers"]){for(var _6a3 in _6a2["headers"]){if(_6a3.toLowerCase()=="content-type"&&!_6a2["contentType"]){_6a2["contentType"]=_6a2["headers"][_6a3];}else{http.setRequestHeader(_6a3,_6a2["headers"][_6a3]);}}}}this.inFlight=[];this.inFlightTimer=null;this.startWatchingInFlight=function(){if(!this.inFlightTimer){this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);}};this.watchInFlight=function(){var now=null;for(var x=this.inFlight.length-1;x>=0;x--){var tif=this.inFlight[x];if(!tif){this.inFlight.splice(x,1);continue;}if(4==tif.http.readyState){this.inFlight.splice(x,1);doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);}else{if(tif.startTime){if(!now){now=(new Date()).getTime();}if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){if(typeof tif.http.abort=="function"){tif.http.abort();}this.inFlight.splice(x,1);tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);}}}}if(this.inFlight.length==0){clearInterval(this.inFlightTimer);this.inFlightTimer=null;}};var _6a7=dojo.hostenv.getXmlhttpObject()?true:false;this.canHandle=function(_6a8){return _6a7&&dojo.lang.inArray((_6a8["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_6a8["formNode"]&&dojo.io.formHasFile(_6a8["formNode"]));};this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";this.bind=function(_6a9){if(!_6a9["url"]){if(!_6a9["formNode"]&&(_6a9["backButton"]||_6a9["back"]||_6a9["changeUrl"]||_6a9["watchForURL"])&&(!djConfig.preventBackButtonFix)){dojo.deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use dojo.undo.browser.addToHistory() instead.","0.4");dojo.undo.browser.addToHistory(_6a9);return true;}}var url=_6a9.url;var _6ab="";if(_6a9["formNode"]){var ta=_6a9.formNode.getAttribute("action");if((ta)&&(!_6a9["url"])){url=ta;}var tp=_6a9.formNode.getAttribute("method");if((tp)&&(!_6a9["method"])){_6a9.method=tp;}_6ab+=dojo.io.encodeForm(_6a9.formNode,_6a9.encoding,_6a9["formFilter"]);}if(url.indexOf("#")>-1){dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);url=url.split("#")[0];}if(_6a9["file"]){_6a9.method="post";}if(!_6a9["method"]){_6a9.method="get";}if(_6a9.method.toLowerCase()=="get"){_6a9.multipart=false;}else{if(_6a9["file"]){_6a9.multipart=true;}else{if(!_6a9["multipart"]){_6a9.multipart=false;}}}if(_6a9["backButton"]||_6a9["back"]||_6a9["changeUrl"]){dojo.undo.browser.addToHistory(_6a9);}var _6ae=_6a9["content"]||{};if(_6a9.sendTransport){_6ae["dojo.transport"]="xmlhttp";}do{if(_6a9.postContent){_6ab=_6a9.postContent;break;}if(_6ae){_6ab+=dojo.io.argsFromMap(_6ae,_6a9.encoding);}if(_6a9.method.toLowerCase()=="get"||!_6a9.multipart){break;}var t=[];if(_6ab.length){var q=_6ab.split("&");for(var i=0;i<q.length;++i){if(q[i].length){var p=q[i].split("=");t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+p[0]+"\"","",p[1]);}}}if(_6a9.file){if(dojo.lang.isArray(_6a9.file)){for(var i=0;i<_6a9.file.length;++i){var o=_6a9.file[i];t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);}}else{var o=_6a9.file;t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);}}if(t.length){t.push("--"+this.multipartBoundary+"--","");_6ab=t.join("\r\n");}}while(false);var _6b4=_6a9["sync"]?false:true;var _6b5=_6a9["preventCache"]||(this.preventCache==true&&_6a9["preventCache"]!=false);var _6b6=_6a9["useCache"]==true||(this.useCache==true&&_6a9["useCache"]!=false);if(!_6b5&&_6b6){var _6b7=getFromCache(url,_6ab,_6a9.method);if(_6b7){doLoad(_6a9,_6b7,url,_6ab,false);return;}}var http=dojo.hostenv.getXmlhttpObject(_6a9);var _6b9=false;if(_6b4){var _6ba=this.inFlight.push({"req":_6a9,"http":http,"url":url,"query":_6ab,"useCache":_6b6,"startTime":_6a9.timeoutSeconds?(new Date()).getTime():0});this.startWatchingInFlight();}if(_6a9.method.toLowerCase()=="post"){http.open("POST",url,_6b4);setHeaders(http,_6a9);http.setRequestHeader("Content-Type",_6a9.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_6a9.contentType||"application/x-www-form-urlencoded"));try{http.send(_6ab);}catch(e){if(typeof http.abort=="function"){http.abort();}doLoad(_6a9,{status:404},url,_6ab,_6b6);}}else{var _6bb=url;if(_6ab!=""){_6bb+=(_6bb.indexOf("?")>-1?"&":"?")+_6ab;}if(_6b5){_6bb+=(dojo.string.endsWithAny(_6bb,"?","&")?"":(_6bb.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();}http.open(_6a9.method.toUpperCase(),_6bb,_6b4);setHeaders(http,_6a9);try{http.send(null);}catch(e){if(typeof http.abort=="function"){http.abort();}doLoad(_6a9,{status:404},url,_6ab,_6b6);}}if(!_6b4){doLoad(_6a9,http,url,_6ab,_6b6);}_6a9.abort=function(){return http.abort();};return;};dojo.io.transports.addTransport("XMLHTTPTransport");};dojo.provide("dojo.io.cookie");dojo.io.cookie.setCookie=function(name,_6bd,days,path,_6c0,_6c1){var _6c2=-1;if(typeof days=="number"&&days>=0){var d=new Date();d.setTime(d.getTime()+(days*24*60*60*1000));_6c2=d.toGMTString();}_6bd=escape(_6bd);document.cookie=name+"="+_6bd+";"+(_6c2!=-1?" expires="+_6c2+";":"")+(path?"path="+path:"")+(_6c0?"; domain="+_6c0:"")+(_6c1?"; secure":"");};dojo.io.cookie.set=dojo.io.cookie.setCookie;dojo.io.cookie.getCookie=function(name){var idx=document.cookie.lastIndexOf(name+"=");if(idx==-1){return null;}var _6c6=document.cookie.substring(idx+name.length+1);var end=_6c6.indexOf(";");if(end==-1){end=_6c6.length;}_6c6=_6c6.substring(0,end);_6c6=unescape(_6c6);return _6c6;};dojo.io.cookie.get=dojo.io.cookie.getCookie;dojo.io.cookie.deleteCookie=function(name){dojo.io.cookie.setCookie(name,"-",0);};dojo.io.cookie.setObjectCookie=function(name,obj,days,path,_6cd,_6ce,_6cf){if(arguments.length==5){_6cf=_6cd;_6cd=null;_6ce=null;}var _6d0=[],cookie,value="";if(!_6cf){cookie=dojo.io.cookie.getObjectCookie(name);}if(days>=0){if(!cookie){cookie={};}for(var prop in obj){if(prop==null){delete cookie[prop];}else{if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){cookie[prop]=obj[prop];}}}prop=null;for(var prop in cookie){_6d0.push(escape(prop)+"="+escape(cookie[prop]));}value=_6d0.join("&");}dojo.io.cookie.setCookie(name,value,days,path,_6cd,_6ce);};dojo.io.cookie.getObjectCookie=function(name){var _6d3=null,cookie=dojo.io.cookie.getCookie(name);if(cookie){_6d3={};var _6d4=cookie.split("&");for(var i=0;i<_6d4.length;i++){var pair=_6d4[i].split("=");var _6d7=pair[1];if(isNaN(_6d7)){_6d7=unescape(pair[1]);}_6d3[unescape(pair[0])]=_6d7;}}return _6d3;};dojo.io.cookie.isSupported=function(){if(typeof navigator.cookieEnabled!="boolean"){dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);var _6d8=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");navigator.cookieEnabled=(_6d8=="CookiesAllowed");if(navigator.cookieEnabled){this.deleteCookie("__TestingYourBrowserForCookieSupport__");}}return navigator.cookieEnabled;};if(!dojo.io.cookies){dojo.io.cookies=dojo.io.cookie;}dojo.kwCompoundRequire({common:["dojo.io"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});dojo.provide("dojo.io.*");dojo.provide("dojo.debug.Firebug");if(dojo.render.html.moz){if(typeof console!="undefined"){if(typeof console.debug!="undefined"){var consoleLog=function(){if(!djConfig.isDebug){return;}var args=dojo.lang.toArray(arguments);args.splice(0,0,"DEBUG:");console.log.apply(console,args);};dojo.debug=consoleLog;dojo.debugDeep=consoleLog;dojo.debugShallow=function(obj){if(!djConfig.isDebug){return;}if(dojo.lang.isArray(obj)){console.log("Array: ",obj);for(var i=0;i<obj.length;i++){console.log("   ","["+i+"]",obj[i]);}}else{console.log("Object: ",obj);var _6dc=[];for(var prop in obj){_6dc.push(prop);}_6dc.sort();dojo.lang.forEach(_6dc,function(prop){try{console.log("   ",prop,obj[prop]);}catch(E){console.log("   ",prop,"ERROR",E.message,E);}});}};}}}else{}dojo.provide("form.widget");dojo.widget.manager.registerWidgetPackage("form.widget");dojo.provide("dojo.html.shadow");dojo.require("dojo.lang");dojo.require("dojo.uri");dojo.html.shadow=function(node){this.init(node);};dojo.lang.extend(dojo.html.shadow,{shadowPng:dojo.uri.dojoUri("src/html/images/shadow"),shadowThickness:8,shadowOffset:15,init:function(node){this.node=node;this.pieces={};var x1=-1*this.shadowThickness;var y0=this.shadowOffset;var y1=this.shadowOffset+this.shadowThickness;this._makePiece("tl","top",y0,"left",x1);this._makePiece("l","top",y1,"left",x1,"scale");this._makePiece("tr","top",y0,"left",0);this._makePiece("r","top",y1,"left",0,"scale");this._makePiece("bl","top",0,"left",x1);this._makePiece("b","top",0,"left",0,"crop");this._makePiece("br","top",0,"left",0);},_makePiece:function(name,_6e5,_6e6,_6e7,_6e8,_6e9){var img;var url=this.shadowPng+name.toUpperCase()+".png";if(dojo.render.html.ie){img=document.createElement("div");img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+(_6e9?", sizingMethod='"+_6e9+"'":"")+")";}else{img=document.createElement("img");img.src=url;}img.style.position="absolute";img.style[_6e5]=_6e6+"px";img.style[_6e7]=_6e8+"px";img.style.width=this.shadowThickness+"px";img.style.height=this.shadowThickness+"px";this.pieces[name]=img;this.node.appendChild(img);},size:function(_6ec,_6ed){var _6ee=_6ed-(this.shadowOffset+this.shadowThickness+1);with(this.pieces){l.style.height=_6ee+"px";r.style.height=_6ee+"px";b.style.width=(_6ec-1)+"px";bl.style.top=(_6ed-1)+"px";b.style.top=(_6ed-1)+"px";br.style.top=(_6ed-1)+"px";tr.style.left=(_6ec-1)+"px";r.style.left=(_6ec-1)+"px";br.style.left=(_6ec-1)+"px";}}});dojo.kwCompoundRequire({common:["dojo.html","dojo.html.extras","dojo.html.shadow"]});dojo.provide("dojo.html.*");dojo.provide("dojo.AdapterRegistry");dojo.require("dojo.lang.func");dojo.AdapterRegistry=function(){this.pairs=[];};dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_6f0,wrap,_6f2){if(_6f2){this.pairs.unshift([name,_6f0,wrap]);}else{this.pairs.push([name,_6f0,wrap]);}},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){return pair[2].apply(this,arguments);}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});dojo.provide("dojo.json");dojo.require("dojo.lang.func");dojo.require("dojo.string.extras");dojo.require("dojo.AdapterRegistry");dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_6f9,wrap,_6fb){dojo.json.jsonRegistry.register(name,_6f9,wrap,_6fb);},evalJson:function(json){try{return eval("("+json+")");}catch(e){dojo.debug(e);return json;}},evalJSON:function(json){dojo.deprecated("dojo.json.evalJSON","use dojo.json.evalJson","0.4");return this.evalJson(json);},serialize:function(o){var _6ff=typeof (o);if(_6ff=="undefined"){return "undefined";}else{if((_6ff=="number")||(_6ff=="boolean")){return o+"";}else{if(o===null){return "null";}}}if(_6ff=="string"){return dojo.string.escapeString(o);}var me=arguments.callee;var _701;if(typeof (o.__json__)=="function"){_701=o.__json__();if(o!==_701){return me(_701);}}if(typeof (o.json)=="function"){_701=o.json();if(o!==_701){return me(_701);}}if(_6ff!="function"&&typeof (o.length)=="number"){var res=[];for(var i=0;i<o.length;i++){var val=me(o[i]);if(typeof (val)!="string"){val="undefined";}res.push(val);}return "["+res.join(",")+"]";}try{window.o=o;_701=dojo.json.jsonRegistry.match(o);return me(_701);}catch(e){}if(_6ff=="function"){return null;}res=[];for(var k in o){var _706;if(typeof (k)=="number"){_706="\""+k+"\"";}else{if(typeof (k)=="string"){_706=dojo.string.escapeString(k);}else{continue;}}val=me(o[k]);if(typeof (val)!="string"){continue;}res.push(_706+":"+val);}return "{"+res.join(",")+"}";}};dojo.provide("form.widget.Accordion");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.Accordion",dojo.widget.HtmlWidget,{isContainer:true,widgetType:"Accordion",togglebutton:null,bar:null,contents:null,postCreate:function(args,frag){this.attachTemplateNodes(this.domNode,this);dojo.event.kwConnect({type:"after",srcObj:this.togglebutton,srcFunc:"onclick",targetObj:this,targetFunc:"toggleContents",once:true});if(dojo.render.html.ie){dojo.event.kwConnect({type:"after",srcObj:this.togglebutton,srcFunc:"onclick",targetObj:this,targetFunc:"refreshOthers",once:true});}},getContents:function(){return this.contents;},toggleContents:function(){if(dojo.html.hasClass(this.bar,"minimized")){dojo.html.setClass(this.bar,"expanded");dojo.html.show(this.contents);}else{dojo.html.setClass(this.bar,"minimized");dojo.html.hide(this.contents);}},refreshOthers:function(){dojo.lang.forEach(dojo.widget.manager.getWidgetsByType("Accordion"),dojo.lang.hitch(this,function(_709){if(this!=_709){_709.toggleContents();_709.toggleContents();}}));}});dojo.provide("dojo.math.curves");dojo.require("dojo.math");dojo.math.curves={Line:function(_70a,end){this.start=_70a;this.end=end;this.dimensions=_70a.length;for(var i=0;i<_70a.length;i++){_70a[i]=Number(_70a[i]);}for(var i=0;i<end.length;i++){end[i]=Number(end[i]);}this.getValue=function(n){var _70e=new Array(this.dimensions);for(var i=0;i<this.dimensions;i++){_70e[i]=((this.end[i]-this.start[i])*n)+this.start[i];}return _70e;};return this;},Bezier:function(pnts){this.getValue=function(step){if(step>=1){return this.p[this.p.length-1];}if(step<=0){return this.p[0];}var _712=new Array(this.p[0].length);for(var k=0;j<this.p[0].length;k++){_712[k]=0;}for(var j=0;j<this.p[0].length;j++){var C=0;var D=0;for(var i=0;i<this.p.length;i++){C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);}for(var l=0;l<this.p.length;l++){D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);}_712[j]=C/D;}return _712;};this.p=pnts;return this;},CatmullRom:function(pnts,c){this.getValue=function(step){var _71c=step*(this.p.length-1);var node=Math.floor(_71c);var _71e=_71c-node;var i0=node-1;if(i0<0){i0=0;}var i=node;var i1=node+1;if(i1>=this.p.length){i1=this.p.length-1;}var i2=node+2;if(i2>=this.p.length){i2=this.p.length-1;}var u=_71e;var u2=_71e*_71e;var u3=_71e*_71e*_71e;var _726=new Array(this.p[0].length);for(var k=0;k<this.p[0].length;k++){var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);var x4=this.p[i][k];_726[k]=x1*u3+x2*u2+x3*u+x4;}return _726;};if(!c){this.c=0.7;}else{this.c=c;}this.p=pnts;return this;},Arc:function(_72c,end,ccw){var _72f=dojo.math.points.midpoint(_72c,end);var _730=dojo.math.points.translate(dojo.math.points.invert(_72f),_72c);var rad=Math.sqrt(Math.pow(_730[0],2)+Math.pow(_730[1],2));var _732=dojo.math.radToDeg(Math.atan(_730[1]/_730[0]));if(_730[0]<0){_732-=90;}else{_732+=90;}dojo.math.curves.CenteredArc.call(this,_72f,rad,_732,_732+(ccw?-180:180));},CenteredArc:function(_733,_734,_735,end){this.center=_733;this.radius=_734;this.start=_735||0;this.end=end;this.getValue=function(n){var _738=new Array(2);var _739=dojo.math.degToRad(this.start+((this.end-this.start)*n));_738[0]=this.center[0]+this.radius*Math.sin(_739);_738[1]=this.center[1]-this.radius*Math.cos(_739);return _738;};return this;},Circle:function(_73a,_73b){dojo.math.curves.CenteredArc.call(this,_73a,_73b,0,360);return this;},Path:function(){var _73c=[];var _73d=[];var _73e=[];var _73f=0;this.add=function(_740,_741){if(_741<0){dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");}_73c.push(_740);_73d.push(_741);_73f+=_741;computeRanges();};this.remove=function(_742){for(var i=0;i<_73c.length;i++){if(_73c[i]==_742){_73c.splice(i,1);_73f-=_73d.splice(i,1)[0];break;}}computeRanges();};this.removeAll=function(){_73c=[];_73d=[];_73f=0;};this.getValue=function(n){var _745=false,value=0;for(var i=0;i<_73e.length;i++){var r=_73e[i];if(n>=r[0]&&n<r[1]){var subN=(n-r[0])/r[2];value=_73c[i].getValue(subN);_745=true;break;}}if(!_745){value=_73c[_73c.length-1].getValue(1);}for(var j=0;j<i;j++){value=dojo.math.points.translate(value,_73c[j].getValue(1));}return value;};function computeRanges(){var _74a=0;for(var i=0;i<_73d.length;i++){var end=_74a+_73d[i]/_73f;var len=end-_74a;_73e[i]=[_74a,end,len];_74a=end;}}return this;}};dojo.provide("dojo.animation.AnimationEvent");dojo.require("dojo.lang");dojo.animation.AnimationEvent=function(anim,type,_750,_751,_752,_753,dur,pct,fps){this.type=type;this.animation=anim;this.coords=_750;this.x=_750[0];this.y=_750[1];this.z=_750[2];this.startTime=_751;this.currentTime=_752;this.endTime=_753;this.duration=dur;this.percent=pct;this.fps=fps;};dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){var _757=new Array(this.coords.length);for(var i=0;i<this.coords.length;i++){_757[i]=Math.round(this.coords[i]);}return _757;}});dojo.provide("dojo.animation.Animation");dojo.require("dojo.animation.AnimationEvent");dojo.require("dojo.lang.func");dojo.require("dojo.math");dojo.require("dojo.math.curves");dojo.animation.Animation=function(_759,_75a,_75b,_75c,rate){if(dojo.lang.isArray(_759)){_759=new dojo.math.curves.Line(_759[0],_759[1]);}this.curve=_759;this.duration=_75a;this.repeatCount=_75c||0;this.rate=rate||25;if(_75b){if(dojo.lang.isFunction(_75b.getValue)){this.accel=_75b;}else{var i=0.35*_75b+0.5;this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);}}};dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_75f){if(_75f){clearTimeout(this._timer);this._active=false;this._paused=false;this._percent=0;}else{if(this._active&&!this._paused){return;}}this._startTime=new Date().valueOf();if(this._paused){this._startTime-=(this.duration*this._percent/100);}this._endTime=this._startTime+this.duration;this._lastFrame=this._startTime;var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);this._active=true;this._paused=false;if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount;}e.type="begin";if(typeof this.handler=="function"){this.handler(e);}if(typeof this.onBegin=="function"){this.onBegin(e);}}e.type="play";if(typeof this.handler=="function"){this.handler(e);}if(typeof this.onPlay=="function"){this.onPlay(e);}if(this._animSequence){this._animSequence._setCurrent(this);}this._cycle();},pause:function(){clearTimeout(this._timer);if(!this._active){return;}this._paused=true;var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);if(typeof this.handler=="function"){this.handler(e);}if(typeof this.onPause=="function"){this.onPause(e);}},playPause:function(){if(!this._active||this._paused){this.play();}else{this.pause();}},gotoPercent:function(pct,_763){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=pct;if(_763){this.play();}},stop:function(_764){clearTimeout(this._timer);var step=this._percent/100;if(_764){step=1;}var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent);if(typeof this.handler=="function"){this.handler(e);}if(typeof this.onStop=="function"){this.onStop(e);}this._active=false;this._paused=false;},status:function(){if(this._active){return this._paused?"paused":"playing";}else{return "stopped";}},_cycle:function(){clearTimeout(this._timer);if(this._active){var curr=new Date().valueOf();var step=(curr-this._startTime)/(this._endTime-this._startTime);var fps=1000/(curr-this._lastFrame);this._lastFrame=curr;if(step>=1){step=1;this._percent=100;}else{this._percent=step*100;}if(this.accel&&this.accel.getValue){step=this.accel.getValue(step);}var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));if(typeof this.handler=="function"){this.handler(e);}if(typeof this.onAnimate=="function"){this.onAnimate(e);}if(step<1){this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);}else{e.type="end";this._active=false;if(typeof this.handler=="function"){this.handler(e);}if(typeof this.onEnd=="function"){this.onEnd(e);}if(this.repeatCount>0){this.repeatCount--;this.play(true);}else{if(this.repeatCount==-1){this.play(true);}else{if(this._startRepeatCount){this.repeatCount=this._startRepeatCount;this._startRepeatCount=0;}if(this._animSequence){this._animSequence._playNext();}}}}}}});dojo.provide("dojo.animation");dojo.require("dojo.animation.Animation");dojo.provide("dojo.fx.html");dojo.require("dojo.style");dojo.require("dojo.math.curves");dojo.require("dojo.lang.func");dojo.require("dojo.animation");dojo.require("dojo.event.*");dojo.require("dojo.graphics.color");dojo.fx.duration=300;dojo.fx.html._makeFadeable=function(node){if(dojo.render.html.ie){if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){node.style.zoom="1";}if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){node.style.width="auto";}}};dojo.fx.html.fadeOut=function(node,_76d,_76e,_76f){return dojo.fx.html.fade(node,_76d,dojo.style.getOpacity(node),0,_76e,_76f);};dojo.fx.html.fadeIn=function(node,_771,_772,_773){return dojo.fx.html.fade(node,_771,dojo.style.getOpacity(node),1,_772,_773);};dojo.fx.html.fadeHide=function(node,_775,_776,_777){node=dojo.byId(node);if(!_775){_775=150;}return dojo.fx.html.fadeOut(node,_775,function(node){node.style.display="none";if(typeof _776=="function"){_776(node);}});};dojo.fx.html.fadeShow=function(node,_77a,_77b,_77c){node=dojo.byId(node);if(!_77a){_77a=150;}node.style.display="block";return dojo.fx.html.fade(node,_77a,0,1,_77b,_77c);};dojo.fx.html.fade=function(node,_77e,_77f,_780,_781,_782){node=dojo.byId(node);dojo.fx.html._makeFadeable(node);var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_77f],[_780]),_77e||dojo.fx.duration,0);dojo.event.connect(anim,"onAnimate",function(e){dojo.style.setOpacity(node,e.x);});if(_781){dojo.event.connect(anim,"onEnd",function(e){_781(node,anim);});}if(!_782){anim.play(true);}return anim;};dojo.fx.html.slideTo=function(node,_787,_788,_789,_78a){if(!dojo.lang.isNumber(_787)){var tmp=_787;_787=_788;_788=tmp;}node=dojo.byId(node);var top=node.offsetTop;var left=node.offsetLeft;var pos=dojo.style.getComputedStyle(node,"position");if(pos=="relative"||pos=="static"){top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;}return dojo.fx.html.slide(node,_787,[left,top],_788,_789,_78a);};dojo.fx.html.slideBy=function(node,_790,_791,_792,_793){if(!dojo.lang.isNumber(_790)){var tmp=_790;_790=_791;_791=tmp;}node=dojo.byId(node);var top=node.offsetTop;var left=node.offsetLeft;var pos=dojo.style.getComputedStyle(node,"position");if(pos=="relative"||pos=="static"){top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;}return dojo.fx.html.slideTo(node,_790,[left+_791[0],top+_791[1]],_792,_793);};dojo.fx.html.slide=function(node,_799,_79a,_79b,_79c,_79d){if(!dojo.lang.isNumber(_799)){var tmp=_799;_799=_79b;_79b=_79a;_79a=tmp;}node=dojo.byId(node);if(dojo.style.getComputedStyle(node,"position")=="static"){node.style.position="relative";}var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_79a,_79b),_799||dojo.fx.duration,0);dojo.event.connect(anim,"onAnimate",function(e){with(node.style){left=e.x+"px";top=e.y+"px";}});if(_79c){dojo.event.connect(anim,"onEnd",function(e){_79c(node,anim);});}if(!_79d){anim.play(true);}return anim;};dojo.fx.html.colorFadeIn=function(node,_7a3,_7a4,_7a5,_7a6,_7a7){if(!dojo.lang.isNumber(_7a3)){var tmp=_7a3;_7a3=_7a4;_7a4=tmp;}node=dojo.byId(node);var _7a9=dojo.style.getBackgroundColor(node);var bg=dojo.style.getStyle(node,"background-color").toLowerCase();var _7ab=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";while(_7a9.length>3){_7a9.pop();}var rgb=new dojo.graphics.color.Color(_7a4).toRgb();var anim=dojo.fx.html.colorFade(node,_7a3||dojo.fx.duration,_7a4,_7a9,_7a6,true);dojo.event.connect(anim,"onEnd",function(e){if(_7ab){node.style.backgroundColor="transparent";}});if(_7a5>0){node.style.backgroundColor="rgb("+rgb.join(",")+")";if(!_7a7){setTimeout(function(){anim.play(true);},_7a5);}}else{if(!_7a7){anim.play(true);}}return anim;};dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;dojo.fx.html.colorFadeOut=function(node,_7b0,_7b1,_7b2,_7b3,_7b4){if(!dojo.lang.isNumber(_7b0)){var tmp=_7b0;_7b0=_7b1;_7b1=tmp;}node=dojo.byId(node);var _7b6=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();var rgb=new dojo.graphics.color.Color(_7b1).toRgb();var anim=dojo.fx.html.colorFade(node,_7b0||dojo.fx.duration,_7b6,rgb,_7b3,_7b2>0||_7b4);if(_7b2>0){node.style.backgroundColor="rgb("+_7b6.join(",")+")";if(!_7b4){setTimeout(function(){anim.play(true);},_7b2);}}return anim;};dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;dojo.fx.html.colorFade=function(node,_7ba,_7bb,_7bc,_7bd,_7be){if(!dojo.lang.isNumber(_7ba)){var tmp=_7ba;_7ba=_7bc;_7bc=_7bb;_7bb=tmp;}node=dojo.byId(node);var _7c0=new dojo.graphics.color.Color(_7bb).toRgb();var _7c1=new dojo.graphics.color.Color(_7bc).toRgb();var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_7c0,_7c1),_7ba||dojo.fx.duration,0);dojo.event.connect(anim,"onAnimate",function(e){node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";});if(_7bd){dojo.event.connect(anim,"onEnd",function(e){_7bd(node,anim);});}if(!_7be){anim.play(true);}return anim;};dojo.fx.html.wipeIn=function(node,_7c6,_7c7,_7c8){node=dojo.byId(node);var _7c9=dojo.style.getStyle(node,"overflow");if(_7c9=="visible"){node.style.overflow="hidden";}node.style.height=0;dojo.style.show(node);var anim=dojo.fx.html.wipe(node,_7c6,0,node.scrollHeight,null,true);dojo.event.connect(anim,"onEnd",function(){node.style.overflow=_7c9;node.style.visibility="";node.style.height="auto";if(_7c7){_7c7(node,anim);}});if(!_7c8){anim.play();}return anim;};dojo.fx.html.wipeOut=function(node,_7cc,_7cd,_7ce){node=dojo.byId(node);var _7cf=dojo.style.getStyle(node,"overflow");if(_7cf=="visible"){node.style.overflow="hidden";}var anim=dojo.fx.html.wipe(node,_7cc,node.offsetHeight,0,null,true);dojo.event.connect(anim,"onEnd",function(){dojo.style.hide(node);node.style.visibility="hidden";node.style.overflow=_7cf;if(_7cd){_7cd(node,anim);}});if(!_7ce){anim.play();}return anim;};dojo.fx.html.wipe=function(node,_7d2,_7d3,_7d4,_7d5,_7d6){node=dojo.byId(node);var anim=new dojo.animation.Animation([[_7d3],[_7d4]],_7d2||dojo.fx.duration,0);dojo.event.connect(anim,"onAnimate",function(e){node.style.height=e.x+"px";});dojo.event.connect(anim,"onEnd",function(){if(_7d5){_7d5(node,anim);}});if(!_7d6){anim.play();}return anim;};dojo.fx.html.wiper=function(node,_7da){this.node=dojo.byId(node);if(_7da){dojo.event.connect(dojo.byId(_7da),"onclick",this,"toggle");}};dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){if(!this._anim){var type="wipe"+(dojo.style.isVisible(this.node)?"Out":"In");this._anim=dojo.fx[type](this.node,this.duration,dojo.lang.hitch(this,"_callback"));}},_callback:function(){this._anim=null;}});dojo.fx.html.explode=function(_7dc,_7dd,_7de,_7df,_7e0){var _7e1=dojo.style.toCoordinateArray(_7dc);var _7e2=document.createElement("div");with(_7e2.style){position="absolute";border="1px solid black";display="none";}document.body.appendChild(_7e2);_7dd=dojo.byId(_7dd);with(_7dd.style){visibility="hidden";display="block";}var _7e3=dojo.style.toCoordinateArray(_7dd);with(_7dd.style){display="none";visibility="visible";}var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_7e1,_7e3),_7de||dojo.fx.duration,0);dojo.event.connect(anim,"onBegin",function(e){_7e2.style.display="block";});dojo.event.connect(anim,"onAnimate",function(e){with(_7e2.style){left=e.x+"px";top=e.y+"px";width=e.coords[2]+"px";height=e.coords[3]+"px";}});dojo.event.connect(anim,"onEnd",function(){_7dd.style.display="block";_7e2.parentNode.removeChild(_7e2);if(_7df){_7df(_7dd,anim);}});if(!_7e0){anim.play();}return anim;};dojo.fx.html.implode=function(_7e7,end,_7e9,_7ea,_7eb){var _7ec=dojo.style.toCoordinateArray(_7e7);var _7ed=dojo.style.toCoordinateArray(end);_7e7=dojo.byId(_7e7);var _7ee=document.createElement("div");with(_7ee.style){position="absolute";border="1px solid black";display="none";}document.body.appendChild(_7ee);var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_7ec,_7ed),_7e9||dojo.fx.duration,0);dojo.event.connect(anim,"onBegin",function(e){_7e7.style.display="none";_7ee.style.display="block";});dojo.event.connect(anim,"onAnimate",function(e){with(_7ee.style){left=e.x+"px";top=e.y+"px";width=e.coords[2]+"px";height=e.coords[3]+"px";}});dojo.event.connect(anim,"onEnd",function(){_7ee.parentNode.removeChild(_7ee);if(_7ea){_7ea(_7e7,anim);}});if(!_7eb){anim.play();}return anim;};dojo.fx.html.Exploder=function(_7f2,_7f3){_7f2=dojo.byId(_7f2);_7f3=dojo.byId(_7f3);var _7f4=this;this.waitToHide=500;this.timeToShow=100;this.waitToShow=200;this.timeToHide=70;this.autoShow=false;this.autoHide=false;var _7f5=null;var _7f6=null;var _7f7=null;var _7f8=null;var _7f9=null;var _7fa=null;this.showing=false;this.onBeforeExplode=null;this.onAfterExplode=null;this.onBeforeImplode=null;this.onAfterImplode=null;this.onExploding=null;this.onImploding=null;this.timeShow=function(){clearTimeout(_7f7);_7f7=setTimeout(_7f4.show,_7f4.waitToShow);};this.show=function(){clearTimeout(_7f7);clearTimeout(_7f8);if((_7f6&&_7f6.status()=="playing")||(_7f5&&_7f5.status()=="playing")||_7f4.showing){return;}if(typeof _7f4.onBeforeExplode=="function"){_7f4.onBeforeExplode(_7f2,_7f3);}_7f5=dojo.fx.html.explode(_7f2,_7f3,_7f4.timeToShow,function(e){_7f4.showing=true;if(typeof _7f4.onAfterExplode=="function"){_7f4.onAfterExplode(_7f2,_7f3);}});if(typeof _7f4.onExploding=="function"){dojo.event.connect(_7f5,"onAnimate",this,"onExploding");}};this.timeHide=function(){clearTimeout(_7f7);clearTimeout(_7f8);if(_7f4.showing){_7f8=setTimeout(_7f4.hide,_7f4.waitToHide);}};this.hide=function(){clearTimeout(_7f7);clearTimeout(_7f8);if(_7f5&&_7f5.status()=="playing"){return;}_7f4.showing=false;if(typeof _7f4.onBeforeImplode=="function"){_7f4.onBeforeImplode(_7f2,_7f3);}_7f6=dojo.fx.html.implode(_7f3,_7f2,_7f4.timeToHide,function(e){if(typeof _7f4.onAfterImplode=="function"){_7f4.onAfterImplode(_7f2,_7f3);}});if(typeof _7f4.onImploding=="function"){dojo.event.connect(_7f6,"onAnimate",this,"onImploding");}};dojo.event.connect(_7f2,"onclick",function(e){if(_7f4.showing){_7f4.hide();}else{_7f4.show();}});dojo.event.connect(_7f2,"onmouseover",function(e){if(_7f4.autoShow){_7f4.timeShow();}});dojo.event.connect(_7f2,"onmouseout",function(e){if(_7f4.autoHide){_7f4.timeHide();}});dojo.event.connect(_7f3,"onmouseover",function(e){clearTimeout(_7f8);});dojo.event.connect(_7f3,"onmouseout",function(e){if(_7f4.autoHide){_7f4.timeHide();}});dojo.event.connect(document.documentElement||document.body,"onclick",function(e){function isDesc(node,_804){while(node){if(node==_804){return true;}node=node.parentNode;}return false;}if(_7f4.autoHide&&_7f4.showing&&!isDesc(e.target,_7f3)&&!isDesc(e.target,_7f2)){_7f4.hide();}});return this;};dojo.fx.html.toggle={};dojo.fx.html.toggle.plain={show:function(node,_806,_807,_808){dojo.style.show(node);if(dojo.lang.isFunction(_808)){_808();}},hide:function(node,_80a,_80b,_80c){dojo.style.hide(node);if(dojo.lang.isFunction(_80c)){_80c();}}};dojo.fx.html.toggle.fade={show:function(node,_80e,_80f,_810){dojo.fx.html.fadeShow(node,_80e,_810);},hide:function(node,_812,_813,_814){dojo.fx.html.fadeHide(node,_812,_814);}};dojo.fx.html.toggle.wipe={show:function(node,_816,_817,_818){dojo.fx.html.wipeIn(node,_816,_818);},hide:function(node,_81a,_81b,_81c){dojo.fx.html.wipeOut(node,_81a,_81c);}};dojo.fx.html.toggle.explode={show:function(node,_81e,_81f,_820){dojo.fx.html.explode(_81f||[0,0,0,0],node,_81e,_820);},hide:function(node,_822,_823,_824){dojo.fx.html.implode(node,_823||[0,0,0,0],_822,_824);}};dojo.lang.mixin(dojo.fx,dojo.fx.html);dojo.kwCompoundRequire({browser:["dojo.fx.html"],dashboard:["dojo.fx.html"]});dojo.provide("dojo.fx.*");dojo.provide("form.widget.Activity");dojo.provide("form.widget.ActivityController");dojo.require("dojo.fx.*");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.ActivityController",dojo.widget.HtmlWidget,{templateString:"<div class=\"activitylist clearfix\" dojoattachpoint=\"div\">\n<input name=\"invitationtypeid\" type=\"hidden\" dojoattachpoint=\"invitationtypeidholder\" value=\"\">\n</div>",isContainer:true,widgetType:"ActivityController",invitationtypeidholder:null,invitationTypeId:0,initialize:function(args,frag){},fillInTemplate:function(args,frag){var src=this.getFragNodeRef(frag);if(src.childNodes.length>0){dojo.lang.forEach(src.childNodes,dojo.lang.hitch(this,function(_82a){if(_82a.nodeType==dojo.dom.ELEMENT_NODE){imageelement=dojo.dom.firstElement(_82a);activitytitle=dojo.dom.lastElement(_82a).innerHTML;imageelement=dojo.dom.firstElement(imageelement);activity=dojo.widget.createWidget("Activity",{imageelement:imageelement,title:activitytitle,invitationtypeid:_82a.getAttribute("invitationtypeid"),invitationtypetitle:_82a.getAttribute("invitationtypetitle")});this.addChild(activity);if(this.invitationTypeId!=0){if(this.invitationTypeId==_82a.getAttribute("invitationtypeid")){activity.selectActivity();}}}}));}},postCreate:function(args,frag){if(this.invitationTypeId!=0){this.setInvitation(this.invitationTypeId);}},addChild:function(_82d,_82e){if(dojo.lang.isUndefined(_82e)){_82e=this.children.length;}this.children.splice(_82e,0,_82d);_82d.parent=this;this.div.appendChild(_82d.domNode);},setInvitation:function(_82f){this.invitationtypeidholder.value=_82f;}});dojo.widget.defineWidget("form.widget.Activity",dojo.widget.HtmlWidget,{templateString:"<dl class=\"clearfix\">\n\t<dt><img dojoAttachPoint=\"activityimage\" dojoAttachEvent=\"onClick: propagateSelect;\" /></dt>\n\t<dd>${title}</dd>\n</dl>",isContainer:false,widgetType:"Activity",title:"",invitationtypeid:0,invitationtypetitle:"",imageelement:null,isSelected:false,initialize:function(args,frag){},postMixInProperties:function(){this.strings={title:this.title};},fillInTemplate:function(args,frag){this.activityimage.src=this.imageelement.src;this.activityimage.title=this.imageelement.title;},resetSelection:function(){if(this.isSelected){dojo.html.setClass(this.activityimage,"selected");}else{dojo.html.setClass(this.activityimage,"");}},propagateSelect:function(){dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(_834){if(_834!=this){_834.deSelectActivity();}}));this.selectActivity();this.parent.setInvitation(this.invitationtypeid);dojo.byId("invitationtitle").value=this.invitationtypetitle;},selectActivity:function(){this.isSelected=true;this.resetSelection();},deSelectActivity:function(){this.isSelected=false;this.resetSelection();}});dojo.provide("form.widget.Card");dojo.provide("form.widget.CardController");dojo.provide("form.widget.CardGroup");dojo.provide("form.widget.SingleCard");dojo.require("dojo.fx.*");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.CardController",dojo.widget.HtmlWidget,{isContainer:false,widgetType:"CardGroups",focusedcard:null,groups:[],initialize:function(args,frag){var _837=dojo.io.bind({url:"/pinkbook/getGroups",error:function(type,_839){},method:"post",load:dojo.lang.hitch(this,this.getGroupsHandle)});},addChild:function(_83a,_83b){if(dojo.lang.isUndefined(_83b)){_83b=this.children.length;}this.children.splice(_83b,0,_83a);_83a.parent=this;},get:function(){return this.groups;},getGroupsHandle:function(type,data,evt){data=dojo.json.evalJson(data);this.groups=data;dojo.event.topic.publish("connectControllerToCards",this);},setFocusedCard:function(card){this.focusedcard=card;},removeFocusedCard:function(){this.focusedcard=null;},getFocusedCard:function(){return this.focusedcard;}});dojo.addOnLoad(function(){CardController=dojo.widget.createWidget("CardController",{});});dojo.widget.defineWidget("form.widget.Card",dojo.widget.HtmlWidget,{templateString:"<li style=\"z-index: ${zindex}\" dojoAttachPoint=\"card\">\n<!--\t<span class=\"deactivate\" style=\"display:none; position:absolute; width:155px; background:#fff; height:100%; z-index:5; opacity: .75;\" dojoAttachPoint=\"deactivator\"></span>\n-->\t\n\t<a href=\"/members/view/cursor/${cursor}\">\n\t\t<img alt=\"${membername}\" src=\"${profileimage}\" />\n\t</a>\n\t<dl>\n\t\t<dt dojoAttachPoint=\"names\">${firstname} <span>${membername}</span></dt>\n\t\t<dd class=\"extrainfo\" dojoAttachPoint=\"extrainfo\" style=\"display:none\">\n\t\t\t<p>${profession}</p>\n\t\t\t<p>${city}, ${state}</p>\n\t\t\t<p>${age}, ${relationshipstatus}</p>\n\t\t</dd>\n\t\t<dd class=\"threewords\" style=\"display:none\" dojoAttachPoint=\"threeinfo\">\n\t\t\t<p><span>Three words that best describe me:</span>${threewords}</p>\n\t\t</dd>\n\t</dl>\n\t<h3 class=\"opacityfix\" dojoAttachPoint=\"opacityfix\">Options</h3>\n\t<ul class=\"controls clearfix\">\n\t\t<li dojoAttachPoint=\"hotlistplaceholder\"><a href=\"javascript:void(0)\">hotlist placeholder</a></li>\n\t\t<li style=\"display: none;\" class=\"hotlist active\" dojoAttachPoint=\"hotlist\"><a href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: toggleHotlist;\" title=\"Add to Hotlist\">hotlist</a>\n\t\t\t<div style=\"display: none;\" dojoAttachPoint=\"featureNotAvailable\">\n\t\t\t\t<h4>Feature Not Available <a href=\"javascript:void(0);\" dojoAttachEvent=\"onClick: toggleFeatureNotAvailable;\">x</a></h4>\n\t\t\t\t<p dojoAttachPoint=\"featureNotAvailableCopy\"></p>\n\t\t\t</div>\n\t\t</li>\n\t\t<li dojoAttachPoint=\"pinkbookplaceholder\"><a href=\"javascript:void(0)\">pink book placeholder</a></li>\n\t\t<li style=\"display: none;\" class=\"pinkbook\" dojoAttachPoint=\"pinkbookcontainer\"><a href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: togglePinkBook;\" title=\"Add to Little Pink Book\">pink book</a>\n\t\t\t<div dojoAttachPoint=\"pinkbook\" style=\"display:none\">\n\t\t\t\t<h4>Add to my Pink Book <a href=\"javascript:void(0);\" dojoAttachEvent=\"onClick: togglePinkBook;\">x</a></h4>\n\t\t\t\t<ul dojoAttachPoint=\"groupcontainer\">\n\t\t\t\t\t<li dojoAttachPoint=\"nogroup\"><a title=\"No Group\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: toggleNoGroup;\">No Group</a></li>\n\t\t\t\t</ul>\n\t\t\t\t<form class=\"clearfix\" action=\"POST\" dojoAttachEvent=\"onSubmit: addGroup;\">\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<label>New Group:</label>\n\t\t\t\t\t\t<input name=\"groupname\" type=\"text\" value=\"Enter Group Name\" size=\"10\" maxlength=\"32\" dojoAttachPoint=\"groupname\" dojoAttachEvent=\"onFocus: clearNewGroupForm; onBlur: resetNewGroupForm;\" />\t\t\t\t\t\t\n\t\t\t\t\t\t<a title=\"Add New Group\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: addGroup;\">Add</a>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</li>\n\t\t<li dojoAttachPoint=\"messageplaceholder\"><a href=\"javascript:void(0)\">message placeholder</a></li>\n\t\t<li class=\"message\" style=\"display: none;\" dojoAttachPoint=\"message\"><a href=\"#\" dojoAttachEvent=\"onClick: sendMessage;\" title=\"Send a Message\">message</a></li>\n\t\t<li dojoAttachPoint=\"rsvpplaceholder\"><a href=\"javascript:void(0)\">rsvp placeholder</a></li>\n\t\t<li class=\"rsvp\" style=\"display: none;\" dojoAttachPoint=\"rsvp\"><a href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: toggleInvite;\" title=\"Invite\">rsvp</a></li>\n\t</ul>\n</li>",isContainer:true,widgetType:"Card",profileid:0,cursor:0,zindex:"",profileimage:"",smallimage:"",membername:"",firstname:"&nbsp;",age:"",city:"",state:"",profession:"",relationshipstatus:"",industry:"",groups:[],viewmode:"",membershiptype:"",currentmembertype:"",signedin:false,threewords:"",threewomen:"",groupname:null,newgroup:null,groupcontainer:null,threeinfo:null,pinkbook:null,featureNotAvailable:null,featureNotAvailableCopy:null,inpinkbook:false,pinkbookopen:false,addgroupformopen:false,controlsopen:false,deactivated:false,focuslocked:false,hasnogroup:false,ishotlisted:false,hotlistedme:false,isinvited:false,caninvite:false,blockedme:false,error_signin:"Please <a href=\"/home/signin\">sign in</a> or <a href=\"/home/signup\">register an account</a> to perform this action.",error_premier:"This feature is only available to Premier members.",error_invite:"Thanks, although this member currently accepts only limited invitations.",error_free_message:"This member is not a Premier member and may not receive your message.",error_free_invite:"This member is not a Premier member and may not receive your invitation.",error_blocked:"This member cannot be contacted at this time.",initialize:function(args,frag){dojo.event.topic.subscribe("connectControllerToCards",this,"attachToDad");dojo.event.connect("after",this,"attachToDad",this,"fillInGroups");dojo.event.topic.subscribe("unInviteYourself",this,"unInviteMyself");dojo.event.topic.subscribe("propagateHotlistFromInvitee",this,"propagateHotlistFromInvitee");for(groupkey in this.groups){this.groups[groupkey]=Number(this.groups[groupkey]);}if(this.hasnogroup){dojo.html.addClass(this.nogroup,"selected");}if(this.inpinkbook){dojo.html.addClass(this.pinkbookplaceholder,"pinkbook");}this.resetHotlistIcon();this.resetRSVPIcon();},postMixInProperties:function(){this.strings={cursor:this.cursor,profileid:this.profileid,membername:this.membername,firstname:this.firstname,profileimage:this.profileimage,industry:this.industry,city:this.city,state:this.state,profession:this.profession,age:this.age,relationshipstatus:this.relationshipstatus,zindex:this.zindex,threewords:this.threewords,threewomen:this.threewomen};},fillInTemplate:function(args,frag){},postCreate:function(args,frag){if(this.viewmode=="list"){dojo.html.setClass(this.card,"clearfix");}if(this.ishotlisted==false&&this.hotlistedme==false&&this.isinvited==false&&this.hasnogroup==false&&this.inpinkbook==false){dojo.html.hide(this.opacityfix);}if(this.viewmode=="list"){dojo.html.show(this.extrainfo);dojo.html.show(this.threeinfo);}},addChild:function(_846,_847){if(dojo.lang.isUndefined(_847)){_847=this.children.length;}this.children.splice(_847,0,_846);_846.parent=this;dojo.dom.insertAfter(_846.domNode,dojo.dom.lastElement(this.groupcontainer));},addGroup:function(e){e.preventDefault();var _849=dojo.io.bind({url:"/pinkbook/addGroup",error:function(type,_84b){},method:"post",content:{groupname:this.groupname.value},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(card){cardgroup=dojo.widget.createWidget("CardGroup",{"groupid":data.groupid,"groupname":this.groupname.value,"selected":false});card.addChild(cardgroup);}));this.groupname.value="";this.groupname.focus();}})});},addToGroups:function(_850){if(!dojo.lang.inArray(this.groups,_850.groupid)){this.groups.push(_850.groupid);}},addToInviteList:function(){dojo.event.topic.publish("inviteMember",this);this.isinvited=true;this.resetRSVPIcon();},attachToDad:function(papa){papa.addChild(this);},clearNewGroupForm:function(){if(this.groupname.value=="Enter Group Name"){this.groupname.value="";}},createGroup:function(_852){},deactivate:function(_853){if(this!=_853){dojo.fx.html.fade(this.card,250,dojo.style.getOpacity(this.card),1);this.deactivated=true;}},fillInGroups:function(){dojo.lang.forEach(this.parent.get(),dojo.lang.hitch(this,function(_854){_854.selected=dojo.lang.inArray(this.groups,_854.groupid);cardgroup=dojo.widget.createWidget("CardGroup",{"groupid":_854.groupid,"groupname":_854.groupname,"selected":_854.selected});this.addChild(cardgroup);}));dojo.event.kwConnect({srcObj:this.card,srcFunc:"onmouseover",targetObj:this,targetFunc:"setFocusedCard",once:true});dojo.event.kwConnect({srcObj:this.card,srcFunc:"onmouseout",targetObj:this,targetFunc:"removeFocusedCard",once:true});dojo.event.kwConnect({type:"after",srcObj:this,srcFunc:"setFocusedCard",targetObj:this,targetFunc:"focusOnCard",once:true});dojo.event.kwConnect({type:"after",srcObj:this,srcFunc:"removeFocusedCard",targetObj:this,targetFunc:"removeFocusOnCard",once:true,delay:500});},focusOnCard:function(){if(!this.focuslocked){if(this.parent.getFocusedCard()==this){dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(card){card.deactivate(this);}));if(this.deactivated){this.reactivate(null);}}}},minimizeControls:function(_856){if((_856!=this)&&(this.controlsopen)){dojo.html.hide(this.controls);this.controlsopen=!this.controlsopen;}},minimizePinkBook:function(_857){if((_857!=this)&&(this.pinkbookopen)){dojo.html.hide(this.pinkbook);this.pinkbookopen=!this.pinkbookopen;}},propagateHotlistFromInvitee:function(_858){if(_858.profileid==this.profileid){this.ishotlisted=_858.ishotlisted;this.resetHotlistIcon();}},reactivate:function(_859){if(this!=_859){dojo.fx.html.fade(this.card,250,dojo.style.getOpacity(this.card),1);this.deactivated=false;}},removeFromInviteList:function(){dojo.event.topic.publish("unInviteMember",this);this.unInvite();},removeFocusOnCard:function(){if(!this.focuslocked){if(this.parent.getFocusedCard()==null){dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(card){card.reactivate(null);}));}}},removeFocusedCard:function(){if(!this.focuslocked){this.parent.removeFocusedCard();if(this.viewmode!="list"){dojo.html.hide(this.extrainfo);dojo.html.removeClass(this.names,"highlight");}dojo.html.removeClass(this.opacityfix,"highlight");dojo.html.hide(this.hotlist);dojo.html.show(this.hotlistplaceholder);dojo.html.hide(this.pinkbookcontainer);dojo.html.show(this.pinkbookplaceholder);dojo.html.hide(this.message);dojo.html.show(this.messageplaceholder);dojo.html.show(this.rsvpplaceholder);dojo.html.hide(this.rsvp);if(this.ishotlisted==false&&this.hotlistedme==false&&this.isinvited==false&&this.hasnogroup==false&&this.inpinkbook==false){dojo.html.hide(this.opacityfix);}}},removeFromGroups:function(_85b){if(dojo.lang.inArray(this.groups,_85b.groupid)){this.groups.splice(dojo.lang.find(this.groups,_85b.groupid),1);}},resetNewGroupForm:function(){if(this.groupname.value==""){this.groupname.value="Enter Group Name";}},resetPinkBookIcon:function(){if(this.inpinkbook){if(!dojo.html.hasClass(this.pinkbookplaceholder,"pinkbook")){dojo.html.addClass(this.pinkbookplaceholder,"pinkbook");}}else{if(dojo.html.hasClass(this.pinkbookplaceholder,"pinkbook")){dojo.html.removeClass(this.pinkbookplaceholder,"pinkbook");}}},resetHotlistIcon:function(){if(this.ishotlisted){if(this.hotlistedme){dojo.html.setClass(this.hotlist,"hotlistedmutual");dojo.html.setClass(this.hotlistplaceholder,"hotlistedmutual");}else{dojo.html.setClass(this.hotlist,"hotlisted");dojo.html.setClass(this.hotlistplaceholder,"hotlisted");}}else{if(this.hotlistedme){dojo.html.setClass(this.hotlist,"hotlistedme");dojo.html.setClass(this.hotlistplaceholder,"hotlistedme");}else{dojo.html.setClass(this.hotlist,"hotlist");dojo.html.setClass(this.hotlistplaceholder,"");}}},resetRSVPIcon:function(){if(this.isinvited){dojo.html.setClass(this.rsvpplaceholder,"rsvp");}else{dojo.html.setClass(this.rsvpplaceholder,"");}},sendMessage:function(){if(!this.signedin){this.featureNotAvailableCopy.innerHTML=this.error_signin;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.currentmembertype=="Free"){this.featureNotAvailableCopy.innerHTML=this.error_premier;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.blockedme){this.featureNotAvailableCopy.innerHTML=this.error_blocked;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.membershiptype=="Free"){this.featureNotAvailableCopy.innerHTML=this.error_free_message;dojo.html.toggleShowing(this.featureNotAvailable);setTimeout(dojo.lang.hitch(this,function(){location.href="/messages/create/to/"+this.membername;}),3000);return;}location.href="/messages/create/to/"+this.membername;},setFocusedCard:function(){if(!this.focuslocked){this.parent.setFocusedCard(this);if(this.viewmode!="list"){dojo.html.show(this.extrainfo);dojo.html.addClass(this.names,"highlight");}dojo.html.addClass(this.opacityfix,"highlight");dojo.html.show(this.hotlist);dojo.html.hide(this.hotlistplaceholder);dojo.html.show(this.pinkbookcontainer);dojo.html.hide(this.pinkbookplaceholder);dojo.html.show(this.message);dojo.html.hide(this.messageplaceholder);dojo.html.show(this.rsvp);dojo.html.hide(this.rsvpplaceholder);dojo.html.show(this.opacityfix);}},setFocusLock:function(_85c){this.focuslocked=_85c;},toggleAddGroupForm:function(){if(this.addgroupformopen){dojo.html.hide(this.addgroupform);}else{dojo.html.show(this.addgroupform);this.groupname.focus();}this.addgroupformopen=!this.addgroupformopen;},toggleControls:function(){dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(card){card.minimizeControls(this);}));dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(card){card.minimizePinkBook(null);}));if(this.controlsopen){dojo.html.hide(this.controls);}else{dojo.html.show(this.controls);}this.controlsopen=!this.controlsopen;},toggleFeatureNotAvailable:function(){dojo.html.toggleShowing(this.featureNotAvailable);},toggleHotlist:function(){if(!this.signedin){this.featureNotAvailableCopy.innerHTML=this.error_signin;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.blockedme){this.featureNotAvailableCopy.innerHTML=this.error_blocked;dojo.html.toggleShowing(this.featureNotAvailable);return;}var _85f=dojo.io.bind({url:"/hotlist/toggle/",error:function(type,_861){},method:"post",content:{profileid:this.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){this.ishotlisted=!this.ishotlisted;this.resetHotlistIcon();dojo.event.topic.publish("propagateHotlistFromCard",this);if(this.parent.getFocusedCard()!=this){if(this.ishotlisted==false&&this.hotlistedme==false&&this.isinvited==false&&this.hasnogroup==false&&this.inpinkbook==false){dojo.html.hide(this.opacityfix);}}if(this.ishotlisted){dojo.html.show(this.opacityfix);}}})});},toggleInvite:function(){if(!this.signedin){this.featureNotAvailableCopy.innerHTML=this.error_signin;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.currentmembertype=="Free"){this.featureNotAvailableCopy.innerHTML=this.error_premier;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.membershiptype=="Free"){this.featureNotAvailableCopy.innerHTML=this.error_free_invite;dojo.html.toggleShowing(this.featureNotAvailable);}if(!this.caninvite){this.featureNotAvailableCopy.innerHTML=this.error_invite;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.blockedme){this.featureNotAvailableCopy.innerHTML=this.error_blocked;dojo.html.toggleShowing(this.featureNotAvailable);return;}if(this.isinvited){this.removeFromInviteList();}else{this.addToInviteList();}},toggleNoGroup:function(ev){if(this.hasnogroup){var _866=dojo.io.bind({url:"/pinkbook/removeNoGroup/",error:function(type,_868){},method:"post",content:{profileid:this.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){if(dojo.html.hasClass(this.nogroup,"selected")){dojo.html.removeClass(this.nogroup,"selected");}this.hasnogroup=false;if(this.groups.length==0){this.inpinkbook=false;}this.resetPinkBookIcon();}})});}else{var _866=dojo.io.bind({url:"/pinkbook/addNoGroup/",error:function(type,_86d){},method:"post",content:{profileid:this.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){this.inpinkbook=true;this.hasnogroup=true;dojo.html.addClass(this.nogroup,"selected");this.groups=[];dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_871){_871.leaveGroup();}));this.resetPinkBookIcon();}})});}},togglePinkBook:function()
{
if(!this.signedin)
{this.featureNotAvailableCopy.innerHTML=this.error_signin;dojo.html.toggleShowing(this.featureNotAvailable);return;}
/* if(this.currentmembertype=="Free"){this.featureNotAvailableCopy.innerHTML=this.error_premier;dojo.html.toggleShowing(this.featureNotAvailable);return;} */

if(this.blockedme){this.featureNotAvailableCopy.innerHTML=this.error_blocked;dojo.html.toggleShowing(this.featureNotAvailable);return;}dojo.lang.forEach(this.parent.children,dojo.lang.hitch(this,function(card){card.minimizePinkBook(this);card.setFocusLock(!this.pinkbookopen);}));if(this.pinkbookopen){dojo.html.hide(this.pinkbook);
if (dojo.byId('headshotsbox'))
   {
   dojo.html.show('headshotsbox');
   }

if (dojo.byId('guest'))
   {
    dojo.html.show('invitelistbox');
    }

}else{
dojo.html.show(this.pinkbook);
if (dojo.byId('headshotsbox'))
   {
   dojo.html.hide('headshotsbox');
   }

if (dojo.byId('guest'))
   {
   dojo.html.hide('invitelistbox');
   }

}
this.pinkbookopen=!this.pinkbookopen;},unInvite:function(){this.isinvited=false;this.resetRSVPIcon();if(this.parent.getFocusedCard()!=this){if(this.ishotlisted==false&&this.hotlistedme==false&&this.isinvited==false&&this.hasnogroup==false&&this.inpinkbook==false){dojo.html.hide(this.opacityfix);}}},unInviteMyself:function(_873){if(this.profileid==_873){this.unInvite();}}});dojo.widget.defineWidget("form.widget.CardGroup",dojo.widget.HtmlWidget,{templateString:"<li dojoAttachPoint=\"listitem\"><a href=\"javascript:void(0)\" groupid=\"${groupid}\" dojoAttachPoint=\"alink\" dojoAttachEvent=\"onClick: toggleGroup;\">${groupname}</a></li>",isContainer:false,widgetType:"CardGroup",groupid:0,groupname:"",selected:false,initialize:function(args,frag){},fillInTemplate:function(args,frag){if(this.selected){dojo.html.addClass(this.listitem,"selected");}},postMixInProperties:function(){this.strings={groupid:this.groupid,groupname:this.groupname};},leaveGroup:function(){dojo.html.removeClass(this.listitem,"selected");this.selected=false;},toggleGroup:function(){if(!this.selected){var _878=dojo.io.bind({url:"/pinkbook/add/",error:function(type,_87a){},method:"post",content:{profileid:this.parent.profileid,pinkbookgroupid:this.groupid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){if(dojo.html.hasClass(this.parent.nogroup,"selected")){dojo.html.removeClass(this.parent.nogroup,"selected");this.parent.hasnogroup=false;}dojo.html.addClass(this.listitem,"selected");this.selected=true;this.parent.addToGroups(this);this.parent.inpinkbook=true;this.parent.resetPinkBookIcon();}})});}else{var _878=dojo.io.bind({url:"/pinkbook/remove/",error:function(type,_87f){},method:"post",content:{profileid:this.parent.profileid,pinkbookgroupid:this.groupid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){dojo.html.removeClass(this.listitem,"selected");this.selected=false;this.parent.removeFromGroups(this);if((this.parent.groups.length==0)&&(this.parent.hasnogroup==false)){this.parent.inpinkbook=false;this.parent.resetPinkBookIcon();}}})});}}});dojo.widget.defineWidget("form.widget.SingleCard",form.widget.Card,{widgetType:"SingleCard",templateString:"<div class=\"usercard\" dojoAttachPoint=\"card\">\n<!--\t<span class=\"deactivate\" style=\"display:none; position:absolute; width:155px; background:#fff; height:100%; z-index:5; opacity: .75;\" dojoAttachPoint=\"deactivator\"></span>\n-->\t\n\t<div dojoAttachPoint=\"image\">\n\t<a href=\"/members/view/profileid/${profileid}\">\n\t\t<img id=\"largeHeadshot\" alt=\"${membername}\" src=\"${profileimage}\" />\n\t</a>\n\t<h3 class=\"opacityfix\" dojoAttachPoint=\"opacityfix\">Options</h3>\n\t<ul class=\"controls clearfix\">\n\t\t<li dojoAttachPoint=\"hotlistplaceholder\"><a href=\"javascript:void(0)\">hotlist placeholder</a></li>\n\t\t<li style=\"display: none;\" class=\"hotlist active\" dojoAttachPoint=\"hotlist\"><a href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: toggleHotlist;\" title=\"Add to Hotlist\">hotlist</a>\n\t\t\t<div style=\"display: none;\" dojoAttachPoint=\"featureNotAvailable\">\n\t\t\t\t<h4>Feature Not Available <a href=\"javascript:void(0);\" dojoAttachEvent=\"onClick: toggleFeatureNotAvailable;\">x</a></h4>\n\t\t\t\t<p dojoAttachPoint=\"featureNotAvailableCopy\"></p>\n\t\t\t</div>\n\t\t</li>\n\t\t<li dojoAttachPoint=\"pinkbookplaceholder\"><a href=\"javascript:void(0)\">pink book placeholder</a></li>\n\t\t<li style=\"display: none;\" class=\"pinkbook\" dojoAttachPoint=\"pinkbookcontainer\"><a href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: togglePinkBook;\" title=\"Add to Little Pink Book\">pink book</a>\n\t\t\t<div dojoAttachPoint=\"pinkbook\" style=\"display:none\">\n\t\t\t\t<h4>Add to my Pink Book<a href=\"javascript:void(0);\" dojoAttachEvent=\"onClick: togglePinkBook;\">x</a></h4>\n\t\t\t\t<ul dojoAttachPoint=\"groupcontainer\">\n\t\t\t\t\t<li dojoAttachPoint=\"nogroup\"><a title=\"No Group\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: toggleNoGroup;\">No Group</a></li>\n\t\t\t\t</ul>\n\t\t\t\t<form class=\"clearfix\" action=\"POST\" dojoAttachEvent=\"onSubmit: addGroup;\">\n\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<label>New Group:</label>\n\t\t\t\t\t\t<input name=\"groupname\" type=\"text\" value=\"Enter Group Name\" size=\"10\" maxlength=\"32\" dojoAttachPoint=\"groupname\" dojoAttachEvent=\"onFocus: clearNewGroupForm; onBlur: resetNewGroupForm;\" />\t\t\t\t\t\t\n\t\t\t\t\t\t<a title=\"Add New Group\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: addGroup;\">Add</a>\n\t\t\t\t\t</fieldset>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</li>\n\t\t<li dojoAttachPoint=\"messageplaceholder\"><a href=\"javascript:void(0)\">message placeholder</a></li>\n\t\t<li class=\"message\" style=\"display: none;\" dojoAttachPoint=\"message\"><a href=\"#\" dojoAttachEvent=\"onClick: sendMessage;\" title=\"Send a Message\">message</a></li>\n\t\t<li dojoAttachPoint=\"rsvpplaceholder\"><a href=\"javascript:void(0)\">rsvp placeholder</a></li>\n\t\t<li class=\"rsvp\" style=\"display: none;\" dojoAttachPoint=\"rsvp\"><a href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: toggleInvite;\" title=\"Invite\">rsvp</a></li>\n\t</ul>\n\t</div>\n\t<dl>\n\t\t<dt>Profession: </dt>\n\t\t<dd>${profession}</dd>\n\t\t<dt>Location:</dt>\n\t\t<dd>${city}, ${state}</dd>\n\t\t<dt>Age:</dt>\n\t\t<dd>${age}</dd>\n\t\t<dt>Status:</dt>\n\t\t<dd>${relationshipstatus}</dd>\n\t</dl>\t\n</div>",initialize:function(args,frag){dojo.event.topic.subscribe("connectControllerToCards",this,"attachToDad");dojo.event.connect("after",this,"attachToDad",this,"fillInGroups");dojo.event.topic.subscribe("unInviteYourself",this,"unInviteMyself");dojo.event.topic.subscribe("propagateHotlistFromInvitee",this,"propagateHotlistFromInvitee");for(groupkey in this.groups){this.groups[groupkey]=Number(this.groups[groupkey]);}if(this.hasnogroup){dojo.html.addClass(this.nogroup,"selected");}if(this.inpinkbook){dojo.html.addClass(this.pinkbookplaceholder,"pinkbook");}this.resetHotlistIcon();this.resetRSVPIcon();},fillInGroups:function(){dojo.lang.forEach(this.parent.get(),dojo.lang.hitch(this,function(_885){_885.selected=dojo.lang.inArray(this.groups,_885.groupid);cardgroup=dojo.widget.createWidget("CardGroup",{"groupid":_885.groupid,"groupname":_885.groupname,"selected":_885.selected});this.addChild(cardgroup);}));dojo.event.kwConnect({srcObj:this.image,srcFunc:"onmouseover",targetObj:this,targetFunc:"setFocusedCard",once:true});dojo.event.kwConnect({srcObj:this.image,srcFunc:"onmouseout",targetObj:this,targetFunc:"removeFocusedCard",once:true});},postCreate:function(args,frag){dojo.event.topic.publish("SingleCardCreated");this.inherited("postCreate",[args,frag]);},setFocusedCard:function(){this.parent.setFocusedCard(this);dojo.html.addClass(this.opacityfix,"highlight");dojo.html.show(this.hotlist);dojo.html.hide(this.hotlistplaceholder);dojo.html.show(this.pinkbookcontainer);dojo.html.hide(this.pinkbookplaceholder);dojo.html.show(this.message);dojo.html.hide(this.messageplaceholder);dojo.html.show(this.rsvp);dojo.html.hide(this.rsvpplaceholder);dojo.html.show(this.opacityfix);},removeFocusedCard:function(){if(!this.focuslocked){this.parent.removeFocusedCard();dojo.html.removeClass(this.opacityfix,"highlight");dojo.html.hide(this.hotlist);dojo.html.show(this.hotlistplaceholder);dojo.html.hide(this.pinkbookcontainer);dojo.html.show(this.pinkbookplaceholder);dojo.html.hide(this.message);dojo.html.show(this.messageplaceholder);dojo.html.show(this.rsvpplaceholder);dojo.html.hide(this.rsvp);if(this.ishotlisted==false&&this.hotlistedme==false&&this.isinvited==false&&this.hasnogroup==false&&this.inpinkbook==false){dojo.html.hide(this.opacityfix);}}}});dojo.provide("form.widget.CreateGroup");dojo.require("dojo.event");dojo.require("dojo.json");dojo.require("dojo.string");dojo.widget.defineWidget("form.widget.CreateGroup",dojo.widget.HtmlWidget,{templateString:"<form dojoAttachEvent=\"onSubmit: submitForm;\" dojoAttachPoint=\"createGroupForm\" action=\"${formAction}\" method=\"post\" accept-charset=\"utf-8\">\n\t<dl>\n\t\t<dt><label for=\"pink_book_group_name\">Name:</label></dt>\n\t\t\t<dd><input dojoAttachPoint=\"createInput\" type=\"text\" name=\"pink_book_group_name\" id=\"pink_book_group_name\" /></dd>\n\t</dl>\n\t\n\t<input dojoAttachPoint=\"createButton\" type=\"submit\" class=\"submit\" value=\"Create\" />\n</form>",widgetType:"CreateGroup",action:"",createInput:"",createButton:"",createGroupForm:"",initialize:function(args,frag){this.createInput.focus();dojo.event.topic.subscribe("enable",this,"enable");dojo.event.topic.subscribe("disable",this,"disable");},postMixInProperties:function(){this.strings={formAction:this.action};},submitForm:function(e){e.preventDefault();var _88b=dojo.string.trim(this.createInput.value);this.createInput.value=_88b;if(_88b.length==0){return;}var _88c={url:"/pinkbook/addGroup",mimetype:"text/javascript",method:"post",error:function(type,_88e){console.log("error");},transport:"XMLHTTPTransport",content:{groupname:this.createGroupForm.pink_book_group_name.value},load:dojo.lang.hitch(this,this.addGroupResponse)};var _88f=dojo.io.bind(_88c);this.disable();},addGroupResponse:function(type,data,evt){var json=dojo.json.evalJson(evt.responseText);if(json.status!="success"){return;}this.enable();this.createInput.value="";dojo.event.topic.publish("groupAdded",json.groupname,json.groupid);},disable:function(_894){if(_894==this){return;}if(dojo.lang.isUndefined(_894)){dojo.event.topic.publish("disable",this);}this.createInput.setAttribute("disabled","");this.createButton.setAttribute("disabled","");},enable:function(_895){if(_895==this){return;}if(dojo.lang.isUndefined(_895)){dojo.event.topic.publish("enable",this);}this.createInput.removeAttribute("disabled");this.createButton.removeAttribute("disabled");}});dojo.provide("dojo.widget.InlineEditBox");dojo.provide("dojo.widget.html.InlineEditBox");dojo.require("dojo.widget.*");dojo.require("dojo.lfx.*");dojo.require("dojo.graphics.color");dojo.require("dojo.string");dojo.require("dojo.style");dojo.require("dojo.html");dojo.widget.tags.addParseTreeHandler("dojo:inlineeditbox");dojo.widget.html.InlineEditBox=function(){dojo.widget.HtmlWidget.call(this);this.history=[];};dojo.inherits(dojo.widget.html.InlineEditBox,dojo.widget.HtmlWidget);dojo.lang.extend(dojo.widget.html.InlineEditBox,{templateString:"<form class=\"inlineEditBox\" style=\"display: none\" dojoAttachPoint=\"form\" dojoAttachEvent=\"onSubmit:saveEdit; onReset:cancelEdit; onKeyUp: checkForValueChange;\">\n\t<input type=\"text\" dojoAttachPoint=\"text\" style=\"display: none;\" />\n\t<textarea dojoAttachPoint=\"textarea\" style=\"display: none;\"></textarea>\n\t<input type=\"submit\" value=\"Save\" dojoAttachPoint=\"submitButton\" />\n\t<input type=\"reset\" value=\"Cancel\" dojoAttachPoint=\"cancelButton\" />\n</form>\n",templateCssString:".editLabel {\n\tfont-size : small;\n\tpadding : 0 5px;\n\tdisplay : none;\n}\n\n.editableRegion {\n\tbackground-color : #ffc !important;\n\tcursor : pointer;\n\t_cursor : hand;\n}\n\n.editableRegion .editLabel {\n\tdisplay : inline;\n}\n\n.editableTextareaRegion .editLabel {\n\tdisplay : block;\n}\n\n.inlineEditBox {\n\t/*background-color : #ffc;*/\n\tdisplay : inline;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlInlineEditBox.css"),widgetType:"InlineEditBox",form:null,editBox:null,edit:null,text:null,textarea:null,submitButton:null,cancelButton:null,mode:"text",minWidth:100,minHeight:200,editing:false,textValue:"",defaultText:"",doFade:false,onSave:function(_896,_897){},onUndo:function(_898){},postCreate:function(args,frag){this.editable=this.getFragNodeRef(frag);dojo.dom.insertAfter(this.editable,this.form);dojo.event.connect(this.editable,"onmouseover",this,"mouseover");dojo.event.connect(this.editable,"onmouseout",this,"mouseout");dojo.event.connect(this.editable,"onclick",this,"beginEdit");this.textValue=dojo.string.trim(this.editable.innerHTML);if(dojo.string.trim(this.textValue).length==0){this.editable.innerHTML=this.defaultText;}},mouseover:function(e){if(!this.editing){dojo.html.addClass(this.editable,"editableRegion");if(this.mode=="textarea"){dojo.html.addClass(this.editable,"editableTextareaRegion");}}},mouseout:function(e){if(!this.editing){dojo.html.removeClass(this.editable,"editableRegion");dojo.html.removeClass(this.editable,"editableTextareaRegion");}},beginEdit:function(e){if(this.editing){return;}this.mouseout();this.editing=true;var ee=this[this.mode.toLowerCase()];ee.value=dojo.string.trim(this.textValue);ee.style.fontSize=dojo.style.getStyle(this.editable,"font-size");ee.style.fontWeight=dojo.style.getStyle(this.editable,"font-weight");ee.style.fontStyle=dojo.style.getStyle(this.editable,"font-style");ee.style.width=Math.max(dojo.html.getInnerWidth(this.editable),this.minWidth)+"px";if(this.mode.toLowerCase()=="textarea"){ee.style.display="block";ee.style.height=Math.max(dojo.html.getInnerHeight(this.editable),this.minHeight)+"px";}else{ee.style.display="";}this.form.style.display="";this.editable.style.display="none";ee.select();this.submitButton.disabled=true;},saveEdit:function(e){e.preventDefault();e.stopPropagation();var ee=this[this.mode.toLowerCase()];if((this.textValue!=ee.value)&&(dojo.string.trim(ee.value)!="")){this.doFade=true;this.history.push(this.textValue);this.onSave(ee.value,this.textValue);this.textValue=ee.value;this.editable.innerHTML=this.textValue;}else{this.doFade=false;}this.finishEdit(e);},cancelEdit:function(e){if(!this.editing){return false;}this.editing=false;this.form.style.display="none";this.editable.style.display="";return true;},finishEdit:function(e){if(!this.cancelEdit(e)){return;}if(this.doFade){dojo.lfx.highlight(this.editable,dojo.graphics.color.hex2rgb("#ffc"),700).play(300);}this.doFade=false;},setText:function(txt){var tt=dojo.string.trim(txt);this.textValue=tt;this.editable.innerHTML=tt;},undo:function(){if(this.history.length>0){var _8a5=this.history.pop();this.editable.innerHTML=_8a5;this.textValue=_8a5;this.onUndo(_8a5);}},checkForValueChange:function(){var ee=this[this.mode.toLowerCase()];if((this.textValue!=ee.value)&&(dojo.string.trim(ee.value)!="")){this.submitButton.disabled=false;}}});dojo.provide("form.widget.EditGroupsItem");dojo.require("dojo.widget.InlineEditBox");dojo.require("dojo.event");dojo.require("dojo.json");dojo.widget.defineWidget("form.widget.EditGroupsItem",dojo.widget.HtmlWidget,{templateString:"<tr>\n\t<td>\n\t\t<a dojoAttachPoint=\"alink\" href=\"Javascript:void(0);\" title=\"Click to edit.\">${groupName}</a>\n\t</td>\n\t<td>\n\t\t<input dojoAttachPoint=\"checkbox\" class=\"checkbox\" type=\"checkbox\" name=\"pink_book_group_id\" value=\"${groupId}\"/>\n\t</td>\n</tr>",widgetType:"EditGroupsItem",isContainer:true,pink_book_group_id:"",pink_book_group_name:"",alink:"",action:"",checkbox:"",inlineEdit:{},isDisabled:false,initialize:function(args,frag){this.inlineEdit=dojo.widget.createWidget("InlineEditBox",{},this.alink);this.inlineEdit.parent=this;this.inlineEdit.onSave=function(_8a9,_8aa){this.doFade=false;var _8ab={url:"/pinkbook/renameGroup",method:"post",mimetype:"text/javascript",error:function(type,_8ad){console.log("error");},transport:"XMLHTTPTransport",content:{groupid:this.parent.pink_book_group_id,groupname:_8a9},load:dojo.lang.hitch(this.parent,this.parent.editGroupResponse)};var _8ae=dojo.io.bind(_8ab);};var _8af=this;dojo.event.connect(this.inlineEdit,"finishEdit",this,"disable");dojo.event.connect(this.alink,"onclick",function(_8b0){dojo.event.topic.publish("inlineEditOpened",_8af);dojo.html.setClass(_8af.inlineEdit.text,"text");dojo.html.setClass(_8af.inlineEdit.submitButton,"submit");dojo.html.setClass(_8af.inlineEdit.cancelButton,"submit");});dojo.event.topic.subscribe("inlineEditOpened",function(_8b1){if(_8af.isDisabled){return;}if(_8b1!=_8af){_8af.inlineEdit.cancelEdit();}});dojo.event.topic.subscribe("enable",this,"enable");dojo.event.topic.subscribe("disable",this,"disable");},postMixInProperties:function(){this.strings={groupId:this.pink_book_group_id,groupName:this.pink_book_group_name};},editGroupResponse:function(type,data,evt){var json=dojo.json.evalJson(evt.responseText);if(json.status!="success"){return;}this.enable();},disable:function(_8b6){if(_8b6==this){return;}if(dojo.lang.isUndefined(_8b6)){dojo.event.topic.publish("disable",this);}this.alink.removeAttribute("href");this.inlineEdit.cancelEdit();this.isDisabled=this.inlineEdit.editing=true;this.checkbox.setAttribute("disabled","");},enable:function(_8b7){if(_8b7==this){return;}if(dojo.lang.isUndefined(_8b7)){dojo.event.topic.publish("enable",this);}this.alink.setAttribute("href","Javascript:void(0);");this.isDisabled=this.inlineEdit.editing=false;this.checkbox.removeAttribute("disabled");}});dojo.provide("form.widget.EditGroups");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("form.widget.EditGroupsItem");dojo.widget.defineWidget("form.widget.EditGroups",dojo.widget.HtmlWidget,{templateString:"<form dojoAttachEvent=\"onSubmit: submitForm;\" action=\"${formAction}\" method=\"post\" accept-charset=\"utf-8\">\n\t<table dojoAttachPoint=\"groupsTable\">\n\t\t<tr>\n\t\t\t<th class=\"instructions\">Click on a group name to edit it.</th>\n\t\t\t<th><input dojoAttachPoint=\"deleteButton\" type=\"submit\" class=\"submit\" value=\"Delete\" /></th>\n\t\t</tr>\n\t</table>\n</form>",widgetType:"EditGroups",isTopLevel:true,isContainer:true,action:"",groupsTable:"",deleteButton:"",pink_book_group_ids:[],pink_book_group_names:[],initialize:function(args,frag){dojo.event.topic.subscribe("enable",this,"enable");dojo.event.topic.subscribe("disable",this,"disable");dojo.event.topic.subscribe("groupAdded",this,"addGroup");},fillInTemplate:function(args,frag){for(var i=0;i<this.pink_book_group_ids.length;i++){this.addGroup(this.pink_book_group_names[i],this.pink_book_group_ids[i]);}},postMixInProperties:function(){this.strings={formAction:this.action};},addGroup:function(_8bd,_8be){var tr=this.groupsTable.insertRow(-1);var _8c0=dojo.widget.createWidget("EditGroupsItem",{pink_book_group_id:_8be,pink_book_group_name:_8bd},tr);this.addChild(_8c0);},addChild:function(_8c1){_8c1.parent=this;_8c1.action=this.action;this.children[this.children.length]=_8c1;},submitForm:function(e){e.preventDefault();var cb;var _8c4={};_8c4.deleteGroups=[];for(var i=0;i<this.children.length;i++){cb=this.children[i].checkbox;if(cb.checked){_8c4.deleteGroups.push(cb.value);}}if(_8c4.deleteGroups.length==0){return;}var _8c6={url:"/pinkbook/deleteGroup",method:"post",mimetype:"text/javascript",error:function(type,_8c8){console.log("error");},transport:"XMLHTTPTransport",content:{pink_book_groups_delete:dojo.json.serialize(_8c4)},load:dojo.lang.hitch(this,this.deleteGroupResponse)};var _8c9=dojo.io.bind(_8c6);this.disable();},deleteGroupResponse:function(type,data,evt){var json=dojo.json.evalJson(evt.responseText);if(json.status!="success"){return;}for(var i=0;i<this.children.length;i++){if(this.children[i].checkbox.checked){this.children[i].destroyRendering();}}this.enable();},disable:function(_8cf){if(_8cf==this){return;}if(dojo.lang.isUndefined(_8cf)){dojo.event.topic.publish("disable",this);}this.deleteButton.setAttribute("disabled","");},enable:function(_8d0){if(_8d0==this){return;}if(dojo.lang.isUndefined(_8d0)){dojo.event.topic.publish("enable",this);}this.deleteButton.removeAttribute("disabled");}});dojo.provide("form.widget.HeadshotSwitcher");dojo.require("dojo.html.*");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.require("dojo.fx.*");dojo.widget.defineWidget("form.widget.HeadshotSwitcher",dojo.widget.HtmlWidget,{isContainer:true,widgetType:"HeadshotSwitcher",imgName:"",imgTarget:"",objImg:null,objTarget:null,selected:false,swapped:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){},fillInTemplate:function(args,frag){},postCreate:function(args,frag){this.attachTemplateNodes(this.domNode,this);this.objTarget=dojo.byId(this.imgTarget);if(this.objTarget==null){dojo.event.topic.subscribe("SingleCardCreated",this,"handleBinds");}else{this.handleBinds();}},handleBinds:function(){if(this.objTarget==null){this.objTarget=dojo.byId(this.imgTarget);}dojo.event.connect(this.objTarget,"onload",dojo.lang.hitch(this,function(){if(this.swapped){dojo.fx.html.fade(this.objTarget,1000,0,1);}}));dojo.event.connect(this.domNode,"onclick",this,"displayImage");dojo.event.topic.subscribe("headshotSwitcherDisplay",this,"deselectThumbnail");if(this.selected){dojo.fx.html.fade(this.domNode,1000,1,0.5);}},displayImage:function(){if(this.objTarget){dojo.event.topic.publish("headshotSwitcherDisplay",this);this.selectThumbnail();dojo.fx.html.fade(this.objTarget,1200,1,0,dojo.lang.hitch(this,this.switchImage));}},switchImage:function(){this.swapped=true;this.objTarget.src=this.imgName;},selectThumbnail:function(){dojo.fx.html.fade(this.domNode,1000,1,0.5);this.selected=true;},deselectThumbnail:function(){if(this.selected){dojo.fx.html.fade(this.domNode,1000,0.5,1);this.selected=false;}}});dojo.provide("form.widget.InstructionalInput");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.InstructionalInput",dojo.widget.HtmlWidget,{isContainer:true,widgetType:"InstructionalInput",initialvalue:"",initialize:function(args,frag){},postMixInProperties:function(){},fillInTemplate:function(args,frag){},postCreate:function(){if(this.initialvalue==""){this.initialvalue=this.domNode.value;}else{this.domNode.value=this.initialvalue;}dojo.event.kwConnect({srcObj:this.domNode,srcFunc:"onfocus",targetObj:this,targetFunc:"clearField",once:true});dojo.event.kwConnect({srcObj:this.domNode,srcFunc:"onblur",targetObj:this,targetFunc:"restoreInstruction",once:true});},clearField:function(){if(this.domNode.value==this.initialvalue){this.domNode.value="";}},restoreInstruction:function(){if(this.domNode.value==""){this.domNode.value=this.initialvalue;}}});dojo.provide("form.widget.Invitee");dojo.provide("form.widget.InviteList");dojo.require("dojo.fx.*");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.InviteList",dojo.widget.HtmlWidget,{templateString:"<div id=\"invitelistbox\" class=\"invitelist\" style=\"display:none\" dojoattachpoint=\"invitelistdiv\">\n\t<h3 id=\"guestlist\">Guest List</h3>\n\t<ul class=\"clearfix\" dojoattachpoint=\"inviteecontainer\"></ul>\n\t<p><a title=\"Clear All\" href=\"javascript:void(0);\" dojoattachevent=\"onClick: clearAll;\">Clear All</a> | <a title=\"Show Invite\" href=\"/invitations/create\">Show Invite</a></p>\n</div>",isContainer:true,widgetType:"InviteList",inviteecontainer:null,invitelistdiv:null,currentzindex:999,profiles:[],initialize:function(args,frag){dojo.event.topic.subscribe("inviteMember",this,"invite");dojo.event.topic.subscribe("unInviteMember",this,"unInviteFromCard");},fillInTemplate:function(args,frag){var src=this.getFragNodeRef(frag);if(src.childNodes.length>0){dojo.lang.forEach(src.childNodes,dojo.lang.hitch(this,function(_8e2){if(_8e2.nodeType==dojo.dom.ELEMENT_NODE){invitee_attributes=new Object();for(i=0;i<_8e2.attributes.length;i++){invitee_attributes[_8e2.attributes[i].nodeName]=_8e2.attributes[i].nodeValue;}invitee_attributes.profileid=Number(invitee_attributes.profileid);if(invitee_attributes.ishotlisted=="true"){invitee_attributes.ishotlisted=true;}else{invitee_attributes.ishotlisted=false;}if(invitee_attributes.hotlistedme=="true"){invitee_attributes.hotlistedme=true;}else{invitee_attributes.hotlistedme=false;}invitee_attributes.layerindex=this.currentzindex;this.currentzindex--;if(!dojo.lang.inArray(this.profiles,invitee_attributes.profileid)){this.profiles[this.profiles.length]=invitee_attributes.profileid;invitee=dojo.widget.createWidget("Invitee",invitee_attributes);this.addChild(invitee);}}}));}this.resetDisplay();},addChild:function(_8e3,_8e4){if(dojo.lang.isUndefined(_8e4)){_8e4=this.children.length;}this.children.splice(_8e4,0,_8e3);_8e3.parent=this;this.inviteecontainer.appendChild(_8e3.domNode);},clearAll:function(){var _8e5=dojo.io.bind({url:"/invitations/clearInviteList/",error:function(type,_8e7){},method:"post",load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){while(this.children.length>0){this.children[this.children.length-1].unInviteWithoutCall();}}})});},invite:function(card){invitee_attributes={profileid:card.profileid,smallimage:card.smallimage,membername:card.membername,firstname:card.firstname,layerindex:card.layerindex,ishotlisted:card.ishotlisted,hotlistedme:card.hotlistedme,card:card};invitee_attributes.layerindex=this.currentzindex;this.currentzindex--;if(invitee_attributes.ishotlisted=="true"){invitee_attributes.ishotlisted=true;}else{invitee_attributes.ishotlisted=false;}if(invitee_attributes.hotlistedme=="true"){invitee_attributes.hotlistedme=true;}else{invitee_attributes.hotlistedme=false;}if(!card.hasOwnProperty("widgetType")){invitee_attributes.card=null;}if(!dojo.lang.inArray(this.profiles,invitee_attributes.profileid)){var _8ec=dojo.io.bind({url:"/invitations/addToInviteList/",error:function(type,_8ee){},method:"post",content:{profileid:invitee_attributes.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){this.profiles[this.profiles.length]=invitee_attributes.profileid;invitee=dojo.widget.createWidget("Invitee",invitee_attributes);this.addChild(invitee);this.resetDisplay();}})});}},resetDisplay:function(){if(this.children.length>0){dojo.html.show(this.invitelistdiv);}},unInvite:function(_8f2){var _8f3=dojo.io.bind({url:"/invitations/removeFromInviteList/",error:function(type,_8f5){},method:"post",content:{profileid:_8f2.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){for(i=0;i<this.profiles.length;i++){if(this.profiles[i]==_8f2.profileid){this.profiles.splice(i,1);}}this.removeChild(_8f2);}})});},unInviteWithoutCall:function(_8f9){for(i=0;i<this.profiles.length;i++){if(this.profiles[i]==_8f9.profileid){this.profiles.splice(i,1);}}this.removeChild(_8f9);},unInviteFromCard:function(card){var _8fb=dojo.io.bind({url:"/invitations/removeFromInviteList/",error:function(type,_8fd){},method:"post",content:{profileid:card.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){for(i=0;i<this.profiles.length;i++){if(this.profiles[i]==card.profileid){this.profiles.splice(i,1);}}for(i=0;i<this.children.length;i++){if(this.children[i].profileid==card.profileid){this.removeChild(this.children[i]);}}}})});}});dojo.widget.defineWidget("form.widget.Invitee",dojo.widget.HtmlWidget,{templateString:"<li id=\"guest\" style=\"z-index: ${layerindex}\" dojoattachevent=\"onMouseOver: toggleInfo; onMouseOut: toggleInfo;\">\n\t<img src=\"${smallimage}\" />\n\t<dl style=\"display:none;\" dojoattachpoint=\"info\" class=\"clearfix\">\n\t\t<dt>${firstname} <span>${membername}</span></dt>\n\t\t<dd class=\"clearfix\">\n\t\t\t<a class=\"hotlist\" title=\"hotlist\" href=\"javascript:void(0);\" dojoattachpoint=\"hotlist\" dojoattachevent=\"onClick: toggleHotlist;\">hotlist</a>\n\t\t\t<a class=\"remove\" title=\"uninvite\" href=\"javascript:void(0);\" dojoattachevent=\"onClick: unInvite;\">uninvite</a>\n\t\t</dd>\n\t</dl>\n</li>",isContainer:false,widgetType:"Invitee",firstname:"",membername:"",profileid:0,layerindex:0,smallimage:"",card:null,info:null,hotlistedme:false,ishotlisted:false,infohidden:true,initialize:function(args,frag){dojo.event.topic.subscribe("propagateHotlistFromCard",this,"propagateHotlistFromCard");this.resetHotlistIcon();},postMixInProperties:function(){this.strings={firstname:this.firstname,membername:this.membername,smallimage:this.smallimage,layerindex:this.layerindex};},fillInTemplate:function(args,frag){},propagateHotlistFromCard:function(card){if(card.profileid==this.profileid){this.ishotlisted=card.ishotlisted;this.resetHotlistIcon();}},resetHotlistIcon:function(){if(this.ishotlisted){if(this.hotlistedme){dojo.html.setClass(this.hotlist,"hotlistedmutual");}else{dojo.html.setClass(this.hotlist,"hotlisted");}}else{if(this.hotlistedme){dojo.html.setClass(this.hotlist,"hotlistedme");}else{dojo.html.setClass(this.hotlist,"hotlist");}}},toggleHotlist:function(){var _906=dojo.io.bind({url:"/hotlist/toggle/",error:function(type,_908){},method:"post",content:{profileid:this.profileid},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){this.ishotlisted=!this.ishotlisted;this.resetHotlistIcon();dojo.event.topic.publish("propagateHotlistFromInvitee",this);}})});},toggleInfo:function(){if(this.infohidden){dojo.html.show(this.info);}else{dojo.html.hide(this.info);}this.infohidden=!this.infohidden;},unInvite:function(){if(this.card!=null){this.card.unInvite();}else{dojo.event.topic.publish("unInviteYourself",this.profileid);}this.parent.unInvite(this);},unInviteWithoutCall:function(){if(this.card!=null){this.card.unInvite();}else{dojo.event.topic.publish("unInviteYourself",this.profileid);}this.parent.unInviteWithoutCall(this);}});dojo.provide("form.widget.InviteeAdd");dojo.require("dojo.fx.*");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.InviteeAdd",dojo.widget.HtmlWidget,{isContainer:false,widgetType:"InviteeAdd",initialize:function(args,frag){dojo.event.connect(this.domNode,"onclick",this.onClick);},postMixInProperties:function(){},fillInTemplate:function(args,frag){},onClick:function(){cb=dojo.widget.getWidgetById("to");membername=cb.comboBoxValue.value;if(membername!=""){var _910=dojo.io.bind({url:"/members/getMemberByName/",error:function(type,_912){},method:"post",content:{membername:membername},load:dojo.lang.hitch(this,function(type,data,evt){data=dojo.json.evalJson(data);if(data.status=="success"){il=dojo.widget.getWidgetById("invitelist");il.invite(data.profile);cb.setValue("");}})});}}});dojo.provide("form.widget.MultiUpdater");dojo.provide("form.widget.MultiUpdaterItem");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.MultiUpdater",dojo.widget.HtmlWidget,{widgetType:"MultiUpdater",action:"",timeout:0,started:false,frequency:"",initialize:function(args,frag){dojo.event.topic.publish("getChildren",this);},addChild:function(_918){this.children[this.children.length]=_918;},start:function(){if(this.started){return;}this.started=true;this.startTimeout();},stop:function(){clearTimeout(this.timeout);this.started=false;},changeFrequency:function(_919){this.frequency=_919;},updateChildren:function(){var json=new Object();json.updateItems=new Array();for(var i=0;i<this.children.length;i++){json.updateItems.push(this.children[i].getKeyName());}var _91c={url:this.action,method:"post",error:dojo.lang.hitch(this,this.updateResponse),content:{updateItems:dojo.json.serialize(json)},load:dojo.lang.hitch(this,this.updateResponse)};var _91d=dojo.io.bind(_91c);},updateResponse:function(type,data,evt){var json=dojo.json.evalJson(data);if(json.status=="success"){for(var i in json.updateItems){this.getChildByKeyName(i).setValue(json.updateItems[i]);}}if(this.started){this.startTimeout();}},getChildByKeyName:function(_923){for(var i=0;i<this.children.length;i++){if(this.children[i].getKeyName()==_923){return this.children[i];}}},startTimeout:function(){this.timeout=setTimeout(dojo.lang.hitch(this,this.updateChildren),this.frequency);}});dojo.widget.defineWidget("form.widget.MultiUpdaterItem",dojo.widget.HtmlWidget,{widgetType:"MultiUpdaterItem",keyName:"",initialize:function(args,frag){dojo.event.topic.subscribe("getChildren",this,function(_927){this.parent=_927;_927.addChild(this);});},getKeyName:function(){return this.keyName;},setValue:function(_928){this.domNode.innerHTML=_928;}});dojo.provide("form.widget.UnnecessaryCheckboxes");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryCheckboxes",dojo.widget.HtmlWidget,{templateString:"<div>\n\t<p dojoAttachPoint=\"info\" dojoAttachEvent=\"onClick: toggleCheckboxes\" style=\"cursor: pointer;\">${collapsedLabel}<span dojoAttachPoint=\"selectedtext\"></span></p>\n\t<div class=\"checkboxes clearfix\" style=\"display: none;\" dojoAttachPoint=\"checkboxes\">\n\t\t<p>${openedLabel}</p>\n\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoAttachPoint=\"cancelbutton\" dojoAttachEvent=\"onClick: cancel\">Cancel</a>\n\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: save\">Save</a>\n\t</div>\n</div>",isContainer:true,widgetType:"UnnecessaryCheckboxes",previousindex:0,collapsedLabel:"",openedLabel:"",allcb:null,selectedboxes:[],selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.strings={collapsedLabel:this.collapsedLabel,openedLabel:this.openedLabel};},fillInTemplate:function(args,frag){elements=frag["dojo:unnecessarycheckboxes"].nodeRef.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="DIV"){element=elements[i];}}while(element.hasChildNodes()){cb=this.checkboxes.insertBefore(element.firstChild,this.cancelbutton);if(cb.nodeType==dojo.dom.ELEMENT_NODE){if(cb.tagName=="INPUT"){if(cb.id.search(/_all$/)!=-1){this.allcb=cb;}dojo.event.kwConnect({srcObj:cb,srcFunc:"onclick",targetObj:this,targetFunc:"checkAllState",once:true});}}}this.populateCopy();},cancel:function(){elements=this.checkboxes.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="INPUT"){element=elements[i];if(dojo.lang.inArray(this.selectedboxes,element.id)){element.checked=true;}else{element.checked=false;}}}this.toggleCheckboxes();},checkAllState:function(e){if(e.target.checked){if(e.target==this.allcb){elements=this.checkboxes.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="INPUT"){element=elements[i];if(element!=this.allcb){element.checked=false;}}}}else{this.allcb.checked=false;}}},populateCopy:function(){elements=this.checkboxes.childNodes;selectedboxes=new Array;selectedcopy="";for(i=0;i<elements.length;i++){if(elements[i].tagName=="INPUT"){element=elements[i];if(element.checked){selectedboxes.push(element.id);}}if(elements[i].tagName=="LABEL"){element=elements[i];if(dojo.lang.inArray(selectedboxes,dojo.html.getAttribute(element,"for"))){if(selectedcopy==""){selectedcopy=element.innerHTML;}else{selectedcopy+=", "+element.innerHTML;}}}}this.selectedtext.innerHTML=selectedcopy;this.selectedboxes=selectedboxes;},save:function(){this.populateCopy();this.toggleCheckboxes();},toggleCheckboxes:function(){if(this.selecting){dojo.html.show(this.info);dojo.html.hide(this.checkboxes);}else{dojo.html.hide(this.info);dojo.html.show(this.checkboxes);}this.selecting=!this.selecting;}});dojo.provide("form.widget.UnnecessaryDate");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryDate",dojo.widget.HtmlWidget,{templateString:"<div>\n\t<p dojoattachpoint=\"info\" dojoattachevent=\"onClick: toggleDropdown\" style=\"cursor: pointer;\">${fieldlabel} <span dojoattachpoint=\"selectedtext\">SAMPLE</span></p>\n\t<div dojoattachpoint=\"widget_content\" style=\"display: none;\" class=\"select_set clearfix\">\n\t\t<label>${fieldlabel}</label>\n\t\n\t\t<div class=\"floatleft date\">\n\t\t\t<label>Month:</label>\n\t\t\t<select dojoattachpoint=\"selectmonth\" name=\"month\" id=\"month\"></select>\n\t\t</div>\n\t\t<div class=\"floatleft\">\n\t\t\t<label>Day:</label>\n\t\t\t<select dojoattachpoint=\"selectday\" name=\"day\" id=\"day\"></select>\n\t\t</div>\n\t\t<div class=\"floatleft\">\n\t\t\t<label>Year:</label>\n\t\t\t<select dojoattachpoint=\"selectyear\"  name=\"year\" id=\"year\"></select>\n\t\t</div>\n\n\t\t<div style=\"padding:0\">\n\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t\t</div>\n\t</div>\n</div>",isContainer:true,widgetType:"UnnecessaryDate",month:0,year:0,yeartext:"",day:0,searchtype:0,selecting:true,selectedtext:false,o_selectmonth:null,o_selectday:null,o_selectyear:null,selectmonth:null,selectday:null,selectyear:null,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.strings={fieldlabel:frag.label[0].value,month:this.month,day:this.day,year:this.year};},fillInTemplate:function(args,frag){var _936=this.getFragNodeRef(frag);if(!frag.fastMixIn){this.attachTemplateNodes(_936,this);}},postCreate:function(args,frag){dojo.dom.copyChildren(this.o_selectmonth,this.selectmonth);dojo.dom.copyChildren(this.o_selectday,this.selectday);dojo.dom.copyChildren(this.o_selectyear,this.selectyear);this.selectmonth.selectedIndex=this.o_selectmonth.selectedIndex;this.selectday.selectedIndex=this.o_selectday.selectedIndex;this.selectyear.selectedIndex=this.o_selectyear.selectedIndex;this.save();},cancel:function(){this.selectmonth.selectedIndex=this.month;this.selectday.selectedIndex=this.day;this.selectyear.selectedIndex=this.year;this.toggleDropdown();},save:function(){this.month=this.selectmonth.selectedIndex;this.day=this.selectday.selectedIndex;this.year=this.selectyear.selectedIndex;this.yeartext=this.selectyear.options[this.selectyear.selectedIndex].text;this.searchtype=(this.month!=0&&this.day!=0&&this.year!=0?1:0);if(this.searchtype==0){this.searchtype=((this.month==0||this.day==0)&&this.year!=0?2:0);}this.populateCopy();this.toggleDropdown();},populateCopy:function(){switch(this.searchtype){case 0:this.selectedtext.innerHTML="All Dates";break;case 1:this.selectedtext.innerHTML=(this.month+"/"+this.day+"/"+this.yeartext);break;case 2:this.selectedtext.innerHTML="All Dates in "+this.yeartext;break;}},toggleDropdown:function(){if(this.selecting){dojo.html.show(this.info);dojo.html.hide(this.widget_content);}else{dojo.html.hide(this.info);dojo.html.show(this.widget_content);}this.selecting=!this.selecting;}});dojo.provide("form.widget.UnnecessaryDropdown");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryDropdown",dojo.widget.HtmlWidget,{templateString:"<div>\n\t<p dojoAttachPoint=\"info\" dojoAttachEvent=\"onClick: toggleDropdown\" style=\"cursor: pointer;\">${fieldlabel}<span dojoAttachPoint=\"selectedtext\"></span></p>\n\t<div class=\"clearfix\" dojoAttachPoint=\"dropdown\" style=\"display: none;\">\n\t\t<label>${fieldlabel}</label>\n\t\t<select dojoAttachPoint=\"select\" dojoAttachEvent=\"onChange: save\">\n\t\t</select>\n\t</div>\n</div>",templateCssString:"/* CSS Document */\n\n",templateCssPath:dojo.uri.dojoUri("form/widget/templates/UnnecessaryDropdown.css"),isContainer:true,widgetType:"UnnecessaryDropdown",previousindex:0,selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.strings={fieldlabel:frag.label[0].value};},fillInTemplate:function(args,frag){elements=frag["dojo:unnecessarydropdown"].nodeRef.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="SELECT"){element=elements[i];}}this.select.name=dojo.html.getAttribute(element,"name");saveindex=element.selectedIndex;dojo.dom.copyChildren(element,this.select);this.select.selectedIndex=saveindex;if(this.select.selectedIndex==-1){this.selectedtext.innerHTML=this.select.options[0].text;}else{this.selectedtext.innerHTML=this.select.options[this.select.selectedIndex].text;}this.previousindex=this.select.selectedIndex;},cancel:function(){this.select.selectedIndex=this.previousindex;this.toggleDropdown();},save:function(){if(this.select.selectedIndex==0){return;}if(this.select.selectedIndex==-1){this.selectedtext.innerHTML=this.select.options[0].text;}else{this.selectedtext.innerHTML=this.select.options[this.select.selectedIndex].text;}this.previousindex=this.select.selectedIndex;this.toggleDropdown();},toggleDropdown:function(){if(this.selecting){dojo.html.show(this.info);dojo.html.hide(this.dropdown);}else{dojo.html.hide(this.info);dojo.html.show(this.dropdown);}this.selecting=!this.selecting;}});dojo.provide("form.widget.UnnecessaryProfileActivities");dojo.provide("form.widget.UnnecessaryProfileActivity");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryProfileActivities",dojo.widget.HtmlWidget,{templateString:"<div>\n\t\t<h4>Activities you enjoy: <span dojoattachpoint=\"helper\" style=\"display:none;\">(select all that apply)</span></h4>\n\t\t\n\t\t<span title=\"Click to Edit\" class=\"editable\" dojoattachpoint=\"selectedtext\" dojoattachevent=\"onClick: toggleCheckboxes\"></span>\n\t\t\t\n\t\t<div class=\"activities\" dojoattachpoint=\"checkboxes\" style=\"display:none;\">\n\t\t<div class=\"checkbox\">\n\t\t\t<input class=\"checkbox\" type=\"checkbox\" dojoattachpoint=\"allbox\" dojoattachevent=\"onClick: handleAllChange;\" id=\"activityall\" /><label for=\"activityall\">All</label>\n\t\t</div>\n\t\t\t\n\t\t<div class=\"subcol1\" dojoattachpoint=\"checkboxset1\"></div>\n\t\t<div class=\"subcol2\" dojoattachpoint=\"checkboxset2\"></div>\n\t\t<div class=\"subcol3\" dojoattachpoint=\"checkboxset3\"></div>\n\t\t\n\t\t<div class=\"actions\">\n\t\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachpoint=\"cancelbutton\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t\t</div>\n</div>\n",isContainer:true,widgetType:"UnnecessaryProfileActivities",previousindex:0,collapsedLabel:"",openedLabel:"",allcb:null,selectedboxes:[],selectedactivitytypes:[],activitytypes:[],savedallstate:false,selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){},addChild:function(_943,_944){if(dojo.lang.isUndefined(_944)){_944=this.children.length;}this.children.splice(_944,0,_943);_943.parent=this;if((this.children.length>=0)&&(this.children.length<7)){group=this.checkboxset1;}else{if((this.children.length>=7)&&(this.children.length<14)){group=this.checkboxset2;}else{group=this.checkboxset3;}}if(dojo.dom.lastElement(group)!=null){dojo.dom.insertAfter(_943.domNode,dojo.dom.lastElement(group));}else{group.appendChild(_943.domNode);}},fillInTemplate:function(args,frag){elements=frag["dojo:unnecessaryprofileactivities"].nodeRef.childNodes;this.activitytypes=dojo.json.evalJson(this.activitytypes);this.selectedactivitytypes=dojo.json.evalJson(this.selectedactivitytypes);dojo.lang.forEach(this.activitytypes,dojo.lang.hitch(this,function(_947){var _948=dojo.widget.createWidget("UnnecessaryProfileActivity",{"activityid":_947.id,"activityname":_947.name,"checked":dojo.lang.inArray(this.selectedactivitytypes,_947.id)});this.addChild(_948);}));this.populateCopy();},cancel:function(){dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_949){if(dojo.lang.inArray(this.selectedboxes,_949)){_949.check();}else{_949.uncheck();}}));this.allbox.checked=this.savedallstate;this.toggleCheckboxes();},handleAllChange:function(){if(this.allbox.checked){dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_94a){_94a.check();}));}else{dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_94b){_94b.uncheck();}));}},handleCBChange:function(){this.allbox.checked=false;},populateCopy:function(){this.selectedcopy="";this.selectedboxes=new Array;dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_94c){if(_94c.isChecked()){if(this.selectedcopy!=""){this.selectedcopy+=", ";}this.selectedcopy+=_94c.getName();this.selectedboxes.push(_94c);}}));this.selectedtext.innerHTML=this.selectedcopy;this.savedallstate=this.allbox.checked;if(this.selectedcopy==""){dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_94d){_94d.check();this.selectedboxes.push(_94d);}));}if(this.selectedboxes.length==this.children.length){this.selectedtext.innerHTML="All";this.allbox.checked=true;this.savedallstate=this.allbox.checked;}},save:function(){this.populateCopy();this.toggleCheckboxes();},toggleCheckboxes:function(){if(this.selecting){dojo.html.show(this.selectedtext);dojo.html.hide(this.checkboxes);dojo.html.hide(this.helper);}else{dojo.html.hide(this.selectedtext);dojo.html.show(this.checkboxes);dojo.html.show(this.helper);}this.selecting=!this.selecting;}});dojo.widget.defineWidget("form.widget.UnnecessaryProfileActivity",dojo.widget.HtmlWidget,{templateString:"<div class=\"checkbox\">\t\n\t<input type=\"checkbox\" name=\"Activity[]\" id=\"Activity_${activityid}\" value=\"${activityid}\" dojoattachpoint=\"cbfield\" class=\"checkbox\" dojoattachevent=\"onClick: handleChange;\" />\n\t<label for=\"Activity_${activityid}\">${activityname}</label>\n</div>",isContainer:false,widgetType:"UnnecessaryProfileActivity",activityid:0,activityname:"",checked:false,initialize:function(args,frag){},fillInTemplate:function(args,frag){this.cbfield.checked=this.checked;this.cbfield.defaultChecked=this.checked;},postMixInProperties:function(){this.strings={activityid:this.activityid,activityname:this.activityname};},isChecked:function(){return this.cbfield.checked;},check:function(){this.cbfield.checked=true;},uncheck:function(){this.cbfield.checked=false;},getName:function(){return this.activityname;},getId:function(){return this.activityid;},handleChange:function(){this.parent.handleCBChange();}});dojo.provide("form.widget.UnnecessaryProfileCheckboxes");dojo.provide("form.widget.UnnecessaryProfileCheckbox");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryProfileCheckboxes",dojo.widget.HtmlWidget,{templateString:"<div>\n\t<h4>${label}<span dojoattachpoint=\"helper\" style=\"display:none;\">${helperLabel}</span></h4>\n\n\t<span title=\"Click to Edit\" class=\"editable\" dojoattachpoint=\"selectedtext\" dojoattachevent=\"onClick: toggleCheckboxes\"></span>\n\n\t<div class=\"checkboxes clearfix\" dojoattachpoint=\"checkboxcontainer\" style=\"display:none\">\n\n\t\t<div dojoattachpoint=\"checkboxset\">\n\t\t</div>\n\t\t\n\t\t<div class=\"actions\">\n\t\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachpoint=\"cancelbutton\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t\t</div>\n\t</div>\n\n</div>\n",isContainer:true,widgetType:"UnnecessaryProfileCheckboxes",previousindex:0,helperLabel:"",label:"",allcb:null,checkboxes:[],selectedcheckboxes:[],selectedboxes:[],selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.strings={helperLabel:this.helperLabel,label:this.label};},addChild:function(_956,_957){if(dojo.lang.isUndefined(_957)){_957=this.children.length;}this.children.splice(_957,0,_956);_956.parent=this;group=this.checkboxset;if(dojo.dom.lastElement(group)!=null){dojo.dom.insertAfter(_956.domNode,dojo.dom.lastElement(group));}else{group.appendChild(_956.domNode);}},fillInTemplate:function(args,frag){this.checkboxes=dojo.json.evalJson(this.checkboxes);this.selectedcheckboxes=dojo.json.evalJson(this.selectedcheckboxes);dojo.lang.forEach(this.checkboxes,dojo.lang.hitch(this,function(cb){localcb=dojo.widget.createWidget("UnnecessaryProfileCheckbox",{"fieldid":cb.id,"fieldname":cb.name,"field":cb.field,"checked":dojo.lang.inArray(this.selectedcheckboxes,cb.id)});this.addChild(localcb);}));this.populateCopy();},cancel:function(){dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_95b){if(dojo.lang.inArray(this.selectedboxes,_95b)){_95b.check();}else{_95b.uncheck();}}));this.toggleCheckboxes();},checkAllState:function(e){if(e.target.checked){if(e.target==this.allcb){elements=this.checkboxes.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="INPUT"){element=elements[i];if(element!=this.allcb){element.checked=false;}}}}else{this.allcb.checked=false;}}},populateCopy:function(){this.selectedcopy="";this.selectedboxes=new Array;dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_95d){if(_95d.isChecked()){if(this.selectedcopy!=""){this.selectedcopy+=", ";}this.selectedcopy+=_95d.getName();this.selectedboxes.push(_95d);}}));if(this.selectedcopy==""){dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_95e){_95e.check();}));dojo.lang.forEach(this.children,dojo.lang.hitch(this,function(_95f){if(_95f.isChecked()){if(this.selectedcopy!=""){this.selectedcopy+=", ";}this.selectedcopy+=_95f.getName();this.selectedboxes.push(_95f);}}));}this.selectedtext.innerHTML=this.selectedcopy;},save:function(){this.populateCopy();this.toggleCheckboxes();},toggleCheckboxes:function(){if(this.selecting){dojo.html.show(this.selectedtext);dojo.html.hide(this.checkboxcontainer);dojo.html.hide(this.helper);}else{dojo.html.hide(this.selectedtext);dojo.html.show(this.checkboxcontainer);dojo.html.show(this.helper);}this.selecting=!this.selecting;}});dojo.widget.defineWidget("form.widget.UnnecessaryProfileCheckbox",dojo.widget.HtmlWidget,{templateString:"<div class=\"checkbox\">\t\n\t\t<input type=\"checkbox\" name=\"${field}[]\" id=\"${field}_${fieldid}\" value=\"${fieldid}\" dojoattachpoint=\"cbfield\" class=\"checkbox\" />\n\t\t<label for=\"${field}_${fieldid}\">${fieldname}</label>\n</div>",isContainer:false,widgetType:"UnnecessaryProfileCheckbox",fieldid:0,fieldname:"",field:"",checked:false,initialize:function(args,frag){},fillInTemplate:function(args,frag){this.cbfield.checked=this.checked;this.cbfield.defaultChecked=this.checked;},postMixInProperties:function(){this.strings={fieldid:this.fieldid,fieldname:this.fieldname,field:this.field};},isChecked:function(){return this.cbfield.checked;},check:function(){this.cbfield.checked=true;},uncheck:function(){this.cbfield.checked=false;},getName:function(){return this.fieldname;}});dojo.provide("form.widget.UnnecessaryProfileDropdown");dojo.provide("form.widget.UnnecessaryProfileEducation");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryProfileDropdown",dojo.widget.HtmlWidget,{templateString:"<dd>\n\t<span dojoattachpoint=\"selectedtext\" dojoattachevent=\"onClick: toggleDropdown\" class=\"editable\"></span>\n\t<select dojoattachpoint=\"select\" dojoattachevent=\"onChange: save\" style=\"display: none;\">\n\t</select>\n</dd>",isContainer:true,widgetType:"UnnecessaryProfileDropdown",previousindex:0,selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){},fillInTemplate:function(args,frag){elements=frag["dojo:"+this.widgetType.toLowerCase()].nodeRef.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="SELECT"){element=elements[i];}}this.select.name=dojo.html.getAttribute(element,"name");this.select.id=dojo.html.getAttribute(element,"id");saveindex=element.selectedIndex;dojo.dom.copyChildren(element,this.select);this.select.selectedIndex=saveindex;if(this.select.selectedIndex==-1){this.selectedtext.innerHTML=this.select.options[0].text;}else{this.selectedtext.innerHTML=this.select.options[this.select.selectedIndex].text;}this.previousindex=this.select.selectedIndex;},cancel:function(){this.select.selectedIndex=this.previousindex;this.toggleDropdown();},save:function(){if(this.select.selectedIndex==0){return;}if(this.select.selectedIndex==-1){this.selectedtext.innerHTML=this.select.options[0].text;}else{this.selectedtext.innerHTML=this.select.options[this.select.selectedIndex].text;}this.previousindex=this.select.selectedIndex;this.toggleDropdown();},toggleDropdown:function(){if(this.selecting){dojo.html.show(this.selectedtext);dojo.html.hide(this.select);}else{dojo.html.hide(this.selectedtext);dojo.html.show(this.select);}this.selecting=!this.selecting;}});dojo.widget.defineWidget("form.widget.UnnecessaryProfileEducation",form.widget.UnnecessaryProfileDropdown,{widgetType:"UnnecessaryProfileEducation",save:function(){this.inherited("save");this.handleChange();},fillInTemplate:function(args,frag){this.inherited("fillInTemplate",[args,frag]);this.handleChange();},handleChange:function(){elcontainer=document.getElementById("education_level_container");if(this.selectedtext.innerHTML=="Doctorate"){dojo.html.show(elcontainer);}else{dojo.html.hide(elcontainer);}}});
dojo.provide("form.widget.UnnecessaryProfileText");
dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");
dojo.widget.defineWidget("form.widget.UnnecessaryProfileText",dojo.widget.HtmlWidget,{templateString:"<dd>\n\t<span title=\"Click to Edit\" class=\"editable\" dojoattachpoint=\"selectedtext\" dojoattachevent=\"onClick: toggleTextField\"></span>\n\t<div class=\"clearfix\" dojoattachpoint=\"textfieldcontainer\" style=\"display: none;\">\n\t\t<input class=\"text long\" type=\"text\" name=\"${name}\" value=\"${value}\" dojoattachpoint=\"textfield\" />\n\t\t<div class=\"actions clearfix\">\n\t\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t\t</div>\n\t</div>\n</dd>",isContainer:true,widgetType:"UnnecessaryProfileText",name:"",label:"",value:"",blankCopy:"",selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.strings={fieldlabel:this.label,name:this.name,value:this.value};},fillInTemplate:function(args,frag){this.populateCopy();},cancel:function(){this.textfield.value=this.savedvalue;this.toggleTextField();},populateCopy:function(){this.selectedtext.innerHTML=this.textfield.value;this.savedvalue=this.textfield.value;if(this.blankCopy!=""){if(this.textfield.value==""){this.selectedtext.innerHTML=this.blankCopy;}}},save:function(){if(this.textfield.value==""){return;}this.populateCopy();this.toggleTextField();},toggleTextField:function(){if(this.selecting){dojo.html.show(this.selectedtext);dojo.html.hide(this.textfieldcontainer);}else{dojo.html.hide(this.selectedtext);dojo.html.show(this.textfieldcontainer);}this.selecting=!this.selecting;}});dojo.provide("form.widget.UnnecessaryProfileTextArea");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");
dojo.widget.defineWidget("form.widget.UnnecessaryProfileTextArea",dojo.widget.HtmlWidget,{templateString:"<dd>\n\t<span title=\"Click to Edit\" class=\"editable\" dojoattachpoint=\"selectedtext\" dojoattachevent=\"onClick: toggleTextField\"></span>\n\t<div class=\"clearfix\" dojoattachpoint=\"textfieldcontainer\" style=\"display: none;\">\n\t\t<textarea dojoattachpoint=\"textfield\">${value}</textarea>\n\t\t<div class=\"actions\">\n\t\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t\t</div>\n\t</div>\n</dd>",isContainer:true,widgetType:"UnnecessaryProfileTextArea",name:"",label:"",value:"",blankCopy:"",selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){},fillInTemplate:function(args,frag){elements=frag["dojo:unnecessaryprofiletextarea"].nodeRef.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="TEXTAREA"){element=elements[i];}}this.textfield.name=element.name;this.textfield.id=element.id;this.textfield.value=element.value;this.populateCopy();},cancel:function(){this.textfield.value=this.savedvalue;this.toggleTextField();},populateCopy:function(){this.selectedtext.innerHTML=this.textfield.value;this.savedvalue=this.textfield.value;if(this.blankCopy!=""){if(this.textfield.value==""){this.selectedtext.innerHTML=this.blankCopy;}}},save:function(){if(this.textfield.value==""){return;}this.populateCopy();this.toggleTextField();},toggleTextField:function(){if(this.selecting){dojo.html.show(this.selectedtext);dojo.html.hide(this.textfieldcontainer);}else{dojo.html.hide(this.selectedtext);dojo.html.show(this.textfieldcontainer);}this.selecting=!this.selecting;}});
dojo.provide("form.widget.UnnecessaryProfileThree");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryProfileThree",dojo.widget.HtmlWidget,{templateString:"<dd>\n\t<span dojoattachpoint=\"selectedtext\" dojoattachevent=\"onClick: toggleTextField\" class=\"editable\"></span>\n\t<div class=\"clearfix\" dojoattachpoint=\"textfieldcontainer\" style=\"display: none;\">\n\t\t<input class=\"text long\" type=\"text\" dojoattachpoint=\"textfield1\" />\n\t\t<input class=\"text long\" type=\"text\" dojoattachpoint=\"textfield2\" />\n\t\t<input class=\"text long\" type=\"text\" dojoattachpoint=\"textfield3\" />\n\t\t<div class=\"actions clearfix\">\n\t\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t\t</div>\n\t</div>\n</dd>",isContainer:true,widgetType:"UnnecessaryProfileThree",name:"",label:"",value:"",blankCopy:"",elements:[],selecting:false,initialize:function(args,frag){dojo.debug("fillin");},postMixInProperties:function(args,frag){},fillInTemplate:function(args,frag){elements=frag["dojo:unnecessaryprofilethree"].nodeRef.childNodes;j=0;for(i=0;i<elements.length;i++){if(elements[i].tagName=="INPUT"){element=elements[i];this.elements[j]={"name":element.name,"value":element.value};j++;}}this.textfield1.name=this.elements[0].name;this.textfield2.name=this.elements[1].name;this.textfield3.name=this.elements[2].name;this.textfield1.value=this.elements[0].value;this.textfield2.value=this.elements[1].value;this.textfield3.value=this.elements[2].value;this.populateCopy();},cancel:function(){this.saveLocalToFields();this.toggleTextField();},populateCopy:function(){this.selectedtext.innerHTML="";if(this.elements[0].value!=""){this.selectedtext.innerHTML+=this.elements[0].value;}if(this.elements[1].value!=""){if(this.selectedtext.innerHTML!=""){this.selectedtext.innerHTML+=", ";}this.selectedtext.innerHTML+=this.elements[1].value;}if(this.elements[2].value!=""){if(this.selectedtext.innerHTML!=""){this.selectedtext.innerHTML+=", ";}this.selectedtext.innerHTML+=this.elements[2].value;}},saveFieldsToLocal:function(){this.elements[0].value=this.textfield1.value;this.elements[1].value=this.textfield2.value;this.elements[2].value=this.textfield3.value;},saveLocalToFields:function(){this.textfield1.value=this.elements[0].value;this.textfield2.value=this.elements[1].value;this.textfield3.value=this.elements[2].value;},save:function(){isEmpty=(this.textfield1.value==""||this.textfield2.value==""||this.textfield3.value=="")?true:false;if(!isEmpty){this.saveFieldsToLocal();this.populateCopy();this.toggleTextField();}},toggleTextField:function(){if(this.selecting){dojo.html.show(this.selectedtext);dojo.html.hide(this.textfieldcontainer);}else{dojo.html.hide(this.selectedtext);dojo.html.show(this.textfieldcontainer);}this.selecting=!this.selecting;}});dojo.provide("form.widget.UnnecessaryRadius");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryRadius",dojo.widget.HtmlWidget,{templateString:"<div>\n\t<p dojoAttachPoint=\"info\" dojoAttachEvent=\"onClick: toggleDropdown\" style=\"cursor: pointer;\">${fieldlabel}<span dojoAttachPoint=\"selectedtext\"></span></p>\n\t<div class=\"clearfix\" dojoAttachPoint=\"dropdown\" style=\"display: none;\">\n\t\t<label>${fieldlabel}</label>\n\t\t<select dojoAttachPoint=\"select\" name=\"radius\">\n\t\t</select>\n\t\t<label>Zip Code: </label>\n\t\t<input name=\"zipcode\" type=\"text\" value=\"${zipcode}\" dojoAttachPoint=\"zipcodefield\" />\n\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: cancel\">Cancel</a>\n\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoAttachEvent=\"onClick: save\">Save</a>\n\t</div>\n</div>",templateCssString:"/* CSS Document */\n\n",templateCssPath:dojo.uri.dojoUri("form/widget/templates/UnnecessaryRadius.css"),isContainer:true,widgetType:"UnnecessaryRadius",previousindex:0,zipcode:"",selecting:false,initialize:function(args,frag){if(this.zipcode==" "){this.toggleDropdown();}},postMixInProperties:function(args,frag){this.strings={fieldlabel:frag.label[0].value,zipcode:this.zipcode};},fillInTemplate:function(args,frag){elements=frag["dojo:unnecessaryradius"].nodeRef.childNodes;for(i=0;i<elements.length;i++){if(elements[i].tagName=="SELECT"){element=elements[i];}}saveindex=element.selectedIndex;dojo.dom.copyChildren(element,this.select);this.select.selectedIndex=saveindex;this.populateCopy();this.previousindex=this.select.selectedIndex;},cancel:function(){this.zipcodefield.value=this.zipcode;this.select.selectedIndex=this.previousindex;this.toggleDropdown();},populateCopy:function(){if(this.select.selectedIndex==-1){this.selectedtext.innerHTML=this.select.options[0].text+" from "+this.zipcodefield.value;}else{if(this.select.options[this.select.selectedIndex].text=="any"){this.selectedtext.innerHTML="Any";}else{this.selectedtext.innerHTML=this.select.options[this.select.selectedIndex].text+" from "+this.zipcodefield.value;}}},save:function(){this.zipcode=this.zipcodefield.value;this.populateCopy();this.previousindex=this.select.selectedIndex;this.toggleDropdown();},toggleDropdown:function(){if(this.selecting){dojo.html.show(this.info);dojo.html.hide(this.dropdown);}else{dojo.html.hide(this.info);dojo.html.show(this.dropdown);}this.selecting=!this.selecting;}});dojo.provide("form.widget.UnnecessaryText");dojo.require("dojo.html.*");dojo.require("dojo.json");dojo.require("dojo.event");dojo.require("dojo.widget.*");dojo.widget.defineWidget("form.widget.UnnecessaryText",dojo.widget.HtmlWidget,{templateString:"<div id=\"num1\">\n\t<p dojoattachpoint=\"info\" dojoattachevent=\"onClick: toggleTextField\" style=\"cursor: pointer;\">${fieldlabel}<span dojoattachpoint=\"selectedtext\"></span></p>\n\t<div id=\"num2\" class=\"clearfix\" dojoattachpoint=\"textfieldcontainer\" style=\"display: none;\">\n\t\t<label>${fieldlabel}</label>\n\t\t<input class=\"text long\" type=\"text\" name=\"${name}\" value=\"${value}\" dojoattachpoint=\"textfield\" />\n\t\t<a class=\"button\" title=\"Cancel\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: cancel\">Cancel</a>\n\t\t<a class=\"button\" value=\"Save\" href=\"javascript:void(0)\" dojoattachevent=\"onClick: save\">Save</a>\n\t</div>\n</div>",isContainer:true,widgetType:"UnnecessaryText",name:"",label:"",value:"",blankCopy:"",selecting:false,initialize:function(args,frag){},postMixInProperties:function(args,frag){this.strings={fieldlabel:this.label,name:this.name,value:this.value};},fillInTemplate:function(args,frag){this.populateCopy();},cancel:function(){this.textfield.value=this.savedvalue;this.toggleTextField();},populateCopy:function(){this.selectedtext.innerHTML=this.textfield.value;this.savedvalue=this.textfield.value;if(this.blankCopy!=""){if(this.textfield.value==""){this.selectedtext.innerHTML=this.blankCopy;}}},save:function(){this.populateCopy();this.toggleTextField();},toggleTextField:function(){if(this.selecting){dojo.html.show(this.info);dojo.html.hide(this.textfieldcontainer);}else{dojo.html.hide(this.info);dojo.html.show(this.textfieldcontainer);}this.selecting=!this.selecting;}});