var dj_global=this;function dj_undef(A,B){if(!B){B=dj_global}return(typeof B[A]=="undefined")}if(dj_undef("djConfig")){var djConfig={}}var dojo;if(dj_undef("dojo")){dojo={}}dojo.version={major:0,minor:2,patch:2,flag:"+",revision:Number("$Rev: 3301 $".match(/[0-9]+/)[0]),toString:function(){with(dojo.version){return major+"."+minor+"."+patch+flag+" ("+revision+")"}}};dojo.evalObjPath=function(C,B){if(typeof C!="string"){return dj_global}if(C.indexOf(".")==-1){if((dj_undef(C,dj_global))&&(B)){dj_global[C]={}}return dj_global[C]}var E=C.split(/\./);var D=dj_global;for(var A=0;A<E.length;++A){if(!B){D=D[E[A]];if((typeof D=="undefined")||(!D)){return D}}else{if(dj_undef(E[A],D)){D[E[A]]={}}D=D[E[A]]}}return D};dojo.errorToString=function(A){return((!dj_undef("message",A))?A.message:(dj_undef("description",A)?A:A.description))};dojo.raise=function(B,A){if(A){B=B+": "+dojo.errorToString(A)}var C=dojo.hostenv;if((!dj_undef("hostenv",dojo))&&(!dj_undef("println",dojo.hostenv))){dojo.hostenv.println("FATAL: "+B)}throw Error(B)};dj_throw=dj_rethrow=function(A,B){dojo.deprecated("dj_throw and dj_rethrow deprecated, use dojo.raise instead");dojo.raise(A,B)};dojo.debug=function(){if(!djConfig.isDebug){return }var A=arguments;if(dj_undef("println",dojo.hostenv)){dojo.raise("dojo.debug not available (yet?)")}var C=dj_global.jum&&!dj_global.jum.isBrowser;var D=[(C?"":"DEBUG: ")];for(var B=0;B<A.length;++B){if(!false&&A[B] instanceof Error){var F="["+A[B].name+": "+dojo.errorToString(A[B])+(A[B].fileName?", file: "+A[B].fileName:"")+(A[B].lineNumber?", line: "+A[B].lineNumber:"")+"]"}else{try{var F=String(A[B])}catch(E){if(dojo.render.html.ie){var F="[ActiveXObject]"}else{var F="[unknown]"}}}D.push(F)}if(C){jum.debug(D.join(" "))}else{dojo.hostenv.println(D.join(" "))}};dojo.debugShallow=function(D){if(!djConfig.isDebug){return }dojo.debug("------------------------------------------------------------");dojo.debug("Object: "+D);var B=[];for(var F in D){try{B.push(F+": "+D[F])}catch(C){B.push(F+": ERROR - "+C.message)}}B.sort();for(var A=0;A<B.length;A++){dojo.debug(B[A])}dojo.debug("------------------------------------------------------------")};var dj_debug=dojo.debug;function dj_eval(s){return dj_global.eval?dj_global.eval(s):eval(s)}dj_unimplemented=dojo.unimplemented=function(B,A){var C="'"+B+"' not implemented";if((!dj_undef(A))&&(A)){C+=" "+A}dojo.raise(C)};dj_deprecated=dojo.deprecated=function(C,A,B){var D="DEPRECATED: "+C;if(A){D+=" "+A}if(B){D+=" -- will be removed in version: "+B}dojo.debug(D)};dojo.experimental=function(B,A){var C="EXPERIMENTAL: "+B;C+=" -- Not yet ready for use.  APIs subject to change without notice.";if(A){C+=" "+A}dojo.debug(C)};dojo.inherits=function(A,B){if(typeof B!="function"){dojo.raise("superclass: "+B+" borken")}A.prototype=new B();A.prototype.constructor=A;A.superclass=B.prototype;A["super"]=B.prototype};dj_inherits=function(A,B){dojo.deprecated("dj_inherits deprecated, use dojo.inherits instead");dojo.inherits(A,B)};dojo.render=(function(){function A(C,E){var D={capable:false,support:{builtin:false,plugin:false},prefixes:C};for(var B in E){D[B]=false}return D}return{name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:A(["html"],["ie","opera","khtml","safari","moz"]),svg:A(["svg"],["corel","adobe","batik"]),vml:A(["vml"],["ie"]),swf:A(["Swf","Flash","Mm"],["mm"]),swt:A(["Swt"],["ibm"])}})();dojo.hostenv=(function(){var A={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};if(typeof djConfig=="undefined"){djConfig=A}else{for(var B in A){if(typeof djConfig[B]=="undefined"){djConfig[B]=A[B]}}}var D=djConfig;function C(G,E,F){return(dj_undef(E,G)?F:G[E])}return{name_:"(unset)",version_:"(unset)",pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(E,F){this.modulePrefixes_[E]={name:E,value:F}},getModulePrefix:function(E){var F=this.modulePrefixes_;if((F[E])&&(F[E]["name"])){return F[E].value}return E},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],getName:function(){return this.name_},getVersion:function(){return this.version_},getText:function(E){dojo.unimplemented("getText","uri="+E)},getLibraryScriptUri:function(){dojo.unimplemented("getLibraryScriptUri","")}}})();dojo.hostenv.getBaseScriptUri=function(){if(djConfig.baseScriptUri.length){return djConfig.baseScriptUri}var B=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);if(!B){dojo.raise("Nothing returned by getLibraryScriptUri(): "+B)}var A=B.lastIndexOf("/");djConfig.baseScriptUri=djConfig.baseRelativePath;return djConfig.baseScriptUri};dojo.hostenv.setBaseScriptUri=function(A){djConfig.baseScriptUri=A};dojo.hostenv.loadPath=function(E,B,A){if((E.charAt(0)=="/")||(E.match(/^\w+:/))){dojo.raise("relpath '"+E+"'; must be relative")}var C=this.getBaseScriptUri()+E;if(djConfig.cacheBust&&dojo.render.html.capable){C+="?"+String(djConfig.cacheBust).replace(/\W+/g,"")}try{return((!B)?this.loadUri(C,A):this.loadUriAndCheck(C,B,A))}catch(D){dojo.debug(D);return false}};dojo.hostenv.loadUri=function(C,A){if(this.loadedUris[C]){return }var B=this.getText(C,null,true);if(B==null){return 0}this.loadedUris[C]=true;var D=dj_eval(B);return 1};dojo.hostenv.loadUriAndCheck=function(D,B,A){var C=true;try{C=this.loadUri(D,A)}catch(E){alert("failed loading "+D+" with error: "+E);dojo.debug("failed loading ",D," with error: ",E)}return Boolean(C&&this.findModule(B,false))};dojo.loaded=function(){};dojo.hostenv.loaded=function(){this.post_load_=true;var B=this.modulesLoadedListeners;for(var A=0;A<B.length;A++){B[A]()}dojo.loaded()};dojo.addOnLoad=function(B,A){if(arguments.length==1){dojo.hostenv.modulesLoadedListeners.push(B)}else{if(arguments.length>1){dojo.hostenv.modulesLoadedListeners.push(function(){B[A]()})}}};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 }if(typeof setTimeout=="object"){setTimeout("dojo.hostenv.loaded();",0)}else{dojo.hostenv.loaded()}}};dojo.hostenv.moduleLoaded=function(B){var A=dojo.evalObjPath((B.split(".").slice(0,-1)).join("."));this.loaded_modules_[(new String(B)).toLowerCase()]=A};dojo.hostenv._global_omit_module_check=false;dojo.hostenv.loadModule=function(G,A,K){if(!G){return }K=this._global_omit_module_check||K;var B=this.findModule(G,false);if(B){return B}if(dj_undef(G,this.loading_modules_)){this.addedToLoadingCount.push(G)}this.loading_modules_[G]=1;var D=G.replace(/\./g,"/")+".js";var C=G.split(".");var I=G.split(".");for(var E=C.length-1;E>0;E--){var H=C.slice(0,E).join(".");var L=this.getModulePrefix(H);if(L!=H){C.splice(0,E,L);break}}var J=C[C.length-1];if(J=="*"){G=(I.slice(0,-1)).join(".");while(C.length){C.pop();C.push(this.pkgFileName);D=C.join("/")+".js";if(D.charAt(0)=="/"){D=D.slice(1)}F=this.loadPath(D,((!K)?G:null));if(F){break}C.pop()}}else{D=C.join("/")+".js";G=I.join(".");var F=this.loadPath(D,((!K)?G:null));if((!F)&&(!A)){C.pop();while(C.length){D=C.join("/")+".js";F=this.loadPath(D,((!K)?G:null));if(F){break}C.pop();D=C.join("/")+"/"+this.pkgFileName+".js";if(D.charAt(0)=="/"){D=D.slice(1)}F=this.loadPath(D,((!K)?G:null));if(F){break}}}if((!F)&&(!K)){dojo.raise("Could not load '"+G+"'; last tried '"+D+"'")}}if(!K){B=this.findModule(G,false);if(!B){dojo.raise("symbol '"+G+"' is not defined after loading '"+D+"'")}}return B};dojo.hostenv.startPackage=function(B){var A=B.split(/\./);if(A[A.length-1]=="*"){A.pop()}return dojo.evalObjPath(A.join("."),true)};dojo.hostenv.findModule=function(C,D){var B=(new String(C)).toLowerCase();if(this.loaded_modules_[B]){return this.loaded_modules_[B]}var A=dojo.evalObjPath(C);if((C)&&(typeof A!="undefined")&&(A)){this.loaded_modules_[B]=A;return A}if(D){dojo.raise("no loaded module named '"+C+"'")}return null};/*@cc_on@if (@_jscript_version >= 7)var window; var XMLHttpRequest;@end@*/if(typeof window=="undefined"){dojo.raise("no window object")}(function(){if(djConfig.allowQueryConfig){var baseUrl=document.location.href;var params=baseUrl.split("?",2);if(params.length>1){var paramStr=params[1];var pairs=paramStr.split("&");for(var x in pairs){var sp=pairs[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 scripts=document.getElementsByTagName("script");var rePkg=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;for(var i=0;i<scripts.length;i++){var src=scripts[i].getAttribute("src");if(!src){continue}var m=src.match(rePkg);if(m){root=src.substring(0,m.index);if(src.indexOf("bootstrap1")>-1){root+="../"}if(!this["djConfig"]){djConfig={}}if(djConfig.baseScriptUri==""){djConfig.baseScriptUri=root}if(djConfig.baseRelativePath==""){djConfig.baseRelativePath=root}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 geckoPos=dua.indexOf("Gecko");drh.mozilla=drh.moz=(geckoPos>=0)&&(!drh.khtml);if(drh.mozilla){drh.geckoVersion=dua.substring(geckoPos+6,geckoPos+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;dr.vml.capable=drh.ie;drs.capable=f;drs.support.plugin=f;drs.support.builtin=f;drs.adobe=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;drs.adobe=f}else{if(navigator.mimeTypes&&navigator.mimeTypes.length>0){var result=navigator.mimeTypes["image/svg+xml"]||navigator.mimeTypes["image/svg"]||navigator.mimeTypes["image/svg-xml"];if(result){drs.adobe=result&&result.enabledPlugin&&result.enabledPlugin.description&&(result.enabledPlugin.description.indexOf("Adobe")>-1);if(drs.adobe){drs.capable=t;drs.support.plugin=t}}}else{if(drh.ie&&dr.os.win){var result=f;try{var test=new ActiveXObject("Adobe.SVGCtl");result=t}catch(e){}if(result){drs.capable=t;drs.support.plugin=t;drs.adobe=t}}else{drs.capable=f;drs.support.plugin=f;drs.adobe=f}}}})();dojo.hostenv.startPackage("dojo.hostenv");dojo.hostenv.name_="browser";dojo.hostenv.searchIds=[];var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];dojo.hostenv.getXmlhttpObject=function(){var A=null;var E=null;try{A=new XMLHttpRequest()}catch(D){}if(!A){for(var C=0;C<3;++C){var B=DJ_XMLHTTP_PROGIDS[C];try{A=new ActiveXObject(B)}catch(D){E=D}if(A){DJ_XMLHTTP_PROGIDS=[B];break}}}if(!A){return dojo.raise("XMLHTTP not available",E)}return A};dojo.hostenv.getText=function(C,E,A){var B=this.getXmlhttpObject();if(E){B.onreadystatechange=function(){if((4==B.readyState)&&(B.status)){if(B.status==200){E(B.responseText)}}}}B.open("GET",C,E?true:false);try{B.send(null)}catch(D){if(A&&!E){return null}else{throw D}}if(E){return null}return B.responseText};dojo.hostenv.defaultDebugContainerId="dojoDebug";dojo.hostenv._println_buffer=[];dojo.hostenv._println_safe=false;dojo.hostenv.println=function(A){if(!dojo.hostenv._println_safe){dojo.hostenv._println_buffer.push(A)}else{try{var B=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);if(!B){B=document.getElementsByTagName("body")[0]||document.body}var E=document.createElement("div");E.appendChild(document.createTextNode(A));B.appendChild(E)}catch(D){try{document.write("<div>"+A+"</div>")}catch(C){window.status=A}}}};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(D,E,B,A){var C=D["on"+E]||function(){};D["on"+E]=function(){B.apply(D,arguments);C.apply(D,arguments)};return true}dj_load_init=function(){if(arguments.callee.initialized){return }arguments.callee.initialized=true;if(dojo.render.html.ie){dojo.hostenv.makeWidgets()}dojo.hostenv.modulesLoaded()};dj_addNodeEvtHdlr(window,"load",dj_load_init);dojo.hostenv.makeWidgets=function(){var B=[];if(djConfig.searchIds&&djConfig.searchIds.length>0){B=B.concat(djConfig.searchIds)}if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){B=B.concat(dojo.hostenv.searchIds)}if((djConfig.parseWidgets)||(B.length>0)){if(dojo.evalObjPath("dojo.widget.Parse")){try{var F=new dojo.xml.Parse();if(B.length>0){for(var A=0;A<B.length;A++){var C=document.getElementById(B[A]);if(!C){continue}var E=F.parseElement(C,null,true);dojo.widget.getParser().createComponents(E)}}else{if(djConfig.parseWidgets){var E=F.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);dojo.widget.getParser().createComponents(E)}}}catch(D){dojo.debug("auto-build-widgets error:",D)}}}};dojo.hostenv.modulesLoadedListeners.push(function(){if(!dojo.render.html.ie){dojo.hostenv.makeWidgets()}});try{if(dojo.render.html.ie){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)")}}catch(e){}dojo.hostenv.writeIncludes=function(){};dojo.hostenv.byId=dojo.byId=function(B,A){if(B&&(typeof B=="string"||B instanceof String)){if(!A){A=document}return A.getElementById(B)}return B};dojo.hostenv.byIdArray=dojo.byIdArray=function(){var C=[];for(var B=0;B<arguments.length;B++){if((arguments[B] instanceof Array)||(typeof arguments[B]=="array")){for(var A=0;A<arguments[B].length;A++){C=C.concat(dojo.hostenv.byIdArray(arguments[B][A]))}}else{C.push(dojo.hostenv.byId(arguments[B]))}}return C};dojo.hostenv.conditionalLoadModule=function(E){var C=E.common||[];var B=(E[dojo.hostenv.name_])?C.concat(E[dojo.hostenv.name_]||[]):C.concat(E["default"]||[]);for(var A=0;A<B.length;A++){var D=B[A];if(D.constructor==Array){dojo.hostenv.loadModule.apply(dojo.hostenv,D)}else{dojo.hostenv.loadModule(D)}}};dojo.hostenv.require=dojo.hostenv.loadModule;dojo.require=function(){dojo.hostenv.loadModule.apply(dojo.hostenv,arguments)};dojo.requireAfter=dojo.require;dojo.requireIf=function(){if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){var A=[];for(var B=1;B<arguments.length;B++){A.push(arguments[B])}dojo.require.apply(dojo,A)}};dojo.requireAfterIf=dojo.requireIf;dojo.conditionalRequire=dojo.requireIf;dojo.requireAll=function(){for(var A=0;A<arguments.length;A++){}};dojo.kwCompoundRequire=function(){dojo.hostenv.conditionalLoadModule.apply(dojo.hostenv,arguments)};dojo.hostenv.provide=dojo.hostenv.startPackage;dojo.provide=function(){return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments)};dojo.setModulePrefix=function(A,B){return dojo.hostenv.setModulePrefix(A,B)};dojo.profile={start:function(){},end:function(){},stop:function(){},dump:function(){}};dojo.exists=function(D,A){var C=A.split(".");for(var B=0;B<C.length;B++){if(!(D[C[B]])){return false}D=D[C[B]]}return true};dojo.provide("dojo.lang.common");dojo.lang.mixin=function(D,C){var B={};for(var A in C){if(typeof B[A]=="undefined"||B[A]!=C[A]){D[A]=C[A]}}if(dojo.render.html.ie&&dojo.lang.isFunction(C.toString)&&C.toString!=D.toString){D.toString=C.toString}return D};dojo.lang.extend=function(B,A){this.mixin(B.prototype,A)};dojo.lang.find=function(F,B,G,I){if(!dojo.lang.isArrayLike(F)&&dojo.lang.isArrayLike(B)){var H=F;F=B;B=H}var A=dojo.lang.isString(F);if(A){F=F.split("")}if(I){var C=-1;var E=F.length-1;var D=-1}else{var C=1;var E=0;var D=F.length}if(G){while(E!=D){if(F[E]===B){return E}E+=C}}else{while(E!=D){if(F[E]==B){return E}E+=C}}return -1};dojo.lang.indexOf=dojo.lang.find;dojo.lang.findLast=function(A,C,B){return dojo.lang.find(A,C,B,true)};dojo.lang.lastIndexOf=dojo.lang.findLast;dojo.lang.inArray=function(A,B){return dojo.lang.find(A,B)>-1};dojo.lang.forEach=function(C,A,D){if(dojo.lang.isString(C)){C=C.split("")}if(dojo.lang.isArray(C)){for(var B=0;B<C.length;B++){if(A(C[B],B,C)=="break"){break}}}else{for(var B in C){if(A(C[B],B,C)=="break"){break}}}};dojo.lang.isObject=function(A){return typeof A=="object"||dojo.lang.isArray(A)||dojo.lang.isFunction(A)};dojo.lang.isArray=function(A){return(A instanceof Array||typeof A=="array")};dojo.lang.isArrayLike=function(A){if(dojo.lang.isString(A)){return false}if(dojo.lang.isFunction(A)){return false}if(dojo.lang.isArray(A)){return true}if(typeof A!="undefined"&&A&&dojo.lang.isNumber(A.length)&&isFinite(A.length)){return true}return false};dojo.lang.isFunction=function(A){return(A instanceof Function||typeof A=="function")};dojo.lang.isString=function(A){return(A instanceof String||typeof A=="string")};dojo.lang.isAlien=function(A){return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(A))};dojo.lang.isBoolean=function(A){return(A instanceof Boolean||typeof A=="boolean")};dojo.lang.isNumber=function(A){return(A instanceof Number||typeof A=="number")};dojo.lang.isUndefined=function(A){return((A==undefined)&&(typeof A=="undefined"))};dojo.provide("dojo.lang");dojo.provide("dojo.lang.Lang");dojo.provide("dojo.string.common");dojo.string.trim=function(C,A){if(!C.replace){return C}if(!C.length){return C}var B=(A>0)?(/^\s+/):(A<0)?(/\s+$/):(/^\s+|\s+$/g);return C.replace(B,"")};dojo.string.trimStart=function(A){return dojo.string.trim(A,1)};dojo.string.trimEnd=function(A){return dojo.string.trim(A,-1)};dojo.string.repeat=function(E,C,D){var A="";for(var B=0;B<C;B++){A+=E;if(D&&B<C-1){A+=D}}return A};dojo.string.pad=function(D,A,E,C){var B=String(D);if(!E){E="0"}if(!C){C=1}while(B.length<A){if(C>0){B=E+B}else{B+=E}}return B};dojo.string.padLeft=function(B,A,C){return dojo.string.pad(B,A,C,1)};dojo.string.padRight=function(B,A,C){return dojo.string.pad(B,A,C,-1)};dojo.provide("dojo.string");dojo.provide("dojo.lang.type");dojo.lang.whatAmI=function(A){try{if(dojo.lang.isArray(A)){return"array"}if(dojo.lang.isFunction(A)){return"function"}if(dojo.lang.isString(A)){return"string"}if(dojo.lang.isNumber(A)){return"number"}if(dojo.lang.isBoolean(A)){return"boolean"}if(dojo.lang.isAlien(A)){return"alien"}if(dojo.lang.isUndefined(A)){return"undefined"}for(var B in dojo.lang.whatAmI.custom){if(dojo.lang.whatAmI.custom[B](A)){return B}}if(dojo.lang.isObject(A)){return"object"}}catch(C){}return"unknown"};dojo.lang.whatAmI.custom={};dojo.lang.isNumeric=function(A){return(!isNaN(A)&&isFinite(A)&&(A!=null)&&!dojo.lang.isBoolean(A)&&!dojo.lang.isArray(A))};dojo.lang.isBuiltIn=function(A){return(dojo.lang.isArray(A)||dojo.lang.isFunction(A)||dojo.lang.isString(A)||dojo.lang.isNumber(A)||dojo.lang.isBoolean(A)||(A==null)||(A instanceof Error)||(typeof A=="error"))};dojo.lang.isPureObject=function(A){return((A!=null)&&dojo.lang.isObject(A)&&A.constructor==Object)};dojo.lang.isOfType=function(E,D){if(dojo.lang.isArray(D)){var B=D;for(var C in B){var A=B[C];if(dojo.lang.isOfType(E,A)){return true}}return false}else{if(dojo.lang.isString(D)){D=D.toLowerCase()}switch(D){case Array:case"array":return dojo.lang.isArray(E);break;case Function:case"function":return dojo.lang.isFunction(E);break;case String:case"string":return dojo.lang.isString(E);break;case Number:case"number":return dojo.lang.isNumber(E);break;case"numeric":return dojo.lang.isNumeric(E);break;case Boolean:case"boolean":return dojo.lang.isBoolean(E);break;case Object:case"object":return dojo.lang.isObject(E);break;case"pureobject":return dojo.lang.isPureObject(E);break;case"builtin":return dojo.lang.isBuiltIn(E);break;case"alien":return dojo.lang.isAlien(E);break;case"undefined":return dojo.lang.isUndefined(E);break;case null:case"null":return(E===null);break;case"optional":return((E===null)||dojo.lang.isUndefined(E));break;default:if(dojo.lang.isFunction(D)){return(E instanceof D)}else{dojo.raise("dojo.lang.isOfType() was passed an invalid type")}break}}dojo.raise("If we get here, it means a bug was introduced above.")};dojo.lang.getObject=function(D){var C=D.split("."),A=0,B=dj_global;do{B=B[C[A++]]}while(A<C.length&&B);return(B!=dj_global)?B:null};dojo.lang.doesObjectExist=function(D){var C=D.split("."),A=0,B=dj_global;do{B=B[C[A++]]}while(A<C.length&&B);return(B&&B!=dj_global)};dojo.lang.getConstructor=function(A){return A.constructor};dojo.lang.isConstructedBy=function(B,A){return dojo.lang.getConstructor(B)==A};dojo.lang.isSubOf=function(B,A){return B instanceof A};dojo.lang.isBaseOf=function(A,B){return B instanceof A};dojo.lang.createInstance=function(A){var D=null;var B=A;if(typeof (B)=="string"){B=dojo.lang.getObject(A)}if(typeof (B)=="function"){try{D=new B()}catch(C){}}return D};dojo.provide("dojo.lang.func");dojo.lang.hitch=function(A,C){if(dojo.lang.isString(C)){var B=A[C]}else{var B=C}return function(){return B.apply(A,arguments)}};dojo.lang.anonCtr=0;dojo.lang.anon={};dojo.lang.nameAnonFunc=function(B,D){var E=(D||dojo.lang.anon);if((dj_global.djConfig)&&(djConfig.slowAnonFuncLookups==true)){for(var A in E){if(E[A]===B){return A}}}var C="__"+dojo.lang.anonCtr++;while(typeof E[C]!="undefined"){C="__"+dojo.lang.anonCtr++}E[C]=B;return C};dojo.lang.forward=function(A){return function(){return this[A].apply(this,arguments)}};dojo.lang.curry=function(D,F){var B=[];D=D||dj_global;if(dojo.lang.isString(F)){F=D[F]}for(var A=2;A<arguments.length;A++){B.push(arguments[A])}var E=F.length-B.length;function C(M,I,L){var J=L;var H=I.slice(0);for(var G=0;G<M.length;G++){H.push(M[G])}L=L-M.length;if(L<=0){var K=F.apply(D,H);L=J;return K}else{return function(){return C(arguments,H,L)}}}return C([],B,E)};dojo.lang.curryArguments=function(C,E,B,F){var D=[];var A=F||0;for(A=F;A<B.length;A++){D.push(B[A])}return dojo.lang.curry.apply(dojo.lang,[C,E].concat(D))};dojo.lang.tryThese=function(){for(var A=0;A<arguments.length;A++){try{if(typeof arguments[A]=="function"){var B=(arguments[A]());if(B){return B}}}catch(C){dojo.debug(C)}}};dojo.lang.delayThese=function(B,A,C,D){if(!B.length){if(typeof D=="function"){D()}return }if((typeof C=="undefined")&&(typeof A=="number")){C=A;A=function(){}}else{if(!A){A=function(){};if(!C){C=0}}}setTimeout(function(){(B.shift())();A();dojo.lang.delayThese(B,A,C,D)},C)};dojo.provide("dojo.lang.array");dojo.lang.has=function(C,A){try{return(typeof C[A]!="undefined")}catch(B){return false}};dojo.lang.isEmpty=function(D){if(dojo.lang.isObject(D)){var B={};var C=0;for(var A in D){if(D[A]&&(!B[A])){C++;break}}return(C==0)}else{if(dojo.lang.isArrayLike(D)||dojo.lang.isString(D)){return D.length==0}}};dojo.lang.map=function(B,E,D){var A=dojo.lang.isString(B);if(A){B=B.split("")}if(dojo.lang.isFunction(E)&&(!D)){D=E;E=dj_global}else{if(dojo.lang.isFunction(E)&&D){var G=E;E=D;D=G}}if(Array.map){var F=Array.map(B,D,E)}else{var F=[];for(var C=0;C<B.length;++C){F.push(D.call(E,B[C]))}}if(A){return F.join("")}else{return F}};dojo.lang._everyOrSome=function(F,C,G,D){var B=dojo.lang.isString(C);if(B){C=C.split("")}if(Array.every){return Array[(F)?"every":"some"](C,G,D)}else{if(!D){if(arguments.length>=3){dojo.raise("thisObject doesn't exist!")}D=dj_global}for(var E=0;E<C.length;E++){var A=G.call(D,C[E],E,C);if((F)&&(!A)){return false}else{if((!F)&&(A)){return true}}}return(F)?true:false}};dojo.lang.every=function(A,C,B){return this._everyOrSome(true,A,C,B)};dojo.lang.some=function(A,C,B){return this._everyOrSome(false,A,C,B)};dojo.lang.filter=function(B,F,C){var A=dojo.lang.isString(B);if(A){B=B.split("")}if(Array.filter){var E=Array.filter(B,F,C)}else{if(!C){if(arguments.length>=3){dojo.raise("thisObject doesn't exist!")}C=dj_global}var E=[];for(var D=0;D<B.length;D++){if(F.call(C,B[D],D,B)){E.push(B[D])}}}if(A){return E.join("")}else{return E}};dojo.lang.unnest=function(){var A=[];for(var B=0;B<arguments.length;B++){if(dojo.lang.isArrayLike(arguments[B])){var C=dojo.lang.unnest.apply(this,arguments[B]);A=A.concat(C)}else{A.push(arguments[B])}}return A};dojo.lang.toArray=function(B,A){var D=[];for(var C=A||0;C<B.length;C++){D.push(B[C])}return D};dojo.provide("dojo.dom");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(A){if(typeof Element=="object"){try{return A instanceof Element}catch(B){}}else{return A&&!isNaN(A.nodeType)}};dojo.dom.getTagName=function(F){var E=F.tagName;if(E.substr(0,5).toLowerCase()!="dojo:"){if(E.substr(0,4).toLowerCase()=="dojo"){return"dojo:"+E.substring(4).toLowerCase()}var C=F.getAttribute("dojoType")||F.getAttribute("dojotype");if(C){return"dojo:"+C.toLowerCase()}if((F.getAttributeNS)&&(F.getAttributeNS(this.dojoml,"type"))){return"dojo:"+F.getAttributeNS(this.dojoml,"type").toLowerCase()}try{C=F.getAttribute("dojo:type")}catch(G){}if(C){return"dojo:"+C.toLowerCase()}if((!dj_global.djConfig)||(!djConfig.ignoreClassNames)){var D=F.className||F.getAttribute("class");if((D)&&(D.indexOf)&&(D.indexOf("dojo-")!=-1)){var B=D.split(" ");for(var A=0;A<B.length;A++){if((B[A].length>5)&&(B[A].indexOf("dojo-")>=0)){return"dojo:"+B[A].substr(5).toLowerCase()}}}}}return E.toLowerCase()};dojo.dom.getUniqueId=function(){do{var A="dj_unique_"+(++arguments.callee._idIncrement)}while(document.getElementById(A));return A};dojo.dom.getUniqueId._idIncrement=0;dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(A,B){var C=A.firstChild;while(C&&C.nodeType!=dojo.dom.ELEMENT_NODE){C=C.nextSibling}if(B&&C&&C.tagName&&C.tagName.toLowerCase()!=B.toLowerCase()){C=dojo.dom.nextElement(C,B)}return C};dojo.dom.lastElement=dojo.dom.getLastChildElement=function(A,B){var C=A.lastChild;while(C&&C.nodeType!=dojo.dom.ELEMENT_NODE){C=C.previousSibling}if(B&&C&&C.tagName&&C.tagName.toLowerCase()!=B.toLowerCase()){C=dojo.dom.prevElement(C,B)}return C};dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(B,A){if(!B){return null}do{B=B.nextSibling}while(B&&B.nodeType!=dojo.dom.ELEMENT_NODE);if(B&&A&&A.toLowerCase()!=B.tagName.toLowerCase()){return dojo.dom.nextElement(B,A)}return B};dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(B,A){if(!B){return null}if(A){A=A.toLowerCase()}do{B=B.previousSibling}while(B&&B.nodeType!=dojo.dom.ELEMENT_NODE);if(B&&A&&A.toLowerCase()!=B.tagName.toLowerCase()){return dojo.dom.prevElement(B,A)}return B};dojo.dom.moveChildren=function(C,D,A){var B=0;if(A){while(C.hasChildNodes()&&C.firstChild.nodeType==dojo.dom.TEXT_NODE){C.removeChild(C.firstChild)}while(C.hasChildNodes()&&C.lastChild.nodeType==dojo.dom.TEXT_NODE){C.removeChild(C.lastChild)}}while(C.hasChildNodes()){D.appendChild(C.firstChild);B++}return B};dojo.dom.copyChildren=function(B,D,A){var C=B.cloneNode(true);return this.moveChildren(C,D,A)};dojo.dom.removeChildren=function(B){var A=B.childNodes.length;while(B.hasChildNodes()){B.removeChild(B.firstChild)}return A};dojo.dom.replaceChildren=function(B,A){dojo.dom.removeChildren(B);B.appendChild(A)};dojo.dom.removeNode=function(A){if(A&&A.parentNode){return A.parentNode.removeChild(A)}};dojo.dom.getAncestors=function(C,E,A){var B=[];var D=dojo.lang.isFunction(E);while(C){if(!D||E(C)){B.push(C)}if(A&&B.length>0){return B[0]}C=C.parentNode}if(A){return null}return B};dojo.dom.getAncestorsByTag=function(C,A,B){A=A.toLowerCase();return dojo.dom.getAncestors(C,function(D){return((D.tagName)&&(D.tagName.toLowerCase()==A))},B)};dojo.dom.getFirstAncestorByTag=function(B,A){return dojo.dom.getAncestorsByTag(B,A,true)};dojo.dom.isDescendantOf=function(B,A,C){if(C&&B){B=B.parentNode}while(B){if(B==A){return true}B=B.parentNode}return false};dojo.dom.innerXML=function(A){if(A.innerXML){return A.innerXML}else{if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(A)}}};dojo.dom.createDocumentFromText=function(F,A){if(!A){A="text/xml"}if(typeof DOMParser!="undefined"){var G=new DOMParser();return G.parseFromString(F,A)}else{if(typeof ActiveXObject!="undefined"){var B=new ActiveXObject("Microsoft.XMLDOM");if(B){B.async=false;B.loadXML(F);return B}else{dojo.debug("toXml didn't work?")}}else{if(document.createElement){var D=document.createElement("xml");D.innerHTML=F;if(document.implementation&&document.implementation.createDocument){var E=document.implementation.createDocument("foo","",null);for(var C=0;C<D.childNodes.length;C++){E.importNode(D.childNodes.item(C),true)}return E}return D.document&&D.document.firstChild?D.document.firstChild:D}}}return null};dojo.dom.prependChild=function(B,A){if(A.firstChild){A.insertBefore(B,A.firstChild)}else{A.appendChild(B)}return true};dojo.dom.insertBefore=function(C,B,D){if(D!=true&&(C===B||C.nextSibling===B)){return false}var A=B.parentNode;A.insertBefore(C,B);return true};dojo.dom.insertAfter=function(C,B,D){var A=B.parentNode;if(B==A.lastChild){if((D!=true)&&(C===B)){return false}A.appendChild(C)}else{return this.insertBefore(C,B.nextSibling,D)}return true};dojo.dom.insertAtPosition=function(C,B,A){if((!C)||(!B)||(!A)){return false}switch(A.toLowerCase()){case"before":return dojo.dom.insertBefore(C,B);case"after":return dojo.dom.insertAfter(C,B);case"first":if(B.firstChild){return dojo.dom.insertBefore(C,B.firstChild)}else{B.appendChild(C);return true}break;default:B.appendChild(C);return true}};dojo.dom.insertAtIndex=function(D,C,F){var E=C.childNodes;if(!E.length){C.appendChild(D);return true}var G=null;for(var B=0;B<E.length;B++){var A=E.item(B)["getAttribute"]?parseInt(E.item(B).getAttribute("dojoinsertionindex")):-1;if(A<F){G=E.item(B)}}if(G){return dojo.dom.insertAfter(D,G)}else{return dojo.dom.insertBefore(D,E.item(0))}};dojo.dom.textContent=function(D,E){if(E){var A=document;if(D&&D.ownerDocument){A=D.ownerDocument}dojo.dom.replaceChildren(D,A.createTextNode(E));return E}else{var C="";if(D==null){return C}for(var B=0;B<D.childNodes.length;B++){switch(D.childNodes[B].nodeType){case 1:case 5:C+=dojo.dom.textContent(D.childNodes[B]);break;case 3:case 2:case 4:C+=D.childNodes[B].nodeValue;break;default:break}}return C}};dojo.dom.collectionToArray=function(A){dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead");return dojo.lang.toArray(A)};dojo.dom.hasParent=function(A){if(!A||!A.parentNode||(A.parentNode&&!A.parentNode.tagName)){return false}return true};dojo.dom.isTag=function(B){if(B&&B.tagName){var A=dojo.lang.toArray(arguments,1);return A[dojo.lang.find(B.tagName,A)]||""}return""};dojo.provide("dojo.graphics.color");dojo.graphics.color.Color=function(E,D,A,B){if(dojo.lang.isArray(E)){this.r=E[0];this.g=E[1];this.b=E[2];this.a=E[3]||1}else{if(dojo.lang.isString(E)){var C=dojo.graphics.color.extractRGB(E);this.r=C[0];this.g=C[1];this.b=C[2];this.a=D||1}else{if(E instanceof dojo.graphics.color.Color){this.r=E.r;this.b=E.b;this.g=E.g;this.a=E.a}else{this.r=E;this.g=D;this.b=A;this.a=B}}}};dojo.graphics.color.Color.fromArray=function(A){return new dojo.graphics.color.Color(A[0],A[1],A[2],A[3])};dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(A){if(A){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()},toHsv:function(){return dojo.graphics.color.rgb2hsv(this.toRgb())},toHsl:function(){return dojo.graphics.color.rgb2hsl(this.toRgb())},blend:function(A,B){return dojo.graphics.color.blend(this.toRgb(),new Color(A).toRgb(),B)}});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(B,A,E){if(typeof B=="string"){return dojo.graphics.color.blendHex(B,A,E)}if(!E){E=0}else{if(E>1){E=1}else{if(E<-1){E=-1}}}var F=new Array(3);for(var C=0;C<3;C++){var D=Math.abs(B[C]-A[C])/2;F[C]=Math.floor(Math.min(B[C],A[C])+D+(D*E))}return F};dojo.graphics.color.blendHex=function(B,A,C){return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(B),dojo.graphics.color.hex2rgb(A),C))};dojo.graphics.color.extractRGB=function(B){var D="0123456789abcdef";B=B.toLowerCase();if(B.indexOf("rgb")==0){var E=B.match(/rgba*\((\d+), *(\d+), *(\d+)/i);var C=E.splice(1,3);return C}else{var A=dojo.graphics.color.hex2rgb(B);if(A){return A}else{return dojo.graphics.color.named[B]||[255,255,255]}}};dojo.graphics.color.hex2rgb=function(D){var A="0123456789ABCDEF";var B=new Array(3);if(D.indexOf("#")==0){D=D.substring(1)}D=D.toUpperCase();if(D.replace(new RegExp("["+A+"]","g"),"")!=""){return null}if(D.length==3){B[0]=D.charAt(0)+D.charAt(0);B[1]=D.charAt(1)+D.charAt(1);B[2]=D.charAt(2)+D.charAt(2)}else{B[0]=D.substring(0,2);B[1]=D.substring(2,4);B[2]=D.substring(4)}for(var C=0;C<B.length;C++){B[C]=A.indexOf(B[C].charAt(0))*16+A.indexOf(B[C].charAt(1))}return B};dojo.graphics.color.rgb2hex=function(D,C,A){if(dojo.lang.isArray(D)){C=D[1]||0;A=D[2]||0;D=D[0]||0}function E(F){while(F.length<2){F="0"+F}return F}var B=dojo.lang.map([D,C,A],function(F){var G=F.toString(16);while(G.length<2){G="0"+G}return G});B.unshift("#");return B.join("")};dojo.graphics.color.rgb2hsv=function(G,F,A){if(dojo.lang.isArray(G)){A=G[2]||0;F=G[1]||0;G=G[0]||0}var E=null;var D=null;var B=null;var C=Math.min(G,F,A);B=Math.max(G,F,A);var H=B-C;D=(B==0)?0:H/B;if(D==0){E=0}else{if(G==B){E=60*(F-A)/H}else{if(F==B){E=120+60*(A-G)/H}else{if(A==B){E=240+60*(G-F)/H}}}if(E<0){E+=360}}E=(E==0)?360:Math.ceil((E/360)*255);D=Math.ceil(D*255);return[E,D,B]};dojo.graphics.color.hsv2rgb=function(F,L,J){if(dojo.lang.isArray(F)){J=F[2]||0;L=F[1]||0;F=F[0]||0}F=(F/255)*360;if(F==360){F=0}L=L/255;J=J/255;var A=null;var G=null;var I=null;if(L==0){A=J;G=J;I=J}else{var D=F/60;var E=Math.floor(D);var H=D-E;var C=J*(1-L);var B=J*(1-(L*H));var K=J*(1-(L*(1-H)));switch(E){case 0:A=J;G=K;I=C;break;case 1:A=B;G=J;I=C;break;case 2:A=C;G=J;I=K;break;case 3:A=C;G=B;I=J;break;case 4:A=K;G=C;I=J;break;case 5:A=J;G=C;I=B;break}}A=Math.ceil(A*255);G=Math.ceil(G*255);I=Math.ceil(I*255);return[A,G,I]};dojo.graphics.color.rgb2hsl=function(A,E,F){if(dojo.lang.isArray(A)){F=A[2]||0;E=A[1]||0;A=A[0]||0}A/=255;E/=255;F/=255;var D=null;var I=null;var B=null;var C=Math.min(A,E,F);var G=Math.max(A,E,F);var H=G-C;B=(C+G)/2;I=0;if((B>0)&&(B<1)){I=H/((B<0.5)?(2*B):(2-2*B))}D=0;if(H>0){if((G==A)&&(G!=E)){D+=(E-F)/H}if((G==E)&&(G!=F)){D+=(2+(F-A)/H)}if((G==F)&&(G!=A)){D+=(4+(A-E)/H)}D*=60}D=(D==0)?360:Math.ceil((D/360)*255);I=Math.ceil(I*255);B=Math.ceil(B*255);return[D,I,B]};dojo.graphics.color.hsl2rgb=function(C,B,A){if(dojo.lang.isArray(C)){A=C[2]||0;B=C[1]||0;C=C[0]||0}C=(C/255)*360;if(C==360){C=0}B=B/255;A=A/255;while(C<0){C+=360}while(C>360){C-=360}if(C<120){r=(120-C)/60;g=C/60;b=0}else{if(C<240){r=0;g=(240-C)/60;b=(C-120)/60}else{r=(C-240)/60;g=0;b=(360-C)/60}}r=Math.min(r,1);g=Math.min(g,1);b=Math.min(b,1);r=2*B*r+(1-B);g=2*B*g+(1-B);b=2*B*b+(1-B);if(A<0.5){r=A*r;g=A*g;b=A*b}else{r=(1-A)*r+2*A-1;g=(1-A)*g+2*A-1;b=(1-A)*b+2*A-1}r=Math.ceil(r*255);g=Math.ceil(g*255);b=Math.ceil(b*255);return[r,g,b]};dojo.graphics.color.hsl2hex=function(D,C,A){var B=dojo.graphics.color.hsl2rgb(D,C,A);return dojo.graphics.color.rgb2hex(B[0],B[1],B[2])};dojo.graphics.color.hex2hsl=function(B){var A=dojo.graphics.color.hex2rgb(B);return dojo.graphics.color.rgb2hsl(A[0],A[1],A[2])};dojo.provide("dojo.style");dojo.style.boxSizing={marginBox:"margin-box",borderBox:"border-box",paddingBox:"padding-box",contentBox:"content-box"};dojo.style.getBoxSizing=function(C){C=dojo.byId(C);if(dojo.render.html.ie||dojo.render.html.opera){var A=document.compatMode;if(A=="BackCompat"||A=="QuirksMode"){return dojo.style.boxSizing.borderBox}else{return dojo.style.boxSizing.contentBox}}else{if(arguments.length==0){C=document.documentElement}var B=dojo.style.getStyle(C,"-moz-box-sizing");if(!B){B=dojo.style.getStyle(C,"box-sizing")}return(B?B:dojo.style.boxSizing.contentBox)}};dojo.style.isBorderBox=function(A){return(dojo.style.getBoxSizing(A)==dojo.style.boxSizing.borderBox)};dojo.style.getUnitValue=function(E,D,F){E=dojo.byId(E);var A={value:0,units:"px"};var C=dojo.style.getComputedStyle(E,D);if(C==""||(C=="auto"&&F)){return A}if(dojo.lang.isUndefined(C)){A.value=NaN}else{var B=C.match(/(\-?[\d.]+)([a-z%]*)/i);if(!B){A.value=NaN}else{A.value=Number(B[1]);A.units=B[2].toLowerCase()}}return A};dojo.style.getPixelValue=function(C,B,D){C=dojo.byId(C);var A=dojo.style.getUnitValue(C,B,D);if(isNaN(A.value)){return 0}if((A.value)&&(A.units!="px")){return NaN}return A.value};dojo.style.getNumericStyle=dojo.style.getPixelValue;dojo.style.isPositionAbsolute=function(A){A=dojo.byId(A);return(dojo.style.getComputedStyle(A,"position")=="absolute")};dojo.style.getMarginWidth=function(B){B=dojo.byId(B);var D=dojo.style.isPositionAbsolute(B);var C=dojo.style.getPixelValue(B,"margin-left",D);var A=dojo.style.getPixelValue(B,"margin-right",D);return C+A};dojo.style.getBorderWidth=function(B){B=dojo.byId(B);var C=(dojo.style.getStyle(B,"border-left-style")=="none"?0:dojo.style.getPixelValue(B,"border-left-width"));var A=(dojo.style.getStyle(B,"border-right-style")=="none"?0:dojo.style.getPixelValue(B,"border-right-width"));return C+A};dojo.style.getPaddingWidth=function(B){B=dojo.byId(B);var C=dojo.style.getPixelValue(B,"padding-left",true);var A=dojo.style.getPixelValue(B,"padding-right",true);return C+A};dojo.style.getContentWidth=function(A){A=dojo.byId(A);return A.offsetWidth-dojo.style.getPaddingWidth(A)-dojo.style.getBorderWidth(A)};dojo.style.getInnerWidth=function(A){A=dojo.byId(A);return A.offsetWidth};dojo.style.getOuterWidth=function(A){A=dojo.byId(A);return dojo.style.getInnerWidth(A)+dojo.style.getMarginWidth(A)};dojo.style.setOuterWidth=function(B,A){B=dojo.byId(B);if(!dojo.style.isBorderBox(B)){A-=dojo.style.getPaddingWidth(B)+dojo.style.getBorderWidth(B)}A-=dojo.style.getMarginWidth(B);if(!isNaN(A)&&A>0){B.style.width=A+"px";return true}else{return false}};dojo.style.getContentBoxWidth=dojo.style.getContentWidth;dojo.style.getBorderBoxWidth=dojo.style.getInnerWidth;dojo.style.getMarginBoxWidth=dojo.style.getOuterWidth;dojo.style.setMarginBoxWidth=dojo.style.setOuterWidth;dojo.style.getMarginHeight=function(B){B=dojo.byId(B);var D=dojo.style.isPositionAbsolute(B);var C=dojo.style.getPixelValue(B,"margin-top",D);var A=dojo.style.getPixelValue(B,"margin-bottom",D);return C+A};dojo.style.getBorderHeight=function(B){B=dojo.byId(B);var C=(dojo.style.getStyle(B,"border-top-style")=="none"?0:dojo.style.getPixelValue(B,"border-top-width"));var A=(dojo.style.getStyle(B,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(B,"border-bottom-width"));return C+A};dojo.style.getPaddingHeight=function(B){B=dojo.byId(B);var C=dojo.style.getPixelValue(B,"padding-top",true);var A=dojo.style.getPixelValue(B,"padding-bottom",true);return C+A};dojo.style.getContentHeight=function(A){A=dojo.byId(A);return A.offsetHeight-dojo.style.getPaddingHeight(A)-dojo.style.getBorderHeight(A)};dojo.style.getInnerHeight=function(A){A=dojo.byId(A);return A.offsetHeight};dojo.style.getOuterHeight=function(A){A=dojo.byId(A);return dojo.style.getInnerHeight(A)+dojo.style.getMarginHeight(A)};dojo.style.setOuterHeight=function(A,B){A=dojo.byId(A);if(!dojo.style.isBorderBox(A)){B-=dojo.style.getPaddingHeight(A)+dojo.style.getBorderHeight(A)}B-=dojo.style.getMarginHeight(A);if(!isNaN(B)&&B>0){A.style.height=B+"px";return true}else{return false}};dojo.style.setContentWidth=function(B,A){B=dojo.byId(B);if(dojo.style.isBorderBox(B)){A+=dojo.style.getPaddingWidth(B)+dojo.style.getBorderWidth(B)}if(!isNaN(A)&&A>0){B.style.width=A+"px";return true}else{return false}};dojo.style.setContentHeight=function(A,B){A=dojo.byId(A);if(dojo.style.isBorderBox(A)){B+=dojo.style.getPaddingHeight(A)+dojo.style.getBorderHeight(A)}if(!isNaN(B)&&B>0){A.style.height=B+"px";return true}else{return false}};dojo.style.getContentBoxHeight=dojo.style.getContentHeight;dojo.style.getBorderBoxHeight=dojo.style.getInnerHeight;dojo.style.getMarginBoxHeight=dojo.style.getOuterHeight;dojo.style.setMarginBoxHeight=dojo.style.setOuterHeight;dojo.style.getTotalOffset=function(B,F,I){B=dojo.byId(B);var H=(F=="top")?"offsetTop":"offsetLeft";var G=(F=="top")?"scrollTop":"scrollLeft";var E=(F=="top")?"y":"x";var C=0;if(B.offsetParent){if(dojo.render.html.safari&&B.style.getPropertyValue("position")=="absolute"&&B.parentNode==document.body){var D=document.body}else{var D=document.body.parentNode}if(I&&B.parentNode!=document.body){C-=dojo.style.sumAncestorProperties(B,G)}do{var A=B[H];C+=isNaN(A)?0:A;B=B.offsetParent}while(B!=D&&B!=null)}else{if(B[E]){var A=B[E];C+=isNaN(A)?0:A}}return C};dojo.style.sumAncestorProperties=function(A,D){A=dojo.byId(A);if(!A){return 0}var B=0;while(A){var C=A[D];if(C){B+=C-0}A=A.parentNode}return B};dojo.style.totalOffsetLeft=function(B,A){B=dojo.byId(B);return dojo.style.getTotalOffset(B,"left",A)};dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft;dojo.style.totalOffsetTop=function(B,A){B=dojo.byId(B);return dojo.style.getTotalOffset(B,"top",A)};dojo.style.getAbsoluteY=dojo.style.totalOffsetTop;dojo.style.getAbsolutePosition=function(C,B){C=dojo.byId(C);var A=[dojo.style.getAbsoluteX(C,B),dojo.style.getAbsoluteY(C,B)];A.x=A[0];A.y=A[1];return A};dojo.style.styleSheet=null;dojo.style.insertCssRule=function(A,D,B){if(!dojo.style.styleSheet){if(document.createStyleSheet){dojo.style.styleSheet=document.createStyleSheet()}else{if(document.styleSheets[0]){dojo.style.styleSheet=document.styleSheets[0]}else{return null}}}if(arguments.length<3){if(dojo.style.styleSheet.cssRules){B=dojo.style.styleSheet.cssRules.length}else{if(dojo.style.styleSheet.rules){B=dojo.style.styleSheet.rules.length}else{return null}}}if(dojo.style.styleSheet.insertRule){var C=A+" { "+D+" }";return dojo.style.styleSheet.insertRule(C,B)}else{if(dojo.style.styleSheet.addRule){return dojo.style.styleSheet.addRule(A,D,B)}else{return null}}};dojo.style.removeCssRule=function(A){if(!dojo.style.styleSheet){dojo.debug("no stylesheet defined for removing rules");return false}if(dojo.render.html.ie){if(!A){A=dojo.style.styleSheet.rules.length;dojo.style.styleSheet.removeRule(A)}}else{if(document.styleSheets[0]){if(!A){A=dojo.style.styleSheet.cssRules.length}dojo.style.styleSheet.deleteRule(A)}}return true};dojo.style.insertCssFile=function(B,G,H){if(!B){return }if(!G){G=document}var A=dojo.hostenv.getText(B);var A=dojo.style.fixPathsInCssText(A,B);if(H){var F=G.getElementsByTagName("style");var E="";for(var C=0;C<F.length;C++){E=(F[C].styleSheet&&F[C].styleSheet.cssText)?F[C].styleSheet.cssText:F[C].innerHTML;if(A==E){return }}}var D=dojo.style.insertCssText(A);if(D&&djConfig.isDebug){D.setAttribute("dbgHref",B)}return D};dojo.style.insertCssText=function(A,F,B){if(!A){return }if(!F){F=document}if(B){A=dojo.style.fixPathsInCssText(A,B)}var E=F.createElement("style");E.setAttribute("type","text/css");if(E.styleSheet){E.styleSheet.cssText=A}else{var D=F.createTextNode(A);E.appendChild(D)}var C=F.getElementsByTagName("head")[0];if(C){C.appendChild(E)}return E};dojo.style.fixPathsInCssText=function(A,C){if(!A||!C){return }var E=0;var D="";var B="";while(E!=-1){E=0;B="";E=A.indexOf("url(",E);if(E<0){break}D+=A.slice(0,E+4);A=A.substring(E+4,A.length);B+=A.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];A=A.substring(B.length-1,A.length);B=B.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");if(B.search(/(file|https?|ftps?):\/\//)==-1){B=(new dojo.uri.Uri(C,B).toString())}D+=B}return D+A};dojo.style.getBackgroundColor=function(B){B=dojo.byId(B);var A;do{A=dojo.style.getStyle(B,"background-color");if(A.toLowerCase()=="rgba(0, 0, 0, 0)"){A="transparent"}if(B==document.getElementsByTagName("body")[0]){B=null;break}B=B.parentNode}while(B&&dojo.lang.inArray(A,["transparent",""]));if(A=="transparent"){A=[255,255,255,0]}else{A=dojo.graphics.color.extractRGB(A)}return A};dojo.style.getComputedStyle=function(D,C,A){D=dojo.byId(D);if(document.defaultView){try{var B=document.defaultView.getComputedStyle(D,"");if(B){return B.getPropertyValue(C)}}catch(E){if(D.style.getPropertyValue){return D.style.getPropertyValue(C)}else{return A}}}else{if(D.currentStyle){return D.currentStyle[dojo.style.toCamelCase(C)]}}if(D.style.getPropertyValue){return D.style.getPropertyValue(C)}else{return A}};dojo.style.getStyle=function(C,B){C=dojo.byId(C);var A=dojo.style.toCamelCase(B);var D=C.style[A];return(D?D:dojo.style.getComputedStyle(C,B))};dojo.style.toCamelCase=function(B){var A=B.split("-"),D=A[0];for(var C=1;C<A.length;C++){D+=A[C].charAt(0).toUpperCase()+A[C].substring(1)}return D};dojo.style.toSelectorCase=function(A){return A.replace(/([A-Z])/g,"-$1").toLowerCase()};dojo.style.setOpacity=function setOpacity(F,B,E){F=dojo.byId(F);var D=dojo.render.html;if(!E){if(B>=1){if(D.ie){dojo.style.clearOpacity(F);return }else{B=0.999999}}else{if(B<0){B=0}}}if(D.ie){if(F.nodeName.toLowerCase()=="tr"){var C=F.getElementsByTagName("td");for(var A=0;A<C.length;A++){C[A].style.filter="Alpha(Opacity="+B*100+")"}}F.style.filter="Alpha(Opacity="+B*100+")"}else{if(D.moz){F.style.opacity=B;F.style.MozOpacity=B}else{if(D.safari){F.style.opacity=B;F.style.KhtmlOpacity=B}else{F.style.opacity=B}}}};dojo.style.getOpacity=function getOpacity(B){B=dojo.byId(B);if(dojo.render.html.ie){var A=(B.filters&&B.filters.alpha&&typeof B.filters.alpha.opacity=="number"?B.filters.alpha.opacity:100)/100}else{var A=B.style.opacity||B.style.MozOpacity||B.style.KhtmlOpacity||1}return A>=0.999999?1:Number(A)};dojo.style.clearOpacity=function clearOpacity(B){B=dojo.byId(B);var A=dojo.render.html;if(A.ie){if(B.filters&&B.filters.alpha){B.style.filter=""}}else{if(A.moz){B.style.opacity=1;B.style.MozOpacity=1}else{if(A.safari){B.style.opacity=1;B.style.KhtmlOpacity=1}else{B.style.opacity=1}}}};dojo.style.show=function(A){A=dojo.byId(A);if(A.style){A.style.display=""}};dojo.style.hide=function(A){A=dojo.byId(A);if(A.style){A.style.display="none"}};dojo.style.isShowing=function(A){A=dojo.byId(A);return Boolean(A.style&&A.style.display!="none")};dojo.style.toggleShowing=function(B){var A=dojo.style.isShowing(B);dojo.style[(A?"hide":"show")](B);return A};dojo.style.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};dojo.style.suggestDisplayForTagName=function(B){B=dojo.byId(B);if(B&&B.tagName){var A=B.tagName.toLowerCase();return(A in dojo.style.displayMap?dojo.style.displayMap[A]:"block")}};dojo.style.setDisplay=function(A,B){A=dojo.byId(A);if(A.style){A.style.display=(dojo.lang.isString(B)?B:(B?dojo.style.suggestDisplayForTagName(A):"none"))}};dojo.style.isDisplayed=function(A){return(dojo.style.getComputedStyle(A,"display")!="none")};dojo.style.setVisibility=function(B,A){B=dojo.byId(B);if(B.style){B.style.visibility=(dojo.lang.isString(A)?A:(A?"visible":"hidden"))}};dojo.style.isVisible=function(A){return(dojo.style.getComputedStyle(A,"visibility")!="hidden")};dojo.style.toCoordinateArray=function(D,C){if(dojo.lang.isArray(D)){while(D.length<4){D.push(0)}while(D.length>4){D.pop()}var A=D}else{var B=dojo.byId(D);var A=[dojo.style.getAbsoluteX(B,C),dojo.style.getAbsoluteY(B,C),dojo.style.getInnerWidth(B),dojo.style.getInnerHeight(B)]}A.x=A[0];A.y=A[1];A.w=A[2];A.h=A[3];return A};dojo.provide("dojo.string.extras");dojo.string.paramString=function(E,D,C){for(var A in D){var B=new RegExp("\\%\\{"+A+"\\}","g");E=E.replace(B,D[A])}if(C){E=E.replace(/%\{([^\}\s]+)\}/g,"")}return E};dojo.string.capitalize=function(F){if(!dojo.lang.isString(F)){return""}if(arguments.length==0){F=this}var E=F.split(" ");var B="";var A=E.length;for(var C=0;C<A;C++){var D=E[C];D=D.charAt(0).toUpperCase()+D.substring(1,D.length);B+=D;if(C<A-1){B+=" "}}return new String(B)};dojo.string.isBlank=function(A){if(!dojo.lang.isString(A)){return true}return(dojo.string.trim(A).length==0)};dojo.string.encodeAscii=function(G){if(!dojo.lang.isString(G)){return G}var D="";var F=escape(G);var C,E=/%u([0-9A-F]{4})/i;while((C=F.match(E))){var B=Number("0x"+C[1]);var A=escape("&#"+B+";");D+=F.substring(0,C.index)+A;F=F.substring(C.index+C[0].length)}D+=F.replace(/\+/g,"%2B");return D};dojo.string.escape=function(C,D){var A=[];for(var B=1;B<arguments.length;B++){A.push(arguments[B])}switch(C.toLowerCase()){case"xml":case"html":case"xhtml":return dojo.string.escapeXml.apply(this,A);case"sql":return dojo.string.escapeSql.apply(this,A);case"regexp":case"regex":return dojo.string.escapeRegExp.apply(this,A);case"javascript":case"jscript":case"js":return dojo.string.escapeJavaScript.apply(this,A);case"ascii":return dojo.string.encodeAscii.apply(this,A);default:return D}};dojo.string.escapeXml=function(A,B){A=A.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!B){A=A.replace(/'/gm,"&#39;")}return A};dojo.string.escapeSql=function(A){return A.replace(/'/gm,"''")};dojo.string.escapeRegExp=function(A){return A.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r])/gm,"\\$1")};dojo.string.escapeJavaScript=function(A){return A.replace(/(["'\f\b\n\t\r])/gm,"\\$1")};dojo.string.summary=function(B,A){if(!A||B.length<=A){return B}else{return B.substring(0,A).replace(/\.+$/,"")+"..."}};dojo.string.endsWith=function(C,A,B){if(B){C=C.toLowerCase();A=A.toLowerCase()}if((C.length-A.length)<0){return false}return C.lastIndexOf(A)==C.length-A.length};dojo.string.endsWithAny=function(B){for(var A=1;A<arguments.length;A++){if(dojo.string.endsWith(B,arguments[A])){return true}}return false};dojo.string.startsWith=function(B,C,A){if(A){B=B.toLowerCase();C=C.toLowerCase()}return B.indexOf(C)==0};dojo.string.startsWithAny=function(B){for(var A=1;A<arguments.length;A++){if(dojo.string.startsWith(B,arguments[A])){return true}}return false};dojo.string.has=function(B){for(var A=1;A<arguments.length;A++){if(B.indexOf(arguments[A])>-1){return true}}return false};dojo.string.normalizeNewlines=function(B,A){if(A=="\n"){B=B.replace(/\r\n/g,"\n");B=B.replace(/\r/g,"\n")}else{if(A=="\r"){B=B.replace(/\r\n/g,"\r");B=B.replace(/\n/g,"\r")}else{B=B.replace(/([^\r])\n/g,"$1\r\n");B=B.replace(/\r([^\n])/g,"\r\n$1")}}return B};dojo.string.splitEscaped=function(E,D){var C=[];for(var A=0,B=0;A<E.length;A++){if(E.charAt(A)=="\\"){A++;continue}if(E.charAt(A)==D){C.push(E.substring(B,A));B=A+1}}C.push(E.substr(B));return C};dojo.provide("dojo.uri.Uri");dojo.uri=new function(){this.joinPath=function(){var A=[];for(var B=0;B<arguments.length;B++){A.push(arguments[B])}return A.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/")};this.dojoUri=function(A){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),A)};this.Uri=function(){var C=arguments[0];for(var E=1;E<arguments.length;E++){if(!arguments[E]){continue}var F=new dojo.uri.Uri(arguments[E].toString());var H=new dojo.uri.Uri(C.toString());if(F.path==""&&F.scheme==null&&F.authority==null&&F.query==null){if(F.fragment!=null){H.fragment=F.fragment}F=H}else{if(F.scheme==null){F.scheme=H.scheme;if(F.authority==null){F.authority=H.authority;if(F.path.charAt(0)!="/"){var I=H.path.substring(0,H.path.lastIndexOf("/")+1)+F.path;var B=I.split("/");for(var D=0;D<B.length;D++){if(B[D]=="."){if(D==B.length-1){B[D]=""}else{B.splice(D,1);D--}}else{if(D>0&&!(D==1&&B[0]=="")&&B[D]==".."&&B[D-1]!=".."){if(D==B.length-1){B.splice(D,1);B[D-1]=""}else{B.splice(D-1,2);D-=2}}}}F.path=B.join("/")}}}}C="";if(F.scheme!=null){C+=F.scheme+":"}if(F.authority!=null){C+="//"+F.authority}C+=F.path;if(F.query!=null){C+="?"+F.query}if(F.fragment!=null){C+="#"+F.fragment}}this.uri=C.toString();var G="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";var A=this.uri.match(new RegExp(G));this.scheme=A[2]||(A[1]?"":null);this.authority=A[4]||(A[3]?"":null);this.path=A[5];this.query=A[7]||(A[6]?"":null);this.fragment=A[9]||(A[8]?"":null);if(this.authority!=null){G="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";A=this.authority.match(new RegExp(G));this.user=A[3]||null;this.password=A[4]||null;this.host=A[5];this.port=A[7]||null}this.toString=function(){return this.uri}}};dojo.provide("dojo.html");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(A){dojo.debug(A);return false}};dojo.html.disableSelection=function(A){A=dojo.byId(A)||document.body;var B=dojo.render.html;if(B.mozilla){A.style.MozUserSelect="none"}else{if(B.safari){A.style.KhtmlUserSelect="none"}else{if(B.ie){A.unselectable="on"}else{return false}}}return true};dojo.html.enableSelection=function(A){A=dojo.byId(A)||document.body;var B=dojo.render.html;if(B.mozilla){A.style.MozUserSelect=""}else{if(B.safari){A.style.KhtmlUserSelect=""}else{if(B.ie){A.unselectable="off"}else{return false}}}return true};dojo.html.selectElement=function(B){B=dojo.byId(B);if(document.selection&&document.body.createTextRange){var A=document.body.createTextRange();A.moveToElementText(B);A.select()}else{if(window.getSelection){var C=window.getSelection();if(C.selectAllChildren){C.selectAllChildren(B)}}}};dojo.html.selectInputText=function(B){B=dojo.byId(B);if(document.selection&&document.body.createTextRange){var A=B.createTextRange();A.moveStart("character",0);A.moveEnd("character",B.value.length);A.select()}else{if(window.getSelection){var C=window.getSelection();B.setSelectionRange(0,B.value.length)}}B.focus()};dojo.html.isSelectionCollapsed=function(){if(document.selection){return document.selection.createRange().text==""}else{if(window.getSelection){var A=window.getSelection();if(dojo.lang.isString(A)){return A==""}else{return A.isCollapsed}}}};dojo.html.getEventTarget=function(A){if(!A){A=window.event||{}}if(A.srcElement){return A.srcElement}else{if(A.target){return A.target}}return null};dojo.html.getScrollTop=function(){return document.documentElement.scrollTop||document.body.scrollTop||0};dojo.html.getScrollLeft=function(){return document.documentElement.scrollLeft||document.body.scrollLeft||0};dojo.html.getDocumentWidth=function(){dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");return dojo.html.getViewportWidth()};dojo.html.getDocumentHeight=function(){dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");return dojo.html.getViewportHeight()};dojo.html.getDocumentSize=function(){dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");return dojo.html.getViewportSize()};dojo.html.getViewportWidth=function(){var B=0;if(window.innerWidth){B=window.innerWidth}if(dojo.exists(document,"documentElement.clientWidth")){var A=document.documentElement.clientWidth;if(!B||A&&A<B){B=A}return B}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 A=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()];A.w=A[0];A.h=A[1];return A};dojo.html.getScrollOffset=function(){var A=[0,0];if(window.pageXOffset||window.pageYOffset){A=[window.pageXOffset,window.pageYOffset]}else{if(dojo.exists(document,"documentElement.scrollTop")){A=[document.documentElement.scrollLeft,document.documentElement.scrollTop]}else{if(document.body){A=[document.body.scrollLeft,document.body.scrollTop]}}}A.x=A[0];A.y=A[1];return A};dojo.html.getParentOfType=function(B,A){dojo.deprecated("dojo.html.getParentOfType has been deprecated in favor of dojo.html.getParentByType*");return dojo.html.getParentByType(B,A)};dojo.html.getParentByType=function(C,B){var A=dojo.byId(C);B=B.toLowerCase();while((A)&&(A.nodeName.toLowerCase()!=B)){if(A==(document.body||document.documentElement)){return null}A=A.parentNode}return A};dojo.html.getAttribute=function(D,A){D=dojo.byId(D);if((!D)||(!D.getAttribute)){return null}var C=typeof A=="string"?A:new String(A);var B=D.getAttribute(C.toUpperCase());if((B)&&(typeof B=="string")&&(B!="")){return B}if(B&&B.value){return B.value}if((D.getAttributeNode)&&(D.getAttributeNode(C))){return(D.getAttributeNode(C)).value}else{if(D.getAttribute(C)){return D.getAttribute(C)}else{if(D.getAttribute(C.toLowerCase())){return D.getAttribute(C.toLowerCase())}}}return null};dojo.html.hasAttribute=function(B,A){B=dojo.byId(B);return dojo.html.getAttribute(B,A)?true:false};dojo.html.getClass=function(B){B=dojo.byId(B);if(!B){return""}var A="";if(B.className){A=B.className}else{if(dojo.html.hasAttribute(B,"class")){A=dojo.html.getAttribute(B,"class")}}return dojo.string.trim(A)};dojo.html.getClasses=function(A){A=dojo.byId(A);var B=dojo.html.getClass(A);return(B=="")?[]:B.split(/\s+/g)};dojo.html.hasClass=function(A,B){A=dojo.byId(A);return dojo.lang.inArray(dojo.html.getClasses(A),B)};dojo.html.prependClass=function(B,A){B=dojo.byId(B);if(!B){return false}A+=" "+dojo.html.getClass(B);return dojo.html.setClass(B,A)};dojo.html.addClass=function(B,A){B=dojo.byId(B);if(!B){return false}if(dojo.html.hasClass(B,A)){return false}A=dojo.string.trim(dojo.html.getClass(B)+" "+A);return dojo.html.setClass(B,A)};dojo.html.setClass=function(C,B){C=dojo.byId(C);if(!C){return false}var A=new String(B);try{if(typeof C.className=="string"){C.className=A}else{if(C.setAttribute){C.setAttribute("class",B);C.className=A}else{return false}}}catch(D){dojo.debug("dojo.html.setClass() failed",D)}return true};dojo.html.removeClass=function(E,D,G){E=dojo.byId(E);if(!E){return false}var D=dojo.string.trim(new String(D));try{var C=dojo.html.getClasses(E);var A=[];if(G){for(var B=0;B<C.length;B++){if(C[B].indexOf(D)==-1){A.push(C[B])}}}else{for(var B=0;B<C.length;B++){if(C[B]!=D){A.push(C[B])}}}dojo.html.setClass(E,A.join(" "))}catch(F){dojo.debug("dojo.html.removeClass() failed",F)}return true};dojo.html.replaceClass=function(B,C,A){B=dojo.byId(B);dojo.html.removeClass(B,A);dojo.html.addClass(B,C)};dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};dojo.html.getElementsByClass=function(E,L,G,J){L=dojo.byId(L);if(!L){L=document}var D=E.split(/\s+/g);var A=[];if(J!=1&&J!=2){J=0}var M=new RegExp("(\\s|^)(("+D.join(")|(")+"))(\\s|$)");if(!G){G="*"}var C=L.getElementsByTagName(G);var B,H=0;outer:while(B=C[H++]){var K=dojo.html.getClasses(B);if(K.length==0){continue outer}var I=0;for(var F=0;F<K.length;F++){if(M.test(K[F])){if(J==dojo.html.classMatchType.ContainsAny){A.push(B);continue outer}else{I++}}else{if(J==dojo.html.classMatchType.IsOnly){continue outer}}}if(I==D.length){if(J==dojo.html.classMatchType.IsOnly&&I==K.length){A.push(B)}else{if(J==dojo.html.classMatchType.ContainsAll){A.push(B)}}}}return A};dojo.html.getElementsByClassName=dojo.html.getElementsByClass;dojo.html.gravity=function(node,e){node=dojo.byId(node);var mousex=e.pageX||e.clientX+document.body.scrollLeft;var mousey=e.pageY||e.clientY+document.body.scrollTop;with(dojo.html){var nodecenterx=getAbsoluteX(node)+(getInnerWidth(node)/2);var nodecentery=getAbsoluteY(node)+(getInnerHeight(node)/2)}with(dojo.html.gravity){return((mousex<nodecenterx?WEST:EAST)|(mousey<nodecentery?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.overElement=function(element,e){element=dojo.byId(element);var mousex=e.pageX||e.clientX+document.body.scrollLeft;var mousey=e.pageY||e.clientY+document.body.scrollTop;with(dojo.html){var top=getAbsoluteY(element);var bottom=top+getInnerHeight(element);var left=getAbsoluteX(element);var right=left+getInnerWidth(element)}return(mousex>=left&&mousex<=right&&mousey>=top&&mousey<=bottom)};dojo.html.renderedTextContent=function(C){C=dojo.byId(C);var A="";if(C==null){return A}for(var B=0;B<C.childNodes.length;B++){switch(C.childNodes[B].nodeType){case 1:case 5:var F="unknown";try{F=dojo.style.getStyle(C.childNodes[B],"display")}catch(D){}switch(F){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":A+="\n";A+=dojo.html.renderedTextContent(C.childNodes[B]);A+="\n";break;case"none":break;default:if(C.childNodes[B].tagName&&C.childNodes[B].tagName.toLowerCase()=="br"){A+="\n"}else{A+=dojo.html.renderedTextContent(C.childNodes[B])}break}break;case 3:case 2:case 4:var G=C.childNodes[B].nodeValue;var H="unknown";try{H=dojo.style.getStyle(C,"text-transform")}catch(D){}switch(H){case"capitalize":G=dojo.string.capitalize(G);break;case"uppercase":G=G.toUpperCase();break;case"lowercase":G=G.toLowerCase();break;default:break}switch(H){case"nowrap":break;case"pre-wrap":break;case"pre-line":break;case"pre":break;default:G=G.replace(/\s+/," ");if(/\s$/.test(A)){G.replace(/^\s/,"")}break}A+=G;break;default:break}}return A};dojo.html.setActiveStyleSheet=function(D){var C=0,A,B=document.getElementsByTagName("link");while(A=B[C++]){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("title")){A.disabled=true;if(A.getAttribute("title")==D){A.disabled=false}}}};dojo.html.getActiveStyleSheet=function(){var C=0,A,B=document.getElementsByTagName("link");while(A=B[C++]){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("title")&&!A.disabled){return A.getAttribute("title")}}return null};dojo.html.getPreferredStyleSheet=function(){var C=0,A,B=document.getElementsByTagName("link");while(A=B[C++]){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(){dojo.deprecated("dojo.html.body","use document.body instead");return document.body||document.getElementsByTagName("body")[0]};dojo.html.createNodesFromText=function(D,C){if(C){D=dojo.string.trim(D)}var B=document.createElement("div");B.style.visibility="hidden";document.body.appendChild(B);var F="none";if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(D))){D="<table><tbody><tr>"+D+"</tr></tbody></table>";F="cell"}else{if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(D))){D="<table><tbody>"+D+"</tbody></table>";F="row"}else{if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(D))){D="<table>"+D+"</table>";F="section"}}}B.innerHTML=D;B.normalize();var G=null;switch(F){case"cell":G=B.getElementsByTagName("tr")[0];break;case"row":G=B.getElementsByTagName("tbody")[0];break;case"section":G=B.getElementsByTagName("table")[0];break;default:G=B;break}var E=[];for(var A=0;A<G.childNodes.length;A++){E.push(G.childNodes[A].cloneNode(true))}B.style.display="none";document.body.removeChild(B);return E};if(!dojo.evalObjPath("dojo.dom.createNodesFromText")){dojo.dom.createNodesFromText=function(){dojo.deprecated("dojo.dom.createNodesFromText","use dojo.html.createNodesFromText instead");return dojo.html.createNodesFromText.apply(dojo.html,arguments)}}dojo.html.isTag=function(B){B=dojo.byId(B);if(B&&B.tagName){var A=dojo.lang.map(dojo.lang.toArray(arguments,1),function(C){return String(C).toLowerCase()});return A[dojo.lang.find(B.tagName.toLowerCase(),A)]||""}return""};dojo.html.placeOnScreen=function(A,E,C,I,K){if(dojo.lang.isArray(E)){K=I;I=C;C=E[1];E=E[0]}if(!isNaN(I)){I=[Number(I),Number(I)]}else{if(!dojo.lang.isArray(I)){I=[0,0]}}var J=dojo.html.getScrollOffset();var G=dojo.html.getViewportSize();A=dojo.byId(A);var L=A.offsetWidth+I[0];var B=A.offsetHeight+I[1];if(K){E-=J.x;C-=J.y}var H=E+L;if(H>G.w){H=G.w-L}else{H=E}H=Math.max(I[0],H)+J.x;var F=C+B;if(F>G.h){F=G.h-B}else{F=C}F=Math.max(I[1],F)+J.y;A.style.left=H+"px";A.style.top=F+"px";var D=[H,F];D.x=H;D.y=F;return D};dojo.html.placeOnScreenPoint=function(A,E,C,J,M){if(dojo.lang.isArray(E)){M=J;J=C;C=E[1];E=E[0]}if(!isNaN(J)){J=[Number(J),Number(J)]}else{if(!dojo.lang.isArray(J)){J=[0,0]}}var K=dojo.html.getScrollOffset();var H=dojo.html.getViewportSize();A=dojo.byId(A);var F=A.style.display;A.style.display="";var L=dojo.style.getInnerWidth(A);var B=dojo.style.getInnerHeight(A);A.style.display=F;if(M){E-=K.x;C-=K.y}var I=-1,G=-1;if((E+J[0])+L<=H.w&&(C+J[1])+B<=H.h){I=(E+J[0]);G=(C+J[1])}if((I<0||G<0)&&(E-J[0])<=H.w&&(C+J[1])+B<=H.h){I=(E-J[0])-L;G=(C+J[1])}if((I<0||G<0)&&(E+J[0])+L<=H.w&&(C-J[1])<=H.h){I=(E+J[0]);G=(C-J[1])-B}if((I<0||G<0)&&(E-J[0])<=H.w&&(C-J[1])<=H.h){I=(E-J[0])-L;G=(C-J[1])-B}if(I<0||G<0||(I+L>H.w)||(G+B>H.h)){return dojo.html.placeOnScreen(A,E,C,J,M)}I+=K.x;G+=K.y;A.style.left=I+"px";A.style.top=G+"px";var D=[I,G];D.x=I;D.y=G;return D};dojo.html.BackgroundIframe=function(B){if(dojo.render.html.ie){var A="<iframe style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;z-index: -1; filter:Alpha(Opacity=\"0\");' >";this.iframe=document.createElement(A);if(B){B.appendChild(this.iframe);this.domNode=B}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){var A=dojo.style.getOuterWidth(this.domNode);var C=dojo.style.getOuterHeight(this.domNode);if(A==0||C==0){dojo.lang.setTimeout(this,this.onResized,50);return }var B=this.iframe.style;B.width=A+"px";B.height=C+"px"}},size:function(B){if(!this.iframe){return }coords=dojo.html.toCoordinateArray(B,true);var A=this.iframe.style;A.width=coords.w+"px";A.height=coords.h+"px";A.left=coords.x+"px";A.top=coords.y+"px"},setZIndex:function(A){if(!this.iframe){return }if(dojo.dom.isNode(A)){this.iframe.style.zIndex=dojo.html.getStyle(A,"z-index")-1}else{if(!isNaN(A)){this.iframe.style.zIndex=A}}},show:function(){if(!this.iframe){return }this.iframe.style.display="block"},hide:function(){if(!this.ie){return }var A=this.iframe.style;A.display="none"},remove:function(){dojo.dom.removeNode(this.iframe)}});dojo.provide("dojo.math.curves");dojo.math.curves={Line:function(C,A){this.start=C;this.end=A;this.dimensions=C.length;for(var B=0;B<C.length;B++){C[B]=Number(C[B])}for(var B=0;B<A.length;B++){A[B]=Number(A[B])}this.getValue=function(F){var E=new Array(this.dimensions);for(var D=0;D<this.dimensions;D++){E[D]=((this.end[D]-this.start[D])*F)+this.start[D]}return E};return this},Bezier:function(A){this.getValue=function(H){if(H>=1){return this.p[this.p.length-1]}if(H<=0){return this.p[0]}var J=new Array(this.p[0].length);for(var E=0;F<this.p[0].length;E++){J[E]=0}for(var F=0;F<this.p[0].length;F++){var K=0;var I=0;for(var G=0;G<this.p.length;G++){K+=this.p[G][F]*this.p[this.p.length-1][0]*dojo.math.bernstein(H,this.p.length,G)}for(var B=0;B<this.p.length;B++){I+=this.p[this.p.length-1][0]*dojo.math.bernstein(H,this.p.length,B)}J[F]=K/I}return J};this.p=A;return this},CatmullRom:function(A,B){this.getValue=function(J){var Q=J*(this.p.length-1);var K=Math.floor(Q);var D=Q-K;var O=K-1;if(O<0){O=0}var P=K;var N=K+1;if(N>=this.p.length){N=this.p.length-1}var L=K+2;if(L>=this.p.length){L=this.p.length-1}var R=D;var H=D*D;var F=D*D*D;var I=new Array(this.p[0].length);for(var M=0;M<this.p[0].length;M++){var G=(-this.c*this.p[O][M])+((2-this.c)*this.p[P][M])+((this.c-2)*this.p[N][M])+(this.c*this.p[L][M]);var E=(2*this.c*this.p[O][M])+((this.c-3)*this.p[P][M])+((3-2*this.c)*this.p[N][M])+(-this.c*this.p[L][M]);var C=(-this.c*this.p[O][M])+(this.c*this.p[N][M]);var S=this.p[P][M];I[M]=G*F+E*H+C*R+S}return I};if(!B){this.c=0.7}else{this.c=B}this.p=A;return this},Arc:function(G,D,C){var B=dojo.math.points.midpoint(G,D);var F=dojo.math.points.translate(dojo.math.points.invert(B),G);var A=Math.sqrt(Math.pow(F[0],2)+Math.pow(F[1],2));var E=dojo.math.radToDeg(Math.atan(F[1]/F[0]));if(F[0]<0){E-=90}else{E+=90}dojo.math.curves.CenteredArc.call(this,B,A,E,E+(C?-180:180))},CenteredArc:function(B,A,D,C){this.center=B;this.radius=A;this.start=D||0;this.end=C;this.getValue=function(G){var F=new Array(2);var E=dojo.math.degToRad(this.start+((this.end-this.start)*G));F[0]=this.center[0]+this.radius*Math.sin(E);F[1]=this.center[1]-this.radius*Math.cos(E);return F};return this},Circle:function(B,A){dojo.math.curves.CenteredArc.call(this,B,A,0,360);return this},Path:function(){var E=[];var D=[];var C=[];var A=0;this.add=function(G,F){if(F<0){dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0")}E.push(G);D.push(F);A+=F;B()};this.remove=function(G){for(var F=0;F<E.length;F++){if(E[F]==G){E.splice(F,1);A-=D.splice(F,1)[0];break}}B()};this.removeAll=function(){E=[];D=[];A=0};this.getValue=function(K){var I=false,H=0;for(var F=0;F<C.length;F++){var G=C[F];if(K>=G[0]&&K<G[1]){var J=(K-G[0])/G[2];H=E[F].getValue(J);I=true;break}}if(!I){H=E[E.length-1].getValue(1)}for(j=0;j<F;j++){H=dojo.math.points.translate(H,E[j].getValue(1))}return H};function B(){var I=0;for(var H=0;H<D.length;H++){var G=I+D[H]/A;var F=G-I;C[H]=[I,G,F];I=G}}return this}};dojo.provide("dojo.animation.AnimationEvent");dojo.animation.AnimationEvent=function(C,E,F,D,I,G,A,H,B){this.type=E;this.animation=C;this.coords=F;this.x=F[0];this.y=F[1];this.z=F[2];this.startTime=D;this.currentTime=I;this.endTime=G;this.duration=A;this.percent=H;this.fps=B};dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){var B=new Array(this.coords.length);for(var A=0;A<this.coords.length;A++){B[A]=Math.round(this.coords[A])}return B}});dojo.provide("dojo.animation.Animation");dojo.animation.Animation=function(F,E,C,A,D){if(dojo.lang.isArray(F)){F=new dojo.math.curves.Line(F[0],F[1])}this.curve=F;this.duration=E;this.repeatCount=A||0;this.rate=D||25;if(C){if(dojo.lang.isFunction(C.getValue)){this.accel=C}else{var B=0.35*C+0.5;this.accel=new dojo.math.curves.CatmullRom([[0],[B],[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(A){if(A){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 B=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}B.type="begin";if(typeof this.handler=="function"){this.handler(B)}if(typeof this.onBegin=="function"){this.onBegin(B)}}B.type="play";if(typeof this.handler=="function"){this.handler(B)}if(typeof this.onPlay=="function"){this.onPlay(B)}if(this._animSequence){this._animSequence._setCurrent(this)}this._cycle()},pause:function(){clearTimeout(this._timer);if(!this._active){return }this._paused=true;var A=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(A)}if(typeof this.onPause=="function"){this.onPause(A)}},playPause:function(){if(!this._active||this._paused){this.play()}else{this.pause()}},gotoPercent:function(B,A){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=B;if(A){this.play()}},stop:function(A){clearTimeout(this._timer);var B=this._percent/100;if(A){B=1}var C=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(B),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,Math.round(fps));if(typeof this.handler=="function"){this.handler(C)}if(typeof this.onStop=="function"){this.onStop(C)}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 C=new Date().valueOf();var A=(C-this._startTime)/(this._endTime-this._startTime);fps=1000/(C-this._lastFrame);this._lastFrame=C;if(A>=1){A=1;this._percent=100}else{this._percent=A*100}if(this.accel&&this.accel.getValue){A=this.accel.getValue(A)}var B=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(A),this._startTime,C,this._endTime,this.duration,this._percent,Math.round(fps));if(typeof this.handler=="function"){this.handler(B)}if(typeof this.onAnimate=="function"){this.onAnimate(B)}if(A<1){this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate)}else{B.type="end";this._active=false;if(typeof this.handler=="function"){this.handler(B)}if(typeof this.onEnd=="function"){this.onEnd(B)}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.provide("dojo.lang.extras");dojo.lang.setTimeout=function(E,B){var D=window,F=2;if(!dojo.lang.isFunction(E)){D=E;E=B;B=arguments[2];F++}if(dojo.lang.isString(E)){E=D[E]}var A=[];for(var C=F;C<arguments.length;C++){A.push(arguments[C])}return setTimeout(function(){E.apply(D,A)},B)};dojo.lang.getNameInObj=function(B,C){if(!B){B=dj_global}for(var A in B){if(B[A]===C){return new String(A)}}return null};dojo.lang.shallowCopy=function(C){var A={},B;for(B in C){if(dojo.lang.isUndefined(A[B])){A[B]=C[B]}}return A};dojo.lang.firstValued=function(){for(var A=0;A<arguments.length;A++){if(typeof arguments[A]!="undefined"){return arguments[A]}}return undefined};dojo.lang.evalDescriptor=function(F,C,B){var E=(C?C:dj_global);var D=F.split(".");var G=D.pop();var A="";while(D.length&&E){A=D.shift();E=(A in E?E[A]:(B?E[A]={}:null))}return{obj:E,prop:G}};dojo.lang.getObjPathValue=function(descriptor,context,create){with(dojo.lang.evalDescriptor(descriptor,context,create)){return(obj&&(prop in obj)?obj[prop]:(create?obj[prop]=undefined:undefined))}};dojo.lang.setObjPathValue=function(descriptor,value,context,nocreate){with(dojo.lang.evalDescriptor(descriptor,context,!nocreate)){if(obj&&(!nocreate||(prop in obj))){obj[prop]=value}}};dojo.provide("dojo.event");dojo.event=new function(){this.canTimeout=true;function A(D){var C=dojo.lang;var E={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(D.length>2)?D[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};switch(D.length){case 0:return ;case 1:return ;case 2:E.srcFunc=D[0];E.adviceFunc=D[1];break;case 3:if((C.isObject(D[0]))&&(C.isString(D[1]))&&(C.isString(D[2]))){E.adviceType="after";E.srcObj=D[0];E.srcFunc=D[1];E.adviceFunc=D[2]}else{if((C.isString(D[1]))&&(C.isString(D[2]))){E.srcFunc=D[1];E.adviceFunc=D[2]}else{if((C.isObject(D[0]))&&(C.isString(D[1]))&&(C.isFunction(D[2]))){E.adviceType="after";E.srcObj=D[0];E.srcFunc=D[1];var B=dojo.lang.nameAnonFunc(D[2],E.adviceObj);E.adviceFunc=B}else{if((C.isFunction(D[0]))&&(C.isObject(D[1]))&&(C.isString(D[2]))){E.adviceType="after";E.srcObj=dj_global;var B=dojo.lang.nameAnonFunc(D[0],E.srcObj);E.srcFunc=B;E.adviceObj=D[1];E.adviceFunc=D[2]}}}}break;case 4:if((C.isObject(D[0]))&&(C.isObject(D[2]))){E.adviceType="after";E.srcObj=D[0];E.srcFunc=D[1];E.adviceObj=D[2];E.adviceFunc=D[3]}else{if((C.isString(D[0]))&&(C.isString(D[1]))&&(C.isObject(D[2]))){E.adviceType=D[0];E.srcObj=dj_global;E.srcFunc=D[1];E.adviceObj=D[2];E.adviceFunc=D[3]}else{if((C.isString(D[0]))&&(C.isFunction(D[1]))&&(C.isObject(D[2]))){E.adviceType=D[0];E.srcObj=dj_global;var B=dojo.lang.nameAnonFunc(D[1],dj_global);E.srcFunc=B;E.adviceObj=D[2];E.adviceFunc=D[3]}else{if(C.isObject(D[1])){E.srcObj=D[1];E.srcFunc=D[2];E.adviceObj=dj_global;E.adviceFunc=D[3]}else{if(C.isObject(D[2])){E.srcObj=dj_global;E.srcFunc=D[1];E.adviceObj=D[2];E.adviceFunc=D[3]}else{E.srcObj=E.adviceObj=E.aroundObj=dj_global;E.srcFunc=D[1];E.adviceFunc=D[2];E.aroundFunc=D[3]}}}}}break;case 6:E.srcObj=D[1];E.srcFunc=D[2];E.adviceObj=D[3];E.adviceFunc=D[4];E.aroundFunc=D[5];E.aroundObj=dj_global;break;default:E.srcObj=D[1];E.srcFunc=D[2];E.adviceObj=D[3];E.adviceFunc=D[4];E.aroundObj=D[5];E.aroundFunc=D[6];E.once=D[7];E.delay=D[8];E.rate=D[9];E.adviceMsg=D[10];break}if((typeof E.srcFunc).toLowerCase()!="string"){E.srcFunc=dojo.lang.getNameInObj(E.srcObj,E.srcFunc)}if((typeof E.adviceFunc).toLowerCase()!="string"){E.adviceFunc=dojo.lang.getNameInObj(E.adviceObj,E.adviceFunc)}if((E.aroundObj)&&((typeof E.aroundFunc).toLowerCase()!="string")){E.aroundFunc=dojo.lang.getNameInObj(E.aroundObj,E.aroundFunc)}if(!E.srcObj){dojo.raise("bad srcObj for srcFunc: "+E.srcFunc)}if(!E.adviceObj){dojo.raise("bad adviceObj for adviceFunc: "+E.adviceFunc)}return E}this.connect=function(){if(arguments.length==1){var F=arguments[0]}else{var F=A(arguments)}if(dojo.lang.isArray(F.srcObj)&&F.srcObj!=""){var D={};for(var B in F){D[B]=F[B]}var G=[];dojo.lang.forEach(F.srcObj,function(H){if((dojo.render.html.capable)&&(dojo.lang.isString(H))){H=dojo.byId(H)}D.srcObj=H;G.push(dojo.event.connect.call(dojo.event,D))});return G}var C=dojo.event.MethodJoinPoint.getForMethod(F.srcObj,F.srcFunc);if(F.adviceFunc){var E=dojo.event.MethodJoinPoint.getForMethod(F.adviceObj,F.adviceFunc)}C.kwAddAdvice(F);return C};this.connectBefore=function(){var B=["before"];for(var C=0;C<arguments.length;C++){B.push(arguments[C])}return this.connect.apply(this,B)};this.connectAround=function(){var B=["around"];for(var C=0;C<arguments.length;C++){B.push(arguments[C])}return this.connect.apply(this,B)};this._kwConnectImpl=function(D,C){var E=(C)?"disconnect":"connect";if(typeof D.srcFunc=="function"){D.srcObj=D.srcObj||dj_global;var B=dojo.lang.nameAnonFunc(D.srcFunc,D.srcObj);D.srcFunc=B}if(typeof D.adviceFunc=="function"){D.adviceObj=D.adviceObj||dj_global;var B=dojo.lang.nameAnonFunc(D.adviceFunc,D.adviceObj);D.adviceFunc=B}return dojo.event[E]((D.type||D.adviceType||"after"),D.srcObj||dj_global,D.srcFunc,D.adviceObj||D.targetObj||dj_global,D.adviceFunc||D.targetFunc,D.aroundObj,D.aroundFunc,D.once,D.delay,D.rate,D.adviceMsg||false)};this.kwConnect=function(B){return this._kwConnectImpl(B,false)};this.disconnect=function(){var C=A(arguments);if(!C.adviceFunc){return }var B=dojo.event.MethodJoinPoint.getForMethod(C.srcObj,C.srcFunc);return B.removeAdvice(C.adviceObj,C.adviceFunc,C.adviceType,C.once)};this.kwDisconnect=function(B){return this._kwConnectImpl(B,true)}};dojo.event.MethodInvocation=function(B,D,C){this.jp_=B;this.object=D;this.args=[];for(var A=0;A<C.length;A++){this.args[A]=C[A]}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 C=this.jp_.around[this.around_index];var A=C[0]||dj_global;var B=C[1];return A[B].call(A,this)}};dojo.event.MethodJoinPoint=function(A,B){this.object=A||dj_global;this.methodname=B;this.methodfunc=this.object[B];this.before=[];this.after=[];this.around=[]};dojo.event.MethodJoinPoint.getForMethod=function(C,D){if(!C){C=dj_global}if(!C[D]){C[D]=function(){}}else{if((!dojo.lang.isFunction(C[D]))&&(!dojo.lang.isAlien(C[D]))){return null}}var F=D+"$joinpoint";var E=D+"$joinpoint$method";var B=C[F];if(!B){var A=false;if(dojo.event.browser){if((C.attachEvent)||(C.nodeType)||(C.addEventListener)){A=true;dojo.event.browser.addClobberNodeAttrs(C,[F,E,D])}}C[E]=C[D];B=C[F]=new dojo.event.MethodJoinPoint(C,E);C[D]=function(){var I=[];if((A)&&(!arguments.length)){var H=null;try{if(C.ownerDocument){H=C.ownerDocument.parentWindow.event}else{if(C.documentElement){H=C.documentElement.ownerDocument.parentWindow.event}else{H=window.event}}}catch(J){H=window.event}if(H){I.push(dojo.event.browser.fixEvent(H,this))}}else{for(var G=0;G<arguments.length;G++){if((G==0)&&(A)&&(dojo.event.browser.isEvent(arguments[G]))){I.push(dojo.event.browser.fixEvent(arguments[G],this))}else{I.push(arguments[G])}}}return B.run.apply(B,I)}}return B};dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){this.object[this.methodname]=this.methodfunc},run:function(){var F=this.object||dj_global;var E=arguments;var D=[];for(var B=0;B<E.length;B++){D[B]=E[B]}var G=function(I){if(!I){dojo.debug("Null argument to unrollAdvice()");return }var O=I[0]||dj_global;var J=I[1];if(!O[J]){dojo.raise('function "'+J+'" does not exist on "'+O+'"')}var Q=I[2]||dj_global;var P=I[3];var K=I[6];var M;var T={args:[],jp_:this,object:F,proceed:function(){return O[J].apply(O,T.args)}};T.args=D;var N=parseInt(I[4]);var R=((!isNaN(N))&&(I[4]!==null)&&(typeof I[4]!="undefined"));if(I[5]){var S=parseInt(I[5]);var V=new Date();var H=false;if((I.last)&&((V-I.last)<=S)){if(dojo.event.canTimeout){if(I.delayTimer){clearTimeout(I.delayTimer)}var L=parseInt(S*2);var U=dojo.lang.shallowCopy(I);I.delayTimer=setTimeout(function(){U[5]=0;G(U)},L)}return }else{I.last=V}}if(P){Q[P].call(Q,T)}else{if((R)&&((dojo.render.html)||(dojo.render.svg))){dj_global.setTimeout(function(){if(K){O[J].call(O,T)}else{O[J].apply(O,E)}},N)}else{if(K){O[J].call(O,T)}else{O[J].apply(O,E)}}}};if(this.before.length>0){dojo.lang.forEach(this.before,G,true)}var A;if(this.around.length>0){var C=new dojo.event.MethodInvocation(this,F,E);A=C.proceed()}else{if(this.methodfunc){A=this.object[this.methodname].apply(this.object,E)}}if(this.after.length>0){dojo.lang.forEach(this.after,G,true)}return(this.methodfunc)?A:null},getArr:function(B){var A=this.after;if((typeof B=="string")&&(B.indexOf("before")!=-1)){A=this.before}else{if(B=="around"){A=this.around}}return A},kwAddAdvice:function(A){this.addAdvice(A.adviceObj,A.adviceFunc,A.aroundObj,A.aroundFunc,A.adviceType,A.precedence,A.once,A.delay,A.rate,A.adviceMsg)},addAdvice:function(A,J,L,B,H,C,D,F,I,K){var G=this.getArr(H);if(!G){dojo.raise("bad this: "+this)}var E=[A,J,L,B,F,I,K];if(D){if(this.hasAdvice(A,J,H,G)>=0){return }}if(C=="first"){G.unshift(E)}else{G.push(E)}},hasAdvice:function(E,C,D,B){if(!B){B=this.getArr(D)}var F=-1;for(var A=0;A<B.length;A++){if((B[A][0]==E)&&(B[A][1]==C)){F=A}}return F},removeAdvice:function(E,B,D,C){var A=this.getArr(D);var F=this.hasAdvice(E,B,D,A);if(F==-1){return false}while(F!=-1){A.splice(F,1);if(C){break}F=this.hasAdvice(E,B,D,A)}return true}});dojo.provide("dojo.event.topic");dojo.event.topic=new function(){this.topics={};this.getTopic=function(A){if(!this.topics[A]){this.topics[A]=new this.TopicImpl(A)}return this.topics[A]};this.registerPublisher=function(A,C,B){var A=this.getTopic(A);A.registerPublisher(C,B)};this.subscribe=function(A,C,B){var A=this.getTopic(A);A.subscribe(C,B)};this.unsubscribe=function(A,C,B){var A=this.getTopic(A);A.unsubscribe(C,B)};this.publish=function(C,D){var C=this.getTopic(C);var B=[];if(arguments.length==2&&(dojo.lang.isArray(D)||D.callee)){B=D}else{var B=[];for(var A=1;A<arguments.length;A++){B.push(arguments[A])}}C.sendMessage.apply(C,B)}};dojo.event.topic.TopicImpl=function(B){this.topicName=B;var A=this;A.subscribe=function(D,C){var E=C||D;var F=(!C)?dj_global:D;dojo.event.kwConnect({srcObj:A,srcFunc:"sendMessage",adviceObj:F,adviceFunc:E})};A.unsubscribe=function(D,C){var E=(!C)?D:C;var F=(!C)?null:D;dojo.event.kwDisconnect({srcObj:A,srcFunc:"sendMessage",adviceObj:F,adviceFunc:E})};A.registerPublisher=function(D,C){dojo.event.connect(D,C,A,"sendMessage")};A.sendMessage=function(C){}};dojo.provide("dojo.event.browser");dojo_ie_clobber=new function(){this.clobberNodes=[];function A(B,D){try{B[D]=null}catch(C){}try{delete B[D]}catch(C){}try{B.removeAttribute(D)}catch(C){}}this.clobber=function(J){var E;var H;if(J){H=J.all||J.getElementsByTagName("*");E=[J];for(var I=0;I<H.length;I++){if(H[I]["__doClobber__"]){E.push(H[I])}}}else{try{window.onload=null}catch(F){}E=(this.clobberNodes.length)?this.clobberNodes:document.all}H=null;var G={};for(var D=E.length-1;D>=0;D=D-1){var B=E[D];if(B.__clobberAttrs__){for(var C=0;C<B.__clobberAttrs__.length;C++){A(B,B.__clobberAttrs__[C])}A(B,"__clobberAttrs__");A(B,"__doClobber__")}}E=null}};if(dojo.render.html.ie){window.onunload=function(){dojo_ie_clobber.clobber();try{if((dojo.widget)&&(dojo.widget.manager)){dojo.widget.manager.destroyAll()}}catch(A){}try{window.onload=null}catch(A){}try{window.onunload=null}catch(A){}dojo_ie_clobber.clobberNodes=[]}}dojo.event.browser=new function(){var B=0;this.clean=function(C){if(dojo.render.html.ie){dojo_ie_clobber.clobber(C)}};this.addClobberNode=function(C){if(!C.__doClobber__){C.__doClobber__=true;dojo_ie_clobber.clobberNodes.push(C);C.__clobberAttrs__=[]}};this.addClobberNodeAttrs=function(E,D){this.addClobberNode(E);for(var C=0;C<D.length;C++){E.__clobberAttrs__.push(D[C])}};this.removeListener=function(E,F,D,C){if(!C){var C=false}F=F.toLowerCase();if(F.substr(0,2)=="on"){F=F.substr(2)}if(E.removeEventListener){E.removeEventListener(F,D,C)}};this.addListener=function(G,I,D,C,H){if(!G){return }if(!C){var C=false}I=I.toLowerCase();if(I.substr(0,2)!="on"){I="on"+I}if(!H){var F=function(J){if(!J){J=window.event}var K=D(dojo.event.browser.fixEvent(J,this));if(C){dojo.event.browser.stopEvent(J)}return K}}else{F=D}if(G.addEventListener){G.addEventListener(I.substr(2),F,C);return F}else{if(typeof G[I]=="function"){var E=G[I];G[I]=function(J){E(J);return F(J)}}else{G[I]=F}if(dojo.render.html.ie){this.addClobberNodeAttrs(G,[I])}return F}};this.isEvent=function(C){return(typeof C!="undefined")&&(typeof Event!="undefined")&&(C.eventPhase)};this.currentEvent=null;this.callListener=function(D,C){if(typeof D!="function"){dojo.raise("listener not a function: "+D)}dojo.event.browser.currentEvent.currentTarget=C;return D.call(C,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 A in this.keys){this.revKeys[this.keys[A]]=A}this.fixEvent=function(C,E){if((!C)&&(window.event)){var C=window.event}if((C.type)&&(C.type.indexOf("key")==0)){C.keys=this.revKeys;for(var D in this.keys){C[D]=this.keys[D]}if((dojo.render.html.ie)&&(C.type=="keypress")){C.charCode=C.keyCode}}if(dojo.render.html.ie){if(!C.target){C.target=C.srcElement}if(!C.currentTarget){C.currentTarget=(E?E:C.srcElement)}if(!C.layerX){C.layerX=C.offsetX}if(!C.layerY){C.layerY=C.offsetY}if(C.fromElement){C.relatedTarget=C.fromElement}if(C.toElement){C.relatedTarget=C.toElement}this.currentEvent=C;C.callListener=this.callListener;C.stopPropagation=this.stopPropagation;C.preventDefault=this.preventDefault}return C};this.stopEvent=function(C){if(window.event){C.returnValue=false;C.cancelBubble=true}else{C.preventDefault();C.stopPropagation()}}};dojo.hostenv.conditionalLoadModule({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});dojo.hostenv.moduleLoaded("dojo.event.*");dojo.provide("dojo.fx.html");dojo.fx.duration=300;dojo.fx.html._makeFadeable=function(A){if(dojo.render.html.ie){if((A.style.zoom.length==0)&&(dojo.style.getStyle(A,"zoom")=="normal")){A.style.zoom="1"}if((A.style.width.length==0)&&(dojo.style.getStyle(A,"width")=="auto")){A.style.width="auto"}}};dojo.fx.html.fadeOut=function(B,C,D,A){return dojo.fx.html.fade(B,C,dojo.style.getOpacity(B),0,D,A)};dojo.fx.html.fadeIn=function(B,C,D,A){return dojo.fx.html.fade(B,C,dojo.style.getOpacity(B),1,D,A)};dojo.fx.html.fadeHide=function(B,C,D,A){B=dojo.byId(B);if(!C){C=150}return dojo.fx.html.fadeOut(B,C,function(E){E.style.display="none";if(typeof D=="function"){D(E)}})};dojo.fx.html.fadeShow=function(B,C,D,A){B=dojo.byId(B);if(!C){C=150}B.style.display="block";return dojo.fx.html.fade(B,C,0,1,D,A)};dojo.fx.html.fade=function(D,F,C,B,G,A){D=dojo.byId(D);dojo.fx.html._makeFadeable(D);var E=new dojo.animation.Animation(new dojo.math.curves.Line([C],[B]),F||dojo.fx.duration,0);dojo.event.connect(E,"onAnimate",function(H){dojo.style.setOpacity(D,H.x)});if(G){dojo.event.connect(E,"onEnd",function(H){G(D,E)})}if(!A){E.play(true)}return E};dojo.fx.html.slideTo=function(C,D,A,I,F){if(!dojo.lang.isNumber(D)){var E=D;D=A;A=E}C=dojo.byId(C);var H=C.offsetTop;var B=C.offsetLeft;var G=dojo.style.getComputedStyle(C,"position");if(G=="relative"||G=="static"){H=parseInt(dojo.style.getComputedStyle(C,"top"))||0;B=parseInt(dojo.style.getComputedStyle(C,"left"))||0}return dojo.fx.html.slide(C,D,[B,H],A,I,F)};dojo.fx.html.slideBy=function(B,C,H,I,E){if(!dojo.lang.isNumber(C)){var D=C;C=H;H=D}B=dojo.byId(B);var G=B.offsetTop;var A=B.offsetLeft;var F=dojo.style.getComputedStyle(B,"position");if(F=="relative"||F=="static"){G=parseInt(dojo.style.getComputedStyle(B,"top"))||0;A=parseInt(dojo.style.getComputedStyle(B,"left"))||0}return dojo.fx.html.slideTo(B,C,[A+H[0],G+H[1]],I,E)};dojo.fx.html.slide=function(node,duration,startCoords,endCoords,callback,dontPlay){if(!dojo.lang.isNumber(duration)){var tmp=duration;duration=endCoords;endCoords=startCoords;startCoords=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(startCoords,endCoords),duration||dojo.fx.duration,0);dojo.event.connect(anim,"onAnimate",function(e){with(node.style){left=e.x+"px";top=e.y+"px"}});if(callback){dojo.event.connect(anim,"onEnd",function(e){callback(node,anim)})}if(!dontPlay){anim.play(true)}return anim};dojo.fx.html.colorFadeIn=function(A,C,I,G,L,H){if(!dojo.lang.isNumber(C)){var F=C;C=I;I=F}A=dojo.byId(A);var D=dojo.style.getBackgroundColor(A);var E=dojo.style.getStyle(A,"background-color").toLowerCase();var K=E=="transparent"||E=="rgba(0, 0, 0, 0)";while(D.length>3){D.pop()}var J=new dojo.graphics.color.Color(I).toRgb();var B=dojo.fx.html.colorFade(A,C||dojo.fx.duration,I,D,L,true);dojo.event.connect(B,"onEnd",function(M){if(K){A.style.backgroundColor="transparent"}});if(G>0){A.style.backgroundColor="rgb("+J.join(",")+")";if(!H){setTimeout(function(){B.play(true)},G)}}else{if(!H){B.play(true)}}return B};dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;dojo.fx.html.colorFadeOut=function(A,D,B,G,J,H){if(!dojo.lang.isNumber(D)){var F=D;D=B;B=F}A=dojo.byId(A);var E=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(A)).toRgb();var I=new dojo.graphics.color.Color(B).toRgb();var C=dojo.fx.html.colorFade(A,D||dojo.fx.duration,E,I,J,G>0||H);if(G>0){A.style.backgroundColor="rgb("+E.join(",")+")";if(!H){setTimeout(function(){C.play(true)},G)}}return C};dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;dojo.fx.html.colorFade=function(B,E,I,C,J,G){if(!dojo.lang.isNumber(E)){var F=E;E=C;C=I;I=F}B=dojo.byId(B);var H=new dojo.graphics.color.Color(I).toRgb();var A=new dojo.graphics.color.Color(C).toRgb();var D=new dojo.animation.Animation(new dojo.math.curves.Line(H,A),E||dojo.fx.duration,0);dojo.event.connect(D,"onAnimate",function(K){B.style.backgroundColor="rgb("+K.coordsAsInts().join(",")+")"});if(J){dojo.event.connect(D,"onEnd",function(K){J(B,D)})}if(!G){D.play(true)}return D};dojo.fx.html.wipeIn=function(B,D,F,A){B=dojo.byId(B);var E=dojo.style.getStyle(B,"overflow");if(E=="visible"){B.style.overflow="hidden"}B.style.height=0;dojo.style.show(B);var C=dojo.fx.html.wipe(B,D,0,B.scrollHeight,null,true);dojo.event.connect(C,"onEnd",function(){B.style.overflow=E;B.style.height="auto";if(F){F(B,C)}});if(!A){C.play()}return C};dojo.fx.html.wipeOut=function(B,D,F,A){B=dojo.byId(B);var E=dojo.style.getStyle(B,"overflow");if(E=="visible"){B.style.overflow="hidden"}var C=dojo.fx.html.wipe(B,D,B.offsetHeight,0,null,true);dojo.event.connect(C,"onEnd",function(){dojo.style.hide(B);B.style.overflow=E;if(F){F(B,C)}});if(!A){C.play()}return C};dojo.fx.html.wipe=function(D,F,B,C,G,A){D=dojo.byId(D);var E=new dojo.animation.Animation([[B],[C]],F||dojo.fx.duration,0);dojo.event.connect(E,"onAnimate",function(H){D.style.height=H.x+"px"});dojo.event.connect(E,"onEnd",function(){if(G){G(D,E)}});if(!A){E.play()}return E};dojo.fx.html.wiper=function(B,A){this.node=dojo.byId(B);if(A){dojo.event.connect(dojo.byId(A),"onclick",this,"toggle")}};dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){if(!this._anim){var A="wipe"+(dojo.style.isVisible(this.node)?"Hide":"Show");this._anim=dojo.fx[A](this.node,this.duration,dojo.lang.hitch(this,"_callback"))}},_callback:function(){this._anim=null}});dojo.fx.html.explode=function(start,endNode,duration,callback,dontPlay){var startCoords=dojo.style.toCoordinateArray(start);var outline=document.createElement("div");with(outline.style){position="absolute";border="1px solid black";display="none"}document.body.appendChild(outline);endNode=dojo.byId(endNode);with(endNode.style){visibility="hidden";display="block"}var endCoords=dojo.style.toCoordinateArray(endNode);with(endNode.style){display="none";visibility="visible"}var anim=new dojo.animation.Animation(new dojo.math.curves.Line(startCoords,endCoords),duration||dojo.fx.duration,0);dojo.event.connect(anim,"onBegin",function(e){outline.style.display="block"});dojo.event.connect(anim,"onAnimate",function(e){with(outline.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(){endNode.style.display="block";outline.parentNode.removeChild(outline);if(callback){callback(endNode,anim)}});if(!dontPlay){anim.play()}return anim};dojo.fx.html.implode=function(startNode,end,duration,callback,dontPlay){var startCoords=dojo.style.toCoordinateArray(startNode);var endCoords=dojo.style.toCoordinateArray(end);startNode=dojo.byId(startNode);var outline=document.createElement("div");with(outline.style){position="absolute";border="1px solid black";display="none"}document.body.appendChild(outline);var anim=new dojo.animation.Animation(new dojo.math.curves.Line(startCoords,endCoords),duration||dojo.fx.duration,0);dojo.event.connect(anim,"onBegin",function(e){startNode.style.display="none";outline.style.display="block"});dojo.event.connect(anim,"onAnimate",function(e){with(outline.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(){outline.parentNode.removeChild(outline);if(callback){callback(startNode,anim)}});if(!dontPlay){anim.play()}return anim};dojo.fx.html.Exploder=function(I,D){I=dojo.byId(I);D=dojo.byId(D);var E=this;this.waitToHide=500;this.timeToShow=100;this.waitToShow=200;this.timeToHide=70;this.autoShow=false;this.autoHide=false;var B=null;var H=null;var G=null;var C=null;var F=null;var A=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(G);G=setTimeout(E.show,E.waitToShow)};this.show=function(){clearTimeout(G);clearTimeout(C);if((H&&H.status()=="playing")||(B&&B.status()=="playing")||E.showing){return }if(typeof E.onBeforeExplode=="function"){E.onBeforeExplode(I,D)}B=dojo.fx.html.explode(I,D,E.timeToShow,function(J){E.showing=true;if(typeof E.onAfterExplode=="function"){E.onAfterExplode(I,D)}});if(typeof E.onExploding=="function"){dojo.event.connect(B,"onAnimate",this,"onExploding")}};this.timeHide=function(){clearTimeout(G);clearTimeout(C);if(E.showing){C=setTimeout(E.hide,E.waitToHide)}};this.hide=function(){clearTimeout(G);clearTimeout(C);if(B&&B.status()=="playing"){return }E.showing=false;if(typeof E.onBeforeImplode=="function"){E.onBeforeImplode(I,D)}H=dojo.fx.html.implode(D,I,E.timeToHide,function(J){if(typeof E.onAfterImplode=="function"){E.onAfterImplode(I,D)}});if(typeof E.onImploding=="function"){dojo.event.connect(H,"onAnimate",this,"onImploding")}};dojo.event.connect(I,"onclick",function(J){if(E.showing){E.hide()}else{E.show()}});dojo.event.connect(I,"onmouseover",function(J){if(E.autoShow){E.timeShow()}});dojo.event.connect(I,"onmouseout",function(J){if(E.autoHide){E.timeHide()}});dojo.event.connect(D,"onmouseover",function(J){clearTimeout(C)});dojo.event.connect(D,"onmouseout",function(J){if(E.autoHide){E.timeHide()}});dojo.event.connect(document.documentElement||document.body,"onclick",function(J){function K(M,L){while(M){if(M==L){return true}M=M.parentNode}return false}if(E.autoHide&&E.showing&&!K(J.target,D)&&!K(J.target,I)){E.hide()}});return this};dojo.fx.html.toggle={};dojo.fx.html.toggle.plain={show:function(B,C,A,D){dojo.style.show(B);if(dojo.lang.isFunction(D)){D()}},hide:function(B,C,A,D){dojo.style.hide(B);if(dojo.lang.isFunction(D)){D()}}};dojo.fx.html.toggle.fade={show:function(B,C,A,D){dojo.fx.html.fadeShow(B,C,D)},hide:function(B,C,A,D){dojo.fx.html.fadeHide(B,C,D)}};dojo.fx.html.toggle.wipe={show:function(B,C,A,D){dojo.fx.html.wipeIn(B,C,D)},hide:function(B,C,A,D){dojo.fx.html.wipeOut(B,C,D)}};dojo.fx.html.toggle.explode={show:function(B,C,A,D){dojo.fx.html.explode(A||[0,0,0,0],B,C,D)},hide:function(B,C,A,D){dojo.fx.html.implode(B,A||[0,0,0,0],C,D)}};dojo.lang.mixin(dojo.fx,dojo.fx.html);dojo.provide("dojo.io.IO");dojo.io.transports=[];dojo.io.hdlrFuncNames=["load","error","timeout"];dojo.io.Request=function(B,A,D,C){if((arguments.length==1)&&(arguments[0].constructor==Object)){this.fromKwArgs(arguments[0])}else{this.url=B;if(A){this.mimetype=A}if(D){this.transport=D}if(arguments.length>=4){this.changeUrl=C}}};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(B,C,A){},error:function(B,A){},timeout:function(A){},handle:function(){},timeoutSeconds:0,abort:function(){},fromKwArgs:function(B){if(B.url){B.url=B.url.toString()}if(B.formNode){B.formNode=dojo.byId(B.formNode)}if(!B.method&&B.formNode&&B.formNode.method){B.method=B.formNode.method}if(!B.handle&&B.handler){B.handle=B.handler}if(!B.load&&B.loaded){B.load=B.loaded}if(!B.changeUrl&&B.changeURL){B.changeUrl=B.changeURL}B.encoding=dojo.lang.firstValued(B.encoding,djConfig.bindEncoding,"");B.sendTransport=dojo.lang.firstValued(B.sendTransport,djConfig.ioSendTransport,false);var D=dojo.lang.isFunction;for(var A=0;A<dojo.io.hdlrFuncNames.length;A++){var C=dojo.io.hdlrFuncNames[A];if(D(B[C])){continue}if(D(B.handle)){B[C]=B.handle}}dojo.lang.mixin(this,B)}});dojo.io.Error=function(C,B,A){this.message=C;this.type=B||"unknown";this.number=A||0};dojo.io.transports.addTransport=function(A){this.push(A);this[A]=dojo.io[A]};dojo.io.bind=function(D){if(!(D instanceof dojo.io.Request)){try{D=new dojo.io.Request(D)}catch(E){dojo.debug(E)}}var C="";if(D.transport){C=D.transport;if(!this[C]){return D}}else{for(var A=0;A<dojo.io.transports.length;A++){var B=dojo.io.transports[A];if((this[B])&&(this[B].canHandle(D))){C=B}}if(C==""){return D}}this[C].bind(D);D.bindSuccess=true;return D};dojo.io.queueBind=function(A){if(!(A instanceof dojo.io.Request)){try{A=new dojo.io.Request(A)}catch(B){dojo.debug(B)}}var C=A.load;A.load=function(){dojo.io._queueBindInFlight=false;var E=C.apply(this,arguments);dojo.io._dispatchNextQueueBind();return E};var D=A.error;A.error=function(){dojo.io._queueBindInFlight=false;var E=D.apply(this,arguments);dojo.io._dispatchNextQueueBind();return E};dojo.io._bindQueue.push(A);dojo.io._dispatchNextQueueBind();return A};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(F,D){var E=new Object();var B="";var C=/utf/i.test(D||"")?encodeURIComponent:dojo.string.encodeAscii;for(var A in F){if(!E[A]){B+=C(A)+"="+C(F[A])+"&"}}return B};dojo.io.setIFrameSrc=function(C,F,B){try{var D=dojo.render.html;if(!B){if(D.safari){C.location=F}else{frames[C.name].location=F}}else{var A;if(D.ie){A=C.contentWindow.document}else{if(D.moz){A=C.contentWindow}else{if(D.safari){A=C.document}}}A.location.replace(F)}}catch(E){dojo.debug(E);dojo.debug("setIFrameSrc: "+E)}};dojo.provide("dojo.undo.browser");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){}dojo.undo.browser={initialHref:function(){try{return window.location.href}catch(A){return""}}(),initialHash:function(){try{return window.location.hash}catch(A){return""}}(),moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(A){this.initialState={url:this.initialHref,kwArgs:A,urlHash:this.initialHash}},addToHistory:function(B){var E=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((!B.changeUrl)||(dojo.render.html.ie)){var A=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();this.moveForward=true;dojo.io.setIFrameSrc(this.historyIframe,A,false)}if(B.changeUrl){this.changingUrl=true;E="#"+((B.changeUrl!==true)?B.changeUrl:(new Date()).getTime());setTimeout("window.location.href = '"+E+"'; dojo.undo.browser.changingUrl = false;",1);this.bookmarkAnchor.href=E;if(dojo.render.html.ie){var G=B.back||B.backButton||B.handle;var F=function(H){if(window.location.hash!=""){setTimeout("window.location.href = '"+E+"';",1)}G.apply(this,[H])};if(B.back){B.back=F}else{if(B.backButton){B.backButton=F}else{if(B.handle){B.handle=F}}}this.forwardStack=[];var D=B.forward||B.forwardButton||B.handle;var C=function(H){if(window.location.hash!=""){window.location.href=E}if(D){D.apply(this,[H])}};if(B.forward){B.forward=C}else{if(B.forwardButton){B.forwardButton=C}else{if(B.handle){B.handle=C}}}}else{if(dojo.render.html.moz){if(!this.locationTimer){this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200)}}}}this.historyStack.push({url:A,kwArgs:B,urlHash:E})},checkLocation:function(){if(!this.changingUrl){var A=this.historyStack.length;if((window.location.hash==this.initialHash)||(window.location.href==this.initialHref)&&(A==1)){this.handleBackButton();return }if(this.forwardStack.length>0){if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){this.handleForwardButton();return }}if((A>=2)&&(this.historyStack[A-2])){if(this.historyStack[A-2].urlHash==window.location.hash){this.handleBackButton();return }}}},iframeLoaded:function(A,C){var B=this._getUrlQuery(C.href);if(B==null){if(this.historyStack.length==1){this.handleBackButton()}return }if(this.moveForward){this.moveForward=false;return }if(this.historyStack.length>=2&&B==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){this.handleBackButton()}else{if(this.forwardStack.length>0&&B==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){this.handleForwardButton()}}},handleBackButton:function(){var B=this.historyStack.pop();if(!B){return }var A=this.historyStack[this.historyStack.length-1];if(!A&&this.historyStack.length==0){A=this.initialState}if(A){if(A.kwArgs.back){A.kwArgs.back()}else{if(A.kwArgs.backButton){A.kwArgs.backButton()}else{if(A.kwArgs.handle){A.kwArgs.handle("back")}}}}this.forwardStack.push(B)},handleForwardButton:function(){var A=this.forwardStack.pop();if(!A){return }if(A.kwArgs.forward){A.kwArgs.forward()}else{if(A.kwArgs.forwardButton){A.kwArgs.forwardButton()}else{if(A.kwArgs.handle){A.kwArgs.handle("forward")}}}this.historyStack.push(A)},_getUrlQuery:function(B){var A=B.split("?");if(A.length<2){return null}else{return A[1]}}};dojo.provide("dojo.io.BrowserIO");dojo.io.checkChildrenForFile=function(B){var C=false;var A=B.getElementsByTagName("input");dojo.lang.forEach(A,function(D){if(C){return }if(D.getAttribute("type")=="file"){C=true}});return C};dojo.io.formHasFile=function(A){return dojo.io.checkChildrenForFile(A)};dojo.io.updateNode=function(B,C){B=dojo.byId(B);var A=C;if(dojo.lang.isString(C)){A={url:C}}A.mimetype="text/html";A.load=function(D,F,E){while(B.firstChild){if(dojo.event){try{dojo.event.browser.clean(B.firstChild)}catch(E){}}B.removeChild(B.firstChild)}B.innerHTML=F};dojo.io.bind(A)};dojo.io.formFilter=function(B){var A=(B.type||"").toLowerCase();return !B.disabled&&B.name&&!dojo.lang.inArray(A,["file","submit","image","reset","button"])};dojo.io.encodeForm=function(A,C,K){if((!A)||(!A.tagName)||(!A.tagName.toLowerCase()=="form")){dojo.raise("Attempted to encode a non-form element.")}if(!K){K=dojo.io.formFilter}var E=/utf/i.test(C||"")?encodeURIComponent:dojo.string.encodeAscii;var L=[];for(var F=0;F<A.elements.length;F++){var H=A.elements[F];if(!H||H.tagName.toLowerCase()=="fieldset"||!K(H)){continue}var B=E(H.name);var I=H.type.toLowerCase();if(I=="select-multiple"){for(var D=0;D<H.options.length;D++){if(H.options[D].selected){L.push(B+"="+E(H.options[D].value))}}}else{if(dojo.lang.inArray(I,["radio","checkbox"])){if(H.checked){L.push(B+"="+E(H.value))}}else{L.push(B+"="+E(H.value))}}}var G=A.getElementsByTagName("input");for(var F=0;F<G.length;F++){var J=G[F];if(J.type.toLowerCase()=="image"&&J.form==A&&K(J)){var B=E(J.name);L.push(B+"="+E(J.value));L.push(B+".x=0");L.push(B+".y=0")}}return L.join("&")+"&"};dojo.io.FormBind=function(A){this.bindArgs={};if(A&&A.formNode){this.init(A)}else{if(A){this.init({formNode:A})}}};dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(C){var F=dojo.byId(C.formNode);if(!F||!F.tagName||F.tagName.toLowerCase()!="form"){throw new Error("FormBind: Couldn't apply, invalid form")}else{if(this.form==F){return }else{if(this.form){throw new Error("FormBind: Already applied to a form")}}}dojo.lang.mixin(this.bindArgs,C);this.form=F;this.connect(F,"onsubmit","submit");for(var D=0;D<F.elements.length;D++){var E=F.elements[D];if(E&&E.type&&dojo.lang.inArray(E.type.toLowerCase(),["submit","button"])){this.connect(E,"onclick","click")}}var A=F.getElementsByTagName("input");for(var D=0;D<A.length;D++){var B=A[D];if(B.type.toLowerCase()=="image"&&B.form==F){this.connect(B,"onclick","click")}}},onSubmit:function(A){return true},submit:function(A){A.preventDefault();if(this.onSubmit(this.form)){dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}))}},click:function(B){var A=B.currentTarget;if(A.disabled){return }this.clickedButton=A},formFilter:function(C){var B=(C.type||"").toLowerCase();var A=false;if(C.disabled||!C.name){A=false}else{if(dojo.lang.inArray(B,["submit","button","image"])){if(!this.clickedButton){this.clickedButton=C}A=C==this.clickedButton}else{A=!dojo.lang.inArray(B,["file","submit","reset","button"])}}return A},connect:function(A,B,C){if(dojo.evalObjPath("dojo.event.connect")){dojo.event.connect(A,B,this,C)}else{var D=dojo.lang.hitch(this,C);A[B]=function(E){if(!E){E=window.event}if(!E.currentTarget){E.currentTarget=E.srcElement}if(!E.preventDefault){E.preventDefault=function(){window.event.returnValue=false}}D(E)}}}});dojo.io.XMLHTTPTransport=new function(){var H=this;var F={};this.useCache=false;this.preventCache=false;function D(I,J,K){return I+"|"+J+"|"+K.toLowerCase()}function B(J,K,L,I){F[D(J,K,L)]=I}function C(I,J,K){return F[D(I,J,K)]}this.clearCache=function(){F={}};function A(N,S,I,Q,J){try{if((S.status==200)||(S.status==304)||(location.protocol=="file:"&&(S.status==0||S.status==undefined))||(location.protocol=="chrome:"&&(S.status==0||S.status==undefined))){var P;if(N.method.toLowerCase()=="head"){var K=S.getAllResponseHeaders();P={};P.toString=function(){return K};var T=K.split(/[\r\n]+/g);for(var M=0;M<T.length;M++){var L=T[M].match(/^([^:]+)\s*:\s*(.+)$/i);if(L){P[L[1]]=L[2]}}}else{if(N.mimetype=="text/javascript"){try{P=dj_eval(S.responseText)}catch(O){dojo.debug(O);dojo.debug(S.responseText);P=null}}else{if(N.mimetype=="text/json"){try{P=dj_eval("("+S.responseText+")")}catch(O){dojo.debug(O);dojo.debug(S.responseText);P=false}}else{if((N.mimetype=="application/xml")||(N.mimetype=="text/xml")){P=S.responseXML;if(!P||typeof P=="string"){P=dojo.dom.createDocumentFromText(S.responseText)}}else{P=S.responseText}}}}if(J){B(I,Q,N.method,S)}N[(typeof N.load=="function")?"load":"handle"]("load",P,S,N)}else{var R=new dojo.io.Error("XMLHttpTransport Error: "+S.status+" "+S.statusText);N[(typeof N.error=="function")?"error":"handle"]("error",R,S,N)}}catch(O){dojo.debug(O);dojo.debug(S.responseText);P=null;if(typeof (N.error)=="function"){N.error()}}}function G(I,J){if(J.headers){for(var K in J.headers){if(K.toLowerCase()=="content-type"&&!J.contentType){J.contentType=J.headers[K]}else{I.setRequestHeader(K,J.headers[K])}}}}this.inFlight=[];this.inFlightTimer=null;this.startWatchingInFlight=function(){if(!this.inFlightTimer){this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10)}};this.watchInFlight=function(){var J=null;for(var I=this.inFlight.length-1;I>=0;I--){var K=this.inFlight[I];if(!K){this.inFlight.splice(I,1);continue}if(4==K.http.readyState){this.inFlight.splice(I,1);A(K.req,K.http,K.url,K.query,K.useCache)}else{if(K.startTime){if(!J){J=(new Date()).getTime()}if(K.startTime+(K.req.timeoutSeconds*1000)<J){if(typeof K.http.abort=="function"){K.http.abort()}this.inFlight.splice(I,1);K.req[(typeof K.req.timeout=="function")?"timeout":"handle"]("timeout",null,K.http,K.req)}}}}if(this.inFlight.length==0){clearInterval(this.inFlightTimer);this.inFlightTimer=null}};var E=dojo.hostenv.getXmlhttpObject()?true:false;this.canHandle=function(I){return E&&dojo.lang.inArray((I.mimetype.toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(I.method.toLowerCase(),["post","get","head"])&&!(I.formNode&&dojo.io.formHasFile(I.formNode))};this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";this.bind=function(a){if(!a.url){if(!a.formNode&&(a.backButton||a.back||a.changeUrl||a.watchForURL)&&(!djConfig.preventBackButtonFix)){dj_deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request is deprecated. Use dojo.undo.browser.addToHistory() instead.");dojo.undo.browser.addToHistory(a);return true}}var J=a.url;var K="";if(a.formNode){var N=a.formNode.getAttribute("action");if((N)&&(!a.url)){J=N}var I=a.formNode.getAttribute("method");if((I)&&(!a.method)){a.method=I}K+=dojo.io.encodeForm(a.formNode,a.encoding,a.formFilter)}if(J.indexOf("#")>-1){dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",J);J=J.split("#")[0]}if(a.file){a.method="post"}if(!a.method){a.method="get"}if(a.method.toLowerCase()=="get"){a.multipart=false}else{if(a.file){a.multipart=true}else{if(!a.multipart){a.multipart=false}}}if(a.backButton||a.back||a.changeUrl){dojo.undo.browser.addToHistory(a)}var W=a.content||{};if(a.sendTransport){W["dojo.transport"]="xmlhttp"}do{if(a.postContent){K=a.postContent;break}if(W){K+=dojo.io.argsFromMap(W,a.encoding)}if(a.method.toLowerCase()=="get"||!a.multipart){break}var O=[];if(K.length){var R=K.split("&");for(var Y=0;Y<R.length;++Y){if(R[Y].length){var S=R[Y].split("=");O.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+S[0]+'"',"",S[1])}}}if(a.file){if(dojo.lang.isArray(a.file)){for(var Y=0;Y<a.file.length;++Y){var T=a.file[Y];O.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+T.name+'"; filename="'+("fileName" in T?T.fileName:T.name)+'"',"Content-Type: "+("contentType" in T?T.contentType:"application/octet-stream"),"",T.content)}}else{var T=a.file;O.push("--"+this.multipartBoundary,'Content-Disposition: form-data; name="'+T.name+'"; filename="'+("fileName" in T?T.fileName:T.name)+'"',"Content-Type: "+("contentType" in T?T.contentType:"application/octet-stream"),"",T.content)}}if(O.length){O.push("--"+this.multipartBoundary+"--","");K=O.join("\r\n")}}while(false);var L=a.sync?false:true;var P=a.preventCache||(this.preventCache==true&&a.preventCache!=false);var U=a.useCache==true||(this.useCache==true&&a.useCache!=false);if(!P&&U){var M=C(J,K,a.method);if(M){A(a,M,J,K,false);return }}var X=dojo.hostenv.getXmlhttpObject(a);var b=false;if(L){var Q=this.inFlight.push({req:a,http:X,url:J,query:K,useCache:U,startTime:a.timeoutSeconds?(new Date()).getTime():0});this.startWatchingInFlight()}if(a.method.toLowerCase()=="post"){X.open("POST",J,L);G(X,a);X.setRequestHeader("Content-Type",a.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(a.contentType||"application/x-www-form-urlencoded"));try{X.send(K)}catch(Z){if(typeof X.abort=="function"){X.abort()}if(L){clearTimeout(this.inFlightTimer)}A(a,{status:404},J,K,U)}}else{var V=J;if(K!=""){V+=(V.indexOf("?")>-1?"&":"?")+K}if(P){V+=(dojo.string.endsWithAny(V,"?","&")?"":(V.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf()}X.open(a.method.toUpperCase(),V,L);G(X,a);try{X.send(null)}catch(Z){if(typeof X.abort=="function"){X.abort()}if(L){clearTimeout(this.inFlightTimer)}A(a,{status:404},J,K,U)}}if(!L){A(a,X,J,K,U)}a.abort=function(){return X.abort()};return };dojo.io.transports.addTransport("XMLHTTPTransport")};dojo.provide("dojo.io.cookie");dojo.io.cookie.setCookie=function(B,G,H,I,D,A){if(!D){D=self.document.domain;if(D.substring(0,4)=="www."){D=D.substring(4,D.length)}else{if(D.substring(0,4)=="staging."){D=D.substring(8,D.length)}else{if(D=="localhost"){D=null}}}}var C=-1;if(typeof H=="number"&&H>=0){var E=new Date();E.setTime(E.getTime()+(H*24*60*60*1000));C=E.toGMTString()}G=escape(G);var F=B+"="+G+";"+(C!=-1?" expires="+C+";":"")+(I?"path="+I:"")+(D?"; domain="+D:"")+(A?"; secure":"");document.cookie=F};dojo.io.cookie.set=dojo.io.cookie.setCookie;dojo.io.cookie.getCookie=function(C){var A=document.cookie.lastIndexOf(C+"=");if(A==-1){return null}value=document.cookie.substring(A+C.length+1);var B=value.indexOf(";");if(B==-1){B=value.length}value=value.substring(0,B);value=unescape(value);return value};dojo.io.cookie.get=dojo.io.cookie.getCookie;dojo.io.cookie.deleteCookie=function(A){dojo.io.cookie.setCookie(A,"-",0)};dojo.io.cookie.setObjectCookie=function(C,G,J,K,F,A,H){if(arguments.length==5){H=F;F=null;A=null}var E=[],D,I="";if(!H){D=dojo.io.cookie.getObjectCookie(C)}if(J>=0){if(!D){D={}}for(var B in G){if(B==null){delete D[B]}else{if(typeof G[B]=="string"||typeof G[B]=="number"){D[B]=G[B]}}}B=null;for(var B in D){E.push(escape(B)+"="+escape(D[B]))}I=E.join("&")}dojo.io.cookie.setCookie(C,I,J,K,F,A)};dojo.io.cookie.getObjectCookie=function(B){var A=null,D=dojo.io.cookie.getCookie(B);if(D){A={};var F=D.split("&");for(var C=0;C<F.length;C++){var G=F[C].split("=");var E=G[1];if(isNaN(E)){E=unescape(G[1])}A[unescape(G[0])]=E}}return A};dojo.io.cookie.isSupported=function(){if(typeof navigator.cookieEnabled!="boolean"){dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);var A=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");navigator.cookieEnabled=(A=="CookiesAllowed");if(navigator.cookieEnabled){this.deleteCookie("__TestingYourBrowserForCookieSupport__")}}return navigator.cookieEnabled};if(!dojo.io.cookies){dojo.io.cookies=dojo.io.cookie};dojo.hostenv.conditionalLoadModule({common:["dojo.io"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});dojo.hostenv.moduleLoaded("dojo.io.*");dojo.hostenv.conditionalLoadModule({common:["dojo.uri.Uri",false,false]});dojo.hostenv.moduleLoaded("dojo.uri.*");dojo.provide("dojo.io.IframeIO");dojo.io.createIFrame=function(fname,onloadstr){if(window[fname]){return window[fname]}if(window.frames[fname]){return window.frames[fname]}var r=dojo.render.html;var cframe=null;var turi=dojo.uri.dojoUri("iframe_history.html?noInit=true");var ifrstr=((r.ie)&&(dojo.render.os.win))?"<iframe name='"+fname+"' src='"+turi+"' onload='"+onloadstr+"'>":"iframe";cframe=document.createElement(ifrstr);with(cframe){name=fname;setAttribute("name",fname);id=fname;style.display="none"}(document.body||document.getElementsByTagName("body")[0]).appendChild(cframe);window[fname]=cframe;with(cframe.style){position="absolute";left=top="0px";height=width="1px";visibility="hidden"}if(!r.ie){dojo.io.setIFrameSrc(cframe,turi,true);cframe.onload=new Function(onloadstr)}return cframe};dojo.io.iframeContentWindow=function(A){var B=A.contentWindow||dojo.io.iframeContentDocument(A).defaultView||dojo.io.iframeContentDocument(A).__parent__||(A.name&&document.frames[A.name])||null;return B};dojo.io.iframeContentDocument=function(A){var B=A.contentDocument||((A.contentWindow)&&(A.contentWindow.document))||((A.name)&&(document.frames[A.name])&&(document.frames[A.name].document))||null;return B};dojo.io.IframeTransport=new function(){var A=this;this.currentRequest=null;this.requestQueue=[];this.iframeName="dojoIoIframe";this.fireNextRequest=function(){if((this.currentRequest)||(this.requestQueue.length==0)){return }var G=this.currentRequest=this.requestQueue.shift();G._contentToClean=[];var E=G.formNode;var F=G.content||{};if(G.sendTransport){F["dojo.transport"]="iframe"}if(E){if(F){for(var C in F){if(!E[C]){var B;if(dojo.render.html.ie){B=document.createElement("<input type='hidden' name='"+C+"' value='"+F[C]+"'>");E.appendChild(B)}else{B=document.createElement("input");E.appendChild(B);B.type="hidden";B.name=C;B.value=F[C]}G._contentToClean.push(C)}else{E[C].value=F[C]}}}if(G.url){G._originalAction=E.getAttribute("action");E.setAttribute("action",G.url)}if(!E.getAttribute("method")){E.setAttribute("method",(G.method)?G.method:"post")}G._originalTarget=E.getAttribute("target");E.setAttribute("target",this.iframeName);E.target=this.iframeName;E.submit()}else{var H=dojo.io.argsFromMap(this.currentRequest.content);var D=(G.url.indexOf("?")>-1?"&":"?")+H;dojo.io.setIFrameSrc(this.iframe,D,true)}};this.canHandle=function(B){return((dojo.lang.inArray(B.mimetype,["text/plain","text/html","text/javascript","text/json"]))&&((B.formNode)&&(dojo.io.checkChildrenForFile(B.formNode)))&&(dojo.lang.inArray(B.method.toLowerCase(),["post","get"]))&&(!((B.sync)&&(B.sync==true))))};this.bind=function(B){if(!this["iframe"]){this.setUpIframe()}this.requestQueue.push(B);this.fireNextRequest();return };this.setUpIframe=function(){this.iframe=dojo.io.createIFrame(this.iframeName,"dojo.io.IframeTransport.iframeOnload();")};this.iframeOnload=function(){if(!A.currentRequest){A.fireNextRequest();return }var I=A.currentRequest;var D=I._contentToClean;for(var E=0;E<D.length;E++){var M=D[E];if(dojo.render.html.safari){var H=I.formNode;for(var C=0;C<H.childNodes.length;C++){var P=H.childNodes[C];if(P.name==M){var N=P.parentNode;N.removeChild(P);break}}}else{var J=I.formNode[M];I.formNode.removeChild(J);I.formNode[M]=null}}if(I._originalAction){I.formNode.setAttribute("action",I._originalAction)}I.formNode.setAttribute("target",I._originalTarget);I.formNode.target=I._originalTarget;var Q=dojo.io.iframeContentDocument(A.iframe);var L;var O=false;try{var F=I.mimetype;if((F=="text/javascript")||(F=="text/json")){var B=Q.getElementsByTagName("textarea")[0].value;if(F=="text/json"){B="("+B+")"}L=dj_eval(B)}else{if(F=="text/html"){L=Q}else{L=Q.getElementsByTagName("textarea")[0].value}}O=true}catch(G){var K=new dojo.io.Error("IframeTransport Error");if(dojo.lang.isFunction(I.error)){I.error("error",K,I)}}try{if(O&&dojo.lang.isFunction(I.load)){I.load("load",L,I)}}catch(G){throw G}finally{A.currentRequest=null;A.fireNextRequest()}};dojo.io.transports.addTransport("IframeTransport")};dojo.provide("dojo.regexp");dojo.provide("dojo.regexp.us");dojo.regexp.tld=function(C){C=(typeof C=="object")?C:{};if(typeof C.allowCC!="boolean"){C.allowCC=true}if(typeof C.allowInfra!="boolean"){C.allowInfra=true}if(typeof C.allowGeneric!="boolean"){C.allowGeneric=true}var F="arpa";var E="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";var D="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";var B=[];if(C.allowInfra){B.push(F)}if(C.allowGeneric){B.push(E)}if(C.allowCC){B.push(D)}var A="";if(B.length>0){A="("+B.join("|")+")"}return A};dojo.regexp.ipAddress=function(C){C=(typeof C=="object")?C:{};if(typeof C.allowDottedDecimal!="boolean"){C.allowDottedDecimal=true}if(typeof C.allowDottedHex!="boolean"){C.allowDottedHex=true}if(typeof C.allowDottedOctal!="boolean"){C.allowDottedOctal=true}if(typeof C.allowDecimal!="boolean"){C.allowDecimal=true}if(typeof C.allowHex!="boolean"){C.allowHex=true}if(typeof C.allowIPv6!="boolean"){C.allowIPv6=true}if(typeof C.allowHybrid!="boolean"){C.allowHybrid=true}var H="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var A="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";var E="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";var D="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";var B="0[xX]0*[\\da-fA-F]{1,8}";var J="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";var I="([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var G=[];if(C.allowDottedDecimal){G.push(H)}if(C.allowDottedHex){G.push(A)}if(C.allowDottedOctal){G.push(E)}if(C.allowDecimal){G.push(D)}if(C.allowHex){G.push(B)}if(C.allowIPv6){G.push(J)}if(C.allowHybrid){G.push(I)}var F="";if(G.length>0){F="("+G.join("|")+")"}return F};dojo.regexp.host=function(A){A=(typeof A=="object")?A:{};if(typeof A.allowIP!="boolean"){A.allowIP=true}if(typeof A.allowLocal!="boolean"){A.allowLocal=false}if(typeof A.allowPort!="boolean"){A.allowPort=true}var C="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(A);portRE=(A.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";var B=C;if(A.allowIP){B+="|"+dojo.regexp.ipAddress(A)}if(A.allowLocal){B+="|localhost"}return"("+B+")"+portRE};dojo.regexp.url=function(B){B=(typeof B=="object")?B:{};if(typeof B.scheme=="undefined"){B.scheme=[true,false]}var C=dojo.regexp.buildGroupRE(B.scheme,function(D){if(D){return"(https?|ftps?)\\://"}return""});var A="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";return(C+dojo.regexp.host(B)+A)};dojo.regexp.emailAddress=function(A){A=(typeof A=="object")?A:{};if(typeof A.allowCruft!="boolean"){A.allowCruft=false}A.allowPort=false;var B="[a-zA-Z0-9_.-]+";var C=B+"@"+dojo.regexp.host(A);if(A.allowCruft){C="<?(mailto\\:)?"+C+">?"}return C};dojo.regexp.emailAddressList=function(A){A=(typeof A=="object")?A:{};if(typeof A.listSeparator!="string"){A.listSeparator="\\s;,"}var C=dojo.regexp.emailAddress(A);var B="("+C+"\\s*["+A.listSeparator+"]\\s*)*"+C+"\\s*["+A.listSeparator+"]?\\s*";return B};dojo.regexp.integer=function(A){A=(typeof A=="object")?A:{};if(typeof A.signed=="undefined"){A.signed=[true,false]}if(typeof A.separator=="undefined"){A.separator=""}var B=dojo.regexp.buildGroupRE(A.signed,function(D){if(D){return"[-+]"}return""});var C=dojo.regexp.buildGroupRE(A.separator,function(D){if(D==""){return"(0|[1-9]\\d*)"}return"(0|[1-9]\\d{0,2}(["+D+"]\\d{3})*)"});var C;return(B+C)};dojo.regexp.realNumber=function(A){A=(typeof A=="object")?A:{};if(typeof A.places!="number"){A.places=Infinity}if(typeof A.decimal!="string"){A.decimal="."}if(typeof A.exponent=="undefined"){A.exponent=[true,false]}if(typeof A.eSigned=="undefined"){A.eSigned=[true,false]}var B=dojo.regexp.integer(A);var D="";if(A.places==Infinity){D="(\\"+A.decimal+"\\d+)?"}else{if(A.places>0){D="\\"+A.decimal+"\\d{"+A.places+"}"}}var C=dojo.regexp.buildGroupRE(A.exponent,function(E){if(E){return"([eE]"+dojo.regexp.integer({signed:A.eSigned})+")"}return""});return(B+D+C)};dojo.regexp.currency=function(B){B=(typeof B=="object")?B:{};if(typeof B.signed=="undefined"){B.signed=[true,false]}if(typeof B.symbol=="undefined"){B.symbol="$"}if(typeof B.placement!="string"){B.placement="before"}if(typeof B.separator!="string"){B.separator=","}if(typeof B.cents=="undefined"){B.cents=[true,false]}if(typeof B.decimal!="string"){B.decimal="."}var C=dojo.regexp.buildGroupRE(B.signed,function(G){if(G){return"[-+]"}return""});var F=dojo.regexp.buildGroupRE(B.symbol,function(G){return"\\s?"+G.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?"});var E=dojo.regexp.integer({signed:false,separator:B.separator});var D=dojo.regexp.buildGroupRE(B.cents,function(G){if(G){return"(\\"+B.decimal+"\\d\\d)"}return""});var A;if(B.placement=="before"){A=C+F+E+D}else{A=C+E+D+F}return A};dojo.regexp.us.state=function(B){B=(typeof B=="object")?B:{};if(typeof B.allowTerritories!="boolean"){B.allowTerritories=true}if(typeof B.allowMilitary!="boolean"){B.allowMilitary=true}var C="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";var A="AS|FM|GU|MH|MP|PW|PR|VI";var D="AA|AE|AP";if(B.allowTerritories){C+="|"+A}if(B.allowMilitary){C+="|"+D}return"("+C+")"};dojo.regexp.time=function(B){B=(typeof B=="object")?B:{};if(typeof B.format=="undefined"){B.format="h:mm:ss t"}if(typeof B.amSymbol!="string"){B.amSymbol="AM"}if(typeof B.pmSymbol!="string"){B.pmSymbol="PM"}var A=function(E){E=E.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");var D=B.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");var C=B.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");E=E.replace("hh","(0[1-9]|1[0-2])");E=E.replace("h","([1-9]|1[0-2])");E=E.replace("HH","([01][0-9]|2[0-3])");E=E.replace("H","([0-9]|1[0-9]|2[0-3])");E=E.replace("mm","([0-5][0-9])");E=E.replace("m","([1-5][0-9]|[0-9])");E=E.replace("ss","([0-5][0-9])");E=E.replace("s","([1-5][0-9]|[0-9])");E=E.replace("t","\\s?("+D+"|"+C+")\\s?");return E};return dojo.regexp.buildGroupRE(B.format,A)};dojo.regexp.numberFormat=function(A){A=(typeof A=="object")?A:{};if(typeof A.format=="undefined"){A.format="###-###-####"}var B=function(C){C=C.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");C=C.replace(/\?/g,"\\d?");C=C.replace(/#/g,"\\d");return C};return dojo.regexp.buildGroupRE(A.format,B)};dojo.regexp.buildGroupRE=function(B,D){if(!(B instanceof Array)){return D(B)}var A=[];for(var C=0;C<B.length;C++){A.push(D(B[C]))}return"("+A.join("|")+")"};dojo.provide("dojo.validate");dojo.provide("dojo.validate.us");dojo.validate.isText=function(B,A){A=(typeof A=="object")?A:{};if(/^\s*$/.test(B)){return false}if(typeof A.length=="number"&&A.length!=B.length){return false}if(typeof A.minlength=="number"&&A.minlength>B.length){return false}if(typeof A.maxlength=="number"&&A.maxlength<B.length){return false}return true};dojo.validate.isIpAddress=function(C,A){var B=new RegExp("^"+dojo.regexp.ipAddress(A)+"$","i");return B.test(C)};dojo.validate.isUrl=function(C,A){var B=new RegExp("^"+dojo.regexp.url(A)+"$","i");return B.test(C)};dojo.validate.isEmailAddress=function(C,A){var B=new RegExp("^"+dojo.regexp.emailAddress(A)+"$","i");return B.test(C)};dojo.validate.isEmailAddressList=function(C,A){var B=new RegExp("^"+dojo.regexp.emailAddressList(A)+"$","i");return B.test(C)};dojo.validate.getEmailAddressList=function(B,A){if(!A){A={}}if(!A.listSeparator){A.listSeparator="\\s;,"}if(dojo.validate.isEmailAddressList(B,A)){return B.split(new RegExp("\\s*["+A.listSeparator+"]\\s*"))}return[]};dojo.validate.isInteger=function(C,A){var B=new RegExp("^"+dojo.regexp.integer(A)+"$");return B.test(C)};dojo.validate.isRealNumber=function(C,A){var B=new RegExp("^"+dojo.regexp.realNumber(A)+"$");return B.test(C)};dojo.validate.isCurrency=function(C,A){var B=new RegExp("^"+dojo.regexp.currency(A)+"$");return B.test(C)};dojo.validate.us.isCurrency=function(B,A){return dojo.validate.isCurrency(B,A)};dojo.validate.isGermanCurrency=function(A){flags={symbol:"�",placement:"after",decimal:",",separator:"."};return dojo.validate.isCurrency(A,flags)};dojo.validate.isJapaneseCurrency=function(A){flags={symbol:"�",cents:false};return dojo.validate.isCurrency(A,flags)};dojo.validate.isInRange=function(E,B){B=(typeof B=="object")?B:{};var A=(typeof B.max=="number")?B.max:Infinity;var C=(typeof B.min=="number")?B.min:-Infinity;var F=(typeof B.decimal=="string")?B.decimal:".";var D="[^"+F+"\\deE+-]";E=E.replace(RegExp(D,"g"),"");E=E.replace(/^([+-]?)(\D*)/,"$1");E=E.replace(/(\D*)$/,"");D="(\\d)["+F+"](\\d)";E=E.replace(RegExp(D,"g"),"$1.$2");E=Number(E);if(E<C||E>A){return false}return true};dojo.validate.isValidTime=function(C,A){var B=new RegExp("^"+dojo.regexp.time(A)+"$","i");return B.test(C)};dojo.validate.is12HourTime=function(A){return dojo.validate.isValidTime(A,{format:["h:mm:ss t","h:mm t"]})};dojo.validate.is24HourTime=function(A){return dojo.validate.isValidTime(A,{format:["HH:mm:ss","HH:mm"]})};dojo.validate.isValidDate=function(C,L){if(typeof L!="string"){L="MM/DD/YYYY"}var F=L.replace(/([$^.*+?=!:|\/\\\(\)\[\]\{\}])/g,"\\$1");F=F.replace("YYYY","([0-9]{4})");F=F.replace("MM","(0[1-9]|10|11|12)");F=F.replace("M","([1-9]|10|11|12)");F=F.replace("DDD","(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])");F=F.replace("DD","(0[1-9]|[12][0-9]|30|31)");F=F.replace("D","([1-9]|[12][0-9]|30|31)");F=F.replace("ww","(0[1-9]|[1-4][0-9]|5[0-3])");F=F.replace("d","([1-7])");F="^"+F+"$";var N=new RegExp(F);if(!N.test(C)){return false}var J=0,H=1,D=1,G=1,B=1,K=1;var I=L.match(/(YYYY|MM|M|DDD|DD|D|ww|d)/g);var M=N.exec(C);for(var E=0;E<I.length;E++){switch(I[E]){case"YYYY":J=Number(M[E+1]);break;case"M":case"MM":H=Number(M[E+1]);break;case"D":case"DD":D=Number(M[E+1]);break;case"DDD":G=Number(M[E+1]);break;case"ww":B=Number(M[E+1]);break;case"d":K=Number(M[E+1]);break}}var A=(J%4==0&&(J%100!=0||J%400==0));if(D==31&&(H==4||H==6||H==9||H==11)){return false}if(D>=30&&H==2){return false}if(D==29&&H==2&&!A){return false}if(G==366&&!A){return false}return true};dojo.validate.us.isState=function(C,A){var B=new RegExp("^"+dojo.regexp.us.state(A)+"$","i");return B.test(C)};dojo.validate.isNumberFormat=function(C,A){var B=new RegExp("^"+dojo.regexp.numberFormat(A)+"$","i");return B.test(C)};dojo.validate.us.isPhoneNumber=function(A){flags={format:["###-###-####","(###) ###-####","(###) ### ####","###.###.####","###/###-####","### ### ####","###-###-#### x#???","(###) ###-#### x#???","(###) ### #### x#???","###.###.#### x#???","###/###-#### x#???","### ### #### x#???"]};return dojo.validate.isNumberFormat(A,flags)};dojo.validate.us.isSocialSecurityNumber=function(A){flags={format:["###-##-####","### ## ####","#########"]};return dojo.validate.isNumberFormat(A,flags)};dojo.validate.us.isZipCode=function(A){flags={format:["#####-####","##### ####","#########","#####"]};return dojo.validate.isNumberFormat(A,flags)};dojo.validate.check=function(B,D){var I=[];var M=[];var J={isSuccessful:function(){return(!this.hasInvalid()&&!this.hasMissing())},hasMissing:function(){return(I.length>0)},getMissing:function(){return I},isMissing:function(R){for(var Q=0;Q<I.length;Q++){if(R==I[Q]){return true}}return false},hasInvalid:function(){return(M.length>0)},getInvalid:function(){return M},isInvalid:function(R){for(var Q=0;Q<M.length;Q++){if(R==M[Q]){return true}}return false}};if(D.trim instanceof Array){for(var K=0;K<D.trim.length;K++){var C=B[D.trim[K]];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.replace(/(^\s*|\s*$)/g,"")}}if(D.uppercase instanceof Array){for(var K=0;K<D.uppercase.length;K++){var C=B[D.uppercase[K]];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.toUpperCase()}}if(D.lowercase instanceof Array){for(var K=0;K<D.lowercase.length;K++){var C=B[D.lowercase[K]];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.toLowerCase()}}if(D.ucfirst instanceof Array){for(var K=0;K<D.ucfirst.length;K++){var C=B[D.ucfirst[K]];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.replace(/\b\w+\b/g,function(Q){return Q.substring(0,1).toUpperCase()+Q.substring(1).toLowerCase()})}}if(D.digit instanceof Array){for(var K=0;K<D.digit.length;K++){var C=B[D.digit[K]];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.replace(/\D/g,"")}}if(D.required instanceof Array){for(var K=0;K<D.required.length;K++){if(typeof D.required[K]!="string"){continue}var C=B[D.required[K]];if((C.type=="text"||C.type=="textarea"||C.type=="password")&&/^\s*$/.test(C.value)){I[I.length]=C.name}else{if((C.type=="select-one"||C.type=="select-multiple")&&C.selectedIndex==-1){I[I.length]=C.name}else{if(C instanceof Array){var N=false;for(var H=0;H<C.length;H++){if(C[H].checked){N=true}}if(!N){I[I.length]=C[0].name}}}}}}if(D.required instanceof Array){for(var K=0;K<D.required.length;K++){if(typeof D.required[K]!="object"){continue}var C,P;for(var A in D.required[K]){C=B[A];P=D.required[K][A]}if(C instanceof Array){var N=0;for(var H=0;H<C.length;H++){if(C[H].checked){N++}}if(N<P){I[I.length]=C[0].name}}else{if(C.type=="select-multiple"){var G=0;for(var H=0;H<C.options.length;H++){if(C.options[H].selected){G++}}if(G<P){I[I.length]=C.name}}}}}if(typeof D.dependancies=="object"){for(A in D.dependancies){var C=B[A];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}if(/\S+/.test(C.value)){continue}if(J.isMissing(C.name)){continue}var L=B[D.dependancies[A]];if(L.type!="text"&&L.type!="textarea"&&L.type!="password"){continue}if(/^\s*$/.test(L.value)){continue}I[I.length]=C.name}}if(typeof D.constraints=="object"){for(A in D.constraints){var C=B[A];if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}if(/^\s*$/.test(C.value)){continue}var O=true;if(typeof D.constraints[A]=="function"){O=D.constraints[A](C.value)}else{if(D.constraints[A] instanceof Array){var F=D.constraints[A][0];var E=D.constraints[A].slice(1);E.unshift(C.value);O=F.apply(null,E)}}if(!O){M[M.length]=C.name}}}if(typeof D.confirm=="object"){for(A in D.confirm){var C=B[A];var L=B[D.confirm[A]];if((C.type!="text"&&C.type!="textarea"&&C.type!="password")||L.type!=C.type||L.value==C.value||J.isInvalid(C.name)||/^\s*$/.test(L.value)){continue}M[M.length]=C.name}}return J};dojo.provide("dojo.dnd.DragSource");dojo.provide("dojo.dnd.DropTarget");dojo.provide("dojo.dnd.DragObject");dojo.provide("dojo.dnd.DragAndDrop");dojo.dnd.DragSource=function(){var A=dojo.dnd.dragManager;if(A.registerDragSource){A.registerDragSource(this)}};dojo.lang.extend(dojo.dnd.DragSource,{type:"",onDragEnd:function(){},onDragStart:function(){},unregister:function(){dojo.dnd.dragManager.unregisterDragSource(this)},reregister:function(){dojo.dnd.dragManager.registerDragSource(this)}});dojo.dnd.DragObject=function(){var A=dojo.dnd.dragManager;if(A.registerDragObject){A.registerDragObject(this)}};dojo.lang.extend(dojo.dnd.DragObject,{type:"",onDragStart:function(){},onDragMove:function(){},onDragOver:function(){},onDragOut:function(){},onDragEnd:function(){},onDragLeave:this.onDragOut,onDragEnter:this.onDragOver,ondragout:this.onDragOut,ondragover:this.onDragOver});dojo.dnd.DropTarget=function(){if(this.constructor==dojo.dnd.DropTarget){return }this.acceptedTypes=[];dojo.dnd.dragManager.registerDropTarget(this)};dojo.lang.extend(dojo.dnd.DropTarget,{acceptsType:function(A){if(!dojo.lang.inArray(this.acceptedTypes,"*")){if(!dojo.lang.inArray(this.acceptedTypes,A)){return false}}return true},accepts:function(B){if(!dojo.lang.inArray(this.acceptedTypes,"*")){for(var A=0;A<B.length;A++){if(!dojo.lang.inArray(this.acceptedTypes,B[A].type)){return false}}}return true},onDragOver:function(){},onDragOut:function(){},onDragMove:function(){},onDropStart:function(){},onDrop:function(){},onDropEnd:function(){}});dojo.dnd.DragEvent=function(){this.dragSource=null;this.dragObject=null;this.target=null;this.eventStatus="success"};dojo.dnd.DragManager=function(){};dojo.lang.extend(dojo.dnd.DragManager,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(){},dropTargets:[],registerDropTarget:function(){},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){},onMouseOut:function(){},onMouseMove:function(){},onMouseUp:function(){}});dojo.provide("dojo.dnd.HtmlDragManager");dojo.dnd.HtmlDragManager=function(){};dojo.inherits(dojo.dnd.HtmlDragManager,dojo.dnd.DragManager);dojo.lang.extend(dojo.dnd.HtmlDragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(A){A.stopPropagation();A.preventDefault()},registerDragSource:function(B){if(B.domNode){var C=this.dsPrefix;var A=C+"Idx_"+(this.dsCounter++);B.dragSourceId=A;this.dragSources[A]=B;B.domNode.setAttribute(C,A);if(dojo.render.html.ie){dojo.event.connect(B.domNode,"ondragstart",this.cancelEvent)}}},unregisterDragSource:function(B){if(B.domNode){var C=this.dsPrefix;var A=B.dragSourceId;delete B.dragSourceId;delete this.dragSources[A];B.domNode.setAttribute(C,null)}if(dojo.render.html.ie){dojo.event.disconnect(B.domNode,"ondragstart",this.cancelEvent)}},registerDropTarget:function(A){this.dropTargets.push(A)},unregisterDropTarget:function(B){var A=dojo.lang.find(this.dropTargets,B,true);if(A>=0){this.dropTargets.splice(A,1)}},getDragSource:function(C){var A=C.target;if(A===document.body){return }var B=dojo.html.getAttribute(A,this.dsPrefix);while((!B)&&(A)){A=A.parentNode;if((!A)||(A===document.body)){return }B=dojo.html.getAttribute(A,this.dsPrefix)}return this.dragSources[B]},onKeyDown:function(A){},onMouseDown:function(C){if(this.disabled){return }if(dojo.render.html.ie){if(C.button!=1){return }}else{if(C.which!=1){return }}var B=C.target.nodeType==dojo.dom.TEXT_NODE?C.target.parentNode:C.target;if(dojo.html.isTag(B,"button","textarea","input")){return }var A=this.getDragSource(C);if(!A){return }if(!dojo.lang.inArray(this.selectedSources,A)){this.selectedSources.push(A)}this.mouseDownX=C.clientX;this.mouseDownY=C.clientY;C.preventDefault();dojo.event.connect(document,"onmousemove",this,"onMouseMove")},onMouseUp:function(B,A){if(this.selectedSources.length==0){return }this.mouseDownX=null;this.mouseDownY=null;this._dragTriggered=false;var C=this;B.preventDefault();B.dragSource=this.dragSource;if((!B.shiftKey)&&(!B.ctrlKey)){if(C.currentDropTarget){C.currentDropTarget.onDropStart()}dojo.lang.forEach(this.dragObjects,function(E){var D=null;if(!E){return }if(C.currentDropTarget){B.dragObject=E;var F=C.currentDropTarget.domNode.childNodes;if(F.length>0){B.dropTarget=F[0];while(B.dropTarget==E.domNode){B.dropTarget=B.dropTarget.nextSibling}}else{B.dropTarget=C.currentDropTarget.domNode}if(C.dropAcceptable){D=C.currentDropTarget.onDrop(B)}else{C.currentDropTarget.onDragOut(B)}}B.dragStatus=C.dropAcceptable&&D?"dropSuccess":"dropFailure";E.dragSource.onDragEnd(B);E.onDragEnd(B)});this.selectedSources=[];this.dragObjects=[];this.dragSource=null;if(C.currentDropTarget){C.currentDropTarget.onDropEnd()}}dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");this.currentDropTarget=null},onScroll:function(){for(var A=0;A<this.dragObjects.length;A++){if(this.dragObjects[A].updateDragOffset){this.dragObjects[A].updateDragOffset()}}this.cacheTargetLocations()},_dragStartDistance:function(B,F){if((!this.mouseDownX)||(!this.mouseDownX)){return }var D=Math.abs(B-this.mouseDownX);var E=D*D;var C=Math.abs(F-this.mouseDownY);var A=C*C;return parseInt(Math.sqrt(E+A),10)},cacheTargetLocations:function(){var A=this;this.dropTargetDimensions=[];dojo.lang.forEach(this.dropTargets,function(C){var B=C.domNode;if(!B){return }var E=dojo.style.getAbsoluteX(B,true);var D=dojo.style.getAbsoluteY(B,true);A.dropTargetDimensions.push([[E,D],[E+dojo.style.getInnerWidth(B),D+dojo.style.getInnerHeight(B)],C])})},onMouseMove:function(F){var H=this;if(dojo.render.html.ie&&F.button!=1){this.currentDropTarget=null;this.onMouseUp(F,true);return }if((this.selectedSources.length)&&(!this.dragObjects.length)){var B;var A;if(!this._dragTriggered){this._dragTriggered=(this._dragStartDistance(F.clientX,F.clientY)>this.threshold);if(!this._dragTriggered){return }B=F.clientX-this.mouseDownX;A=F.clientY-this.mouseDownY}if(this.selectedSources.length==1){this.dragSource=this.selectedSources[0]}dojo.lang.forEach(this.selectedSources,function(J){if(!J){return }var I=J.onDragStart(F);if(I){I.onDragStart(F);I.dragOffset.top+=A;I.dragOffset.left+=B;I.dragSource=J;H.dragObjects.push(I)}});this.previousDropTarget=null;this.cacheTargetLocations()}for(var D=0;D<this.dragObjects.length;D++){if(this.dragObjects[D]){this.dragObjects[D].onDragMove(F)}}if(this.currentDropTarget){var G=dojo.html.toCoordinateArray(this.currentDropTarget.domNode);var E=[[G[0],G[1]],[G[0]+G[2],G[1]+G[3]]]}if((!this.nestedTargets)&&(E)&&(this.isInsideBox(F,E))){if(this.dropAcceptable){this.currentDropTarget.onDragMove(F,this.dragObjects)}}else{var C=this.findBestTarget(F);if(C.target===null){if(this.currentDropTarget){this.currentDropTarget.onDragOut(F);this.previousDropTarget=this.currentDropTarget;this.currentDropTarget=null}this.dropAcceptable=false;return }if(this.currentDropTarget!==C.target){if(this.currentDropTarget){this.previousDropTarget=this.currentDropTarget;this.currentDropTarget.onDragOut(F)}this.currentDropTarget=C.target;F.dragObjects=this.dragObjects;this.dropAcceptable=this.currentDropTarget.onDragOver(F)}else{if(this.dropAcceptable){this.currentDropTarget.onDragMove(F,this.dragObjects)}}}},findBestTarget:function(B){var C=this;var A=new Object();A.target=null;A.points=null;dojo.lang.forEach(this.dropTargetDimensions,function(D){if(C.isInsideBox(B,D)){A.target=D[2];A.points=D;if(!C.nestedTargets){return"break"}}});return A},isInsideBox:function(B,A){if((B.clientX>A[0][0])&&(B.clientX<A[1][0])&&(B.clientY>A[0][1])&&(B.clientY<A[1][1])){return true}return false},onMouseOver:function(A){},onMouseOut:function(A){}});dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();(function(){var B=document;var A=dojo.dnd.dragManager;dojo.event.connect(B,"onkeydown",A,"onKeyDown");dojo.event.connect(B,"onmouseover",A,"onMouseOver");dojo.event.connect(B,"onmouseout",A,"onMouseOut");dojo.event.connect(B,"onmousedown",A,"onMouseDown");dojo.event.connect(B,"onmouseup",A,"onMouseUp");dojo.event.connect(window,"onscroll",A,"onScroll")})();dojo.provide("dojo.animation.AnimationSequence");dojo.animation.AnimationSequence=function(A){this._anims=[];this.repeatCount=A||0};dojo.lang.extend(dojo.animation.AnimationSequence,{repeateCount:0,_anims:[],_currAnim:-1,onBegin:null,onEnd:null,onNext:null,handler:null,add:function(){for(var A=0;A<arguments.length;A++){this._anims.push(arguments[A]);arguments[A]._animSequence=this}},remove:function(B){for(var A=0;A<this._anims.length;A++){if(this._anims[A]==B){this._anims[A]._animSequence=null;this._anims.splice(A,1);break}}},removeAll:function(){for(var A=0;A<this._anims.length;A++){this._anims[A]._animSequence=null}this._anims=[];this._currAnim=-1},clear:function(){this.removeAll()},play:function(A){if(this._anims.length==0){return }if(A||!this._anims[this._currAnim]){this._currAnim=0}if(this._anims[this._currAnim]){if(this._currAnim==0){var B={type:"begin",animation:this._anims[this._currAnim]};if(typeof this.handler=="function"){this.handler(B)}if(typeof this.onBegin=="function"){this.onBegin(B)}}this._anims[this._currAnim].play(A)}},pause:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].pause()}},playPause:function(){if(this._anims.length==0){return }if(this._currAnim==-1){this._currAnim=0}if(this._anims[this._currAnim]){this._anims[this._currAnim].playPause()}},stop:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].stop()}},status:function(){if(this._anims[this._currAnim]){return this._anims[this._currAnim].status()}else{return"stopped"}},_setCurrent:function(B){for(var A=0;A<this._anims.length;A++){if(this._anims[A]==B){this._currAnim=A;break}}},_playNext:function(){if(this._currAnim==-1||this._anims.length==0){return }this._currAnim++;if(this._anims[this._currAnim]){var A={type:"next",animation:this._anims[this._currAnim]};if(typeof this.handler=="function"){this.handler(A)}if(typeof this.onNext=="function"){this.onNext(A)}this._anims[this._currAnim].play(true)}else{var A={type:"end",animation:this._anims[this._anims.length-1]};if(typeof this.handler=="function"){this.handler(A)}if(typeof this.onEnd=="function"){this.onEnd(A)}if(this.repeatCount>0){this._currAnim=0;this.repeatCount--;this._anims[this._currAnim].play(true)}else{if(this.repeatCount==-1){this._currAnim=0;this._anims[this._currAnim].play(true)}else{this._currAnim=-1}}}}});dojo.hostenv.conditionalLoadModule({common:["dojo.animation.AnimationEvent","dojo.animation.Animation","dojo.animation.AnimationSequence"]});dojo.hostenv.moduleLoaded("dojo.animation.*");dojo.provide("dojo.dnd.HtmlDragAndDrop");dojo.provide("dojo.dnd.HtmlDragSource");dojo.provide("dojo.dnd.HtmlDropTarget");dojo.provide("dojo.dnd.HtmlDragObject");dojo.dnd.HtmlDragSource=function(B,A){B=dojo.byId(B);this.constrainToContainer=false;if(B){this.domNode=B;this.dragObject=B;dojo.dnd.DragSource.call(this);this.type=A||this.domNode.nodeName.toLowerCase()}};dojo.inherits(dojo.dnd.HtmlDragSource,dojo.dnd.DragSource);dojo.lang.extend(dojo.dnd.HtmlDragSource,{dragClass:"",onDragStart:function(){var A=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);if(this.dragClass){A.dragClass=this.dragClass}if(this.constrainToContainer){A.constrainTo(this.constrainingContainer||this.domNode.parentNode)}return A},setDragHandle:function(A){A=dojo.byId(A);dojo.dnd.dragManager.unregisterDragSource(this);this.domNode=A;dojo.dnd.dragManager.registerDragSource(this)},setDragTarget:function(A){this.dragObject=A},constrainTo:function(A){this.constrainToContainer=true;if(A){this.constrainingContainer=A}}});dojo.dnd.HtmlDragObject=function(B,A){this.domNode=dojo.byId(B);this.type=A;this.constrainToContainer=false;this.dragSource=null};dojo.inherits(dojo.dnd.HtmlDragObject,dojo.dnd.DragObject);dojo.lang.extend(dojo.dnd.HtmlDragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){var B=this.domNode.cloneNode(true);if(this.dragClass){dojo.html.addClass(B,this.dragClass)}if(this.opacity<1){dojo.style.setOpacity(B,this.opacity)}if(dojo.render.html.ie&&this.createIframe){var A=document.createElement("div");A.appendChild(B);this.bgIframe=new dojo.html.BackgroundIframe(A);A.appendChild(this.bgIframe.iframe);B=A}B.style.zIndex=500;return B},onDragStart:function(e){dojo.html.clearSelection();this.scrollOffset={top:dojo.html.getScrollTop(),left:dojo.html.getScrollLeft()};this.dragStartPosition={top:dojo.style.getAbsoluteY(this.domNode,true)+this.scrollOffset.top,left:dojo.style.getAbsoluteX(this.domNode,true)+this.scrollOffset.left};this.dragOffset={top:this.dragStartPosition.top-e.clientY,left:this.dragStartPosition.left-e.clientX};this.dragClone=this.createDragNode();if((this.domNode.parentNode.nodeName.toLowerCase()=="body")||(dojo.style.getComputedStyle(this.domNode.parentNode,"position")=="static")){this.parentPosition={top:0,left:0}}else{this.parentPosition={top:dojo.style.getAbsoluteY(this.domNode.parentNode,true),left:dojo.style.getAbsoluteX(this.domNode.parentNode,true)}}if(this.constrainToContainer){this.constraints=this.getConstraints()}with(this.dragClone.style){position="absolute";top=this.dragOffset.top+e.clientY+"px";left=this.dragOffset.left+e.clientX+"px"}document.body.appendChild(this.dragClone)},getConstraints:function(){if(this.constrainingContainer.nodeName.toLowerCase()=="body"){width=dojo.html.getViewportWidth();height=dojo.html.getViewportHeight();padLeft=0;padTop=0}else{width=dojo.style.getContentWidth(this.constrainingContainer);height=dojo.style.getContentHeight(this.constrainingContainer);padLeft=dojo.style.getPixelValue(this.constrainingContainer,"padding-left",true);padTop=dojo.style.getPixelValue(this.constrainingContainer,"padding-top",true)}return{minX:0,minY:radius.config.navigationPanelHeight,maxX:padLeft+width-dojo.style.getOuterWidth(this.domNode),maxY:padTop+height-dojo.style.getOuterHeight(this.domNode)}},updateDragOffset:function(){var A=dojo.html.getScrollTop();var B=dojo.html.getScrollLeft();if(A!=this.scrollOffset.top){var C=A-this.scrollOffset.top;this.dragOffset.top+=C;this.scrollOffset.top=A}},onDragMove:function(B){this.updateDragOffset();var A=this.dragOffset.left+B.clientX-this.parentPosition.left;var C=this.dragOffset.top+B.clientY-this.parentPosition.top;if(this.constrainToContainer){if(A<this.constraints.minX){A=this.constraints.minX}if(C<this.constraints.minY){C=this.constraints.minY}if(A>this.constraints.maxX){A=this.constraints.maxX}if(C>this.constraints.maxY){C=this.constraints.maxY}}if(!this.disableY){this.dragClone.style.top=C+"px"}if(!this.disableX){this.dragClone.style.left=A+"px"}},onDragEnd:function(F){switch(F.dragStatus){case"dropSuccess":dojo.dom.removeNode(this.dragClone);this.dragClone=null;break;case"dropFailure":var E=[dojo.style.getAbsoluteX(this.dragClone),dojo.style.getAbsoluteY(this.dragClone)];var B=[this.dragStartPosition.left+1,this.dragStartPosition.top+1];var A=new dojo.math.curves.Line(E,B);var D=new dojo.animation.Animation(A,300,0,0);var C=this;dojo.event.connect(D,"onAnimate",function(G){C.dragClone.style.left=G.x+"px";C.dragClone.style.top=G.y+"px"});dojo.event.connect(D,"onEnd",function(G){dojo.lang.setTimeout(dojo.dom.removeNode,200,C.dragClone)});D.play();break}dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick")},squelchOnClick:function(A){A.preventDefault();dojo.event.disconnect(this.domNode,"onclick",this,"squelchOnClick")},constrainTo:function(A){this.constrainToContainer=true;if(A){this.constrainingContainer=A}else{this.constrainingContainer=this.domNode.parentNode}}});dojo.dnd.HtmlDropTarget=function(B,A){if(arguments.length==0){return }this.domNode=dojo.byId(B);dojo.dnd.DropTarget.call(this);if(A&&dojo.lang.isString(A)){A=[A]}this.acceptedTypes=A||[]};dojo.inherits(dojo.dnd.HtmlDropTarget,dojo.dnd.DropTarget);dojo.lang.extend(dojo.dnd.HtmlDropTarget,{onDragOver:function(F){if(!this.accepts(F.dragObjects)){return false}this.childBoxes=[];for(var C=0,G;C<this.domNode.childNodes.length;C++){G=this.domNode.childNodes[C];if(G.nodeType!=dojo.dom.ELEMENT_NODE){continue}var E=dojo.style.getAbsoluteY(G);var A=E+dojo.style.getInnerHeight(G);var D=dojo.style.getAbsoluteX(G);var B=D+dojo.style.getInnerWidth(G);this.childBoxes.push({top:E,bottom:A,left:D,right:B,node:G})}return true},_getNodeUnderMouse:function(e){var mousex=e.pageX||e.clientX+document.body.scrollLeft;var mousey=e.pageY||e.clientY+document.body.scrollTop;for(var i=0,child;i<this.childBoxes.length;i++){with(this.childBoxes[i]){if(mousex>=left&&mousex<=right&&mousey>=top&&mousey<=bottom){return i}}}return -1},createDropIndicator:function(){this.dropIndicator=document.createElement("div");with(this.dropIndicator.style){position="absolute";zIndex=1;borderTopWidth="1px";borderTopColor="black";borderTopStyle="solid";width=dojo.style.getInnerWidth(this.domNode)+"px";left=dojo.style.getAbsoluteX(this.domNode)+"px"}},onDragMove:function(D,B){var A=this._getNodeUnderMouse(D);if(!this.dropIndicator){this.createDropIndicator()}if(A<0){if(this.childBoxes.length){var C=(dojo.html.gravity(this.childBoxes[0].node,D)&dojo.html.gravity.NORTH)}else{var C=true}}else{var E=this.childBoxes[A];var C=(dojo.html.gravity(E.node,D)&dojo.html.gravity.NORTH)}this.placeIndicator(D,B,A,C);if(!dojo.html.hasParent(this.dropIndicator)){document.body.appendChild(this.dropIndicator)}},placeIndicator:function(e,dragObjects,boxIndex,before){with(this.dropIndicator.style){if(boxIndex<0){if(this.childBoxes.length){top=(before?this.childBoxes[0].top:this.childBoxes[this.childBoxes.length-1].bottom)+"px"}else{top=dojo.style.getAbsoluteY(this.domNode)+"px"}}else{var child=this.childBoxes[boxIndex];top=(before?child.top:child.bottom)+"px"}}},onDragOut:function(A){if(this.dropIndicator){dojo.dom.removeNode(this.dropIndicator);delete this.dropIndicator}},onDrop:function(B){this.onDragOut(B);var A=this._getNodeUnderMouse(B);if(A<0){if(this.childBoxes.length){if(dojo.html.gravity(this.childBoxes[0].node,B)&dojo.html.gravity.NORTH){return this.insert(B,this.childBoxes[0].node,"before")}else{return this.insert(B,this.childBoxes[this.childBoxes.length-1].node,"after")}}return this.insert(B,this.domNode,"append")}var C=this.childBoxes[A];if(dojo.html.gravity(C.node,B)&dojo.html.gravity.NORTH){return this.insert(B,C.node,"before")}else{return this.insert(B,C.node,"after")}},insert:function(D,B,A){var C=D.dragObject.domNode;if(A=="before"){return dojo.html.insertBefore(C,B)}else{if(A=="after"){return dojo.html.insertAfter(C,B)}else{if(A=="append"){B.appendChild(C);return true}}}return false}});dojo.hostenv.conditionalLoadModule({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"],dashboard:["dojo.dnd.HtmlDragAndDrop"]});dojo.hostenv.moduleLoaded("dojo.dnd.*");dojo.provide("dojo.dnd.HtmlDragMove");dojo.provide("dojo.dnd.HtmlDragMoveSource");dojo.provide("dojo.dnd.HtmlDragMoveObject");dojo.dnd.HtmlDragMoveSource=function(B,A){dojo.dnd.HtmlDragSource.call(this,B,A)};dojo.inherits(dojo.dnd.HtmlDragMoveSource,dojo.dnd.HtmlDragSource);dojo.lang.extend(dojo.dnd.HtmlDragMoveSource,{onDragStart:function(){var A=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);if(this.constrainToContainer){A.constrainTo(this.constrainingContainer)}return A}});dojo.dnd.HtmlDragMoveObject=function(B,A){dojo.dnd.HtmlDragObject.call(this,B,A)};dojo.inherits(dojo.dnd.HtmlDragMoveObject,dojo.dnd.HtmlDragObject);dojo.lang.extend(dojo.dnd.HtmlDragMoveObject,{onDragEnd:function(A){dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick")},onDragStart:function(A){dojo.html.clearSelection();this.dragClone=this.domNode;this.scrollOffset={top:dojo.html.getScrollTop(),left:dojo.html.getScrollLeft()};this.dragStartPosition={top:dojo.style.getAbsoluteY(this.domNode),left:dojo.style.getAbsoluteX(this.domNode)};this.dragOffset={top:this.dragStartPosition.top-A.clientY,left:this.dragStartPosition.left-A.clientX};if(this.domNode.parentNode.nodeName.toLowerCase()=="body"){this.parentPosition={top:0,left:0}}else{this.parentPosition={top:dojo.style.getAbsoluteY(this.domNode.parentNode,true),left:dojo.style.getAbsoluteX(this.domNode.parentNode,true)}}this.dragClone.style.position="absolute";if(this.constrainToContainer){this.constraints=this.getConstraints()}}});if(typeof rim=="undefined"){rim={}}rim.env=rim.env||{Browser:{ie:!!(window.attachEvent&&!window.opera),ie6:!!(navigator.userAgent.match(/MSIE 6/)),Opera:!!window.opera,webkit:navigator.userAgent.indexOf("AppleWebKit/")>-1,Gecko:navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/),mouse_enter:this.ie?"mouseenter":"mouseover",mouse_leave:this.ie?"mouseleave":"mouseout",Firefox2:navigator.userAgent.toLowerCase().indexOf("firefox/2")>-1,Firefox3:navigator.userAgent.toLowerCase().indexOf("firefox/3")>-1},modules:[],listeners:[]};rim.register=function(A,E,D){var I=rim.env.modules;if(!I[A]){I[A]={versions:[],builds:[]}}var B=I[A],H=D.version,G=D.build,F=rim.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B)}if(E){E.VERSION=H;E.BUILD=G}else{rim.log("mainClass is undefined for module "+A,"warn")}};rim.events={};rim.events.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||rim.events.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_RIMOnSubscribe";if(D!==E){this.subscribeEvent=new rim.events.CustomEvent(E,this,true)}this.lastError=null};rim.events.CustomEvent.LIST=0;rim.events.CustomEvent.FLAT=1;rim.events.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A)}this.subscribers.push(new rim.events.Subscriber(B,C,A))},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll()}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true}}return E},fire:function(){var D=this.subscribers.length;if(!D&&this.silent){return true}var H=[],F=true,C,I=false;for(C=0;C<arguments.length;++C){H.push(arguments[C])}if(!this.silent){}for(C=0;C<D;++C){var L=this.subscribers[C];if(!L){I=true}else{if(!this.silent){}var K=L.getScope(this.scope);if(this.signature==rim.events.CustomEvent.FLAT){var A=null;if(H.length>0){A=H[0]}try{F=L.fn.call(K,A,L.obj)}catch(E){this.lastError=E}}else{try{F=L.fn.call(K,this.type,H,L.obj)}catch(G){this.lastError=G}}if(false===F){if(!this.silent){}return false}}}if(I){var J=[],B=this.subscribers;for(C=0,D=B.length;C<D;C=C+1){J.push(B[C])}this.subscribers=J}return true},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(A-1-B)}this.subscribers=[];return B},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj}this.subscribers[A]=null},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};rim.events.Subscriber=function(B,C,A){this.fn=B;this.obj=typeof C==="undefined"?null:C;this.override=A};rim.events.Subscriber.prototype.getScope=function(A){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return A};rim.events.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B)}else{return(this.fn==A)}};rim.events.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!rim.events.Event){rim.events.Event=function(){var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:rim.env.Browser.webkit,webkit:rim.env.Browser.webkit,isIE:rim.env.Browser.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var K=this;var L=function(){K._tryPreloadAttach()};this._interval=setInterval(L,this.POLL_INTERVAL)}},onAvailable:function(P,M,Q,O,N){var K=(radius.isString(P))?[P]:P;for(var L=0;L<K.length;L=L+1){F.push({id:K[L],fn:M,obj:Q,override:O,checkReady:N})}C=this.POLL_RETRYS;this.startInterval()},onContentReady:function(M,K,N,L){this.onAvailable(M,K,N,L,true)},onDOMReady:function(K,M,L){if(this.DOMReady){setTimeout(function(){var N=window;if(L){if(L===true){N=M}else{N=L}}K.call(N,"DOMReady",[],M)},0)}else{this.DOMReadyEvent.subscribe(K,M,L)}},addListener:function(M,K,V,Q,L){if(!V||!V.call){return false}if(this._isValidCollection(M)){var W=true;for(var R=0,T=M.length;R<T;++R){W=this.on(M[R],K,V,Q,L)&&W}return W}else{if(radius.isString(M)){var P=this.getEl(M);if(P){M=P}else{this.onAvailable(M,function(){rim.events.Event.on(M,K,V,Q,L)});return true}}}if(!M){return false}if("unload"==K&&Q!==this){J[J.length]=[M,K,V,Q,L];return true}var Y=M;if(L){if(L===true){Y=Q}else{Y=L}}var N=function(Z){return V.call(Y,rim.events.Event.getEvent(Z,M),Q)};var X=[M,K,V,N,Y,Q,L];var S=I.length;I[S]=X;if(this.useLegacyEvent(M,K)){var O=this.getLegacyIndex(M,K);if(O==-1||M!=G[O][0]){O=G.length;B[M.id+K]=O;G[O]=[M,K,M["on"+K]];E[O]=[];M["on"+K]=function(Z){rim.events.Event.fireLegacyEvent(rim.events.Event.getEvent(Z),O)}}E[O].push(X)}else{try{this._simpleAdd(M,K,N,false)}catch(U){this.lastError=U;this.removeListener(M,K,V);return false}}return true},fireLegacyEvent:function(O,M){var Q=true,K,S,R,T,P;S=E[M];for(var L=0,N=S.length;L<N;++L){R=S[L];if(R&&R[this.WFN]){T=R[this.ADJ_SCOPE];P=R[this.WFN].call(T,O);Q=(Q&&P)}}K=G[M];if(K&&K[2]){K[2](O)}return Q},getLegacyIndex:function(L,M){var K=this.generateId(L)+M;if(typeof B[K]=="undefined"){return -1}else{return B[K]}},useLegacyEvent:function(L,M){if(this.webkit&&("click"==M||"dblclick"==M)){var K=parseInt(this.webkit,10);if(!isNaN(K)&&K<418){return true}}return false},removeListener:function(L,K,T){var O,R,V;if(typeof L=="string"){L=this.getEl(L)}else{if(this._isValidCollection(L)){var U=true;for(O=0,R=L.length;O<R;++O){U=(this.removeListener(L[O],K,T)&&U)}return U}}if(!T||!T.call){return this.purgeElement(L,false,K)}if("unload"==K){for(O=0,R=J.length;O<R;O++){V=J[O];if(V&&V[0]==L&&V[1]==K&&V[2]==T){J[O]=null;return true}}return false}var P=null;var Q=arguments[3];if("undefined"===typeof Q){Q=this._getCacheIndex(L,K,T)}if(Q>=0){P=I[Q]}if(!L||!P){return false}if(this.useLegacyEvent(L,K)){var N=this.getLegacyIndex(L,K);var M=E[N];if(M){for(O=0,R=M.length;O<R;++O){V=M[O];if(V&&V[this.EL]==L&&V[this.TYPE]==K&&V[this.FN]==T){M[O]=null;break}}}}else{try{this._simpleRemove(L,K,P[this.WFN],false)}catch(S){this.lastError=S;return false}}delete I[Q][this.WFN];delete I[Q][this.FN];I[Q]=null;return true},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K)},resolveTextNode:function(K){if(K&&3==K.nodeType){return K.parentNode}else{return K}},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft()}}return K},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop()}}return L},getXY:function(K){return[this.getPageX(K),this.getPageY(K)]},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement}else{if(L.type=="mouseover"){K=L.fromElement}}}return this.resolveTextNode(K)},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L}catch(K){this.lastError=K;return L}}return M.time},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K)},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation()}else{K.cancelBubble=true}},preventDefault:function(K){if(K.preventDefault){K.preventDefault()}else{K.returnValue=false}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break}N=N.caller}}return L},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(rim.env.Browser.webkit&&(K in D)){K=D[K]}return K},_getCacheIndex:function(O,P,N){for(var M=0,L=I.length;M<L;++M){var K=I[M];if(K&&K[this.FN]==N&&K[this.EL]==O&&K[this.TYPE]==P){return M}}return -1},generateId:function(K){var L=K.id;if(!L){L="rimevtautoid-"+A;++A;K.id=L}return L},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined")}catch(K){return false}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K},clearCache:function(){},DOMReadyEvent:new rim.events.CustomEvent("DOMReady",this),_load:function(L){if(!H){H=true;var K=rim.events.Event;K._ready();K._tryPreloadAttach()}},_ready:function(L){var K=rim.events.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!this.DOMReady){this.startInterval();return false}}this.locked=true;var P=!H;if(!P){P=(C>0)}var O=[];var Q=function(S,T){var R=S;if(T.override){if(T.override===true){R=T.obj}else{R=T.override}}T.fn.call(R,T.obj)};var L,K,N,M;for(L=0,K=F.length;L<K;++L){N=F[L];if(N&&!N.checkReady){M=this.getEl(N.id);if(M){Q(M,N);F[L]=null}else{O.push(N)}}}for(L=0,K=F.length;L<K;++L){N=F[L];if(N&&N.checkReady){M=this.getEl(N.id);if(M){if(H||M.nextSibling){Q(M,N);F[L]=null}}else{O.push(N)}}}C=(O.length===0)?0:C-1;if(P){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(O,P,R){var M=(radius.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=0,K=Q.length;N<K;++N){var L=Q[N];this.removeListener(M,L.type,L.fn,L.index)}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R)}}},getListeners:function(M,K){var P=[],L;if(!K){L=[I,J]}else{if(K==="unload"){L=[J]}else{L=[I]}}var R=(radius.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T&&T.length>0){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q})}}}}return(P.length)?P:null},_unload:function(R){var Q=rim.events.Event,O,N,L,K,M;for(O=0,K=J.length;O<K;++O){L=J[O];if(L){var P=window;if(L[Q.ADJ_SCOPE]){if(L[Q.ADJ_SCOPE]===true){P=L[Q.UNLOAD_OBJ]}else{P=L[Q.ADJ_SCOPE]}}L[Q.FN].call(P,Q.getEvent(R,L[Q.EL]),L[Q.UNLOAD_OBJ]);J[O]=null;L=null;P=null}}J=null;if(rim.env.Browser.ie&&I&&I.length>0){N=I.length;while(N){M=N-1;L=I[M];if(L){Q.removeListener(L[Q.EL],L[Q.TYPE],L[Q.FN],M)}N--}L=null}G=null;Q._simpleRemove(window,"unload",Q._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft]}else{if(L){return[L.scrollTop,L.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K))}}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K))}}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K)}}else{return function(){}}}}()}}();(function(){var A=rim.events.Event;A.on=A.addListener;if(A.isIE){A._dri=setInterval(function(){try{document.documentElement.doScroll("left");clearInterval(Env._dri);Env._dri=null;_ready()}catch(B){}},A.POLL_INTERVAL)}else{if(A.webkit){A._dri=setInterval(function(){var B=document.readyState;if("loaded"==B||"complete"==B){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}rim.events.EventProvider=function(){};rim.events.EventProvider.prototype={__rim_events:null,__rim_subscribers:null,subscribe:function(A,C,F,E){this.__rim_events=this.__rim_events||{};var D=this.__rim_events[A];if(D){D.subscribe(C,F,E)}else{this.__rim_subscribers=this.__rim_subscribers||{};var B=this.__rim_subscribers;if(!B[A]){B[A]=[]}B[A].push({fn:C,obj:F,override:E})}},unsubscribe:function(C,E,G){this.__rim_events=this.__rim_events||{};var A=this.__rim_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G)}}else{var B=true;for(var D in A){if(radius.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G)}}return B}return false},unsubscribeAll:function(A){return this.unsubscribe(A)},createEvent:function(G,D){this.__rim_events=this.__rim_events||{};var A=D||{};var I=this.__rim_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new rim.events.CustomEvent(G,H,E,rim.events.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback)}this.__rim_subscribers=this.__rim_subscribers||{};var F=this.__rim_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].override)}}}return I[G]},fireEvent:function(E,D,A,C){this.__rim_events=this.__rim_events||{};var G=this.__rim_events[E];if(!G){return null}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F])}return G.fire.apply(G,B)},hasEvent:function(A){if(this.__rim_events){if(this.__rim_events[A]){return true}}return false}};rim.events.KeyListener=function(A,F,B,C){if(!A){}else{if(!F){}else{if(!B){}}}if(!C){C=rim.events.KeyListener.KEYDOWN}var D=new rim.events.CustomEvent("keyPressed");this.enabledEvent=new rim.events.CustomEvent("enabled");this.disabledEvent=new rim.events.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A)}if(typeof B=="function"){D.subscribe(B)}else{D.subscribe(B.fn,B.scope,B.correctScope)}function E(J,I){if(!F.shift){F.shift=false}if(!F.alt){F.alt=false}if(!F.ctrl){F.ctrl=false}if(J.shiftKey==F.shift&&J.altKey==F.alt&&J.ctrlKey==F.ctrl){var G;if(F.keys instanceof Array){for(var H=0;H<F.keys.length;H++){G=F.keys[H];if(G==J.charCode){D.fire(J.charCode,J);break}else{if(G==J.keyCode){D.fire(J.keyCode,J);break}}}}else{G=F.keys;if(G==J.charCode){D.fire(J.charCode,J)}else{if(G==J.keyCode){D.fire(J.keyCode,J)}}}}}this.enable=function(){if(!this.enabled){rim.events.Event.addListener(A,C,E);this.enabledEvent.fire(F)}this.enabled=true};this.disable=function(){if(this.enabled){rim.events.Event.removeListener(A,C,E);this.disabledEvent.fire(F)}this.enabled=false};this.toString=function(){return"KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.id+"]":"")}};rim.events.KeyListener.KEYDOWN="keydown";rim.events.KeyListener.KEYUP="keyup";rim.events.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};rim.register("event",rim.events.Event,{version:"2.4.1",build:"742"});rim.events.handlers={};rim.events.handlers.button_on=function(D){var C=/^button(.*)?/i;var G=/^buttontxt(.*)?/i;var B=/^buttonimg(.*)?/i;var A=/^componentId(.*)?/i;var F=rim.events.Event.getTarget(D);var E=rim.events.Event.getRelatedTarget?rim.events.Event.getRelatedTarget(D):false;return F};rim.events.handlers.button_off=function(D){var C=/^button(.*)?/i;var F=/^buttontxt(.*)?/i;var B=/^buttonimg(.*)?/i;var A=/^componentId(.*)?/i;var E=rim.events.Event.getTarget(D);return E};Function.prototype.memoize=function(){var D={};var A=this;var C=arguments.length>0?arguments[i]:null;var B=function(){var E=[];for(var F=0;F<arguments.length;F++){E[F]=arguments[F]}if(!(E in D)){D[E]=A.apply(C,arguments)}return D[E]};B.unmemoize=function(){return A};return B};Function.prototype.unmemoize=function(){alert("Attempt to unmemoize an unmemoized function.");return null};Function.prototype.A=function(){/∗ arr ∗/;return this};Function.prototype.next=function(A){/∗ >> ∗/;var B=this;A=A.A();/∗ ensure g is a function ∗/;return function(C){return A(B(C))}};function CpsA(A){this.cps=A}CpsA.prototype.CpsA=function(){return this};CpsA.prototype.next=function(A){var B=this;var A=A.CpsA();return new CpsA(function(C,D){B.cps(C,function(E){A.cps(E,D)})})};CpsA.prototype.run=function(A){this.cps(A,function(){})};Function.prototype.CpsA=function(){var A=this;return new CpsA(function(B,C){C(A(B))})};function AsyncA(A){this.cps=A}AsyncA.prototype.AsyncA=function(){return this};AsyncA.prototype.next=function(A){var B=this;A=A.AsyncA();return new AsyncA(function(C,E,D){B.cps(C,E,function(G,F){A.cps(G,F,D)})})};AsyncA.prototype.run=function(A,B){B=B||new ProgressA();this.cps(A,B,function(){});return B};Function.prototype.AsyncA=function(){var A=this;return new AsyncA(function(B,D,C){C(A(B),D)})};var ConstA=function(A){return(function(){return A}).AsyncA()};function EventA(A){if(!(this instanceof EventA)){return new EventA(A)}this.eventname=A}EventA.prototype=new AsyncA(function(F,E,A){var D=this;function C(){rim.events.Event.removeListener(F,D.eventname)}function B(G){E.advance(C);C();A(G,E)}E.addCanceller(C);rim.events.Event.addListener(F,D.eventname,B)});function ProgressA(){if(!(this instanceof ProgressA)){return new ProgressA()}this.cancellers=[];this.observers=[]}ProgressA.prototype=new AsyncA(function(A,C,B){this.observers.push(function(D){B(D,C)})});ProgressA.prototype.addCanceller=function(A){this.cancellers.push(A)};ProgressA.prototype.advance=function(B){var A=radius.indexOf(this.cancellers,B);if(A>=0){this.cancellers.splice(A,1)}while(this.observers.length>0){this.observers.pop()()}};ProgressA.prototype.cancel=function(){while(this.cancellers.length>0){this.cancellers.pop()()}};AsyncA.prototype.repeat=function(A){var C=this;var A=A||0;return new AsyncA(function B(D,F,E){return C.cps(D,F,function(J,H){if(J.Repeat){function G(){clearTimeout(I)}H.addCanceller(G);var I=setTimeout(function(){H.advance(G);B(J.value,H,E)},A)}else{if(J.Done){E(J.value,H)}else{throw new TypeError("Repeat or Done?")}}})})};function Repeat(A){return{Repeat:true,value:A}}function Done(A){return{Done:true,value:A}}Function.prototype.repeat=function(A){return this.AsyncA().repeat(A)};AsyncA.prototype.or=function(A){var B=this;A=A.AsyncA();return new AsyncA(function(C,H,D){var I=new ProgressA();var G=new ProgressA();I.next(function(){G.cancel();G=null}).run();G.next(function(){I.cancel();I=null}).run();function E(){if(I){I.cancel()}if(G){G.cancel()}}function F(K,J){H.advance(E);D(K,J)}H.addCanceller(E);B.cps(C,I,F);A.cps(C,G,F)})};rim.foreach=function(C,B){for(var A=0;A<C.length;A++){B(C[A],A)}return C};rim.forin=function(B,A){for(name in B){if(typeof B[name]!=="function"){A(B[name],name)}}};rim.isarray=function(A){return A&&typeof A==="object"&&typeof A==="number"&&typeof A.splice==="function"&&!(A.propertyIsEnumerable("length"))};rim.memoizer=function(B,A){var C=function(E){var D=B[E];if(typeof D!=="number"){D=A(C,E);B[E]=D}return D};return C};rim.widgets={};rim.widgets.registry={};rim.serial_maker=function(){var B="";var A=0;return{set_prefix:function(C){B=String(C)},set_seq:function(C){A=C},gensym:function(){var C=B+A;A+=1;return C},get_index:function(){return A},reset_seq:function(C){this.seq=C}}};rim.widgets.registry.set=function(A){var A=A;rim.widgets.registry[A.type+"."+A.name]=A;return rim.widgets.registry[A.type+"."+A.name]};rim.widgets.Widget=function(C,A){var A=A||{};A.type=C.type||"generic widget";A.template=C.template||false;A.container_id=C.container_id;var D=C.children||false;var E=C.parent||false;var B=C.element_id||false;A.serial_maker=rim.serial_maker();A.serial_maker.set_prefix=A.type;A.serial_maker.set_seq=0;A.has_children=function(){if(D){return true}return false};var G=C.elements||false;var H=C.clone_container||false;A.actions=C.actions||{};A.height=C.height||0;A.width=C.width||0;A.name=C.name||"widget";A.initialized_status=false;var F=C.initialize||false;A.onShow=C.onShow||false;A.initialize=function(){if(F){F()}if(A.template){A.fill_template(function(){radius.debug("filling the template of"+A.name);if(G){rim.forin(G,function(I){I.initialize()})}})}else{if(G){rim.forin(G,function(I){I.initialize()})}}A.initialized_status=true};A.getElements=function(){return A.elements};A.fill_template=function(I){var J=rim.encodeURL("/templates/"+A.template,rim.versionBuildPostfix);radius.insertTemplate(J,A.container_id,I)};A.clone=function(I){rim.widgets.registry.set(A);var J=A.serial_maker.gensym();$("#"+A.element_id).clone().attr("id",A.element_id+J).prependTo("#navigation_panel");rim.widgets.registry.set(A);return this};return A};rim.widgets.NavContainer=function(I,H){I.initialize=I.initialize||function(){};var J=I.height||18;I.type="nav container";var H=rim.widgets.Widget(I);H.serial_maker=rim.serial_maker();H.serial_maker.set_prefix=H.type;H.serial_maker.set_seq=0;var E=H.initialize||false;H.height=J||H.height;H.navigation_buttons=[];var F=I.buttons;var G={};H.buttons=I.buttons||{};H.buttons_order=I.buttons_order||[];H.panel_container=I.panel_container;H.disabled=false;dojo.event.topic.subscribe("/CONN/status",H,"handleProxyStatusMessage");H.handleProxyStatusMessage=function(M){if(H.disabled&&M.newState==radius.disconnectHandler.STATES.connected){H.enableAllBtns();H.enableBalanceArea()}else{if(!H.disabled&&(M.newState==radius.disconnectHandler.STATES.disconnected||M.newState==radius.disconnectHandler.STATES.reconnecting)){H.disableBalanceArea();H.disableAllBtns()}}};dojo.event.topic.subscribe("CoinBalance",H,"handleBalanceMsg");H.handleBalanceMsg=function(M){if(radius.isNull(H.balanceAmountArea)){H.balanceAmountArea=radius.byId("navBalanceDomId")}H.balanceAmountArea.innerHTML=M};H.switchNavState=function(M){if(radius.isNotNull(H.currentNavButtonsObject)&&radius.compareArrays(H.currentNavButtonsObject,M)){return }H.currentNavButtonsObject=M;H.remove_buttons(H.navigation_buttons,function(){H.serial_maker=rim.serial_maker();H.serial_maker.set_prefix=H.type;H.serial_maker.set_seq=0;H.navigation_buttons=[];rim.foreach(M,function(N){H.addButton(F[N],N,function(){})})});radius.navContainer.autoShowOrHideBtns()};H.remove_buttons=function(N,M){var N=N;rim.foreach(N,function(O){var O=O;$("#"+F[O].domnode_id).remove();delete F[O].domnode_id;delete F[O].button_row_id});M()};H.disableBalanceArea=function(){if(H.navBalanceArea){H.navBalanceArea.className=H.navBalanceArea.className+" nav_balance_container_disabled";H.navBalanceArea.enabled=false}};H.enableBalanceArea=function(){if(H.navBalanceArea){H.navBalanceArea.className=H.navBalanceArea.className.replace("nav_balance_container_disabled","");H.navBalanceArea.enabled=true}};H.disableAllBtns=function(){rim.foreach(H.navigation_buttons,function(M){var M=M;H.disable_button(M)});H.disabled=true};H.enableAllBtns=function(){rim.foreach(H.navigation_buttons,function(M){H.enable_button(M)});H.disabled=false};H.disable_button=function(M){var M=M;$("#buttonimg"+radius.navButtons[M].button_row_id).fadeTo("slow",0.33);$("#buttontxt"+radius.navButtons[M].button_row_id).fadeTo("slow",0.33);$("#"+F[M].domnode_id).css("cursor","default");if(radius.navButtons[M].actions){rim.forin(radius.navButtons[M].actions,function(N,O){rim.events.Event.removeListener(F[M].domnode_id,"click")})}radius.navButtons[M].disabled=true};H.enable_button=function(M){var M=M;$("#buttonimg"+radius.navButtons[M].button_row_id).fadeTo("slow",1);$("#buttontxt"+radius.navButtons[M].button_row_id).fadeTo("slow",1);$("#"+F[M].domnode_id).css("cursor","pointer");if(radius.navButtons[M].actions){rim.forin(radius.navButtons[M].actions,function(N,O){rim.events.Event.addListener(F[M].domnode_id,"click",function(){if(N.allow_anonymous||radius.isLoggedInToRadius()){if(radius.panelcontainer){radius.panelcontainer.hidePanel()}N.action()}else{radius.showLoginRequiredPrompt(N.requires_auth_msg,M)}})})}radius.navButtons[M].disabled=false};H.addButton=function(M,O,Q){var N=M.panel_id||false;var R=M.actions||false;if(!M.container_id){throw (TypeError("buttons must have containers specified"))}var S=H.serial_maker.gensym();button_hole_clone=$("#"+M.container_id).clone().attr("id",M.container_id+S).prependTo("#navigation_panel");B(M.container_id+S);M.domnode_id=M.container_id+S;M.button_row_id=S;M.isTextShowing=true;L(M.imageinstance,M.container_id+S);K(M.text,M.container_id+S,M);var P=function(W){var V=/^componentId(.*)?/i;var Y=W.target;var U=Y.id.match(V)?Y.id:Y.parentNode.id;var X=radius.panelcontainer.panel_selected;var T=radius.panelcontainer.selectPanel(N,N)};if(N){$("#"+M.container_id+S).bind("click",P)}$("#"+M.container_id+S).hover(function(U){var T=radius.navButtons[O];if(!T.disabled){radius.byId("buttonimg"+S).className="nav_panel_component_image "+M.imageinstance.classes.on;radius.byId("buttonwrap"+S).className="nav_panel_button_event_layer nav_panel_gray_transparency";if(!T.isTextShowing){if($("#buttontxt"+S).css("display")=="none"){$("#tooltip").html(M.text).css("top",((U.pageY-10)/1)+"px").css("left",((U.pageX-($("#tooltip").width()+36))/1)+"px").show()}}}if(R&&R.hover_in){R.hover_in.action(U)}},function(U){var T=radius.navButtons[O];if(!T.disabled){radius.byId("buttonimg"+S).className="nav_panel_component_image "+M.imageinstance.classes.off;radius.byId("buttonwrap"+S).className="nav_panel_button_event_layer nav_panel_black_transparency";if(!T.isTextShowing){$("#tooltip").hide()}}if(R&&R.hover_out){R.hover_out.action(U)}});if(R){rim.forin(R,function(T,U){if(U!="hover_in"&&U!="hover_out"){rim.events.Event.addListener(M.container_id+S,U,function(){if(T.allow_anonymous||radius.isLoggedInToRadius()){if(radius.panelcontainer){radius.panelcontainer.hidePanel()}T.action()}else{radius.showLoginRequiredPrompt(T.requires_auth_msg,O)}})}})}G[M.domnode_id]=O;H.navigation_buttons.push(O);Q()};var B=function(N){var M="buttonwrap"+(H.serial_maker.get_index()-1);radius.addElement("<div id='"+M+"' class='nav_panel_button_event_layer nav_panel_black_transparency'>&nbsp;</div>",N)};var L=function(N,O){var M="buttonimg"+(H.serial_maker.get_index()-1);radius.addElement("<div id='"+M+"' class='nav_panel_component_image "+N.classes.off+"'></div>",O)};var K=function(T,S,P){var M="buttontxt"+(H.serial_maker.get_index()-1);radius.addElement("<div id='"+M+"' class='nav_panel_component_text' unselectable='on'>"+T+"&nbsp;&nbsp;&nbsp;</div>",S);var R=$("#"+M).width();var O=40;var Q=R+O+2;P.expandedWidth=Q;P.collapsedWidth=O;var N="buttonwrap"+(H.serial_maker.get_index()-1);radius.css.setProperty(N,"width",Q)};var D=function(N,M){M=M||radius.css.width(N);return function(O){radius.html.fx.slide(N,"left",M);return O.currentTarget}};var A=function(N,M){return function(O){radius.html.fx.slide(N,"right",M);return O.currentTarget}};H.initializeBalanceArea=function(){H.navBalanceArea=radius.byId("navBalanceAreaDomId");if(H.navBalanceArea){H.navBalanceArea.enabled=true;H.navBalanceArea.onclick=function(){if(this.enabled){radius.windows.getBankWindow().open()}return false}}radius.html.show(H.navBalanceArea)};H.autoShowOrHideBtns=function(U){if(radius.isNull(U)){U="null"}if(!radius.topNavSpacer){radius.topNavSpacer=radius.byId("navigation_spacer")}var W=radius.topNavSpacer?radius.topNavSpacer.offsetTop:0;var V=W>0;if(V){var R=H.navigation_buttons;for(var S=0;S<R.length;S++){var T=R[S];var N=H.buttons[T];var M=N.container_id;var Y=radius.byId(M);var P=radius.byId("buttontxt"+S);if(P.style.display!="none"){radius.html.hide(P);N.isTextShowing=false;var O=radius.byId("buttonwrap"+S);O.style.width=N.collapsedWidth;H.autoShowOrHideBtns("hide");break}}}else{if(!V&&U!="hide"){var R=H.navigation_buttons;for(var X=R.length-1;X>=0;X--){var T=R[X];var Q=(X);var N=H.buttons[T];var M=N.container_id;var Y=radius.byId(M);var P=radius.byId("buttontxt"+Q);if(P.style.display=="none"){radius.html.show(P);N.isTextShowing=true;var O=radius.byId("buttonwrap"+Q);O.style.width=N.expandedWidth;H.autoShowOrHideBtns("show");break}}}}};H.fillerHardResize=function(){$("#nav_panel_elastic_filler").css("width","auto");$("#nav_panel_elastic_filler").css("float","right")};var C=function(){if(dojo.render.html.ie){H.fillerHardResize()}};C();rim.widgets.registry.set(H);return H};rim.widgets.PanelContainer=function(C,A){C.type="panel container";C.initialize=C.initialize||function(){};C.elements=C.panels||false;if(C.elements){}var A=rim.widgets.Widget(C);A.serial_maker=rim.serial_maker();A.serial_maker.set_prefix=A.type;A.serial_maker.set_seq=0;var B=A.initialize||false;A.shade_handle=C.shade_handle||false;A.panels=C.panels||false;A.height=C.height||60;A.panel_selected=C.panel_selected||false;A.shade_handle=C.shade_handle;A.postCreate=C.postCreate||false;$("#nav_panel_drop_shade").height(60);A.showDefault=function(){var D="login";A.postCreate();var E=radius.getParams();if(radius.isNotNull(E.showwin)&&E.showwin=="signup"){D="signup";if(radius.config.showSignUpWin){radius.suppressdefaultpanel=true}}setTimeout(function(){if(!radius.suppressdefaultpanel){if(radius.isLoggedInToRadius()){radius.navContainer.switchNavState(radius.post_login_order)}else{if(!radius.panelcontainer.panel_selected){A.showPanel(D)}}}},1000)};A.addPanel=function(D){var F={};F.height=D.height||160;F.defaultpanel=D.defaultpanel||false;F.visible=D.visible||false;F.panel_template=D.panel_template||false;var E=rim.encodeURL("/templates/"+F.panel_template,rim.versionBuildPostfix);radius.insertTemplate(E,"panel_content_pane")};A.selectPanel=function(D,E){if(A.panel_selected){if((A.panel_selected==D)&&(E==D)){A.hidePanel(D);return false}else{A.closePanel(A.panel_selected);A.showPanel(D)}}else{A.showPanel(D)}return A.panel_selected};A.hidePanel=function(E){if(radius.isNull(A.panel_selected)){return }var E=E||A.panel_selected;if(radius.isNull(A.panels)||radius.isNull(A.panels[E])){return }if(radius.isNotNull(E)&&E!=false){if(E!=A.panel_selected){E=A.panel_selected}var F=100;if(radius.isNotNull(A.panels[E].panel_content_pane)){$("#"+A.panels[E].panel_content_pane).hide()}$("#shade_container").slideUp(F);A.panel_selected=false;$("#buttonwrap"+radius.navContainer.buttons[E].button_row_id+":not(.nav_panel_black_transparency)").toggleClass("nav_panel_black_transparency").toggleClass("nav_panel_gray_transparency")}if((E=="login"||E=="signup")&&radius.navContainer.buttons.login.domnode_id){var D=radius.isLoggedInToRadius();if(radius.isLoggedInToRadius()){radius.navContainer.switchNavState(radius.post_login_order)}}if(radius.panelcontainer.panel_selected=="signup"){if(radius.byId("signup_panel")&&radius.html.isVisible(radius.byId("signup_panel"))){bootstrap.errorcatcher("Signup status: panel rendered correctly after call","RadiusIM.init() ","504")}else{bootstrap.errorcatcher("Signup status, ERROR: panel not rendering after call ","RadiusIM.init() ","504")}}};A.closePanel=function(D){var D=D||A.panel_selected;if(radius.isNotNull(D)&&D!=false){$("#"+A.panels[D].panel_content_pane).hide();$("#shade_container").hide();var E=A.panels[D].height||100;A.panel_selected=false;$("#buttonwrap"+radius.navContainer.buttons[D].button_row_id+":not(.nav_panel_black_transparency)").toggleClass("nav_panel_black_transparency").toggleClass("nav_panel_gray_transparency")}};A.showPanel=function(D){var E=A.panels[D].height||100;$("#shade_container").height(E);$("#nav_panel_drop_shade_overlay").height(E);$("#panel_container").css("z-index","10000");$("#nav_panel_drop_shade").height(E);if(!dojo.render.html.safari){$("#shade_container").slideDown(E)}else{$("#shade_container").fadeIn(E*2)}A.panel_selected=D;if(A.panels[D].visible){}else{A.panels[D].visible=true}$("#buttonwrap"+radius.navContainer.buttons[D].button_row_id+":not(.nav_panel_gray_transparency)").toggleClass("nav_panel_gray_transparency").toggleClass("nav_panel_black_transparency");$("#"+A.panels[D].panel_content_pane).show();if((D=="login"||D=="signup")&&!radius.navContainer.buttons.login.domnode_id){radius.navContainer.switchNavState(radius.navContainer.buttons_order)}if(radius.panelcontainer.panel_selected=="signup"){if(radius.byId("signup_panel")&&radius.html.isVisible(radius.byId("signup_panel"))){bootstrap.errorcatcher("Signup status: panel rendered correctly after call","RadiusIM.init() ","504")}else{bootstrap.errorcatcher("Signup status, ERROR: panel not rendering after call ","RadiusIM.init() ","504")}}if(A.panels[D].onShow){A.panels[D].onShow()}};A.swapPanel=function(G){var D=A.panels[G].height||100;var F=A.panels[A.panel_selected].height||100;var E=Math.abs(F)-Math.abs(D);$("#"+A.panels[A.panel_selected].panel_content_pane).hide();$("#"+A.panels[G].panel_content_pane).show();$("#shade_container").animate({to_panel_height:"toggle"},E)};A.templating=function(){return };A.initialize=function(){if(B){B()}rim.events.Event.addListener(A.shade_handle,"click",function(){A.hidePanel()});rim.events.Event.addListener("panel_close_link","click",function(){A.hidePanel()})};rim.widgets.registry.set(A);return A};rim.widgets.SpriteContainer=function(C){C.type=C.type||"css_sprite";C.name=C.name||false;C.initialize=C.initialize||function(){};var A=rim.widgets.Widget(C);var B=A.initialize||false;A.classes=C.classes;A.content_pane=C.content_pane||"";A.actions=C.actions;A.initialize=function(){if(B){B()}};rim.widgets.registry.set(A);return A};rim.widgets.Panel=function(C){C.type="panel";C.initialize=C.initialize||function(){};var D=C.initialize||false;var A=rim.widgets.Widget(C);var B=A.initialize||false;A.template=C.template||false;A.height=C.height||100;A.onShow=C.onShow||false;A.panel_close_link=C.panel_close_link||"panel_close_link";A.defaultpanel=C.defaultpanel||false;A.visible=C.visible||false;A.panel_content_pane=C.panel_content_pane||false;A.panel_actions=C.panel_actions||false;A.initialize=function(){if(B){B()}rim.forin(A.actions,function(E){});if(D){D()}};rim.widgets.registry.set(A);return A};rim.versionBuildPostfix={version:GLOBAL_CONFIG.version,build:GLOBAL_CONFIG.build,lang:(radiusIMTranslations)?radiusIMTranslations.languageFile:"-1"};rim.encodeURL=function(A,D){var C=[];C.push(A);if(radius.sessionid){C.push(";jsessionid="+radius.sessionid)}if(D){var B=[];for(i in D){B.push(i+"="+encodeURIComponent(D[i]))}C.push("?",B.join("&"))}return C.join("")};if(!this["dojo"]){document.write('<script type="text/javascript" src="/dojo0/dojo.js"><\/script>')}function startRadius(){dojo.provide("radius");radius.loaded=false;dojo.setModulePrefix("radius",GLOBAL_CONFIG.radiusPrefix)};dojo.provide("radius.fixes");debug_indent=0;dojo.hostenv.indentString=function(){var A="";for(var B=0;B<debug_indent;B++){A+="    "}return A};dojo.hostenv.println=function(A){if(!dojo.hostenv._println_safe){dojo.hostenv._println_buffer.push(A)}else{try{var E=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);if(!E){E=document.getElementsByTagName("body")[0]||document.body}var D=document.createElement("pre");if(debug_indent){D.style.marginLeft=(debug_indent*30)+"px"}D.style.display="inline";if(dojo.render.html.ie){A=A.replace(/\n/g,"<br>");D.innerHTML=A}else{D.appendChild(document.createTextNode(A))}if(E.firstChild){E.insertBefore(document.createElement("br"),E.firstChild);E.insertBefore(D,E.firstChild)}else{E.appendChild(D);E.appendChild(document.createElement("br"))}}catch(C){try{document.write("<div>"+A+"</div>")}catch(B){window.status=A}}}};dojo.io.cookie.isSupported=function(){dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,"/");var A=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");var B=(A=="CookiesAllowed");if(B){this.deleteCookie("__TestingYourBrowserForCookieSupport__")}return B};dojo.style.getUnitValue=function(E,D,F){E=dojo.byId(E);var A={value:0,units:"px"};var C=dojo.style.getComputedStyle(E,D);if(!(C)||(C=="auto"&&F)){return A}if(dojo.lang.isUndefined(C)){A.value=NaN}else{var B=C.match(/(\-?[\d.]+)([a-z%]*)/i);if(!B){A.value=NaN}else{A.value=Number(B[1]);A.units=B[2].toLowerCase()}}return A};dojo.provide("radius.config");radius.config=new function(){this.locals={usersPerGrid:72,recentsPerGrid:10,maxFavors:100,maxRecents:20,synchronousMapUpdate:false,updateLocalsSBarRespondTimeout:80,timeToPauseBetweenLoadingLocals:20,updaleLocalsRefreshEnabled:true,updateLocalsRefreshInterval:10*60*1000};this.buddyInfoOverlay={fadeInParams:{ie:{endOpacity:0.95,frameRate:10,increment:0.3},dflt:{endOpacity:0.95,frameRate:60,increment:0.15}}};this.photos={baseurl:"/userphotos",baseS3Url:".radiusim.com",extension:".jpg"};this.urls={staticBase:"http://s",staticS3Base:"http://st",staticS3Suffix:".radiusim.com",numStaticHosts:6,firstStaticHost:0,staticHostDomain:"-s3cdn.radiusim.com",defaultPhotoBaseUrl:"http://s0-s3cdn.radiusim.com",paymentsUrl:"/a/payments"};this.urls.staticS3PhotosSuffix=this.urls.staticS3Suffix+"/userphotos";this.reconnect={delaySeconds:3,slowDelaySeconds:60,numSecondsToTryToReconnectBeforeGivingUp:120};this.contactsProviders={hotmail:{simpleName:"hotmail",enabled:true,enterName:true,showOptionalMsg:false,showBulletin:false,msgSender:"htmlEmailSender",link:"hotmailLinkDomId",pane:"genericFormDomId",imgClass:"hotmailImgClass",suffix:["@hotmail.com","@live.com","@msn.com"],usernameInputWidth:"110px",account:"msn"},hotmail_native:{simpleName:"hotmail",enabled:true,enterName:true,showOptionalMsg:false,showBulletin:false,msgSender:"htmlEmailSender",link:"hotmailLinkDomId",pane:"genericFormDomId",imgClass:"hotmailImgClass",suffix:["@hotmail.com","@live.com","@msn.com"],usernameInputWidth:"110px",account:"msn"},yahoo:{simpleName:"yahoo",enabled:true,enterName:true,showOptionalMsg:false,showBulletin:false,msgSender:"htmlEmailSender",link:"yahooLinkDomId",pane:"genericFormDomId",imgClass:"yahooImgClass",suffix:"@yahoo.com",usernameInputWidth:"110px",account:"yahoo"},gmail:{simpleName:"gmail",enabled:true,enterName:true,showOptionalMsg:false,showBulletin:false,msgSender:"htmlEmailSender",link:"gmailLinkDomId",pane:"genericFormDomId",imgClass:"gmailImgClass",suffix:"@gmail.com",usernameInputWidth:"110px",account:"jabber"},aol:{simpleName:"aol",enabled:true,enterName:true,showOptionalMsg:false,showBulletin:false,msgSender:"htmlEmailSender",link:"aolLinkDomId",pane:"genericFormDomId",imgClass:"aolImgClass",suffix:["@aol.com","@aim.com"],usernameInputWidth:"110px",account:"aol"},emails:{simpleName:"emails",enabled:false,enterName:true,showOptionalMsg:false,showBulletin:false,msgSender:"htmlEmailSender",link:"emailsLinkDomId",pane:"emailsFormDomId",imgClass:(radiusIMTranslations.findFriendsEnterEmailImgClass||"enterEmailsClass_en"),suffix:"",usernameInputWidth:"110px"},myspace:{simpleName:"myspace",enabled:true,enterName:false,showOptionalMsg:true,showBulletin:true,msgSender:"myspacePrivateMsgSender",bulletinMsgSender:"myspaceBulletinSender",link:"myspaceLinkDomId",pane:"genericFormDomId",imgClass:"myspaceImgClass",suffix:"",usernameInputWidth:"212px"},facebook:{simpleName:"facebook",enabled:true,enterName:false,showOptionalMsg:true,showBulletin:false,msgSender:"facebookPrivateMsgSender",link:"facebookLinkDomId",pane:"genericFormDomId",imgClass:"facebookImgClass",suffix:"",usernameInputWidth:"212px"},bebo:{simpleName:"bebo",enabled:true,enterName:false,showOptionalMsg:true,showBulletin:false,msgSender:"beboPrivateMsgSender",link:"beboLinkDomId",pane:"genericFormDomId",imgClass:"beboImgClass",suffix:"",usernameInputWidth:"212px"},hi5:{simpleName:"hi5",enabled:true,enterName:false,showOptionalMsg:true,showBulletin:false,msgSender:"hi5PrivateMsgSender",link:"hi5LinkDomId",pane:"genericFormDomId",imgClass:"hi5ImgClass",suffix:"",usernameInputWidth:"212px"},orkut:{simpleName:"orkut",enabled:true,enterName:false,showOptionalMsg:true,showBulletin:false,msgSender:"orkutPrivateMsgSender",link:"orkutLinkDomId",pane:"genericFormDomId",imgClass:"orkutImgClass",suffix:"",usernameInputWidth:"212px"}};this.contactProvidersEmailLimit=1000;this.preloadMessagingWindowTurnedOn=true;this.preloadMessagingWindowName="preload_msg_win";this.loginDelays={getSystemMessages:3000,preloadMessagingWindow:90*1000,openMap:1,showInitialMsg:1};this.rosterBuddyList={enableNicknamePopUp:true,usingFragment:true};this.enableDragAndDrop=true;this.showContactImport=true;this.autoDownloadNotifierApplet=false;this.showMapBeforeLogin=false;this.showLoginWin=true;this.showSignUpWin=false;this.mapMaxZoom=17;this.liveHomePageMapMaxZoom=10;this.widgetSettingsTab={widgetDefaultWidth:"240",widgetDefaultHeight:"160",widgetDefaultZoomLevel:"10",widgetPreviewMaxHeight:"160"};this.classesShowingDefaultCM={MessnWinConversationClass:true,MessnConversationClass:true,MessnWinTextareaClass:true,MessnWinIndividualMessageClass:true,setWinWidgetTextareaClass:true,messnWinOutgonMsgUinClass:true,messnWinOutgonMsgStampClass:true,radiustimestamp:true,messnWinIncomMsgTextClass:true,generatedWinLinkClass:true,simpleLinkClass:true};this.enableLocalSearchInMap=false;this.enableClientUnidleMonitoring=true;this.enableClientIdleMonitoring=false;this.idleTimeoutMins=15;this.typingNotification={enableTypingStatusMessaging:true,updateIMTextEnteredTimeout:3*1000,resendStatusTimerPeriod:8*1000,MSNClearBuddyTypingStatusTimeout:6*1000};this.MAX_INCOMING_IM_LENGTH=10500;this.MAX_OUTGOING_IM_LENGTH=10000;this.distanceConversions={mile:65,km:105};this.shadePanelEnabled=false;this.groupChatEnabled=true;this.privacyFilteringEnabled=true;this.aliasInputEnabled=true;this.reuseMsgWinsUsingPool=true;this.loginWinDefPosLeft=50;this.loginWinDefPosTop=100;this.supportedBgColorList=["blue","green","pink","purple","yellow","red","black","gray"];this.navigationPanelHeight=16;this.getSkyscraperWidth=function(){if(adsEnabled&&radius.isSkyscraperOpen){return 130}else{return 0}};this.radiusHelpPage=radiusIMTranslations.urls.radiusHelpPage||"http://blog.radiusim.com/help-faq/";this.findMeEnabled=true;this.adRefreshMS=3*60*1000;this.windowConstraintX=80;this.windowConstraintY=18;this.yNotifierEnabled=rim.env.Browser.ie?yNotifierEnabledForIE:true;this.videoChatEnabled=cfgEnableVChat;this.useVideoChatInvites=true};dojo.provide("dojo.collections.Collections");dojo.collections={Collections:true};dojo.collections.DictionaryEntry=function(B,A){this.key=B;this.value=A;this.valueOf=function(){return this.value};this.toString=function(){return this.value}};dojo.collections.Iterator=function(B){var C=B;var A=0;this.atEnd=(A>=C.length-1);this.current=C[A];this.moveNext=function(){if(++A>=C.length){this.atEnd=true}if(this.atEnd){return false}this.current=C[A];return true};this.reset=function(){A=0;this.atEnd=false;this.current=C[A]}};dojo.collections.DictionaryIterator=function(C){var D=[];for(var B in C){D[D.length]=C[B]}var A=0;this.current=null;this.entry=null;this.key=null;this.value=null;this.atEnd=false;this.moveNext=function(){if(this.atEnd){return !this.atEnd}this.entry=this.current=D[A];if(this.entry){this.key=this.entry.key;this.value=this.entry.value}if(A==D.length){this.atEnd=true}A++;return !this.atEnd};this.reset=function(){A=0;this.atEnd=false}};dojo.provide("dojo.collections.Queue");dojo.collections.Queue=function(A){var B=[];if(A){B=B.concat(A)}this.count=B.length;this.clear=function(){B=[];this.count=B.length};this.clone=function(){return new dojo.collections.Queue(B)};this.contains=function(D){for(var C=0;C<B.length;C++){if(B[C]==D){return true}}return false};this.copyTo=function(C,D){C.splice(D,0,B)};this.dequeue=function(){var C=B.shift();this.count=B.length;return C};this.enqueue=function(C){this.count=B.push(C)};this.getIterator=function(){return new dojo.collections.Iterator(B)};this.peek=function(){return B[0]};this.toArray=function(){return[].concat(B)}};dojo.require("dojo.collections.Queue");dojo.provide("radius.utils");dojo.provide("radius.utils.DisconnectHandler");dojo.provide("radius.utils.LoadingBar");radius.insertCssFile=dojo.style.insertCssFile;radius.byId=function(A){return document.getElementById(A)};radius.handleError=function(D,B,G,A,K,C,H,F){if(!F){radius.recordError(G,A,C,B,H)}var I=B;var E=A;var J=null;if(D==undefined||D==null||D=="default"){J=GLOBAL_CONFIG.defaultErrorMsg}else{if(dojo.lang.isOfType(D,Error)){if(GLOBAL_CONFIG.debug){J="error object passed as userMsg.  Should make this more meaningful to the user.  Error: "+D.message}else{J=GLOBAL_CONFIG.defaultErrorMsg}if(H==undefined||H==true){if(K!="default"){radius.showErrorDialog(null,D,"d'oh",K)}else{radius.showErrorDialog(null,D,"d'oh")}}}else{if(GLOBAL_CONFIG.debug){acualUserMsg=I}J=D}}if(H==undefined||H==true){if(K!="default"){radius.showErrorDialog(null,J,"d'oh",K)}else{radius.showErrorDialog(null,J,"d'oh")}}};radius.prepareText=function(F,E){var D=F.match(/\%\{([^\}]+)\}/g);if(D){for(var B=0;B<D.length;B++){var C=D[B];var A=C.substring(2,C.length-1);F=F.replace(C,E[A])}}return F};radius.forceWordBreak=function(F,E){if(F.length<=E){return F}var A="<wbr/>";var C;var D;for(var B=0;B<F.length;B++){C=F.substring(B,B+E);if(C.length<E){break}D=F.substring(B,B+E+A.length+1);if(C.search(" ")==-1&&D.search(A)==-1){F=F.substring(0,B+E)+A+F.substring(B+E,F.length);B+=E+A.length}}return F};radius.prepareHTML=function(A,B){return radius.prepareText(dojo.byId(A).innerHTML,B)};radius.CloneObject=function(A){for(i in A){if(radius.typeOf(A[i])=="object"){this[i]=new radius.CloneObject(A[i])}else{this[i]=A[i]}}};radius.clone=function(A){return new radius.CloneObject(A)};radius.mixin=function(C,B){for(var A in B){C[A]=B[A]}};radius.extend=function(A,B){radius.mixin(A.prototype,B)};radius.inherits=function(A,B){if(typeof B!="function"){dojo.raise("superclass: "+B+" broken")}A.prototype={};radius.extend(A,B.prototype);A.prototype.constructor=A;A.superclass=B.prototype};radius.isUndefined=function(A){return typeof A==="undefined"};radius.hasOwnProperty=function(A,B){if(Object.prototype.hasOwnProperty){return A.hasOwnProperty(B)}return !radius.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B]};radius.isNull=function(A){return A==undefined||A==null};radius.isNotNull=function(A){return A!=undefined&&A!=null};radius.isEmptyStr=function(A){return A==undefined||A==null||dojo.string.trim(A).length==0};radius.isNotEmptyStr=function(A){return !radius.isEmptyStr(A)};radius.isString=function(A){return typeof A==="string"};radius.obj2str=function(D,A,E){if(!E){E=1}if(A&&E>A){return"<LIMIT>"}if(D==null){return"null"}else{if(D.constructor==String){return escapeJSONString(D)}else{if(D.constructor==Number){return D.toString()}else{if(D.constructor==Boolean){return D.toString()}else{if(D.constructor==Date){return'{toString: "'+D.toString()+'", time: '+D.valueOf()+"}"}else{if(D.constructor==Array){if(A&&E==A){return"ARRAY<length = "+D.length+">"}else{var B=[];for(var C=0;C<D.length;C++){B.push(radius.obj2str(D[C],A,E+1))}return"["+B.join(", ")+"]"}}else{var B=[];for(attr in D){if(D[attr]==null){B.push('"'+attr+'": null')}else{if(typeof D[attr]=="function"){}else{B.push(escapeJSONString(attr)+": "+radius.obj2str(D[attr],A,E+1))}}}return"{"+B.join(", ")+"}"}}}}}}};radius.obj2txt=radius.obj2str;radius.debug=function(B){if(!GLOBAL_CONFIG.debug){return }var C=new Date();var A=C.getHours()+":"+C.getMinutes()+":"+C.getSeconds()+"."+C.getMilliseconds();dojo.debug.call(dojo,"["+dojo.io.cookie.getCookie("RADSVRID")+" - "+A+"]"+B)};radius.debugException=function(G,C,A){var B=G+":\n";if(C&&C.code){var F="";switch(C.code){case JSONRpcClient.Exception.CODE_ERR_PARSE:F="CODE_ERR_PARSE";break;case JSONRpcClient.Exception.CODE_ERR_NOMETHOD:F="CODE_ERR_NOMETHOD";break;case JSONRpcClient.Exception.CODE_ERR_UNMARSHALL:F="CODE_ERR_UNMARSHALL";break;case JSONRpcClient.Exception.CODE_ERR_MARSHALL:F="CODE_ERR_MARSHALL";break;case JSONRpcClient.Exception.CODE_REMOTE_EXCEPTION:F="CODE_REMOTE_EXCEPTION";break}B=B+F+"["+C.code+"]: ";B=B+C.name+"\n"+C.message;if(C.name!="JSONRpcClientException"){B=B+"\nStack trace:\n"+C.javaStack}}else{var D=(C&&C.name)?C.name:"N/A";var E=(C&&C.message)?C.message:"N/A";B="JSONROC did not return an error code "+D+": "+E}if(!A){radius.handleError(radiusIMTranslations.Msg363||"D'oh! An unexpected error has occured, sorry about that. Please try refreshing the page. You can also email us at feedback@radiusim.com. ",B,"radius.utils","radius.debugException","default",C)}else{radius.recordError("JSONRPC","debugException",C,B,A)}};radius.radiusUri=function(A){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+GLOBAL_CONFIG.radiusPrefix+"/",A)};radius.cssUri=function(A){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+"../css/",A)};radius.imageUri=function(A){return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+"http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/",A)};radius.setTimeout=function(C,B){if(dojo.lang.isString(C)){C=window[C]}if(arguments.length>2){var A;if(arguments.slice){A=arguments.slice(2)}else{A=[];for(var D=2;D<arguments.length;D++){A.push(arguments[D])}}return setTimeout(function(){C.apply(C,A);C=B=A=undefined},B)}else{return setTimeout(C,B)}};radius.setTimeoutM=function(C,E,B){if(dojo.lang.isString(E)){E=C[E]}if(arguments.length>3){var A;if(arguments.slice){A=arguments.slice(3)}else{A=[];for(var D=3;D<arguments.length;D++){A.push(arguments[D])}}return setTimeout(function(){E.apply(C,A);C=E=B=A=undefined},B)}else{return setTimeout(function(){E.call(C);C=E=B=undefined},B)}};radius.setInterval=function(C,B){if(dojo.lang.isString(C)){C=window[C]}if(arguments.length>2){var A;if(arguments.slice){A=arguments.slice(2)}else{A=[];for(var D=2;D<arguments.length;D++){A.push(arguments[D])}}return setInterval(function(){C.apply(C,A);B=undefined},B)}else{return setInterval(C,B)}};radius.setIntervalM=function(C,E,B){if(dojo.lang.isString(E)){E=C[E]}if(arguments.length>3){var A;if(arguments.slice){A=arguments.slice(3)}else{A=[];for(var D=3;D<arguments.length;D++){A.push(arguments[D])}}return setInterval(function(){E.apply(C,A);B=undefined},B)}else{return setInterval(function(){E.call(C);B=undefined},B)}};radius.utils.initializeJsonRPC=function(D){try{var A=GLOBAL_CONFIG.jsonUrl;if(ssoLoginResult&&ssoLoginResult.subsessionId){A=A+"/"+ssoLoginResult.subsessionId}var C=new JSONRpcClient(radius.encodeURL(A));radius.disconnectHandler=new radius.utils.DisconnectHandler(C);radius.jsonrpc=radius.disconnectHandler.createProxy(D)}catch(B){radius.handleError(dojo.errorToString(B),"Error caught in initializeJsonRPC [radius_onLoad_bindParams_load]","radius.utils","radius.utils.initializeJsonRPC","default",B)}};radius.setJSessionID=function(B){if(radius.sessionid!=B){radius.sessionid=B;var A=radius.disconnectHandler.jsonrpc.serverURL;radius.disconnectHandler.jsonrpc.serverURL=radius.encodeURL(GLOBAL_CONFIG.jsonUrl);var C=radius.disconnectHandler.jsonrpc.serverURL}};JSONRpcClient.toplevel_ex_handler=function(A){radius.debugException("JSON RPC EXCEPTION:",A)};JSONRpcClient.max_req_active=10;radius.getParams=function(){if(radius.isNull(radius.urlParams)){var A=document.URL.indexOf("?");var F=new Array();var E="";if(A!=-1){E+=document.URL.substring(A+1,document.URL.length)}if(radius.isNotNull(radius.passedInParams)){var G=/, /g;var C=radius.passedInParams.replace("{","").replace("}","").replace(G,"&");if(E!=""){E+="&"}E+=C}if(E!=""){var D=E.split("&");for(var B=0;B<D.length;B++){nameVal=D[B].split("=");F[unescape(nameVal[0])]=unescape(nameVal[1])}}radius.urlParams=F;return F}else{return radius.urlParams}};function _proxyAsyncCallback_callback(A,B){if(B!=null&&this.handler.isDisconnectedError(B)){this.handler.errorOccured=true;this.handler.handleDisconnect(B,"_proxyAsyncCallback_callback");var C=this;radius.setTimeout(function(){C.sourceHandler(A,B)},1)}else{this.sourceHandler(A,B)}}function _ping_load(B,C,A){if(C.result=="success"){this._resetPingCounter();radius.setTimeoutM(this.dhandler,"connectionRestored",10)}else{this.dhandler.onPingError()}this.dhandler=undefined}function _ping_error(){this.dhandler.onPingError();this.dhandler=undefined}radius.reloadPage=function(){window.location.replace("/")};radius.utils.DisconnectHandler=function(A){this.STATUS_TOPIC="/CONN/status";this.STATES={connected:"CONNECTED",disconnected:"DISCONNECTED",reconnecting:"RECONNECTING",shuttingdown:"SHUTTINGDOWN"};this.jsonrpc=A;this.connected=false;this.inHandling=false;this.errorOccured=false;this.autoReconnectEnabled=false;this.creds=null;this.savedAsyncCalls=new dojo.collections.Queue();this.pingNumber=0;this.pingStartTime=null;this.lastCallTimestamp=null;this.currentState=null;this.manualKillReconnect=false};radius.extend(radius.utils.DisconnectHandler,{constants:{NUM_OF_RETRIES:radius.config.reconnect.numOfRetries,SECONDS_TO_PING:radius.config.reconnect.numSecondsToTryToReconnectBeforeGivingUp,DELAY_SECONDS:radius.config.reconnect.delaySeconds,SLOW_DELAY_SECONDS:radius.config.reconnect.slowDelaySeconds,PING_URL:"/ping.js"},remoteObjectDescriptors:[{name:"logic",cacheCallsWhenDisconnected:true},{name:"security",cacheCallsWhenDisconnected:true},{name:"profile",cacheCallsWhenDisconnected:true},{name:"photo",cacheCallsWhenDisconnected:true},{name:"signup",cacheCallsWhenDisconnected:true},{name:"roster",cacheCallsWhenDisconnected:true},{name:"locals",cacheCallsWhenDisconnected:true},{name:"gfacade",cacheCallsWhenDisconnected:false},{name:"location",cacheCallsWhenDisconnected:true},{name:"IM",cacheCallsWhenDisconnected:true},{name:"lookups",cacheCallsWhenDisconnected:true},{name:"ping",cacheCallsWhenDisconnected:false},{name:"gifts",cacheCallsWhenDisconnected:false}],setCachedCreds:function(A){if(!A||(!(A.ssoToken||(A.username&&A.password)))){}else{this.creds=A}},clearCachedCreds:function(){if(this.creds){this.creds.password=null;this.creds.ssoToken=null}},enableAutoReconnect:function(){this.autoReconnectEnabled=true},disableAutoReconnect:function(){this.autoReconnectEnabled=false;this.creds=null},areRemoteCallsDisabled:function(){return this.currentState==this.STATES.disabled},preventFurtherServerCalls:function(){this.autoReconnectEnabled=false;this.setState(this.STATES.shuttingdown)},getSavedAsyncCallsQueue:function(){return this.savedAsyncCalls},setSavedAsyncCallsQueue:function(A){this.savedAsyncCallsQueue=A},addSavedAsyncCalls:function(A){this.savedAsyncCalls=A},validateState:function(A){if(A!=this.STATES.connected&&A!=this.STATES.disconnected&&A!=this.STATES.reconnecting&&A!=this.STATES.shuttingdown){throw new Error("Illegal state: "+A)}},setState:function(A){this.validateState(A);var B=this.currentState;this.currentState=A;if(A==this.STATES.reconnecting){var C=this;setTimeout(function(){if(C.currentState!=C.STATES.connected){dojo.event.topic.publish(C.STATUS_TOPIC,{newState:C.currentState,prevState:B});this.win=radius.windows.getInfoWindow();this.win.open()}},3*1000)}else{dojo.event.topic.publish(this.STATUS_TOPIC,{newState:this.currentState,prevState:B})}},isConnected:function(){return this.currentState==this.STATES.connected},doProxyCall:function(C,D){if(this.areRemoteCallsDisabled()){return }if(D.length>0&&dojo.lang.isFunction(D[0])){if(this.errorOccured==true&&C.cacheCallsWhenDisconnected){this.savedAsyncCalls.enqueue({proxyCall:C,args_:D})}else{try{var B={handler:this,sourceHandler:D[0],sourceArgs:D,proxyCall:C,callback:_proxyAsyncCallback_callback};var A=[dojo.lang.hitch(B,"callback")];for(i=1;i<D.length;i++){A[i]=D[i]}if(!radius.driver||!radius.driver.isConnected()){return radius.validateSessionV2(function(){return C.what.apply(C.obj,A)})}else{return C.what.apply(C.obj,A)}}catch(E){if(!this.inHandling&&this.isDisconnectedError(E)){this.errorOccured=true;this.handleDisconnect(E,"doProxyCall-async")}else{throw E}}}}else{if(this.errorOccured==true&&C.cacheCallsWhenDisconnected&&radius.manuallyLoggingOut==false){throw"Program ERROR. MUST check for error if doing SYNC JSONRPC call"}try{return C.what.apply(C.obj,D)}catch(E){if(!this.inHandling&&this.isDisconnectedError(E)){radius.debug("setting errorOccured = true in doProxyCall (sync)");this.errorOccured=true;this.handleDisconnect(E,"doProxyCall-sync")}else{throw E}}}},createProxy:function(B){var K=this.jsonrpc;var H=this;var L={};for(var J=0;J<this.remoteObjectDescriptors.length;J++){var G=this.remoteObjectDescriptors[J].name;var F=K[G];var C=this.remoteObjectDescriptors[J].cacheCallsWhenDisconnected;var E={_name:G};L[G]=E;for(j in F){var D=F[j];if(dojo.lang.isFunction(D)){var A=j;var I={what:D,obj:F,cacheCallsWhenDisconnected:C,doCall:function(){return H.doProxyCall(this,arguments)},getJsonRPCTgt:function(){return this.what},setJsonRPCTgt:function(M){this.what=M}};E[j]=dojo.lang.hitch(I,I.doCall)}}}if(!B){this.setState(this.STATES.connected)}return L},tieToUpdatedJsonRPC:function(A){var B=A.getJsonRPCTgt();var D=B._name;var C=this.jsonrpc[D];A.setJsonRPCTgt(C)},isDisconnectedError:function(A){return(A.code==JSONRpcClient.Exception.CODE_ERR_CLIENT)||(A.code>=500)},handleDisconnect:function(B,A){if(radius.pageUnloading==true||radius.loginedUsername==null||radius.isNotNull(radius.manuallyLoggingOut)||this.areRemoteCallsDisabled()==true){return }if(this.currentState!=this.STATES.reconnecting){this.errorOccured=true;if(this.inHandling||this.autoReconnectEnabled==false){return }this.inHandling=true;this.setState(this.STATES.reconnecting);this.startPing(true)}else{}},connectionRestored:function(C){var B=null;try{var E=this.jsonrpc.ping.ping()}catch(D){B=D}if(E&&this.verifyServerVersion(E)){this.errorOccured=false;this.inHandling=false;if(this.win){this.win.close();this.win=null}if(radius.windows.getInfoWindow().isOpen){radius.windows.getInfoWindow().close()}var A=this.savedAsyncCalls;this.setState(this.STATES.connected)}else{if(!E||B!=null){this.handleDisconnect(B,"connectionRestored couldn't validate restored connection");return }else{}}},startPing:function(A){if(A||(this.pingNumber&&this.pingStartTime==null)){this._resetPingCounter()}if(this.autoReconnectEnabled){radius.setTimeoutM(this,"tryRestoreConnection",this.constants.DELAY_SECONDS*1000)}else{}},killReconnect:function(){this.manualKillReconnect=true},_resetPingCounter:function(){this.pingNumber=0;this.pingStartTime=new Date()},reconnect:function(C,A){if(C||A){var B;if(A){B=A}else{B=radius.utils.encrypt(C)}if(this.creds){this.creds.password=B}else{this.creds={username:radius.loginedUsername,password:B}}}if(this.currentState!=this.STATES.reconnecting){this.setState(this.STATES.reconnecting);this._resetPingCounter();radius.loadingBar.callWithBar(dojo.lang.hitch(this,this.startPing))}},ping:function(){this.pingNumber++;var A={dhandler:this,mimetype:"text/javascript",url:(this.constants.PING_URL+"?t="+new Date().valueOf()+"-"+Math.random()),transport:"XMLHTTPTransport",method:"get",load:_ping_load,error:_ping_error};dojo.io.bind(A)},_getSecondsSinceFirstPing:function(){if(this.pingStartTime==null){return 0}else{var B=new Date();var C=B.getTime();var D=this.pingStartTime.getTime();var A=(C-D)/1000;return A}},tryRestoreConnection:function(){if(this.autoReconnectEnabled){radius_checkForSorrySite(dojo.lang.hitch(this,"_tryRestoreConnection"))}else{}},_tryRestoreConnection:function(){if(this.manualKillReconnect){this.manualKillReconnect=false;return }this.pingNumber++;var B=null;try{B=radius.jsonrpc.ping.ping()}catch(C){}if(B==null){var A=this._getSecondsSinceFirstPing();if(A>=this.constants.SECONDS_TO_PING){this.openReconnectOrCancelWindow()}else{this.startPing()}}else{if("success"==B.result){this._resetPingCounter();radius.setTimeoutM(this,"connectionRestored",1)}else{radius.setTimeoutM(this,"reestablishConnection",1)}}},reestablishConnection:function(){var B=radius.disconnectHandler.creds;var C=radius.disconnectHandler;var A=false;radius.utils.createRemoteSession(false,dojo.lang.hitch(this,"reestablishConnection_loginWithCachedCreds"),C,A)},reestablishConnection_loginWithCachedCreds:function(J,C){var D=C.creds;if((D!=undefined&&D!=null)||radius.isUserAnonymous){if(radius.isUserAnonymous||D.ssoToken||(D.username!=undefined&&D.username!=null&&D.password!=undefined&&D.password!=null)){radius.loadingBar.showBar();var G=null;try{if(radius.isUserAnonymous){G=radius.jsonrpc.security.loginAnonymously()}else{if(D.ssoToken){var H=null;G=radius.jsonrpc.security.loginSSO(D.ssoToken,H)}else{G=radius.jsonrpc.security.loginV2(D.username,D.password)}}}catch(F){this.completelyDisconnected()}if(G&&radius.disconnectHandler.verifyServerVersion(G)){var A=G.errorCode;if(A!=0&&!(A&radius.SecurityError.LogUsernameAlreadyLogin)){this.setState(this.STATES.disconnected);if(A&radius.SecurityError.LogWrongUsernamePassword){this.openReconnectOrCancelWindow(null,true)}}else{var E=radius.windows.getRosterWindow();var I=E.getVisibleLegacyLoginAreaType();var B=radius.IM.disconnectAllLegacies(true);radius.disconnectHandler.enableAutoReconnect();radius.disconnectHandler.setCachedCreds(D);radius.disconnectHandler.addSavedAsyncCalls(C.getSavedAsyncCallsQueue());radius.driver.replaceServerProxy(radius.jsonrpc);this._resetPingCounter();this.connectionRestored();radius.IM.connectLegacyAccounts(B);radius.debug("visibleLegacyLoginAreaType="+I);if(I!=null){E.showLegacyLoginArea(I)}}}radius.loadingBar.hideBar()}else{this.openReconnectOrCancelWindow()}}else{this.openReconnectOrCancelWindow()}},onPingError:function(){if(this._getSecondsSinceFirstPing()>=this.constants.SECONDS_TO_PING){this.openReconnectOrCancelWindow()}else{this.startPing()}},completelyDisconnected:function(){this.setState(this.STATES.disconnected);this.openReconnectOrCancelWindow(null,true)},onDismissCompletelyDisconnected:function(){window.location.replace("/")},openReconnectOrCancelWindow:function(A,B){var C=radius.windows.getInfoWindow();C.open();C.fatalDisconnection(A);this.clearCachedCreds();this.setState(this.STATES.disconnected)},verifyServerVersion:function(E){var D=GLOBAL_CONFIG.version;var B=(E&&E.serverVersion)?E.serverVersion:"*unknown*";var C=(E&&(E.versionIsBackwardsCompatible==undefined||E.versionIsBackwardsCompatible==true))?true:false;var A=true;if(B!=D&&C==false){if(D=="RELEASE_0_0"){}else{A=false;var F=(radiusIMTranslations.disconnectMsgNewVersion||"A new version of radiusIM has been released.  Please reload the page to grab the latest and greatest.  Thanks!");this.openReconnectOrCancelWindow(F,false)}}return A}});radius.utils.LoadingBar=function(B,C,A){this.loadingBarArea=radius.byId(B);this.counter=1};radius.extend(radius.utils.LoadingBar,{constants:{SHOW_BAR_DELAY:0,CALL_FUNCTION_DELAY:100},killLoadingBar:false,showBar:function(){if(this.counter++==0&&!this.killLoadingBar&&!radius.progressBar.isShowing){this.doShowBar()}},hideBar:function(){if(this.counter>0&&--this.counter==0){this.doHideBar()}},doShowBar:function(){radius.html.show(this.loadingBarArea)},doHideBar:function(){radius.html.hide(this.loadingBarArea)},callWithBar:function(G,F,E,D,B,A){if(this.counter){this.showBar();var C=null;try{G(F,E,D,B,A)}catch(H){C=H}this.hideBar();if(C){throw C}}else{setTimeout(new Function("if(radius.loadingBar) radius.loadingBar.showBar()"),this.constants.SHOW_BAR_DELAY);setTimeout(function(){var I=null;try{G(F,E,D,B,A)}catch(J){I=J}if(radius.loadingBar){radius.loadingBar.hideBar()}G=F=E=D=B=A=undefined;if(I){throw I}},this.constants.CALL_FUNCTION_DELAY)}},callWithBarNoTimeout:function(G,F,E,D,B,A){if(this.counter){this.showBar();var C=null;try{G(F,E,D,B,A)}catch(H){C=H}this.hideBar();if(C){throw C}}else{if(radius.loadingBar){radius.loadingBar.showBar()}var C=null;try{G(F,E,D,B,A)}catch(H){C=H}if(radius.loadingBar){setTimeout(function(){radius.loadingBar.hideBar()},1)}G=F=E=D=B=A=undefined;if(C){throw C}}}});radius.utils.ProgressBar=function(B,A,C){this.progressBarArea=radius.byId(B);this.progressBarSliderImg=radius.byId(A);radius.showWaitCursor(true);this.autoSlider(100)};radius.extend(radius.utils.ProgressBar,{currentSliderPercentPos:25,isShowing:true,constants:{SLIDER_WIDTH:97},showBar:function(){radius.loadingBar.killLoadingBar=true;this.doShowBar()},hideBar:function(){radius.loadingBar.killLoadingBar=false;this.doHideBar();if(adsEnabled&&radius.byId("loginAdContainer")){var A=radius.byId("loginAdContainer").getElementsByTagName("iframe");if(A&&A[0]){A[0].src="/blank.html?v=GLOBAL_CONFIG.build"}}},doShowBar:function(){this.currentSliderPercentPos=0;radius.html.show(this.progressBarArea);this.isShowing=true},doHideBar:function(){radius.html.hide(this.progressBarArea);this.isShowing=false},moveSliderToPercent:function(B){if(this.progressBarSliderImg){if(B==undefined||isNaN(B)){B=Math.min(100,this.currentSliderPercentPos)}var A=this.constants.SLIDER_WIDTH*(B/100);this.progressBarSliderImg.style.width=Math.round(A);this.currentSliderPercentPos=B}},autoSlider:function(A){if(this.progressBarSliderImg){if(this.currentSliderPercentPos>95){return }percentInt=Math.min(100,5+this.currentSliderPercentPos);var B=this.constants.SLIDER_WIDTH*(percentInt/100);this.progressBarSliderImg.style.width=Math.round(B);this.currentSliderPercentPos=percentInt;var C=this;setTimeout(function(){C.autoSlider(A)},A)}}});radius.utils.TimeCounter=function(){};radius.extend(radius.utils.TimeCounter,{stime:0,etime:0,start:function(){this.stime=new Date().valueOf();return this},end:function(){this.etime=new Date().valueOf();return this},res:function(){var A=this.etime-this.stime;return A+"msec = "+(A/1000)+"sec"}});radius.utils.testm=function(B,A){var C=new radius.utils.TimeCounter();dojo.hostenv.println(B+" {");debug_indent++;C.start();A();C.end();debug_indent--;dojo.hostenv.println("} => "+C.res());return C};radius.encodeURL=function(A,B){return A};radius.getLocations=function(username){var p=username+"_"+radius.data.Const.LocationsCookie;var locs=[];var c=dojo.io.cookie.getCookie(p+"_loc_enc");if(c){locs=eval("data = "+c)}return radius._getLocationsObj(locs)};radius._getLocationsObj=function(D,C){var B=false;var A=false;return{locs:D,show:A,store:B}};radius.saveLocations=function(D,B){var C=D+"_"+radius.data.Const.LocationsCookie;var A=B.locs.length;dojo.io.cookie.setCookie(C+"_loc_enc",toJSON(B.locs).json,radius.data.Const.CookiesStoreDays,null,null,null,true)};radius.deleteLocations=function(B){var A=B+"_"+radius.data.Const.LocationsCookie;dojo.io.cookie.deleteCookie(A+"_loc_enc")};radius._createSession=function(A,B){if(B){B.call()}};radius._sessionValidate=function(A,B){if(!A||A=="error"||A=="false"){radius.onLoad(false,radius._createSession,B)}else{B()}};radius.validateSessionV2=function(D,A){var E=radius.encodeURL("/logicsession");var B={"var":"logic",recreate:false};if(radius.isNotNull(ssoLoginResult)){B.subsessionid=ssoLoginResult.subsessionId}var C={url:E,mimetype:"text/javascript",transport:"XMLHTTPTransport",method:"post",content:B,retFunc:D,retParams:A,load:_validateSessionV2_load,error:radius_onLoad_bindParams_error,handler:radius_onLoad_bindParams_handler};dojo.io.bind(C)};function _validateSessionV2_load(C,D,A){if(D.result==false){}else{}var B=D.sessionid;radius.setJSessionID(B);if(this.retFunc){radius.debug("Calling callback fucntion after session validated");this.retFunc(this.retParams);this.retFunc=undefined;this.retParams=undefined}}radius.getWindow=function(A){if(A.contentWindow!=undefined){return A.contentWindow}else{if(A.window!=undefined){return A.window}}return null};radius.nextUrlIndex=radius.config.urls.firstStaticHost;radius.maxUrlIndex=radius.config.urls.numStaticHosts-radius.config.urls.firstStaticHost-1;radius.staticUrlTemplate=[radius.config.urls.staticBase,radius.nextUrlIndex,radius.config.urls.staticHostDomain];radius.getNextStaticBaseUrl=function(){if(radius.nextUrlIndex>radius.maxUrlIndex){radius.nextUrlIndex=radius.config.urls.firstStaticHost}radius.staticUrlTemplate[1]=radius.nextUrlIndex++;return radius.staticUrlTemplate.join("")};radius.staticUrlForIntId=function(B){var A=null;for(var C=radius.config.urls.numStaticHosts;C>=1&&A==null;C--){if(B%C==0){var D=[radius.config.urls.staticBase,C-1,radius.config.urls.staticHostDomain];A=D.join("")}}if(A==null){A=radius.config.urls.defaultPhotoBaseUrl}return A};radius.getPhotoUrl=function(C,I,H,E,D,A,B,F){var J=null;if(H=="/dflt"){J=radius.config.urls.defaultPhotoBaseUrl+radius.config.photos.baseurl}else{if(A){J=radius.config.urls.staticS3Base+B+radius.config.urls.staticS3PhotosSuffix}else{var G=[radius.config.urls.staticBase,radius.nextUrlIndex,radius.config.urls.staticHostDomain];J=radius.staticUrlForIntId(C)+radius.config.photos.baseurl}}if(H&&H!=""){J=J+H}J=J+"/"+I;if(E&&E!=""){J=J+"_"+E}J=J+radius.config.photos.extension+"?v="+F;return J};radius.getPhotoUrlLocal=function(B,F,G,C,E,D){var A=radius.config.photos.baseurl;if(G&&G!=""){A=A+G}A=A+"/"+F;if(C&&C!=""){A=A+"_"+C}A=A+radius.config.photos.extension+"?v="+D;return A};radius.popUpWindow=function(A){dojo.lang.setTimeout(function(){var B=window.open(A,"_blank")},0)};radius.Querystring=function Querystring(A){this.params=new Object();this.get=Querystring_get;if(A==null){A=location.search.substring(1,location.search.length)}if(A.length==0){return }A=A.replace(/\+/g," ");var C=A.split("&");for(var D=0;D<C.length;D++){var E;var F=C[D].split("=");var B=unescape(F[0]);if(F.length==2){E=unescape(F[1])}else{E=B}this.params[B]=E}};radius.Querystring=function Querystring_get(A,B){if(B==null){B=null}var C=this.params[A];if(C==null){C=B}return C};radius.getCurrentUser=function(B){if(radius.isNull(radius.userInfo)){var A=function(C){radius.userInfo=C;if(radius.isNotNull(B)&&typeof (B)==="function"){B()}};new radius.ServerRequest("profile.getUserInfo",true,A).send()}else{if(radius.isNotNull(B)&&typeof (B)==="function"){B()}}};radius.onSessionCreated=function(D,C,A){if(!LOADRADIUS){return }radius.sessionid=D;if(C){}var B=radius.jsonrpc;radius.utils.initializeJsonRPC(A);if(!B){dojo.event.connectBefore(window,"onunload",radius,"unload")}if(!radius.loadingBar){radius.loadingBar=new radius.utils.LoadingBar(LOADING_BAR_AREA_ID,LOADING_BAR_TEXT_ID,[])}if(C){radius.browserHandler=new radius.BrowserHandler();radius.loaded=true;radius.widget.fireOnLoaded();radius.widget.postLoaded();radius.im=new radius.RadiusIM()}};function radius_onLoad_bindParams_load(B,C,A){var D=false;if(C.result=="success"){D=true;radius.onSessionCreated(C.sessionid,this.isInvoke,this.dontPublishStatusMsg)}else{}if(this.retFunc){this.retFunc(D,this.retParams)}}function radius_checkForSorrySite(A,D){var C="/sorrysite";var B={url:C,mimetype:"text/html",transport:"XMLHTTPTransport",method:"get",retFunc:A,retParams:D,load:radius_onSorrySiteUp,error:radius_onLoad_bindParams_otherError,handler:radius_onLoad_bindParams_otherError};dojo.io.bind(B)}function radius_onLoad_bindParams_error(B,A){if(this.retFunc){radius_checkForSorrySite(this.retFunc,this.retParams)}}function radius_onSorrySiteUp(B,C,A){window.location.replace("/")}function radius_onLoad_bindParams_otherError(B,A){if(this.retFunc){this.retFunc(false,this.retParams)}}function radius_onLoad_bindParams_handler(B,C,A){}radius.utils.createRemoteSession=function(A,B,E,D){var F=radius.encodeURL("/logicsession");var C={url:F,mimetype:"text/javascript",transport:"XMLHTTPTransport",method:"post",content:{"var":"logic",recreate:false},isInvoke:(A==undefined||A)?true:false,retFunc:B,retParams:E,dontPublishStatusMsg:D,load:radius_onLoad_bindParams_load,error:radius_onLoad_bindParams_error,handler:radius_onLoad_bindParams_handler};dojo.io.bind(C)};radius.utils.getTimeDiffAsText=function(Q,E,D){var I=null;var F=null;if(Q>E){I=E;F=Q}else{I=Q;F=E}var O=1000;var L=60000;var N=3600000;var M=86400000;var P=F.getTime()-I.getTime();var A=Math.floor(P/M);var K=A*M;var C=Math.floor((P-K)/N);var G=C*N;var B=Math.floor((P-K-G)/L);var H=B*L;var R=Math.floor((P-K-G-H)/O);var J=[];if(A){J.push(A+"d ")}if(C){J.push(C+"h ")}if(B){J.push(B+"m ")}if(R&&(D||(!B&&!C&&!A))){J.push(R+"s")}return J.join("")};radius.utils.setLegacyCaptionIcon=function(B,C,A){if(C=="aol"){C="aim"}else{if(C=="aim"){C="aim"}else{if(C=="msn"){C="msn"}else{if(C=="yahoo"){C="yahoo"}else{if(C=="jabber"){C="gtalk"}else{if(C=="google"){C="gtalk"}else{if(C=="facebook"){C="facebook"}else{C="radius"}}}}}}}B.setCaptionImgClass(C,A)};radius.recordEvent=function(F,C,D,A,I,E,J,H,B){var G=function(){if(radius.loginedUsername!=null){radius.IM.recordEventManager.addEvent(F,C)}D(A,I,E,J,H,B)};return G};radius.recordEventExec=function(F,C,D,A,H,E,I,G,B){radius.IM.recordEventManager.addEvent(F,C);D(A,H,E,I,G,B)};radius.recordError=function(E,B,D,A,C){if(radius.loginedUsername!=null){radius.IM.recordEventManager.addErrorEvent(E,B,D,A,C)}};radius.getFuncName=function(B){var A=B.toString().match(/function (\w*)/)[1];if((A==null)||(A.length==0)){return"anonymous"}return A};radius.getStacktrace=function(){var B="";for(var A=arguments.caller;A!=null;A=A.caller){B+=radius.getFuncName(A.callee)+"\n";if(A.caller==A){break}}return B};radius.showWaitCursor=function(C){var A="progress";try{if(C){if(document.body.style.cursor!=A){document.body.style.cursor=A}}else{if(document.body.style.cursor!=""){document.body.style.cursor=""}}}catch(B){}};radius.focusWindow=function(A){window.focus();setTimeout(function(){if(!radius.browserHandler.focus){radius.browserHandler.startToggleTitle("!");if(A&&A.style){A.style.display=""}}},500)};radius.showRadiusProfile=function(A){radius.showFlatRadiusProfile(A)};radius.showFlatRadiusProfile=function(C){radius.showWaitCursor(true);radius.loadingBar.showBar();var B="radiusIM-Profile";var D="resizable=1, toolbar=1, location=1, menubar=1, scrollbars=1, directories=1, personalbar=1, status=1, width="+dojo.html.getViewportWidth()+",height="+dojo.html.getViewportHeight();if(window.name==B){B="_blank"}try{var A=window.open("/profiles/"+C,B,D)}catch(E){B="_blank";var A=window.open("/profiles/"+C,B,D)}radius.checkForPopupBlock(A,C)};radius.getProfileForAnyType=function(C,B){if("radius"==B){radius.showRadiusProfile(C);return }var D=radius.IM.Ctx().findConnection(B);var A=D.getBuddyProfileUrl(C);if(A!=null){radius.popUpWindow(A)}else{radius.showErrorDialog(null,(radiusIMTranslations.profileNotFound||"We are unable to find an online profile for user ")+C)}};radius.checkForPopupBlock=function(A,B){if(!A){var D="http://www"+radius.config.urls.staticHostDomain+"/profiles/"+B;var C=(radiusIMTranslations.popupsBlockedError||"We are unable to open the profile window. Please disable any pop-up blockers and try again.<br/><br/>The profile page is located here: ")+"<a class='simpleLinkClass' href='"+D+"' target='_blank'>"+D+"</a>";var F={message:C,height:140,width:380};radius.showErrorDialog(null,F)}else{try{A.focus()}catch(E){}}radius.showWaitCursor(false);radius.loadingBar.hideBar()};radius.openFAQ=function(){radius.showWaitCursor(true);radius.loadingBar.showBar();var A=window.open(radiusHelpPage);if(A){A.focus()}radius.showWaitCursor(false);radius.loadingBar.hideBar()};radius.typeOf=function(B){var A=typeof B;if(A==="object"){if(B){if(typeof B.length==="number"&&!(B.propertyIsEnumerable("length"))&&typeof B.splice==="function"){A="array"}}else{A="null"}}return A};radius.indexOf=function(D,C){var B=radius.typeOf(D);if(B=="array"){if(Array.indexOf){return D.indexOf(C)}else{for(var A=0;A<D.length;A++){if(D[A]==C){return A}}return -1}}else{if(B=="string"){return D.indexOf(C)}else{return -1}}};radius.getStyle=function(B,A){var C=null;if(B.currentStyle){C=B.currentStyle[A]}else{if(window.getComputedStyle){C=document.defaultView.getComputedStyle(B,null).getPropertyValue(A)}}return C};radius.getRecursiveStyleComparison=function(B,C,A){var D=B.id;while(B.parentNode){if(B.style[C]==A){return true}B=B.parentNode}return false};radius.isComputedDisplayNone=function(A){return radius.getRecursiveStyleComparison(A,"display","none")};radius.isComputedVisibilityHidden=function(A){return radius.getRecursiveStyleComparison(A,"visibility","hidden")};radius.isElementVisible=function(B){if(!B){return false}var D=radius.getStyle(B,"visibility");var A=(D=="hidden");if(A){return false}else{if(D=="inherit"){var C=radius.isComputedVisibilityHidden(B);if(C){return false}}}var E=radius.isComputedDisplayNone(B);return !E};radius.focusTextBox=function(B,A){if(radius.isElementVisible(B)){B.focus();if(A){B.select()}}};radius.isEscKeyEventAttached=false;radius.attachEscKeyEvent=function(){if(radius.isEscKeyEventAttached){return }document.onkeydown=radius.checkKeycode;document.onkeypress=radius.killMozEscKeypress;radius.isEscKeydown=false;radius.isEscKeyEventAttached=true};radius.checkKeycode=function(F){var B;if(window.event){B=window.event.keyCode}else{if(F){B=F.which}}if(B==27){radius.isEscKeydown=true;var C=radius.widget.manager.byFilter(function(G){return(G.isFloatingWindow&&G.allowTopping)?true:false});var D=0;var E=null;for(var A=0;A<C.length;A++){if(C[A].domNode.style.zIndex>D){D=C[A].domNode.style.zIndex;if(C[A].widgetType=="MessagingWindow"){E=C[A]}else{E=null}}}if(E!=null&&!E.popOutBody&&!E.isGroupChatWin){E.close()}}return(B!=27)};radius.killMozEscKeypress=function(C){var B=true;if(radius.isEscKeydown){radius.isEscKeydown=false;var A;if(window.event){A=window.event.keyCode}else{if(C){A=C.which}}if(A==0){radius.stopPropAndPreventDef(C)}B=false}return B};radius.stopPropAndPreventDef=function(A){if(A){if(A.stopPropagation){A.stopPropagation()}A.cancelBubble=true;A.returnValue=false;if(A.preventDefault){A.preventDefault()}}};radius.hasWhitespace=function(G,E){var C="*";if(E){if(E.length){C="{"+E.length+"}"}else{var F=(E.minlength!=null)?E.minlength:0;var B=(E.maxlength!=null)?E.maxlength:"";C="{"+F+","+B+"}"}}var D=new RegExp("^[^\\s]"+C+"$");var A=G.match(D);return A==null};radius.reportAbuse=function(B,D){if(radius.loginedUsername&&B&&radius.loginedUsername.toLowerCase()!=B.toLowerCase()){var F=B.toLowerCase();var A=null;var E=null;var C=2;if(radius.isNotNull(D)&&D){radius.loadingBar.callWithBarNoTimeout(function(G){radius.reportAbuseConfirm(G)},B)}else{new radius.RosterRequest("submitAbuseReport",false).send(F,A,E,C)}}};radius.reportAbuseConfirm=function(B){var C='<table><tr><td id="reportAbuseErrorDomId" colspan="2" class="defWinLabelClass" style="display:none; color: #ff7e00; margin-bottom: 6px; font-weight: bold;">'+(radiusIMTranslations.abuseError||"Please choose a reason and enter a comment")+'</td></tr><tr><td class="defWinLabelClass" style="white-space: normal; width: 130px; vertical-align: top; margin-bottom: 6px;">'+(radiusIMTranslations.reportAbuseReason||"Reason (required)")+':</td><td style="vertical-align: top;"><select id="reportAbuseConfirmSelectDomId" class="defWinSelectClass" name="" style="width: 270px;font-size: 11px;"><option value="0" selected="selected">'+(radiusIMTranslations.reportAbuseChoose||"Choose...")+'</option><option value="2" >'+(radiusIMTranslations.reportAbusePorn||"Pornographic/offensive photo")+'</option><option value="3" >'+(radiusIMTranslations.reportAbuseAdsSpam||"Advertisement/Spam")+'</option><option value="4" >'+(radiusIMTranslations.reportAbuseAttack||"Attacks/harrasses individual or group")+'</option></select></td><tr><td class="defWinLabelClass" style="white-space: normal; width: 130px; vertical-align: top;">'+(radiusIMTranslations.reportAbuseComment||"Additional Comments (required)")+':</td><td id="reportAbuseCommentsCellDomId" style="vertical-align: top;"><div style="overflow: auto;" TABINDEX="-1"><textarea id="reportAbuseConfirmCommentDomId" class="defWinInputClass" style="width: 270px; height: 64px; overflow: auto; white-space: normal;"></textarea></div></td></tr></table>';var A=radius.windows.openModalSimpleWindow({width:460,align:"right",caption:(radiusIMTranslations.abuseConfirmTitle||"Report")+" "+B,body:C,allowSelection:true,btns:[{name:(radiusIMTranslations.send||"send"),width:72,onClick:function(E){var D=radius.byId("reportAbuseConfirmSelectDomId").value;var F=radius.byId("reportAbuseConfirmCommentDomId").value;radius.html.hide(radius.byId("reportAbuseErrorDomId"));if(radius.isNotNull(D)&&D!=0&&radius.isNotEmptyStr(F)){new radius.RosterRequest("submitAbuseReport",false).send(B,null,F,D);radius.showSuccessDialog(null,(radiusIMTranslations.reportAbuseSuccessMsg||"Your abuse report has been sent. Thanks."));E.close()}else{radius.html.show(radius.byId("reportAbuseErrorDomId"))}}},{name:(radiusIMTranslations.cancel||"cancel"),width:72}]})};radius.getAnyRadiusUsersPhotoUrl=function(A,C){var B=new radius.PhotoRequest("getDefaultPhoto",false,dojo.lang.hitch(radius,C));B.send(A)};radius._isFacebook=null;radius.isFacebook=function(){if(radius._isFacebook==null){radius._isFacebook=window.location.href.indexOf("appId=facebook")!=-1}return radius._isFacebook};radius.isSoundAllowedForBrowser=function(){return !(dojo.render.html.moz&&radius.isFacebook())};radius.initSoundManager=function(){if(radius.widget.soundManager!=null){return }if(radius.isSoundAllowedForBrowser()){radius.widget.soundManager=new radius.widget.SoundManager("soundControllerDomId","/media/soundcontroller.swf","/media");radius.widget.soundManager.setVolume("on_receive",70);radius.widget.soundManager.setVolume("on_send",50)}else{radius.generalSettings.playSounds=false;radius.widget.soundManager=null}};radius.utils.encrypt=function(A){if(A==undefined||!A){return null}var B=new RSAKey();B.setPublic(radius.data.RSAKey.RSAPubKey_N,radius.data.RSAKey.RSAPubKey_E);return B.encrypt(A)};radius.utils.domainFromEmail=function(B){if(B==null||B.length==0){return null}var A=B.indexOf("@");var C=B.substr(A,B.length);if(C==null||C.length==0){return null}return C};radius.utils.emailUsernameFromEmail=function(B){if(B==null||B.length==0){return null}var A=B.indexOf("@");var C=B.substr(0,A);if(C==null||C.length==0){return null}return C};radius.utils.legacyTypeFromEmailDomain=function(E){if(E==null||E.length==0){return null}var A=null;var F=radius.data.legacyTypes;for(var C in F){var D=F[C];if(D&&D.emailSuffixes&&D.emailSuffixes.length>0){for(var B=0;B<D.emailSuffixes.length;B++){if(E.toLowerCase()==D.emailSuffixes[B].toLowerCase()){A=C;break}}}if(A!=null){break}}return A};radius.isAlphaNumeric=function(A){return/^[a-zA-Z0-9]+$/.test(A)};radius.isNumeric=function(A){return/^[0-9]+$/.test(A)};radius.isWithin=function(C,B,A){return(C.length>=B&&C.length<=A)};radius.changeBgColor=function(E,D){if(radius.isNotNull(E)&&radius.isNotNull(radius.config.supportedBgColorList[E])){var C=radius.config.supportedBgColorList;var A=C[E];radius.byId("bodyDomId").className="bodyClass bodyClass_"+A;if(!(radius.isNotNull(D)&&D)&&radius.isNotNull(radius.windows.settWin)&&radius.windows.settWin.isVisible()){for(var G=0;G<C.length;++G){var B=C[G];var F=radius.byId("setWinBg_"+B);if(radius.isNotNull(F)){if(F.colorIndex==E){F.style.border="2px solid #022d66"}else{F.style.border="2px solid #ffffff"}}}}}};radius.getKeyCode=function(A){if(A){return A.keyCode}if(window.event){return window.event.keyCode}};radius.compareArrays=function(C,B){if(C.length!=B.length){return false}for(var A=0;A<B.length;A++){if(C[A]!==B[A]){return false}}return true};radius.compareArraysWithinArray=function(C,B){if(C.length!=B.length){return false}for(var A=0;A<B.length;A++){if(!radius.compareArrays(C[A],B[A])){return false}}return true};radius.insertTemplate=function(B,C,A){$.get(B,function(D){$("#"+C).empty().append(D);A()})};radius.addElement=function(A,B){return $("#"+B).append(A)};radius.serialno={};radius.serial_maker=function(B){var B=B||"";var A=radius.serialno[B]||[0];radius.serialno[B]=++A;return radius.serialno[B]};radius.showLoginRequiredPrompt=function(A,B){};radius.copyObj=function(C,B,D){if(!D){D=1}if(B&&D>B){return"<LIMIT>"}if(C==null){return }else{if(C.constructor!=Object){return }else{var A={};for(attr in C){if(C[attr]&&C[attr].constructor==Object){A[attr]=radius.copyObj(C[attr],B,D+1)}else{A[attr]=C[attr]}}return A}}};radius.isAnyLegacyConnected=function(){var A=false;if(radius.IM.isDriverStarted()){var B=radius.IM.Ctx().getLegacyConnections();var D=B.length;for(var C=0;C<D;C++){if(B[C].isConnected()){A=true;break}}}return A};radius.isLogoutEnabled=function(){return radius.isNotNull(radius.loginedUsername)&&!(radius.isUserAnonymous&&!radius.isAnyLegacyConnected())};radius.isLoggedInToRadius=function(){return radius.isNotNull(radius.loginedUsername)&&!radius.isUserAnonymous};radius.feedback=function(){if(radius.isLoggedInToRadius()){radius.windows.getFeedbackWindow().open("feedback")}else{radius.showSuccessDialog(null,radiusIMTranslations.notLoggedInFeedback||"We would love to hear from you. You can email us at feedback@radiusIM.com",radiusIMTranslations.feedbackCaption||"feedback")}};radius.requiresLogin=function(A){if(radius.loginedUsername==null){radius.loginAnonymously(A)}else{A.apply()}};radius.profileIM=function(A){if(radius.isLoggedInToRadius()){radius.getRoster().sendMessage("radius",A)}else{radius.autoSendMsgUsername=A;radius.showLoginRequiredPrompt("send IMs to a radiusIM member")}};radius.profileAdd=function(A){if(radius.isLoggedInToRadius()){radius.getRoster().addFriend("radius",A)}else{radius.autoAddFriendUsername=A;radius.showLoginRequiredPrompt("add friends on radiusIM")}};radius.profileShowOnMap=function(B,A){radius.windows.mapWin.zoomToLocation({user:{longitude:A,latitude:B}})};radius.profileAbuse=function(A){if(radius.isLoggedInToRadius()){radius.reportAbuse(A,false)}};radius.help=function(){var A=window.open(radius.config.radiusHelpPage);A.focus()};radius.doClearTimeout=function(A){if(!radius.isNull(A)){clearTimeout(A);A=null}};radius.attachTooltip=function(D,C,A){var E=function(H){var G=(H.pageX+10)/1;var I=A?parseInt(A):10;var F=dojo.html.getViewportWidth();if(G+I>F){G=F-I}$("#tooltip").html(C).css("top",(H.pageY/1)+8+"px").css("left",G+"px").css("width",radius.isNotNull(A)?A:"").fadeIn("fast",function(){$("#tooltip")})};var B=function(F){$("#tooltip").hide();if(A){$("#tooltip").width("auto")}};$("#"+D).hover(E,B)};radius.detachTooltip=function(B){var A=$("#"+B);A.unbind("mouseenter",A.data("_mouseenter"));A.unbind("mouseleave",A.data("_mouseleave"));A.data("_mouseenter",undefined);A.data("_mouseleave",undefined)};radius.dynamicLoadScript=function(D,C,B){var A=document.createElement("script");if(radius.isNotNull(C)){if(A.addEventListener){A.addEventListener("load",C,false)}else{A.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){C.call(this)}}}}A.src=D;if(B){bootstrap.addErrorHandler(D,B)}try{document.getElementsByTagName("head").item(0).appendChild(A)}catch(E){if(B){B(E)}}A=null};radius.refreshAdContainer=function(){var A=radius.byId("skyscraperContainer");var C=A.getElementsByTagName("iframe");if(C&&C[0]){C[0].src="/ad.html?n=Skyscraper160&v=GLOBAL_CONFIG.build";if(GLOBAL_CONFIG.debug){try{if(!radius.adSrcCounter){radius.adSrcCounter=0}radius.adSrcCounter+=1;var D=C[0].contentWindow.document.documentElement.getElementsByTagName("iframe")[0].src;var E=document.createElement("div");E.style.position="absolute";E.style.top=radius.adSrcCounter*10+"px";E.style.width="1000px";E.style.color="white";E.style.fontSize="11px";E.onmouseout=function(){this.style.color="white"};E.onmouseover=function(){this.style.color="black"};A.appendChild(E);E.innerHTML="&nbsp;"+D+" "+new Date()}catch(B){}}}};radius.isSkyscraperOpen=adsEnabled;radius.closeSkyscraper=function(){var C=radius.coinBalance&&radius.coinBalance>100;if(cfgNeedCoinsToHideAds&&!C){radius.windows.openModalSimpleWindow({align:"right",caption:radiusIMTranslations.hideAds||"hide ads",body:radiusIMTranslations.needCoinsToHideAds||"You must have a coin balance greater than 100 in order to hide ads",allowSelection:true,btns:[{name:(radiusIMTranslations.bankBuyBtn||"buy coins"),width:72,onClick:function(D){D.close();radius.windows.getBankWindow().open()}}]});return }var A=radius.byId("skyscraperContainer");if(!A){return }var B=function(){var D=A.getElementsByTagName("iframe");if(D&&D[0]){D[0].src="/blank.html?v=GLOBAL_CONFIG.build"}};$(A).animate({left:"-180px"},1000,"swing",B);radius.isSkyscraperOpen=false};radius.refreshAdsLoop=function(A){radius.doClearTimeout(radius.refreshAdsLoopTimeoutId);radius.refreshAdsLoopTimeoutId=setTimeout(function(){if(!radius.isSkyscraperOpen){return }var B=true;if(radius.im.userIsIdle){radius.refreshAdsOnUnidle=true;B=false}else{radius.refreshAdsOnUnidle=false}if(radius.disconnectHandler&&!radius.disconnectHandler.isConnected()){B=false}if(B){radius.refreshAdContainer()}radius.refreshAdsLoop()},A?A:radius.config.adRefreshMS)};radius.startAdsTimeoutId=null;radius.showAds=function(A){if(adsEnabled){if(radius.startAdsTimeoutId){clearTimeout(radius.startAdsTimeoutId)}radius.startAdsTimeoutId=setTimeout(function(){radius.refreshAdContainer();radius.refreshAdsLoop();radius.startAdsTimeoutId=null},A);if(enablePopUnders){setTimeout(function(){radius.showPopUnder()},90*1000)}}};radius.showPopUnder=function(){try{if(radius.isNull(radius.popUnderIFrame)){radius.popUnderIFrame=radius.byId("popIFrameDomId")}radius.popUnderIFrame.src="/popunder.html?"+new Date()}catch(A){}};radius.onBrowserResized=function(D,H,E){if(E.windowState=="minimized"||!E.moveOnBrowserResized||E.popOutBody){return }var G={};G.maxX=D-radius.config.windowConstraintX;G.maxY=H-radius.config.windowConstraintY;G.minX=0-E.width+radius.config.windowConstraintX;G.minY=radius.config.windowConstraintY;var B=E.domNode.offsetLeft?E.domNode.offsetLeft:parseInt(E.domNode.style.left);var F=E.domNode.offsetTop?E.domNode.offsetTop:parseInt(E.domNode.style.left);var C=B;var A=F;if(B<G.minX){B=G.minX}if(F<G.minY){F=G.minY}if(B>G.maxX){B=G.maxX}if(F>G.maxY){F=G.maxY}if(E.domNode.style.right!=""){B=null}if(B!=C||F!=A){E.setPos({left:B,top:F})}};radius.disableBtn=function(B){var A=radius.byId(B);if(!A.rad_disabled){A.rad_disabled=true;A.childNodes[0].style.opacity="0.60";A.childNodes[0].style.filter="Alpha(Opacity=60)";A.childNodes[1].style.opacity="0.60";A.childNodes[1].style.filter="Alpha(Opacity=60)"}};radius.enableBtn=function(B){var A=radius.byId(B);if(A.rad_disabled){A.rad_disabled=false;A.childNodes[0].style.opacity="";A.childNodes[0].style.filter="";A.childNodes[1].style.opacity="";A.childNodes[1].style.filter=""}};radius.textBtnOnClick=function(A,B){if(!A.rad_disabled){radius.eventProvider.createEvent(B).fire(A)}};radius.textBtnOnKeyUp=function(C,A,B){if(!A.rad_disabled){C=C?C:window.event;if(C.keyCode==13){radius.eventProvider.createEvent(B).fire(A)}}};radius.textBtnOnMouseOver=function(A,C,B){radius.textBtnUpdateClasses(A,C,B,"over")};radius.textBtnOnMouseOut=function(A,C,B){radius.textBtnUpdateClasses(A,C,B,"reg")};radius.textBtnOnMouseDown=function(A,C,B){radius.textBtnUpdateClasses(A,C,B,"pres")};radius.textBtnOnMouseUp=function(A,C,B){radius.textBtnUpdateClasses(A,C,B,"over")};radius.textBtnOnFocus=function(A,C,B){radius.textBtnUpdateClasses(A,C,B,"over")};radius.textBtnOnBlur=function(A,C,B){radius.textBtnUpdateClasses(A,C,B,"reg")};radius.textBtnUpdateClasses=function(B,D,C,A){if(!B.rad_disabled){B.childNodes[0].className="textBtnSpriteClass textBtnLeftClass_"+D+" textBtnLeftClass_"+D+C+"_"+A;B.childNodes[1].className="textBtnSpriteClass textBtnRightClass_"+D+" textBtnRightClass_"+D+C+"_"+A}};radius.changeTextButton=function changeTextButton(C,E,D,B){var F=C.childNodes[0];var A=C.childNodes[1];if(D=="auto"||D==null){F.style.width=""}else{F.style.width=D+"px"}F.innerHTML=E;if(radius.isNotNull(B)&&B=="gray"){C.setAttribute("cname","gray");C.className=C.className.replace(/_normal_/g,"_normalgray_");F.className=F.className.replace(/_normal_/g,"_normalgray_");A.className=A.className.replace(/_normal_/g,"_normalgray_")}else{C.setAttribute("cname","");C.className=C.className.replace(/_normalgray_/g,"_normal_");F.className=F.className.replace(/_normalgray_/g,"_normal_");A.className=A.className.replace(/_normalgray_/g,"_normal_")}};radius.recentsIsDataLoaded=false;radius.recentsIsRequestActive=false;radius.queueFavorRecent=[];radius.refreshRecentsGrid=function(){if(radius.windows.recentWin&&radius.windows.recentWin.isVisible()){radius.windows.recentWin.refreshGrid()}};radius.updateRecents=function(A){if(radius.recentsIsRequestActive){radius.recentsIsRequestActive=false}radius.recentsIsDataLoaded=true;if(A.filter&&radius.windows.recentWin){radius.windows.recentWin.updateFilter(A.filter)}radius.recents=[];radius.hrecents={};radius.favorsCount=radius.recentsCount=0;var D=A.recents.list;for(var E=D.length;E;){var B=D[--E];radius.recents.push(B);radius.hrecents[B.username.toLowerCase()]=B;if(B.favorite){radius.favorsCount++}else{radius.recentsCount++}}radius.refreshRecentsGrid();if(radius.queueFavorRecent.length>0){while(radius.queueFavorRecent.length>0){var C=radius.queueFavorRecent.shift();radius._addRecentUser(C.user,C.isFavorite)}}};radius._addRecentUser=function(C,E,A){var B=C.username.toLowerCase();var D=radius.hrecents[B];if(D){for(var F=0;F<radius.recents.length;F++){if(radius.recents[F]==D){radius.recents.splice(F,1);break}}radius.recents.splice(0,0,C);radius.hrecents[B]=C;if(!D.favorive&&E){radius.recentsCount--;radius.favorsCount++}if(!C.favorite&&E==true){C.favorite=E;radius.favorsCount++;radius.recentsCount--;new radius.LocalsRequest("addRecent").send(B,E)}}else{if(!E&&radius.recentsCount>=radius.config.locals.maxRecents){radius.removeOldestRecent()}else{if(E&&radius.favorsCount>=radius.config.locals.maxFavors){radius.showErrorDialog(null,"You already have "+radius.config.locals.maxFavors+" favorites in your list.  You need to remove one before you can add another.");return null}}C.favorite=E;radius.recents.splice(0,0,C);radius.hrecents[B]=C;if(E){radius.favorsCount++}else{radius.recentsCount++}new radius.LocalsRequest("addRecent").send(B,E)}if(!A&&((E&&radius.windows.recentWin&&radius.windows.recentWin.filter.showFavors)||(!E&&radius.windows.recentWin&&radius.windows.recentWin.filter.showRecents))){radius.refreshRecentsGrid()}return C};radius.getRecentUser=function(A){if(!radius.recentsIsDataLoaded){radius.loadingBar.showBar();radius.loadRecentsFavoritesData(true);radius.loadingBar.hideBar()}return radius.hrecents[A.toLowerCase()]};radius.addFavor=function(A){radius.addUserDataCheck(A,true)};radius.addRecent=function(A){radius.addUserDataCheck(A,false)};radius.addUserDataCheck=function(B,A){if(radius.recentsIsDataLoaded){radius._addRecentUser(B,A)}else{radius.queueFavorRecent.push({user:B,isFavorite:A});radius.loadRecentsFavoritesData()}};radius.loadRecentsFavoritesData=function(A){if(!A){if(radius.recentsIsRequestActive){return }radius.recentsIsRequestActive=true;new radius.LocalsRequest("getRecents",false,radius.updateRecents).send(true)}else{var B=new radius.LocalsRequest("getRecents",true).send(true);radius.updateRecents(B);B=null}};radius.removeRecentUser=function(E,A){var B=E.toLowerCase();var C=radius.hrecents[B];if(C){delete radius.hrecents[B];for(var D=0;D<radius.recents.length;D++){if(radius.recents[D]==C){radius.recents.splice(D,1);break}}if(C.favorite){radius.favorsCount--}else{this.recentsCount--}if(!A&&((C.favorite&&radius.windows.recentWin&&radius.windows.recentWin.filter.showFavors)||(!C.favorite&&radius.windows.recentWin&&radius.windows.recentWin.filter.showRecents))){radius.refreshRecentsGrid()}new radius.LocalsRequest("removeRecent").send(B);return C}else{return null}};radius.removeOldestRecent=function(){if(radius.recents&&radius.recents.length>0){var B=null;for(var C=radius.recents.length-1;C>=0&&B==null;C--){if(radius.recents[C].favorite==false){B=radius.recents[C];radius.recents.splice(C,1);var A=B.username.toLowerCase();delete radius.hrecents[A];radius.recentsCount--;new radius.LocalsRequest("removeRecent").send(A)}}}};radius.isBrowserPlusDetectedStarted=false;radius.isBrowserPlusSupported=null;radius.isBrowserPlusInitialized=false;radius.isBrowserPlusNotifyInitialized=false;radius.yNotifier=null;radius.detectBP=function(A){if(radius.isBrowserPlusDetectedStarted){return }radius.isBrowserPlusDetectedStarted=true;radius.dynamicLoadScript("http://bp.yahooapis.com/2.1.7/browserplus-min.js",function(){radius.initBrowserPlus(A)})};radius.initBrowserPlus=function(A){var B=BrowserPlus;B.init({locale:langLocale},function(C){if(C.success){radius.dynamicLoadScript("http://bp.yahooapis.com/toolbox/notify/1.0.1/notify-min.js",function(){radius.bplusInitialized(true)});radius.isBrowserPlusSupported=true}else{if(C.error=="bp.notInstalled"){radius.isBrowserPlusSupported=true}else{if(C.error=="bp.unsupportedClient"){radius.isBrowserPlusSupported=false}else{}}}if(typeof (A)==="function"){A()}})};radius.installBP=function(){radius.dynamicLoadScript("http://bp.yahooapis.com/toolbox/notify/1.0.1/notify-min.js");radius.dynamicLoadScript("http://bp.yahooapis.com/toolbox/installer/1.0.1/install-min.js",function(){radius.BPInitWhenAvailMS=3000;BrowserPlus.initWhenAvailable=function(B,A){setTimeout(function(){try{navigator.plugins.refresh(false)}catch(C){}BrowserPlus.init(B,function(D){if(D.success){A(D)}else{BrowserPlus.initWhenAvailable(B,A)}})},radius.BPInitWhenAvailMS)};setTimeout(function(){radius.BPInitWhenAvailMS=30*1000},5*60*1000);BrowserPlus.initWhenAvailable({},radius.bplusInitialized);BPTool.Installer.show({},function(){})})};radius.bplusInitialized=function(B){radius.isBrowserPlusInitialized=true;var A=[{service:"Notify",version:"2"}];BrowserPlus.require({services:A},function(C){radius.isBrowserPlusNotifyInitialized=true;radius.yNotifier=BPTool.Notify.create();radius.notifier.init();if(typeof (B)==undefined||B!=true){setTimeout(function(){radius.notify(null,radiusIMTranslations.settingsWinNotifierWelcome||"your IM's will appear here when you're not looking at your radiusIM page!");if(radius.windows.settWin&&radius.windows.settWin.isActive&&radius.windows.settWin.selectedTab.name=="desktopNotifier"){radius.html.show(radius.byId("settWinSuccessYNotifierBtnDomId"))}},1000)}});radius.notifier.init()};radius.notify=function(A,B){if(!A){A="Howdy"}if(radius.yNotifier){radius.yNotifier.show(A,B,"http://www.radiusim.comhttp://s5-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/logo33x33.png")}};radius.yahooNotifier=function(){};radius.extend(radius.yahooNotifier,{OnLogin:function(){},OnUnlogin:function(){},OnMessage:function(B,A){radius.notify(B,A)},OnActivate:function(){}});radius.launchVideoChat=function(B,E,A,C,D){if(C){radius.createVideoChat(B,C,false,null,D);radius.trackPageEvent("VideoChat","JoinVideoChat","system:"+A)}else{new radius.RosterRequest("initiateVideoChat",false,function(F){radius.createVideoChat(B,F,radius.config.useVideoChatInvites,E,D)}).send(A,E);D.addIncomingSystemMsg(D.getTimestamp(new Date()),"<b>"+radiusIMTranslations.videoInviteSentMsg||"videoInviteSentMsg</b>");radius.trackPageEvent("VideoChat","InitiateVideoChat","system:"+A)}};radius.createVideoChat=function(A,B,E,D,C){radius.detectFlash(function(){radius.createVideoChat_(A,B,E,D,C)},C)};radius.createVideoChat_=function(B,L,E,A,F){var D=L.error;if(D){var H=L.errorMsg;var K=L.errorCode;var I="<p>"+H+"</p>";B.style.backgroundImage="url(http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.gif)";B.innerHTML=I}else{var G=L.tokboxId;F.videoCallId=G;var J="movieDomId"+(Math.round(Math.random()*10000000)).toString().substr(0,6);var C='<div tabindex="-1" style="overflow: hidden; width: 100%; height: 100%;"><object width="100%" height="100%" type="application/x-shockwave-flash" id="'+J+'" data="http://api.tokbox.com/vc/'+G+'"><param name="movie" value="http://api.tokbox.com/vc/'+G+'"/><param name="allowfullscreen" value="false"/><param name="allowscriptaccess" value="always"/><param name="swliveconnect" value="true"/><param name="wmode" value="transparent"/><param name="flashvars" value="inviteButton=0&guestList=0&observerMode=0&showAddFriends=0&invitingUser='+(E?1:0)+'&showTwitterButton=0&showExpandButton="/></object></div>';B.innerHTML=C}};radius.detectFlash=function(B,C){var D="9.0.28".split(".");var A=DetectFlashVer(parseInt(D[0]),parseInt(D[1]),parseInt(D[2]));if(A){B()}else{C.hideVideo();radius.showErrorDialog(null,{message:(radiusIMTranslations.vidFlashRequirement||"Video chat requires Adobe Flash Player 10. Please download it here:")+" <a href='http://get.adobe.com/flashplayer/' target='_blank'>http://get.adobe.com/flashplayer/</a>",width:320})}};var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var A;var B;var C;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");A=B.GetVariable("$version")}catch(C){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A="WIN 6,0,21,0";B.AllowScriptAccess="always";A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A="WIN 3,0,18,0"}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A="WIN 2,0,0,11"}catch(C){A=-1}}return A}function GetSwfVer(){var G=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var F=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var A=navigator.plugins["Shockwave Flash"+F].description;var E=A.split(" ");var C=E[2].split(".");var H=C[0];var B=C[1];var D=E[3];if(D==""){D=E[4]}if(D[0]=="d"){D=D.substring(1)}else{if(D[0]=="r"){D=D.substring(1);if(D.indexOf("d")>0){D=D.substring(0,D.indexOf("d"))}}}var G=H+"."+B+"."+D}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){G=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){G=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){G=2}else{if(isIE&&isWin&&!isOpera){G=ControlVersion()}}}}}return G}function DetectFlashVer(F,D,C){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var E=versionArray[0];var A=versionArray[1];var B=versionArray[2];if(E>parseFloat(F)){return true}else{if(E==parseFloat(F)){if(A>parseFloat(D)){return true}else{if(A==parseFloat(D)){if(B>=parseFloat(C)){return true}}}}}return false}}}radius.doRemoveFocusFromElements=function(B){try{var C=B.getElementsByTagName("input");for(var D=0;D<C.length;D++){if(C[D].type!="file"){C[D].blur()}}var E=B.getElementsByTagName("a");for(var D=0;D<E.length;D++){E[D].blur()}var A=B.getElementsByTagName("textarea");for(var D=0;D<A.length;D++){A[D].blur()}}catch(F){}};radius.SecurityError={LogUsernameAlreadyLogin:1,LogUsernameNotStandard:2,LogPasswordNotStandard:4,LogWrongUsernamePassword:8,LogUsernameDoesNotActivated:16,LogNeedRegistration:32,LogShowMyLocation:64,LogSystemError:128};radius.login=function(A){if(A==null||A==undefined){if(GLOBAL_CONFIG.debug){radius.startTimeTemp=new Date()}radius.validateSessionV2(dojo.lang.hitch(radius,"_login"))}else{radius.loadingBar.callWithBar(function(){radius._login(0,A)})}};radius._login=function(A,E){try{var D=0;if(!ssoUsername){}else{var H=ssoUsername;var G=false;var C=false}if(D==0){if(ssoLoginResult){radius._handleLoginResponse(ssoLoginResult,null,G,C,A)}else{var B=radius.IM.disconnectAllLegacies();if(!E){B=null}if(!radius.isUserAnonymous){radius.jsonrpc.security.loginV2(function(I){radius._handleLoginResponse(I,password,G,C,A,B)},H,password,initialViewName)}else{radius.isSwappingAnonymous=true;radius.jsonrpc.security.loginV2(function(I){radius._handleLoginResponse(I,password,G,C,A,B,function(){radius.isSwappingAnonymous=false})},H,password,initialViewName)}}}else{radius.wrongLogin()}}catch(F){radius.lastException=F;radius.handleError(null,"Error logging in ","radius","radius._login()","default",F,true)}};radius._handleLoginResponse=function(U,M,F,D,L,O,I){var V=U;var B=M;try{if(V&&radius.disconnectHandler.verifyServerVersion(V)){var N=V.errorCode;if(N!=0&&!(N&radius.SecurityError.LogUsernameDoesNotActivated||N&radius.SecurityError.LogNeedRegistration||N&radius.SecurityError.LogShowMyLocation||N&radius.SecurityError.LogSystemError)){if(N&radius.SecurityError.LogUsernameAlreadyLogin){if(L&&L>0){var J="We're having trouble logging you in.  Please refresh the page.  Sorry about that :)";radius.im.logoutNow(true,true,false,false,J)}else{var P=L?numRetries+1:1;radius.jsonrpc.security.logout();return radius._login(P)}}else{dojo.io.cookie.deleteCookie(radius.data.Const.UsernameCookie);radius.wrongLogin()}}else{if(N&radius.SecurityError.LogUsernameDoesNotActivated){}else{if(N&radius.SecurityError.LogSystemError){radius.wrongLogin(null,null,V.errorMsg,true)}else{radius.disconnectHandler.enableAutoReconnect();var K={username:V.username,password:B};if(V.ssoToken){K.ssoToken=V.ssoToken}radius.disconnectHandler.setCachedCreds(K);radius.generalSettings=V.generalSettings;radius.loginedUsername=V.username;radius.usersEmailAddress=V.email;radius.loginedUsernameDisp=V.displayUsername;var A=radius.isUserAnonymous==true&&V.anonymous==false;if(O&&O.length>0){var H=radius.windows.getRosterWindow();var G={};G.establishConnections=true;G.connections=[];var E=O.length;for(var R=0;R<E;R++){var T=O[R];var Q={};Q.username=T.user;Q.password=T.pass;Q.passwordIsEncrypted=true;Q.type=T.system;Q.loginOnStartup=true;G.connections.push(Q)}H.updateLegacyData(G)}radius.isUserAnonymous=V.anonymous;try{radius.showTopNav()}catch(S){radius.handleError(null,"Error caught in radius.im.changeTopNav(true);()"+S.message,"radius","radius._handleLoginResponse()","default",S,false)}if(!radius.isUserAnonymous){if(radius.panelcontainer&&radius.panelcontainer.initialized_status){try{radius.panelcontainer.hidePanel();if(radius.isLoggedInToRadius()){radius.navContainer.switchNavState(radius.post_login_order)}}catch(S){radius.handleError("Error hiding login panel","Error hiding login panel","radius","_handleLoginResponse",null,S,false)}}else{}}try{radius.openIMSession(V,A)}catch(S){radius.lastException=S;var C=true;if(S.toString().indexOf("Permission denied to call method Location.toString")>=0){C=false}radius.handleError(null,"Error caught in radius.im.openIMSession()"+S.message,"radius","radius._handleLoginResponse()","default",S,C)}radius.windows.getMapWindow().prepareLocation()}}}}else{radius.wrongLogin()}}catch(S){radius.handleError(null,"Error logging in handling the response","radius","radius._handleLoginResponse()","default",S,C)}if(!radius.isNull(I)){I.apply()}};radius.loginAnonymously=function(A){radius.validateSessionV2(function(){radius._loginAnonymously(A)})};radius._loginAnonymously=function(A){radius.jsonrpc.security.loginAnonymously(function(B){radius._handleLoginResponse(B,null,false,false,0,null,A)})};radius.wrongLogin=function(B,A,C,F){try{radius.showWaitCursor(false);radius.progressBar.hideBar();var E="*"+(radiusIMTranslations.loginError||"Please enter a valid username and password");if(B){E+=" ("+B+")"}else{if(A){E=(radiusIMTranslations.PasswordResetLoginWindowError||"Trying to reset your password? Click Forgot")}}if(C!=undefined&&C){E="*"+C}radius.showErrorDialog(null,E)}catch(D){var E="Error caught in wrongLogin";radius.lastException=D;radius.handleError(null,E,"RadiusIM","RadiusIM.wrongLogin","default",D,true)}};radius.showTopNav=function(){if(radius.isNull(radius.im)){setTimeout(function(){radius.showTopNav()},2500)}else{radius.im.changeTopNav(true)}};var shareBoxShowing=false;var isShareLinkInit=false;showShareBox=function(B){if(shareBoxShowing){hideShareBox();return }if(!isShareLinkInit){radius.byId("emailShareLinkDomId").style.display="";isShareLinkInit=true}var A=radius.byId("shareBoxDomId");A.style.left=B.clientX+"px";A.style.bottom="-80px";A.style.display="";$(A).animate({bottom:"40px"},500,"swing");setTimeout(function(){rim.events.Event.addListener(document.body,"click",hideShareBox)},100);shareBoxShowing=true};hideShareBox=function(){if(!shareBoxShowing){return }shareBoxShowing=false;radius.byId("shareBoxDomId").style.display="none";rim.events.Event.removeListener(document.body,"click",hideShareBox)};radius._trackPageEvent=function(A,C,B,E){try{if(pageTracker&&pageTracker._trackEvent){if(radius.isNull(C)){C="click"}pageTracker._trackEvent(A,C,B,E)}}catch(D){}};trackPageEvent=function(A){radius.trackPageEvent(A)};radius.trackPageEvent=function(A,C,B,D){setTimeout(function(){radius._trackPageEvent(A,C,B,D)},1)};radius.trans=function(C,B){var A="translation not found";if(C){if(radiusIMTranslations[C]){A=radiusIMTranslations[C]}else{if(B){A=B}else{}}}else{}return A};radius.utils.makeBold=function(A,C,B){A.is_bold=!A.is_bold;if(A.is_bold){B.press(true);C.style.fontWeight="bold"}else{B.unpress(true);C.style.fontWeight="normal"}};radius.utils.makeItalic=function(A,C,B){A.is_italic=!A.is_italic;if(A.is_italic){B.press(true);C.style.fontStyle="italic"}else{B.unpress(true);C.style.fontStyle="normal"}};radius.utils.makeUnderline=function(A,C,B){A.is_underline=!A.is_underline;if(A.is_underline){B.press(true);C.style.textDecoration="underline"}else{B.unpress(true);C.style.textDecoration="none"}};radius.utils.createColorDialog=function(A){A.colorDialogBtn.onClick=dojo.lang.hitch(A,function(B,C){A.colorDialogBtn.hide();A.setForecolor(C);A.isFontStyleDefault=false})};radius.utils.onIconError=function(B){B.onerror=null;var C="_640.jpg";var A=C.length;if(B&&B.src&&B.src&&B.src.length>A&&B.src.substring(B.src.length-A,B.src.length)==C){B.src=B.src.substring(0,B.src.length-A)+".jpg"}};radius.utils.openSettingsWin=function(){if(radius.loginedUsername==null||radius.isUserAnonymous){radius.showLoginRequiredPrompt("save preferences");return }radius.loadingBar.callWithBar(function(){var A=radius.windows.getSettingsWindow();A.restoreFocus=radius.windows.rosterWin;A.open(true)})};radius.utils.restoreHintOnBlur=function(B,A){if(A&&B&&B.value==""){B.value=A}};radius.utils.removeHintOnFocus=function(B,A){if(A&&B&&B.value==A){B.value=""}};radius.utils.listContains=function(C,B){var A=false;for(var D in C){if(C[D]==B){A=true;break}}return A};radius.coinBalance=null;radius.balanceRetry=0;radius.getLatestBalance=function(){if(radius.isNull(radius.utils.getLatestBalanceRequest)){radius.utils.getLatestBalanceRequest=new radius.ServerRequest("gifts.reqVCBalance",true,radius.getLatestBalanceHandler)}radius.utils.getLatestBalanceRequest.send();radius.balanceSecondTOId=setTimeout(function(){if(radius.coinBalance==null&&radius.balanceRetry<1){radius.getLatestBalance();radius.balanceRetry+=1}},3*60*1000)};radius.getLatestBalanceHandler=function(A){radius.doClearTimeout(radius.balanceSecondTOId);if(A!=null&&parseInt(A)!=parseInt(radius.coinBalance)){if(radius.isNull(radius.navContainer.navBalanceArea)){radius.navContainer.initializeBalanceArea()}radius.coinBalance=parseInt(A);dojo.event.topic.publish("CoinBalance",radius.coinBalance)}};radius.getObjLength=function(C){if(C.length){return C.length}var A=0;for(var B in C){A++}return A};radius.gifts={};radius.getGiftCatalog=function(A){if(radius.getObjLength(radius.gifts)==0){var B=function(C,D){if(C&&C.list&&C.list.length>0){for(var F in C.list){var E=C.list[F];radius.gifts[E.itemid]=E}}else{}if(A&&typeof (A)==="function"){A()}};new radius.ServerRequest("gifts.getItemCatalog",true,B).send()}else{if(A&&typeof (A)==="function"){A()}}};radius.addNotification=function(C,H,E,F,G,B){var D=1000;var A=radius.windows.getIMCatcherWindow();if(A=="loading..."){setTimeout(function(){if(radius.isNull(B)){B=0}if(B<5){radius.addNotification(C,H,E,F,G,B)}},D)}else{A.addNotification(C,H,E,F,G)}};radius.createChatRoom=function(){var B=radiusIMTranslations.createARoom||"create a room";var A='<table><tr><td id="createChatRoomErrorDomId" colspan="2" class="defWinLabelClass" style="display:none; color: #ff7e00; margin-bottom: 6px; font-weight: bold;">'+(radiusIMTranslations.createChatRoomError||"Please enter a name for the chat room")+'</td></tr><tr><td class="defWinLabelClass" style="white-space: normal; width: 130px; vertical-align: top; margin-bottom: 6px;">'+(radiusIMTranslations.createChatRoomName||"Room name")+':</td><td style="vertical-align: top;"><input id="createChatRoomNameDomId" class="defWinInputClass" name="" style="width: 200px;font-size: 11px;"/></td><tr><td class="defWinLabelClass" style="white-space: normal; width: 130px; vertical-align: top;">'+(radiusIMTranslations.createChatRoomPrivacy||"Privacy")+':</td><td style="vertical-align: top; font-size: 11px;"><input id="createChatRoomPublicDomId" name="" type="radio">'+(radiusIMTranslations.createChatRoomPublic||"<b>Public</b>: The room will be listed in the public rooms directory")+'</input><br/><input id="createChatRoomPrivateDomId" name="" type="radio">'+(radiusIMTranslations.createChatRoomPrivate||"<b>Private</b>: The room will NOT be listed in the public rooms directory")+"</input><br/></td></tr></table>";var C=[{name:(radiusIMTranslations.createRoom||"create room"),width:"122",onClick:function(E){new radius.ServerRequest("roster.createNewPublicChatRoom",true,radius.createRoomCallback).send("testRoomName","testRoomMsg","testPhotoStr");E.close();radius.trackPageEvent("/publicChatRoomCreated")}},{name:(radiusIMTranslations.cancel||"cancel"),width:92,colorName:"gray"}];var D={width:380,caption:B,body:A,btns:C,allowSelection:true};radius.windows.openSimpleWindow(D)};radius.createRoomCallback=function(B,A){};dojo.provide("radius.lang");radius.lang.mixinProps=function(F,D,A){var E={};for(var C=0;C<A.length;C++){var B=A[C];if(D[B]!=undefined){E[B]=D[B]}}dojo.lang.mixin(F,E)};dojo.provide("radius.anim");dojo.provide("radius.anim.Anim");radius.anim.Anim=function(B,A){if(B){this.duration=B}if(A){this.rate=A}this._cycleFunc=dojo.lang.hitch(this,"_cycle")};radius.extend(radius.anim.Anim,{duration:500,rate:25,percent:0,cource:0,_startTime:0,_endTime:0,_timerid:null,goForward:function(A){this.go(1,A)},goBack:function(A){this.go(-1,A)},stop:function(){if(this._timerid!=null){clearTimeout(this._timerid);this._timerid=null}},resume:function(){this.go(this.cource)},complete:function(A){this.stop();this.percent=A;if(this.onEnd){if(!this.onEnd(A)){return }}},go:function(A,C){if(this._timerid!=null){clearTimeout(this._timerid);this._timerid=null}if(C!=undefined){if(C<0){C=0}else{if(C>1){C=1}}this.percent=C}this.cource=0;if(A>0){if(this.percent<1){var D=new Date().valueOf();this._startTime=D-this.duration*this.percent;this._endTime=this._startTime+this.duration;var E=this._endTime-D;if(E>0){this.cource=1;if(this.onStart&&this.percent==0){if(!this.onStart(0)){return }}if(this.onAnim){if(!this.onAnim(this.percent)){return }}this._timerid=setTimeout(this._cycleFunc,Math.min(this.rate,E));return }}this.percent=1;if(this.onAnim){if(!this.onAnim(1)){return }}if(this.onEnd){if(!this.onEnd(1)){return }}}else{if(A<0){if(this.percent>0){var D=new Date().valueOf();var B=1-this.percent;this._startTime=D-this.duration*B;this._endTime=this._startTime+this.duration;var E=this._endTime-D;if(E>0){this.cource=-1;if(this.onStart&&B==0){if(!this.onStart(1)){return }}if(this.onAnim){if(!this.onAnim(this.percent)){return }}this._timerid=setTimeout(this._cycleFunc,Math.min(this.rate,E));return }}this.percent=0;if(this.onAnim){if(!this.onAnim(0)){return }}if(this.onEnd){if(!this.onEnd(0)){return }}}else{}}},_cycle:function(){if(this._timerid!=null&&this.cource!=0){clearTimeout(this._timerid);this._timerid=null}if(this.cource>0){var A=new Date().valueOf();var B=this._endTime-A;if(B>0){this.percent=(A-this._startTime)/this.duration;if(this.percent<1){if(this.onAnim){if(!this.onAnim(this.percent)){return }}this._timerid=setTimeout(this._cycleFunc,Math.min(this.rate,B));return }}this.cource=0;this.percent=1;if(this.onAnim){if(!this.onAnim(1)){return }}if(this.onEnd){if(!this.onEnd(1)){return }}}else{if(this.cource<0){var A=new Date().valueOf();var B=this._endTime-A;if(B>0){this.percent=1-(A-this._startTime)/this.duration;if(this.percent>0){if(this.onAnim){if(!this.onAnim(this.percent)){return }}this._timerid=setTimeout(this._cycleFunc,Math.min(this.rate,B));return }}this.cource=0;this.percent=0;if(this.onAnim){if(!this.onAnim(0)){return }}if(this.onEnd){if(!this.onEnd(0)){return }}}else{}}}});dojo.provide("radius.io.cookie");radius.io.cookie.getCookie=function(D){var B=D+"=";var G=B.length;var A=document.cookie.length;var E=0;while(E<A){var C=E+G;if(document.cookie.substring(E,C)==B){var F=document.cookie.indexOf(";",C);if(F==-1){F=document.cookie.length}return unescape(document.cookie.substring(C,F))}E=document.cookie.indexOf(" ",E)+1;if(E==0){break}}return null};dojo.provide("radius.data");radius.data.taskBar={winWidth:180,winHeight:23,effectDuration:300};radius.data.Const={CurrentFormCookie:"currentForm",CookiesStoreDays:15,SignUpEmailValue:radiusIMTranslations.SignUpEmail||"your e-mail will not be shared",SignUpBirthMonth:"Month",SignUpBirthDay:"Day",SignUpBirthYear:"Year",UsernameCookie:"uid",LocationsCookie:"radiusim.locations"};radius.data.RSAKey={RSAPubKey_N:"b3f80a6b220fdaa6c08dc4dbccf1c76fdb0acfd3e5fee420797838c1c8a76849e69acdb0ebb55318f488a968335dbe0e0730f8e927ff0212c8715a5aef5bffa722b17902100e12c40b2cf65e15ea603063630887acccb9ba841fb4809b6bfbb5f61a001b7307b7fc528c51bd111e7be4082999e61fef165c4ad1503ece7d566b",RSAPubKey_E:"10001"};radius.data.HeardFrom=["Friend/Word of Mouth","News","Search","Advertisement"];radius.data.Month={"01":radiusIMTranslations.Msg347||"January","02":radiusIMTranslations.Msg348||"February","03":radiusIMTranslations.Msg349||"March","04":radiusIMTranslations.Msg350||"April","05":radiusIMTranslations.Msg351||"May","06":radiusIMTranslations.Msg352||"June","07":radiusIMTranslations.Msg353||"July","08":radiusIMTranslations.Msg354||"August","09":radiusIMTranslations.Msg355||"September","10":radiusIMTranslations.Msg356||"October","11":radiusIMTranslations.Msg357||"November","12":radiusIMTranslations.Msg358||"December"};radius.data.BirthYear={older:1926,newer:1996};radius.data.defaultGroupNames={radius:"radiusIM Friends",aol:"AIM Friends",msn:"MSN Friends",yahoo:"Yahoo Friends",jabber:"Google Friends",facebook:"Facebook Friends"};radius.data.legacyTypeNames={radius:"radiusIM",aol:"AIM & ICQ",msn:"MSN",yahoo:"Yahoo",jabber:"Google & Jabber",facebook:"Facebook"};radius.data.legacyTypes={radius:{smallIconClass:"treeSpriteClass treeSvcOnClass_radius",supportsBlocking:true,supportsLocation:true,supportsGroupChat:true,supportsAbuseReport:true,supportsOffline:true,supportsStrangers:true,deleteAwayTextOnBack:false},aol:{icon:"http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/btns/legacy37x33/aol/coloricon.png",smallIconClass:"treeSpriteClass treeSvcOnClass_aol",usernameDesc:(radiusIMTranslations.aolUsernameDesc||"Screenname"),usernameHint:"",supportsNicknames:true,usernameIsEmail:false,emailSuffixes:["@aol.com","@aim.com"],caption:"AIM & ICQ",forgotPass:"https://account.login.aol.com/opr/_cqr/opr/opr.psp?sitedomain=my.screenname.aol.com&authLev=2&siteState=&lang=en&locale=us&uitype=std",supportsBlocking:true,supportsLocation:false,supportsGroupChat:false,supportsAbuseReport:false,supportsOffline:true,supportsStrangers:true,deleteAwayTextOnBack:true},msn:{icon:"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/btns/legacy37x33/msn/coloricon.png",smallIconClass:"treeSpriteClass treeSvcOnClass_msn",usernameDesc:(radiusIMTranslations.msnUsernameDesc||"Email"),usernameHint:"@hotmail.com",supportsNicknames:true,usernameIsEmail:true,emailSuffixes:["@hotmail.com","@live.com","@msn.com","@hotmail.mx","@hotmail.br"],caption:"MSN",forgotPass:"https://accountservices.msn.com/uiresetpw.srf",supportsBlocking:true,supportsLocation:false,supportsGroupChat:false,supportsAbuseReport:false,supportsOffline:true,supportsStrangers:true,deleteAwayTextOnBack:false},yahoo:{icon:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/btns/legacy37x33/yahoo/coloricon.png",smallIconClass:"treeSpriteClass treeSvcOnClass_yahoo",usernameDesc:(radiusIMTranslations.yahooUsernameDesc||"Screenname"),usernameHint:"",supportsNicknames:false,usernameIsEmail:false,emailSuffixes:["@yahoo.com","@yahoo.it"],caption:"Yahoo",forgotPass:"http://edit.yahoo.com/config/eval_forgot_pw",supportsBlocking:true,supportsLocation:false,supportsGroupChat:false,supportsAbuseReport:false,supportsOffline:true,supportsStrangers:true,deleteAwayTextOnBack:true},jabber:{icon:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/btns/legacy37x33/gtalk/coloricon.png",smallIconClass:"treeSpriteClass treeSvcOnClass_jabber",usernameDesc:(radiusIMTranslations.gtalkUsernameDesc||"Email"),usernameHint:"@gmail.com",supportsNicknames:false,usernameIsEmail:true,emailSuffixes:["@gmail.com","@googlemail.com"],caption:"GTalk",forgotPass:"https://www.google.com/accounts/ForgotPasswd",supportsBlocking:true,supportsLocation:false,supportsGroupChat:false,supportsAbuseReport:false,supportsOffline:true,supportsStrangers:true,deleteAwayTextOnBack:true},facebook:{icon:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/btns/legacy37x33/gtalk/coloricon.png",smallIconClass:"treeSpriteClass treeSvcOnClass_facebook",usernameDesc:(radiusIMTranslations.facebookUsernameDesc||"Email"),usernameHint:"",supportsNicknames:false,usernameIsEmail:true,emailSuffixes:[""],caption:"Facebook",forgotPass:"http://www.facebook.com/reset.php",supportsHTML:false,supportsBlocking:false,supportsLocation:false,supportsGroupChat:false,supportsAbuseReport:false,supportsOffline:false,supportsStrangers:false,deleteAwayTextOnBack:false}};radius.data.getCountries=function(A){if(radius.data.Country==undefined){var B=new radius.ServerRequest("lookups.getCountries",true,function(D,E){if(D&&D.list){radius.data.Country=D.list;A(D.list)}else{if(E){radius.validateSessionV2(function(){B.send()})}}});try{B.send()}catch(C){radius.validateSessionV2(function(){B.send()})}return null}else{if(A){A(radius.data.Country);return null}else{return radius.data.Country}}};radius.data.didWeEverConnectTimeout=90*1000;radius.data.getRelationshipStatuses=function(A){if(radius.data.RelationshipStatuses==undefined){var B=new radius.ServerRequest("lookups.getRelationshipStatuses",true,function(D,E){if(D){radius.data.RelationshipStatuses=D;if(A){A(D)}}else{if(E){radius.validateSessionV2(function(){B.send()})}}});try{B.send()}catch(C){radius.validateSessionV2(function(){B.send()})}return null}else{if(A){A(radius.data.RelationshipStatuses);return null}else{return radius.data.RelationshipStatuses}}};radius.data.fonts=["Arial","Courier","Geneva","Georgia","Times New Roman","Verdana"];radius.data.fontSizes=["8","10","12","14","18","24","36"];radius.data.defFontStyles={is_bold:false,is_italic:false,is_underline:false,color:"#000000",fontFamily:"Arial",fontSize:"10pt"};radius.data.countries=[{code:"AF",country:"Afghanistan"},{code:"AL",country:"Albania"},{code:"DZ",country:"Algeria"},{code:"AS",country:"American Samoa"},{code:"AD",country:"Andorra"},{code:"AO",country:"Angola"},{code:"AI",country:"Anguilla"},{code:"AQ",country:"Antarctica"},{code:"AG",country:"Antigua and Barbuda"},{code:"AR",country:"Argentina"},{code:"AM",country:"Armenia"},{code:"AW",country:"Aruba"},{code:"AU",country:"Australia"},{code:"AT",country:"Austria"},{code:"AZ",country:"Azerbaijan"},{code:"BS",country:"Bahamas"},{code:"BH",country:"Bahrain"},{code:"BD",country:"Bangladesh"},{code:"BB",country:"Barbados"},{code:"BY",country:"Belarus"},{code:"BE",country:"Belgium"},{code:"BZ",country:"Belize"},{code:"BJ",country:"Benin"},{code:"BM",country:"Bermuda"},{code:"BT",country:"Bhutan"},{code:"BO",country:"Bolivia"},{code:"BA",country:"Bosnia and Herzegowina"},{code:"BW",country:"Botswana"},{code:"BV",country:"Bouvet Island"},{code:"BR",country:"Brazil"},{code:"IO",country:"British Indian Ocean Territory"},{code:"BN",country:"Brunei Darussalam"},{code:"BG",country:"Bulgaria"},{code:"BF",country:"Burkina Faso"},{code:"BI",country:"Burundi"},{code:"KH",country:"Cambodia"},{code:"CM",country:"Cameroon"},{code:"CA",country:"Canada"},{code:"CV",country:"Cape Verde"},{code:"KY",country:"Cayman Islands"},{code:"CF",country:"Central African Republic"},{code:"TD",country:"Chad"},{code:"CL",country:"Chile"},{code:"CN",country:"China"},{code:"CX",country:"Christmas Island"},{code:"CC",country:"Cocoa (Keeling) Islands"},{code:"CO",country:"Colombia"},{code:"KM",country:"Comoros"},{code:"CG",country:"Congo"},{code:"CK",country:"Cook Islands"},{code:"CR",country:"Costa Rica"},{code:"CI",country:"Cote Divoire"},{code:"CT",country:"Croatia (Hrvatska)"},{code:"CU",country:"Cuba"},{code:"CY",country:"Cyprus"},{code:"CZ",country:"Czech Republic"},{code:"DK",country:"Denmark"},{code:"DJ",country:"Djibouti"},{code:"DM",country:"Dominica"},{code:"DO",country:"Dominican Republic"},{code:"TP",country:"East Timor"},{code:"EC",country:"Ecuador"},{code:"EG",country:"Egypt"},{code:"SV",country:"El Salvador"},{code:"GQ",country:"Equatorial Guinea"},{code:"ER",country:"Eritrea"},{code:"EE",country:"Estonia"},{code:"ET",country:"Ethiopia"},{code:"FK",country:"Falkland Islands (Malvinas)"},{code:"FO",country:"Faroe Islands"},{code:"FJ",country:"Fiji"},{code:"FI",country:"Finland"},{code:"FR",country:"France"},{code:"GF",country:"French Guiana"},{code:"PF",country:"French Polynesia"},{code:"TF",country:"French Southern Territories"},{code:"GA",country:"Gabon"},{code:"GM",country:"Gambia"},{code:"GE",country:"Georgia"},{code:"DE",country:"Germany"},{code:"GH",country:"Ghana"},{code:"GI",country:"Gibraltar"},{code:"GR",country:"Greece"},{code:"GL",country:"Greenland"},{code:"GD",country:"Grenada"},{code:"GP",country:"Guadeloupe"},{code:"GU",country:"Guam"},{code:"GT",country:"Guatemala"},{code:"GW",country:"Guinea-Bissau"},{code:"GN",country:"Guinea"},{code:"GY",country:"Guyana"},{code:"HT",country:"Haiti"},{code:"HM",country:"Heard and Mc Donald Islands"},{code:"HN",country:"Honduras"},{code:"HK",country:"Hong Kong"},{code:"HU",country:"Hungary"},{code:"IS",country:"Iceland"},{code:"IN",country:"India"},{code:"ID",country:"Indonesia"},{code:"IR",country:"Iran"},{code:"IQ",country:"Iraq"},{code:"IE",country:"Ireland"},{code:"IL",country:"Israel"},{code:"IT",country:"Italy"},{code:"JM",country:"Jamaica"},{code:"JP",country:"Japan"},{code:"JO",country:"Jordan"},{code:"KZ",country:"Kazakhstan"},{code:"KE",country:"Kenya"},{code:"KI",country:"Kiribati"},{code:"KP",country:"Korea, Democratic Peoples Republic of"},{code:"KR",country:"Korea, Republic of"},{code:"KW",country:"Kuwait"},{code:"KG",country:"Kyrgyzstan"},{code:"LA",country:"Lao Peoples Democratic Republic"},{code:"LV",country:"Latvia"},{code:"LB",country:"Lebanon"},{code:"LS",country:"Lesotho"},{code:"LR",country:"Liberia"},{code:"LY",country:"Libyan Arab Jamahiriya"},{code:"LI",country:"Liechtenstein"},{code:"LT",country:"Lithuania"},{code:"LU",country:"Luxembourg"},{code:"MO",country:"Macau"},{code:"MK",country:"Macedonia"},{code:"MG",country:"Madagascar"},{code:"MW",country:"Malawi"},{code:"MY",country:"Malaysia"},{code:"MV",country:"Maldives"},{code:"ML",country:"Mali"},{code:"MT",country:"Malta"},{code:"MH",country:"Marshall Islands"},{code:"MQ",country:"Martinique"},{code:"MR",country:"Mauritania"},{code:"MU",country:"Mauritius"},{code:"YT",country:"Mayotte"},{code:"MX",country:"Mexico"},{code:"FM",country:"Micronesia, Federated States of"},{code:"MD",country:"Moldova, Republic of"},{code:"MC",country:"Monaco"},{code:"MN",country:"Mongolia"},{code:"MS",country:"Montserrat"},{code:"MA",country:"Morocco"},{code:"MZ",country:"Mozambique"},{code:"MM",country:"Myanmar"},{code:"NA",country:"Namibia"},{code:"NR",country:"Nauru"},{code:"NP",country:"Nepal"},{code:"NL",country:"Netherlands"},{code:"AN",country:"Netherlands Antilles"},{code:"NC",country:"New Caledonia"},{code:"NZ",country:"New Zealand"},{code:"NI",country:"Nicaragua"},{code:"NE",country:"Niger"},{code:"NG",country:"Nigeria"},{code:"NU",country:"Niue"},{code:"NF",country:"Norfolk Island"},{code:"MP",country:"Northern Mariana Islands"},{code:"NO",country:"Norway"},{code:"OM",country:"Oman"},{code:"PK",country:"Pakistan"},{code:"PW",country:"Palau"},{code:"PA",country:"Panama"},{code:"PG",country:"Papua New Guinea"},{code:"PY",country:"Paraguay"},{code:"PE",country:"Peru"},{code:"PH",country:"Philippines"},{code:"PN",country:"Pitcairn"},{code:"PL",country:"Poland"},{code:"PT",country:"Portugal"},{code:"PR",country:"Puerto Rico"},{code:"QA",country:"Qatar"},{code:"RE",country:"Reunion"},{code:"RO",country:"Romania"},{code:"RU",country:"Russian Federation"},{code:"RW",country:"Rwanda"},{code:"KN",country:"Saint Kitts and Nevis"},{code:"LC",country:"Saint Lucia"},{code:"VC",country:"Saint Vincent and the Grenadines"},{code:"WS",country:"Samoa"},{code:"SM",country:"SanMarino"},{code:"ST",country:"Sao Tome and Principe"},{code:"SA",country:"Saudi Arabia"},{code:"SN",country:"Senegal"},{code:"RS",country:"Serbia"},{code:"SC",country:"Seychelles"},{code:"SL",country:"Sierra Leone"},{code:"SG",country:"Singapore"},{code:"SK",country:"Slovakia (Slovak Republic)"},{code:"SI",country:"Slovenia"},{code:"SO",country:"Somalia"},{code:"ZA",country:"South Africa"},{code:"GS",country:"South Georgia and the South Sandwich Islands"},{code:"ES",country:"Spain"},{code:"LK",country:"Sri Lanka"},{code:"SH",country:"St. Helena"},{code:"PM",country:"St. Pierre and Miquelon"},{code:"SD",country:"Sudan"},{code:"SR",country:"Suriname"},{code:"SJ",country:"Svalbard and Jan Mayen Islands"},{code:"SZ",country:"Swaziland"},{code:"SE",country:"Sweden"},{code:"CH",country:"Switzerland"},{code:"SY",country:"Syrian Arab Republic"},{code:"TW",country:"Taiwan"},{code:"TJ",country:"Tajikistan"},{code:"TZ",country:"Tanzania, United Republic of"},{code:"TH",country:"Thailand"},{code:"TG",country:"Togo"},{code:"TK",country:"Tokelau"},{code:"TO",country:"Tonga"},{code:"TT",country:"Trinidad and Tobago"},{code:"TN",country:"Tunisia"},{code:"TR",country:"Turkey"},{code:"TM",country:"Turkmenistan"},{code:"TC",country:"Turks and Caicos Islands"},{code:"TV",country:"Tuvalu"},{code:"UG",country:"Uganda"},{code:"UA",country:"Ukraine"},{code:"AE",country:"United Arab Emirates"},{code:"UK",country:"United Kingdom"},{code:"US",country:"United States"},{code:"UY",country:"Uruguay"},{code:"UZ",country:"Uzbekistan"},{code:"VU",country:"Vanuatu"},{code:"VA",country:"Vatican City State (Holy See)"},{code:"VE",country:"Venezuela"},{code:"VN",country:"Viet Nam"},{code:"VG",country:"Virgin Islands (British)"},{code:"VI",country:"Virgin Islands (U.S.)"},{code:"WF",country:"Wallis and Futuna Islands"},{code:"EH",country:"Western Sahara"},{code:"YE",country:"Yeman"},{code:"ZR",country:"Zaire"},{code:"ZM",country:"Zambia"},{code:"ZW",country:"Zimbabwe"}];dojo.provide("dojo.collections.Dictionary");dojo.collections.Dictionary=function(C){var A={};this.count=0;this.add=function(E,D){A[E]=new dojo.collections.DictionaryEntry(E,D);this.count++};this.clear=function(){A={};this.count=0};this.clone=function(){return new dojo.collections.Dictionary(this)};this.contains=this.containsKey=function(D){return(A[D]!=null)};this.containsValue=function(D){var E=this.getIterator();while(!E.atEnd){if(E.value==D){return true}E.moveNext()}return false};this.getKeyList=function(){var D=[];var E=this.getIterator();while(!E.atEnd){D.push(E.key);E.moveNext()}return D};this.getValueList=function(){var D=[];var E=this.getIterator();while(!E.atEnd){D.push(E.value);E.moveNext()}return D};this.item=function(D){return A[D]};this.getIterator=function(){dit=new dojo.collections.DictionaryIterator(A);dit.moveNext();return dit};this.remove=function(D){delete A[D];this.count--};if(C){var B=C.getIterator();while(!B.atEnd){this.add(B.key,B.value);B.moveNext()}}};dojo.provide("radius.image");dojo.provide("radius.image.ImagesPool");radius.image.ImagesPool=function(A){this.maxImages=A>0?A:65536;this.order=new dojo.collections.Queue();this.pool=new dojo.collections.Dictionary()};radius.extend(radius.image.ImagesPool,{addImage:function(C){var B=this.pool.item(C);if(!B){var A=dojo.render.html.safari?document.createElement("img"):new Image();A.src=C;A.imageSrc=C;return this.addImageObj(A)}return B.value},addImageObj:function(B){var C=B.imageSrc?B.imageSrc:B.src;if(this.order.count>this.maxImages){var A=this.order.dequeue();this.pool.remove(A)}this.order.enqueue(C);this.pool.add(C,B);return B},getImage:function(B){var A=this.pool.item(B);return A?A.value:this.addImage(B)},getSize:function(){return this.order.count},isLoaded:function(B){var A=this.pool.item(B);return A?A.value.complete:false},clear:function(){this.order.clear();this.pool.clear()}});radius.image.pool=new radius.image.ImagesPool();radius.image.blankUrl="http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.gif";radius.image.blankImage=radius.image.pool.getImage(radius.image.blankUrl);radius.image.loadImage=function(A){return radius.image.pool.addImage(A)};radius.image.createImageNode=function(){return dojo.render.html.safari?document.createElement("img"):new Image()};radius.image.setImage=function(E,C){var A=E?E.src:null;var B=radius.image.pool.getImage(C);var D=B.src;if((!E.imageSrc||!B.imageSrc||E.imageSrc!=B.imageSrc)){E.src=D;E.imageSrc=B.imageSrc}};radius.image.makeNode=function(B){var A=radius.image.pool.getImage(B);return A.cloneNode(false)};radius.image.makeBlankNode=function(){return radius.image.blankImage.cloneNode(false)};radius.image.makePngNode=function(D,A,B){if(D==radius.image.blankUrl){return radius.image.makeBlankNode()}if(dojo.render.html.ie){radius.image.loadImage(D);var C=radius.image.makeBlankNode();if(B){this.setSize(C,B)}if(!A){C.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D+"')"}else{C.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D+"', sizingMethod='"+A+"')"}return C}else{return radius.image.makeNode(D)}};radius.image.makeOnePiece=function(B,D,F,A){var C=D.url||D.imageUrl;if(!F){F={}}if(!dojo.lang.has(F,"width")&&dojo.lang.has(D,"w")){F.width=D.w}if(!dojo.lang.has(F,"height")&&dojo.lang.has(D,"h")){F.height=D.h}var E=radius.image.makePngNode(C,A);radius.style.setStyles(E,F);B.appendChild(E);D.node=E;return E};radius.image.makePiece=function(C,E,H,A){var B={};var G=E.urls;if(G){if(!H){H={}}if(!dojo.lang.has(H,"width")&&dojo.lang.has(E,"w")){H.width=E.w}if(!dojo.lang.has(H,"height")&&dojo.lang.has(E,"h")){H.height=E.h}for(var D in G){var F=radius.image.makePngNode(G[D],A);radius.style.setStyles(F,H);C.appendChild(F);B[D]=F}}E.nodes=B;return B};radius.image.showOne=function(B,A){for(var D in B.nodes){var C=B.nodes[D];if(D==A){dojo.html.show(C)}else{dojo.html.hide(C)}}};radius.image.createX=function(E,A,B,C){var D=document.createElement("img");if(C){D.style.cssText=C}A.appendChild(D);if(dojo.render.html.ie&&E.lastIndexOf(".png")){D.src=this.blankUrl;D.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"'"+(B?(", sizingMethod='"+B+"')"):")");return D}D.src=E;return D};radius.image.setSrcX=function(E,D,A){if(dojo.render.html.ie){var B=E.filters["DXImageTransform.Microsoft.AlphaImageLoader"];var F=D.path?D.path:D;if(F.lastIndexOf(".png")>0){if(B){try{B.src=F;if(!B.Enabled){E.src=this.blankUrl;B.Enabled=true}if(A){B.sizingMethod=A}}catch(C){}}else{E.src=this.blankUrl;E.style.filter+=" progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+F+"'"+(A?(", sizingMethod='"+A+"')"):")")}return }else{if(B){B.Enabled=false}}}E.src=D};radius.image.requiresPngFix=(AjxEnv.isIE&&AjxEnv.browserVersion<7);radius.image.blankSrc="http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.gif";radius.image.fixPngNode=function(B){var A=B;if(A&&radius.image.requiresPngFix&&(B.src.lastIndexOf(".png")>0)){A.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+B.src+"',sizingMethod='scale')";A.src=radius.image.blankSrc}return A};radius.image.htmlForTransparentPng=function(D,B,C,F,E){var A=[];A.push("<img ");if(radius.isNotNull(B)){A.push('width="');A.push(B);A.push('" ')}if(radius.isNotNull(C)){A.push('height="');A.push(C);A.push('" ')}if(radius.isNotNull(F)){A.push('alt="');A.push(F);A.push('" ')}if(radius.isNotNull(E)){A.push('class="');A.push(E);A.push('" ')}if(radius.image.requiresPngFix){A.push('src="');A.push(radius.image.blankSrc);A.push('" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'');A.push(D);A.push("',sizingMethod='scale';\"")}else{A.push('src="');A.push(D);A.push('"')}A.push(" />");return A.join("")};radius.image.fixPngChildNodes=function(E,D,B){if(!radius.image.requiresPngFix||E==undefined){return }var F=E.getElementsByTagName("img");var A=F.length;for(var C=0;C<A;C++){if(F[C].className.indexOf("png")){radius.image.fixPngNode(F[C])}}};radius.image.setSize=function(B,A){B.width=A.width;B.height=A.height};radius.image.setBackgroundImage=function(B,A){B.style.backgroundImage="url("+A+")"};radius.image.getUrlFromGift=function(A){return"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+A.imageDirectory+"/"+A.imageBasename+".png"};radius.image.blankOnError=function(A){try{if(A.src==radius.image.blankUrl){A.onerror=null}else{A.src=radius.image.blankUrl}}catch(B){}};dojo.provide("radius.style");radius.style.setStyles=function(C,B){for(var A in B){var D=B[A];D=isNaN(D)?D:(D+"px");C.style[A]=D}};radius.style.getTotalOffset=function(E,D,C){var B,G;if(C=="top"){B="offsetTop";G="x"}else{B="offsetLeft";G="y"}var F=0;if(E.offsetParent){var A=document.body;if(dojo.render.html.safari&&E.style.getPropertyValue("position")=="absolute"&&E.parentNode==A){}else{A=A.parentNode}do{F+=E[B];E=E.offsetParent}while(E!=D&&E!=A&&E!=null)}else{if(E[G]){F+=E[G]}}return F};radius.style.totalOffsetLeft=function(B,A){return radius.style.getTotalOffset(B,A,"left")};radius.style.getAbsoluteX=radius.style.totalOffsetLeft;radius.style.totalOffsetTop=function(B,A){return radius.style.getTotalOffset(B,A,"top")};radius.style.getAbsoluteY=radius.style.totalOffsetTop;radius.style.getAbsolutePosition=function(B,A){var C=[radius.style.getAbsoluteX(B,A),radius.style.getAbsoluteY(B,A)];C.x=C[0];C.y=C[1];return C};radius.style.getCursorPos=function(C,B){if(!C){return null}var A=C.pageX||C.clientX;if(!A){return null}var D=C.pageY||C.clientY;if(!D){return null}if(B){A-=radius.style.getAbsoluteX(B,null);D-=radius.style.getAbsoluteY(B,null)}return{x:A,y:D}};dojo.provide("radius.html");dojo.provide("radius.css");dojo.provide("radius.html.fx");radius.html.handleSelectionState=function(E,A){var B=A;if(E.nodeType==dojo.dom.ELEMENT_NODE){var F=dojo.html.getAttribute(E,"allowSelect");if(F){if(F.toLowerCase()=="yesfortree"){A=true;B=true}else{if(F.toLowerCase()=="yes"){A=true}else{if(F.toLowerCase()=="nofortree"){A=false;B=false}else{if(F.toLowerCase()=="no"){A=false}}}}}if(A){dojo.html.enableSelection(E)}else{dojo.html.disableSelection(E)}}var G=E.childNodes;if(G){for(var C=0;C<G.length;C++){var D=G[C];radius.html.handleSelectionState(D,B)}}};radius.html.setAttributes=function(C,B){for(var A in B){var D=B[A];C.setAttribute(A,D)}};radius.html.hideAbs=function(A){if(radius.isNotNull(A)){A.style.display="none"}};radius.html.showAbs=function(A){if(radius.isNotNull(A)){A.style.display=""}};radius.html.isVisible=function(A){return A.style.display!="none"};radius.html.show=radius.html.showAbs;radius.html.hide=radius.html.hideAbs;radius.html.overElement=function(B,C){try{return dojo.html.overElement(B,C)}catch(A){return false}};radius.html.overNode=radius.html.overElement;radius.html.contains=function(A,B){if(!B){return false}if(A.contains){return A.contains(B)}while(B){if(B==A){return true}B=B.parentNode}return false};dojo.dom.isDescendantOf=function(B,A){return radius.html.contains(A,B)};radius.html.mergeNodeData=function(C,D,E){var A=dojo.html.getClass(C);if(A){dojo.html.addClass(D,A)}D.style.cssText=C.style.cssText;if(!E){var B=C.getAttribute("id");if(B){D.id=B}}};radius.html.fixEvent=function(B,A){return dojo.event.browser.fixEvent(B?B:window.event,A)};radius.html.detachNode=function(A){if(A.parentNode){A.parentNode.removeChild(A)}};radius.html.detachNodeWithFade=function(B,A){setTimeout(function(){$("#"+B).fadeOut("slow",function(){radius.html.detachNode(radius.byId(B))})},A)};radius.html.detachChildren=function(B){var A=B.childNodes.length;if(A){while(B.hasChildNodes()){B.removeChild(B.firstChild)}}return A};radius.html.moveChildren=function(C,D){var B=C.childNodes.length;while(C.hasChildNodes()){var A=C.firstChild;radius.html.detachNode(A);D.appendChild(A)}return B};if(dojo.render.html.ie){radius.html.setInnerText=function(A,B){A.innerText=B};radius.html.setInnerHTML=function(A,B){A.innerHTML=B};radius.html.fixw=function(A){return A-(A&1)};radius.html.fixh=function(A){return(A&1)?A:(A-1)};radius.html.setOpacity=function(B,A){var C=B.filters["DXImageTransform.Microsoft.Alpha"];if(A>=1){if(C){C.Enabled=false}return }if(A>1){A=1}else{if(A<0){A=0}else{A=new Number(A).toFixed(2)}}A=A*100;if(!C){B.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+A+") "+B.style.filter}else{C.Enabled=true;C.Opacity=A}};radius.html.hitchEvent=function(E,D,A,B){if(A){if(E[D+"$hitch"]){E[D+"$hitch$counter"]++;return E[D+"$hitch"]}else{E[D+"$hitch$counter"]=1;return E[D+"$hitch"]=function(F){return E[D](F)}}}else{if(E[D+"$hitchfix"]){var C=E[D+"$$hitchfix$counter"]++;E[D+"$$hitchfix"+C+"$node"]=B;return E[D+"$hitchfix"]=function(F){return E[D](radius.html.fixEvent(F,E[D+"$$hitchfix"+C+"$node"]))}}else{E[D+"$$hitchfix$counter"]=1;E[D+"$$hitchfix$node"]=B;return E[D+"$hitchfix"]=function(F){return E[D](radius.html.fixEvent(F,E[D+"$$hitchfix$node"]))}}}};radius.html.dehitchEvent=function(E,D,A){var F=D+(A?"$hitch":"$hitchfix");var B=F+"$counter";var C=E[F];if(E[B]&&E[B]>1){E[B]--}else{delete E[F];delete E[B]}return C};radius.html.attachEventM=function(C,B,E,D,A){C.attachEvent(B,radius.html.hitchEvent(E,D,A,A?null:C));if(radius.html.eventsManager){radius.html.eventsManager.attach(arguments)}};radius.html.detachEventM=function(E,B,G,F,A){var D=radius.html.dehitchEvent(G,F,A);if(D){try{E.detachEvent(B,D)}catch(C){}}if(radius.html.eventsManager){radius.html.eventsManager.detach(arguments)}};radius.html.discardNode=function(A){if(A.parentNode){A=dojo.dom.removeNode(A)}if(A.nodeType!=3){if(dojo.evalObjPath("dojo.event.browser.clean",false)){dojo.event.browser.clean(A)}}if(dojo.render.html.ie){A.outerHTML=""}};radius.html.discardNodes=function(A){for(var B=0;B<A.length;B++){radius.html.discardNode(A[B])}};radius.html.discardChildren=function(C){var B=0;while(C&&C.hasChildNodes()){var A=C.firstChild;try{radius.html.discardNode(A)}catch(D){}B++}return B};radius.html.attachMouseWheelEvent=function(B,D,C,A){radius.html.attachEventM(B,"onmousewheel",D,C,A)}}else{radius.html.setInnerText=function(A,B){if(A.firstChild){A.replaceChild(document.createTextNode(B),A.firstChild)}else{A.appendChild(document.createTextNode(B))}};radius.html.setInnerHTML=function(A,B){A.innerHTML=B};radius.html.fixw=function(A){return A};radius.html.fixh=function(A){return A};radius.html.setOpacity=function(B,A){if(A>1){A=1}else{if(A<0){A=0}else{A=new Number(A).toFixed(2)}}B.style.opacity=A;if(dojo.render.html.moz){B.style.MozOpacity=A}else{if(dojo.render.html.safari){B.style.KhtmlOpacity=A}}};radius.html.attachEventM=function(C,B,E,D,A){dojo.event.connect("before",C,B,E,D);if(radius.html.eventsManager){radius.html.eventsManager.attach(arguments)}};radius.html.detachEventM=function(C,B,E,D,A){dojo.event.disconnect("before",C,B,E,D);if(radius.html.eventsManager){radius.html.eventsManager.detach(arguments)}};radius.html.discardNode=radius.html.detachNode;radius.html.discardNodes=function(A){for(var C=0;C<A.length;C++){var B=A[C];if(B.parentNode){B.parentNode.removeChild(B)}}};radius.html.discardChildren=radius.html.detachChildren;radius.html.attachMouseWheelEvent=function(B,D,C,A){B.addEventListener("DOMMouseScroll",dojo.lang.hitch(D,C),false)}}radius.html.eventsManager=new function(){this.lock=false;this.storage={};if(dojo.render.html.ie){this.key=function(A){return A[1]+"$"+A[3]+(A[4]?"":"$fix")}}else{this.key=function(A){return A[1]+"$"+A[3]}}this.attach=function(B){if(this.lock){return false}var A=this.key(B);var C=this.storage[A];if(!C){C=this.storage[A]=[]}C.push(B);return true};this.detach=function(C){if(this.lock){return false}var B=this.key(C);var D=this.storage[B];if(D&&D.length){for(var E=D.length-1;E;E--){var A=D[E];if(A[0]==C[0]&&A[2]==C[2]){D.splice(E,1);if(!D.length){delete this.storage[B]}return true}}}return false};this.detachAll=function(){var C=this.lock;this.lock=true;for(var A in this.storage){var D=this.storage[A];this.storage[A]=null;if(D&&D.length){for(var E=0;E<D.length;E++){var B=D[E];D[E]=null;radius.html.detachEventM.apply(radius.html,B);B[0]=B[1]=B[2]=B[3]=B[4]=null;B=null}}D=null}this.storage={};this.lock=C};radius.html.attachEventM(window,"onunload",this,"detachAll",true)};radius.html.clone=function(B){B=typeof B==="string"?"#"+B:B;var A=radius.serial_maker(orig_id);var C=$(orig_id).clone();return{clone_id:A,clone:C}};radius.html.append=function(A,B){B=typeof B==="string"?"#"+B:B;$(B).append(A)};radius.css={};radius.css.setProperty=function(B,A,C){return $("#"+B).css(A,C)};radius.css.addClass=function(B,A){B=typeof B==="string"?"#"+B:B;return $(B).addClass(A)};radius.css.hasClass=function(B,A){B=typeof B==="string"?"#"+B:B;return $(B).hasClass(A)};radius.css.removeClass=function(B,A){B=typeof B==="string"?"#"+B:B;return $(B).removeClass(A)};radius.css.replaceClass=function(B,C,A){radius.css.removeClass(B,C);radius.css.addClass(B,A)};radius.css.width=function(A){A=typeof A==="string"?"#"+A:A;$(A).width()};radius.css.setClass=function(B,A){if(radius.isNotNull(B)){B.className=A}};radius.html.fx.slide=function(A,C,B,D){A=typeof A==="string"?"#"+A:A;if(C=="up"){$(A).animate({height:"hide"},B,D)}else{if(C=="down"){$(A).animate({height:"show"},B,D)}else{if(C=="left"){$(A).animate({width:"hide"},B,D)}else{if(C=="right"){$(A).animate({width:"show"},B,D)}}}}};radius.html.isPointIn=function(D,A,F,B){if(!D){return false}if(radius.isNull(B)){B={top:0,bottom:0,left:0,right:0}}var E=radius.style.getAbsoluteX(D,true);if(A<(E-B.left)||A>(E+dojo.style.getInnerWidth(D)+B.right)){return false}var C=radius.style.getAbsoluteY(D,true);if(F<(C-B.top)||F>(C+dojo.style.getInnerHeight(D)+B.bottom)){return false}return true};radius.html.focusElement=function(B,A){if(B){if(radius.isNull(A)){A=100}setTimeout(function(){try{B.focus()}catch(C){}},A)}};radius.html.selectInputTextStart=function(B){B=radius.byId(B);if(document.selection&&document.body.createTextRange){var A=B.createTextRange();A.moveStart("character",0);A.moveEnd("character",0);A.select()}else{if(window.getSelection){var C=window.getSelection();B.setSelectionRange(0,0)}}B.focus()};radius.html.getCaretPos=function(A){if(dojo.render.html.mozilla){return A.selectionStart}else{if(dojo.render.html.ie){var C=document.selection.createRange().duplicate();var B=C.duplicate();B.moveToElementText(A);try{B.setEndPoint("EndToEnd",C);caret_pos=String(B.text).replace(/\r/g,"").length;return caret_pos}catch(D){return 0}}}};radius.html.getEventLocation=function(C){var B=dojo.html.getScrollOffset();var A=C.clientX+B[0];var D=C.clientY+B[1];return{x:A,y:D}};radius.html.stripHTML=function(B){var A=/<\/?[^>]+>/gi;B=B.replace(A,"");return B};radius.html.getScrollOffset=function(B){if(radius.isNull(B)){var D=window;var A=document}else{var D=B;var A=B.document}var C=[0,0];if(D.pageXOffset||D.pageYOffset){C=[D.pageXOffset,D.pageYOffset]}else{if(dojo.exists(A,"documentElement.scrollTop")){C=[A.documentElement.scrollLeft,A.documentElement.scrollTop]}else{if(A.body){C=[A.body.scrollLeft,A.body.scrollTop]}}}C.x=C[0];C.y=C[1];return C};radius.html.otherWinVph=function(B){var A=radius.html.docToWin(B);return A.innerHeight||B.documentElement.clientHeight||B.body.clientHeight};radius.html.otherWinVpw=function(B){var A=radius.html.docToWin(B);return A.innerWidth||B.documentElement.clientWidth||B.body.clientWidth};radius.html.docToWin=function(A){return A.parentWindow||A.defaultView};radius.html.setCursorPosition=function(B,C){if(B.createTextRange){var A=B.createTextRange();A.collapse(true);A.moveEnd("character",C);A.moveStart("character",C);A.select()}if(B.selectionStart){B.selectionStart=C;B.selectionEnd=C}};radius.html.fixBadHtml=function(A){A=A.replace(/\&apos\;/g,"'");return A};radius.html.prepareHtmlText=function(B,A){B=B.replace("<","&lt;");B=B.replace(">","&gt;");return B};radius.html.prepareAnchors=function(C){var A=C.getElementsByTagName("a");for(var B=0;B<A.length;B++){A[B].setAttribute("target","_blank")}};radius.html.getFontFamilies=function(B){var A={Arial:"Arial, Helvetica, sans-serif",Courier:"'Courier New', Courier, monospace",Geneva:"Geneva, Arial, Helvetica, sans-serif",Georgia:"Georgia, 'Times New Roman', Times, serif","Times New Roman":"'Times New Roman', Times, serif",Verdana:"Verdana, Arial, Helvetica, sans-serif"};return A[B]};radius.html.sizeImageProportionally=function(E,F,B){var A=E.offsetWidth;var D=E.offsetHeight;if(A<=F&&D<=B){E.style.height=B+"px";E.style.width=F+"px";return }var C=1;if(A>D){C=F/A}else{C=B/D}A*=C;D*=C;E.style.height=D+"px";E.style.width=A+"px"};radius.html.insertAtCursor=function(C,D){if(dojo.render.html.ie){D.focus();sel=D.ownerDocument.selection.createRange();if(sel.parentElement().tagName.toLowerCase()=="textarea"){sel.text=C}}else{if(D.selectionStart||D.selectionStart=="0"){D.focus();var B=D.selectionStart;var A=D.selectionEnd;D.value=D.value.substring(0,B)+C+D.value.substring(A,D.value.length)}else{D.value+=C}}};dojo.provide("radius.fx.html");radius.fx.duration=500;radius.fx.html.go=function(D,F,C,B,A){var E=new radius.anim.Anim(F);E.onAnim=function(G){C(G,D)};if(B){E.onEnd=function(G){B(D,E)}}if(!A){E.goForward()}return E};radius.fx.html.wipeHeight=function(E,G,B,D,C,A){var F=D-B;return radius.fx.html.go(E,G,function(H,I){I.style.height=(B+F*H)+"px"},C,A)};radius.fx.html.explode=function(C,G,F,J,H,E){var I=dojo.style.toCoordinateArray(C);var A=document.createElement("div");A.style.zIndex=dojo.style.getComputedStyle(G,"z-index");A.style.position="absolute";A.style.border="1px solid black";A.style.display="none";document.body.appendChild(A);if(!E){G.style.visibility="hidden";G.style.display="block"}var B=dojo.style.toCoordinateArray(G);if(!E){G.style.display="none";G.style.visibility="visible"}var D=new dojo.animation.Animation(new dojo.math.curves.Line(I,B),F||radius.fx.duration,0);dojo.event.connect(D,"onBegin",function(K){A.style.display="block"});dojo.event.connect(D,"onAnimate",function(K){A.style.left=K.x+"px";A.style.top=K.y+"px";A.style.width=K.coords[2]+"px";A.style.height=K.coords[3]+"px"});dojo.event.connect(D,"onEnd",function(){if(!E){G.style.display="block"}radius.html.discardNode(A);if(J){J(G,D)}});if(!H){D.play()}return D};radius.fx.html.implode=function(C,G,F,J,H,E){var I=dojo.style.toCoordinateArray(C);var B=dojo.style.toCoordinateArray(G);var A=document.createElement("div");A.style.zIndex=dojo.style.getComputedStyle(C,"z-index");A.style.position="absolute";A.style.border="1px solid black";A.style.display="none";document.body.appendChild(A);var D=new dojo.animation.Animation(new dojo.math.curves.Line(I,B),F||radius.fx.duration,0);dojo.event.connect(D,"onBegin",function(K){if(!E){C.style.display="none"}A.style.display="block"});dojo.event.connect(D,"onAnimate",function(K){A.style.left=K.x+"px";A.style.top=K.y+"px";A.style.width=K.coords[2]+"px";A.style.height=K.coords[3]+"px"});dojo.event.connect(D,"onEnd",function(){radius.html.discardNode(A);if(J){J(C,D)}});if(!H){D.play()}return D};dojo.fx.html.toggle.plain={show:function(B,C,A,D){radius.html.show(B);if(dojo.lang.isFunction(D)){D()}},hide:function(B,C,A,D){radius.html.hide(B);if(dojo.lang.isFunction(D)){D()}}};dojo.provide("radius.ServerRequest");radius.ServerRequest=function(C,A,B){this.remoteMethodName=C;this.isAsync=A;this.onResultCallback=B;this.async_requests={}};radius.extend(radius.ServerRequest,{send:function(){this.result=null;var B=this.remoteMethodName.split(".");var D=radius.jsonrpc;var C=null;for(var G=0;G<B.length;G++){C=D;D=D[B[G]];if(!D){return }}if(!this.onStart(arguments)){return }if(this.isAsync){var H=null;try{var E=new Array();E.push(dojo.lang.hitch(this,"_cb"));for(var G=0;G<arguments.length;G++){E.push(arguments[G])}H=D.apply(C,E);this.async_requests[H]=true}catch(F){radius.debugException("error during async remote method call "+this.remoteMethodName+" with args "+radius.obj2str(E),F);this.onEnd(F)}return H}else{var A=null;try{A=D.apply(C,arguments)}catch(F){this._handleException(F);this.onEnd(F);return null}this.onResult(A);this.onEnd(null);return A}},onStart:function(A){return true},onResult:function(A){if(this.onResultCallback){this.onResultCallback(A)}},onEnd:function(A){},onConnectionProblem:function(A){radius.disconnectHandler.errorOccured=true;radius.disconnectHandler.handleDisconnect(A,"onConnectionProblem")},onServerProblem:function(A){},_handleException:function(A){return A.name=="JSONRpcClientException"?this.onConnectionProblem(A):this.onServerProblem(A)},_cb:function(A,B){if(B){this._handleException(B);this.onEnd(B);return }this.onResult(A);this.onEnd(null)},cancel:function(A){if(A){if(this.async_requests[A]){this.result=null;this.async_requests[A]=null;delete this.async_requests[A];JSONRpcClient.cancelRequest(A)}}else{this.cancelAll()}},cancelAll:function(){for(var A in this.async_requests){JSONRpcClient.cancelRequest(A)}this.async_requests={}},markComplete:function(A){if(this.async_requests[A]){delete this.async_requests[requestId]}}});dojo.provide("radius.requests");dojo.provide("radius.LocalsRequest");dojo.provide("radius.LocationRequest");radius.LocalsRequest=function(A,B,C){this.logicMethodName=A;radius.ServerRequest.call(this,"locals."+A,!B,C)};radius.inherits(radius.LocalsRequest,radius.ServerRequest);radius.extend(radius.LocalsRequest,{});radius.GFacadeRequest=function(A,B,C){this.logicMethodName=A;radius.ServerRequest.call(this,"gfacade."+A,!B,C)};radius.inherits(radius.GFacadeRequest,radius.ServerRequest);radius.extend(radius.GFacadeRequest,{});radius.LocationRequest=function(A,B,C){this.logicMethodName=A;radius.ServerRequest.call(this,"location."+A,!B,C)};radius.inherits(radius.LocationRequest,radius.ServerRequest);radius.extend(radius.LocationRequest,{});radius.RosterRequest=function(A,B,C){this.logicMethodName=A;radius.ServerRequest.call(this,"roster."+A,!B,C)};radius.inherits(radius.RosterRequest,radius.ServerRequest);radius.extend(radius.RosterRequest,{});radius.PhotoRequest=function(A,B,C){this.logicMethodName=A;radius.ServerRequest.call(this,"photo."+A,!B,C)};radius.inherits(radius.PhotoRequest,radius.ServerRequest);radius.extend(radius.PhotoRequest,{});dojo.provide("radius.widget.manager");radius.widget.manager=new function(){this.lock=false;this.wins=[];this.winIds={};this.winTypeCtr={};this.getUniqueId=function(A){return A+"_"+(this.winTypeCtr[A]!=undefined?++this.winTypeCtr[A]:this.winTypeCtr[A]=0)};this.add=function(A){this.wins.push(A);if(!A.widgetId){A.widgetId=this.getUniqueId(A.widgetType)}if(this.winIds[A.widgetId]){}this.winIds[A.widgetId]=A};this.destroyAll=function(){while(this.wins.length){var A=this.wins[0];delete this.winIds[A.widgetId];this.wins.splice(0,1);A.destroy(true);try{delete A}catch(B){}A=null}this.wins=[];this.winIds={}};this.remove=function(A){var B=this.wins[A].widgetId;delete this.winIds[B];this.wins.splice(A,1)};this.removeById=function(B){if(!B||!this.winIds[B]){return false}for(var A=0;A<this.wins.length;A++){if(this.wins[A].widgetId==B){this.remove(A);return true}}return false};this.byId=function(A){return this.winIds[A]};this.byType=function(C){var B=[];for(var D=0;D<this.wins.length;D++){var A=this.wins[D];if(A.widgetType==C){B.push(A)}}return B};this.byFilter=function(A){var C=[];for(var D=0;D<this.wins.length;D++){var B=this.wins[D];if(A(B)){C.push(B)}}return C};this.all=function(){return this.wins.concat()}};radius.widget.byId=function(A){return this.manager.byId(A)};radius.widget.byType=function(A){return this.manager.byType(A)};radius.widget.byFilter=function(A){return this.manager.byFilter(A)};radius.widget.all=function(){return this.manager.all()};radius.widget.classes={};radius.widget.addClass=function(B,A){this.classes[B]=A};radius.widget.getClass=function(A){return this.classes[A]};dojo.provide("radius.templates");radius.templates.byWidgetType={ImageButton:"ImageButton.html",CheckBox:"CheckBox.html",DefaultWindow:"DefaultWindow.html",DebugWindow:"DebugWindow.html",ContentArea:"ContentArea.html",RadioButton:"RadioButton.html",ContentAreaVScroll:"ScrollBar.html",ContentAreaHScroll:"ScrollBar.html",LocalsScrollBar:"ScrollBar.html",PZoomerScrollBar:"ScrollBar.html",SettingsWindow:"SettingsWindow.jsp",RosterWindow:"RosterWindow.jsp",MapWindow:"MapWindow.jsp",LocalsFilterWindow:"LocalsFilterWindow.jsp",BaseShadePanel:"BaseShadePanel.jsp",MessagingWindow:"MessagingWindow.jsp",AddFriendWindow:"AddFriendWindow.jsp",EditFriendWindow:"EditFriendWindow.jsp",SimpleWindow:"SimpleWindow.jsp",AddGroupWindow:"AddGroupWindow.jsp",InfoWindow:"InfoWindow.jsp",LogViewWindow:"LogViewWindow.jsp",FeedbackWindow:"FeedbackWindow.jsp",IMAnyoneWindow:"IMAnyone.jsp",InviteToChatWindow:"InviteToChat.html",BuddyInfoOverlay:"BuddyInfoOverlay.jsp",InviteContactsIMWindow:"InviteContactsIMWindow.jsp",ImportContactsWindow:"ImportContactsWindow.jsp",InitialMsgWindow:"InitialMsgWindow.jsp",AddNicknameWindow:"AddNicknameWindow.jsp",FindFriendsWindow:"FindFriendsWindow.jsp",TextButton:"TextButton.jsp",IMCatcherWindow:"IMCatcherWindow.jsp",MotdWindow:"motd.jsp",GiftShopWindow:"GiftShopWindow.jsp",BankWindow:"BankWindow.jsp",MyGiftsWindow:"MyGiftsWindow.jsp",RoomsWindow:"RoomsWindow.jsp",_:0};radius.templates.loaded={};radius.templates.widgetTypeURLPrefix="/templates/";radius.templates.byWidgetTypeLoaded={};radius.templates.require=function(A){if(this.loaded[A]){return false}var B=dojo.hostenv.getText(A);var C=radius.byId("templatesContainerDomId");if(C){radius.html.discardChildren(C);C.innerHTML=B;radius.html.moveChildren(C,document.body)}radius.templates.loaded[A]=true;return true};radius.templates.versionBuildPostfix={version:GLOBAL_CONFIG.version,build:GLOBAL_CONFIG.build,lang:(radiusIMTranslations)?radiusIMTranslations.languageFile:"-1"};radius.templates.jspTemplateBaseUrl="/templates/";radius.templates.htmlTemplateBaseUrl="/templates/";radius.templates.requireByWidgetType=function(F,B){if(this.byWidgetTypeLoaded[F]){return false}if(B&&B.superclass&&B.superclass.widgetType){this.requireByWidgetType(B.superclass.widgetType,B.superclass)}var E=this.byWidgetType[F];if(!E){return false}var A=E.split(/\s*,\s*/);for(var H=0;H<A.length;H++){var D=A[H].substring(A[H].lastIndexOf(".")+1);var C;if(D=="jsp"||D=="jspx"){var G={};if(radius.isNotNull(ssoLoginResult)){G.subsessionid=ssoLoginResult.subsessionId}C=radius.encodeURL(radius.templates.jspTemplateBaseUrl+A[H],G)}else{C=radius.templates.htmlTemplateBaseUrl+A[H]}radius.templates.require(C)}this.byWidgetTypeLoaded[F]=true;return true};dojo.provide("radius.widget.Window");dojo.provide("radius.widget.RadWindow");dojo.provide("radius.widget.RadContainer");radius.widget.attachTemplateNodes=function(B,C){if(B&&B.getElementsByTagName){var A=B.getElementsByTagName("*");for(var F=-1;F<A.length;F++){var D=(F==-1)?B:A[F];var E=D.getAttribute("id");if(E){C[E]=D;D.removeAttribute("id")}E=D.getAttribute("dojoAttachPoint");if(E){C[E]=D}}}};radius.widget.fireOnLoaded=function(){var B=radius.widget.manager.wins;for(var C=0;C<B.length;C++){var A=B[C];if(A.onLoaded){A.onLoaded()}}};radius.widget.browserResized=function(){var A=$(window).width();var B=$(window).height();dojo.event.topic.publish("/browserresized",{vpw:A,vph:B})};radius.widget._postLoaded=function(){radius.widget.browserResized();radius.html.attachEventM(window,"onresize",radius.widget,"browserResized",true);if(radius.widget.initTooltips){radius.widget.initTooltips()}};radius.widget.postLoaded=function(){setTimeout(radius.widget._postLoaded,10)};radius.widget.cache={ImageButton:{}};radius.widget.cloneNode=function(C,B){var A=dojo.byId(C);if(A==undefined||A==null){throw new Error("Unable to clone node with id "+C+".  Node with that id does not exist.")}var D=A.cloneNode(true);if(B==undefined||B){D.removeAttribute("id")}else{A.removeAttribute("id")}A.parentNode.appendChild(D);return D};radius.widget.getBogusWinOpen=function(A){return{open:function(){}}};radius.widget.create=function(B,G,C,I,D){var A=this.cache[B];if(A){var J=G.prefixPath?(G.prefixPath+G.name):G.name;var H=A[J];if(H){if(C&&dojo.lang.isString(C)){C=radius.byId(C)}return H.clone(C,G)}}var E=this.getClass(B);if(!E){return radius.widget.getBogusWinOpen(B)}radius.templates.requireByWidgetType(B,E);if(C&&dojo.lang.isString(C)){C=radius.byId(C)}if(!C){}if(I&&D==undefined){C=this.cloneNode(C)}try{var H;H=new E()}catch(F){try{H=new E()}catch(F){throw new Error("Error creating window object for type "+E+": "+F.toString())}}H.create(G,C);if(A){A[H.uname()]=H}return H};radius.widget.Window=function(){};radius.extend(radius.widget.Window,{widgetType:"Window",hideOnStartup:true,autoOnload:true,create:function(A,B){radius.mixin(this,A);if(!this.isWinReusable&&this.widgetId&&radius.widget.manager.winIds[this.widgetId]){return radius.widget.getBogusWinOpen(this.widgetId)}if(this.isControl){this.srcNode=B}else{this.srcNode=this._create(A,B)}this.preLoading();if(!this.isControl){radius.widget.manager.add(this)}this.preCreate();this.doCreate();this.postCreate();if(radius.loaded){this.onLoaded()}},destroy:function(A){this.preDestroy();radius.widget.manager.removeById(this.widgetId);this.doDestroy(A)},preLoading:function(){},preCreate:function(){if(this.hideOnStartup){radius.html.hideAbs(this.domNode)}else{radius.html.showAbs(this.domNode)}},doCreate:function(){if(this.fillInTemplate){this.fillInTemplate()}radius.image.fixPngChildNodes(this.domNode)},preDestroy:function(){},doDestroy:function(C){var A=radius.widget.cache[this.widgetType];if(A&&A[this.uname()]==this){return false}if(!C){dojo.event.browser.clean(this.domNode)}radius.html.discardNode(this.domNode);try{delete this.domNode}catch(B){}return true},postCreate:function(){},onLoaded:function(){},show:function(){radius.html.show(this.domNode)},hide:function(){radius.html.hide(this.domNode)},setPos:function(B){var A={};if(dojo.lang.has(B,"x")){A.left=B.x}if(dojo.lang.has(B,"y")){A.top=B.y}if(dojo.lang.has(B,"left")){A.left=B.left}if(dojo.lang.has(B,"top")){A.top=B.top}if(dojo.lang.has(B,"right")){A.right=B.right}if(dojo.lang.has(B,"width")){A.width=B.width}if(dojo.lang.has(B,"height")){A.height=B.height}if(dojo.lang.has(A,"top")&&A.top<radius.config.navigationPanelHeight){A.top=radius.config.navigationPanelHeight}if(dojo.lang.has(A,"left")&&A.left<radius.config.getSkyscraperWidth()&&this.domNode&&this.domNode.parnentNode&&this.domNode.parnentNode.tagName==="BODY"){A.left=radius.config.getSkyscraperWidth()}radius.style.setStyles(this.domNode,A)},makeImgPiece:function(H,F,D,A,E){if(!A){A=this.domNode}var B,I=null;var G=H.imgUrl?H.imgUrl:radius.image.blankUrl;var C=H.imgUrl0;if(dojo.render.html.ie){if(D!="png"){B=radius.image.makeBlankNode();B.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+G+"'"+(D?", sizingMethod='"+D+"'":"")+")";if(C){I=radius.image.makeBlankNode();I.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+C+"'"+(D?", sizingMethod='"+D+"'":"")+")"}}else{B=radius.image.makeNode(G);dojo.html.setClass(B,"png");if(C){I=radius.image.makeNode(G);dojo.html.setClass(I,"png")}}}else{B=radius.image.makeNode(G);if(C){I=radius.image.makeNode(C)}}if(!dojo.lang.has(F,"width")&&dojo.lang.has(H,"w")){F.width=H.w}if(!dojo.lang.has(F,"height")&&dojo.lang.has(H,"h")){F.height=H.h}if(!E){B.style.position="absolute"}radius.style.setStyles(B,F);if(I){if(!E){I.style.position="absolute"}radius.style.setStyles(I,F);H.node0=I;A.appendChild(I)}H.node=B;A.appendChild(B);return B},makePiece:function(C,A,E,B){if(!B){B=this.domNode}var D=document.createElement("div");D.style.position="absolute";if(C){if(!dojo.lang.has(E,"width")&&dojo.lang.has(C,"w")){E.width=C.w}if(!dojo.lang.has(E,"height")&&dojo.lang.has(C,"h")){E.height=C.h}}radius.style.setStyles(D,E);if(C){C.node=D}B.appendChild(D);return D},attachNode:function(B,A){this[A]=radius.byId(B)},attachNodes:function(A){for(var B in A){this[A[B]]=radius.byId(B)}},attachTemplateNodes:function(A){radius.widget.attachTemplateNodes(A||this.domNode,this)},getCursorPos:function(B,A){return radius.style.getCursorPos(B,A)},_create:function(C,E){if(E&&E.ownerDocument){var A=E.ownerDocument}else{var A=document}var F=this.templateNode;this.templateNode=null;if(!F||!dojo.byId(F)){var B=this.templateString;if(B){var G=A.createElement("div");A.body.appendChild(G);G.innerHTML=B;G.normalize();if(G.childNodes.length){F=G.childNodes[0];radius.html.detachNode(F)}radius.html.discardNode(G)}}else{F=dojo.byId(F).cloneNode(true)}if(F&&E&&F.ownerDocument&&E.ownerDocument&&F.ownerDocument!=E.ownerDocument){var D=A.createElement("div");D.innerHTML=F.innerHTML;F=D}if(!F){F=E||A.createElement("div");E=null}else{this.attachTemplateNodes(F);if(this.isContainer&&this.containerNode&&E){dojo.dom.moveChildren(E,this.containerNode)}if(E&&E.parentNode&&E.parentNode.nodeType==dojo.dom.ELEMENT_NODE){E.parentNode.replaceChild(F,E)}}if(!F.parentNode||F.parentNode.nodeType==dojo.dom.DOCUMENT_FRAGMENT_NODE){A.body.appendChild(F)}this.domNode=F;return E}});radius.widget.RadContainer=function(){};radius.extend(radius.widget.RadContainer,{widgetType:"RadContainer",minHeight:0,minWidth:0,create:function(A,B){this.containerNode=this.contentNode=this.domNode=this.bodyNode=B;radius.mixin(this,A);this.onInit()},hide:function(){radius.html.hide(this.domNode)},show:function(){radius.html.show(this.domNode)},setPos:function(A){if(this.popOutBody){return }if(A.x==0||A.x){A.left=A.x}if(A.y==0||A.y){A.top=A.y}if(A.top==0||A.top){if(A.top<radius.config.navigationPanelHeight&&this.domNode.parentNode.tagName==="BODY"){A.top=radius.config.navigationPanelHeight}this.domNode.style.top=A.top+"px";this.domNode.style.bottom=""}if(A.left==0||A.left){if(A.left<radius.config.getSkyscraperWidth()&&this.domNode.parentNode.tagName==="BODY"){A.left=radius.config.getSkyscraperWidth()}this.domNode.style.left=A.left+"px";this.domNode.style.right=""}if(A.right==0||A.right){this.domNode.style.right=A.right+"px";this.domNode.style.left=""}if(A.bottom==0||A.bottom){this.domNode.style.bottom=A.bottom+"px";this.domNode.style.top=""}},resizeTo:function(A,B){if(this.popOutBody){return }if(A){this.width=Math.max(A,this.minWidth);this.contentNode.style.width=this.width+"px"}if(B){if(!isNaN(B)){this.height=Math.max(B,this.minHeight);this.contentNode.style.height=this.height+"px"}else{if(B=="auto"){this.contentNode.style.height="100%"}}}},isVisible:function(){return radius.html.isVisible(this.domNode)},_:0});radius.widget.RadWindow=function(){};radius.inherits(radius.widget.RadWindow,radius.widget.RadContainer);radius.extend(radius.widget.RadWindow,{widgetType:"RadWindow",allowTopping:true,isFloatingWindow:true,minHeight:60,minWidth:140,windowState:"normal",disableOnDisconnect:true,disabled:false,allowResize:true,moveOnBrowserResized:true,isModal:false,isOpen:false,hasBeenManuallyResized:false,centerOnPreCreate:false,isActive:false,trackWindowEvents:true,attachBackbone:function(){this.contentNode=this.byId(this.widgetId+"ContentNodeDomId");this.borderTable=this.byId(this.widgetId+"BorderDomId");this.captionBarNode=this.byId(this.widgetId+"CaptionBarDomId");this.captionTextNode=this.byId(this.widgetId+"CaptionTextDomId");this.captionIconImgNode=this.byId(this.widgetId+"CaptionImgDomId");this.scaleIcon=this.byId(this.widgetId+"ScaleIconDomId");this.containerNodeOverlay=this.byId(this.widgetId+"DisableOverlayDomId");this.closeBtn=this.byId(this.widgetId+"CloseBtnDomId");this.maxBtn=this.byId(this.widgetId+"MaxBtnDomId");this.minBtn=this.byId(this.widgetId+"MinBtnDomId");this.restoreBtn=this.byId(this.widgetId+"RestoreBtnDomId");this.popOutBtn=this.byId(this.widgetId+"PopOutBtnDomId");this.modalBgNode=this.byId("winModalBgDomId");if(!this.allowResize&&this.scaleIcon){radius.html.hide(this.scaleIcon)}},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},activateBackbone:function(D){var C=(D=="on")?"off":"on";var A=this.borderTable.getElementsByTagName("TD");for(var B=0;B<A.length;B++){var E=A[B];E.className=E.className.replace("_"+C,"_"+D)}this.captionBarNode.className=this.captionBarNode.className.replace("_"+C,"_"+D)},activate:function(){if(!this.isActive){this.activateBackbone("on");this.isActive=true}},disactivate:function(){if(this.isActive){this.activateBackbone("off");radius.doRemoveFocusFromElements(this.domNode);this.isActive=false}},bringToTop:function(){radius.bringWinToTop(this)},open:function(A){if(!A){A={}}A.isOnOpen=true;if(A.isModal){this.isModal=true}if(this.onBeforeOpen){this.onBeforeOpen(A)}if(this.isOpen){this.bringToTop(A);if(this.onOpen){this.onOpen(A)}return }if(this.windowState!="normal"){this._endRestoreWindow()}this.isOpen=true;this.bringToTop(A);radius.html.show(this.domNode);if(this.isModal&&this.modalBgNode){this.modalBgNode.style.zIndex=this.domNode.style.zIndex-1;radius.html.show(this.modalBgNode)}if(this.onOpen){this.onOpen(A)}if(this.trackWindowEvents){radius.trackPageEvent("Windows","Open",this.widgetType)}},close:function(){if(this.trackWindowEvents){radius.trackPageEvent("Windows","Close",this.widgetType)}if(this.onBeforeClose){this.onBeforeClose()}radius.html.hide(this.domNode);this.isOpen=false;if(this.isModal){var A=radius.isOpenModalWin();if(!A){radius.html.hide(this.modalBgNode)}else{this.modalBgNode.style.zIndex=A.domNode.style.zIndex-1}}this.onCloseReset();if(this.onClose){this.onClose()}if(this.popOutWindowObject){this.popOutWindowObject.close()}},onCloseReset:function(){if(this.maxBtn){radius.html.show(this.maxBtn)}if(this.minBtn){radius.html.show(this.minBtn)}if(this.restoreBtn){radius.html.hide(this.restoreBtn)}},disable:function(){if(!this.isVisible()){return }this.containerNodeOverlay.style.display="block";if(rim.env.Browser.ie){this.containerNodeOverlay.style.height=$(this.domNode).height()+"px"}this.disabled=true},enable:function(){if(!this.disabled){return }this.containerNodeOverlay.style.display="none";this.disabled=false},maximizeWindow:function(){if(this.windowState=="maximized"){return }if(this.windowState=="minimized"){radius.widget.TaskBar.remove(this);this.doUnminimize()}this.storeWinLocation();this.windowState="maximized";var A=dojo.style.toCoordinateArray(this.getMaximizeCoords());var C=dojo.style.toCoordinateArray(this.domNode);this.maximizeWindow_maxCoords=A;this.doMaximize(A);var D=this;var B=radius.fx.html.implode(D.domNode,A,radius.data.taskBar.effectDuration,function(){D._endMaximizeWindow()},true,true);B.play()},doMaximize:function(A){radius.html.hide(this.maxBtn);radius.html.show(this.restoreBtn)},_endMaximizeWindow:function(){this.restoreWinLocationAndSize(this.maximizeWindow_maxCoords);this.maximizeWindow_maxCoords=undefined},minimizeWindow:function(){this.windowState="minimized";var B=this;var A=radius.fx.html.implode(B.domNode,radius.widget.TaskBar.getNewCoords(),radius.data.taskBar.effectDuration,function(){B._endMinimizeWindow()},true);this.doMinimize();this.storeWinLocation();A.play()},doMinimize:function(){this.borderTable.rows[1].style.display="none";this.borderTable.rows[2].style.display="none";this.borderTable.style.width=radius.data.taskBar.winWidth+"px";radius.html.hide(this.minBtn);radius.html.hide(this.maxBtn);radius.html.hide(this.popOutBtn);radius.html.show(this.restoreBtn)},_endMinimizeWindow:function(){radius.widget.TaskBar.add(this);this.domNode.style.display="block"},restoreWindow:function(){if(this.windowState=="normal"){return }else{if(this.windowState=="minimized"||this.windowState=="maximized"){this.windowState="normal";var B=this;var A=radius.fx.html.implode(B.domNode,B.normalLoc,radius.data.taskBar.effectDuration,function(){B._endRestoreWindow()},true,true);A.play();radius.html.hide(this.restoreBtn);radius.html.show(this.minBtn);radius.html.show(this.maxBtn);radius.html.show(this.popOutBtn)}}},doUnminimize:function(){this.borderTable.style.width="";this.borderTable.rows[1].style.display="";this.borderTable.rows[2].style.display=""},_endRestoreWindow:function(){radius.widget.TaskBar.remove(this);this.doUnminimize();this.restoreWinLocationAndSize(this.normalLoc)},storeWinLocation:function(){if(isNaN(parseInt(this.contentNode.style.height))){var B=0}else{var B=parseInt(this.contentNode.style.height)}if(isNaN(parseInt(this.contentNode.style.width))){var A=0}else{var A=parseInt(this.contentNode.style.width)}return this.normalLoc=dojo.style.toCoordinateArray([this.domNode.offsetLeft,this.domNode.offsetTop,A,B])},restoreWinLocationAndSize:function(C){if(isNaN(C.h)||C.h==0){var B="100%"}else{var B=C.h}this.resizeTo(C.w,B);var A=Math.min(C.x,$(window).width()-$(this.domNode).width());var D=Math.min(C.y,$(window).height()-$(this.domNode).height());this.setPos({x:A,y:D})},getMaximizeCoords:function(){return[0,0+radius.config.navigationPanelHeight,$(window).width()-12-radius.config.getSkyscraperWidth(),$(window).height()-24-radius.config.navigationPanelHeight]},_handleProxyStatusMsg:function(A){if(this.disableOnDisconnect){if(this.disabled==true&&A.newState==radius.disconnectHandler.STATES.connected){this.enable()}else{if(this.disabled==false&&(A.newState==radius.disconnectHandler.STATES.disconnected||A.newState==radius.disconnectHandler.STATES.reconnecting)){this.disable()}}}},browserResized:function(A){radius.onBrowserResized(A.vpw,A.vph,this)},attachEvents:function(){var A=this;if(this.allowTopping){rim.events.Event.addListener(this.domNode,"mousedown",function(){A.bringToTop()})}if(this.minBtn){rim.events.Event.addListener(this.minBtn,"click",function(){A.minimizeWindow()})}if(this.maxBtn){rim.events.Event.addListener(this.maxBtn,"click",function(){A.maximizeWindow()})}if(this.minBtn||this.maxBtn){rim.events.Event.addListener(this.restoreBtn,"click",function(){A.restoreWindow()})}if(this.closeBtn){rim.events.Event.addListener(this.closeBtn,"click",function(){A.close()})}if(this.popOutBtn){rim.events.Event.addListener(this.popOutBtn,"click",function(){A.popOut()})}if(this.allowResize&&!this.popOutBody){radius.html.show(this.scaleIcon);new radius.widget.ResizeHandle(this,this.scaleIcon,"se",this.contentNode);new radius.widget.ResizeHandle(this,this.borderTable.rows[1].cells[0],"w",this.contentNode);new radius.widget.ResizeHandle(this,this.borderTable.rows[1].cells[2],"e",this.contentNode);new radius.widget.ResizeHandle(this,this.borderTable.rows[2].cells[1],"s",this.contentNode)}dojo.event.topic.subscribe("/CONN/status",this,"_handleProxyStatusMsg");dojo.event.topic.subscribe("/browserresized",this,"browserResized")},create:function(A,B){this.domNode=B;radius.mixin(this,A);if(!this.isWinReusable&&this.widgetId&&radius.widget.manager.winIds[this.widgetId]){return radius.widget.getBogusWinOpen(this.widgetId)}this.initRadWin()},setCaption:function(A){this.setCaptionText(A)},setCaptionText:function(A){if(!this.captionTextNode){this.captionTextNode=this.byId(this.widgetId+"CaptionTextDomId");this.captionTextNode.id=""}this.captionTextNode.innerHTML=A;if(this.popOutBody&&this.popOutBody.ownerDocument){this.popOutBody.ownerDocument.title=A}},setCaptionImg:function(D,B){var A="";if(radius.isNotNull(B)&&B){A="_anim"}var C="defWinCaptionImgClass defWinCaptionImgBgClass"+A+" caption_"+D;this.captionIconImgNode.className=C},center:function(){radius.centerWin(this)},removeNodeIds:function(){this.domNode.removeAttribute("id");var B=this.domNode.getElementsByTagName("*");for(var C=0;C<B.length;C++){var A=B[C];if(A.id){A.removeAttribute("id")}}},getCursorPos:function(B,A){return radius.style.getCursorPos(B,A)},setCaptionImgClass:function(B,A){radius.setCaptionImgClass(this,B,A)},byId:function(A){if(this.popOutBody&&this.popOutBody.ownerDocument){return this.popOutBody.ownerDocument.getElementById(A)}else{return radius.byId(A)}},popOutInit:function(){if(!this.popOutBody||!this.popOutBody.ownerDocument){return }this.domNode.style.left="0";this.domNode.style.top="0";this.domNode.style.width="100%";this.domNode.style.height="100%";this.contentNode.style.width="100%";this.contentNode.style.height="100%";this.borderTable.style.width="100%";this.borderTable.style.height="100%";this.captionTextNode.style.width="auto";this.popOutBtn.parentNode.style.right="5px";this.popOutWindowObject=this.popOutBody.ownerDocument.defaultView||this.popOutBody.ownerDocument.parentWindow;if(this.popOutResized){radius.html.attachEventM(this.popOutWindowObject,"onresize",this,"popOutResized",true);this.popOutResized()}this.popOutBtn.className="defWinCaptionBtnImgClass sprite-popin_reg";radius.pop.popOutBtn.onmouseover="this.className = 'defWinCaptionBtnImgClass sprite-popin_over'";radius.pop.popOutBtn.onmouseout="this.className = 'defWinCaptionBtnImgClass sprite-popin_reg'";radius.html.hide(this.closeBtn);radius.html.hide(this.maxBtn);radius.html.hide(this.minBtn);if(this.onPopOutInit){this.onPopOutInit()}},popOut:function(){if(this.popOutBody){if(this.popIn_){this.popIn_()}}else{if(this.popOut_){this.popOut_()}}},makeNotModal:function(){if(this.isModal&&this.modalBgNode){if(this==radius.modalWinOnTop){radius.modalWinOnTop=null}this.isModal=false;radius.html.hide(this.modalBgNode);this.bringToTop()}},quickBlink:function(){this.blink(200,10)},blink:function(C,B){if(!B%2){B=B+1}var A;if(this.isActive){startState="on"}else{startState="off"}var E=this;this.nextBlinkState=startState;for(var D=1;D<=B;D++){setTimeout(function(){E.nextBlinkState=E.nextBlinkState=="on"?"off":"on";E.activateBackbone(E.nextBlinkState)},C*D)}},initRadWin:function(){try{if(this.isWinReusable){var D=this.domNode.cloneNode(true)}if(this.popOutBody){radius.pop=this;var A=this.byId("winDomId");A.innerHTML=this.domNode.innerHTML;this.domNode=A}this.attachBackbone();if(this.captionBarNode&&!this.popOutBody){var C=new radius.widget.FloatingWindow.DragMoveSource(this.domNode,null,this);C.setDragHandle(this.captionBarNode);this.captionBarNode.dragger=C}this.attachEvents();if(this.centerOnPreCreate){this.center()}if(this.onInit){this.onInit()}if(this.isWinReusable){if(!this.popOutBody){this.removeNodeIds()}this.widgetId=null;document.getElementsByTagName("body")[0].appendChild(D)}if(!this.isControl){radius.widget.manager.add(this)}if(this.popOutBody){this.popOutInit()}}catch(B){throw new Error("initRadWin failed for winName="+this.widgetId+" with error: "+radius.obj2str(B))}},_:0});dojo.provide("radius.widget.FloatingWindow");radius.widget.FloatingWindow=function(){radius.widget.Window.call(this);this.dragBars=new Array();this.closeListeners=new Array()};radius.inherits(radius.widget.FloatingWindow,radius.widget.Window);radius.extend(radius.widget.FloatingWindow,{widgetType:"FloatingWindow",isFloatingWindow:true,isContainer:true,isActive:false,allowMoving:true,allowResize:true,allowTopping:true,resizeOnStartup:true,constrainToContainer:true,moveOnBrowserResized:true,dragBars:null,minWidth:0,minHeight:0,width:320,height:200,contentNode:null,isOpen:undefined,centerOnPreCreate:true,centerOnOpen:false,isModal:false,toggle:null,toggleDuration:150,toggleObj:null,preCreate:function(){if(this.toggle){var A=(dojo.fx&&dojo.fx.html&&dojo.fx.html.toggle[this.toggle.toLowerCase()]);if(A){this.toggleObj=A;if(A.init){A.init(this)}}}if(this.minWhiteSpaceX||this.minWhiteSpaceY){this.adjustSizeForMinWhiteSpace()}if(this.centerOnPreCreate){this.center()}dojo.event.connect(this,"open",this,"completeOpen");dojo.event.connect(this,"close",this,"completeClose");radius.widget.FloatingWindow.superclass.preCreate.call(this)},doCreate:function(){radius.widget.FloatingWindow.superclass.doCreate.call(this);this.domNode.style.position="absolute"},postCreate:function(){if(this.allowMoving&&this.dragBars&&this.dragBars.length){var A=this.dragBars;for(var B=0;B<A.length;B++){var E=new radius.widget.FloatingWindow.DragMoveSource(this.domNode,null,this);E.setDragHandle(A[B]);A[B].dragger=E}}dojo.event.topic.subscribe("/browserresized",this,"browserResized");if(this.allowTopping){radius.html.attachEventM(this.domNode,"onmousedown",this,"onMouseDown",true)}if(this.isModal){var D=radius.isNull(this.modalBgColor)?"white":this.modalBgColor;var C=radius.isNull(this.modalBgOpacity)?0:this.modalBgOpacity;this.setModal(D,C);dojo.html.hide(this.modal.bg)}radius.widget.FloatingWindow.superclass.postCreate.call(this)},setModal:function(C,B){this.isModal=true;var A=this.modal={};A.bgColor=(C==undefined)?"white":C;A.bgOpacity=(B==undefined)?0:B;A.bg=document.createElement("div");A.bg.className="floatingWinModalBgClass";A.bg.style.backgroundColor=A.bgColor;dojo.style.setOpacity(A.bg,A.bgOpacity);dojo.dom.insertBefore(A.bg,this.domNode)},resetToDefaults:function(){if(this.modal||this.isModal){radius.html.discardNode(this.modal.bg);try{delete this.modal.bg}catch(A){}try{delete this.modal}catch(A){}this.isModal=false;this.modal=null;this.domNode.style.zIndex=radius.winOnTop.zIndex+1}isFloatingWindow=true;isContainer=true;isActive=false;allowMoving=true;allowResize=true;allowTopping=true;resizeOnStartup=true;constrainToContainer=true;dragBars=null;minWidth=0;minHeight=0;width=320;height=200;contentNode=null;isOpen=undefined;centerOnOpen=false;toggle=null;toggleDuration=150;toggleObj=null;if(radius.isNotNull(this.backbone.logo)){radius.utils.setLegacyCaptionIcon(this,"radius")}},onMouseDown:function(){this.bringToTop()},center:function(){radius.centerWin(this)},position:function(A,E){var F=document.body;if(F&&!isNaN(A)&&!isNaN(E)){var H=this.width||dojo.style.getOuterWidth(this.domNode);var C=this.height||dojo.style.getOuterHeight(this.domNode);var G=dojo.style.getOuterWidth(F);var D=dojo.style.getOuterHeight(F);var I=G-H;var B=D-C;A=Math.min(A,I);E=Math.min(E,B);A=Math.max(A,0);E=Math.max(E,0);this.setPos({left:A,top:E})}},isVisible:function(){var A=radius.html.isVisible(this.domNode);return A},show:function(){if(this.allowTopping){this.bringToTop()}else{this.activate()}if(this.toggleObj){this.animationInProgress=true;this.toggleObj.show(this.domNode,this.toggleDuration,this.explodeSrc,new Function('radius.widget.byId("'+this.widgetId+'").onShow()'))}else{radius.html.show(this.domNode)}if(this.modal){dojo.html.show(this.modal.bg)}},onShow:function(){this.animationInProgress=false},hide:function(){this.disactivate();if(this.modal){dojo.html.hide(this.modal.bg)}if(this.toggleObj){this.animationInProgress=true;this.toggleObj.hide(this.domNode,this.toggleDuration,this.explodeSrc,new Function('radius.widget.byId("'+this.widgetId+'").onHide()'))}else{radius.html.hide(this.domNode)}},doActivate:function(A){if(this.modal){this.modal.bg.style.zIndex=dojo.html.getStyle(this.domNode,"z-index")-1}return true},doDisactivate:function(A){if(this.modal){this.modal.bg.style.zIndex=dojo.html.getStyle(this.domNode,"z-index")-1}return true},activate:function(A){if(this.isActive){return false}else{this.isActive=this.doActivate(A);return this.isActive}},disactivate:function(A){if(this.isActive){var B=this.doDisactivate(A);this.isActive=!B;return B}else{return false}},focus:function(){this.bringToTop()},blur:function(){this.disactivate(true)},_filterWinFunc:function(A){return(A.isFloatingWindow&&A.allowTopping)?true:false},_sortWinFunc:function(B,A){return B.domNode.style.zIndex-A.domNode.style.zIndex},bringToTop:function(){radius.bringWinToTop(this)},getTopOpenFloatingWin:function(){var C=radius.widget.manager.byFilter(this._filterWinFunc);var E=0;for(var B=0;B<C.length;B++){var D=C[B].domNode.style.zIndex;var A=null;if(C[B].isOpen&&D>E){E=D;topWindow=C[B]}}return topWindow},resizeTo:function(A,B){A=Math.max(A,this.getMinWidth());B=Math.max(B,this.getMinHeight());this.width=A;this.height=B;this.domNode.style.width=A+"px";this.domNode.style.height=B+"px";this.doResize(A,B)},doResize:function(A,B){},onLoaded:function(){radius.widget.FloatingWindow.superclass.onLoaded.call(this);if(this.resizeOnStartup&&this.width&&this.height){this.resizeTo(this.width,this.height)}},setMinWidth:function(A){if(this.minWidth<A){this.minWidth=A}},setMinHeight:function(A){if(this.minHeight<A){this.minHeight=A}},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},open:function(B){if(this.disabled){this.enable()}if(B||B==undefined){this.show(B)}if(this.centerOnOpen){this.center()}if(dojo.render.html.safari){var A=this.width;var C=this.height;if(A&&C){if(this.prepareResizeTo){this.prepareResizeTo(A,C)}else{this.resizeTo(A,C)}}}},completeOpen:function(){this.isOpen=true},addCloseListener:function(A){if(A!=undefined&&dojo.lang.isFunction(A)){this.closeListeners.push(A)}},close:function(){this.hide();var B=this.closeListeners.pop();var A=this;while(B!=undefined&&B!=null){B.call(this,A);B=this.closeListeners.pop()}},destroy:function(A){this.close();radius.widget.FloatingWindow.superclass.destroy.call(this,A)},doDestroy:function(B){var A=radius.widget.FloatingWindow.superclass.doDestroy.call(this,B);if(A&&this.modal){this.resetToDefaults()}},completeClose:function(){this.isOpen=false},browserResized:function(A){radius.onBrowserResized(A.vpw,A.vph,this)},adjustSizeForMinWhiteSpace:function(){if(this.minWhiteSpaceX){var A=dojo.html.getViewportWidth();if(A-this.width<this.minWhiteSpaceX){this.width=A-this.minWhiteSpaceX}}if(this.minWhiteSpaceY){var B=dojo.html.getViewportHeight();if(B-this.height<this.minWhiteSpaceY){this.height=B-this.minWhiteSpaceY}}},_:0});radius.widget.addClass("FloatingWindow",radius.widget.FloatingWindow);radius.widget.FloatingWindow.DragMoveSource=function(B,A,C){dojo.dnd.HtmlDragMoveSource.call(this,B,A);this.win=C};radius.inherits(radius.widget.FloatingWindow.DragMoveSource,dojo.dnd.HtmlDragMoveSource);radius.extend(radius.widget.FloatingWindow.DragMoveSource,{onDragStart:function(){var B=this.dragObject;if(this.win.windowState=="minimized"){return null}var A=new radius.widget.FloatingWindow.DragMoveObject(this.dragObject,this.type);A.vpw=$(window).width();A.vph=$(window).height();A.width=$(B).width();return A}});radius.widget.FloatingWindow.DragMoveObject=function(B,A){dojo.dnd.HtmlDragMoveObject.call(this,B,A)};dojo.inherits(radius.widget.FloatingWindow.DragMoveObject,dojo.dnd.HtmlDragMoveObject);dojo.lang.extend(radius.widget.FloatingWindow.DragMoveObject,{onDragMove:function(B){this.updateDragOffset();var A=this.dragOffset.left+B.clientX-this.parentPosition.left;var C=this.dragOffset.top+B.clientY-this.parentPosition.top;this.constraints={};this.constraints.maxX=this.vpw-radius.config.windowConstraintX;this.constraints.maxY=this.vph-radius.config.windowConstraintY;this.constraints.minX=0-this.width+radius.config.windowConstraintX;this.constraints.minY=radius.config.windowConstraintY;if(A>this.constraints.maxX){A=this.constraints.maxX}if(C>this.constraints.maxY){C=this.constraints.maxY}if(A<this.constraints.minX){A=this.constraints.minX}if(C<this.constraints.minY){C=this.constraints.minY}if(!this.disableY){this.dragClone.style.top=C+"px";this.dragClone.style.bottom=""}if(!this.disableX){this.dragClone.style.left=A+"px";this.dragClone.style.right=""}}});dojo.provide("radius.widget.ResizeHandle");radius.widget.ResizeHandle=function(D,A,B,C){this.targetWidget=D;this.controlNode=dojo.byId(A);if(this.targetWidget&&this.controlNode){radius.html.attachEventM(this.controlNode,"onmousedown",this,"_beginSizing")}this.controlNode.style.zIndex="1";if(radius.isNull(B)){B="se"}this.sizingType=B;this.controlNode.style.cursor=B+"-resize";if(C){this.sizingNode=C}else{this.sizingNode=this.targetWidget.domNode}};radius.extend(radius.widget.ResizeHandle,{isSizing:false,startPoint:null,startSize:null,_beginSizing:function(A){if(this.isSizing){return false}this.isSizing=true;document.body.style.cursor=this.controlNode.style.cursor;this.startPoint={x:A.clientX,y:A.clientY};this.startPos={x:dojo.style.getAbsoluteX(this.targetWidget.domNode),y:dojo.style.getAbsoluteY(this.targetWidget.domNode)};this.beginSizing(A);radius.html.attachEventM(document.body,"onmousemove",this,"_changeSizing");radius.html.attachEventM(document.body,"onmouseup",this,"_endSizing");if(dojo.render.html.ie){radius.html.attachEventM(this.controlNode,"ondragstart",this,"_endSizing")}A.preventDefault()},beginSizing:function(A){this.startSize={w:$(this.sizingNode).width(),h:$(this.sizingNode).height()}},_changeSizing:function(C){if(!C||!C.clientX||!C.clientY){return }var B;var A;switch(this.sizingType){case"se":B=C.clientX-this.startPoint.x;A=C.clientY-this.startPoint.y;break;case"w":B=this.startPoint.x-C.clientX;A=0;break;case"e":B=C.clientX-this.startPoint.x;A=0;break;case"s":B=0;A=C.clientY-this.startPoint.y;break}this.changeSizing(C,B,A);C.preventDefault()},changeSizing:function(E,C,B){var D=Math.max(this.targetWidget.getMinWidth(),this.startSize.w+C);var A=Math.max(this.targetWidget.getMinHeight(),this.startSize.h+B);if(this.sizingType=="w"){var F=this.startPos.x-(D-this.startSize.w);this.targetWidget.domNode.style.left=F+"px"}this.targetWidget.resizeTo(D,A)},_endSizing:function(A){radius.html.detachEventM(document.body,"onmousemove",this,"_changeSizing");radius.html.detachEventM(document.body,"onmouseup",this,"_endSizing");if(dojo.render.html.ie){radius.html.detachEventM(this.controlNode,"ondragstart",this,"_endSizing")}this.isSizing=false;document.body.style.cursor="";this.endSizing();this.targetWidget.hasBeenManuallyResized=true},endSizing:function(A){}});dojo.provide("radius.widget.BaseWindow");radius.widget.BaseWindow=function(){radius.widget.Window.call(this)};radius.inherits(radius.widget.BaseWindow,radius.widget.Window);radius.extend(radius.widget.BaseWindow,{widgetType:"BaseWindow",hideOnStartup:false,fillInTemplate:function(){},show:function(){radius.html.show(this.domNode)},hide:function(){radius.html.hide(this.domNode)}});dojo.provide("radius.widget.ImageButton");radius.widget.ImageButton=function(){radius.widget.BaseWindow.call(this)};radius.inherits(radius.widget.ImageButton,radius.widget.BaseWindow);radius.extend(radius.widget.ImageButton,{widgetType:"ImageButton",isControl:true,prefixPath:"http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/btns/",disabled:false,buildPostfix:"",alt:"",title:"",reg:"png",over:"png",pres:"png",dis:false,_isover:false,_isdown:false,isSprite:false,spriteImgUrl:"",spriteClass:"",popOutDoc:null,uname:function(){return(this.prefixPath==this.constructor.prototype.prefixPath)?this.name:(this.prefixPath+this.name)},clone:function(B,C){var A=new radius.widget.ImageButton();A.reg=this.reg;A.over=this.over;A.pres=this.pres;A.dis=this.dis;A.name=this.name;A.width=this.width;A.height=this.height;A.prefixPath=this.prefixPath;A.alt=this.alt;A.title=this.title;A.srcIsParent=this.srcIsParent;A.isSprite=this.isSprite;A.spriteImgUrl=this.spriteImgUrl;A.spriteClass=this.spriteClass;A.popOutDoc=this.popOutDoc;if(C){radius.mixin(A,C)}A.domNode=A.imgNode=A.eventNode=this.getElem(B.ownerDocument);A.domNode.className=this.domNode.className;A.domNode.style.cssText=this.domNode.style.cssText;A.domNode.src=this.domNode.src;A.domNode.alt=this.domNode.alt;A.domNode.title=this.domNode.title;if(A.srcIsParent){B.appendChild(A.domNode)}else{radius.html.mergeNodeData(B,A.domNode);B.parentNode.replaceChild(A.domNode,B)}A.postCreate();return A},preCreate:function(){this.domNode=this.imgNode=this.eventNode=this.getElem(this.srcNode.ownerDocument);this.domNode.className="imgBtnClass";if(this.srcIsParent){this.srcNode.appendChild(this.domNode);delete this.srcNode}else{this.srcNode.parentNode.replaceChild(this.domNode,this.srcNode)}if(this.isSprite){radius.image.setBackgroundImage(this.imgNode,this.spriteImgUrl,true);this.domNode.style.width=this.width+"px";this.domNode.style.height=this.height+"px"}radius.widget.ImageButton.superclass.preCreate.call(this)},fillInTemplate:function(){radius.widget.ImageButton.superclass.fillInTemplate.call(this);if(!this.srcIsParent){radius.html.mergeNodeData(this.srcNode,this.domNode);delete this.srcNode}radius.html.handleSelectionState(this.domNode,false)},postCreate:function(){if(this.disabled){var A=this.disabled;this.disabled=undefined;this.disable(A)}else{this._setState("reg")}radius.html.attachEventM(this.eventNode,"onmouseover",this,"onMouseOver",true);radius.html.attachEventM(this.eventNode,"onmouseout",this,"onMouseOut",true);radius.html.attachEventM(this.eventNode,"onmousedown",this,"onMouseDown",true);radius.html.attachEventM(this.eventNode,"onmouseup",this,"onMouseUp",true);radius.html.attachEventM(this.eventNode,"onclick",this,"buttonClick",true);radius.widget.ImageButton.superclass.postCreate.call(this)},onLoaded:function(){radius.widget.ImageButton.superclass.onLoaded.call(this);if(this.domNode!=this.imgNode){this.domNode.style.width=this.width+"px";this.domNode.style.height=this.height+"px"}},destroy:function(A){radius.html.detachEventM(this.eventNode,"onmouseover",this,"onMouseOver",true);radius.html.detachEventM(this.eventNode,"onmouseout",this,"onMouseOut",true);radius.html.detachEventM(this.eventNode,"onmousedown",this,"onMouseDown",true);radius.html.detachEventM(this.eventNode,"onmouseup",this,"onMouseUp",true);radius.html.detachEventM(this.eventNode,"onclick",this,"buttonClick",true);radius.widget.ImageButton.superclass.destroy.call(this,A)},getElem:function(A){var C=A||document;if(this.isSprite&&(radius.isNotEmptyStr(this.alt)||radius.isNotEmptyStr(this.title))){var B=C.createElement("img");radius.image.setSrcX(B,radius.image.blankSrc)}else{if(this.isSprite){var B=C.createElement("div");B.innerHTML="&nbsp;";B.style.lineHeight="0.1em"}else{var B=C.createElement("img")}}return B},_setState:function(A){if(this[A]){if(this.isSprite){if(this.is_pressed&&A=="reg"){A="pres"}this.domNode.className="imgBtnClass "+this.spriteClass[A]}else{radius.image.setSrcX(this.imgNode,this.prefixPath+this.name+"/"+A+"."+this[A]+this.buildPostfix,"scale");this.imgNode.width=this.width;this.imgNode.height=this.height}this.setTitleAlt(A)}},setTitleAlt:function(A){if(A=="dis"){this.imgNode.alt="";this.imgNode.title=""}else{this.imgNode.alt=this.alt;this.imgNode.title=this.title}},disable:function(A){if(A==undefined){A=true}if(this.disabled==A){return }if(A&&this._isdown){this.onMouseUp()}this.disabled=A;if(A){this._setState(this.dis?"dis":"reg")}else{this._setState(this._isover?"over":"reg")}},enable:function(A){this.disable(A==undefined?false:!A)},onMouseOver:function(){this._isover=true;if(!this.disabled){this._setState("over")}},onMouseOut:function(){this._isover=false;if(this._isdown){this.onMouseUp()}if(!this.disabled){this._setState("reg")}},onMouseDown:function(A){this._isdown=true;if(!this.disabled){this._setState("pres");if(this.onDown){this.onDown()}}},onMouseUp:function(A){this._isdown=false;if(!this.disabled){this._setState("over");if(this.onUp){this.onUp()}}},buttonClick:function(A){if(!this.disabled){if(this.onClick){this.onClick(A)}}},press:function(){this.is_pressed=true;this._setState("pres")},shade:function(){},unpress:function(){this.is_pressed=false;this._setState("reg")},setBackgroundColor:function(A){this.domNode.style.backgroundColor=A}});radius.widget.addClass("ImageButton",radius.widget.ImageButton);dojo.provide("radius.widget.TextButton");radius.widget.TextButton=function(){radius.widget.BaseWindow.call(this)};radius.inherits(radius.widget.TextButton,radius.widget.BaseWindow);radius.extend(radius.widget.TextButton,{widgetType:"TextButton",isControl:true,disabled:false,buildPostfix:"?version="+GLOBAL_CONFIG.version+"&build="+GLOBAL_CONFIG.build,colorName:"",fireOnEnter:false,supportedStates:{reg:true,over:true,pres:true,dis:true},supportedHeights:{normal:true,small:true,huge:true},heightName:"normal",_isover:false,_isdown:false,clone:function(B,C){var A=new radius.widget.TextButton();A.supportedStates=this.supportedStates;A.text=this.text;A.width=this.width;A.heightName=this.heightName;A.tabindex=this.tabindex;A.colorName=this.colorName;if(C){radius.mixin(A,C)}A.domNode=A.eventNode=B.ownerDocument.createElement("div");A.domNode.className=this.domNode.className;A.domNode.style.cssText=this.domNode.style.cssText;A.domNode.src=this.domNode.src;if(radius.isNotNull(A.srcIsParent)&&A.srcIsParent){B.appendChild(A.domNode)}else{radius.html.mergeNodeData(B,A.domNode);B.parentNode.replaceChild(A.domNode,B)}A.postCreate();return A},preCreate:function(){var A=this.srcNode.ownerDocument;this.domNode=this.eventNode=A.createElement("div");if(this.style){this.domNode.style.cssText=this.style}if(radius.isNotNull(this.textColorName)&&this.textColorName=="white"){this.domNode.className="textBtnClass textBtnTextColorClass_white"}else{this.domNode.className="textBtnClass textBtnTextColorClass_blue"}if(this.srcIsParent){this.srcNode.appendChild(this.domNode);delete this.srcNode}else{this.srcNode.parentNode.replaceChild(this.domNode,this.srcNode)}this.leftNode=A.createElement("div");this.rightNode=A.createElement("div");radius.html.setInnerHTML(this.leftNode,this.text);this.domNode.appendChild(this.leftNode);this.domNode.appendChild(this.rightNode);radius.widget.TextButton.superclass.preCreate.call(this)},fillInTemplate:function(){radius.widget.TextButton.superclass.fillInTemplate.call(this);if(!this.text){throw new Error("The button text is not specified")}if(!this.srcIsParent){radius.html.mergeNodeData(this.srcNode,this.domNode);delete this.srcNode}radius.html.handleSelectionState(this.domNode,false)},postCreate:function(){if(this.disabled){var A=this.disabled;this.disabled=undefined;this.disable(A)}else{this._setState("reg")}radius.html.attachEventM(this.eventNode,"onmouseover",this,"onMouseOver",true);radius.html.attachEventM(this.eventNode,"onmouseout",this,"onMouseOut",true);radius.html.attachEventM(this.eventNode,"onmousedown",this,"onMouseDown",true);radius.html.attachEventM(this.eventNode,"onmouseup",this,"onMouseUp",true);radius.html.attachEventM(this.eventNode,"onclick",this,"buttonClick",true);radius.html.attachEventM(this.eventNode,"onfocus",this,"buttonFocus",true);radius.html.attachEventM(this.eventNode,"onblur",this,"buttonBlur",true);radius.html.attachEventM(this.eventNode,"onkeyup",this,"buttonKeyUp",true);if(!this.supportedHeights[this.heightName]){this.heightName="normal"}radius.widget.TextButton.superclass.postCreate.call(this)},onLoaded:function(){radius.widget.TextButton.superclass.onLoaded.call(this);if(radius.isNull(this.width)){this.leftNode.innerHTML="&nbsp;"+this.leftNode.innerHTML+"&nbsp;"}else{this.leftNode.style.width=this.width-2+"px";this.domNode.style.width=this.width+"px"}if(radius.isNotNull(this.tabindex)){this.domNode.tabIndex=this.tabindex}this.domNode.tabIndex="0"},destroy:function(A){radius.html.detachEventM(this.eventNode,"onmouseover",this,"onMouseOver",true);radius.html.detachEventM(this.eventNode,"onmouseout",this,"onMouseOut",true);radius.html.detachEventM(this.eventNode,"onmousedown",this,"onMouseDown",true);radius.html.detachEventM(this.eventNode,"onmouseup",this,"onMouseUp",true);radius.html.detachEventM(this.eventNode,"onclick",this,"buttonClick",true);radius.html.detachEventM(this.eventNode,"onfocus",this,"buttonFocus",true);radius.html.detachEventM(this.eventNode,"onblur",this,"buttonBlur",true);radius.html.detachEventM(this.eventNode,"onkeyup",this,"buttonKeyUp",true);radius.widget.TextButton.superclass.destroy.call(this,A)},_setState:function(A){if(this.supportedStates[A]){this.leftNode.className="textBtnLeftClass_"+this.heightName+" textBtnLeftClass_"+this.heightName+this.colorName+"_"+A;this.rightNode.className="textBtnRightClass_"+this.heightName+" textBtnRightClass_"+this.heightName+this.colorName+"_"+A}},disable:function(A){if(A==undefined){A=true}if(this.disabled==A){return }if(A&&this._isdown){this.onMouseUp()}this.disabled=A;if(A){this._setState("dis")}else{this._setState(this._isover?"over":"reg")}},enable:function(A){this.disable(A==undefined?false:!A)},onMouseOver:function(){this._isover=true;if(!this.disabled){this._setState("over")}},onMouseOut:function(){this._isover=false;if(this._isdown){this.onMouseUp()}if(!this.disabled){this._setState("reg")}},onMouseDown:function(A){this._isdown=true;if(!this.disabled){this._setState("pres");if(this.onDown){this.onDown()}}},onMouseUp:function(A){this._isdown=false;if(!this.disabled){this._setState("over");if(this.onUp){this.onUp()}}},buttonClick:function(A){if(!this.disabled){if(this.onClick){this.onClick(A)}}},buttonFocus:function(A){if(!this.disabled&&!this._isdown){this._setState("over")}this._isdown=true},buttonBlur:function(A){this._isdown=false;if(!this.disabled){this._setState("reg")}},buttonKeyUp:function(A){if(!this.disabled&&this.fireOnEnter&&A.keyCode==13){this.onClick()}}});radius.widget.addClass("TextButton",radius.widget.TextButton);dojo.provide("radius.widget.DefaultWindow");radius.widget.DefaultWindow=function(){radius.widget.FloatingWindow.call(this)};radius.inherits(radius.widget.DefaultWindow,radius.widget.FloatingWindow);radius.extend(radius.widget.DefaultWindow,{widgetType:"DefaultWindow",caption:"DefaultWindow",windowState:"normal",prevWindowState:"normal",disabled:false,disableOnDisconnect:true,displayCaptionBar:true,overrideCaptionIconName:null,trackWindowEvents:true,hideBackbone:false,hasDiffClassWhenActive:true,hideCaptionContents:false,overrideBorder:null,defaultBorder:{d_ul:{pos_class_prefix:"d_ul"},d_u:{pos_class_prefix:"d_u"},d_ur:{pos_class_prefix:"d_ur"},d_l:{pos_class_prefix:"d_l"},d_c:{pos_class_prefix:"d_c"},d_r:{pos_class_prefix:"d_r"},d_dl:{pos_class_prefix:"d_dl"},d_d:{pos_class_prefix:"d_d"},d_dr:{pos_class_prefix:"d_dr"}},d_c_height:23,d_c_loffset:20,d_c_roffset:5,d_c_btnsy:5,d_c_closeb:{p:{isSprite:true,spriteImgUrl:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/btns/all.gif",width:14,height:14,srcIsParent:true,name:"close_x",spriteClass:{reg:"sprite-close_reg",pres:"sprite-close_pres",over:"sprite-close_over",dis:"sprite-close_dis"}}},d_c_maxb:{p:{isSprite:true,spriteImgUrl:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/btns/all.gif",width:14,height:14,srcIsParent:true,name:"max",spriteClass:{reg:"sprite-max_reg",pres:"sprite-max_pres",over:"sprite-max_over",dis:"sprite-max_dis"}},p0:{isSprite:true,spriteImgUrl:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/btns/all.gif",width:14,height:14,srcIsParent:true,name:"restore_max",spriteClass:{reg:"sprite-restore_reg",pres:"sprite-restore_pres",over:"sprite-restore_over",dis:"sprite-restore_dis"}}},d_c_minb:{p:{isSprite:true,spriteImgUrl:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/btns/all.gif",width:14,height:14,srcIsParent:true,name:"min",spriteClass:{reg:"sprite-min_reg",pres:"sprite-min_pres",over:"sprite-min_over",dis:"sprite-min_dis"}},p0:{isSprite:true,spriteImgUrl:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/btns/all.gif",width:14,height:14,srcIsParent:true,name:"restore_min",spriteClass:{reg:"sprite-restore_reg",pres:"sprite-restore_pres",over:"sprite-restore_over",dis:"sprite-restore_dis"}}},d_minWidth:13,d_minHeight:30,templateNode:"defWinTemplateDomId",fillInTemplate:function(){var A=this.backbone={};if(this.caption=="none"){this.caption=null}this.captionHeight=(this.d_c_height&&this.caption)?this.d_c_height:0;if(!this.containerNode){throw new Error("Content is not found")}this.contentNode=this.containerNode;radius.html.detachNode(this.contentNode);radius.html.mergeNodeData(this.srcNode,this.contentNode);this.attachDefNodes();if(this.afterShadowBeforeBackbone){this.afterShadowBeforeBackbone()}this._makeBackbone();this.contentNode.style.top=this.captionHeight+"px";this.domNode.appendChild(this.contentNode)},postCreate:function(){if(this.allowResize){this.makeResizeHandle()}else{radius.html.hide(this.scaleNode)}this.contentNode.style.display="";this.setWindowState(this.windowState);dojo.event.topic.subscribe("/CONN/status",this,"_handleProxyStatusMsg");radius.widget.DefaultWindow.superclass.postCreate.call(this)},attachDefNodes:function(){this.tableNode=this.domNode.childNodes[0];this.captionContainerNode=this.domNode.childNodes[1];if(this.hideCaptionContents){radius.html.hide(this.captionContainerNode)}this.captionIconImgNode=this.backbone.logo=this.captionContainerNode.childNodes[0];if(radius.isNotNull(this.overrideCaptionIconName)){this.setCaptionImgClass(this.overrideCaptionIconName)}this.captionTextNode=this.captionContainerNode.childNodes[1];if(this.hideBackbone){radius.html.hide(this.tableNode)}else{this.attachBorder()}},attachBorder:function(){this.backbone.border={};var A=this.defaultBorder;if(radius.isNotNull(this.overrideBorder)){A=this.overrideBorder}var E=this.backbone.border=radius.copyObj(A,2);E.d_ul.node=this.tableNode.rows[0].cells[0];E.d_u.node=this.tableNode.rows[0].cells[1];E.d_ur.node=this.tableNode.rows[0].cells[2];E.d_l.node=this.tableNode.rows[1].cells[0];E.d_c.node=this.tableNode.rows[1].cells[1];E.d_r.node=this.tableNode.rows[1].cells[2];E.d_dl.node=this.tableNode.rows[2].cells[0];E.d_d.node=this.tableNode.rows[2].cells[1];E.d_dr.node=this.tableNode.rows[2].cells[2];for(var D in E){var C=E[D];var B=C.pos_class_prefix+"_class";radius.css.setClass(C.node,B)}},destroy:function(A){this._destroyBackbone(A);radius.widget.DefaultWindow.superclass.destroy.call(this,A)},disable:function(){this.containerNodeOverlay.style.zIndex=GLOBAL_CONFIG.disableOverlayZindex;this.containerNodeOverlay.style.display="block";this.disabled=true},enable:function(){this.containerNodeOverlay.style.display="none";this.disabled=false},makeResizeHandle:function(){new radius.widget.ResizeHandle(this,this.scaleNode,"se");new radius.widget.ResizeHandle(this,this.backbone.border.d_l.node,"w");new radius.widget.ResizeHandle(this,this.backbone.border.d_r.node,"e");new radius.widget.ResizeHandle(this,this.backbone.border.d_d.node,"s")},_makeBackbone:function(){var B=this.backbone;var C=this.captionContainerNode;if(this.caption){if(this.captionTextNode){radius.html.setInnerText(this.captionTextNode,this.caption)}if(this.allowMoving){this.dragBars.push(C)}var D=C.appendChild(document.createElement("div"));D.style.position="absolute";D.style.top=this.d_c_btnsy+"px";D.style.right=this.d_c_roffset+"px";var A=this.d_c_roffset;var E;if(E=this.d_c_closeb){if(E.b){B.closeb=E.b.clone(D,{srcIsParent:true})}else{B.closeb=E.b=radius.widget.create("ImageButton",E.p,D)}radius.html.show(B.closeb.domNode);B.closeb.domNode.style.styleFloat=B.closeb.domNode.style.cssFloat="right";B.closeb.onClick=new Function('radius.widget.byId("'+this.widgetId+'").closeWindow()');A+=B.closeb.width}if(E=this.d_c_maxb){if(E.b){B.maxb=E.b.clone(D,{srcIsParent:true});B.maxb0=E.b0.clone(D,{srcIsParent:true})}else{B.maxb=E.b=radius.widget.create("ImageButton",E.p,D);B.maxb0=E.b0=radius.widget.create("ImageButton",E.p0,D)}B.maxb.onClick=new Function('radius.widget.byId("'+this.widgetId+'").maximizeWindow()');B.maxb0.onClick=new Function('radius.widget.byId("'+this.widgetId+'").restoreWindow()');A+=B.maxb.width;B.maxb.domNode.style.styleFloat=B.maxb.domNode.style.cssFloat="right";B.maxb0.domNode.style.styleFloat=B.maxb0.domNode.style.cssFloat="right"}if(E=this.d_c_minb){if(E.b){B.minb=E.b.clone(D,{srcIsParent:true});B.minb0=E.b0.clone(D,{srcIsParent:true})}else{B.minb=E.b=radius.widget.create("ImageButton",E.p,D);B.minb0=E.b0=radius.widget.create("ImageButton",E.p0,D)}B.minb.onClick=new Function('radius.widget.byId("'+this.widgetId+'").minimizeWindow()');B.minb0.onClick=new Function('radius.widget.byId("'+this.widgetId+'").restoreWindow()');A+=B.minb.width;B.minb.domNode.style.styleFloat=B.minb.domNode.style.cssFloat="right";B.minb0.domNode.style.styleFloat=B.minb0.domNode.style.cssFloat="right"}B.btnWidth=A;B.captionWidth=this.d_c_loffset+B.btnWidth+2;this.setMinWidth(B.captionWidth);this.setMinWidth(radius.data.taskBar.winWidth);this.setMinHeight(radius.data.taskBar.winHeight)}this.setMinWidth(this.d_minWidth);this.setMinHeight(this.d_minHeight)},_destroyBackbone:function(B){var A=this.backbone;if(A.closeb&&A.closeb!=this.d_c_closeb.b){A.closeb.destroy(B)}if(A.maxb&&A.maxb!=this.d_c_maxb.b){A.maxb.destroy(B);A.maxb0.destroy(B)}if(A.minb&&A.minb!=this.d_c_minb.b){A.minb.destroy(B);A.minb0.destroy(B)}},_sizeBackbone:function(A,B){if(this.caption){this._sizeCaption(A)}},_sizeCaption:function(D,E){var C=this.backbone;var B=this.captionTextNode;var A=E||this.caption;if(A&&A.length>0){var G=(D||this.width)-C.captionWidth;var F="";while(1){radius.html.setInnerText(B,A+F);if(B.offsetWidth<=G||!A.length){break}F="...";A=A.substring(0,A.length-1)}if(!A.length){radius.html.setInnerText(B,"")}}else{radius.html.setInnerText(B,"")}},doResize:function(E,A){if(!radius.loaded){return false}var B=this.domNode.offsetWidth||E;var D=this.domNode.offsetHeight||A;var F=dojo.style.setOuterWidth(this.contentNode,radius.html.fixw(B));var C=dojo.style.setOuterHeight(this.contentNode,radius.html.fixh(D-this.captionHeight));this._sizeBackbone(B,D);return true},doActivate:function(A){var B=radius.widget.DefaultWindow.superclass.doActivate.call(this,A);if(B){this.activateBackbone("on")}return B},activateBackbone:function(A){if(!this.hasDiffClassWhenActive||this.hideBackbone){return }if(A=="on"){var F="off"}else{var F="on"}var G=this.backbone.border;if(radius.isNull(G)){return }for(var D in G){var C=G[D];if(C.node){var B=C.pos_class_prefix+"_"+F+"_class";var E=C.pos_class_prefix+"_"+A+"_class";radius.css.replaceClass(C.node,B,E)}}if(this.captionContainerNode){radius.css.replaceClass(this.captionContainerNode,"defWinCaptionClass_"+F,"defWinCaptionClass_"+A)}},doDisactivate:function(A){var B=radius.widget.DefaultWindow.superclass.doDisactivate.call(this,A);if(B){this.activateBackbone("off");radius.doRemoveFocusFromElements(this.domNode)}return B},setWindowState:function(B,C){var A=this.backbone;if(B=="normal"){if(!C){if(A.maxb){A.maxb.show();A.maxb0.hide()}if(A.minb){A.minb.show();A.minb0.hide()}}}else{if(B=="maximized"){if(!C){if(A.maxb){A.maxb.hide();A.maxb0.show()}if(A.minb){A.minb.show();A.minb0.hide()}}}else{if(B=="minimized"){if(!C){if(A.maxb){A.maxb.show();A.maxb0.hide()}if(A.minb){A.minb.hide();A.minb0.show()}}}else{throw new Error("Invalid window state")}}}if(this.windowState!="minimized"&&this.windowState!=B){this.prevWindowState=this.windowState}this.windowState=B},closeWindow:function(){},storeWinLocation:function(){return dojo.style.toCoordinateArray([this.domNode.offsetLeft,this.domNode.offsetTop,this.width,this.height])},restoreWinLocation:function(B){var A=Math.min(B.x,dojo.html.getViewportWidth()-B.w);var C=Math.min(B.y,dojo.html.getViewportHeight()-B.h);this.setPos({x:A,y:C});this.resizeTo(B.w,B.h)},getMaximizeCoords:function(){return[0,0+radius.config.navigationPanelHeight,dojo.html.getViewportWidth(),dojo.html.getViewportHeight()-radius.config.navigationPanelHeight]},focus:function(){radius.widget.DefaultWindow.superclass.focus.call(this);if(this.windowState=="minimized"){this.restoreWindow()}},_endMaximizeWindow:function(A){if(A){radius.widget.TaskBar.remove(this);this.doUnminimize()}this.restoreWinLocation(this.maximizeWindow_maxCoords);this.maximizeWindow_maxCoords=undefined;this.setWindowState("maximized")},maximizeWindow:function(){if(this.windowState=="maximized"){return }var D=this.windowState=="minimized";if(this.windowState=="normal"){this.normalLoc=this.storeWinLocation()}this.setWindowState("maximized",true);var A=dojo.style.toCoordinateArray(this.getMaximizeCoords());var C=dojo.style.toCoordinateArray(this.domNode);this.maximizeWindow_maxCoords=A;var B=radius.fx.html.implode(this.domNode,A,radius.data.taskBar.effectDuration,new Function('radius.widget.byId("'+this.widgetId+'")._endMaximizeWindow('+D+")"),true,true);B.play()},_endMinimizeWindow:function(){radius.widget.TaskBar.add(this);this.domNode.style.display="block"},minimizeWindow:function(){if(this.windowState=="minimized"){return }if(this.windowState=="normal"){this.normalLoc=this.storeWinLocation()}this.setWindowState("minimized");var A=radius.fx.html.implode(this.domNode,radius.widget.TaskBar.getNewCoords(),radius.data.taskBar.effectDuration,new Function('radius.widget.byId("'+this.widgetId+'")._endMinimizeWindow()'),true);this.doMinimize();A.play()},_endRestoreWindow:function(A){if(A){radius.widget.TaskBar.remove(this);this.doUnminimize()}this.restoreWinLocation(this.normalLoc);this.setWindowState("normal")},restoreWindow:function(){if(this.windowState=="normal"){return }var B=this.windowState=="minimized";this.setWindowState("normal",true);var C=this;var A=radius.fx.html.implode(this.domNode,this.normalLoc,radius.data.taskBar.effectDuration,new Function('radius.widget.byId("'+this.widgetId+'")._endRestoreWindow('+B+")"),true,true);A.play()},restoreWindowNow:function(){if(this.windowState=="normal"){return }var A=this.windowState=="minimized";this.setWindowState("normal",true);if(A){radius.widget.TaskBar.remove(this);this.doUnminimize()}this.restoreWinLocation(this.normalLoc);this.setWindowState("normal")},doMinimize:function(){var A=this.backbone;if(A.l){A.l.style.display="none"}if(A.r){A.r.style.display="none"}if(A.dl){A.dl.style.display="none"}if(A.d){A.d.style.display="none"}if(A.dr){A.dr.style.display="none"}if(this.allowResize){this.scaleNode.style.display="none"}this.contentNode.style.display="none";this.resizeTo(radius.data.taskBar.winWidth,radius.data.taskBar.winHeight)},doUnminimize:function(){var A=this.backbone;if(A.l){A.l.style.display=""}if(A.r){A.r.style.display=""}if(A.dl){A.dl.style.display=""}if(A.d){A.d.style.display=""}if(A.dr){A.dr.style.display=""}if(this.allowResize){this.scaleNode.style.display=""}this.contentNode.style.display=""},doMaximize:function(A){this.setPos(A.x,A.y);this.resizeTo(A.w,A.h)},getMinWidth:function(){return this.windowState!="minimized"?radius.widget.DefaultWindow.superclass.getMinWidth.call(this):radius.data.taskBar.winWidth},getMinHeight:function(){return this.windowState!="minimized"?radius.widget.DefaultWindow.superclass.getMinHeight.call(this):radius.data.taskBar.winHeight},setCaptionLazy:function(A){radius.html.setInnerText(this.captionTextNode,A);this._sizeCaption(null,A)},setCaption:function(A){this.caption=A;this.setCaptionLazy(A)},open:function(A){if(this.windowState!="normal"){this.restoreWindow()}radius.widget.DefaultWindow.superclass.open.call(this,A);if(this.caption){this._sizeCaption()}if(this.trackWindowEvents){radius.trackPageEvent("Windows","Open",this.widgetType)}},close:function(){radius.widget.TaskBar.remove(this);radius.widget.DefaultWindow.superclass.close.call(this)},_handleProxyStatusMsg:function(A){if(this.disableOnDisconnect){if(this.disabled==true&&A.newState==radius.disconnectHandler.STATES.connected){this.enable()}else{if(this.disabled==false&&(A.newState==radius.disconnectHandler.STATES.disconnected||A.newState==radius.disconnectHandler.STATES.reconnecting)){this.disable()}}}},setCaptionImgClass:function(B,A){radius.setCaptionImgClass(this,B,A)},showHideCloseBtnWhenLoggedInOut:function(){if(radius.isNull(this.backbone.closeb)){return }if(radius.isLogoutEnabled()){radius.html.show(this.backbone.closeb.domNode)}else{radius.html.hide(this.backbone.closeb.domNode)}},_:0});radius.widget.addClass("DefaultWindow",radius.widget.DefaultWindow);radius.widget.TaskBar=new function(){this.wins=[];this.hwins={};this.getNewCoords=function(){var B=dojo.html.getViewportSize();var C=radius.data.taskBar.winHeight;var D;if(this.wins.length){var A=radius.data.taskBar.winWidth;D=dojo.style.toCoordinateArray(this.wins[this.wins.length-1].domNode);D.x+=A;if(D.x+A>=B.w){D.x=0;D.y-=C;D[1]=D.y}D[0]=D.x}else{D=dojo.style.toCoordinateArray([0,B.h-C,radius.data.taskBar.winWidth,radius.data.taskBar.winHeight])}return D},this.add=function(A,B){if(this.hwins[A.widgetId]){return }this.wins.push(A);this.hwins[A.widgetId]=A;if(!B){this.reorder()}};this.remove=function(A,B){if(!this.hwins[A.widgetId]){return }delete this.hwins[A.widgetId];for(var C=0;C<this.wins.length;C++){if(this.wins[C].widgetId==A.widgetId){this.wins.splice(C,1);break}}if(!B){this.reorder()}};this.reorder=function(){var B=radius.data.taskBar.winWidth;var E=radius.data.taskBar.winHeight;var C=dojo.html.getViewportSize();var A=0;var G=C.h-E;for(var F=0;F<this.wins.length;F++){var D=this.wins[F];D.setPos({x:A,y:G});A+=B;if(A+B>=C.w){A=0;G-=E}}};radius.html.attachEventM(window,"onresize",this,"reorder",true)};dojo.provide("radius.widget.DebugWindow");radius.widget.DebugWindow=function(){radius.widget.DefaultWindow.call(this)};radius.inherits(radius.widget.DebugWindow,radius.widget.DefaultWindow);radius.extend(radius.widget.DebugWindow,{widgetType:"DebugWindow",widgetId:"debugWin",caption:"Debug window console",width:640,height:480,disableOnDisconnect:false,fillInTemplate:function(){radius.widget.DebugWindow.superclass.fillInTemplate.call(this);this.consoleNode=this.contentNode},postCreate:function(){radius.widget.DebugWindow.superclass.postCreate.call(this)},onLoaded:function(){radius.widget.DebugWindow.superclass.onLoaded.call(this);var A=radius.byId("dojoDebug");if(A){radius.html.discardNode(A)}this.contentNode.id="dojoDebug"},closeWindow:function(){this.contentNode.innerHTML=""}});radius.widget.addClass("DebugWindow",radius.widget.DebugWindow);dojo.provide("radius.widget.SimpleControl");radius.widget.SimpleControl=function(){radius.widget.DefaultWindow.call(this)};radius.inherits(radius.widget.SimpleControl,radius.widget.DefaultWindow);radius.extend(radius.widget.SimpleControl,{constrainToContainer:false,allowResize:false,allowTopping:false,hideOnStartup:true,resizeOnStartup:false,centerOnPreCreate:false,moveOnBrowserResized:false,caption:null,d_c_closeb:null,d_c_maxb:null,d_c_minb:null,hasDiffClassWhenActive:false,hideCaptionContents:true,overrideBorder:{d_ul:{pos_class_prefix:"simple_menu_d_ul"},d_u:{pos_class_prefix:"simple_menu_d_u"},d_ur:{pos_class_prefix:"simple_menu_d_ur"},d_l:{pos_class_prefix:"simple_menu_d_l"},d_c:{pos_class_prefix:"simple_menu_d_c"},d_r:{pos_class_prefix:"simple_menu_d_r"},d_dl:{pos_class_prefix:"simple_menu_d_dl"},d_d:{pos_class_prefix:"simple_menu_d_d"},d_dr:{pos_class_prefix:"simple_menu_d_dr"}}});dojo.provide("radius.widget.SimpleMenu");radius.widget.SimpleMenu=function(){radius.widget.SimpleControl.call(this);this.entriesList=[];this.entries={}};radius.inherits(radius.widget.SimpleMenu,radius.widget.SimpleControl);radius.extend(radius.widget.SimpleMenu,{widgetType:"SimpleMenu",disableOnDisconnect:false,calcSizes:true,closeMenuAfterItemClick:true,isIcons:false,_ismaked:false,_isresize:false,needResize:true,textClass:"simpleMenuTextClass simpleMenuRIndentClass",preLoading:function(){radius.widget.SimpleMenu.superclass.preLoading.call(this)},fillInTemplate:function(){dojo.html.prependClass(this.containerNode,"simpleMenuContentClass");radius.widget.SimpleMenu.superclass.fillInTemplate.call(this);var E=dojo.dom.firstElement(this.contentNode);while(E){var C=dojo.html.getAttribute(E,"type");if(C=="item"){var B=dojo.dom.firstElement(E,"img");if(B!=undefined){radius.image.fixPngNode(B)}var H=dojo.dom.textContent(E);var G=dojo.html.getAttribute(E,"itemId");var A=dojo.html.getAttribute(E,"dontLinkIcon");this.addItem(B,H,G,A)}else{if(C=="separator"||C=="sep"){this.addSep()}}var F=E;E=dojo.dom.nextElement(E);radius.html.discardNode(F)}if(this.domNode.ownerDocument!=document&&rim.env.Browser.ie){var D=this.tableNode;D.rows[0].style.display="none";D.rows[1].cells[1].style.display="none";D.rows[2].style.display="none";this.dontSizeContentHeight=true}},addItem:function(B,E,D,A){if(!D){D=dojo.dom.getUniqueId()}if(B){this.isIcons=true}var C={menu:this,icon:B,text:E,id:D,dontLinkIcon:A};this.entriesList.push(C);this.entries[D]=C},addSep:function(){var A={issep:true};this.entriesList.push(A)},addSeparator:function(){this.addSep()},getItem:function(A){return this.entries[A]},itemShow:function(C,A){var B=this.entries[C];return(A==undefined||A)?B.show():B.hide()},itemHide:function(C,A){var B=this.entries[C];return(A==undefined||A)?B.hide():B.show()},isItemVisible:function(A){return this.entries[A].isVisible()},show:function(){radius.widget.SimpleMenu.superclass.show.call(this);this.render();this._resize()},open:function(){this.show()},close:function(){this.hide()},_resize:function(){if(this.calcSizes){if(!this.needResize){return }var A=dojo.style.getOuterWidth(this.tableNode);var B=dojo.style.getOuterHeight(this.tableNode);if(A&&B){this.width=A;this.height=B;this.resizeTo(A,B);this.needResize=false}}else{if(this._isresize){return }dojo.style.setOuterWidth(this.tableNode,this.width);this._isresize=true}},render:function(){if(!this._ismaked){this._makeMenu()}},makeCaller:function(C,B){var A=function(E,D){this.menu=E;this.item=D;this.over=function(F){E.onItemOver(F,this.item)};this.out=function(F){E.onItemOut(F,this.item)};this.click=function(F){E.onItemClick(F,this.item);if(E.closeMenuAfterItemClick){E.close()}}};return new A(C,B)},_makeMenu:function(){var I=this.domNode.ownerDocument;var D=this;var K=I.createElement("table");K.className="simpleMenuTableClass";K.cellPadding=0;K.cellSpacing=0;K.border=0;var C=I.createElement("tbody");for(var B=0;B<this.entriesList.length;B++){var E=this.entriesList[B];var G=I.createElement("tr");var A;if(!E.issep){G.className="simpleMenuItemClass";E.node=G;A=I.createElement("td");A.className="simpleMenuLIndentClass";if(this.isIcons){A.align="right";A.vAlign="middle";if(E.icon){dojo.html.prependClass(E.icon,"simpleMenuIconClass");A.appendChild(E.icon)}G.appendChild(A);E.icon_node=A;A=I.createElement("td")}dojo.html.addClass(A,this.textClass);E.tnode=A;A.align="left";A.vAlign="middle";dojo.dom.textContent(A,E.text);G.appendChild(A);var F=this.makeCaller(this,E);if(E.dontLinkIcon){var J=E.tnode}else{var J=E.node}if(F.over){radius.html.attachEventM(J,"onmouseover",F,"over",true)}if(F.out){radius.html.attachEventM(J,"onmouseout",F,"out",true)}if(F.click){radius.html.attachEventM(J,"onclick",F,"click",true)}E.hide=function(){if(dojo.html.isDisplayed(this.node)){dojo.html.hide(this.node);this.menu.needResize=true}};E.show=function(){if(!dojo.html.isDisplayed(this.node)){dojo.html.show(this.node);this.menu.needResize=true}};E.isVisible=function(){return dojo.html.isDisplayed(this.node)}}else{A=I.createElement("td");if(this.isIcons){A.colSpan=2}var H=I.createElement("div");H.innerHTML="&nbsp";H.className="simpleMenuSepClass";A.appendChild(H);G.appendChild(A)}C.appendChild(G)}K.appendChild(C);this.domNode.appendChild(K);this.tableNode=K;radius.html.handleSelectionState(this.domNode,false);this._ismaked=true},onItemOver:function(B,A){A.tnode.style.color="#ffffff"},onItemOut:function(B,A){A.node.style.backgroundColor="transparent";A.tnode.style.color="#013374"},onItemClick:function(B,A){},isPointInMenu:function(A,D){var C=radius.style.getAbsoluteX(this.domNode,this.domNode);if(A<C||A>C+this.width){return false}var B=radius.style.getAbsoluteY(this.domNode,this.domNode);if(D<B||D>B+this.height){return false}return true}});radius.widget.addClass("SimpleMenu",radius.widget.SimpleMenu);dojo.provide("radius.widget.PopupMenu");radius.widget.PopupMenu=function(){radius.widget.SimpleMenu.call(this)};radius.inherits(radius.widget.PopupMenu,radius.widget.SimpleMenu);radius.extend(radius.widget.PopupMenu,{widgetType:"PopupMenu",menuIndex:99999,x:0,y:0,param:undefined,isUsePopupMenuManager:true,moveOnBrowserResized:false,bindAsContextMenuForNode:function(A,B){var C=this;dojo.event.connect(A,"oncontextmenu",function(D){C.onOpen(D,B)})},bindAsContextMenuForWindow:function(){this.bindAsContextMenuForNode(document.documentElement||document.body)},unbindAsContextMenuForNode:function(A){dojo.event.kwDisconnect({srcObj:A,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true})},unbindAsContextMenuForWindow:function(){this.unbindAsContextMenuForNode(document.documentElement||document.body)},makeCaller:function(C,B){var A=function(E,D){this.menu=E;this.item=D;this.over=function(F){E.onItemOver(F,this.item,E.param)};this.out=function(F){E.onItemOut(F,this.item,E.param)};this.click=function(F){E.onItemClick(F,this.item,E.param);if(E.closeMenuAfterItemClick){E.close()}}};return new A(C,B)},open:function(A,F,D){this.param=D;if(this.isUsePopupMenuManager){radius.widget.PopupMenuManager.opened(this)}var E=radius.html.otherWinVph(this.domNode.ownerDocument);var B=radius.html.otherWinVpw(this.domNode.ownerDocument);var C={left:0,right:B,top:0,bottom:E};radius.widget.PopupMenu.superclass.open.call(this);if(A<C.left){A=C.left}if(A+this.width>C.right){A=C.right-this.width}if(F<C.top){F=C.top}if(F+this.height>C.bottom){F=C.bottom-this.height}this.domNode.style.zIndex=this.menuIndex;this.setPos({x:A,y:F});this.x=radius.style.getAbsoluteX(this.domNode);this.y=radius.style.getAbsoluteY(this.domNode)},close:function(){this.param=undefined;radius.widget.PopupMenu.superclass.close.call(this);if(this.isUsePopupMenuManager){radius.widget.PopupMenuManager.closed(this)}},isPointInMenu:function(A,B){return radius.html.isPointIn(this.domNode,A,B,{left:-2,right:-2,top:0,bottom:-2})},onOpen:function(A,B){if(!A){return }this.open(A.clientX+2,A.clientY+2,B);if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}}});radius.widget.addClass("PopupMenu",radius.widget.PopupMenu);radius.widget.PopupMenuManager=new function(){this.currentMenu=null;radius.html.attachEventM(document,"onmousedown",this,"onClick",true);radius.html.attachEventM(window,"onscroll",this,"onClick",true);this.closed=function(A){if(this.currentMenu==A){this.currentMenu=null}};this.opened=function(B,A){if(B==this.currentMenu){return }if(this.currentMenu){this.currentMenu.close()}this.currentMenu=B};this.onClick=function(C){if(!this.currentMenu){return }var B=dojo.html.getScrollOffset();var A=C.clientX+B[0];var D=C.clientY+B[1];if(this.currentMenu.isPointInMenu(A,D)){return }this.currentMenu.close()}};dojo.provide("radius.widget.SimpleTooltip");radius.widget.SimpleTooltip=function(){radius.widget.SimpleControl.call(this);this.count=0;this.hoverObjs={};this.manager=new radius.widget.SimpleTooltipManager()};radius.inherits(radius.widget.SimpleTooltip,radius.widget.RadContainer);radius.extend(radius.widget.SimpleTooltip,{widgetType:"SimpleTooltip",adjX:null,adjY:null,anchorLeft:null,anchorTop:null,friendInfoWin:false,nowShowingSimpleTooltipId:99999999,buildingToolTip:99999999,tooltipIndex:99999,timeout:0,delay:500,hoverObj:null,needResize:true,opacity:0.9,defOpacity:0.9,fadeInParams:null,fadingIn:false,autoSizeOnShow:false,isAttachedDomNodeEvents:false,onInit:function(){radius.html.handleSelectionState(this.domNode,false);dojo.html.prependClass(this.containerNode,"simpleTooltipContentClass");dojo.html.prependClass(this.bodyNode,"simpleTooltipTextClass");this.setOpacity(this.opacity);this.initWidth=this.width;if(this.height){this.domNode.style.height=this.height+"px"}if(this.width){this.domNode.style.width=this.width+"px"}},init:function(C,B,A){if(C&&B){this.hoverObjs[this.count]=[C,B,A];C.simpleTooltipId=this.count;this.needResize=true;this.count+=1;radius.html.attachEventM(C,"onmouseover",this,"tooltipObjOver");radius.html.attachEventM(C,"onmouseout",this,"tooltipObjOut");if(!this.isAttachedDomNodeEvents){this.isAttachedDomNodeEvents=true;if(!this.shouldHideTooltipOnTooltipMousover()){radius.html.attachEventM(this.domNode,"onmouseover",this,"tooltipOver");radius.html.attachEventM(this.domNode,"onmousemove",this,"tooltipMove")}radius.html.attachEventM(this.domNode,"onmouseout",this,"tooltipOut")}}this.setPositionParams()},shouldHideTooltipOnTooltipMousover:function(){return true},removeHoverObj:function(A){if(A.simpleTooltipId){radius.html.detachEventM(A,"onmouseover",this,"tooltipObjOver");radius.html.detachEventM(A,"onmouseout",this,"tooltipObjOut");this.hoverObjs[A.simpleTooltipId]=undefined}},changeTooltip:function(B,C){var D=C==undefined?0:C.simpleTooltipId;var A=this.hoverObjs[D];if(A){A[1]=B?B:"";this.needResize=true}},autoSize:function(){if(!this.needResize){return }if(!dojo.render.html.safari){dojo.style.setOuterWidth(this.bodyNode,this.initWidth)}var A=dojo.style.getOuterWidth(this.bodyNode);var B=dojo.style.getOuterHeight(this.bodyNode);if(A&&B){if(!dojo.render.html.safari){this.width=A+10}this.height=B+10}this.resizeTo(this.width,this.height);this.needResize=false},tooltipOver:function(C){var B=dojo.html.getScrollOffset();var A=C.clientX+B[0];var D=C.clientY+B[1];if(this.timeoutId&&this.isPointIn(this.hoverObj,A,D)){clearTimeout(this.timeoutId);this.timeoutId=null}},tooltipOut:function(A){var B=this;this.timeoutId=setTimeout(function(){B.hideTooltip()},this.timeout)},tooltipMove:function(C){var B=dojo.html.getScrollOffset();var A=C.clientX+B[0];var D=C.clientY+B[1];if(!this.isPointIn(this.hoverObj,A,D)){this.hideTooltip()}},handleMoveOverTooltip:function(A){},tooltipObjOver:function(A){if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=null;if(this.hoverObj==A.currentTarget){return }}if(this.hoverObj){this.hideTooltip()}this.hoverObj=A.currentTarget;if(!this.hoverObj){this.hoverObj=A.srcElement}this.showTooltip()},tooltipObjOut:function(A){var B=this;this.timeoutId=setTimeout(function(){B.hideTooltip()},this.timeout)},showTooltip:function(){if(radius.isNotNull(this.dontShowCheck)&&this.dontShowCheck()){return }var A=this.hoverObj.simpleTooltipId;this.nowShowingSimpleTooltipId=A;var B=this;setTimeout(function(){if(B.hoverObj){if(B.buildingToolTip==A){return }B.buildingToolTip=A;if(B.nowShowingSimpleTooltipId==A){B.doShowTooltip()}B.buildingToolTip=99999999}},B.delay)},doShowTooltip:function(){if(!this.hoverObj||this.hoverObj==undefined){return }var A=this.hoverObjs[this.hoverObj.simpleTooltipId];if(!A){return }this.setINNERHTML(A);radius.image.fixPngChildNodes(this.bodyNode);this.setPositionParams(A[2]);this.open(this.getLeft(),this.getTop());this._show(A[2]);this.timeoutId=null},_show:function(A){if(this.fadeInParams){this.setOpacity(0);this.fadeIn(this.fadeInParams.endOpacity,this.fadeInParams.frameRate,this.fadeInParams.increment)}this.show()},setOpacity:function(A){if(this.domNode){radius.html.setOpacity(this.domNode,A)}this.opacity=A},setFadeInParams:function(A){if(GLOBAL_CONFIG.debug){if(!A||!A.endOpacity||!A.frameRate||!A.increment){}}this.fadeInParams=A},fadeIn:function(){if(this.domNode.style.display="none"){this.show()}this.fadingIn=true;this.fadeInTimeoutId=setInterval(dojo.lang.hitch(this,"_fadeIn"),this.fadeInParams.frameRate)},_fadeIn:function(){if(this.fadeInTimeoutId){if(this.opacity>=this.fadeInParams.endOpacity){this._fadeInComplete()}else{var A=Math.min(this.opacity+this.fadeInParams.increment,this.fadeInParams.endOpacity);this.setOpacity(A);if(A==this.fadeInParams.endOpacity){this._fadeInComplete()}}}else{}},_fadeInComplete:function(){if(this.fadeInTimeoutId){clearInterval(this.fadeInTimeoutId);this.fadingIn=false}},setINNERHTML:function(A){var C=A[2];var B=A[1];this.bodyNode.innerHTML=B;this.needResize=true},isVisibleOrFadingIn:function(){return this.fadingIn||this.isVisible()},setPositionParams:function(A){if(A==undefined||A==null){this.adjX=0;this.adjY=0;this.anchorLeft="right";this.anchorTop="bottom";return }if(A.left!=undefined&&A.left!=null){this.anchorLeft=A.left}if(A.top!=undefined&&A.top!=null){this.anchorTop=A.top}if(A.y!=undefined&&A.y!=null){this.adjY=A.y}if(A.x!=undefined&&A.x!=null){this.adjX=A.x}},getLeft:function(){return this.getLeftAnchor()+this.adjX},getTop:function(){return this.getTopAnchor()+this.adjY},getLeftAnchor:function(){var A=this.hoverObj;switch(this.anchorLeft){case"right":return dojo.style.getAbsoluteX(A,true)+dojo.style.getOuterWidth(A);case"left":return dojo.style.getAbsoluteX(A,true);case"center":return dojo.style.getAbsoluteX(A,true)+dojo.style.getOuterWidth(A)/2}},getTopAnchor:function(){var A=this.hoverObj;switch(this.anchorTop){case"bottom":return dojo.style.getAbsoluteY(A,true)+dojo.style.getOuterHeight(A);case"center":return dojo.style.getAbsoluteY(A,true)+dojo.style.getOuterHeight(A)/2;case"top":return dojo.style.getAbsoluteY(A,true)-dojo.style.getOuterHeight(A)}},changeBodyNode:function(A){this.bodyNode.innerHTML=A;this.needResize=true},hideTooltip:function(){this.hoverObj=null;if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=null}this.close()},open:function(C,H,B){this.manager.opened(this);var E=false;if(this.domNode.style.display=="none"){var D=this.opacity?this.opacity:this.defOpacity;this.setOpacity(0);this.show();if(B){E=true}}var A=dojo.html.getViewportSize();var F=dojo.html.getScrollOffset();var G={left:F[0],right:F[0]+A[0],top:F[1],bottom:F[1]+A[1]};C+=F[0];H+=F[1];if(C<G.left){C=G.left}if(C+this.width>G.right){C=G.right-this.width}if(H<G.top){H=G.top}if(H+this.height>G.bottom){H=G.bottom-this.height}this.setPos({x:C,y:H});this.x=radius.style.getAbsoluteX(this.domNode);this.y=radius.style.getAbsoluteY(this.domNode);if(this.autoSizeOnShow){this.autoSize()}this.setOpacity(D);if(E){this.hide()}},close:function(){radius.html.hide(this.domNode);this.manager.closed(this)},isPointIn:function(C,A,E){if(!C){return false}var D=radius.style.getAbsoluteX(C,true);if(A<D||A>D+dojo.style.getOuterWidth(C)){return false}var B=radius.style.getAbsoluteY(C,true);if(E<B||E>B+dojo.style.getOuterHeight(C)){return false}return true}});radius.widget.addClass("SimpleTooltip",radius.widget.SimpleTooltip);radius.widget.SimpleTooltipManager=function(){radius.html.attachEventM(document,"onmouseup",this,"onClick",true);radius.html.attachEventM(window,"onscroll",this,"onClick",true)};radius.extend(radius.widget.SimpleTooltipManager,{currentTooltip:null,closed:function(A){if(this.currentTooltip==A){this.currentTooltip=null}},opened:function(B,A){if(B==this.currentTooltip){return }if(this.currentTooltip){this.currentTooltip.close()}this.currentTooltip=B},onClick:function(A){if(!this.currentTooltip){return }this.currentTooltip.close()}});radius.widget.getTooltip=function(){if(!this.gTooltip){this.gTooltip=radius.widget.create("SimpleTooltip",{width:160},"gTooltipDomId")}return this.gTooltip};radius.widget.showTooltip=function(B,A){var C=this.getTooltip()};radius.widget.hideTooltip=function(A){var B=this.getTooltip()};radius.widget.attachTooltip=function(A,D,C){var B=this.getTooltip();if(A.tpattached){B.changeTooltip(D,A)}else{B.init(A,D);A.tpattached=true}};radius.widget.detachTooltip=function(A){if(!A.tpattached){return }var B=this.getTooltip();B.removeHoverObj(A);A.tpattached=false};dojo.provide("radius.gmap");radius.gmap=function(C,E,F,B){this.mapWin=radius.windows.getMapWindow();this.map_=null;this.mapRect=null;this.gmapStartingPt=null;this.gmapRadius=1;this.readyState=false;this.userMenu=C;this.getRoster=E;this.lastEvent=null;this.singleClickMenu=B;this.sizeMeMarker=F?F:false;this.myLocationFolder=(radiusIMTranslations.img.myLocation||"mylocation");this.friends={};this.zoomOuts={};this.evtParams={};this.BoundsTransitional=function(G){var H=G.getNorthEast();var I=G.getSouthWest();this.minX=H.lng();this.minY=I.lat();this.maxX=I.lng();this.maxY=H.lat()};this.ZoomTransitional_old2new=function(G){if(G&&!isNaN(G)){return 17-G}else{return 17}};this.ZoomTransitional_new2old=function(G){if(G&&!isNaN(G)){return 17-G}else{return 17}};var D=this;this.evt=function(H,I,J,G){this.radius=J;this.latitude=H;this.longitude=I;this.bounds=new D.BoundsTransitional(G)};this.f_evt=function(K,H,I,J,G){this.id=K;this.radius=J;this.latitude=H;this.longitude=I;this.bounds=new D.BoundsTransitional(G)};this.mapTypes={map:G_NORMAL_MAP,hybrid:G_HYBRID_MAP,satellite:G_SATELLITE_MAP};this.IM_Friend=function(G){this.id=G.id;this.location=G.location;this.icon=G.icon;this.marker=G.marker};this.IM_ZoomOut=function(G){this.id=G.id;this.location=G.location;this.marker=G.marker;this.friends=G.friends};this.createImage=function(H){var G=dojo.render.html.safari?document.createElement("img"):new Image();G.src=H;return G};var A=this;this.myLocationMode={is_mylocationMode:false,on:function(){this.is_mylocationMode=true;A.showMyLocation()},off:function(){this.is_mylocationMode=false;A.hideMyLocation()}};this.initMyLocation=function(H,G){this.gmapStartingPt=new GLatLng(G,H)};this.IM_owner=function(G){var H=G.myLocationFolder;if(G.sizeMeMarker){this.icons={me2:{image:G.createImage("http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+H+"/me2.png"),width:224,height:224,anchor:new GPoint(112,112)},me3:{image:G.createImage("http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+H+"/me3.png"),width:112,height:112,anchor:new GPoint(56,56)},me4:{image:G.createImage("http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+H+"/me4.png"),width:56,height:56,anchor:new GPoint(28,28)},me5:{image:G.createImage("http://s5-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+H+"/me5.png"),width:36,height:36,anchor:new GPoint(18,18)},shadow:{image:G.createImage("http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.gif"),width:10,height:10}}}else{this.icons={me4:{image:G.createImage("http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+H+"/me4.png"),width:56,height:56,anchor:new GPoint(28,28)},me5:{image:G.createImage("http://s5-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/"+H+"/me5.png"),width:36,height:36,anchor:new GPoint(18,18)},shadow:{image:G.createImage("http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.gif"),width:10,height:10}}}this.marker={};this.center={};this.offsetX=0;this.offsetY=0;this.onMoveEnd=function(){};this.setMarker=function(I,M,J){J=G.ZoomTransitional_new2old(J);if(this.sizeMeMarker){var P=J<5?J:5;var L=this.icons["me"+P]}else{var L=this.icons.me4}var O=this.icons.shadow;var K=new GIcon();K.image=L.image.src;K.iconSize=new GSize(L.width,L.height);K.shadow=O.image.src;K.shadowSize=new GSize(O.width,O.height);K.iconAnchor=L.anchor;K.infoWindowAnchor=L.anchor;var N=new GPoint(I,M);this.marker=new GMarker(N,{icon:K,draggable:true,title:radiusIMTranslations.Msg384||"drag me"});var Q=this;this.offsetX=0;this.offsetY=0;return this.marker}};this.myLocation=new this.IM_owner(this);this.showMyLocation=function(L,K,I){var G=L?L:this.gmapStartingPt.lng();var M=K?K:this.gmapStartingPt.lat();var O=I?I:this.getZooming();var H=this.myLocation.setMarker(G,M,O);var J=this.map_.addOverlay(H);var N=this;N.capture=0;N.meBubbleMarker=H;this.myLocation_dragend=GEvent.addListener(H,"dragend",function(){var Q=N.meBubbleMarker.getPoint();var P=N.gmapStartingPt;N.gmapStartingPt=Q;N.mapWin.onMeBubbleMoved(Q,P)});this.myHost_mouseup=GEvent.addDomListener(this.mapRect,"mouseup",function(){N.button=0;return true});this.myLocation_mousedown=GEvent.addListener(H,"mousedown",function(){N.button=1});GEvent.addListener(N.map_,"moveend",function(){N.gmapStartingPt=new GLatLng(H.getPoint().lat(),H.getPoint().lng())});GEvent.addListener(H,"click",function(){N.showUserSelfMenu()});if(H.Gr){GEvent.addDomListener(H,"mousedown",function(P){N.lastEvent=P;if(P.button==2){N.showUserSelfMenu()}})}};this.updateMyLocation_hard=function(){this.hideMyLocation();this.showMyLocation()};this.updateMyLocation=function(G){this.myLocation.marker.setPoint(G);this.myLocation.marker.redraw(true)};this.reSetMyLocation=function(I,H){var G=new GLatLng(H,I);this.updateMyLocation(G);this.gmapStartingPt=G;this.myLocation.onMoveEnd(G)};this.hideMyLocation=function(){if(radius.isNotNull(this.myHost_mouseup)){GEvent.removeListener(this.myHost_mouseup)}if(radius.isNotNull(this.myLocation_mousedown)){GEvent.removeListener(this.myLocation_mousedown)}this.map_.removeOverlay(this.myLocation.marker)};this.updateMeBubble=function(J,I,H){var G=new GLatLng(J,I);this.meBubbleMarker.setPoint(G);this.meBubbleMarker.redraw(true);this.gmapStartingPt=G;if(H){this.restoreCenter()}};this.getZooming=function(){return this.map_.getZoom()};this.init=function(G,K,I){var H=this.mapWin;this.init_(G.longitude,G.latitude,G.zoomLevel,"GMapNestDomId");this.initIcons({width:48,height:36},{width:82,height:40,src:"http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/people/friend_shadow.png"},{width:50,height:38,src:"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/friend_border.png"},{width:1,height:1,src:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.png"});this.initUserIcons({width:52,height:40,src:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/user_border.png"});this.initZoomOutIcons({width:23,height:30,src:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/zoomout.png"},{width:33,height:29,src:"http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/zoomout_shadow.png"});if(!this.mapWin.gmapIsLoading){this.mapWin.gmapIsLoading=true;radius.loadingBar.showBar()}this.load(K);if(I&&radius.isNull(this.meBubbleMarker)){this.showMyLocation(G.longitude,G.latitude,G.zoomLevel)}this.setMapEventListeners();this.connectDomEvents();var J=this.ZoomTransitional_old2new(G.zoomLevel);this.reZoom(J)};this.connectDomEvents=function(){if(radius.isNotNull(this.domEventsConnected)){return }this.addControlSet();this.domEventsConnected=true};this.init_=function(H,J,G,I){this.lastEvent=null;this.isAddedMapEvent=false;this.mapRect=document.getElementById(I);if(this.mapRect==null){return }this.gmapStartingPt=new GLatLng(J,H);this.gmapRadius=this.ZoomTransitional_old2new(G)};this.initIcons=function(G,H,J,I){this.iconSize={width:48,height:36};this.shadowSize={width:82,height:40,src:"http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/people/friend_shadow.png"};this.friendBorderSize={width:50,height:38,src:"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/friend_border.png"};this.transShadowSize={width:1,height:1,src:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/x.png"};this.localBorderSize={width:50,height:38,src:"http://s5-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/local_border.png"}};this.initUserIcons=function(G){this.userBorderSize={width:52,height:40,src:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/user_border.png"}};this.initZoomOutIcons=function(G,H){this.zoomOutIconSize={width:23,height:30,src:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/zoomout.png"};this.zoomOutShadowSize={width:33,height:29,src:"http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/zoomout_shadow.png"}};this.load=function(H){var G=this;if(window.GMap2==undefined){return window.setTimeout(function(){G.load()},500)}this.prepareHost();this.readyState=true;this.mapWin.onGMapLoaded(new this.evt(this.map_.getCenter().lat(),this.map_.getCenter().lng(),this.getZooming(),this.map_.getBounds()),H)};this.kill=function(){dojo.dom.removeChildren(this.mapRect);try{GUnload()}catch(G){}};this.prepareHost=function(){this.map_=new GMap2(this.mapRect);this.map_.setCenter(this.gmapStartingPt,this.gmapRadius);this.replaceGoogleLogoLinkTarget()};this.getMapBounds=function(){return this.map_.getBounds()};this.replaceGoogleLogoLinkTarget=function(){try{var H=this.mapRect.getElementsByTagName("A");for(var I=0;I<H.length;I++){var G=H[I];if(new RegExp("terms of use","gi").test(G.innerHTML)||new RegExp("maps.google.com","gi").test(G.href)){G.target="_blank"}}}catch(J){}};this.setMapEventListeners=function(){var G=this;GEvent.addListener(this.map_,"zoomend",function(){if(G.myLocationMode.is_mylocationMode){G.updateMyLocation_hard()}var I=G.map_;var H=I.getCenter();G.mapWin.onGMapResized(new G.evt(H.lat(),H.lng(),I.getZoom(),I.getBounds()))});GEvent.addListener(this.map_,"moveend",function(){G.focusMapWin();var I=G.map_;if(G.evtParams.watchMove==false){G.evtParams.watchMove=true;return }var H=I.getCenter();G.mapWin.onGMapMoved(new G.evt(H.lat(),H.lng(),I.getZoom(),I.getBounds()))});GEvent.addListener(this.map_,"click",function(I,H){if(I){G.lastPoint=null}else{G.lastPoint=H}});GEvent.addDomListener(this.map_.getContainer(),"click",function(H){G.focusMapWin();if(radius.isNotNull(G.lastPoint)){G.mapWin.onMapSingleClicked(G.lastPoint,H);G.lastPoint=null}});this.addEvents()};this.focusMapWin=function(){if(this.mapWin&&!this.mapWin.isActive){this.mapWin.focus()}};this.addControlSet=function(){this.buttons=new Object();var I=dojo.byId("mapWinOverlayContainerDomId");this.buttons.zoomUp=dojo.byId("gmp_zoomUpDomId");this.buttons.zoomDown=dojo.byId("gmp_zoomDownDomId");this.buttons.moveTop=dojo.byId("gmp_moveTopBtnDomId");this.buttons.moveRight=dojo.byId("gmp_moveRightBtnDomId");this.buttons.moveDown=dojo.byId("gmp_moveDownBtnDomId");this.buttons.moveLeft=dojo.byId("gmp_moveLeftBtnDomId");var J=this;this.zoomLevelButtonsArray=[];this.zoomLevelButton1=dojo.byId("gMapZoomLevelButton1");this.zoomLevelButtonsArray.push({node:this.zoomLevelButton1,zoomLevel:15});this.zoomLevelButton2=dojo.byId("gMapZoomLevelButton2");this.zoomLevelButtonsArray.push({node:this.zoomLevelButton2,zoomLevel:12});this.zoomLevelButton3=dojo.byId("gMapZoomLevelButton3");this.zoomLevelButtonsArray.push({node:this.zoomLevelButton3,zoomLevel:9});this.zoomLevelButton4=dojo.byId("gMapZoomLevelButton4");this.zoomLevelButtonsArray.push({node:this.zoomLevelButton4,zoomLevel:6});this.zoomLevelButton5=dojo.byId("gMapZoomLevelButton5");this.zoomLevelButtonsArray.push({node:this.zoomLevelButton5,zoomLevel:3});for(var H in this.zoomLevelButtonsArray){var G=this.zoomLevelButtonsArray[H];var L=G.node;var M=G.zoomLevel;if(L){this.attachClickZoomEvent(L,M);this.attachMouseOverZoomEvent(L);this.attachMouseOutZoomEvent(L,M);this.setHighlightZoomButton(L,M);if(dojo.render.html.ie){L.style.height="4px";L.style.width=($(L).width()+4)+"px"}}}var N=radius.byId("gmp_FindMeDomId");if(radius.config.findMeEnabled){radius.html.show(N);dojo.event.connect(N,"onclick",this,"findMeCall")}else{radius.html.hide(N)}this.buttons.address=dojo.byId("gmp_addressDomId");this.buttons.recenter=dojo.byId("gmp_recenterDomId");this.buttons.satView=dojo.byId("gmp_mapViewAs_sat");this.buttons.mapView=dojo.byId("gmp_mapViewAs_map");this.buttons.locations=dojo.byId("gmp_locationsDomId");this.addressText=dojo.byId("gmp_addressTextDomId");this.addressInput=dojo.byId("gmp_addressInputDomId");this.enterAddressImage=dojo.byId("gmp_enterAddressImg");this.buttons.addGo=dojo.byId("gmp_address_Go");this.buttons.addClose=dojo.byId("gmp_address_Close");radius.image.fixPngChildNodes(I.parentNode);this.fixShadows();dojo.event.connect(this.buttons.zoomUp,"onclick",this,"zoomUp");dojo.event.connect(this.buttons.zoomDown,"onclick",this,"zoomDown");dojo.event.connect(this.buttons.moveTop,"onclick",this,"moveTop");dojo.event.connect(this.buttons.moveRight,"onclick",this,"moveRight");dojo.event.connect(this.buttons.moveDown,"onclick",this,"moveDown");dojo.event.connect(this.buttons.moveLeft,"onclick",this,"moveLeft");dojo.event.connect(this.buttons.recenter,"onclick",function(O){radius.stopPropAndPreventDef(O);J.restoreCenter()});dojo.event.connect(this.buttons.address,"onclick",function(O){radius.stopPropAndPreventDef(O);J.addressClick()});dojo.event.connect(this.buttons.mapView,"onclick",function(O){radius.stopPropAndPreventDef(O);J.switchMapView("gmp_mapViewAs",false)});dojo.event.connect(this.buttons.satView,"onclick",function(O){radius.stopPropAndPreventDef(O);J.switchMapView("gmp_mapViewAs",true)});dojo.event.connect(this.buttons.locations,"onclick",function(O){radius.stopPropAndPreventDef(O);radius.windows.getMapWindow().mylocClick(J.buttons.locations)});dojo.event.connect(this.buttons.addGo,"onclick",function(O){radius.stopPropAndPreventDef(O);J.goAddress(J.addressInput.value)});dojo.event.connect(this.buttons.addClose,"onclick",function(){J.closeAddressWin()});dojo.event.connect(this.addressInput,"onkeyup",this,"onAddressInputKeyUp");dojo.event.connect(this.enterAddressImage,"onclick",function(){J.focusAddress(true)});if(dojo.render.html.ie){var K="-1px"}else{var K="0px"}radius.byId("gmap_linkNavAndShadowContainer").style.right=K};this.findMeCall=function(){radius.loadingBar.showBar();this.isLokiReqPending=true;if(!this.isLokiLoaded){var G=this;radius.dynamicLoadScript("http://loki.com/plugin/files/loki.js",function(){G._findMeCall()},function(K,I,H){if(GLOBAL_CONFIG.debug){var J="Error loading loki JavaScript"+K+" "+I+"@"+H}G.findMeError(K,null)})}else{this._findMeCall()}};this._findMeCall=function(){this.isLokiLoaded=true;var I=this;try{var G=LokiAPI();if(G){G.onSuccess=function(J){I.findMeSuccess(J.latitude,J.longitude)};G.onFailure=function(J,K){I.findMeError(K,J)};G.setKey("radiusim.com");G.requestLocation(true,G.FULL_STREET_ADDRESS_LOOKUP);setTimeout(function(){if(!I.lokiReturned){I.findMeError("Request timed out")}},60*1000)}}catch(H){}};this.findMeSuccess=function(H,G){if(radius.isNull(this.isLokiReqPending)||!this.isLokiReqPending){return }this.isLokiReqPending=false;radius.loadingBar.hideBar();this.mapWin.placeUser(H,G,true);var I=10;if(this.getZooming()<I){this.reZoom(I)}};this.findMeError=function(H,G){if(radius.isNull(this.isLokiReqPending)||!this.isLokiReqPending){return }this.isLokiReqPending=false;var I=radiusIMTranslations.findMeError||"Sorry we could not find your location.";if(GLOBAL_CONFIG.debug){I=I+"<br/> DEBUG: "+(H?H:"")+"."}radius.showErrorDialog(null,I);radius.loadingBar.hideBar()};this.attachClickZoomEvent=function(G,I){var H=this;G.onclick=dojo.lang.hitch(this,function(){H.reZoom(I)})};this.attachMouseOverZoomEvent=function(G){var H=this;G.onmouseover=dojo.lang.hitch(this,function(){H.highlightOverZoomButton(G)})};this.attachMouseOutZoomEvent=function(G,I){var H=this;G.onmouseout=dojo.lang.hitch(this,function(){H.setHighlightZoomButton(G,I)})};this.highlightOverZoomButton=function(G){G.className="overlayZoomButtonOverClass"};this.setHighlightZoomButton=function(G,H){if(H>this.getZooming()){G.className="overlayZoomButtonOffClass"}else{G.className="overlayZoomButtonOnClass"}if(H==this.getZooming()&&H==3){G.className="overlayZoomButtonOffClass"}};this.fixShadows=function(){var I=dojo.byId("gmp_lm");var J=dojo.byId("gmp_rm");var G=dojo.byId("gmp_mt");var K=dojo.byId("gmp_mb");if(I&&J&&G&&K){var H=this.getMapSize();I.style.height=H.height-22+"px";J.style.height=H.height-22+"px";G.style.width=H.width-20+"px";K.style.width=H.width-20+"px"}};this.getMapSize=function(){var H=dojo.style.getOuterHeight(this.mapRect);var G=dojo.style.getOuterWidth(this.mapRect);return{width:G,height:H}};this.addFriend=function(I){I.icon=new GIcon();I.icon.image=I.imgSrc;I.icon.shadow=this.shadowSize.src;I.icon.iconSize=new GSize(this.iconSize.width,this.iconSize.height);I.icon.shadowSize=new GSize(this.shadowSize.width,this.shadowSize.height);I.icon.iconAnchor=new GPoint(this.iconSize.width/2,this.iconSize.height/2);I.icon.infoWindowAnchor=new GPoint(5,1);I.location=new GPoint(I.longitude,I.latitude);I.marker=new GMarker(I.location,{icon:I.icon,title:I.id});this.map_.addOverlay(I.marker);I.marker._friendLnk=I;if(I.marker.Gr&&I.marker.Gr.src){I.marker.Gr.style.border="1px solid #114588"}var H=this;this.friends[I.id]=new this.IM_Friend({id:I.id,icon:I.icon,marker:I.marker,location:I.location});var G=radius.loginedUsername==I.id.toLowerCase()?true:false;if(!G){GEvent.addListener(I.marker,"click",function(){H.hideMenu();H.sendMessage(I,true)});if(I.marker.Gr){GEvent.addDomListener(I.marker.Gr,"mousedown",function(J){H.lastEvent=J;if(J.button==2){H.showUserMenu(I)}})}this.addEvents()}return I.marker};this.addEvents=function(){if(!this.isAddedMapEvent){this.isAddedMapEvent=true;var G=this;GEvent.addListener(G.map_,"click",function(){G.hideMenu(true)});GEvent.addListener(G.map_,"dragstart",function(){G.hideMenu()});GEvent.addListener(G.map_,"movestart",function(){G.hideMenu()});GEvent.addListener(G.map_,"zoomend",function(){G.hideMenu()})}};this.sendMessage=function(I,H){if(I.clickto){clearTimeout(I.clickto);I.clickto=null}if(H){this.hideMenu();var G=this.getRoster();if(G){G.sendMessage("radius",I.id)}}else{var J=this;I.clickto=setTimeout(function(){J.sendMessage(I,true)},300)}};this.showUserMenu=function(I){var H=this.getRoster();var J=this.lastEvent;if(H&&J){var G=J.clientX;var K=J.clientY;if(H.tree){H.tree.radiusMapUserCMOnOpen({clientX:G,clientY:K},{type:"radius",uid:I.id})}}};this.hideUserMenu=function(){var G=this.getRoster();if(G&&G.tree&&G.tree.radiusMapUserCM&&G.tree.radiusMapUserCM.isVisible()){G.tree.radiusMapUserCM.close()}};this.showUserSelfMenu=function(){var H=this.userMenu;var I=this.lastEvent;if(H&&I){var G=I.clientX;var J=I.clientY;H.open(G,J)}};this.hideUserSelfMenu=function(){var G=this.userMenu;if(G&&G.isVisible()){G.close()}};this.hideMenu=function(G){this.hideUserMenu();this.hideUserSelfMenu();this.hideLocationMenu();if(!G){this.hideMapSingleClickMenu()}};this.showMapSingleClickMenu=function(I){if(radius.isNull(radius.loginedUsername)||radius.isUserAnonymous){return }var H=this.singleClickMenu;I=I?I:window.event;if(H&&I){var G=I.clientX;var J=I.clientY;H.open(G,J)}};this.hideMapSingleClickMenu=function(){var G=this.singleClickMenu;if(G&&G.isVisible()){G.close()}};this.hideLocationMenu=function(){var G=radius.windows.getMapWindow();if(radius.isNotNull(G)&&radius.isNotNull(G.locationCM)&&G.locationCM.isVisible()){G.locationCM.hide()}};this.addZoomOut=function(K){var H=0;var I="";var J="";for(f in K.friends.set){if(H==5){break}if(H>0){J=", "}I+=J+f;++H}K.icon=new GIcon();K.icon.image=this.zoomOutIconSize.src;K.icon.shadow=this.zoomOutShadowSize.src;K.icon.iconSize=new GSize(this.zoomOutIconSize.width,this.zoomOutIconSize.height);K.icon.shadowSize=new GSize(this.zoomOutShadowSize.width,this.zoomOutShadowSize.height);K.icon.iconAnchor=new GPoint(this.zoomOutIconSize.width/2,this.zoomOutIconSize.height/2);K.icon.infoWindowAnchor=new GPoint(5,1);K.location=new GPoint(K.longitude,K.latitude);K.marker=new GMarker(K.location,{icon:K.icon,title:I});this.map_.addOverlay(K.marker);K.marker._zoomOutLnk=K;var G=this;this.zoomOuts[K.id]=(new this.IM_ZoomOut({id:K.id,friends:K.friends,marker:K.marker,location:K.location}));GEvent.addListener(K.marker,"click",function(){G.zoomUp();G.recenter(K.longitude,K.latitude)});this.addEvents();return K.marker};this.removeFriend=function(G){this.map_.removeOverlay(G[1]);delete this.friends[G[0].id];this.hideMenu()};this.removeZoomOut=function(G){this.map_.removeOverlay(G[1]);delete this.zoomOuts[G[0].id];this.hideMenu()};this.addBanner=function(){};this.zoomUp=function(){var H=this.ZoomTransitional_new2old(this.getZooming());H=H>0?H-1:0;var G=this.ZoomTransitional_old2new(H);this.reZoom(G)};this.zoomDown=function(){var H=this.ZoomTransitional_new2old(this.getZooming());H=H<15?H+1:15;var G=this.ZoomTransitional_old2new(H);this.reZoom(G)};this.moveLeft=function(){this.map_.panBy(new GSize(250,0))};this.moveTop=function(){this.map_.panBy(new GSize(0,250))};this.moveRight=function(){this.map_.panBy(new GSize(-250,0))};this.moveDown=function(){this.map_.panBy(new GSize(0,-250))};this.recenter=function(H,G){this.map_.setCenter(new GLatLng(G,H))};this.restoreCenter=function(){this.recenter(this.gmapStartingPt.lng(),this.gmapStartingPt.lat())};this.reZoom=function(J){if(J==null||J==undefined||isNaN(J)){J=12}var I=radius.isLoggedInToRadius()?radius.config.mapMaxZoom:radius.config.liveHomePageMapMaxZoom;if(J>I||J<2){radius.showLoginRequiredPrompt("Sign up to see more.",this);return }if(this.getZooming()!=J){this.map_.setZoom(J)}for(var G in this.zoomLevelButtonsArray){var H=this.zoomLevelButtonsArray[G].node;var J=this.zoomLevelButtonsArray[G].zoomLevel;this.setHighlightZoomButton(H,J)}};this.setMapType=function(G){this.evtParams.watchMove=false;if(this.mapTypes[G]==this.map_.getCurrentMapType()){return }this.map_.setMapType(this.mapTypes[G])};this.switchMapView=function(J,I){var H=document.getElementById(J+"_map");var G=document.getElementById(J+"_sat");if(I==false){this.setMapType("map");H.style.display="none";G.style.display="block"}else{this.setMapType("satellite");H.style.display="block";G.style.display="none"}};this.testMe=function(){return true};this.addressClick=function(){this.toggleAddressWin()};this.goAddress=function(G){var J=new GClientGeocoder();var I=this.map_;var H=this;H.addressText.innerHTML="";J.getLatLng(G,function(K){if(!K){H.addressText.innerHTML='<b><font color="#ffffff">sorry, address not found</font></b>&nbsp;&nbsp;&nbsp;';H.focusAddress(true)}else{I.setCenter(K);if(H.myLocationMode.is_mylocationMode){H.reSetMyLocation(K.x,K.y)}else{H.closeAddressWin()}}})};this.focusAddress=function(G){radius.html.focusElement(this.addressInput,1);if(G){radius.html.hide(this.enterAddressImage)}};this.closeAddressWin=function(){if(dojo.byId("gmp_addressWinDomId").style.display!="none"){dojo.byId("gmp_addressWinDomId").style.display="none"}};this.openAddressWin=function(){if(dojo.byId("gmp_addressWinDomId").style.display=="none"){dojo.byId("gmp_addressWinDomId").style.display="";if(this.addressInput.value.length==0){radius.html.show(this.enterAddressImage)}this.addressText.innerHTML=""}this.focusAddress(false)};this.toggleAddressWin=function(){if(dojo.byId("gmp_addressWinDomId").style.display=="none"){this.openAddressWin()}else{this.closeAddressWin()}};this.onAddressInputKeyUp=function(G){if(G.keyCode==13){this.goAddress(this.addressInput.value)}if(this.addressInput.value.length>1){radius.html.hide(this.enterAddressImage)}};this.addLocalInMap=function(H){if(this.localInMap){this.removeLocalInMap()}var G=radius.loginedUsername==H.id.toLowerCase()?true:false;if(G){return }H.icon=new GIcon();H.icon.image=H.imgSrc;H.icon.shadow=this.shadowSize.src;H.icon.iconSize=new GSize(this.iconSize.width,this.iconSize.height);H.icon.shadowSize=new GSize(this.shadowSize.width,this.shadowSize.height);H.icon.iconAnchor=new GPoint(this.iconSize.width/2,this.iconSize.height/2);H.icon.infoWindowAnchor=new GPoint(5,1);H.location=new GPoint(H.longitude,H.latitude);H.marker=new GMarker(H.location,H.icon);this.map_.addOverlay(H.marker);this.localInMap=H.marker;return H.marker};this.removeLocalInMap=function(){if(this.localInMap){this.map_.removeOverlay(this.localInMap);this.localInMap=null}};this.setMarkerTitle=function(G,I){try{G.ga.title=G.Gr.title=G.Gr.alt=I}catch(H){}}};dojo.provide("radius.widget.MapWindow");radius.widget.MapWindow=function(){};radius.inherits(radius.widget.MapWindow,radius.widget.RadWindow);radius.extend(radius.widget.MapWindow,{widgetType:"MapWindow",widgetId:"mapWin",caption:(radiusIMTranslations.Msg63||"Map Window"),resizeOnStartup:false,iwidthMin:Math.round(322/12),iwidthMax:Math.round(660/12),trackWindowEvents:false,iwidth:45,iheight:34,width:553,height:351,minWhiteSpaceX:adsEnabled?410:260,minWhiteSpaceY:12,minDistanceFromViewPortRight:230,sizeOnBrowserResizedX:true,sizeOnBrowserResizedY:true,allowResize:false,animZindex:100,MAX_SAVED_LOCATIONS:10,ROLLOVER_DELAY:10,PHOTO_HAND_CURSOR:dojo.render.html.ie60?"pointer":"url('http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/cursors/hand_transparent.cur'), default",data:{locs:[]},d_c_maxb:null,pageNumber:1,gmapPos:{javaClass:"com.datanaut.radiusim.data.GMapBoundPos",lhsLongitude:50,topLatitude:-130,rhsLongitude:30,botLatitude:-70,ctrLongitude:40,ctrLatitude:-100},updateLocalsSBarRespondTimeout:radius.config.locals.updateLocalsSBarRespondTimeout,updateLocalsTimeoutId:null,centerOnPreCreate:true,filter:null,userSelf:null,localsReqCount:0,inDblClick:false,onInit:function(){this.contentNode.style.width="auto";this.contentNode.style.height="auto";this.scrollNode=dojo.byId("mscrollWinDomId");this.recentNode=dojo.byId("recentWinDomId");this.gridBoxNode=radius.byId("mapWinGridBoxNodeDomId");this.gmapBoxNode=radius.byId("mapWinGMapBoxDomId");this.localContextMenu=radius.widget.create("PopupMenu",{},"mapWinLocalContextMenuDomId");this.localContextMenu.render();if(!radius.config.videoChatEnabled){this.localContextMenu.itemHide("videoInvite")}dojo.event.connectBefore(this.localContextMenu,"onOpen",this,"onLocalContextMenuOpen");dojo.event.connect(this.localContextMenu,"onItemClick",this,"onLocalContextMenuClick");this.userSelfContextMenu=radius.widget.create("PopupMenu",{},"mapWinUserSelfContextMenuDomId");this.userSelfContextMenu.render();dojo.event.connect(this.userSelfContextMenu,"onItemClick",this,"onUserSelfContextMenuClick");this.singleClickContextMenu=radius.widget.create("PopupMenu",{},"mapWinSingleClickContextMenuDomId");this.singleClickContextMenu.render();dojo.event.connect(this.singleClickContextMenu,"onItemClick",this,"onSingleClickContextMenuClick");this._makeGrid();this._makeIBar();var D=this.photoNodes;for(var B,A,C=D.length;C;B=parseInt(Math.random()*C),A=D[--C],D[C]=D[B],D[B]=A){}this.autoSize();this.autoPos();this.makeMapResizeHandle()},onOpen:function(){radius.windows.getScrollWindow().open(false)},_makeGrid:function(){var A=this.gridBoxNode.getElementsByTagName("img");this.photoNodes=[];this.photoHash={};var E=this.iwidth+1;var C=this.iheight+1;for(var D=0;D<A.length;D++){var B=A[D];if(B.className!="mapWinPhotoClass"){continue}B.islocal=true;B.gx=parseInt(B.getAttribute("x"));B.gy=parseInt(B.getAttribute("y"));this.photoNodes.push(B);this.photoHash[B.gx+"_"+B.gy]=B;B.style.left=(B.px=1+B.gx*E)+"px";B.style.top=(B.py=1+B.gy*C)+"px"}},_makeIBar:function(){this.ibar=radius.byId("mapWinIBarDomId");this.ibarName=radius.byId("mapWinIBarNameDomId");this.ibarOnlineImg=radius.byId("mapWinIBarOnImgDomId");this.ibarOfflineImg=radius.byId("mapWinIBarOffImgDomId");this.ibarStatus=radius.byId("mapWinIBarStatusDomId");radius.image.setSrcX(this.ibarOnlineImg,"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/available11x11.png");radius.image.setSrcX(this.ibarOfflineImg,"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/invisible11x11.png")},makeMapResizeHandle:function(){radius.html.show(this.scaleIcon);this.mainResizeHandle=new radius.widget.MapWindow.ResizeHandle(this,this.scaleIcon,"se",this.contentNode);new radius.widget.MapWindow.ResizeHandle(this,this.borderTable.rows[1].cells[0],"w",this.contentNode);new radius.widget.MapWindow.ResizeHandle(this,this.borderTable.rows[1].cells[2],"e",this.contentNode);new radius.widget.MapWindow.ResizeHandle(this,this.borderTable.rows[2].cells[1],"s",this.contentNode)},onGridMouseMove:function(F){var J=this.gridBoxNode.offsetWidth;var G=this.gridBoxNode.offsetHeight;var C=this.iwidth+1;var B=this.iheight+1;var A,E;if(dojo.render.html.ie){A=this.getCursorPos(window.event,this.gridBoxNode);E=A.x>5&&A.y>5&&A.x<(J-2)&&A.y<(G-2)&&((A.x-6)%C)!=this.iwidth&&((A.y-6)%B)!=this.iheight;A.x-=6;A.y-=6}else{if(dojo.render.html.safari){A=this.getCursorPos(F,this.gridBoxNode);E=A.x>3&&A.y>-14&&A.x<(J-4)&&A.y<(G-4)&&((A.x-4)%C)!=this.iwidth&&((A.y-4)%B)!=this.iheight;A.x-=4;A.y-=3}else{A=this.getCursorPos(F,this.gridBoxNode);E=A.x>3&&A.y>3&&A.x<(J-4)&&A.y<(G-4)&&((A.x-4)%C)!=this.iwidth&&((A.y-4)%B)!=this.iheight;A.x-=4;A.y-=4}}if(E){var I=Math.floor(A.x/C);var H=Math.floor(A.y/B);var D=this.photoHash[I+"_"+H];if(D&&D.pdata){if(this.currentPNode!=D){this.onCellHandle(this.currentPNode,D);this.currentPNode=D}return }}if(this.currentPNode){this.onCellHandle(this.currentPNode,null);this.currentPNode=null}},onGridMouseOut:function(A){if(A&&A.relatedTarget){var B=A.relatedTarget}else{if(window.event&&window.event.toElement){var B=window.event.toElement}}try{if(B&&B.className&&B.className.indexOf("mapWinPhotoClass")!=-1){return }}catch(A){}if(this.currentPNode!=null){this.onCellHandle(this.currentPNode,null);this.currentPNode=null}},onCellHandle:function(D,C){if(this.rolloverTimeoutId){clearTimeout(this.rolloverTimeoutId)}if(D&&D.pdata&&D.pdata.rover){D.pdata.rover.goBack()}var A=this;this.rolloverTimeoutId=setTimeout(function(){if(C&&C.pdata){(C.pdata.rover?C.pdata.rover:new radius.widget.MapWindow.RolloverAnim(C)).goForward()}A.rolloverTimeoutId=null},A.ROLLOVER_DELAY);if(radius.isNotNull(this.gmap)){if(C&&C.pdata.user){var E=C.pdata.user;var B=radius.getPhotoUrl(E.photoid,E.photo,E.photoDirRelativeUri,48,"MapWindow.updateFriends",E.isPhotoOnS3,E.s3Bucket,E.photoVersion);this.getGmap("onCellHandle").addLocalInMap({id:E.username,imgSrc:B,latitude:E.latitude,longitude:E.longitude,online:E.online})}else{this.getGmap("onCellHandle2").removeLocalInMap()}}else{}},zoomToLocation:function(B){if(B&&B.user){var A=B.user;this.getGmap("zoomToLocation1").recenter(A.longitude,A.latitude);this.getGmap("zoomToLocation2").reZoom()}else{radius.handleError("Sorry, we are unable to locate this user.","pnode not found","MapWindow","zoomToLocation")}},storeWinLocation:function(){var A=radius.widget.MapWindow.superclass.storeWinLocation.call(this);A.isMapWin=true;A.iw=this.iwidth;A.ih=this.iheight;return this.normalLoc=A},restoreWinLocationAndSize:function(A){if(!A.isMapWin){return radius.widget.MapWindow.superclass.restoreWinLocationAndSize.call(this,A)}this.setPos({x:A.x,y:A.y});this.resizeTo(A.iw,A.ih,true)},focus:function(){this.bringToTop()},resizeTo:function(F,K,I){if(this.windowState=="minimized"){return radius.widget.MapWindow.superclass.resizeTo.apply(this,arguments)}if(F==this.iwidth&&!I){return }var N=Math.round(F*3/4);this.iwidth=F;this.iheight=N;var L=F*12+10;var H=N*10+10;this.domNode.style.visibility="hidden";this.gridBoxNode.style.width=(L+3)+"px";this.gridBoxNode.style.height=(H+1)+"px";this.gmapBoxNode.style.left=(F*2+3)+"px";this.gmapBoxNode.style.top=(N*2+3)+"px";dojo.style.setOuterWidth(this.gmapBoxNode,F*8+7);dojo.style.setOuterHeight(this.gmapBoxNode,N*6+5);var G=F+1;var B=N+1;var E=F+"px";var A=N+"px";for(var C=0;C<this.photoNodes.length;C++){var D=this.photoNodes[C];if(D.pdata&&D.pdata.rover){D.pdata.rover.complete(0)}D.style.left=(D.px=1+D.gx*G)+"px";D.style.top=(D.py=1+D.gy*B)+"px";D.style.width=E;D.style.height=A}this.domNode.style.visibility="visible";var J=radius.windows.scrollWin;if(J&&J.isVisible()){J.autoPos()}var M=radius.windows.recentWin;if(M&&M.isVisible()){M.autoPos()}if(radius.isNotNull(this.gmap)){this.getGmap("resizeTo").fixShadows();this.getGmap("resizeTo2").map_.checkResize()}},prepareResizeTo:function(A,C){var B,D;if(A){B=Math.floor((A-13)/12)}if(C){D=Math.floor((C-11)/10)}if(B&&D){B=Math.min(Math.floor(D*4/3),B)}else{B=B||D}if(B<this.iwidthMin){B=this.iwidthMin}else{if(B>this.iwidthMax){B=this.iwidthMax}}if(B!=this.iwidth){this.resizeTo(B)}},doMinimize:function(){if(radius.isNotNull(this.gmap)){this.getGmap("doMinimize").closeAddressWin()}else{}radius.widget.MapWindow.superclass.doMinimize.call(this);this.gridBoxNode.style.display="none";var B=radius.windows.recentWin;if(B){radius.html.hideAbs(B.domNode)}var A=radius.windows.scrollWin;if(A){radius.html.hideAbs(A.domNode)}},doUnminimize:function(){radius.widget.MapWindow.superclass.doUnminimize.call(this);this.gridBoxNode.style.display="";var B=radius.windows.recentWin;if(B){if(B.domNode.isshow){radius.html.showAbs(B.domNode)}else{radius.html.hideAbs(B.domNode)}}var A=radius.windows.scrollWin;if(A){if(A.domNode.isshow){radius.html.showAbs(A.domNode)}else{radius.html.hideAbs(A.domNode)}}},onLocalContextMenuOpen:function(D,C){var B;if(C.islocal&&radius.loginedUsername!=null){var A=radius.getRecentUser(C.pdata.user.username);B=(A&&A.favorite)?"rff":"atf"}else{B=C.pdata.user.favorite?"rff":"rfr"}this.localContextMenu.itemShow("addToFavor",B=="atf");this.localContextMenu.itemShow("removeFromFavor",B=="rff");this.localContextMenu.itemShow("removeFromRecent",B=="rfr")},onLocalContextMenuClick:function(D,B,C){var A=C.pdata;switch(B.id){case"profile":radius.showRadiusProfile(A.user.username);radius.loginedUsername!=null&&radius.addRecent(A.user);break;case"addToFavor":if(radius.loginedUsername!=null){radius.addFavor(A.user)}else{radius.showLoginRequiredPrompt("save favorites")}break;case"removeFromRecent":case"removeFromFavor":if(radius.loginedUsername!=null){radius.removeRecentUser(A.user.username)}else{radius.showLoginRequiredPrompt("save favorites")}break;case"sendMessage":if(radius.loginedUsername!=null){radius.getRoster().sendMessage("radius",A.user.username,A.user.online,A.user.available);radius.addRecent(A.user)}else{radius.showLoginRequiredPrompt("talk to radius users")}break;case"addFriend":if(radius.loginedUsername!=null){radius.getRoster().addFriend("radius",A.user.username,A.user.available)}else{radius.showLoginRequiredPrompt("add friends")}break;case"zoomTo":this.zoomToLocation(A);break;case"videoInvite":if(radius.loginedUsername!=null){radius.getRoster().sendVideoInvite("radius",A.user.username,A.user.online,A.user.available);radius.addRecent(A.user)}else{radius.showLoginRequiredPrompt("talk to radius users")}break}return true},onSingleClickContextMenuClick:function(B,A){switch(A.id){case"placeme":this.placeUser(this.singleMapClickPoint.lat(),this.singleMapClickPoint.lng(),false);break;case"cancel":break}return true},onUserSelfContextMenuClick:function(B,A){switch(A.id){case"settings":this.settingsClick();break;case"profile":radius.showRadiusProfile(radius.loginedUsername);break;case"savelocation":this.launchSaveCurrentLocationWindow();break}return true},settingsClick:function(){if(radius.loginedUsername!=null){radius.loadingBar.callWithBar(function(){var A=radius.windows.getSettingsWindow();A.restoreFocus=radius.windows.rosterWin;A.open(true)})}else{radius.showLoginRequiredPrompt("change settings")}},startUpdateLocals:function(A,B){this.prevPageNumber=this.pageNumber;if(A>this.maxPageVisited){this.maxPageVisited=A}this.pageNumber=A;if(this.updateLocalsTimeoutId!=null){clearTimeout(this.updateLocalsTimeoutId);this.updateLocalsTimeoutId=null}if(!B){this.updateLocalsTimeoutId=setTimeout(new Function("radius.windows.mapWin.updateLocals()"),this.updateLocalsSBarRespondTimeout)}else{this.updateLocals()}},autoUpdateGrid:function(){var B=this;var A=function(){if(!radius.disconnectHandler.isConnected()){B.cancelAutoUpdateGrid();return }if(!radius.im.userIsIdle){B.pageNumber=1;B.updateLocals(false,true)}};this.cancelAutoUpdateGrid();this.autoUpdateTimer=window.setInterval(A,radius.config.locals.updateLocalsRefreshInterval)},cancelAutoUpdateGrid:function(){if(this.autoUpdateTimer!=null){var A=window.clearInterval(this.autoUpdateTimer);this.autoUpdateTimer=null}},placeUser:function(C,B,A){if(C&&B&&radius.isNotNull(this.gmap)){if(!this.updateCurLocReq){this.updateCurLocReq=new radius.LocationRequest("updateCurrentLocation",false)}this.updateCurLocReq.send(B,C);this.getGmap("placeUser").updateMeBubble(C,B,A)}else{if(radius.isNull(this.gmap)){}}},localsLoadingBarShows:0,showLoadingBar:function(){if(this.localsLoadingBarShows==0){this.localsLoadingBarShows++;radius.loadingBar.showBar()}},hideLoadingBar:function(){if(this.localsLoadingBarShows!=0){this.localsLoadingBarShows--;radius.loadingBar.hideBar()}},updateRequest:null,updateLocals:function(D,C){if(!C){this.showLoadingBar()}this.localContextMenu.close();if(this.updateLocalsTimeoutId!=null){clearTimeout(this.updateLocalsTimeoutId);this.updateLocalsTimeoutId=null}if(this.localsRequest){this.localsRequest.cancel();this.localsRequest=null}D=radius.config.locals.synchronousMapUpdate;if(this.updateRequest!=null){this.updateRequest.cancel()}var B=function(E){radius.windows.mapWin.localsRequest=null;radius.windows.mapWin.updateLocalsGrid(E)};this.updateRequest=radius.loginedUsername!=null?new radius.LocalsRequest("getLocals",D,B):new radius.GFacadeRequest("getLocals",D,B);if(!D){this.localsRequest=this.updateRequest}this.updateRequest.onEnd=function(E){radius.windows.mapWin.hideLoadingBar();this.updateRequest=null};this.localsReqCount++;var A=this.pageNumber;if(A==null||isNaN(A)){A=1}else{if(A<0){A=1}}this.updateRequest.send(A,this.gmapPos,this.filter)},updateLocalsGrid:function(A){this.localsReqCount--;this.localContextMenu.close();var J=Math.ceil(A.totalNumber/this.photoNodes.length);var K=false;if(A.posHash){if(this.lastPosHash&&this.lastPosHash==A.posHash&&this.prevPageNumber>this.pageNumber&&this.maxPageVisited>this.pageNumber){K=true}}this.lastPosHash=A.posHash;if(A.filter){this.filter=A.filter}this.localsFound=A.totalNumber;var G=radius.windows.getScrollWindow();if(J>1){this.pageNumber=J;var H=G.scrollBar;if(!K){H.maxSliderPos=J-1}H.trackScrollClickIncrement=1;H.sliderPos=A.pageNumber-1;if(!G.isVisible()){G.show()}else{H.updateState()}}else{this.pageNumber=1;this.prevPageNumber=0;this.maxPageVisited=this.pageNumber;if(G.isVisible()){G.hide()}}var E;var B=A.locals.list;this.gridBoxNode.style.visibility="hidden";var F=radius.config.locals.timeToPauseBetweenLoadingLocals;var D=0;for(E=0;E<B.length;E++){dojo.lang.setTimeout(this,function(R,Q){var L=B[R];var N=this.photoNodes[R];var P=L.photoid?L.photoid:(L.gender=="M"?"nophotom":"nophotof");var O=L.photoDirRelativeUri;N.onload=null;if(N.pdata){var M=N.pdata;M.user=L;M.pname=P;if(M.rover){M.rover.complete(0)}}else{N.pdata={user:L,pname:P}}N.src=radius.getPhotoUrl(P,L.photo,L.photoDirRelativeUri,48,"MapWindow.updateLocalsGrid",L.isPhotoOnS3,L.s3Bucket,L.photoVersion);N.style.cursor=this.PHOTO_HAND_CURSOR},D,E,this);D+=F}for(;E<this.photoNodes.length;E++){var C=this.photoNodes[E];C.onload=null;if(C.pdata){var I=C.pdata;if(I.rover){if(I.rover.ibar){I.rover.ibar=undefined}I.rover.complete(0)}}C.pdata=undefined;C.src="http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/emptycell_48.gif";C.style.cursor="default"}this.gridBoxNode.style.visibility="visible";if(radius.isNotNull(this.gmap)){this.setHeaderRadius()}radius.html.hide(this.ibar)},requestUpdateFriends:function(B){if(radius.isNotNull(this.gmap)&&radius.loginedUsername!=null){if(this.friendsRequest){this.friendsRequest.cancel();this.friendsRequest=null}var A=new radius.LocalsRequest("getFriends",B,new Function("radius.windows.mapWin.friendsRequest = null; radius.windows.mapWin.updateFriends.apply(radius.windows.mapWin, arguments)"));if(!B){this.friendsRequest=A}A.onEnd=function(D){var C=radius.windows.mapWin;if(C.friendsLoadingBar){C.friendsLoadingBar=false;radius.loadingBar.hideBar()}};A.send(this.gmapPos,this.getGmap("requestUpdateFriends").ZoomTransitional_new2old(this.getGmap("requestUpdateFriends2").getZooming()))}else{if(radius.isNull(this.gmap)){}}},isBlocked:function(B){if(radius.loginedUsername!=null){var A=radius.IM.Ctx().getBuddyList().blocked.radius;return A?(A[B.toLowerCase()]?true:false):false}else{return false}},updateFriends:function(G){if(radius.isNull(this.gmap)){return }if(G){this.lastFriendsData=G}else{G=this.lastFriendsData}if(this.friends!=undefined&&this.friends){for(H in this.friends){var C=this.friends[H];this.getGmap("updateFriends").removeFriend(C)}}if(this.zoomOuts!=undefined&&this.zoomOuts){for(z in this.zoomOuts){var C=this.zoomOuts[z];this.getGmap("updateFriends2").removeZoomOut(C)}}var I=G.list;var E=I.length;this.friends={};this.zoomOuts={};for(var F=0;F<E;++F){var H=I[F];if(H.friends==undefined){if(this.isBlocked(H.username)){continue}var B=radius.getPhotoUrl(H.photoid,H.photo,H.photoDirRelativeUri,48,"MapWindow.updateFriends",H.isPhotoOnS3,H.s3Bucket,H.photoVersion);var K=this.getGmap("updateFriends3").addFriend({id:H.username,imgSrc:B,latitude:H.latitude,longitude:H.longitude,online:H.online});this.friends[H.username]=[H,K]}else{var D={set:{}};var J=0;var A;for(p in H.friends.set){if(!this.isBlocked(p)){++J;if(!A){A=H.friends.set[p]}D.set[p]=H.friends.set[p]}}if(J==0){continue}else{if(J==1){var B=radius.getPhotoUrl(H.photoid,H.photo,H.photoDirRelativeUri,48,"MapWindow.updateFriends",H.isPhotoOnS3,H.s3Bucket,H.photoVersion);var K=this.getGmap("updateFriends4").addFriend({id:A.username,imgSrc:B,latitude:A.latitude,longitude:A.longitude,online:A.online});this.friends[A.username]=[A,K]}else{var L=this.getGmap("updateFriends5").addZoomOut({id:H.id,friends:D,latitude:H.latitude,longitude:H.longitude});this.zoomOuts[H.id]=[H,L]}}}}},removeUser:function(A){radius.removeRecentUser(A);this.removeUserFromGrid(A)},removeUserFromMap:function(A){if(this.friends&&this.friends[A]&&radius.isNotNull(this.gmap)){this.getGmap("removeUserFromMap").removeFriend(this.friends[A])}else{if(radius.isNull(this.gmap)){}}},removeAllFriendsAndZoomouts:function(){this.updateFriends({list:[]})},removeUserFromGrid:function(D){D=D.toLowerCase();for(var C=0;C<this.photoNodes.length;C++){var B=this.photoNodes[C];if(B.pdata&&B.pdata.user.username.toLowerCase()==D){B.onload=null;var A=B.pdata;if(A.rover){if(A.rover.ibar){A.rover.ibar=undefined}A.rover.complete(0)}B.pdata=undefined;B.src="http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/emptycell_48.gif";break}}},onUpdateGMapPos:function(G,F){if(radius.isNull(this.gmap)){return }var D=this.getGmap("onUpdateGMapPos").getMapBounds();var E=this.gmapPos;var C=D.getSouthWest();var B=D.getNorthEast();var A=D.getCenter();E.lhsLongitude=C.lng();E.botLatitude=C.lat();E.rhsLongitude=B.lng();E.topLatitude=B.lat();E.ctrLongitude=A.lng();E.ctrLatitude=A.lat();if(!F){this.startUpdateLocals(1);this.requestUpdateFriends()}else{this.updateLocalsGrid(F)}if(radius.config.locals.updaleLocalsRefreshEnabled){this.autoUpdateGrid()}},setHeaderRadius:function(B){var A=B?B:this.getGmap("setHeaderRadius").getMapBounds();var D=A.getSouthWest();var E=A.getNorthEast();if(D>0&&E<0){lngSpan=180+E.lat()+D.lat()}else{lngSpan=E.lat()-D.lat()}var J=radius.config.distanceConversions[(radiusIMTranslations.settings.distanceUnits||"mile")];var F=lngSpan/2*J;var C="";if(F>0.75){C=Math.round(F)+" "+(radiusIMTranslations.Msg70b||"mile")}if(F>1.5){C=Math.round(F)+" "+(radiusIMTranslations.Msg70a||"miles")}if(F<=0.875){C="0.5 "+(radiusIMTranslations.Msg70b||"mile")}if(F<=0.375){C="0.25 "+(radiusIMTranslations.Msg70b||"mile")}var H=isNaN(this.localsFound)?0:this.localsFound;if(H>72){H="100+"}var G=H==1?H+" "+(radiusIMTranslations.Msg70c||"person within")+" ":H+" "+(radiusIMTranslations.Msg70||"people within")+" ";var I=G+C;this.setCaption(I)},onUpdateLocalsPage:function(A){this.startUpdateLocals(A)},favoritesClick:function(){var A=radius.windows.recentWin;if(!A){radius.windows.getRecentWindow().open(true)}else{if(A.isVisible()){A.hide()}else{A.show()}}},mylocClick:function(A){if(radius.isNull(this.locationCM)){this.createLocationCM()}if(!this.locationCM.isVisible()){this.locationCM.open(dojo.style.getAbsoluteX(A,true)-32,dojo.style.getAbsoluteY(A,true)+14)}else{this.locationCM.hide()}},recenterClick:function(){if(this.userSelf&&this.userSelf[0]){var A=this.userSelf[0];var C=A.latitude,B=A.longitude;if(C!=null&&B!=null&&radius.isNotNull(this.gmap)){this.getGmap("recenterClick").recenter(B,C)}else{if(radius.isNull(this.gmap)){}}}},settingsClick:function(){radius.loadingBar.callWithBar(function(){var A=radius.windows.getSettingsWindow();A.restoreFocus=radius.windows.rosterWin;A.open(true)})},createLocationCM:function(){this.locationCM=radius.widget.create("PopupMenu",{},"mapWinLocationContextMenuDomId");this.locationCM.render();dojo.event.connect(this.locationCM,"onItemClick",this,"onLocationCMClick");this.locationCM.getItem("help").tnode.style.fontStyle="italic";this.locationCM.getItem("save").tnode.style.fontStyle="italic";this.updateLocationCM()},updateLocationCM:function(){if(!this.locationCM){this.createLocationCM()}var B=0;while(this.locationCM.getItem("savedlocation"+B)){this.locationCM.itemHide("savedlocation"+B);B=B+1}if(radius.loginedUsername!=null){var A=radius.getLocations(radius.loginedUsername);this._updateLocationCM(A)}},_updateLocationCM:function(C){try{this.data=C;var H=this.data.locs;var B=H.length;this.savedLocations=[];for(var D=0;D<B;++D){var E=H[D];var J="savedlocation"+D;var A="mapWin"+J+"ImgDomId";var F='<a id="'+A+'" href="#" class="simpleMenuDeleteBtnClass" alt="delete" title="delete" >&nbsp;</a>';this.savedLocations[J]={name:E.name,id:D,value:E};var K=this.locationCM.getItem(J);if(K){this.locationCM.itemShow(J);K.tnode.innerHTML=E.name;var I=K.icon_node;if(I){I.innerHTML=F}this.connectDeleteImgEvents(D,A)}}}catch(G){radius.handleError(null,"Error setting saved locations","MapWindow.js","_updateLocationCM","default",G,false)}},connectDeleteImgEvents:function(B,C){var A=this;dojo.byId(C).onclick=dojo.lang.hitch(this,function(){A.deleteSavedLocation(B)})},getUser:function(){var A;if(radius.windows.mapWin&&radius.windows.mapWin.userSelf&&radius.windows.mapWin.userSelf[0]){A=radius.windows.mapWin.userSelf[0]}else{A=new radius.LocalsRequest("getUserInfo",true).send()}return A},onLocationCMClick:function(B,A){var C=A.id;switch(C){case"help":this.locationHelpClick();return ;case"save":this.launchSaveCurrentLocationWindow();return }if(this.savedLocations[C]){if(this.dontSetLocationName){if(this.dontSetLocationName==this.savedLocations[C].name){this.dontSetLocationName=null;return }}this.placeUser(this.savedLocations[C].value.latitude,this.savedLocations[C].value.longitude,true)}},launchSaveCurrentLocationWindow:function(){if(!radius.isLoggedInToRadius()){radius.showLoginRequiredPrompt("save your locations");return }var C=this;var A='<div class="">'+(radiusIMTranslations.saveLocationName||"Name this location")+':</div><div tabindex="-1" style="overflow: auto;"><input id="mapWinSaveLocAsTextDomId" type="text" class="defWinInputClass" style="width: 162px;" maxlength="30" /></div><span id="mapWinSaveLocInputErrorDomId" class="mapWinErrorTextClass" style="display:none;">'+(radiusIMTranslations.Msg431||"please enter a name and click save")+'</span><span id="mapWinSaveLocMaxSavedErrorDomId" class="mapWinErrorTextClass" style="display:none;">'+(radiusIMTranslations.Msg432||"sorry, you've maxed out. please delete a location then you can save another")+"</span>";this.saveCurrentLocationWin=radius.windows.openSimpleWindow({caption:radiusIMTranslations.saveLocationCaption||"save your spot",width:260,body:A,btns:[{name:radiusIMTranslations.save||"save",width:72,onClick:function(E){C.saveCurrentLocationAs(E)}},{name:radiusIMTranslations.cancel||"cancel",width:72}]});try{var B=radius.byId("mapWinSaveLocAsTextDomId");dojo.html.enableSelection(B);setTimeout(function(){B.focus()},1);radius.html.attachEventM(radius.byId("mapWinSaveLocAsTextDomId"),"onkeyup",this,"onKeyUp",true)}catch(D){}},onKeyUp:function(A){if(A.keyCode==13){this.saveCurrentLocationAs(this.saveCurrentLocationWin)}},deleteSavedLocation:function(A){try{this.dontSetLocationName=this.data.locs[A].name;this.locationCM.itemHide("savedlocation"+A);this.locationCM.needResize=true;this.locationCM._resize();var B=this;setTimeout(function(){B.data.locs.splice(A,1);radius.saveLocations(radius.loginedUsername,B.data);B.updateLocationCM()},1)}catch(C){radius.handleError(null,"Error deleting saved location: [id: "+A+"]","MapWindow.js","deleteSavedLocation","default",C,false)}},saveCurrentLocationAs:function(E){try{var B=radius.byId("mapWinSaveLocAsTextDomId").value;if(this.data.locs.length>=this.MAX_SAVED_LOCATIONS){var A=radius.byId("mapWinSaveLocMaxSavedErrorDomId");if(A){A.style.display=""}return }if(!B||B==""){var D=radius.byId("mapWinSaveLocInputErrorDomId");if(D){D.style.display=""}return }E.close();var C=this;setTimeout(function(){var H=C.getGmap("saveCurrentLocationAs").meBubbleMarker.getPoint();var J=H.lat(),G=H.lng();var I;I={javaClass:"com.datanaut.radiusim.mappings.Location",name:B,country:null,state:null,city:null,street:null,zip:null,latitude:J,longitude:G};C.saveLocation(I);C.updateLocationCM()},1)}catch(F){radius.handleError(null,"Error saving location saveCurrentLocationAs","MapWindow.js","saveCurrentLocationAs","default",F,false)}},saveLocation:function(E){try{var B=false;var C=this.data.locs;if(this.data.locs.length>0){C.splice(0,0,{latitude:E.latitude,longitude:E.longitude,name:E.name})}else{C.push({latitude:E.latitude,longitude:E.longitude,name:E.name})}var A=this.data.locs.length;if(A>this.MAX_SAVED_LOCATIONS){C.pop()}radius.saveLocations(radius.loginedUsername,this.data)}catch(D){radius.handleError(null,"Error saving location saveLocation","MapWindow.js","saveLocation","default",D,false)}},locationHelpClick:function(){radius.showWaitCursor(true);radius.loadingBar.showBar();var A=window.open(radius.config.radiusHelpPage+"#changelocation");if(A){A.focus()}radius.showWaitCursor(false);radius.loadingBar.hideBar()},onGMapLoaded:function(A,B){this.onUpdateGMapPos(A,B);radius.loadingBar.hideBar()},onGMapMoved:function(B){this.onUpdateGMapPos(B);var A="lat: "+B.latitude+" - lng: "+B.longitude+" - radius: "+B.radius;if(radius.loginedUsername!=null){radius.IM.recordEventManager.addEvent("MapWindow.onGMapMoved",{Action:"Map was moved",Location:A})}},onGMapResized:function(A){},onGMapFriendClicked:function(A,B){},onGMapZoomOutClicked:function(A,B){},onMeBubbleMoved:function(B,A){if(!this.updateCurLocReq){this.updateCurLocReq=new radius.LocationRequest("updateCurrentLocation",false)}this.updateCurLocReq.send(B.lng(),B.lat())},onMapSingleClicked:function(A,B){if(radius.isNotNull(this.gmap)){this.getGmap("onMapSingleClicked").showMapSingleClickMenu(B)}else{}this.singleMapClickPoint=A},prepareLocation:function(I){var B=this;function J(M){var K=null;var L=radius.loginedUsername!=null&&!radius.isUserAnonymous;if(M==null||M==undefined){K=F();B.setGmapCond(K)}else{K=M.pos;B.setGmapCond(K,M,L);B.updateLocalsGrid(M)}}function F(){return{latitude:40.720472,longitude:-74.008381,zoomLevel:5}}try{var C=radius.getParams();var H=null;if(!radius.isNull(C.mylocation)){H=C.mylocation.split(",")}var A=C.geoipaddr;var G=radius.loginedUsername!=null?new radius.LocalsRequest("getDefaultLocals",false,J):new radius.GFacadeRequest("getDefaultLocals",false,J);var E=radius.isNull(I)?false:I;G.send(A,H,E)}catch(D){J()}},openGMap:function(A,C,B){if(radius.isNull(this.gmap)&&typeof (G_NORMAL_MAP)!="undefined"){this.gmap=new radius.gmap(this.userSelfContextMenu,radius.getRoster,null,this.singleClickContextMenu,radiusIMTranslations)}if(radius.isNotNull(this.gmap)){this.getGmap("openGMap").init(A,C,B)}else{}},putUserOnMap:function(){try{var A=new radius.LocalsRequest("getUserInfo",true).send();this.userSelf=[A,null]}catch(B){}},setGmapCond:function(C,D,A){var B=this;setTimeout(function(){B.openGMap(C,D,A)},1)},closeGMap:function(){if(this.gmapIsLoading){this.gmapIsLoading=false;radius.loadingBar.hideBar()}if(radius.isNotNull(this.gmap)){this.getGmap("closeGMap").kill()}else{}},activate:function(){radius.widget.MapWindow.superclass.activate.call(this);var A=radius.windows.recentWin;if(A&&A.isOpen&&A.activate){A.activate()}},disactivate:function(){radius.widget.MapWindow.superclass.disactivate.call(this);var A=radius.windows.recentWin;if(A&&A.isOpen&&A.disactivate){A.disactivate()}},reset:function(){if(radius.isNotNull(this.gmap)){this.getGmap("reset").hideMyLocation();this.removeAllFriendsAndZoomouts();this.prepareLocation();this.getGmap("reset2").meBubbleMarker=null}else{}},getGmap:function(A){if(radius.isNull(this.gmap)){throw new Error("this.gmap is null ctx = "+A)}else{return this.gmap}},autoSize:function(){if(this.windowState!="minimized"){var B=null;var D=null;var F=$(window).width()-this.minWhiteSpaceX;var C=Math.max($(this.domNode).width(),this.width);if(C>F){B=F}var E=$(window).height()-this.minWhiteSpaceY;var A=Math.max($(this.domNode).height(),this.height);if(A>E){D=E}if(B||D){this.prepareResizeTo(B,D)}}},autoPos:function(){var B=$(window).width();var C=parseInt(this.domNode.style.left);var A=$(this.domNode).width();if((C+A)>(B-this.minDistanceFromViewPortRight)){C=B-this.minDistanceFromViewPortRight-A;C=Math.max(C,10);this.setPos({left:C})}},updateIBar:function(A,B){this.ibarName.innerHTML=A.dispuname;if(A.online){radius.html.show(this.ibarOnlineImg);radius.html.hide(this.ibarOfflineImg);this.ibarStatus.innerHTML=radiusIMTranslations.Msg71||"online"}else{radius.html.show(this.ibarOfflineImg);radius.html.hide(this.ibarOnlineImg);this.ibarStatus.innerHTML=radiusIMTranslations.Msg72||"offline"}var D=2;var C=1;if(rim.env.Browser.ie){D=0;C=0}this.ibar.style.width=(B.offsetWidth)+"px";this.ibar.style.height=(B.offsetHeight)-D+"px";this.ibarName.style.width=(B.offsetWidth-10)+"px";this.ibar.style.left=radius.style.getAbsoluteX(B)+B.offsetWidth-C+"px";this.ibar.style.top=radius.style.getAbsoluteY(B)+"px";this.ibar.style.zIndex=this.zIndex;radius.html.show(this.ibar)},_:0});radius.widget.addClass("MapWindow",radius.widget.MapWindow);radius.widget.MapWindow.ResizeHandle=function(B,A,C,D){radius.widget.ResizeHandle.call(this,B,A,C,D)};radius.inherits(radius.widget.MapWindow.ResizeHandle,radius.widget.ResizeHandle);radius.extend(radius.widget.MapWindow.ResizeHandle,{beginSizing:function(A){this.iwidthStart=this.targetWidget.iwidth;radius.widget.MapWindow.ResizeHandle.superclass.beginSizing.call(this,A)},changeSizing:function(G,E,C){var A=this.targetWidget;var D;switch(this.sizingType){case"se":D=E>=C?Math.round(this.iwidthStart+E/12):Math.round((this.iwidthStart*3/4+C/12)*4/3);break;case"w":D=Math.round(this.iwidthStart+E/12);break;case"e":D=Math.round(this.iwidthStart+E/12);break;case"s":D=Math.round((this.iwidthStart*3/4+C/12)*4/3);break}if(D<A.iwidthMin){D=A.iwidthMin}else{if(D>A.iwidthMax){D=A.iwidthMax}}A.resizeTo(D);var F=this.targetWidget.width;var B=this.targetWidget.height;if(this.sizingType=="w"){var H=this.startPos.x-(F-this.startSize.w);this.targetWidget.domNode.style.left=H+"px"}}});radius.widget.MapWindow.onloadfn=function(){this.onload=null;if(this.user){this.src=radius.getPhotoUrl(this.user.photoid,this.user.photo,this.user.photoDirRelativeUri,96,"MapWindow.onloadfn",this.user.isPhotoOnS3,this.user.s3Bucket,this.user.photoVersion)}};radius.widget.MapWindow.oncontextmenufn=function(A){if(this.pdata){radius.windows.mapWin.localContextMenu.onOpen(A?A:window.event,this)}return false};radius.widget.MapWindow.onclickfn=function(C){if(window.event){C=window.event}if(this.pdata){if(dojo.render.html.moz){var B=this;var A={clientX:C.clientX,clientY:C.clientY};setTimeout(function(){radius.widget.MapWindow.onclickfn2(A,B)},300)}else{radius.widget.MapWindow.onclickfn2(C,this)}}return true};radius.widget.MapWindow.onclickfn2=function(B,A){if(radius.widget.MapWindow.inDblClick){return }radius.windows.mapWin.localContextMenu.onOpen(B,A);return true};radius.widget.MapWindow.ondblclickfn=function(A){if(radius.windows.mapWin.localContextMenu&&radius.windows.mapWin.localContextMenu.isOpen){radius.windows.mapWin.localContextMenu.close()}radius.widget.MapWindow.showProfile(this);radius.widget.MapWindow.inDblClick=true;setTimeout(function(){radius.widget.MapWindow.inDblClick=false},1000);return true};radius.widget.MapWindow.showProfile=function(A){if(A.pdata){radius.showRadiusProfile(A.pdata.user.username);radius.addRecent(A.pdata.user)}};radius.widget.MapWindow.sendMessage=function(A){if(A.clickto){clearTimeout(A.clickto);A.clickto=undefined}if(!A.pdata){return }radius.addRecent(A.pdata.user);radius.getRoster().sendMessage("radius",A.pdata.user.username)};radius.widget.MapWindow.RolloverAnim=function(A){this.pnode=A;A.pdata.rover=this;radius.anim.Anim.call(this)};radius.inherits(radius.widget.MapWindow.RolloverAnim,radius.anim.Anim);radius.extend(radius.widget.MapWindow.RolloverAnim,{duration:500,onAnim:function(C){var F=1-(1-C)*(1-C);var A=1+F;var B=radius.windows.mapWin.iwidth;var E=radius.windows.mapWin.iheight;var D=this.pnode.style;D.left=(this.pnode.px-B*F/2)+"px";D.top=(this.pnode.py-E*F/2)+"px";D.width=(B*A)+"px";D.height=(E*A)+"px";return true},onStart:function(B){var A=this.pnode.pdata;this.pnode.style.zIndex=radius.windows.mapWin.animZindex++;if(this.ibar&&radius.html.isVisible(this.ibar)){radius.html.hide(this.ibar);this.ibar=undefined}if(B==0){this.pnode.onload=null;this.pnode.src=radius.getPhotoUrl(A.pname,A.user.photo,A.user.photoDirRelativeUri,96,"MapWindow.onStart",A.user.isPhotoOnS3,A.user.s3Bucket,A.user.photoVersion);radius.css.addClass(this.pnode,"mapWinRolloverBorderClass")}else{if(B==1){}}return true},onEnd:function(C){var A=this.pnode.pdata;if(this.ibar){this.ibar=undefined}if(C==0){this.pnode.onload=null;this.pnode.src=radius.getPhotoUrl(A.pname,A.user.photo,A.user.photoDirRelativeUri,48,"MapWindow.onEnd",A.user.isPhotoOnS3,A.user.s3Bucket,A.user.photoVersion);var B=this.pnode.style;radius.css.removeClass(this.pnode,"mapWinRolloverBorderClass");B.left=this.pnode.px+"px";B.top=this.pnode.py+"px";B.width=radius.windows.mapWin.iwidth+"px";B.height=radius.windows.mapWin.iheight+"px";B.zIndex="";A.rover=undefined;this.pnode=undefined}else{if(C==1){this.ibar=radius.windows.mapWin.ibar;radius.windows.mapWin.updateIBar(A.user,this.pnode)}}return true}});dojo.provide("radius.widget.CheckBox");radius.widget.CheckBox=function(){radius.widget.BaseWindow.call(this)};radius.inherits(radius.widget.CheckBox,radius.widget.BaseWindow);radius.extend(radius.widget.CheckBox,{widgetType:"CheckBox",isContainer:true,hideOnStartup:false,width:11,height:11,checked:false,disabled:false,over:false,pres:false,templateNode:"checkBoxTemplateDomId",fillInTemplate:function(){radius.widget.CheckBox.superclass.fillInTemplate.call(this);this.textNode=this.containerNode;if(!this.name){throw new Error("The checkbox name is not specified")}radius.html.mergeNodeData(this.srcNode,this.domNode);if(dojo.lang.has(this.srcNode,"checked")){this.checked=this.srcNode.checked}if(this.textClass){dojo.html.addClass(this.textNode,this.textClass)}if(this.textStyle){this.textNode.style.cssText=this.textStyle}},postCreate:function(){var D;var C;if(this.name=="cbox11x11blue"||this.name=="blue"){D={reg:"cbox_blue_on",pres:"cbox_blue_on",over:"cbox_blue_on",dis:"cbox_blue_on"};C={reg:"cbox_blue_off",pres:"cbox_blue_off",over:"cbox_blue_off",dis:"cbox_blue_off"}}else{if(this.name=="cbox11x11white"||this.name=="white"){D={reg:"cbox_white_on",pres:"cbox_white_on",over:"cbox_white_on",dis:"cbox_white_on"};C={reg:"cbox_white_off",pres:"cbox_white_off",over:"cbox_white_off",dis:"cbox_white_off"}}else{if(this.name=="cbox11x11black"||this.name=="black"){D={reg:"cbox_black_on",pres:"cbox_black_on",over:"cbox_black_on",dis:"cbox_black_on"};C={reg:"cbox_black_off",pres:"cbox_black_off",over:"cbox_black_off",dis:"cbox_black_off"}}}}var B={srcIsParent:true,name:"on_checkbox",width:this.width,height:this.height,isSprite:true,spriteImgUrl:"http://s5-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/cboxs/all.gif",spriteClass:D};var A=this;this.onBtn=radius.widget.create("ImageButton",B,this.btnContainerNode);this.onBtn.checkBox=this;this.onBtn.onClick=dojo.lang.hitch(this,"onBtnClick");this.containerNode.onclick=dojo.lang.hitch(this,"textClick");B.name="off_checkbox";B.spriteClass=C;this.offBtn=radius.widget.create("ImageButton",B,this.btnContainerNode);this.offBtn.checkBox=this;this.offBtn.onClick=dojo.lang.hitch(this,"offBtnClick");radius.widget.CheckBox.superclass.postCreate.call(this)},disable:function(){this.disabled=true;if(this.dis){this.onBtn.disable();this.offBtn.disable()}},enable:function(){this.disabled=false;if(this.dis){this.onBtn.enable();this.offBtn.enable()}},onLoaded:function(){var A=this.checked;this.domNode.checked=A;this.checked=null;this.setState(A)},onBtnClick:function(){if(this.disabled){return }this.onBtn.checkBox.setState(false);if(this.onBtn.checkBox.onChange){this.onBtn.checkBox.onChange(false)}},offBtnClick:function(){if(this.disabled){return }this.offBtn.checkBox.setState(true);if(this.offBtn.checkBox.onChange){this.offBtn.checkBox.onChange(true)}},textClick:function(){if(this.disabled){return }if(this.checked){this.onBtnClick()}else{this.offBtnClick()}},setState:function(A){if(this.checked!=A){if(A){this.offBtn.hide();this.onBtn.show()}else{this.onBtn.hide();this.offBtn.show()}this.checked=A;this.domNode.checked=A}}});radius.widget.addClass("CheckBox",radius.widget.CheckBox);dojo.provide("radius.widget.LocalsFilterWindow");radius.widget.LocalsFilterWindow=function(){};radius.inherits(radius.widget.LocalsFilterWindow,radius.widget.RadWindow);radius.extend(radius.widget.LocalsFilterWindow,{widgetType:"LocalsFilterWindow",widgetId:"filterWin",allowResize:false,containTextInputs:true,onInit:function(){this.ageMinNode=radius.byId("filterWinAgeMinDomId");this.ageMaxNode=radius.byId("filterWinAgeMaxDomId");this.showMen=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterWinShowMenDomId");this.showWomen=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterWinShowWomenDomId");this.showOffline=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterWinShowOfflineDomId");this.showOnlyWithPics=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterWinShowOnlyWithPicsDomId");this.saveFilter=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterWinSaveFilterDomId");this.usernameInput=radius.byId("filterWinUsernameInputDomId");this.usernameButton=radius.byId("filterWinUsernameBtnDomId");this.interestedInMen=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterInMen");this.interestedInWomen=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterInWomen");this.lookingForFriendship=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterLookFriend");this.lookingForDating=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterLookDate");this.lookingForRelationship=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterLookRel");this.lookingForNetworking=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},"filterLookNet");radius.eventProvider.subscribe("updateSearchFilter",function(B){radius.windows.filterWin.saveClick()});radius.eventProvider.subscribe("closeSearchFilter",function(B){radius.windows.filterWin.close()});var A=this;this.interestedInMen.onChange=this.interestedInWomen.onChange=function(){A.updateClearInterestedBtn()};this.lookingForFriendship.onChange=this.lookingForDating.onChange=this.lookingForRelationship.onChange=this.lookingForNetworking.onChange=function(){A.updateClearLookingForBtn()};radius.data.getRelationshipStatuses(function(B){if(B&&B.list){A.buildRelStatusBoxes(B.list)}});if(!dojo.render.html.moz){radius.html.attachEventM(this.usernameInput,"onkeyup",this,"onInputKeyUp",true)}this.connectSearchInput();this.saveFilter.onChange=function(B){if(B==true&&!radius.isLoggedInToRadius()){radius.showLoginRequiredPrompt("save search filters");A.saveFilter.setState(false)}};this.relationshipStatusHeading=radius.byId("filterRelHeading");this.relationshipStatusClearBtn=radius.byId("filterRelClearImg");this.interestedHeading=radius.byId("filterInterestedHeading");this.interestedClearBtn=radius.byId("filterInterestedClearImg");this.lookingForHeading=radius.byId("filterLookingHeading");this.lookingForClearBtn=radius.byId("filterLookingClearImg");this.relationshipStatusHeading.onclick=function(){A.toggle(radius.byId("filterRelImg"),radius.byId("filterStatusBoxes"))};this.relationshipStatusClearBtn.onclick=function(){A.clearRelationshipBoxes();return false};this.interestedHeading.onclick=function(){A.toggle(radius.byId("filterInterestedImg"),radius.byId("filterInterestedBoxes"))};this.interestedClearBtn.onclick=function(){A.clearInterestedBoxes();return false};this.lookingForHeading.onclick=function(){A.toggle(radius.byId("filterLookingImg"),radius.byId("filterLookingBoxes"))};this.lookingForClearBtn.onclick=function(){A.clearLookingBoxes();return false};this.relationshipStatusHeading.onmouseover=this.interestedHeading.onmouseover=this.lookingForHeading.onmouseover=function(){this.style.color="#6497DC"};this.relationshipStatusHeading.onmouseout=this.interestedHeading.onmouseout=this.lookingForHeading.onmouseout=function(){this.style.color=""}},updateClearRelationshipBtn:function(){var B=true;for(var A in this.relationshipStatuses){if(this.relationshipStatuses[A].checked){B=false;break}}if(B){radius.html.hide(this.relationshipStatusClearBtn)}else{radius.html.show(this.relationshipStatusClearBtn)}},updateClearInterestedBtn:function(){if(!this.interestedInMen.checked&&!this.interestedInWomen.checked){radius.html.hide(this.interestedClearBtn)}else{radius.html.show(this.interestedClearBtn)}},updateClearLookingForBtn:function(){if(!this.lookingForFriendship.checked&&!this.lookingForDating.checked&&!this.lookingForRelationship.checked&&!this.lookingForNetworking.checked){radius.html.hide(this.lookingForClearBtn)}else{radius.html.show(this.lookingForClearBtn)}},clearRelationshipBoxes:function(){for(var A in this.relationshipStatuses){this.relationshipStatuses[A].setState(false)}radius.html.hide(this.relationshipStatusClearBtn);this.relationshipStatusHeading.onclick()},clearInterestedBoxes:function(){this.interestedInMen.setState(false);this.interestedInWomen.setState(false);radius.html.hide(this.interestedClearBtn);this.interestedHeading.onclick()},clearLookingBoxes:function(){this.lookingForFriendship.setState(false);this.lookingForDating.setState(false);this.lookingForRelationship.setState(false);this.lookingForNetworking.setState(false);radius.html.hide(this.lookingForClearBtn);this.lookingForHeading.onclick()},toggle:function(C,A){var B;if(radius.html.isVisible(A)){className="rosterTreeGroupArrowIconClass treeCollapsedArrowClass";$(A).fadeOut()}else{className="rosterTreeGroupArrowIconClass treeExpandedArrowClass";$(A).fadeIn()}C.className=className},buildRelStatusBoxes:function(I){var E=this;this.relationshipStatuses=[];var H=radius.byId("filterStatusBoxes");for(var D in I){var C=I[D];if(C&&C.translation&&C.translation!=""){var A=document.createElement("div");A.innerHTML=C.translation;var B="filterStatusBox_"+C.code;A.id=B;H.appendChild(A);var F=radius.widget.create("CheckBox",{name:"cbox11x11blue",textStyle:"font-size:11px;"},B);F.code=C.code;F.onChange=function(){E.updateClearRelationshipBtn()};this.relationshipStatuses.push(F)}}var G=radius.windows.mapWin.filter;if(G){this.updateFilter(G,true)}},updateFilter:function(D,C){if(C==null||C==false){this.ageMinNode.value=D.ageMin;this.ageMaxNode.value=D.ageMax;this.showMen.setState(D.showMen);this.showWomen.setState(D.showWomen);this.showOffline.setState(D.showOffline);this.showOnlyWithPics.setState(D.showOnlyWithPics);this.interestedInMen.setState(D.interestedInMen);this.interestedInWomen.setState(D.interestedInWomen);this.lookingForFriendship.setState(D.lookingForFriendship);this.lookingForDating.setState(D.lookingForDating);this.lookingForRelationship.setState(D.lookingForRelationship);this.lookingForNetworking.setState(D.lookingForNetworking)}for(var B in this.relationshipStatuses){var A=this.relationshipStatuses[B];if(D.relationshipStatus!=null&&D.relationshipStatus.indexOf(A.code)!=-1){A.setState(true)}else{A.setState(false)}}this.saveFilter.setState(false)},saveClick:function(){var F=radius.windows.mapWin.filter;var A=this.ageMinNode.value;var E=this.ageMaxNode.value;var C="";for(var D in this.relationshipStatuses){var B=this.relationshipStatuses[D];if(B.checked){C=C+B.code}}if(C.length==0){C=null}if(F.ageMin!=A||F.ageMax!=E||F.showMen!=this.showMen.checked||F.showWomen!=this.showWomen.checked||F.showOffline!=this.showOffline.checked||F.showOnlyWithPics!=this.showOnlyWithPics.checked||F.lookingForFriendship!=null&&F.lookingForFriendship!=this.lookingForFriendship.checked||F.lookingForFriendship==null&&this.lookingForFriendship.checked||F.lookingForDating!=null&&F.lookingForDating!=this.lookingForDating.checked||F.lookingForDating==null&&this.lookingForDating.checked||F.lookingForRelationship!=null&&F.lookingForRelationship!=this.lookingForRelationship.checked||F.lookingForRelationship==null&&this.lookingForRelationship.checked||F.lookingForNetworking!=null&&F.lookingForNetworking!=this.lookingForNetworking.checked||F.lookingForNetworking==null&&this.lookingForNetworking.checked||F.interestedInMen!=null&&F.interestedInMen!=this.interestedInMen.checked||F.interestedInMen==null&&this.interestedInMen.checked||F.interestedInWomen!=null&&F.interestedInWomen!=this.interestedInWomen.checked||F.interestedInWomen==null&&this.interestedInWomen.checked||this.isStringDifferent(F.relationshipStatus,C)||this.saveFilter.checked){if(!isNaN(parseInt(A))){F.ageMin=parseInt(this.ageMinNode.value)}if(!isNaN(parseInt(E))){F.ageMax=parseInt(E)}F.showMen=this.showMen.checked;F.showWomen=this.showWomen.checked;F.showOffline=this.showOffline.checked;F.showOnlyWithPics=this.showOnlyWithPics.checked;F.saveFilter=this.saveFilter.checked;if(!this.interestedInMen.checked&&!this.interestedInWomen.checked){F.interestedInMen=null;F.interestedInWomen=null}else{F.interestedInMen=this.interestedInMen.checked;F.interestedInWomen=this.interestedInWomen.checked}if(!this.lookingForFriendship.checked&&!this.lookingForDating.checked&&!this.lookingForRelationship.checked&&!this.lookingForNetworking.checked){F.lookingForFriendship=null;F.lookingForDating=null;F.lookingForRelationship=null;F.lookingForNetworking=null}else{F.lookingForFriendship=this.lookingForFriendship.checked;F.lookingForDating=this.lookingForDating.checked;F.lookingForRelationship=this.lookingForRelationship.checked;F.lookingForNetworking=this.lookingForNetworking.checked}F.relationshipStatus=C;radius.loadingBar.showBar();radius.windows.mapWin.startUpdateLocals(1,true);radius.windows.mapWin.quickBlink();radius.loadingBar.hideBar()}else{}},isStringDifferent:function(A,E){var C=false;if((!radius.isNull(A)&&radius.isNull(E))||(radius.isNull(A)&&!radius.isNull(E))){C=true}else{if((radius.isNull(A)&&radius.isNull(E))||(A.length&&E.length&&A.length!=E.length)){C=false}else{for(var D=0;D<A.length;D++){var B=A.substring(D,1);if(E.indexOf(B)==-1){C=true;break}}}}return C},onOpen:function(A){var B=radius.windows.mapWin.filter;if(B){this.updateFilter(B)}this.usernameInput.value=this.usernameInput.innerTitle=radiusIMTranslations.Msg112||"or search by username";this.usernameInput.first=false},connectSearchInput:function(){var A=this;this.usernameButton.onclick=dojo.lang.hitch(this,function(){A.searchByUsername()})},onInputKeyUp:function(A){if(A.keyCode==13){this.searchByUsername()}},searchByUsername:function(){if(this.usernameInput&&!this.usernameInput.first){}else{radius.showRadiusProfile(this.usernameInput.value)}}});radius.widget.addClass("LocalsFilterWindow",radius.widget.LocalsFilterWindow);dojo.provide("radius.widget.ScrollBar");dojo.provide("radius.widget.VScrollBar");radius.widget.ScrollBar=function(){radius.widget.BaseWindow.call(this)};radius.inherits(radius.widget.ScrollBar,radius.widget.BaseWindow);radius.extend(radius.widget.ScrollBar,{prefixPath:"http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/sbars/",templateCssPath:null,width:0,height:0,autoResizeSlider:true,maxSliderPos:100,sliderPos:0,sliderSize:1,clickIncrement:1,trackScrollClickIncrement:200,clickOnTrackType:1,clickTimeout:300,repeatTimeout:10,sliderMinSize:25,_clickTimeoutId:null,_repeatIntervalId:null,fillInTemplate:function(){radius.widget.ScrollBar.superclass.fillInTemplate.call(this);if(!this.name){throw new Error("The scroll bar name is not specified")}radius.html.mergeNodeData(this.srcNode,this.domNode)},preLoading:function(){radius.widget.ScrollBar.superclass.preLoading.call(this);var A=this.prefixPath+this.name+"/";var B=this.config;if(B.track){if(B.track.img1){radius.image.loadImage(A+"track/img2.png")}radius.image.loadImage(A+"track/imgc.png");if(B.track.img2){radius.image.loadImage(A+"track/img1.png")}}if(B.slider.img1){radius.image.loadImage(A+"slider/img2.png")}radius.image.loadImage(A+"slider/imgc.png");if(B.slider.img2){radius.image.loadImage(A+"slider/img1.png")}if(B.slider.imgcc){radius.image.loadImage(A+"slider/imgcc.png")}},postCreate:function(){var B=this.prefixPath+this.name+"/";var F=this.config;var E={prefixPath:B+"btns/",name:"btn1",width:F.btns.width,height:F.btns.height,over:F.btns.over,pres:F.btns.pres,onDown:dojo.lang.hitch(this,"_downBtn1"),onUp:dojo.lang.hitch(this,"_upBtns")};this.btn1=radius.widget.create("ImageButton",E,this.btn1Node);E.name="btn2";E.onDown=dojo.lang.hitch(this,"_downBtn2");this.btn2=radius.widget.create("ImageButton",E,this.btn2Node);if(F.track){if(F.track.img1){var A=radius.image.makePngNode(B+"track/img1.png",null,F.track.img1);radius.style.setStyles(A,F.track.img1);this.track1Node.appendChild(A)}else{radius.html.discardNode(this.track1Node)}this.trackImgcNode=radius.image.makePngNode(B+"track/imgc.png","scale",F.track.imgc);radius.style.setStyles(this.trackImgcNode,F.track.imgc);radius.style.setStyles(this.trackImgcNode,this.sizingStyles);this.trackcNode.appendChild(this.trackImgcNode);if(F.track.img2){var D=radius.image.makePngNode(B+"track/img2.png",F.track.img2);radius.style.setStyles(D,F.track.img2);this.track2Node.appendChild(D)}else{radius.html.discardNode(this.track2Node)}}else{radius.html.discardNode(this.trackNode)}if(F.slider.img1){var A=radius.image.makePngNode(B+"slider/img1.png",F.slider.img1);radius.style.setStyles(A,F.slider.img1);this.slider1Node.appendChild(A)}else{radius.html.discardNode(this.slider1Node)}this.sliderImgcNode=radius.image.makePngNode(B+"slider/imgc.png","scale",F.slider.imgc);radius.style.setStyles(this.sliderImgcNode,F.slider.imgc);radius.style.setStyles(this.sliderImgcNode,this.sizingStyles);this.slidercNode.appendChild(this.sliderImgcNode);if(F.slider.img2){var D=radius.image.makePngNode(B+"slider/img2.png",F.slider.img2);radius.style.setStyles(D,F.slider.img2);this.slider2Node.appendChild(D)}else{radius.html.discardNode(this.slider2Node)}if(F.slider.imgcc){var C=radius.image.makePngNode(B+"slider/imgcc.png",F.slider.imgcc);radius.style.setStyles(C,F.slider.imgcc);radius.style.setStyles(C,{position:"absolute",left:"50%",top:"50%",marginLeft:(-F.slider.imgcc.width/2),marginTop:(-F.slider.imgcc.height/2)});this.sliderNode.appendChild(C)}this.sliderZoneNode=this.sliderNode;this._doInitialize(F);radius.widget.ScrollBar.superclass.postCreate.call(this)},onLoaded:function(){radius.widget.ScrollBar.superclass.onLoaded.call(this);this.updateState();radius.html.attachEventM(this.sliderZoneNode,"onmousedown",this,"_startSliding");radius.html.attachEventM(this.trackcNode,"onmousedown",this,"_clickedOnTrack")},_downBtn1:function(){this._goClick(-this.clickIncrement)},_downBtn2:function(){this._goClick(this.clickIncrement)},_upBtns:function(){if(this._repeatIntervalId!=null){clearInterval(this._repeatIntervalId);this._repeatIntervalId=null}if(this._clickTimeoutId!=null){clearTimeout(this._clickTimeoutId);this._clickTimeoutId=null}},_goClick:function(A){this.setSliderPos(this.sliderPos+A);var B=this;if(this._repeatIntervalId!=null){clearInterval(this._repeatIntervalId);this._repeatIntervalId=null}if(this._clickTimeoutId!=null){clearTimeout(this._clickTimeoutId)}this._clickTimeoutId=setTimeout(function(){B._firstClick(A)},this.clickTimeout)},_mouseWheelScroll:function(A){this.setSliderPos(this.sliderPos+A)},_firstClick:function(A){this._clickTimeoutId=null;var B=this;if(this._repeatIntervalId!=null){clearInterval(this._repeatIntervalId)}this._repeatIntervalId=setInterval(function(){B._repeatClick(A)},this.repeatTimeout)},_repeatClick:function(A){this.setSliderPos(this.sliderPos+A)},_startSliding:function(A){if(this.isSliding){return false}this.isSliding=true;this.startPosition={x:this.sliderNode.offsetLeft,y:this.sliderNode.offsetTop};this.startPoint={x:A.clientX,y:A.clientY};radius.html.attachEventM(document.body,"onmousemove",this,"_processSliding");radius.html.attachEventM(document.body,"onmouseup",this,"_endSliding",true);if(dojo.render.html.ie){radius.html.attachEventM(this.sliderZoneNode,"ondragstart",this,"_endSliding",true)}A.preventDefault()},_clickedOnTrack:function(A){if(this.clickOnTrackType==1){this._clickTrackToScroll(A)}else{if(this.clickOnTrackType==2){this._clickTrackToPos(A)}}},_clickTrackToScroll:function(D){var B=this._pxTrackClickPos(D);var C=1;if(B<this._pxSliderPos()){C=-1}var A=this.sliderPos+(this.trackScrollClickIncrement*C);this.setSliderPos(A)},_clickTrackToPos:function(C){var B=this._pxTrackClickPos(C);var D=B/this._pxMaxSliderPos();var A=D*this.maxSliderPos;this.setSliderPos(A)},_processSliding:function(G){if(!G||!G.clientX||!G.clientY){return }var B=this._pxDSize(G);var F=this._pxMaxSliderPos();var J=this._startpxSliderPos();var D=this._pxSliderSize();var C=J+B;var A=this._pxSliderPos();if(C<0){C=0}else{var I=F-D;if(C>I){C=I}}if(C!=A){var E=this.maxSliderPos*C/(F-D);var H=this.onSliding(E);if(H!=null){if(H!=E){C=H*(F-D)/this.maxSliderPos}this.sliderPos=H;this._setpxSliderPos(C)}}G.preventDefault()},_endSliding:function(){radius.html.detachEventM(document.body,"onmousemove",this,"_processSliding");radius.html.detachEventM(document.body,"onmouseup",this,"_endSliding",true);if(dojo.render.html.ie){radius.html.detachEventM(this.sliderZoneNode,"ondragstart",this,"_endSliding",true)}this.isSliding=false},onSliding:function(A){return A},updateState:function(){if(this.isSliding){this._endSliding()}if(this.sliderPos<0){this.sliderPos=0}else{if(this.sliderPos>this.maxSliderPos){this.sliderPos=this.maxSliderPos}}var C=this._pxMaxSliderPos();var A;if(this.autoResizeSlider){A=this.sliderSize*C/(this.maxSliderPos+this.sliderSize)}else{A=this.sliderSize}A=Math.max(A,this.sliderMinSize);var B=(this.maxSliderPos!=0)?(this.sliderPos*(C-A)/this.maxSliderPos):0;this._setpxSliderPos(B);this._setpxSlideSize(A)},setSliderPos:function(B){if(this.isSliding){this._endSliding()}var A=this.sliderPos;if(B<0){B=0}else{if(B>this.maxSliderPos){B=this.maxSliderPos}}if(B!=A){A=B;B=this.onSliding(B);if(B!=null){var C=B*(this._pxMaxSliderPos()-this._pxSliderSize())/this.maxSliderPos;this.sliderPos=B;this._setpxSliderPos(C)}}},_:0});radius.widget.VScrollBar=function(){radius.widget.ScrollBar.call(this)};radius.inherits(radius.widget.VScrollBar,radius.widget.ScrollBar);radius.extend(radius.widget.VScrollBar,{sizingStyles:{height:"100%"},allowDrag:{disableX:true,disableY:false},templateNode:"vscrollBarTemplateDomId",_doInitialize:function(A){this.sliderNode.style.marginLeft=Math.round(-A.slider.imgc.width/2)},_pxDSize:function(A){return A.clientY-this.startPoint.y},_pxMaxSliderPos:function(){return dojo.style.getOuterHeight(this.sliderContainerNode)},_pxSliderSize:function(){return dojo.style.getOuterHeight(this.sliderNode)},_pxSliderPos:function(){return this.sliderNode.offsetTop},_startpxSliderPos:function(){return this.startPosition.y},_setpxSliderPos:function(A){this.sliderNode.style.top=A+"px"},_setpxSlideSize:function(A){dojo.style.setOuterHeight(this.sliderNode,A)},_pxTrackClickPos:function(A){return A.clientY-radius.style.getAbsoluteY(this.trackNode)}});radius.widget.HScrollBar=function(){radius.widget.ScrollBar.call(this)};radius.inherits(radius.widget.HScrollBar,radius.widget.ScrollBar);radius.extend(radius.widget.HScrollBar,{sizingStyles:{width:"100%"},allowDrag:{disableX:false,disableY:true},templateNode:"hscrollBarTemplateDomId",_doInitialize:function(A){this.sliderNode.style.marginTop=-A.slider.imgc.height/2},_pxDSize:function(A){return A.clientX-this.startPoint.x},_pxMaxSliderPos:function(){return dojo.style.getOuterWidth(this.sliderContainerNode)},_pxSliderSize:function(){return dojo.style.getOuterWidth(this.sliderNode)},_pxSliderPos:function(){return this.sliderNode.offsetLeft},_startpxSliderPos:function(){return this.startPosition.x},_setpxSliderPos:function(A){this.sliderNode.style.left=A+"px"},_setpxSlideSize:function(A){dojo.style.setOuterWidth(this.sliderNode,A)},_pxTrackClickPos:function(A){return A.clientX-radius.style.getAbsoluteX(this.trackNode)}});dojo.provide("radius.widget.LocalsScrollBar");radius.widget.LocalsScrollBar=function(){radius.widget.VScrollBar.call(this)};radius.inherits(radius.widget.LocalsScrollBar,radius.widget.VScrollBar);radius.extend(radius.widget.LocalsScrollBar,{widgetType:"LocalsScrollBar",name:"locals",config:{btns:{over:false,pres:false,width:16,height:16},track:{img1:{width:10,height:5},imgc:{width:10,height:4},img2:{width:10,height:5}},slider:{img1:{width:19,height:5},imgc:{width:19,height:1},img2:{width:19,height:6},imgcc:{width:19,height:6}}},autoResizeSlider:true,maxSliderPos:5,sliderPos:0,sliderSize:1,clickIncrement:1,onSliding:function(A){A=Math.round(A);if(A==this.sliderPos){return null}radius.windows.mapWin.onUpdateLocalsPage(A+1);return A}});radius.widget.addClass("LocalsScrollBar",radius.widget.LocalsScrollBar);dojo.provide("radius.widget.MScrollWindow");radius.widget.MScrollWindow=function(){radius.widget.DefaultWindow.call(this)};radius.inherits(radius.widget.MScrollWindow,radius.widget.DefaultWindow);radius.extend(radius.widget.MScrollWindow,{widgetType:"MScrollWindow",widgetId:"scrollWin",constrainToContainer:false,allowResize:false,allowTopping:false,hideOnStartup:true,resizeOnStartup:false,width:22,height:210,browserResized:null,hideCaptionContents:true,overrideBorder:{d_ul:{pos_class_prefix:"blank"},d_u:{pos_class_prefix:"map_scroll_d_u"},d_ur:{pos_class_prefix:"map_scroll_d_ur"},d_l:{pos_class_prefix:"blank"},d_c:{pos_class_prefix:"map_scroll_d_c"},d_r:{pos_class_prefix:"map_scroll_d_r"},d_dl:{pos_class_prefix:"blank"},d_d:{pos_class_prefix:"map_scroll_d_d"},d_dr:{pos_class_prefix:"map_scroll_d_dr"}},caption:null,d_c_closeb:null,d_c_maxb:null,d_c_minb:null,postCreate:function(){this.scrollBar=radius.widget.create("LocalsScrollBar",{},"mscrollWinLocalsScrollBarDomId");this.scrollBar.scrollWin=this;radius.widget.MScrollWindow.superclass.postCreate.call(this);this.contentNode.style.width="100%";this.domNode.style.left=""},onLoaded:function(){radius.widget.MScrollWindow.superclass.onLoaded.call(this);this.open(false)},isVisible:function(){return this.domNode.style.display!="none"},autoPos:function(){this.setPos({right:-17,top:($(radius.windows.mapWin.domNode).height()/2-this.height/2+6)})},show:function(){if(radius.windows.mapWin){this.resizeTo(this.width,this.height);this.autoPos()}radius.widget.MScrollWindow.superclass.show.call(this);this.scrollBar.updateState();this.domNode.isshow=true},close:function(){radius.widget.MScrollWindow.superclass.close.call(this);this.domNode.style.display="none";this.domNode.isshow=false}});radius.widget.addClass("MScrollWindow",radius.widget.MScrollWindow);dojo.provide("radius.widget.RecentWindow");dojo.fx.html.toggle.recent_win_effect={init:function(A){A.domNode.isshow=false;this.win=A;this.anim=new radius.anim.Anim(A.toggleDuration);this.anim.onAnim=new Function("p","return dojo.fx.html.toggle.recent_win_effect.onAnim(p)");this.anim.onStart=new Function("p","return dojo.fx.html.toggle.recent_win_effect.onStart(p)");this.anim.onEnd=new Function("p","return dojo.fx.html.toggle.recent_win_effect.onEnd(p)")},onAnim:function(A){if(!this.win.posTop){this.anim.complete(0);return false}this.win.domNode.style.top=(this.win.posTop-dojo.style.getInnerHeight(this.win.domNode)*(1-A))+"px";return true},onStart:function(A){if(A==0){if(radius.windows.mapWin.windowState!="minimized"){radius.html.showAbs(this.win.domNode)}this.win.domNode.isshow=true}return true},onEnd:function(A){if(A==0){if(radius.windows.mapWin.windowState!="minimized"){radius.html.hideAbs(this.win.domNode)}this.win.domNode.isshow=false}else{if(!radius.recentsIsDataLoaded){radius.loadRecentsFavoritesData()}else{radius.refreshRecentsGrid()}}return true},show:function(B,C,A,D){this.anim.goForward()},hide:function(B,C,A,D){this.anim.goBack()}};radius.widget.RecentWindow=function(){radius.widget.DefaultWindow.call(this)};radius.inherits(radius.widget.RecentWindow,radius.widget.DefaultWindow);radius.extend(radius.widget.RecentWindow,{widgetType:"RecentWindow",widgetId:"recentWin",constrainToContainer:false,allowResize:false,allowTopping:false,hideOnStartup:true,resizeOnStartup:false,toggleDuration:300,toggle:"recent_win_effect",browserResized:null,overrideBorder:{d_ul:{pos_class_prefix:"d_l"},d_u:{pos_class_prefix:"d_u"},d_ur:{pos_class_prefix:"d_r"},d_l:{pos_class_prefix:"d_l"},d_c:{pos_class_prefix:"d_c"},d_r:{pos_class_prefix:"d_r"},d_dl:{pos_class_prefix:"d_dl"},d_d:{pos_class_prefix:"d_d"},d_dr:{pos_class_prefix:"d_dr"}},caption:null,d_c_closeb:null,d_c_maxb:null,d_c_minb:null,fillInTemplate:function(){radius.widget.RecentWindow.superclass.fillInTemplate.call(this);this.attachNodes({recentWinGridBoxNodeDomId:"gridBoxNode",recentWinUpBarTextDomId:"upBarTextNode",recentWinNavDomId:"navNode",recentWinNavMoreDomId:"navMoreNode",recentWinNavBackDomId:"navBackNode"});this._makeGrid();radius.html.handleSelectionState(this.domNode,false)},_makeGrid:function(){this._makeIBar();var A=this.gridBoxNode.getElementsByTagName("img");this.photoNodes=[];this.ibars=[];var C=dojo.byId(radius.widget.RecentWindow.ibarDomId);for(var E=0;E<A.length;E++){var B=A[E];if(B.className!="recentWinPhotoClass"){continue}B.gx=parseInt(B.getAttribute("x"));B.py=24;this.photoNodes.push(B);var D=C.cloneNode(true);B.parentNode.insertBefore(D,B.nextSibling);this.ibars.push(D);B.oncontextmenu=radius.widget.MapWindow.oncontextmenufn}radius.html.detachNode(this.gridBoxNode);this.domNode.appendChild(this.gridBoxNode)},_makeIBar:function(){var A=dojo.byId(radius.widget.RecentWindow.ibarDomId);dojo.style.setOpacity(A.childNodes[0],0.25,true);dojo.style.setOpacity(A.childNodes[1],0.7,true);radius.html.handleSelectionState(A,false)},postCreate:function(){this.showFavors=radius.widget.create("CheckBox",{name:"cbox11x11black",onChange:dojo.lang.hitch(this,this.showFavorsChange)},"recentWinFavorChkboxDomId");this.showRecents=radius.widget.create("CheckBox",{name:"cbox11x11black",onChange:dojo.lang.hitch(this,this.showRecentChange)},"recentWinRecentChkboxDomId");radius.widget.create("ImageButton",{isSprite:true,spriteImgUrl:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/btns/all.gif",width:14,height:14,srcIsParent:true,name:"close_x_favs",spriteClass:{reg:"sprite-close_reg",pres:"sprite-close_pres",over:"sprite-close_over",dis:"sprite-close_dis"},onClick:dojo.lang.hitch(this,this.hide)},"recentWinCloseBtnDomId");radius.widget.RecentWindow.superclass.postCreate.call(this);this.autoPos();this.updateFilter({showFavors:true,showRecents:true})},onGridMouseMove:function(F){var I=this.gridBoxNode.offsetWidth;var G=this.gridBoxNode.offsetHeight;var C=this.iwidth+1;var B=this.iheight+1;var A,E;if(dojo.render.html.ie){A=this.getCursorPos(window.event,this.gridBoxNode);E=A.x>5&&A.y>26&&A.x<(I-2)&&A.y<(G-2)&&((A.x-6)%C)!=this.iwidth&&((A.y-27)%B)!=this.iheight;A.x-=6;A.y-=27}else{A=this.getCursorPos(F,this.gridBoxNode);E=A.x>3&&A.y>24&&A.x<(I-4)&&A.y<(G-4)&&((A.x-4)%C)!=this.iwidth&&((A.y-25)%B)!=this.iheight;A.x-=4;A.y-=25}if(E){var H=Math.floor(A.x/C);var D=this.photoNodes[H];if(D&&D.pdata){if(this.currentPNode!=D){this.onCellHandle(this.currentPNode,D);this.currentPNode=D}return }}if(this.currentPNode){this.onCellHandle(this.currentPNode,null);this.currentPNode=null}},onGridMouseOut:function(A){if(A&&A.relatedTarget){var B=A.relatedTarget}else{if(window.event&&window.event.toElement){var B=window.event.toElement}}if(B&&B.className=="mapWinPhotoClass"){return }if(this.currentPNode!=null){this.onCellHandle(this.currentPNode,null);this.currentPNode=null}},onCellHandle:function(B,A){if(B&&B.pdata&&B.pdata.rover){B.pdata.rover.goBack()}if(A&&A.pdata&&A.style.display!="none"){(A.pdata.rover?A.pdata.rover:new radius.widget.MapWindow.RolloverAnim(A)).goForward()}},isVisible:function(){return this.toggleObj.anim?this.toggleObj.anim.percent!=0:false},autoPos:function(){var A=radius.windows.mapWin;this.resizeTo(A.iwidth,A.iheight);this.posTop=$(A.domNode).height()-1;this.setPos({left:($(A.domNode).width()-$(this.domNode).width())/2,top:this.posTop})},resizeNav:function(B,C){this.navNode.style.left=(3+9*(B+1))+"px";var A=radius.windows.mapWin.iwidthMin;this.navMoreNode.style.fontSize=this.navBackNode.style.fontSize=Math.round(8+(B-A)/(48-A))+"px";if(dojo.render.html.ie){dojo.style.setOuterWidth(this.navNode,B);dojo.style.setOuterHeight(this.navNode,C)}else{this.navNode.style.width=B+"px";this.navNode.style.height=C+"px"}},resizeTo:function(G,M){if(G==this.iwidth){return }if(!M){M=Math.round(G*3/4)}this.iwidth=G;this.iheight=M;var K=G*10+9;var I=M;this.domNode.style.visibility="hidden";dojo.style.setOuterWidth(this.gridBoxNode,K+8);dojo.style.setOuterHeight(this.gridBoxNode,I+28);var H=G+1;var F=G+"px";var A=M+"px";var L=(M+11)+"px";if(dojo.render.html.ie){for(var D=0;D<this.photoNodes.length;D++){var E=this.photoNodes[D];var C=this.ibars[D];if(E.pdata&&E.pdata.rover){E.pdata.rover.complete(0)}E.style.left=C.style.left=(E.px=3+E.gx*H)+"px";C.style.top=L;E.style.width=C.style.width=F;E.style.height=A}}else{for(var D=0;D<this.photoNodes.length;D++){var E=this.photoNodes[D];var C=this.ibars[D];E.style.left=C.style.left=(E.px=3+E.gx*H)+"px";C.style.top=L;E.style.width=C.style.width=F;E.style.height=A;if(E.pdata){if(E.pdata.rover){E.pdata.rover.complete(0)}radius.widget.RecentWindow.updateIBar(E.pdata.user,C,G)}}}this.resizeNav(G,M);this.upBarTextNode.style.fontSize=(G<48?(8+G*3/48):11)+"px";if(dojo.render.html.ie){var J=K+14;var B=I+20;radius.widget.RecentWindow.superclass.resizeTo.call(this,J+(J&1),B)}else{radius.widget.RecentWindow.superclass.resizeTo.call(this,K+14,I+20)}this.domNode.style.visibility="visible"},updateFilter:function(A){this.filter=A;this.showFavors.setState(A.showFavors);this.showRecents.setState(A.showRecents)},refreshGrid:function(){var J=this.filter;if(!J){return }var L=radius.recents.length;var K=0;if(J.showFavors){K+=radius.favorsCount}if(J.showRecents){K+=radius.recentsCount}var B;var P;if(K<=10){this.pageNumber=0;B=0;P=false}else{var C=Math.ceil(K/9);if(this.pageNumber>=C){this.pageNumber=C-1}B=this.pageNumber*9;P=this.pageNumber<(C-1)}var M=this.pageNumber>0;var Q=P||M;var O=0;if(J.showFavors&&J.showRecents){O=B;K-=B}else{if(J.showFavors){for(;O<L&&B;O++){if(radius.recents[O].favorite){B--;K--}}}else{if(J.showRecents){for(;O<L&&B;O++){if(!radius.recents[O].favorite){B--;K--}}}}}var E;if(Q){E=9;this.navMoreNode.style.display=P?"":"none";this.navBackNode.style.display=M?"":"none";this.photoNodes[9].style.display=this.ibars[9].style.display="none";this.navNode.style.display=""}else{E=10;this.navNode.style.display="none";this.photoNodes[9].style.display=this.ibars[9].style.display=""}var K=Math.min(E,K);var G=0;for(var I=O;I<L&&K;I++){var A=radius.recents[I];if(!((J.showFavors&&A.favorite)||(J.showRecents&&!A.favorite))){continue}var H=this.photoNodes[G];var F=this.ibars[G];G++;K--;var D=A.photoid?A.photoid:(A.gender=="M"?"nophotom":"nophotof");H.onload=null;if(H.pdata){var N=H.pdata;N.user=A;N.pname=D;if(N.rover){if(N.rover.ibar){radius.widget.MapWindow.updateIBar(A,N.rover.ibar)}H.onload=radius.widget.MapWindow.onloadfn}}else{H.pdata={user:A,pname:D}}H.src=radius.getPhotoUrl(D,A.photo,A.photoDirRelativeUri,48,"RecentWindow.refreshGrid",A.isPhotoOnS3,A.s3Bucket,A.photoVersion);H.style.cursor="pointer";F.style.display="";if(dojo.render.html.ie){radius.html.setInnerText(F.childNodes[1],H.pdata.user.username)}else{radius.widget.RecentWindow.updateIBar(A,F,this.iwidth)}}for(;G<E;G++){var H=this.photoNodes[G];var F=this.ibars[G];H.onload=null;if(H.pdata){var N=H.pdata;if(N.rover){if(N.rover.ibar){radius.html.discardNode(N.rover.ibar);N.rover.ibar=undefined}N.rover.complete(0)}}H.pdata=undefined;H.src="http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/emptycell_48.gif";H.style.cursor="default";F.style.display="none"}},showFavorsChange:function(A){this.filter.showFavors=A;this.refreshGrid();new radius.LocalsRequest("updateRecentsFilter").send(this.filter)},showRecentChange:function(A){this.filter.showRecents=A;this.refreshGrid();new radius.LocalsRequest("updateRecentsFilter").send(this.filter)},moreClick:function(){this.pageNumber++;this.refreshGrid()},backClick:function(){this.pageNumber--;this.refreshGrid()},open:function(A){radius.widget.RecentWindow.superclass.open.call(this,A);if(dojo.render.html.safari){this.autoPos()}this.pageNumber=0},close:function(){radius.widget.RecentWindow.superclass.close.call(this);radius.updateRecents({recents:{list:[]}});this.pageNumber=0;this.filter=null;this.iwidth=undefined;this.domNode.style.display="none"},disable:function(){this.containerNodeOverlay.style.top="0px";this.containerNodeOverlayInner.style.top="-2px";radius.widget.RecentWindow.superclass.disable.call(this)},_:0});radius.widget.addClass("RecentWindow",radius.widget.RecentWindow);radius.widget.RecentWindow.ibarDomId=dojo.render.html.ie?"recentWinIBarIEDomId":"recentWinIBarDomId";radius.widget.RecentWindow.updateIBar=function(C,F,E){var A=F.childNodes[1].firstChild;var B=C.username;if(B&&B.length>0){var D="";while(1){radius.html.setInnerText(A,B+D);if(A.offsetWidth<=E||!B.length){break}D="..";B=B.substring(0,B.length-1)}if(!B.length){radius.html.setInnerText(A,"")}}else{radius.html.setInnerText(A,"")}};dojo.provide("radius.widget.PZoomerScrollBar");radius.widget.PZoomerScrollBar=function(){radius.widget.VScrollBar.call(this)};radius.inherits(radius.widget.PZoomerScrollBar,radius.widget.HScrollBar);radius.extend(radius.widget.PZoomerScrollBar,{widgetType:"PZoomerScrollBar",name:"pzoomer",config:{btns:{over:false,pres:false,width:12,height:12},track:{img1:{width:7,height:6},imgc:{width:1,height:6},img2:{width:9,height:6}},slider:{imgc:{width:12,height:12}}},autoResizeSlider:false,maxSliderPos:100,sliderPos:0,sliderSize:1,clickIncrement:1,trackScrollClickIncrement:10,onSliding:function(A){A=Math.round(A);return radius.widget.PZoomerScrollBar.superclass.onSliding.call(this,A)}});radius.widget.addClass("PZoomerScrollBar",radius.widget.PZoomerScrollBar);dojo.provide("radius.widget.RadioGroup");dojo.provide("radius.widget.RadioButton");radius.widget.RadioGroup=function(){};radius.extend(radius.widget.RadioGroup,{seqId:0,checkedButton:null,add:function(B,C){var A=radius.widget.create("RadioButton",C!=undefined?C:{radioName:this.seqId++,name:"radio13x13",checked:false,textStyle:"font-size:11px;"},dojo.byId(B));A.show();A.group=this;return A},change:function(B,C,D,A){if((C&&this.checkedButton!=B)||A){if(this.checkedButton){this.checkedButton.setState(false);if(D==undefined||(D!=undefined&&D)){if(this.onChange){this.onChange(this.checkedButton,false)}}}this.checkedButton=B;B.setState(true);if(D==undefined||(D!=undefined&&D)){if(this.onChange){this.onChange(B,C)}}}},getChecked:function(){return this.checkedButton?this.checkedButton.radioName:null}});radius.widget.RadioButton=function(){radius.widget.BaseWindow.call(this)};radius.inherits(radius.widget.RadioButton,radius.widget.BaseWindow);radius.extend(radius.widget.RadioButton,{widgetType:"RadioButton",isContainer:true,hideOnStartup:false,width:11,height:11,checked:false,group:null,prefixPath:"http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/cboxs/",disabled:false,over:false,pres:false,dis:"png",templateNode:"radioButtonTemplateDomId",fillInTemplate:function(){radius.widget.RadioButton.superclass.fillInTemplate.call(this);this.textNode=this.containerNode;if(!this.name){throw new Error("The radiobutton name is not specified")}radius.html.mergeNodeData(this.srcNode,this.domNode);if(dojo.lang.has(this.srcNode,"checked")){this.checked=this.srcNode.checked}if(this.textClass){dojo.html.addClass(this.textNode,this.textClass)}if(this.textStyle){this.textNode.style.cssText=this.textStyle}this.onNode=document.createElement("div");dojo.html.setClass(this.onNode,"radioButtonBtnClass");this.btnContainerNode.appendChild(this.onNode);this.offNode=document.createElement("div");dojo.html.setClass(this.offNode,"radioButtonBtnClass");this.btnContainerNode.appendChild(this.offNode)},postCreate:function(B,D){var C={prefixPath:this.prefixPath+this.name+"/",name:"on",width:this.width,height:this.height,over:this.over,pres:this.pres};var A=this;this.onBtn=radius.widget.create("ImageButton",C,this.onNode);C.name="off";C.dis=this.dis;this.offBtn=radius.widget.create("ImageButton",C,this.offNode);this.offBtn.onClick=function(){A.setState(true);if(A.onChange){A.onChange(true)}};radius.widget.RadioButton.superclass.postCreate.call(this)},onLoaded:function(){var A=this.checked;this.domNode.checked=A;this.checked=null;this.setState(A);if(this.disabled){this.disabled=false;this.disable()}},setState:function(A){if(this.checked!=A){if(A){this.offBtn.hide();this.onBtn.show()}else{this.onBtn.hide();this.offBtn.show()}this.checked=A;this.domNode.checked=A}},disable:function(A){if(A==undefined){A=true}if(this.disabled==A){return }if(A){this.offBtn.disable();this.offBtn.show();this.onBtn.hide();this.checked=false;this.domNode.checked=false}else{this.offBtn.enable();this.offBtn.show();this.onBtn.hide();this.checked=false;this.domNode.checked=false}this.disabled=A},enable:function(A){this.disable(A==undefined?false:!A)},change:function(B,A){this.group.change(this,B,null,A)},onChange:function(A){if(this.group!=null){this.group.change(this,A)}}});radius.widget.addClass("RadioButton",radius.widget.RadioButton);dojo.provide("radius.widget.ContentArea");radius.widget.ContentArea=function(){radius.widget.BaseWindow.call(this)};radius.inherits(radius.widget.ContentArea,radius.widget.BaseWindow);radius.extend(radius.widget.ContentArea,{widgetType:"ContentArea",isContainer:true,autoHideSBars:true,vScrollMouseWheel:false,vscroll:"ContentAreaVScroll",hscroll:"ContentAreaHScroll",templateNode:"contentAreaTemplateDomId",fillInTemplate:function(){radius.widget.ContentArea.superclass.fillInTemplate.call(this);radius.html.mergeNodeData(this.srcNode,this.domNode);this.contentNode=this.containerNode},postCreate:function(){this.buildLayout();if(this.vscroll&&this.vscrollContainer){this.buildVScroll()}if(this.hscroll&&this.hscrollContainer){this.buildHScroll()}radius.widget.ContentArea.superclass.postCreate.call(this)},onLoaded:function(){radius.widget.ContentArea.superclass.onLoaded.call(this);this.update()},buildLayout:function(){if(this.vscroll||this.hscroll){radius.html.detachNode(this.contentNode);var B=document.createElement("table");B.cellSpacing=B.cellPadding=0;radius.style.setStyles(B,{width:"100%",height:"100%"});this.domNode.appendChild(B);var A=document.createElement("tbody");B.appendChild(A);var C=document.createElement("tr");A.appendChild(C);var E=document.createElement("td");radius.style.setStyles(E,{width:"100%",height:"100%"});C.appendChild(E);var D=document.createElement("div");radius.style.setStyles(D,{position:"relative",width:"100%",height:"100%"});E.appendChild(D);radius.style.setStyles(this.contentNode,{overflow:"hidden",position:"absolute",width:"100%",height:"100%"});D.appendChild(this.contentNode);if(this.vscroll){this.vscrollContainer=E=document.createElement("td");radius.style.setStyles(E,{height:"100%"});C.appendChild(E)}if(this.hscroll){this.hscrollRow=C=document.createElement("tr");A.appendChild(C);this.hscrollContainer=E=document.createElement("td");radius.style.setStyles(E,{width:"100%"});C.appendChild(E);if(this.vscroll){this.scrollsCell=E=document.createElement("td");C.appendChild(E)}}}else{radius.style.setStyles(this.contentNode,{overflow:"hidden",width:"100%",height:"100%"})}},buildVScroll:function(){var A=document.createElement("div");radius.style.setStyles(A,{height:"100%"});this.vscrollContainer.appendChild(A);this.vscroll=radius.widget.create(this.vscroll,{carea:this},A);if(this.vScrollMouseWheel){radius.html.attachMouseWheelEvent(this.domNode,this,"_onMouseWheel",true)}},buildHScroll:function(){var A=document.createElement("div");radius.style.setStyles(A,{width:"100%"});this.hscrollContainer.appendChild(A);this.hscroll=radius.widget.create(this.hscroll,{carea:this},A)},_onMouseWheel:function(B){var A=0;if(dojo.render.html.ie){B.returnValue=false;A=(B.wheelDelta/-120)*20}else{B.preventDefault();A=B.detail*5}this.vscroll._mouseWheelScroll(A)},update:function(){this.updateVert(true);this.updateHoriz(true)},updateVert:function(B){var E=this.vscroll;if(!E){return }var D=this.contentNode.scrollHeight;var A=dojo.style.getInnerHeight(this.contentNode);var C=D-A;if(C<0){C=0}E.maxSliderPos=C;if(this.autoHideSBars){if(C){this.showVScroll()}else{this.hideVScroll()}}E.updateState();if(B){this.contentNode.scrollTop=E.sliderPos}},updateHoriz:function(B){var D=this.hscroll;if(!D){return }var A=this.contentNode.scrollWidth;var E=dojo.style.getInnerWidth(this.contentNode);var C=A-E;if(C<0){C=0}D.maxSliderPos=C;if(this.autoHideSBars){if(C){this.showHScroll()}else{this.hideHScroll()}}D.updateState();if(B){this.contentNode.scrollLeft=D.sliderPos}},showVScroll:function(){if(!this.vscrollContainer){return }dojo.html.show(this.vscrollContainer);if(this.scrollsCell&&dojo.html.isShowing(this.hscrollContainer)){dojo.html.show(this.scrollsCell)}},hideVScroll:function(){if(!this.vscrollContainer){return }dojo.html.hide(this.vscrollContainer);if(this.scrollsCell){dojo.html.hide(this.scrollsCell)}},showHScroll:function(){if(!this.hscrollContainer){return }dojo.html.show(this.hscrollContainer);if(this.scrollsCell&&dojo.html.isShowing(this.vscrollContainer)){dojo.html.show(this.scrollsCell)}},hideHScroll:function(){if(!this.hscrollContainer){return }dojo.html.hide(this.hscrollContainer);if(this.scrollsCell){dojo.html.hide(this.scrollsCell)}},onVSliding:function(A){this.contentNode.scrollTop=A},onHSliding:function(A){this.contentNode.scrollLeft=A}});radius.widget.addClass("ContentArea",radius.widget.ContentArea);radius.widget.ContentAreaVScroll=function(){radius.widget.VScrollBar.call(this)};radius.inherits(radius.widget.ContentAreaVScroll,radius.widget.VScrollBar);radius.extend(radius.widget.ContentAreaVScroll,{widgetType:"ContentAreaVScroll",name:"careav",config:{btns:{over:false,pres:false,width:16,height:16},track:{img1:{width:10,height:5},imgc:{width:10,height:4},img2:{width:10,height:5}},slider:{img1:{width:19,height:5},imgc:{width:19,height:1},img2:{width:19,height:6},imgcc:{width:19,height:6}}},autoResizeSlider:true,maxSliderPos:100,sliderPos:0,sliderSize:100,clickIncrement:5,onSliding:function(A){A=Math.round(A);if(A==this.sliderPos){return null}this.carea.onVSliding(A);return A}});radius.widget.addClass("ContentAreaVScroll",radius.widget.ContentAreaVScroll);radius.widget.ContentAreaHScroll=function(){radius.widget.HScrollBar.call(this)};radius.inherits(radius.widget.ContentAreaHScroll,radius.widget.HScrollBar);radius.extend(radius.widget.ContentAreaHScroll,{widgetType:"ContentAreaHScroll",name:"careah",config:{btns:{over:false,pres:false,width:14,height:15},track:{img1:{width:4,height:6},imgc:{width:1,height:6},img2:{width:5,height:6}},slider:{img1:{width:3,height:11},imgc:{width:1,height:11},img2:{width:4,height:11},imgcc:{width:9,height:11}}},autoResizeSlider:true,maxSliderPos:100,sliderPos:0,sliderSize:100,clickIncrement:5,onSliding:function(A){A=Math.round(A);if(A==this.sliderPos){return null}this.carea.onHSliding(A);return A}});radius.widget.addClass("ContentAreaHScroll",radius.widget.ContentAreaHScroll);dojo.provide("radius.widget.PullDown");dojo.provide("radius.widget.SimpleSelectBox");radius.widget.PullDown=function(){radius.widget.BaseWindow.call(this);this.selected={obj:null};this.entries={};this.convOptions=[];this.selectBox={obj:null};this._firstOpened=false};radius.inherits(radius.widget.PullDown,radius.widget.BaseWindow);radius.extend(radius.widget.PullDown,{widgetType:"PullDown",isControl:true,preCreate:function(){this.domNode=this.srcNode.ownerDocument.createElement("div");this.domNode.className="pullDownClass";this.domNode.innerHTML='<table border="0" cellpadding="0" cellspacing="0" style="width:100%;"><tbody><tr><td style="padding-left:2px; padding-right:1px;"><div class="pullDownTextClass" style="width:100%; height:100%; overflow:hidden;">&nbsp;</div></td><td style="padding:1px; width:12px;"><div></div></td></tr></tbody></table>';var A=this.domNode.firstChild.firstChild.firstChild;this.selectTextNode=A.childNodes.item(0).firstChild;this.dropBtnNode=A.childNodes.item(1).firstChild;this.srcNode.parentNode.replaceChild(this.domNode,this.srcNode);radius.widget.PullDown.superclass.preCreate.call(this)},fillInTemplate:function(){radius.widget.PullDown.superclass.fillInTemplate.call(this);radius.html.mergeNodeData(this.srcNode,this.domNode);radius.html.handleSelectionState(this.domNode,false)},postCreate:function(){this.dropBtn=radius.widget.create("ImageButton",{prefixPath:"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/sboxs/",pres:null,over:null,name:"simple",width:12,height:14},this.dropBtnNode);this.dropBtn.onClick=dojo.lang.hitch(this,"dropSelectBox");this.selectTextNode.onclick=dojo.lang.hitch(this,"dropSelectBox");this.converOptions();radius.image.fixPngChildNodes(this.domNode);radius.widget.PullDown.superclass.postCreate.call(this)},converOptions:function(){if((this.options instanceof Array)||(radius.typeOf(this.options)=="array")){var A=this.options.length;for(var C=0;C<A;++C){var B=this.convert(this.options[C]);this.convOptions.push(B);var D=B.id!=undefined?B.id:B.value;this.entries[D]=B;if(B.selected){this.selected.obj=B;this.selectTextNode.innerHTML=B.text}}}else{for(var C in this.options){var B=this.convert(C,this.options[C]);this.convOptions.push(B);var D=B.id!=undefined?B.id:B.value;this.entries[D]=B;if(B.selected){this.selected.obj=B;this.selectTextNode.innerHTML=B.text}}}},dropSelectBox:function(A){this._dropSelectBox()},_dropSelectBox:function(){if(!(this.convOptions.length>0)){return }var J=this.domNode.ownerDocument;if(!this.selectBox.obj){var I=J.createElement("div");J.body.appendChild(I);this.selectBox.obj=radius.widget.create("SimpleSelectBox",{width:this.width,height:this.pullDownHeight},I);this.selectBox.obj.onClick=dojo.lang.hitch(this,"onItemClick");this.selectBox.obj.options=this.convOptions}var H=J.parentWindow||J.defaultView;if(!this._firstOpened){this._firstOpened=true;this.selectBox.obj.open(0,0,H)}var C=H.innerHeight||J.documentElement.clientHeight||J.body.clientHeight;var F=radius.html.getScrollOffset(H);var G=dojo.style.getOuterHeight(this.domNode);var A=this.selectBox.obj.height;var E=dojo.style.getAbsoluteX(this.domNode,true),D=dojo.style.getAbsoluteY(this.domNode,true)+G;var B={top:F[1],bottom:F[1]+C};x=E+F[0];y=D+F[1];if(y+A>B.bottom){y-=G+A}if(y<B.top){y=D}this.selectBox.obj.open(x,y,H)},onLoaded:function(){radius.widget.PullDown.superclass.onLoaded.call(this);this.domNode.style.width=this.width+"px";this.domNode.style.height=this.height+"px";var A=dojo.style.getOuterWidth(this.selectTextNode);this.selectTextNode.style.width=A+"px";dojo.style.setContentWidth(this.selectTextNode,this.width-this.dropBtn.width-5)},onItemClick:function(A,B){if(A!=this.selected.obj){this.selectTextNode.innerHTML=A.text;this.selected.obj=A;if(this.onChanged){this.onChanged(this.selected.obj,B)}}},setSelectedText:function(A){this.selectTextNode.innerHTML=A},_clear:function(){this.selectTextNode.innerHTML="&nbsp;";this.selected.obj=null},change:function(C,B){if(radius.isNull(this.entries[C])){return }if(this.selectBox.obj){var A=this.selectBox.obj.change(C,B);if(C!=null){if(!B&&A){this.selectTextNode.innerHTML=A.text;this.selected.obj=A}}else{this._clear()}}else{if(C!=null){var A=this.entries[C];A.selected=true;this.selectTextNode.innerHTML=A.text;this.selected.obj=A}else{this._clear()}}},storeState:function(A){var B={selectBox:this.selectBox,entries:this.entries,convOptions:this.convOptions,text:this.selectTextNode.innerHTML,selected:this.selected};this.selected={obj:null};this.selectBox={obj:null};this.entries={};this.convOptions=[];this._firstOpened=false;this._clear();if(A){this.options=A;this.converOptions()}return B},restoreState:function(B){var A={selectBox:this.selectBox,entries:this.entries,convOptions:this.convOptions,text:this.selectTextNode.innerHTML,selected:this.selected};if(B){this.selectBox=B.selectBox;this.entries=B.entries;this.convOptions=B.convOptions;this.selected=B.selected;this.selectTextNode.innerHTML=B.text}this._firstOpened=false;return A}});radius.widget.addClass("PullDown",radius.widget.PullDown);radius.widget.SimpleSelectBox=function(){radius.widget.SimpleControl.call(this);this.entries={};this.selected=null};radius.inherits(radius.widget.SimpleSelectBox,radius.widget.SimpleControl);radius.extend(radius.widget.SimpleSelectBox,{widgetType:"SimpleSelectBox",selectBoxIndex:99999,_ismaked:false,_isresized:false,onClose:null,useCustomScrollBar:true,inputNode:null,preLoading:function(){radius.widget.SimpleSelectBox.superclass.preLoading.call(this)},fillInTemplate:function(A,B){dojo.html.prependClass(this.containerNode,"simpleSelectBoxContentClass");radius.widget.SimpleSelectBox.superclass.fillInTemplate.apply(this,arguments)},postCreate:function(A,D,C){this.containerNode.innerHTML='<div style="width:100%; height:100%; overflow:hidden;"></div>';radius.widget.SimpleSelectBox.superclass.postCreate.apply(this,arguments);if(this.domNode.ownerDocument!=document&&rim.env.Browser.ie){var B=this.tableNode;B.rows[0].style.display="none";B.rows[1].cells[1].style.display="none";B.rows[2].style.display="none";this.dontSizeContentHeight=true}this.disable=function(){}},show:function(){radius.widget.SimpleSelectBox.superclass.show.call(this);this.render()},open:function(A,D,B){this.windowObject=B;radius.widget.SimpleSelectBoxManager.opened(this,null,B);radius.image.fixPngChildNodes(this.domNode);if(!this._isresized){this.resizeTo(this.width,this.height)}this.show();if(!this._isresized){this.resizeTo(this.width,this.height);if(this.dontSizeContentHeight){this.contentNode.style.height="auto";this.tableNode.style.height="auto";var C=this;setTimeout(function(){C.tableNode.style.height="100%"},10)}this._isresized=true}this.domNode.style.zIndex=this.selectBoxIndex;this.setPos({x:A,y:D});this.x=A;this.y=D;if(this.contentArea){this.contentArea.update()}},close:function(){try{this.hide();if(this.onClose!=undefined&&this.onClose!=null&&dojo.lang.isFunction(this.onClose)){this.onClose()}}catch(A){}radius.widget.SimpleSelectBoxManager.closed(this)},render:function(){if(!this._ismaked){this._makeSelectBox()}},_makeSelectBox:function(){var E='<table border="0" cellpadding="0" cellspacing="0" style="width:100%;"><tbody>';var B=this.options.length;var C=null;for(var D=0;D<B;++D){var I=this.options[D];var A=I.id!=undefined?I.id:I.value;E+='<tr><td class="simpleSelectBoxTextClass '+(I.selected?"simpleSelectBoxItemSelClass":"simpleSelectBoxItemClass")+'" onclick="this.parentNode.parentNode.parentNode.onItemClick(this);" onmouseover="this.parentNode.parentNode.parentNode.onItemOver(this);" onmouseout="this.parentNode.parentNode.parentNode.onItemOut(this);" val="'+A+'">'+I.text+"</td></tr>";this.entries[A]=[I,D];if(I.selected){C=D}}E+="</tbody></table>";this.containerNode.firstChild.innerHTML=E;var F=this;var H=this.containerNode.firstChild.firstChild;H.onItemClick=function(J){F.onItemClick(J)};H.onItemOver=function(J){F.onItemOver(J)};H.onItemOut=function(J){F.onItemOut(J)};if(C!=null){this.selected=H.rows.item(C).firstChild}this.itemsTable=H;var G=dojo.style.getOuterHeight(this.containerNode.firstChild.firstChild);if(G<this.height){this.height=G+4}else{if(this.useCustomScrollBar){this.contentArea=radius.widget.create("ContentArea",{hscroll:null,vScrollMouseWheel:true},this.containerNode.firstChild);this.contentArea.update()}else{this.containerNode.firstChild.style.overflowY="auto";this.width+=10}}radius.html.handleSelectionState(this.domNode,false);this._ismaked=true},change:function(D,B){if(D){var A=this.entries[D];if(A&&A[1]!=this.selected){if(this.selected){this.selected.className="simpleSelectBoxTextClass simpleSelectBoxItemClass";var C=this.entries[this.selected.getAttribute("val")][0];C.selected=false}this.selected=this.itemsTable.rows.item(A[1]).firstChild;this.selected.className="simpleSelectBoxTextClass simpleSelectBoxItemSelClass";A[0].selected=true;if(B&&this.onClick){this.onClick(A[0])}return A[0]}}else{if(this.selected){this.selected.className="simpleSelectBoxTextClass simpleSelectBoxItemClass";var C=this.entries[this.selected.getAttribute("val")][0];C.selected=false}this.selected=null}return null},onItemOver:function(A){A.className="simpleSelectBoxTextClass simpleSelectBoxItemOverClass"},onItemOut:function(A){if(this.selected==A){this.selected.className="simpleSelectBoxTextClass simpleSelectBoxItemSelClass"}else{A.className="simpleSelectBoxTextClass simpleSelectBoxItemClass"}},onItemClick:function(B){if(this.selected!=B){var C=null;if(this.selected){this.selected.className="simpleSelectBoxTextClass simpleSelectBoxItemClass";var A=this.entries[this.selected.getAttribute("val")][0];A.selected=false;C=A}this.selected=B;this.selected.className="simpleSelectBoxTextClass simpleSelectBoxItemSelClass";var A=this.entries[B.getAttribute("val")][0];A.selected=true;if(this.onClick){this.onClick(A,C)}}this.close()},isPointInSelectBox:function(A,E){var D=radius.style.getAbsoluteX(this.domNode,this.domNode);if(A<D||A>D+this.width){return false}var C=radius.style.getAbsoluteY(this.domNode,this.domNode);var B=0;if(radius.isNotNull(this.inputNode)){B=20}if(E<C-B||E>C+this.height){return false}return true},highlight:function(A){this.onItemOver(A)},unHighlight:function(A){this.onItemOut(A)},unHighlightAll:function(){var A=this.itemsTable.rows.length;for(var B=0;B<A;++B){var C=this.itemsTable.rows.item(B).firstChild;this.unHighlight(C)}},scrollByRows:function(B){var A=20;if(this.isShowingCustomScrollBar()){this.vscroll.setSliderPos(this.vscroll.sliderPos+(A*B))}else{if(this.isShowingManualScrollBar()){this.contentNode.firstChild.scrollTop+=(A*B)}}},isShowingManualScrollBar:function(){if(dojo.style.getInnerHeight(this.itemsTable)>this.contentNode.scrollHeight){return true}return false},isShowingCustomScrollBar:function(){return radius.isNotNull(this.vscroll)},isShowingScrollBar:function(){if(this.useCustomScrollBar){return this.isShowingCustomScrollBar()}else{return this.isShowingManualScrollBar()}}});radius.widget.addClass("SimpleSelectBox",radius.widget.SimpleSelectBox);radius.widget.SimpleSelectBoxManager=new function(){this.currentSelectBox=null;radius.html.attachEventM(document,"onmousedown",this,"onClick",true);radius.html.attachEventM(window,"onscroll",this,"onClick",true);this.closed=function(A){if(this.currentSelectBox==A){this.currentSelectBox=null}};this.popOutsAttached={};this.opened=function(C,B,A){if(C==this.currentSelectBox){return }if(this.currentSelectBox){this.currentSelectBox.close()}this.currentSelectBox=C;if(A&&radius.isNull(this.popOutsAttached[A])&&A.document!=window.document){radius.html.attachEventM(A.document,"onmousedown",this,"onClick",true);radius.html.attachEventM(A,"onscroll",this,"onClick",true);this.popOutsAttached[A]=true}};this.onClick=function(C){if(!this.currentSelectBox||(this.currentSelectBox.windowObject&&this.currentSelectBox.windowObject.closed)){return }var B=radius.html.getScrollOffset(this.currentSelectBox.windowObject);var A=C.clientX+B[0];var D=C.clientY+B[1];if(this.currentSelectBox.isPointInSelectBox(A,D)){return }this.currentSelectBox.close()}};dojo.provide("radius.widget.SettingsWindow");radius.widget.PhotoDragMoveSource=function(B,A){dojo.dnd.HtmlDragSource.call(this,B,A)};radius.inherits(radius.widget.PhotoDragMoveSource,dojo.dnd.HtmlDragSource);radius.extend(radius.widget.PhotoDragMoveSource,{onDragStart:function(){var A=new radius.widget.PhotoDragMoveObject(this.dragObject,this.type,this.domNode);if(this.settWindow!=undefined&&this.settWindow){A.settWindow=this.settWindow}if(this.constrainToContainer){A.constrainTo(this.constrainingContainer)}return A}});radius.widget.PhotoDragMoveObject=function(C,A,B){dojo.dnd.HtmlDragObject.call(this,C,A);this.handlerNode=B};radius.widget.showErrorCodeMsg=function(B,D,A,E,C){if(C<(E-1)){radius.windows.openModalSimpleWindow({width:260,height:140,caption:"Unable to Save Profile",body:A[C],closeAction:dojo.lang.hitch(this,function(){setTimeout(function(){radius.widget.showErrorCodeMsg(B,D,A,E,C+1)},100)})})}else{radius.windows.openModalSimpleWindow({width:260,height:140,caption:"Unable to Save Profile",body:A[C],closeAction:dojo.lang.hitch(this,function(){radius.widget.fillAsterisks(B.failedAsterisks,D)})})}};radius.widget.fillAsterisks=function(C,D){var A=C.length;for(var B=0;B<A;++B){if(D==C[B][2]){C[B][0].className="setWinCaptTextClass setWinRequiredLabelClass";C[B][1].style.visibility="visible"}}};radius.inherits(radius.widget.PhotoDragMoveObject,dojo.dnd.HtmlDragObject);radius.extend(radius.widget.PhotoDragMoveObject,{onDragEnd:function(A){delete this.dragClone},onDragStart:function(A){dojo.html.clearSelection();this.dragClone=this.domNode;this.dragCloneSize={width:dojo.style.getInnerWidth(this.dragClone),height:dojo.style.getInnerHeight(this.dragClone)};this.handlerSize={width:dojo.style.getInnerWidth(this.handlerNode),height:dojo.style.getInnerHeight(this.handlerNode)};this.scrollOffset={top:dojo.html.getScrollTop(),left:dojo.html.getScrollLeft()};this.dragStartPosition={top:dojo.style.getAbsoluteY(this.domNode),left:dojo.style.getAbsoluteX(this.domNode)};this.dragOffset={top:this.dragStartPosition.top-A.clientY,left:this.dragStartPosition.left-A.clientX};if(this.domNode.parentNode.nodeName.toLowerCase()=="body"){this.parentPosition={top:0,left:0}}else{this.parentPosition={top:dojo.style.getAbsoluteY(this.domNode.parentNode,true),left:dojo.style.getAbsoluteX(this.domNode.parentNode,true)}}this.dragClone.style.position="absolute";if(this.constrainToContainer){this.constraints=this.getConstraints()}},onDragMove:function(D){this.updateDragOffset();var A=this.dragOffset.left+D.clientX-this.parentPosition.left;var G=this.dragOffset.top+D.clientY-this.parentPosition.top;if(this.constrainToContainer){if(A<this.constraints.minX){A=this.constraints.minX}if(G<this.constraints.minY){G=this.constraints.minY}if(A>this.constraints.maxX){A=this.constraints.maxX}if(G>this.constraints.maxY){G=this.constraints.maxY}}if(!this.disableY){this.dragClone.style.top=G+"px"}if(!this.disableX){this.dragClone.style.left=A+"px"}var F=10;if(A<F-this.dragCloneSize.width){A=F-this.dragCloneSize.width}if(G<F-this.dragCloneSize.height){G=F-this.dragCloneSize.height}if(A>this.handlerSize.width-F){A=this.handlerSize.width-F}if(G>this.handlerSize.height-F){G=this.handlerSize.height-F}if(this.settWindow!=undefined&&this.settWindow){var E=this.settWindow.panels.photos;var B=E.selectedPhoto[0].index;var C=E.photos[B];E.selectedPhoto[0].changed=true;E.selectedPhoto[0].style.left=parseInt(A/E.xz+1)+"px";E.selectedPhoto[0].style.top=parseInt(G/E.yz+1)+"px";C.leftOffset=A;C.topOffset=G;E.mainPhotoNode.style.left=A;E.mainPhotoNode.style.top=G;this.myicon=this.settWindow.myicon;if(this.myicon.index==E.selectedPhoto[0].index){this.myicon.style.left=parseInt(C.leftOffset/2-E.xz2)+"px";this.myicon.style.top=parseInt(C.topOffset/2-E.yz2)+"px"}this.settWindow.enableApplyBtn()}}});radius.widget.SimpleButton=function(C,B,D,A){this.node=C;this.id=C.id;this.pathToFace=B;this.faceImgType=D;this.onClickHandler=A;this.disabled=false;this.dis=radius.image.createImageNode();this.over=radius.image.createImageNode();this.pressed=radius.image.createImageNode();this.regular=radius.image.createImageNode();this.dis.src=this.pathToFace+"/dis."+this.faceImgType;this.over.src=this.pathToFace+"/over."+this.faceImgType;this.pressed.src=this.pathToFace+"/pres."+this.faceImgType;this.regular.src=this.pathToFace+"/reg."+this.faceImgType};dojo.lang.extend(radius.widget.SimpleButton,{mouseover:function(){if(!this.disabled){this.node.src=this.over.src}},mouseout:function(){if(!this.disabled){this.node.src=this.regular.src}},mousedown:function(){if(!this.disabled){this.node.src=this.pressed.src}},disable:function(){if(!this.disabled){this.disabled=true;this.node.src=this.dis.src}},enable:function(){if(this.disabled){this.disabled=false;this.node.src=this.regular.src}}});radius.widget.SettingsWindow=function(){radius.widget.DefaultWindow.call(this)};radius.inherits(radius.widget.SettingsWindow,radius.widget.DefaultWindow);radius.extend(radius.widget.SettingsWindow,{widgetType:"SettingsWindow",caption:(radiusIMTranslations.Msg179||"Settings"),allowResize:false,width:540,height:380,firstPos:true,selectedTab:null,tabClasNames:{},againFirstAction:false,panelParams:null,containTextInputs:true,reqOpenPanel:null,overrideBorder:{d_ul:{pos_class_prefix:"settings_d_ul"},d_u:{pos_class_prefix:"settings_d_u"},d_ur:{pos_class_prefix:"settings_d_ur"},d_l:{pos_class_prefix:"settings_d_l"},d_c:{pos_class_prefix:"settings_d_c"},d_r:{pos_class_prefix:"settings_d_r"},d_dl:{pos_class_prefix:"settings_d_dl"},d_d:{pos_class_prefix:"settings_d_d"},d_dr:{pos_class_prefix:"settings_d_dr"}},overrideCaptionIconName:"settings",d_dr:{style:"width:6px; height:30px; position:absolute; right:0px; bottom:0px",src:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_dr_6x30blue.png",src0:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_dr_6x30blue_out.png"},d_l:{dsize:29,style:"width:6px; height:1px; position:absolute; left:0px; top:23px",src:"http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_l_6x1blue.png",src0:"http://s5-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_l_6x1blue_out.png"},d_dl:{style:"width:6px; height:6px; position:absolute; left:0px; bottom:0px",src:"http://s0-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_dl_6x6blue.png",src0:"http://s1-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_dl_6x6blue_out.png"},d_r:{dsize:29,style:"width:6px; height:1px; position:absolute; right:0px; top:23px",src:"http://s2-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_r_6x1white.png",src0:"http://s3-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/wins/bb_r_6x1white_out.png"},d_c_maxb:null,panels:{general:{},privacy:{},photos:{},profile:{},account:{},desktopNotifier:{},widget:{}},PasswordAsterisks:"**********",SettingsError:{PhotoProfileNotSession:1,PhotoProfileNotLogic:2,PhotoProfileNotAuthorized:4,PhotoProfileNotMultipartContent:8,PhotoProfileNotStandardImage:16,PhotoProfileImageTooBig:32,PhotoProfileCountLimit:64,PhotoProfileImageNotFound:128,PhotoProfileSizeLimitExceeded:256,PhotoProfileServerInternalError:512,ProfileTownNotStandard:1,ProfileHeadlineNotStandard:2,ProfileCollegeNotStandard:4,ProfileHighSchoolNotStandard:16,ProfilePlacesNotStandard:32,ProfileMusicNotStandard:64,ProfileMoviesNotStandard:128,ProfileBooksNotStandard:256,ProfileLinksNotStandard:512,AccountPasswordNotStandard:1,AccountPasswordDoesNotMatch:2,AccountFirstNameNotStandard:4,AccountGenderNotStandard:8,AccountBirthdayNotStandard:16,AccountCountryNotStandard:32,AccountZipcodeNotStandard:64,AccountOver16AgeNotMatch:128,AccountEmailNotStandard:256,AccountEmailAlreadyUsed:512,AccountOldPasswordNotStandard:1024,AccountOldPasswordDoesNotMatch:2048,AccountPasswordLengthError:4096},PhotoBuildFlags:{Init:1,Add:2,Delete:3},PhotoURL:"http://s4-s3cdn.radiusim.com/hudson-PATCH-0.86.002/images/img",fillInTemplate:function(A,B){radius.widget.SettingsWindow.superclass.fillInTemplate.apply(this,arguments);this.attachNodes({settWinSaveBtnDomId:"saveBtnNode",settWinApplyBtnDomId:"applyBtnNode",settWinCancelBtnDomId:"cancelBtnNode",settWinPhotoPanRemoveBtnDomId:"photoPanRemoveBtnNode",settWinAccountPanSubmitBtnDomId:"accountPanSubmitBtnNode"})},hideSaveApplyAndCancel:function(){this.saveBtnWidget.hide();this.applyBtnWidget.hide();this.cancelBtnWidget.hide()},postCreate:function(A,E,C){this.topLeftUserIconImg=dojo.byId("settWinLeftTopUserIconDomId");this.saveBtnWidget=radius.widget.create("ImageButton",{widgetId:"settWinSaveBtnId",name:(radiusIMTranslations.img.save48x18||"save48x18"),width:48,height:18},this.saveBtnNode);this.applyBtnWidget=radius.widget.create("ImageButton",{widgetId:"settWinApplyBtnId",name:(radiusIMTranslations.img.apply48x18||"apply48x18"),dis:"png",width:48,height:18},this.applyBtnNode);this.applyBtnWidget.disable();this.cancelBtnWidget=radius.widget.create("ImageButton",{widgetId:"settWinCancelBtnId",name:(radiusIMTranslations.img.cancelTiny48x18||"cancelTiny48x18"),width:48,height:18},this.cancelBtnNode);this.saveBtnWidget.onClick=dojo.lang.hitch(this,"clickSaveBtn");this.applyBtnWidget.onClick=dojo.lang.hitch(this,"clickApplyBtn");this.cancelBtnWidget.onClick=dojo.lang.hitch(this,"clickCancelBtn");this.myicon=radius.windows.rosterWin.myPic;var D=this;function B(){D.panels.photos.removePhotoBtnWidget=radius.widget.create("ImageButton",{widgetId:"settWinRemovePhotoBtnId",name:(radiusIMTranslations.img.remove_red48x18||"remove_red48x18"),dis:"png",width:48,height:18},D.photoPanRemoveBtnNode);D.panels.photos.removePhotoBtnWidget.onClick=dojo.lang.hitch(D,"removePhoto")}this.panelParams={general:{name:"general",pan:this.panels.general,tab:dojo.byId("settWinGeneralTabDomId"),panel:dojo.byId("settWinGeneralPanelDomId"),firstAction:function(){if(D.panelParams.general.first==undefined||D.panelParams.general.first){D.panelParams.general.firstLoad();D.panelParams.general.first=false;D.fillGeneral()}},apply:function(){return D.applyGeneral()},failed:function(F){return D.failedGeneral(F)},firstLoad:function(){D.createGeneralPanel();D.panelParams.general.firstLoad=function(){return };return D.panelParams.general.firstLoad()}},privacy:{name:"privacy",pan:this.panels.privacy,tab:dojo.byId("settWinPrivacyTabDomId"),panel:dojo.byId("settWinPrivacyPanelDomId"),firstAction:function(){if(D.panelParams.privacy.first==undefined||D.panelParams.privacy.first){D.panelParams.privacy.firstLoad();D.panelParams.privacy.first=false;D.fillPrivacy()}},apply:function(){return D.applyPrivacy()},failed:function(F){return D.failedPrivacy(F)},firstLoad:function(){D.createPrivacyPanel();D.panelParams.privacy.firstLoad=function(){return };return D.panelParams.privacy.firstLoad()}},photos:{name:"photos",pan:this.panels.photos,tab:dojo.byId("settWinPhotosTabDomId"),panel:dojo.byId("settWinPhotosPanelDomId"),firstAction:function(){if(D.panelParams.photos.first==undefined||D.panelParams.photos.first){D.panelParams.photos.firstLoad();D.panelParams.photos.first=false;D.fillPhotos()}},apply:function(){return D.applyPhotos()},failed:function(F){return D.failedPhotos(F)},firstLoad:function(){D.createPhotosPanel();B();D.panelParams.photos.firstLoad=function(){return };return D.panelParams.photos.firstLoad()}},profile:{name:"profile",pan:this.panels.profile,tab:dojo.byId("settWinProfileTabDomId"),panel:dojo.byId("settWinProfilePanelDomId"),firstAction:function(){if(D.panelParams.profile.first==undefined||D.panelParams.profile.first){D.panelParams.profile.firstLoad();D.panelParams.profile.first=false;D.fillProfile()}},apply:function(){return D.applyProfile()},failed:function(F){return D.failedProfile(F)},firstLoad:function(){D.createProfilePanel();D.panelParams.profile.firstLoad=function(){return };return D.panelParams.profile.firstLoad()}},account:{name:"account",pan:this.panels.account,tab:dojo.byId("settWinAccountTabDomId"),panel:dojo.byId("settWinAccountPanelDomId"),firstAction:function(){if(D.panelParams.account.first==undefined||D.panelParams.account.first){D.panelParams.account.firstLoad();D.panelParams.account.first=false;D.fillAccount()}},apply:function(){return D.applyAccount()},failed:function(F){return D.failedAccount(F)},firstLoad:function(){D.createAccountPanel();D.panelParams.account.firstLoad=function(){return };return D.panelParams.account.firstLoad()}},desktopNotifier:{name:"desktopNotifier",pan:this.panels.desktopNotifier,tab:dojo.byId("settWinDesktopNotifierTabDomId"),panel:radius.config.yNotifierEnabled?dojo.byId("settWinYNotifierPanelDomId"):dojo.byId("settWinDesktopNotifierPanelDomId"),firstAction:function(){if(D.panelParams.desktopNotifier.first==undefined||D.panelParams.desktopNotifier.first){D.panelParams.desktopNotifier.firstLoad();D.panelParams.desktopNotifier.first=false;D.fillDesktopNotifier()}},apply:function(){return D.applyDesktopNotifier()},failed:function(F){return D.failedDesktopNotifier(F)},firstLoad:function(){D.createDesktopNotifierPanel();D.panelParams.desktopNotifier.firstLoad=function(){return };return D.panelParams.desktopNotifier.firstLoad()}},widget:{name:"widget",pan:this.panels.widget,tab:dojo.byId("settWinWidgetTabDomId"),panel:dojo.byId("settWinWidgetPanelDomId"),firstAction:function(){if(D.panelParams.widget.first==undefined||D.panelParams.widget.first){D.panelParams.widget.firstLoad();D.panelParams.widget.first=false;D.fillWidget()}},apply:function(){return D.applyWidget()},failed:function(F){return D.failedWidget(F)},firstLoad:function(){D.createWidgetPanel();D.panelParams.widget.firstLoad=function(){return };return D.panelParams.widget.firstLoad()}}};dojo.event.connect(this.panelParams.general.tab,"onclick",function(){D.showPanel(D.panelParams.general)});dojo.event.connect(this.panelParams.privacy.tab,"onclick",function(){D.showPanel(D.panelParams.privacy)});dojo.event.connect(this.panelParams.photos.tab,"onclick",function(){D.showPanel(D.panelParams.photos)});dojo.event.connect(this.panelParams.profile.tab,"onclick",function(){D.showPanel(D.panelParams.profile)});dojo.event.connect(this.panelParams.account.tab,"onclick",function(){D.showPanel(D.panelParams.account)});dojo.event.connect(this.panelParams.desktopNotifier.tab,"onclick",function(){D.showPanel(D.panelParams.desktopNotifier)});dojo.event.connect(this.panelParams.widget.tab,"onclick",function(){D.showPanel(D.panelParams.widget)});radius.widget.SettingsWindow.superclass.postCreate.apply(this,arguments)},delayPostCreate:function(A,D,B){this.createProfilePanel();this.createPhotosPanel();this.createAccountPanel();this.createDesktopNotifierPanel();this.createWidgetPanel();var C=this;this.panelParams={general:{name:"general",pan:this.panels.general,tab:dojo.byId("settWinGeneralTabDomId"),panel:dojo.byId("settWinGeneralPanelDomId"),firstAction:function(){if(C.panelParams.general.first==undefined||C.panelParams.general.first){C.panelParams.general.first=false;C.fillGeneral()}},apply:function(){return C.applyGeneral()},failed:function(E){return C.failedGeneral(E)}},privacy:{name:"privacy",pan:this.panels.privacy,tab:dojo.byId("settWinPrivacyTabDomId"),panel:dojo.byId("settWinPrivacyPanelDomId"),firstAction:function(){if(C.panelParams.privacy.first==undefined||C.panelParams.privacy.first){C.panelParams.privacy.first=false;C.fillPrivacy()}},apply:function(){return C.applyPrivacy()},failed:function(E){return C.failedPrivacy(E)}},photos:{name:"photos",pan:this.panels.photos,tab:dojo.byId("settWinPhotosTabDomId"),panel:dojo.byId("settWinPhotosPanelDomId"),firstAction:function(){if(C.panelParams.photos.first==undefined||C.panelParams.photos.first){C.panelParams.photos.first=false;C.fillPhotos()}},apply:function(){return C.applyPhotos()},failed:function(E){return C.failedPhotos(E)}},profile:{name:"profile",pan:this.panels.profile,tab:dojo.byId("settWinProfileTabDomId"),panel:dojo.byId("settWinProfilePanelDomId"),firstAction:function(){if(C.panelParams.profile.first==undefined||C.panelParams.profile.first){C.panelParams.profile.first=false;C.fillProfile()}},apply:function(){return C.applyProfile()},failed:function(E){return C.failedProfile(E)}},account:{name:"account",pan:this.panels.account,tab:dojo.byId("settWinAccountTabDomId"),panel:dojo.byId("settWinAccountPanelDomId"),firstAction:function(){if(C.panelParams.account.first==undefined||C.panelParams.account.first){C.panelParams.account.first=false;C.fillAccount()}},apply:function(){return C.applyAccount()},failed:function(E){return C.failedAccount(E)}},desktopNotifier:{name:"desktopNotifier",pan:this.panels.desktopNotifier,tab:dojo.byId("settWinDesktopNotifierTabDomId"),panel:dojo.byId("settWinDesktopNotifierPanelDomId"),firstAction:function(){if(C.panelParams.desktopNotifier.first==undefined||C.panelParams.desktopNotifier.first){C.panelParams.desktopNotifier.first=false;C.fillDesktopNotifier()}},apply:function(){return C.applyDesktopNotifier()},failed:function(E){return C.failedDesktopNotifier(E)}},widget:{name:"widget",pan:this.panels.widget,tab:dojo.byId("settWinWidgetTabDomId"),panel:dojo.byId("settWinWidgetPanelDomId"),firstAction:function(){if(C.panelParams.wid