if(typeof wlpdj04=="undefined"){var wlpdj04_global=this;var wlpdj04_currentContext=this;function wlpdj04_undef(B,A){return(typeof (A||wlpdj04_currentContext)[B]=="undefined");}if(wlpdj04_undef("wlpdj04Config",this)){var wlpdj04Config={};}if(wlpdj04_undef("wlpdj04",this)){var wlpdj04={};}wlpdj04.global=function(){return wlpdj04_currentContext;};wlpdj04.locale=wlpdj04Config.locale;wlpdj04.version={major:0,minor:4,patch:3,flag:"",revision:Number("$Rev: 8617 $".match(/[0-9]+/)[0]),toString:function(){with(wlpdj04.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};wlpdj04.evalProp=function(B,A,C){if((!A)||(!B)){return undefined;}if(!wlpdj04_undef(B,A)){return A[B];}return(C?(A[B]={}):undefined);};wlpdj04.parseObjPath=function(G,E,D){var B=(E||wlpdj04.global());var F=G.split(".");var H=F.pop();for(var C=0,A=F.length;C<A&&B;C++){B=wlpdj04.evalProp(F[C],B,D);}return{obj:B,prop:H};};wlpdj04.evalObjPath=function(C,A){if(typeof C!="string"){return wlpdj04.global();}if(C.indexOf(".")==-1){return wlpdj04.evalProp(C,wlpdj04.global(),A);}var B=wlpdj04.parseObjPath(C,wlpdj04.global(),A);if(B){return wlpdj04.evalProp(B.prop,B.obj,A);}return null;};wlpdj04.errorToString=function(A){if(!wlpdj04_undef("message",A)){return A.message;}else{if(!wlpdj04_undef("description",A)){return A.description;}else{return A;}}};wlpdj04.raise=function(B,A){if(A){B=B+": "+wlpdj04.errorToString(A);}else{B=wlpdj04.errorToString(B);}try{if(wlpdj04Config.isDebug){wlpdj04.hostenv.println("FATAL exception raised: "+B);}}catch(C){}throw A||Error(B);};wlpdj04.debug=function(){};wlpdj04.debugShallow=function(A){};wlpdj04.profile={start:function(){},end:function(){},stop:function(){},dump:function(){}};function wlpdj04_eval(scriptFragment){return wlpdj04_global.eval?wlpdj04_global.eval(scriptFragment):eval(scriptFragment);}wlpdj04.unimplemented=function(B,A){var C="'"+B+"' not implemented";if(A!=null){C+=" "+A;}wlpdj04.raise(C);};wlpdj04.deprecated=function(D,A,B){var C="DEPRECATED: "+D;if(A){C+=" "+A;}if(B){C+=" -- will be removed in version: "+B;}wlpdj04.debug(C);};wlpdj04.render=(function(){function A(B,E){var D={capable:false,support:{builtin:false,plugin:false},prefixes:B};for(var C=0;C<E.length;C++){D[E[C]]=false;}return D;}return{name:"",ver:wlpdj04.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"])};})();wlpdj04.hostenv=(function(){var A={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};if(typeof wlpdj04Config=="undefined"){wlpdj04Config=A;}else{for(var B in A){if(typeof wlpdj04Config[B]=="undefined"){wlpdj04Config[B]=A[B];}}}return{name_:"(unset)",version_:"(unset)",getName:function(){return this.name_;},getVersion:function(){return this.version_;},getText:function(C){wlpdj04.unimplemented("getText","uri="+C);}};})();wlpdj04.hostenv.getBaseScriptUri=function(){if(wlpdj04Config.baseScriptUri.length){return wlpdj04Config.baseScriptUri;}var B=new String(wlpdj04Config.libraryScriptUri||wlpdj04Config.baseRelativePath);if(!B){wlpdj04.raise("Nothing returned by getLibraryScriptUri(): "+B);}var A=B.lastIndexOf("/");wlpdj04Config.baseScriptUri=wlpdj04Config.baseRelativePath;return wlpdj04Config.baseScriptUri;};(function(){var A={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{wlpdj04:{name:"wlpdj04",value:"src"}},setModulePrefix:function(C,D){this.modulePrefixes_[C]={name:C,value:D};},moduleHasPrefix:function(C){var D=this.modulePrefixes_;return Boolean(D[C]&&D[C].value);},getModulePrefix:function(C){if(this.moduleHasPrefix(C)){return this.modulePrefixes_[C].value;}return C;},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};for(var B in A){wlpdj04.hostenv[B]=A[B];}})();wlpdj04.hostenv.loadPath=function(E,B,A){var C;if(E.charAt(0)=="/"||E.match(/^\w+:/)){C=E;}else{C=this.getBaseScriptUri()+E;}if(wlpdj04Config.cacheBust&&wlpdj04.render.html.capable){C+="?"+String(wlpdj04Config.cacheBust).replace(/\W+/g,"");}try{return !B?this.loadUri(C,A):this.loadUriAndCheck(C,B,A);}catch(D){wlpdj04.debug(D);return false;}};wlpdj04.hostenv.loadUri=function(C,A){if(this.loadedUris[C]){return true;}var B=this.getText(C,null,true);if(!B){return false;}this.loadedUris[C]=true;if(A){B="("+B+")";}var D=wlpdj04_eval(B);if(A){A(D);}return true;};wlpdj04.hostenv.loadUriAndCheck=function(D,B,A){var C=true;try{C=this.loadUri(D,A);}catch(E){wlpdj04.debug("failed loading ",D," with error: ",E);}return Boolean(C&&this.findModule(B,false));};wlpdj04.loaded=function(){};wlpdj04.unloaded=function(){};wlpdj04.hostenv.loaded=function(){this.loadNotifying=true;this.post_load_=true;var B=this.modulesLoadedListeners;for(var A=0;A<B.length;A++){B[A]();}this.modulesLoadedListeners=[];this.loadNotifying=false;wlpdj04.loaded();};wlpdj04.hostenv.unloaded=function(){var A=this.unloadListeners;while(A.length){(A.pop())();}wlpdj04.unloaded();};wlpdj04.addOnLoad=function(C,B){var A=wlpdj04.hostenv;if(arguments.length==1){A.modulesLoadedListeners.push(C);}else{if(arguments.length>1){A.modulesLoadedListeners.push(function(){C[B]();});}}if(A.post_load_&&A.inFlightCount==0&&!A.loadNotifying){A.callLoaded();}};wlpdj04.addOnUnload=function(C,B){var A=wlpdj04.hostenv;if(arguments.length==1){A.unloadListeners.push(C);}else{if(arguments.length>1){A.unloadListeners.push(function(){C[B]();});}}};wlpdj04.hostenv.modulesLoaded=function(){if(this.post_load_){return ;}if(this.loadUriStack.length==0&&this.getTextStack.length==0){if(this.inFlightCount>0){wlpdj04.debug("files still in flight!");return ;}wlpdj04.hostenv.callLoaded();}};wlpdj04.hostenv.callLoaded=function(){if(typeof setTimeout=="object"||(wlpdj04Config["useXDomain"]&&wlpdj04.render.html.opera)){setTimeout("wlpdj04.hostenv.loaded();",0);}else{wlpdj04.hostenv.loaded();}};wlpdj04.hostenv.getModuleSymbols=function(B){var E=B.split(".");for(var A=E.length;A>0;A--){var D=E.slice(0,A).join(".");if((A==1)&&!this.moduleHasPrefix(D)){E[0]="../"+E[0];}else{var C=this.getModulePrefix(D);if(C!=D){E.splice(0,A,C);break;}}}return E;};wlpdj04.hostenv._global_omit_module_check=false;wlpdj04.hostenv.loadModule=function(A,D,G){if(!A){return ;}G=this._global_omit_module_check||G;var B=this.findModule(A,false);if(B){return B;}if(wlpdj04_undef(A,this.loading_modules_)){this.addedToLoadingCount.push(A);}this.loading_modules_[A]=1;var E=A.replace(/\./g,"/")+".js";var I=A.split(".");var C=this.getModuleSymbols(A);var K=((C[0].charAt(0)!="/")&&!C[0].match(/^\w+:/));var J=C[C.length-1];var H;if(J=="*"){A=I.slice(0,-1).join(".");while(C.length){C.pop();C.push(this.pkgFileName);E=C.join("/")+".js";if(K&&E.charAt(0)=="/"){E=E.slice(1);}H=this.loadPath(E,!G?A:null);if(H){break;}C.pop();}}else{E=C.join("/")+".js";A=I.join(".");var F=!G?A:null;H=this.loadPath(E,F);if(!H&&!D){C.pop();while(C.length){E=C.join("/")+".js";H=this.loadPath(E,F);if(H){break;}C.pop();E=C.join("/")+"/"+this.pkgFileName+".js";if(K&&E.charAt(0)=="/"){E=E.slice(1);}H=this.loadPath(E,F);if(H){break;}}}if(!H&&!G){wlpdj04.raise("Could not load '"+A+"'; last tried '"+E+"'");}}if(!G&&!this["isXDomain"]){B=this.findModule(A,false);if(!B){wlpdj04.raise("symbol '"+A+"' is not defined after loading '"+E+"'");}}return B;};wlpdj04.hostenv.startPackage=function(B){var C=String(B);var A=C;var E=B.split(/\./);if(E[E.length-1]=="*"){E.pop();A=E.join(".");}var D=wlpdj04.evalObjPath(A,true);this.loaded_modules_[C]=D;this.loaded_modules_[A]=D;return D;};wlpdj04.hostenv.findModule=function(A,C){var B=String(A);if(this.loaded_modules_[B]){return this.loaded_modules_[B];}if(C){wlpdj04.raise("no loaded module named '"+A+"'");}return null;};wlpdj04.kwCompoundRequire=function(E){var C=E["common"]||[];var B=E[wlpdj04.hostenv.name_]?C.concat(E[wlpdj04.hostenv.name_]||[]):C.concat(E["default"]||[]);for(var A=0;A<B.length;A++){var D=B[A];if(D.constructor==Array){wlpdj04.hostenv.loadModule.apply(wlpdj04.hostenv,D);}else{wlpdj04.hostenv.loadModule(D);}}};wlpdj04.require=function(A){wlpdj04.hostenv.loadModule.apply(wlpdj04.hostenv,arguments);};wlpdj04.requireIf=function(E,D){var C=arguments[0];if((C===true)||(C=="common")||(C&&wlpdj04.render[C].capable)){var A=[];for(var B=1;B<arguments.length;B++){A.push(arguments[B]);}wlpdj04.require.apply(wlpdj04,A);}};wlpdj04.requireAfterIf=wlpdj04.requireIf;wlpdj04.provide=function(A){return wlpdj04.hostenv.startPackage.apply(wlpdj04.hostenv,arguments);};wlpdj04.registerModulePath=function(A,B){return wlpdj04.hostenv.setModulePrefix(A,B);};if(wlpdj04Config["modulePaths"]){for(var param in wlpdj04Config["modulePaths"]){wlpdj04.registerModulePath(param,wlpdj04Config["modulePaths"][param]);}}wlpdj04.setModulePrefix=function(A,B){wlpdj04.deprecated('wlpdj04.setModulePrefix("'+A+'", "'+B+'")',"replaced by wlpdj04.registerModulePath","0.5");return wlpdj04.registerModulePath(A,B);};wlpdj04.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;};wlpdj04.hostenv.normalizeLocale=function(B){var A=B?B.toLowerCase():wlpdj04.locale;if(A=="root"){A="ROOT";}return A;};wlpdj04.hostenv.searchLocalePath=function(H,I,C){H=wlpdj04.hostenv.normalizeLocale(H);var A=H.split("-");var B=[];for(var E=A.length;E>0;E--){B.push(A.slice(0,E).join("-"));}B.push(false);if(I){B.reverse();}for(var D=B.length-1;D>=0;D--){var F=B[D]||"ROOT";var G=C(F);if(G){break;}}};wlpdj04.hostenv.localesGenerated;wlpdj04.hostenv.registerNlsPrefix=function(){wlpdj04.registerModulePath("nls","nls");};wlpdj04.hostenv.preloadLocalizations=function(){if(wlpdj04.hostenv.localesGenerated){wlpdj04.hostenv.registerNlsPrefix();function B(D){D=wlpdj04.hostenv.normalizeLocale(D);wlpdj04.hostenv.searchLocalePath(D,true,function(F){for(var E=0;E<wlpdj04.hostenv.localesGenerated.length;E++){if(wlpdj04.hostenv.localesGenerated[E]==F){wlpdj04["require"]("nls.wlpdj04_"+F);return true;}}return false;});}B();var A=wlpdj04Config.extraLocale||[];for(var C=0;C<A.length;C++){B(A[C]);}}wlpdj04.hostenv.preloadLocalizations=function(){};};wlpdj04.requireLocalization=function(A,B,O,K){wlpdj04.hostenv.preloadLocalizations();var H=wlpdj04.hostenv.normalizeLocale(O);var E=[A,"nls",B].join(".");var D="";if(K){var N=K.split(",");for(var I=0;I<N.length;I++){if(H.indexOf(N[I])==0){if(N[I].length>D.length){D=N[I];}}}if(!D){D="ROOT";}}var L=K?D:H;var Q=wlpdj04.hostenv.findModule(E);var C=null;if(Q){if(wlpdj04Config.localizationComplete&&Q._built){return ;}var G=L.replace("-","_");var M=E+"."+G;C=wlpdj04.hostenv.findModule(M);}if(!C){Q=wlpdj04.hostenv.startPackage(E);var F=wlpdj04.hostenv.getModuleSymbols(A);var J=F.concat("nls").join("/");var P;wlpdj04.hostenv.searchLocalePath(L,K,function(V){var W=V.replace("-","_");var U=E+"."+W;var S=false;if(!wlpdj04.hostenv.findModule(U)){wlpdj04.hostenv.startPackage(U);var T=[J];if(V!="ROOT"){T.push(V);}T.push(B);var R=T.join("/")+".js";S=wlpdj04.hostenv.loadPath(R,null,function(Z){var Y=function(){};Y.prototype=P;Q[W]=new Y();for(var X in Z){Q[W][X]=Z[X];}});}else{S=true;}if(S&&Q[W]){P=Q[W];}else{Q[W]=P;}if(K){return true;}});}if(K&&H!=D){Q[H.replace("-","_")]=Q[D.replace("-","_")];}};(function(){var A=wlpdj04Config.extraLocale;if(A){if(!A instanceof Array){A=[A];}var B=wlpdj04.requireLocalization;wlpdj04.requireLocalization=function(E,D,C,G){B(E,D,C,G);if(C){return ;}for(var F=0;F<A.length;F++){B(E,D,A[F],G);}};}})();wlpdj04.hostenv.resetXd=function(){this.isXDomain=wlpdj04Config.useXDomain||false;this.xdTimer=0;this.xdInFlight={};this.xdOrderedReqs=[];this.xdDepMap={};this.xdContents=[];this.xdDefList=[];};wlpdj04.hostenv.resetXd();wlpdj04.hostenv.createXdPackage=function(contents,resourceName,resourcePath){var deps=[];var depRegExp=/wlpdj04.(requireLocalization|require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;var match;while((match=depRegExp.exec(contents))!=null){if(match[1]=="requireLocalization"){eval(match[0]);}else{deps.push('"'+match[1]+'", '+match[2]);}}var output=[];output.push("wlpdj04.hostenv.packageLoaded({\n");if(deps.length>0){output.push("depends: [");for(var i=0;i<deps.length;i++){if(i>0){output.push(",\n");}output.push("["+deps[i]+"]");}output.push("],");}output.push("\ndefinePackage: function(wlpdj04){");output.push(contents);output.push("\n}, resourceName: '"+resourceName+"', resourcePath: '"+resourcePath+"'});");return output.join("");};wlpdj04.hostenv.loadPath=function(H,C,A){var B=H.indexOf(":");var F=H.indexOf("/");var E;var D=false;if(B>0&&B<F){E=H;this.isXDomain=D=true;}else{E=this.getBaseScriptUri()+H;B=E.indexOf(":");F=E.indexOf("/");if(B>0&&B<F&&(!location.host||E.indexOf("http://"+location.host)!=0)){this.isXDomain=D=true;}}if(wlpdj04Config.cacheBust&&wlpdj04.render.html.capable){E+="?"+String(wlpdj04Config.cacheBust).replace(/\W+/g,"");}try{return((!C||this.isXDomain)?this.loadUri(E,A,D,C):this.loadUriAndCheck(E,C,A));}catch(G){wlpdj04.debug(G);return false;}};wlpdj04.hostenv.loadUri=function(B,D,G,A){if(this.loadedUris[B]){return 1;}if(this.isXDomain&&A){if(B.indexOf("__package__")!=-1){A+=".*";}this.xdOrderedReqs.push(A);if(G||B.indexOf("/nls/")==-1){this.xdInFlight[A]=true;this.inFlightCount++;}if(!this.xdTimer){this.xdTimer=setInterval("wlpdj04.hostenv.watchInFlightXDomain();",100);}this.xdStartTime=(new Date()).getTime();}if(G){var F=B.lastIndexOf(".");if(F<=0){F=B.length-1;}var I=B.substring(0,F)+".xd";if(F!=B.length-1){I+=B.substring(F,B.length);}var E=document.createElement("script");E.type="text/javascript";E.src=I;if(!this.headElement){this.headElement=document.getElementsByTagName("head")[0];if(!this.headElement){this.headElement=document.getElementsByTagName("html")[0];}}this.headElement.appendChild(E);}else{var C=this.getText(B,null,true);if(C==null){return 0;}if(this.isXDomain&&B.indexOf("/nls/")==-1){var H=this.createXdPackage(C,A,B);wlpdj04_eval(H);}else{if(D){C="("+C+")";}var J=wlpdj04_eval(C);if(D){D(J);}}}this.loadedUris[B]=true;return 1;};wlpdj04.hostenv.packageLoaded=function(I){var M=I.depends;var L=null;var H=null;var A=[];if(M&&M.length>0){var K=null;var G=0;var C=false;for(var B=0;B<M.length;B++){K=M[B];if(K[0]=="provide"||K[0]=="hostenv.moduleLoaded"){A.push(K[1]);}else{if(!L){L=[];}if(!H){H=[];}var J=this.unpackXdDependency(K);if(J.requires){L=L.concat(J.requires);}if(J.requiresAfter){H=H.concat(J.requiresAfter);}}var F=K[0];var E=F.split(".");if(E.length==2){wlpdj04[E[0]][E[1]].apply(wlpdj04[E[0]],K.slice(1));}else{wlpdj04[F].apply(wlpdj04,K.slice(1));}}var D=this.xdContents.push({content:I.definePackage,resourceName:I["resourceName"],resourcePath:I["resourcePath"],isDefined:false})-1;for(var B=0;B<A.length;B++){this.xdDepMap[A[B]]={requires:L,requiresAfter:H,contentIndex:D};}for(var B=0;B<A.length;B++){this.xdInFlight[A[B]]=false;}}};wlpdj04.hostenv.xdLoadFlattenedBundle=function(A,B,I,G){I=I||"root";var F=wlpdj04.hostenv.normalizeLocale(I).replace("-","_");var D=[A,"nls",B].join(".");var J=wlpdj04.hostenv.startPackage(D);J[F]=G;var H=[A,F,B].join(".");var C=wlpdj04.hostenv.xdBundleMap[H];if(C){for(var E in C){J[E]=G;}}};wlpdj04.hostenv.xdBundleMap={};wlpdj04.xdRequireLocalization=function(A,B,L,I){var D=I.split(",");var G=wlpdj04.hostenv.normalizeLocale(L);var F="";for(var H=0;H<D.length;H++){if(G.indexOf(D[H])==0){if(D[H].length>F.length){F=D[H];}}}var K=F.replace("-","_");var E=wlpdj04.evalObjPath([A,"nls",B].join("."));if(E&&E[K]){bundle[G.replace("-","_")]=E[K];}else{var J=[A,(K||"root"),B].join(".");var C=wlpdj04.hostenv.xdBundleMap[J];if(!C){C=wlpdj04.hostenv.xdBundleMap[J]={};}C[G.replace("-","_")]=true;wlpdj04.require(A+".nls"+(F?"."+F:"")+"."+B);}};(function(){var A=wlpdj04Config.extraLocale;if(A){if(!A instanceof Array){A=[A];}wlpdj04._xdReqLoc=wlpdj04.xdRequireLocalization;wlpdj04.xdRequireLocalization=function(D,C,B,E){wlpdj04._xdReqLoc(D,C,B,E);if(B){return ;}for(var F=0;F<A.length;F++){wlpdj04._xdReqLoc(D,C,A[F],E);}};}})();wlpdj04.hostenv.unpackXdDependency=function(D){var C=null;var B=null;switch(D[0]){case"requireIf":case"requireAfterIf":case"conditionalRequire":if((D[1]===true)||(D[1]=="common")||(D[1]&&wlpdj04.render[D[1]].capable)){C=[{name:D[2],content:null}];}break;case"requireAll":D.shift();C=D;wlpdj04.hostenv.flattenRequireArray(C);break;case"kwCompoundRequire":case"hostenv.conditionalLoadModule":var E=D[1];var A=E["common"]||[];var C=(E[wlpdj04.hostenv.name_])?A.concat(E[wlpdj04.hostenv.name_]||[]):A.concat(E["default"]||[]);wlpdj04.hostenv.flattenRequireArray(C);break;case"require":case"requireAfter":case"hostenv.loadModule":C=[{name:D[1],content:null}];break;}if(D[0]=="requireAfterIf"||D[0]=="requireIf"){B=C;C=null;}return{requires:C,requiresAfter:B};};wlpdj04.hostenv.xdWalkReqs=function(){var C=null;var B;for(var A=0;A<this.xdOrderedReqs.length;A++){B=this.xdOrderedReqs[A];if(this.xdDepMap[B]){C=[B];C[B]=true;this.xdEvalReqs(C);}}};wlpdj04.hostenv.xdEvalReqs=function(H){while(H.length>0){var G=H[H.length-1];var C=this.xdDepMap[G];if(C){var B=C.requires;if(B&&B.length>0){var A;for(var D=0;D<B.length;D++){A=B[D].name;if(A&&!H[A]){H.push(A);H[A]=true;this.xdEvalReqs(H);}}}var F=this.xdContents[C.contentIndex];if(!F.isDefined){var E=F.content;E["resourceName"]=F["resourceName"];E["resourcePath"]=F["resourcePath"];this.xdDefList.push(E);F.isDefined=true;}this.xdDepMap[G]=null;var B=C.requiresAfter;if(B&&B.length>0){var A;for(var D=0;D<B.length;D++){A=B[D].name;if(A&&!H[A]){H.push(A);H[A]=true;this.xdEvalReqs(H);}}}}H.pop();}};wlpdj04.hostenv.clearXdInterval=function(){clearInterval(this.xdTimer);this.xdTimer=0;};wlpdj04.hostenv.watchInFlightXDomain=function(){var G=(wlpdj04Config.xdWaitSeconds||15)*1000;if(this.xdStartTime+G<(new Date()).getTime()){this.clearXdInterval();var F="";for(var E in this.xdInFlight){if(this.xdInFlight[E]){F+=E+" ";}}wlpdj04.raise("Could not load cross-domain packages: "+F);}for(var E in this.xdInFlight){if(this.xdInFlight[E]){return ;}}this.clearXdInterval();this.xdWalkReqs();var A=this.xdDefList.length;for(var B=0;B<A;B++){var C=wlpdj04.hostenv.xdDefList[B];if(wlpdj04Config["debugAtAllCosts"]&&C["resourceName"]){if(!this["xdDebugQueue"]){this.xdDebugQueue=[];}this.xdDebugQueue.push({resourceName:C.resourceName,resourcePath:C.resourcePath});}else{C(wlpdj04);}}for(var B=0;B<this.xdContents.length;B++){var D=this.xdContents[B];if(D.content&&!D.isDefined){D.content(wlpdj04);}}this.resetXd();if(this["xdDebugQueue"]&&this.xdDebugQueue.length>0){this.xdDebugFileLoaded();}else{this.xdNotifyLoaded();}};wlpdj04.hostenv.xdNotifyLoaded=function(){this.inFlightCount=0;if(this._djInitFired&&!this.loadNotifying){this.callLoaded();}};wlpdj04.hostenv.flattenRequireArray=function(B){if(B){for(var A=0;A<B.length;A++){if(B[A] instanceof Array){B[A]={name:B[A][0],content:null};}else{B[A]={name:B[A],content:null};}}}};wlpdj04.hostenv.xdHasCalledPreload=false;wlpdj04.hostenv.xdRealCallLoaded=wlpdj04.hostenv.callLoaded;wlpdj04.hostenv.callLoaded=function(){if(this.xdHasCalledPreload||wlpdj04.hostenv.getModulePrefix("wlpdj04")=="src"||!this.localesGenerated){this.xdRealCallLoaded();}else{if(this.localesGenerated){this.registerNlsPrefix=function(){wlpdj04.registerModulePath("nls",wlpdj04.hostenv.getModulePrefix("wlpdj04")+"/../nls");};this.preloadLocalizations();}}this.xdHasCalledPreload=true;};}if(typeof window!="undefined"){(function(){if(wlpdj04Config.allowQueryConfig){var baseUrl=document.location.toString();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)=="wlpdj04Config.")){var opt=sp[0].substr(9);try{wlpdj04Config[opt]=eval(sp[1]);}catch(e){wlpdj04Config[opt]=sp[1];}}}}}if(((wlpdj04Config["baseScriptUri"]=="")||(wlpdj04Config["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){var scripts=document.getElementsByTagName("script");var rePkg=/(__package__|wlpdj04|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){var root=src.substring(0,m.index);if(src.indexOf("bootstrap1")>-1){root+="../";}if(!this["wlpdj04Config"]){wlpdj04Config={};}if(wlpdj04Config["baseScriptUri"]==""){wlpdj04Config["baseScriptUri"]=root;}if(wlpdj04Config["baseRelativePath"]==""){wlpdj04Config["baseRelativePath"]=root;}break;}}}var dr=wlpdj04.render;var drh=wlpdj04.render.html;var drs=wlpdj04.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;drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;var cm=document["compatMode"];drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;wlpdj04.locale=wlpdj04.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();dr.vml.capable=drh.ie;drs.capable=f;drs.support.plugin=f;drs.support.builtin=f;var tdoc=window["document"];var tdi=tdoc["implementation"];if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){drs.capable=t;drs.support.builtin=t;drs.support.plugin=f;}if(drh.safari){var tmp=dua.split("AppleWebKit/")[1];var ver=parseFloat(tmp.split(" ")[0]);if(ver>=420){drs.capable=t;drs.support.builtin=t;drs.support.plugin=f;}}else{}})();wlpdj04.hostenv.startPackage("wlpdj04.hostenv");wlpdj04.render.name=wlpdj04.hostenv.name_="browser";wlpdj04.hostenv.searchIds=[];wlpdj04.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];wlpdj04.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=wlpdj04.hostenv._XMLHTTP_PROGIDS[C];try{A=new ActiveXObject(B);}catch(D){E=D;}if(A){wlpdj04.hostenv._XMLHTTP_PROGIDS=[B];break;}}}if(!A){return wlpdj04.raise("XMLHTTP not available",E);}return A;};wlpdj04.hostenv._blockAsync=false;wlpdj04.hostenv.getText=function(C,G,B){if(!G){this._blockAsync=true;}var J=this.getXmlhttpObject();function E(L){var M=L["status"];return Boolean((!M)||((200<=M)&&(300>M))||(M==304));}if(G){var F=this,A=null,I=wlpdj04.global();var K=wlpdj04.evalObjPath("wlpdj04.io.XMLHTTPTransport");J.onreadystatechange=function(){if(A){I.clearTimeout(A);A=null;}if(F._blockAsync||(K&&K._blockAsync)){A=I.setTimeout(function(){J.onreadystatechange.apply(this);},10);}else{if(4==J.readyState){if(E(J)){G(J.responseText);}}}};}J.open("GET",C,G?true:false);try{J.send(null);if(G){return null;}if(!E(J)){var D=Error("Unable to load "+C+" status:"+J.status);D.status=J.status;D.responseText=J.responseText;throw D;}}catch(H){this._blockAsync=false;if((B)&&(!G)){return null;}else{throw H;}}this._blockAsync=false;return J.responseText;};wlpdj04.hostenv.defaultDebugContainerId="wlpdj04Debug";wlpdj04.hostenv._println_buffer=[];wlpdj04.hostenv._println_safe=false;wlpdj04.hostenv.println=function(A){if(!wlpdj04.hostenv._println_safe){wlpdj04.hostenv._println_buffer.push(A);}else{try{var B=document.getElementById(wlpdj04Config.debugContainerId?wlpdj04Config.debugContainerId:wlpdj04.hostenv.defaultDebugContainerId);if(!B){B=wlpdj04.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;}}}};wlpdj04.addOnLoad(function(){wlpdj04.hostenv._println_safe=true;while(wlpdj04.hostenv._println_buffer.length>0){wlpdj04.hostenv.println(wlpdj04.hostenv._println_buffer.shift());}});function wlpdj04_addNodeEvtHdlr(C,D,A){var B=C["on"+D]||function(){};C["on"+D]=function(){A.apply(C,arguments);B.apply(C,arguments);};return true;}wlpdj04.hostenv._djInitFired=false;function wlpdj04_load_init(B){wlpdj04.hostenv._djInitFired=true;var A=(B&&B.type)?B.type.toLowerCase():"load";if(arguments.callee.initialized||(A!="domcontentloaded"&&A!="load")){return ;}arguments.callee.initialized=true;if(typeof (_timer)!="undefined"){clearInterval(_timer);delete _timer;}var C=function(){if(wlpdj04.render.html.ie){wlpdj04.hostenv.makeWidgets();}};if(wlpdj04.hostenv.inFlightCount==0){C();wlpdj04.hostenv.modulesLoaded();}else{wlpdj04.hostenv.modulesLoadedListeners.unshift(C);}}if(document.addEventListener){if(wlpdj04.render.html.opera||(wlpdj04.render.html.moz&&(wlpdj04Config["enableMozDomContentLoaded"]===true))){document.addEventListener("DOMContentLoaded",wlpdj04_load_init,null);}window.addEventListener("load",wlpdj04_load_init,null);}if(wlpdj04.render.html.ie&&wlpdj04.render.os.win){document.attachEvent("onreadystatechange",function(A){if(document.readyState=="complete"){wlpdj04_load_init();}});}if(/(WebKit|khtml)/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){wlpdj04_load_init();}},10);}if(wlpdj04.render.html.ie){wlpdj04_addNodeEvtHdlr(window,"beforeunload",function(){wlpdj04.hostenv._unloading=true;window.setTimeout(function(){wlpdj04.hostenv._unloading=false;},0);});}wlpdj04_addNodeEvtHdlr(window,"unload",function(){wlpdj04.hostenv.unloaded();if((!wlpdj04.render.html.ie)||(wlpdj04.render.html.ie&&wlpdj04.hostenv._unloading)){wlpdj04.hostenv.unloaded();}});wlpdj04.hostenv.makeWidgets=function(){var B=[];if(wlpdj04Config.searchIds&&wlpdj04Config.searchIds.length>0){B=B.concat(wlpdj04Config.searchIds);}if(wlpdj04.hostenv.searchIds&&wlpdj04.hostenv.searchIds.length>0){B=B.concat(wlpdj04.hostenv.searchIds);}if((wlpdj04Config.parseWidgets)||(B.length>0)){if(wlpdj04.evalObjPath("wlpdj04.widget.Parse")){var E=new wlpdj04.xml.Parse();if(B.length>0){for(var A=0;A<B.length;A++){var C=document.getElementById(B[A]);if(!C){continue;}var D=E.parseElement(C,null,true);wlpdj04.widget.getParser().createComponents(D);}}else{if(wlpdj04Config.parseWidgets){var D=E.parseElement(wlpdj04.body(),null,true);wlpdj04.widget.getParser().createComponents(D);}}}}};wlpdj04.addOnLoad(function(){if(!wlpdj04.render.html.ie){wlpdj04.hostenv.makeWidgets();}});try{if(wlpdj04.render.html.ie){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}}catch(e){}wlpdj04.hostenv.writeIncludes=function(){};if(!wlpdj04_undef("document",this)){wlpdj04_currentDocument=this.document;}wlpdj04.doc=function(){return wlpdj04_currentDocument;};wlpdj04.body=function(){return wlpdj04.doc().body||wlpdj04.doc().getElementsByTagName("body")[0];};wlpdj04.byId=function(D,C){if((D)&&((typeof D=="string")||(D instanceof String))){if(!C){C=wlpdj04_currentDocument;}var B=C.getElementById(D);if(B&&(B.id!=D)&&C.all){B=null;eles=C.all[D];if(eles){if(eles.length){for(var A=0;A<eles.length;A++){if(eles[A].id==D){B=eles[A];break;}}}else{B=eles;}}}return B;}return D;};wlpdj04.setContext=function(B,A){wlpdj04_currentContext=B;wlpdj04_currentDocument=A;};wlpdj04._fireCallback=function(C,A,B){if((A)&&((typeof C=="string")||(C instanceof String))){C=A[C];}return(A?C.apply(A,B||[]):C());};wlpdj04.withGlobal=function(G,F,C,E){var D;var A=wlpdj04_currentContext;var B=wlpdj04_currentDocument;try{wlpdj04.setContext(G,G.document);D=wlpdj04._fireCallback(F,C,E);}finally{wlpdj04.setContext(A,B);}return D;};wlpdj04.withDoc=function(A,F,C,E){var D;var B=wlpdj04_currentDocument;try{wlpdj04_currentDocument=A;D=wlpdj04._fireCallback(F,C,E);}finally{wlpdj04_currentDocument=B;}return D;};}wlpdj04.requireIf((wlpdj04Config["isDebug"]||wlpdj04Config["debugAtAllCosts"]),"wlpdj04.debug");wlpdj04.requireIf(wlpdj04Config["debugAtAllCosts"]&&!window.widget&&!wlpdj04Config["useXDomain"],"wlpdj04.browser_debug");wlpdj04.requireIf(wlpdj04Config["debugAtAllCosts"]&&!window.widget&&wlpdj04Config["useXDomain"],"wlpdj04.browser_debug_xd");wlpdj04.provide("wlpdj04.lang.common");wlpdj04.lang.inherits=function(A,B){if(!wlpdj04.lang.isFunction(B)){wlpdj04.raise("wlpdj04.inherits: superclass argument ["+B+"] must be a function (subclass: ["+A+"']");}A.prototype=new B();A.prototype.constructor=A;A.superclass=B.prototype;A["super"]=B.prototype;};wlpdj04.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(wlpdj04.render.html.ie&&(typeof (C["toString"])=="function")&&(C["toString"]!=D["toString"])&&(C["toString"]!=B["toString"])){D.toString=C.toString;}return D;};wlpdj04.lang.mixin=function(D,C){for(var B=1,A=arguments.length;B<A;B++){wlpdj04.lang._mixin(D,arguments[B]);}return D;};wlpdj04.lang.extend=function(D,C){for(var B=1,A=arguments.length;B<A;B++){wlpdj04.lang._mixin(D.prototype,arguments[B]);}return D;};wlpdj04.inherits=wlpdj04.lang.inherits;wlpdj04.mixin=wlpdj04.lang.mixin;wlpdj04.extend=wlpdj04.lang.extend;wlpdj04.lang.find=function(E,G,F,H){if(!wlpdj04.lang.isArrayLike(E)&&wlpdj04.lang.isArrayLike(G)){wlpdj04.deprecated("wlpdj04.lang.find(value, array)","use wlpdj04.lang.find(array, value) instead","0.5");var I=E;E=G;G=I;}var A=wlpdj04.lang.isString(E);if(A){E=E.split("");}if(H){var B=-1;var D=E.length-1;var C=-1;}else{var B=1;var D=0;var C=E.length;}if(F){while(D!=C){if(E[D]===G){return D;}D+=B;}}else{while(D!=C){if(E[D]==G){return D;}D+=B;}}return -1;};wlpdj04.lang.indexOf=wlpdj04.lang.find;wlpdj04.lang.findLast=function(C,B,A){return wlpdj04.lang.find(C,B,A,true);};wlpdj04.lang.lastIndexOf=wlpdj04.lang.findLast;wlpdj04.lang.inArray=function(B,A){return wlpdj04.lang.find(B,A)>-1;};wlpdj04.lang.isObject=function(A){if(typeof A=="undefined"){return false;}return(typeof A=="object"||A===null||wlpdj04.lang.isArray(A)||wlpdj04.lang.isFunction(A));};wlpdj04.lang.isArray=function(A){return(A&&A instanceof Array||typeof A=="array");};wlpdj04.lang.isArrayLike=function(A){if((!A)||(wlpdj04.lang.isUndefined(A))){return false;}if(wlpdj04.lang.isString(A)){return false;}if(wlpdj04.lang.isFunction(A)){return false;}if(wlpdj04.lang.isArray(A)){return true;}if((A.tagName)&&(A.tagName.toLowerCase()=="form")){return false;}if(wlpdj04.lang.isNumber(A.length)&&isFinite(A.length)){return true;}return false;};wlpdj04.lang.isFunction=function(A){return(A instanceof Function||typeof A=="function");};(function(){if((wlpdj04.render.html.capable)&&(wlpdj04.render.html["safari"])){wlpdj04.lang.isFunction=function(A){if((typeof (A)=="function")&&(A=="[object NodeList]")){return false;}return(A instanceof Function||typeof A=="function");};}})();wlpdj04.lang.isString=function(A){return(typeof A=="string"||A instanceof String);};wlpdj04.lang.isAlien=function(A){if(!A){return false;}return !wlpdj04.lang.isFunction(A)&&/\{\s*\[native code\]\s*\}/.test(String(A));};wlpdj04.lang.isBoolean=function(A){return(A instanceof Boolean||typeof A=="boolean");};wlpdj04.lang.isNumber=function(A){return(A instanceof Number||typeof A=="number");};wlpdj04.lang.isUndefined=function(A){return((typeof (A)=="undefined")&&(A==undefined));};wlpdj04.provide("wlpdj04.lang.func");wlpdj04.require("wlpdj04.lang.common");wlpdj04.lang.hitch=function(B,E){var C=[];for(var A=2;A<arguments.length;A++){C.push(arguments[A]);}var D=(wlpdj04.lang.isString(E)?B[E]:E)||function(){};return function(){var G=C.concat([]);for(var F=0;F<arguments.length;F++){G.push(arguments[F]);}return D.apply(B,G);};};wlpdj04.lang.anonCtr=0;wlpdj04.lang.anon={};wlpdj04.lang.nameAnonFunc=function(B,G,F){var E=(G||wlpdj04.lang.anon);if((F)||((wlpdj04_global["wlpdj04Config"])&&(wlpdj04Config["slowAnonFuncLookups"]==true))){for(var A in E){try{if(E[A]===B){return A;}}catch(D){}}}var C="__"+wlpdj04.lang.anonCtr++;while(typeof E[C]!="undefined"){C="__"+wlpdj04.lang.anonCtr++;}E[C]=B;return C;};wlpdj04.lang.forward=function(A){return function(){return this[A].apply(this,arguments);};};wlpdj04.lang.curry=function(F,E){var B=[];F=F||wlpdj04_global;if(wlpdj04.lang.isString(E)){E=F[E];}for(var A=2;A<arguments.length;A++){B.push(arguments[A]);}var D=(E["__preJoinArity"]||E.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=E.apply(F,H);L=J;return K;}else{return function(){return C(arguments,H,L);};}}return C([],B,D);};wlpdj04.lang.curryArguments=function(F,D,B,E){var C=[];var A=E||0;for(A=E;A<B.length;A++){C.push(B[A]);}return wlpdj04.lang.curry.apply(wlpdj04.lang,[F,D].concat(C));};wlpdj04.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){wlpdj04.debug(C);}}};wlpdj04.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();wlpdj04.lang.delayThese(B,A,C,D);},C);};wlpdj04.provide("wlpdj04.lang.extras");wlpdj04.require("wlpdj04.lang.common");wlpdj04.lang.setTimeout=function(E,B){var D=window,F=2;if(!wlpdj04.lang.isFunction(E)){D=E;E=B;B=arguments[2];F++;}if(wlpdj04.lang.isString(E)){E=D[E];}var A=[];for(var C=F;C<arguments.length;C++){A.push(arguments[C]);}return wlpdj04.global().setTimeout(function(){E.apply(D,A);},B);};wlpdj04.lang.clearTimeout=function(A){wlpdj04.global().clearTimeout(A);};wlpdj04.lang.getNameInObj=function(B,C){if(!B){B=wlpdj04_global;}for(var A in B){if(B[A]===C){return new String(A);}}return null;};wlpdj04.lang.shallowCopy=function(D,A){var C,B;if(D===null){return null;}if(wlpdj04.lang.isObject(D)){B=new D.constructor();for(C in D){if(wlpdj04.lang.isUndefined(B[C])){B[C]=A?wlpdj04.lang.shallowCopy(D[C],A):D[C];}}}else{if(wlpdj04.lang.isArray(D)){B=[];for(C=0;C<D.length;C++){B[C]=A?wlpdj04.lang.shallowCopy(D[C],A):D[C];}}else{B=D;}}return B;};wlpdj04.lang.firstValued=function(){for(var A=0;A<arguments.length;A++){if(typeof arguments[A]!="undefined"){return arguments[A];}}return undefined;};wlpdj04.lang.getObjPathValue=function(objpath,context,create){with(wlpdj04.parseObjPath(objpath,context,create)){return wlpdj04.evalProp(prop,obj,create);}};wlpdj04.lang.setObjPathValue=function(objpath,value,context,create){wlpdj04.deprecated("wlpdj04.lang.setObjPathValue","use wlpdj04.parseObjPath and the '=' operator","0.6");if(arguments.length<4){create=true;}with(wlpdj04.parseObjPath(objpath,context,create)){if(obj&&(create||(prop in obj))){obj[prop]=value;}}};wlpdj04.provide("wlpdj04.lang.declare");wlpdj04.require("wlpdj04.lang.common");wlpdj04.require("wlpdj04.lang.extras");wlpdj04.lang.declare=function(E,I,K,G){if((wlpdj04.lang.isFunction(G))||((!G)&&(!wlpdj04.lang.isFunction(K)))){var J=G;G=K;K=J;}var D=[];if(wlpdj04.lang.isArray(I)){D=I;I=D.shift();}if(!K){K=wlpdj04.evalObjPath(E,false);if((K)&&(!wlpdj04.lang.isFunction(K))){K=null;}}var H=wlpdj04.lang.declare._makeConstructor();var F=(I?I.prototype:null);if(F){F.prototyping=true;H.prototype=new I();F.prototyping=false;}H.superclass=F;H.mixins=D;for(var C=0,A=D.length;C<A;C++){wlpdj04.lang.extend(H,D[C].prototype);}H.prototype.initializer=null;H.prototype.declaredClass=E;if(wlpdj04.lang.isArray(G)){wlpdj04.lang.extend.apply(wlpdj04.lang,[H].concat(G));}else{wlpdj04.lang.extend(H,(G)||{});}wlpdj04.lang.extend(H,wlpdj04.lang.declare._common);H.prototype.constructor=H;H.prototype.initializer=(H.prototype.initializer)||(K)||(function(){});var B=wlpdj04.parseObjPath(E,null,true);B.obj[B.prop]=H;return H;};wlpdj04.lang.declare._makeConstructor=function(){return function(){var B=this._getPropContext();var E=B.constructor.superclass;if((E)&&(E.constructor)){if(E.constructor==arguments.callee){this._inherited("constructor",arguments);}else{this._contextMethod(E,"constructor",arguments);}}var C=(B.constructor.mixins)||([]);for(var D=0,A;(A=C[D]);D++){(((A.prototype)&&(A.prototype.initializer))||(A)).apply(this,arguments);}if((!this.prototyping)&&(B.initializer)){B.initializer.apply(this,arguments);}};};wlpdj04.lang.declare._common={_getPropContext:function(){return(this.___proto||this);},_contextMethod:function(D,F,C){var B,A=this.___proto;this.___proto=D;try{B=D[F].apply(this,(C||[]));}catch(E){throw E;}finally{this.___proto=A;}return B;},_inherited:function(C,A){var B=this._getPropContext();do{if((!B.constructor)||(!B.constructor.superclass)){return ;}B=B.constructor.superclass;}while(!(C in B));return(wlpdj04.lang.isFunction(B[C])?this._contextMethod(B,C,A):B[C]);},inherited:function(B,A){wlpdj04.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");this._inherited(B,A);}};wlpdj04.declare=wlpdj04.lang.declare;wlpdj04.require("wlpdj04.lang.common");wlpdj04.require("wlpdj04.lang.func");wlpdj04.require("wlpdj04.lang.declare");wlpdj04.provide("wlpdj04.dnd.DragAndDrop");wlpdj04.declare("wlpdj04.dnd.DragSource",null,{type:"",onDragEnd:function(A){},onDragStart:function(A){},onSelected:function(A){},unregister:function(){wlpdj04.dnd.dragManager.unregisterDragSource(this);},reregister:function(){wlpdj04.dnd.dragManager.registerDragSource(this);}});wlpdj04.declare("wlpdj04.dnd.DragObject",null,{type:"",register:function(){var A=wlpdj04.dnd.dragManager;if(A["registerDragObject"]){A.registerDragObject(this);}},onDragStart:function(A){},onDragMove:function(A){},onDragOver:function(A){},onDragOut:function(A){},onDragEnd:function(A){},onDragLeave:wlpdj04.lang.forward("onDragOut"),onDragEnter:wlpdj04.lang.forward("onDragOver"),ondragout:wlpdj04.lang.forward("onDragOut"),ondragover:wlpdj04.lang.forward("onDragOver")});wlpdj04.declare("wlpdj04.dnd.DropTarget",null,{acceptsType:function(A){if(!wlpdj04.lang.inArray(this.acceptedTypes,"*")){if(!wlpdj04.lang.inArray(this.acceptedTypes,A)){return false;}}return true;},accepts:function(B){if(!wlpdj04.lang.inArray(this.acceptedTypes,"*")){for(var A=0;A<B.length;A++){if(!wlpdj04.lang.inArray(this.acceptedTypes,B[A].type)){return false;}}}return true;},unregister:function(){wlpdj04.dnd.dragManager.unregisterDropTarget(this);},onDragOver:function(A){},onDragOut:function(A){},onDragMove:function(A){},onDropStart:function(A){},onDrop:function(A){},onDropEnd:function(){}},function(){this.acceptedTypes=[];});wlpdj04.dnd.DragEvent=function(){this.dragSource=null;this.dragObject=null;this.target=null;this.eventStatus="success";};wlpdj04.declare("wlpdj04.dnd.DragManager",null,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(A){},dropTargets:[],registerDropTarget:function(A){},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){},onMouseOut:function(){},onMouseMove:function(){},onMouseUp:function(){}});wlpdj04.provide("wlpdj04.lang.array");wlpdj04.require("wlpdj04.lang.common");wlpdj04.lang.mixin(wlpdj04.lang,{has:function(C,A){try{return typeof C[A]!="undefined";}catch(B){return false;}},isEmpty:function(D){if(wlpdj04.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(wlpdj04.lang.isArrayLike(D)||wlpdj04.lang.isString(D)){return D.length==0;}}},map:function(B,E,D){var A=wlpdj04.lang.isString(B);if(A){B=B.split("");}if(wlpdj04.lang.isFunction(E)&&(!D)){D=E;E=wlpdj04_global;}else{if(wlpdj04.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;}},reduce:function(B,A,G,D){var E=A;if(arguments.length==2){D=A;E=B[0];B=B.slice(1);}else{if(arguments.length==3){if(wlpdj04.lang.isFunction(G)){D=G;G=null;}}else{if(wlpdj04.lang.isFunction(G)){var F=D;D=G;G=F;}}}var C=G||wlpdj04_global;wlpdj04.lang.map(B,function(H){E=D.call(C,E,H);});return E;},forEach:function(D,E,B){if(wlpdj04.lang.isString(D)){D=D.split("");}if(Array.forEach){Array.forEach(D,E,B);}else{if(!B){B=wlpdj04_global;}for(var C=0,A=D.length;C<A;C++){E.call(B,D[C],C,D);}}},_everyOrSome:function(F,B,G,D){if(wlpdj04.lang.isString(B)){B=B.split("");}if(Array.every){return Array[F?"every":"some"](B,G,D);}else{if(!D){D=wlpdj04_global;}for(var E=0,C=B.length;E<C;E++){var A=G.call(D,B[E],E,B);if(F&&!A){return false;}else{if((!F)&&(A)){return true;}}}return Boolean(F);}},every:function(A,C,B){return this._everyOrSome(true,A,C,B);},some:function(A,C,B){return this._everyOrSome(false,A,C,B);},filter:function(B,F,C){var A=wlpdj04.lang.isString(B);if(A){B=B.split("");}var E;if(Array.filter){E=Array.filter(B,F,C);}else{if(!C){if(arguments.length>=3){wlpdj04.raise("thisObject doesn't exist!");}C=wlpdj04_global;}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;}},unnest:function(){var A=[];for(var B=0;B<arguments.length;B++){if(wlpdj04.lang.isArrayLike(arguments[B])){var C=wlpdj04.lang.unnest.apply(this,arguments[B]);A=A.concat(C);}else{A.push(arguments[B]);}}return A;},toArray:function(B,A){var D=[];for(var C=A||0;C<B.length;C++){D.push(B[C]);}return D;}});wlpdj04.provide("wlpdj04.event.common");wlpdj04.require("wlpdj04.lang.array");wlpdj04.require("wlpdj04.lang.extras");wlpdj04.require("wlpdj04.lang.func");wlpdj04.event=new function(){this._canTimeout=wlpdj04.lang.isFunction(wlpdj04_global["setTimeout"])||wlpdj04.lang.isAlien(wlpdj04_global["setTimeout"]);function A(D,F){var C=wlpdj04.lang;var E={srcObj:wlpdj04_global,srcFunc:null,adviceObj:wlpdj04_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(D.length>2)?D[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false,maxCalls:-1};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=C.nameAnonFunc(D[2],E.adviceObj,F);E.adviceFunc=B;}else{if((C.isFunction(D[0]))&&(C.isObject(D[1]))&&(C.isString(D[2]))){E.adviceType="after";E.srcObj=wlpdj04_global;var B=C.nameAnonFunc(D[0],E.srcObj,F);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=wlpdj04_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=wlpdj04_global;var B=C.nameAnonFunc(D[1],wlpdj04_global,F);E.srcFunc=B;E.adviceObj=D[2];E.adviceFunc=D[3];}else{if((C.isString(D[0]))&&(C.isObject(D[1]))&&(C.isString(D[2]))&&(C.isFunction(D[3]))){E.srcObj=D[1];E.srcFunc=D[2];var B=C.nameAnonFunc(D[3],wlpdj04_global,F);E.adviceObj=wlpdj04_global;E.adviceFunc=B;}else{if(C.isObject(D[1])){E.srcObj=D[1];E.srcFunc=D[2];E.adviceObj=wlpdj04_global;E.adviceFunc=D[3];}else{if(C.isObject(D[2])){E.srcObj=wlpdj04_global;E.srcFunc=D[1];E.adviceObj=D[2];E.adviceFunc=D[3];}else{E.srcObj=E.adviceObj=E.aroundObj=wlpdj04_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=wlpdj04_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];E.maxCalls=(!isNaN(parseInt(D[11])))?D[11]:-1;break;}if(C.isFunction(E.aroundFunc)){var B=C.nameAnonFunc(E.aroundFunc,E.aroundObj,F);E.aroundFunc=B;}if(C.isFunction(E.srcFunc)){E.srcFunc=C.getNameInObj(E.srcObj,E.srcFunc);}if(C.isFunction(E.adviceFunc)){E.adviceFunc=C.getNameInObj(E.adviceObj,E.adviceFunc);}if((E.aroundObj)&&(C.isFunction(E.aroundFunc))){E.aroundFunc=C.getNameInObj(E.aroundObj,E.aroundFunc);}if(!E.srcObj){wlpdj04.raise("bad srcObj for srcFunc: "+E.srcFunc);}if(!E.adviceObj){wlpdj04.raise("bad adviceObj for adviceFunc: "+E.adviceFunc);}if(!E.adviceFunc){wlpdj04.debug("bad adviceFunc for srcFunc: "+E.srcFunc);wlpdj04.debugShallow(E);}return E;}this.connect=function(){if(arguments.length==1){var F=arguments[0];}else{var F=A(arguments,true);}if(wlpdj04.lang.isString(F.srcFunc)&&(F.srcFunc.toLowerCase()=="onkey")){if(wlpdj04.render.html.ie){F.srcFunc="onkeydown";this.connect(F);}F.srcFunc="onkeypress";}if(wlpdj04.lang.isArray(F.srcObj)&&F.srcObj!=""){var D={};for(var B in F){D[B]=F[B];}var G=[];wlpdj04.lang.forEach(F.srcObj,function(H){if((wlpdj04.render.html.capable)&&(wlpdj04.lang.isString(H))){H=wlpdj04.byId(H);}D.srcObj=H;G.push(wlpdj04.event.connect.call(wlpdj04.event,D));});return G;}var C=wlpdj04.event.MethodJoinPoint.getForMethod(F.srcObj,F.srcFunc);if(F.adviceFunc){var E=wlpdj04.event.MethodJoinPoint.getForMethod(F.adviceObj,F.adviceFunc);}C.kwAddAdvice(F);return C;};this.log=function(C,B){var D;if((arguments.length==1)&&(typeof C=="object")){D=C;}else{D={srcObj:C,srcFunc:B};}D.adviceFunc=function(){var F=[];for(var E=0;E<arguments.length;E++){F.push(arguments[E]);}wlpdj04.debug("("+D.srcObj+")."+D.srcFunc,":",F.join(", "));};this.kwConnect(D);};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.connectOnce=function(){var B=A(arguments,true);B.once=true;return this.connect(B);};this.connectRunOnce=function(){var B=A(arguments,true);B.maxCalls=1;return this.connect(B);};this._kwConnectImpl=function(D,C){var E=(C)?"disconnect":"connect";if(typeof D["srcFunc"]=="function"){D.srcObj=D["srcObj"]||wlpdj04_global;var B=wlpdj04.lang.nameAnonFunc(D.srcFunc,D.srcObj,true);D.srcFunc=B;}if(typeof D["adviceFunc"]=="function"){D.adviceObj=D["adviceObj"]||wlpdj04_global;var B=wlpdj04.lang.nameAnonFunc(D.adviceFunc,D.adviceObj,true);D.adviceFunc=B;}D.srcObj=D["srcObj"]||wlpdj04_global;D.adviceObj=D["adviceObj"]||D["targetObj"]||wlpdj04_global;D.adviceFunc=D["adviceFunc"]||D["targetFunc"];return wlpdj04.event[E](D);};this.kwConnect=function(B){return this._kwConnectImpl(B,false);};this.disconnect=function(){if(arguments.length==1){var C=arguments[0];}else{var C=A(arguments,true);}if(!C.adviceFunc){return ;}if(wlpdj04.lang.isString(C.srcFunc)&&(C.srcFunc.toLowerCase()=="onkey")){if(wlpdj04.render.html.ie){C.srcFunc="onkeydown";this.disconnect(C);}C.srcFunc="onkeypress";}if(!C.srcObj[C.srcFunc]){return null;}var B=wlpdj04.event.MethodJoinPoint.getForMethod(C.srcObj,C.srcFunc,true);B.removeAdvice(C.adviceObj,C.adviceFunc,C.adviceType,C.once);return B;};this.kwDisconnect=function(B){return this._kwConnectImpl(B,true);};};wlpdj04.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;};wlpdj04.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]||wlpdj04_global;var B=C[1];return A[B].call(A,this);}};wlpdj04.event.MethodJoinPoint=function(B,A){this.object=B||wlpdj04_global;this.methodname=A;this.methodfunc=this.object[A];this.squelch=false;};wlpdj04.event.MethodJoinPoint.getForMethod=function(F,E){if(!F){F=wlpdj04_global;}var B=F[E];if(!B){B=F[E]=function(){};if(!F[E]){wlpdj04.raise("Cannot set do-nothing method on that object "+E);}}else{if((typeof B!="function")&&(!wlpdj04.lang.isFunction(B))&&(!wlpdj04.lang.isAlien(B))){return null;}}var H=E+"$joinpoint";var G=E+"$joinpoint$method";var D=F[H];if(!D){var C=false;if(wlpdj04.event["browser"]){if((F["attachEvent"])||(F["nodeType"])||(F["addEventListener"])){C=true;wlpdj04.event.browser.addClobberNodeAttrs(F,[H,G,E]);}}var A=B.length;F[G]=B;D=F[H]=new wlpdj04.event.MethodJoinPoint(F,G);if(!C){F[E]=function(){return D.run.apply(D,arguments);};}else{F[E]=function(){var K=[];if(!arguments.length){var J=null;try{if(F.ownerDocument){J=F.ownerDocument.parentWindow.event;}else{if(F.documentElement){J=F.documentElement.ownerDocument.parentWindow.event;}else{if(F.event){J=F.event;}else{J=window.event;}}}}catch(L){J=window.event;}if(J){K.push(wlpdj04.event.browser.fixEvent(J,this));}}else{for(var I=0;I<arguments.length;I++){if((I==0)&&(wlpdj04.event.browser.isEvent(arguments[I]))){K.push(wlpdj04.event.browser.fixEvent(arguments[I],this));}else{K.push(arguments[I]);}}}return D.run.apply(D,K);};}F[E].__preJoinArity=A;}return D;};wlpdj04.lang.extend(wlpdj04.event.MethodJoinPoint,{squelch:false,unintercept:function(){this.object[this.methodname]=this.methodfunc;this.before=[];this.after=[];this.around=[];},disconnect:wlpdj04.lang.forward("unintercept"),run:function(){var D=this.object||wlpdj04_global;var G=arguments;var A=[];for(var H=0;H<G.length;H++){A[H]=G[H];}var B=function(K){if(!K){wlpdj04.debug("Null argument to unrollAdvice()");return ;}var R=K[0]||wlpdj04_global;var L=K[1];if(!R[L]){wlpdj04.raise('function "'+L+'" does not exist on "'+R+'"');}var T=K[2]||wlpdj04_global;var S=K[3];var M=K[6];var O=K[7];if(O>-1){if(O==0){return ;}K[7]--;}var P;var W={args:[],jp_:this,object:D,proceed:function(){return R[L].apply(R,W.args);}};W.args=A;var Q=parseInt(K[4]);var U=((!isNaN(Q))&&(K[4]!==null)&&(typeof K[4]!="undefined"));if(K[5]){var V=parseInt(K[5]);var Y=new Date();var J=false;if((K["last"])&&((Y-K.last)<=V)){if(wlpdj04.event._canTimeout){if(K["delayTimer"]){clearTimeout(K.delayTimer);}var N=parseInt(V*2);var X=wlpdj04.lang.shallowCopy(K);K.delayTimer=setTimeout(function(){X[5]=0;B(X);},N);}return ;}else{K.last=Y;}}if(S){T[S].call(T,W);}else{if((U)&&((wlpdj04.render.html)||(wlpdj04.render.svg))){wlpdj04_global["setTimeout"](function(){if(M){R[L].call(R,W);}else{R[L].apply(R,G);}},Q);}else{if(M){R[L].call(R,W);}else{R[L].apply(R,G);}}}};var C=function(){if(this.squelch){try{return B.apply(this,arguments);}catch(J){wlpdj04.debug(J);}}else{return B.apply(this,arguments);}};if((this["before"])&&(this.before.length>0)){wlpdj04.lang.forEach(this.before.concat(new Array()),C);}var I;try{if((this["around"])&&(this.around.length>0)){var E=new wlpdj04.event.MethodInvocation(this,D,G);I=E.proceed();}else{if(this.methodfunc){I=this.object[this.methodname].apply(this.object,G);}}}catch(F){if(!this.squelch){wlpdj04.debug(F,"when calling",this.methodname,"on",this.object,"with arguments",G);wlpdj04.raise(F);}}if((this["after"])&&(this.after.length>0)){wlpdj04.lang.forEach(this.after.concat(new Array()),C);}return(this.methodfunc)?I:null;},getArr:function(B){var A="after";if((typeof B=="string")&&(B.indexOf("before")!=-1)){A="before";}else{if(B=="around"){A="around";}}if(!this[A]){this[A]=[];}return this[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"],A["maxCalls"]);},addAdvice:function(A,J,M,B,H,C,D,F,I,L,K){var G=this.getArr(H);if(!G){wlpdj04.raise("bad this: "+this);}var E=[A,J,M,B,F,I,L,K];if(D){if(this.hasAdvice(A,J,H,G)>=0){return ;}}if(C=="first"){G.unshift(E);}else{G.push(E);}},hasAdvice:function(G,D,E,B){if(!B){B=this.getArr(E);}var H=-1;for(var A=0;A<B.length;A++){var C=(typeof D=="object")?(new String(D)).toString():D;var F=(typeof B[A][1]=="object")?(new String(B[A][1])).toString():B[A][1];if((B[A][0]==G)&&(F==C)){H=A;}}return H;},removeAdvice:function(E,B,C,D){var A=this.getArr(C);var F=this.hasAdvice(E,B,C,A);if(F==-1){return false;}while(F!=-1){A.splice(F,1);if(D){break;}F=this.hasAdvice(E,B,C,A);}return true;}});wlpdj04.require("wlpdj04.event.common");wlpdj04.provide("wlpdj04.event.topic");wlpdj04.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.destroy=function(A){this.getTopic(A).destroy();delete this.topics[A];};this.publishApply=function(B,A){var B=this.getTopic(B);B.sendMessage.apply(B,A);};this.publish=function(C,D){var C=this.getTopic(C);var B=[];for(var A=1;A<arguments.length;A++){B.push(arguments[A]);}C.sendMessage.apply(C,B);};};wlpdj04.event.topic.TopicImpl=function(A){this.topicName=A;this.subscribe=function(C,B){var D=B||C;var E=(!B)?wlpdj04_global:C;return wlpdj04.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:E,adviceFunc:D});};this.unsubscribe=function(C,B){var D=(!B)?C:B;var E=(!B)?null:C;return wlpdj04.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:E,adviceFunc:D});};this._getJoinPoint=function(){return wlpdj04.event.MethodJoinPoint.getForMethod(this,"sendMessage");};this.setSquelch=function(B){this._getJoinPoint().squelch=B;};this.destroy=function(){this._getJoinPoint().disconnect();};this.registerPublisher=function(C,B){wlpdj04.event.connect(C,B,this,"sendMessage");};this.sendMessage=function(B){};};wlpdj04.provide("wlpdj04.event.browser");wlpdj04.require("wlpdj04.event.common");wlpdj04._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];try{if(B&&B["__clobberAttrs__"]){for(var C=0;C<B.__clobberAttrs__.length;C++){A(B,B.__clobberAttrs__[C]);}A(B,"__clobberAttrs__");A(B,"__doClobber__");}}catch(F){}}E=null;};};if(wlpdj04.render.html.ie){wlpdj04.addOnUnload(function(){wlpdj04._ie_clobber.clobber();try{if((wlpdj04["widget"])&&(wlpdj04.widget["manager"])){wlpdj04.widget.manager.destroyAll();}}catch(B){}if(wlpdj04.widget){for(var A in wlpdj04.widget._templateCache){if(wlpdj04.widget._templateCache[A].node){wlpdj04.dom.destroyNode(wlpdj04.widget._templateCache[A].node);wlpdj04.widget._templateCache[A].node=null;delete wlpdj04.widget._templateCache[A].node;}}}try{window.onload=null;}catch(B){}try{window.onunload=null;}catch(B){}wlpdj04._ie_clobber.clobberNodes=[];});}wlpdj04.event.browser=new function(){var B=0;this.normalizedEventName=function(C){switch(C){case"CheckboxStateChange":case"DOMAttrModified":case"DOMMenuItemActive":case"DOMMenuItemInactive":case"DOMMouseScroll":case"DOMNodeInserted":case"DOMNodeRemoved":case"RadioStateChange":return C;break;default:var D=C.toLowerCase();return(D.indexOf("on")==0)?D.substr(2):D;break;}};this.clean=function(C){if(wlpdj04.render.html.ie){wlpdj04._ie_clobber.clobber(C);}};this.addClobberNode=function(C){if(!wlpdj04.render.html.ie){return ;}if(!C["__doClobber__"]){C.__doClobber__=true;wlpdj04._ie_clobber.clobberNodes.push(C);C.__clobberAttrs__=[];}};this.addClobberNodeAttrs=function(E,D){if(!wlpdj04.render.html.ie){return ;}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=wlpdj04.event.browser.normalizedEventName(F);if(F=="key"){if(wlpdj04.render.html.ie){this.removeListener(E,"onkeydown",D,C);}F="keypress";}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=wlpdj04.event.browser.normalizedEventName(I);if(I=="key"){if(wlpdj04.render.html.ie){this.addListener(G,"onkeydown",D,C,H);}I="keypress";}if(!H){var F=function(J){if(!J){J=window.event;}var K=D(wlpdj04.event.browser.fixEvent(J,this));if(C){wlpdj04.event.browser.stopEvent(J);}return K;};}else{F=D;}if(G.addEventListener){G.addEventListener(I,F,C);return F;}else{I="on"+I;if(typeof G[I]=="function"){var E=G[I];G[I]=function(J){E(J);return F(J);};}else{G[I]=F;}if(wlpdj04.render.html.ie){this.addClobberNodeAttrs(G,[I]);}return F;}};this.isEvent=function(C){return(typeof C!="undefined")&&(C)&&(typeof Event!="undefined")&&(C.eventPhase);};this.currentEvent=null;this.callListener=function(D,C){if(typeof D!="function"){wlpdj04.raise("listener not a function: "+D);}wlpdj04.event.browser.currentEvent.currentTarget=C;return D.call(C,wlpdj04.event.browser.currentEvent);};this._stopPropagation=function(){wlpdj04.event.browser.currentEvent.cancelBubble=true;};this._preventDefault=function(){wlpdj04.event.browser.currentEvent.returnValue=false;};this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_CLEAR:12,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_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,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_F13:124,KEY_F14:125,KEY_F15:126,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){if(window["event"]){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(C["type"]=="keydown"&&wlpdj04.render.html.ie){switch(C.keyCode){case C.KEY_SHIFT:case C.KEY_CTRL:case C.KEY_ALT:case C.KEY_CAPS_LOCK:case C.KEY_LEFT_WINDOW:case C.KEY_RIGHT_WINDOW:case C.KEY_SELECT:case C.KEY_NUM_LOCK:case C.KEY_SCROLL_LOCK:case C.KEY_NUMPAD_0:case C.KEY_NUMPAD_1:case C.KEY_NUMPAD_2:case C.KEY_NUMPAD_3:case C.KEY_NUMPAD_4:case C.KEY_NUMPAD_5:case C.KEY_NUMPAD_6:case C.KEY_NUMPAD_7:case C.KEY_NUMPAD_8:case C.KEY_NUMPAD_9:case C.KEY_NUMPAD_PERIOD:break;case C.KEY_NUMPAD_MULTIPLY:case C.KEY_NUMPAD_PLUS:case C.KEY_NUMPAD_ENTER:case C.KEY_NUMPAD_MINUS:case C.KEY_NUMPAD_DIVIDE:break;case C.KEY_PAUSE:case C.KEY_TAB:case C.KEY_BACKSPACE:case C.KEY_ENTER:case C.KEY_ESCAPE:case C.KEY_PAGE_UP:case C.KEY_PAGE_DOWN:case C.KEY_END:case C.KEY_HOME:case C.KEY_LEFT_ARROW:case C.KEY_UP_ARROW:case C.KEY_RIGHT_ARROW:case C.KEY_DOWN_ARROW:case C.KEY_INSERT:case C.KEY_DELETE:case C.KEY_F1:case C.KEY_F2:case C.KEY_F3:case C.KEY_F4:case C.KEY_F5:case C.KEY_F6:case C.KEY_F7:case C.KEY_F8:case C.KEY_F9:case C.KEY_F10:case C.KEY_F11:case C.KEY_F12:case C.KEY_F12:case C.KEY_F13:case C.KEY_F14:case C.KEY_F15:case C.KEY_CLEAR:case C.KEY_HELP:C.key=C.keyCode;break;default:if(C.ctrlKey||C.altKey){var H=C.keyCode;if(H>=65&&H<=90&&C.shiftKey==false){H+=32;}if(H>=1&&H<=26&&C.ctrlKey){H+=96;}C.key=String.fromCharCode(H);}}}else{if(C["type"]=="keypress"){if(wlpdj04.render.html.opera){if(C.which==0){C.key=C.keyCode;}else{if(C.which>0){switch(C.which){case C.KEY_SHIFT:case C.KEY_CTRL:case C.KEY_ALT:case C.KEY_CAPS_LOCK:case C.KEY_NUM_LOCK:case C.KEY_SCROLL_LOCK:break;case C.KEY_PAUSE:case C.KEY_TAB:case C.KEY_BACKSPACE:case C.KEY_ENTER:case C.KEY_ESCAPE:C.key=C.which;break;default:var H=C.which;if((C.ctrlKey||C.altKey||C.metaKey)&&(C.which>=65&&C.which<=90&&C.shiftKey==false)){H+=32;}C.key=String.fromCharCode(H);}}}}else{if(wlpdj04.render.html.ie){if(!C.ctrlKey&&!C.altKey&&C.keyCode>=C.KEY_SPACE){C.key=String.fromCharCode(C.keyCode);}}else{if(wlpdj04.render.html.safari){switch(C.keyCode){case 25:C.key=C.KEY_TAB;C.shift=true;break;case 63232:C.key=C.KEY_UP_ARROW;break;case 63233:C.key=C.KEY_DOWN_ARROW;break;case 63234:C.key=C.KEY_LEFT_ARROW;break;case 63235:C.key=C.KEY_RIGHT_ARROW;break;case 63236:C.key=C.KEY_F1;break;case 63237:C.key=C.KEY_F2;break;case 63238:C.key=C.KEY_F3;break;case 63239:C.key=C.KEY_F4;break;case 63240:C.key=C.KEY_F5;break;case 63241:C.key=C.KEY_F6;break;case 63242:C.key=C.KEY_F7;break;case 63243:C.key=C.KEY_F8;break;case 63244:C.key=C.KEY_F9;break;case 63245:C.key=C.KEY_F10;break;case 63246:C.key=C.KEY_F11;break;case 63247:C.key=C.KEY_F12;break;case 63250:C.key=C.KEY_PAUSE;break;case 63272:C.key=C.KEY_DELETE;break;case 63273:C.key=C.KEY_HOME;break;case 63275:C.key=C.KEY_END;break;case 63276:C.key=C.KEY_PAGE_UP;break;case 63277:C.key=C.KEY_PAGE_DOWN;break;case 63302:C.key=C.KEY_INSERT;break;case 63248:case 63249:case 63289:break;default:C.key=C.charCode>=C.KEY_SPACE?String.fromCharCode(C.charCode):C.keyCode;}}else{C.key=C.charCode>0?String.fromCharCode(C.charCode):C.keyCode;}}}}}}if(wlpdj04.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;}var G=(C.srcElement&&C.srcElement.ownerDocument)?C.srcElement.ownerDocument:document;var F=((wlpdj04.render.html.ie55)||(G["compatMode"]=="BackCompat"))?G.body:G.documentElement;if(!C.pageX){C.pageX=C.clientX+(F.scrollLeft||0);}if(!C.pageY){C.pageY=C.clientY+(F.scrollTop||0);}if(C.type=="mouseover"){C.relatedTarget=C.fromElement;}if(C.type=="mouseout"){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.cancelBubble=true;C.returnValue=false;}else{C.preventDefault();C.stopPropagation();}};};wlpdj04.kwCompoundRequire({common:["wlpdj04.event.common","wlpdj04.event.topic"],browser:["wlpdj04.event.browser"],dashboard:["wlpdj04.event.browser"]});wlpdj04.provide("wlpdj04.event.*");wlpdj04.provide("wlpdj04.dom");wlpdj04.dom.ELEMENT_NODE=1;wlpdj04.dom.ATTRIBUTE_NODE=2;wlpdj04.dom.TEXT_NODE=3;wlpdj04.dom.CDATA_SECTION_NODE=4;wlpdj04.dom.ENTITY_REFERENCE_NODE=5;wlpdj04.dom.ENTITY_NODE=6;wlpdj04.dom.PROCESSING_INSTRUCTION_NODE=7;wlpdj04.dom.COMMENT_NODE=8;wlpdj04.dom.DOCUMENT_NODE=9;wlpdj04.dom.DOCUMENT_TYPE_NODE=10;wlpdj04.dom.DOCUMENT_FRAGMENT_NODE=11;wlpdj04.dom.NOTATION_NODE=12;wlpdj04.dom.wlpdj04ml="http://www.wlpdj04toolkit.org/2004/wlpdj04ml";wlpdj04.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/"};wlpdj04.dom.isNode=function(A){if(typeof Element=="function"){try{return A instanceof Element;}catch(B){}}else{return A&&!isNaN(A.nodeType);}};wlpdj04.dom.getUniqueId=function(){var A=wlpdj04.doc();do{var B="wlpdj04_unique_"+(++arguments.callee._idIncrement);}while(A.getElementById(B));return B;};wlpdj04.dom.getUniqueId._idIncrement=0;wlpdj04.dom.firstElement=wlpdj04.dom.getFirstChildElement=function(A,B){var C=A.firstChild;while(C&&C.nodeType!=wlpdj04.dom.ELEMENT_NODE){C=C.nextSibling;}if(B&&C&&C.tagName&&C.tagName.toLowerCase()!=B.toLowerCase()){C=wlpdj04.dom.nextElement(C,B);}return C;};wlpdj04.dom.lastElement=wlpdj04.dom.getLastChildElement=function(A,B){var C=A.lastChild;while(C&&C.nodeType!=wlpdj04.dom.ELEMENT_NODE){C=C.previousSibling;}if(B&&C&&C.tagName&&C.tagName.toLowerCase()!=B.toLowerCase()){C=wlpdj04.dom.prevElement(C,B);}return C;};wlpdj04.dom.nextElement=wlpdj04.dom.getNextSiblingElement=function(B,A){if(!B){return null;}do{B=B.nextSibling;}while(B&&B.nodeType!=wlpdj04.dom.ELEMENT_NODE);if(B&&A&&A.toLowerCase()!=B.tagName.toLowerCase()){return wlpdj04.dom.nextElement(B,A);}return B;};wlpdj04.dom.prevElement=wlpdj04.dom.getPreviousSiblingElement=function(B,A){if(!B){return null;}if(A){A=A.toLowerCase();}do{B=B.previousSibling;}while(B&&B.nodeType!=wlpdj04.dom.ELEMENT_NODE);if(B&&A&&A.toLowerCase()!=B.tagName.toLowerCase()){return wlpdj04.dom.prevElement(B,A);}return B;};wlpdj04.dom.moveChildren=function(C,D,A){var B=0;if(A){while(C.hasChildNodes()&&C.firstChild.nodeType==wlpdj04.dom.TEXT_NODE){C.removeChild(C.firstChild);}while(C.hasChildNodes()&&C.lastChild.nodeType==wlpdj04.dom.TEXT_NODE){C.removeChild(C.lastChild);}}while(C.hasChildNodes()){D.appendChild(C.firstChild);B++;}return B;};wlpdj04.dom.copyChildren=function(B,D,A){var C=B.cloneNode(true);return this.moveChildren(C,D,A);};wlpdj04.dom.replaceChildren=function(D,A){var B=[];if(wlpdj04.render.html.ie){for(var C=0;C<D.childNodes.length;C++){B.push(D.childNodes[C]);}}wlpdj04.dom.removeChildren(D);D.appendChild(A);for(var C=0;C<B.length;C++){wlpdj04.dom.destroyNode(B[C]);}};wlpdj04.dom.removeChildren=function(B){var A=B.childNodes.length;while(B.hasChildNodes()){wlpdj04.dom.removeNode(B.firstChild);}return A;};wlpdj04.dom.replaceNode=function(B,A){return B.parentNode.replaceChild(A,B);};wlpdj04.dom.destroyNode=function(A){if(A.parentNode){A=wlpdj04.dom.removeNode(A);}if(A.nodeType!=3){if(wlpdj04.evalObjPath("wlpdj04.event.browser.clean",false)){wlpdj04.event.browser.clean(A);}if(wlpdj04.render.html.ie){A.outerHTML="";}}};wlpdj04.dom.removeNode=function(A){if(A&&A.parentNode){return A.parentNode.removeChild(A);}};wlpdj04.dom.getAncestors=function(C,E,A){var B=[];var D=(E&&(E instanceof Function||typeof E=="function"));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;};wlpdj04.dom.getAncestorsByTag=function(C,A,B){A=A.toLowerCase();return wlpdj04.dom.getAncestors(C,function(D){return((D.tagName)&&(D.tagName.toLowerCase()==A));},B);};wlpdj04.dom.getFirstAncestorByTag=function(B,A){return wlpdj04.dom.getAncestorsByTag(B,A,true);};wlpdj04.dom.isDescendantOf=function(B,A,C){if(C&&B){B=B.parentNode;}while(B){if(B==A){return true;}B=B.parentNode;}return false;};wlpdj04.dom.innerXML=function(A){if(A.innerXML){return A.innerXML;}else{if(A.xml){return A.xml;}else{if(typeof XMLSerializer!="undefined"){return(new XMLSerializer()).serializeToString(A);}}}};wlpdj04.dom.createDocument=function(){var E=null;var A=wlpdj04.doc();if(!wlpdj04_undef("ActiveXObject")){var C=["MSXML2","Microsoft","MSXML","MSXML3"];for(var B=0;B<C.length;B++){try{E=new ActiveXObject(C[B]+".XMLDOM");}catch(D){}if(E){break;}}}else{if((A.implementation)&&(A.implementation.createDocument)){E=A.implementation.createDocument("","",null);}}return E;};wlpdj04.dom.createDocumentFromText=function(G,B){if(!B){B="text/xml";}if(!wlpdj04_undef("DOMParser")){var H=new DOMParser();return H.parseFromString(G,B);}else{if(!wlpdj04_undef("ActiveXObject")){var C=wlpdj04.dom.createDocument();if(C){C.async=false;C.loadXML(G);return C;}else{wlpdj04.debug("toXml didn't work?");}}else{var A=wlpdj04.doc();if(A.createElement){var E=A.createElement("xml");E.innerHTML=G;if(A.implementation&&A.implementation.createDocument){var F=A.implementation.createDocument("foo","",null);for(var D=0;D<E.childNodes.length;D++){F.importNode(E.childNodes.item(D),true);}return F;}return((E.document)&&(E.document.firstChild?E.document.firstChild:E));}}}return null;};wlpdj04.dom.prependChild=function(B,A){if(A.firstChild){A.insertBefore(B,A.firstChild);}else{A.appendChild(B);}return true;};wlpdj04.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;};wlpdj04.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;};wlpdj04.dom.insertAtPosition=function(C,B,A){if((!C)||(!B)||(!A)){return false;}switch(A.toLowerCase()){case"before":return wlpdj04.dom.insertBefore(C,B);case"after":return wlpdj04.dom.insertAfter(C,B);case"first":if(B.firstChild){return wlpdj04.dom.insertBefore(C,B.firstChild);}else{B.appendChild(C);return true;}break;default:B.appendChild(C);return true;}};wlpdj04.dom.insertAtIndex=function(B,A,D){var C=A.childNodes;if(!C.length||C.length==D){A.appendChild(B);return true;}if(D==0){return wlpdj04.dom.prependChild(B,A);}return wlpdj04.dom.insertAfter(B,C[D-1]);};wlpdj04.dom.textContent=function(D,E){if(arguments.length>1){var A=wlpdj04.doc();wlpdj04.dom.replaceChildren(D,A.createTextNode(E));return E;}else{if(D.textContent!=undefined){return D.textContent;}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+=wlpdj04.dom.textContent(D.childNodes[B]);break;case 3:case 2:case 4:C+=D.childNodes[B].nodeValue;break;default:break;}}return C;}};wlpdj04.dom.hasParent=function(A){return Boolean(A&&A.parentNode&&wlpdj04.dom.isNode(A.parentNode));};wlpdj04.dom.isTag=function(B){if(B&&B.tagName){for(var A=1;A<arguments.length;A++){if(B.tagName==String(arguments[A])){return String(arguments[A]);}}}return"";};wlpdj04.dom.setAttributeNS=function(E,B,C,F){if(E==null||((E==undefined)&&(typeof E=="undefined"))){wlpdj04.raise("No element given to wlpdj04.dom.setAttributeNS");}if(!((E.setAttributeNS==undefined)&&(typeof E.setAttributeNS=="undefined"))){E.setAttributeNS(B,C,F);}else{var A=E.ownerDocument;var D=A.createNode(2,C,B);D.nodeValue=F;E.setAttributeNode(D);}};wlpdj04.provide("wlpdj04.html.common");wlpdj04.require("wlpdj04.lang.common");wlpdj04.require("wlpdj04.dom");wlpdj04.lang.mixin(wlpdj04.html,wlpdj04.dom);wlpdj04.html.body=function(){wlpdj04.deprecated("wlpdj04.html.body() moved to wlpdj04.body()","0.5");return wlpdj04.body();};wlpdj04.html.getEventTarget=function(A){if(!A){A=wlpdj04.global().event||{};}var B=(A.srcElement?A.srcElement:(A.target?A.target:null));while((B)&&(B.nodeType!=1)){B=B.parentNode;}return B;};wlpdj04.html.getViewport=function(){var E=wlpdj04.global();var C=wlpdj04.doc();var B=0;var D=0;if(wlpdj04.render.html.mozilla){B=C.documentElement.clientWidth;D=E.innerHeight;}else{if(!wlpdj04.render.html.opera&&E.innerWidth){B=E.innerWidth;D=E.innerHeight;}else{if(!wlpdj04.render.html.opera&&wlpdj04.exists(C,"documentElement.clientWidth")){var A=C.documentElement.clientWidth;if(!B||A&&A<B){B=A;}D=C.documentElement.clientHeight;}else{if(wlpdj04.body().clientWidth){B=wlpdj04.body().clientWidth;D=wlpdj04.body().clientHeight;}}}}return{width:B,height:D};};wlpdj04.html.getScroll=function(){var D=wlpdj04.global();var A=wlpdj04.doc();var C=D.pageYOffset||A.documentElement.scrollTop||wlpdj04.body().scrollTop||0;var B=D.pageXOffset||A.documentElement.scrollLeft||wlpdj04.body().scrollLeft||0;return{top:C,left:B,offset:{x:B,y:C}};};wlpdj04.html.getParentByType=function(D,C){var A=wlpdj04.doc();var B=wlpdj04.byId(D);C=C.toLowerCase();while((B)&&(B.nodeName.toLowerCase()!=C)){if(B==(A["body"]||A["documentElement"])){return null;}B=B.parentNode;}return B;};wlpdj04.html.getAttribute=function(D,A){D=wlpdj04.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;};wlpdj04.html.hasAttribute=function(B,A){return wlpdj04.html.getAttribute(wlpdj04.byId(B),A)?true:false;};wlpdj04.html.getCursorPosition=function(B){B=B||wlpdj04.global().event;var C={x:0,y:0};if(B.pageX||B.pageY){C.x=B.pageX;C.y=B.pageY;}else{var D=wlpdj04.doc().documentElement;var A=wlpdj04.body();C.x=B.clientX+((D||A)["scrollLeft"])-((D||A)["clientLeft"]);C.y=B.clientY+((D||A)["scrollTop"])-((D||A)["clientTop"]);}return C;};wlpdj04.html.isTag=function(B){B=wlpdj04.byId(B);if(B&&B.tagName){for(var A=1;A<arguments.length;A++){if(B.tagName.toLowerCase()==String(arguments[A]).toLowerCase()){return String(arguments[A]).toLowerCase();}}}return"";};if(wlpdj04.render.html.ie&&!wlpdj04.render.html.ie70){if(window.location.href.substr(0,6).toLowerCase()!="https:"){(function(){var A=wlpdj04.doc().createElement("script");A.src="javascript:'wlpdj04.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";wlpdj04.doc().getElementsByTagName("head")[0].appendChild(A);})();}}else{wlpdj04.html.createExternalElement=function(B,A){return B.createElement(A);};}wlpdj04.html._callDeprecated=function(H,B,D,G,F){wlpdj04.deprecated("wlpdj04.html."+H,"replaced by wlpdj04.html."+B+"("+(G?"node, {"+G+": "+G+"}":"")+")"+(F?"."+F:""),"0.5");var A=[];if(G){var E={};E[G]=D[1];A.push(D[0]);A.push(E);}else{A=D;}var C=wlpdj04.html[B].apply(wlpdj04.html,D);if(F){return C[F];}else{return C;}};wlpdj04.html.getViewportWidth=function(){return wlpdj04.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");};wlpdj04.html.getViewportHeight=function(){return wlpdj04.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");};wlpdj04.html.getViewportSize=function(){return wlpdj04.html._callDeprecated("getViewportSize","getViewport",arguments);};wlpdj04.html.getScrollTop=function(){return wlpdj04.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");};wlpdj04.html.getScrollLeft=function(){return wlpdj04.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");};wlpdj04.html.getScrollOffset=function(){return wlpdj04.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");};wlpdj04.provide("wlpdj04.uri.Uri");wlpdj04.uri=new function(){this.wlpdj04Uri=function(A){return new wlpdj04.uri.Uri(wlpdj04.hostenv.getBaseScriptUri(),A);};this.moduleUri=function(B,C){var E=wlpdj04.hostenv.getModuleSymbols(B).join("/");if(!E){return null;}if(E.lastIndexOf("/")!=E.length-1){E+="/";}var A=E.indexOf(":");var D=E.indexOf("/");if(E.charAt(0)!="/"&&(A==-1||A>D)){E=wlpdj04.hostenv.getBaseScriptUri()+E;}return new wlpdj04.uri.Uri(E,C);};this.Uri=function(){var C=arguments[0];for(var E=1;E<arguments.length;E++){if(!arguments[E]){continue;}var F=new wlpdj04.uri.Uri(arguments[E].toString());var H=new wlpdj04.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;};};};wlpdj04.provide("wlpdj04.html.style");wlpdj04.require("wlpdj04.html.common");wlpdj04.require("wlpdj04.uri.Uri");wlpdj04.html.getClass=function(B){B=wlpdj04.byId(B);if(!B){return"";}var A="";if(B.className){A=B.className;}else{if(wlpdj04.html.hasAttribute(B,"class")){A=wlpdj04.html.getAttribute(B,"class");}}return A.replace(/^\s+|\s+$/g,"");};wlpdj04.html.getClasses=function(A){var B=wlpdj04.html.getClass(A);return(B=="")?[]:B.split(/\s+/g);};wlpdj04.html.hasClass=function(A,B){return(new RegExp("(^|\\s+)"+B+"(\\s+|$)")).test(wlpdj04.html.getClass(A));};wlpdj04.html.prependClass=function(B,A){A+=" "+wlpdj04.html.getClass(B);return wlpdj04.html.setClass(B,A);};wlpdj04.html.addClass=function(B,A){if(wlpdj04.html.hasClass(B,A)){return false;}A=(wlpdj04.html.getClass(B)+" "+A).replace(/^\s+|\s+$/g,"");return wlpdj04.html.setClass(B,A);};wlpdj04.html.setClass=function(C,B){C=wlpdj04.byId(C);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){wlpdj04.debug("wlpdj04.html.setClass() failed",D);}return true;};wlpdj04.html.removeClass=function(B,A,E){try{if(!E){var C=wlpdj04.html.getClass(B).replace(new RegExp("(^|\\s+)"+A+"(\\s+|$)"),"$1$2");}else{var C=wlpdj04.html.getClass(B).replace(A,"");}wlpdj04.html.setClass(B,C);}catch(D){wlpdj04.debug("wlpdj04.html.removeClass() failed",D);}return true;};wlpdj04.html.replaceClass=function(B,C,A){wlpdj04.html.removeClass(B,A);wlpdj04.html.addClass(B,C);};wlpdj04.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};wlpdj04.html.getElementsByClass=function(E,F,C,O,B){B=false;var P=wlpdj04.doc();F=wlpdj04.byId(F)||P;var S=E.split(/\s+/g);var K=[];if(O!=1&&O!=2){O=0;}var D=new RegExp("(\\s|^)(("+S.join(")|(")+"))(\\s|$)");var T=S.join(" ").length;var Q=[];if(!B&&P.evaluate){var J=".//"+(C||"*")+"[contains(";if(O!=wlpdj04.html.classMatchType.ContainsAny){J+="concat(' ',@class,' '), ' "+S.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";if(O==2){J+=" and string-length(@class)="+T+"]";}else{J+="]";}}else{J+="concat(' ',@class,' '), ' "+S.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";}var I=P.evaluate(J,F,null,XPathResult.ANY_TYPE,null);var G=I.iterateNext();while(G){try{Q.push(G);G=I.iterateNext();}catch(R){break;}}return Q;}else{if(!C){C="*";}Q=F.getElementsByTagName(C);var L,N=0;outer:while(L=Q[N++]){var H=wlpdj04.html.getClasses(L);if(H.length==0){continue outer;}var A=0;for(var M=0;M<H.length;M++){if(D.test(H[M])){if(O==wlpdj04.html.classMatchType.ContainsAny){K.push(L);continue outer;}else{A++;}}else{if(O==wlpdj04.html.classMatchType.IsOnly){continue outer;}}}if(A==S.length){if((O==wlpdj04.html.classMatchType.IsOnly)&&(A==H.length)){K.push(L);}else{if(O==wlpdj04.html.classMatchType.ContainsAll){K.push(L);}}}}return K;}};wlpdj04.html.getElementsByClassName=wlpdj04.html.getElementsByClass;wlpdj04.html.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;};wlpdj04.html.toSelectorCase=function(A){return A.replace(/([A-Z])/g,"-$1").toLowerCase();};if(wlpdj04.render.html.ie){wlpdj04.html.getComputedStyle=function(A,C,B){A=wlpdj04.byId(A);if(!A||!A.currentStyle){return B;}return A.currentStyle[wlpdj04.html.toCamelCase(C)];};wlpdj04.html.getComputedStyles=function(A){return A.currentStyle;};}else{wlpdj04.html.getComputedStyle=function(B,D,C){B=wlpdj04.byId(B);if(!B||!B.style){return C;}var A=document.defaultView.getComputedStyle(B,null);return(A&&A[wlpdj04.html.toCamelCase(D)])||"";};wlpdj04.html.getComputedStyles=function(A){return document.defaultView.getComputedStyle(A,null);};}wlpdj04.html.getStyleProperty=function(B,A){B=wlpdj04.byId(B);return(B&&B.style?B.style[wlpdj04.html.toCamelCase(A)]:undefined);};wlpdj04.html.getStyle=function(B,A){var C=wlpdj04.html.getStyleProperty(B,A);return(C?C:wlpdj04.html.getComputedStyle(B,A));};wlpdj04.html.setStyle=function(C,B,D){C=wlpdj04.byId(C);if(C&&C.style){var A=wlpdj04.html.toCamelCase(B);C.style[A]=D;}};wlpdj04.html.setStyleText=function(B,C){try{B.style.cssText=C;}catch(A){B.setAttribute("style",C);}};wlpdj04.html.copyStyle=function(B,A){if(!A.style.cssText){B.setAttribute("style",A.getAttribute("style"));}else{B.style.cssText=A.style.cssText;}wlpdj04.html.addClass(B,wlpdj04.html.getClass(A));};wlpdj04.html.getUnitValue=function(D,C,E){var B=wlpdj04.html.getComputedStyle(D,C);if((!B)||((B=="auto")&&(E))){return{value:0,units:"px"};}var A=B.match(/(\-?[\d.]+)([a-z%]*)/i);if(!A){return wlpdj04.html.getUnitValue.bad;}return{value:Number(A[1]),units:A[2].toLowerCase()};};wlpdj04.html.getUnitValue.bad={value:NaN,units:""};if(wlpdj04.render.html.ie){wlpdj04.html.toPixelValue=function(element,styleValue){if(!styleValue){return 0;}if(styleValue.slice(-2)=="px"){return parseFloat(styleValue);}var pixelValue=0;with(element){var sLeft=style.left;var rsLeft=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=styleValue||0;pixelValue=style.pixelLeft;style.left=sLeft;runtimeStyle.left=rsLeft;}catch(e){}}return pixelValue;};}else{wlpdj04.html.toPixelValue=function(B,A){return(A&&(A.slice(-2)=="px")?parseFloat(A):0);};}wlpdj04.html.getPixelValue=function(A,B,C){return wlpdj04.html.toPixelValue(A,wlpdj04.html.getComputedStyle(A,B));};wlpdj04.html.setPositivePixelValue=function(B,A,C){if(isNaN(C)){return false;}B.style[A]=Math.max(0,C)+"px";return true;};wlpdj04.html.styleSheet=null;wlpdj04.html.insertCssRule=function(A,D,B){if(!wlpdj04.html.styleSheet){if(document.createStyleSheet){wlpdj04.html.styleSheet=document.createStyleSheet();}else{if(document.styleSheets[0]){wlpdj04.html.styleSheet=document.styleSheets[0];}else{return null;}}}if(arguments.length<3){if(wlpdj04.html.styleSheet.cssRules){B=wlpdj04.html.styleSheet.cssRules.length;}else{if(wlpdj04.html.styleSheet.rules){B=wlpdj04.html.styleSheet.rules.length;}else{return null;}}}if(wlpdj04.html.styleSheet.insertRule){var C=A+" { "+D+" }";return wlpdj04.html.styleSheet.insertRule(C,B);}else{if(wlpdj04.html.styleSheet.addRule){return wlpdj04.html.styleSheet.addRule(A,D,B);}else{return null;}}};wlpdj04.html.removeCssRule=function(A){if(!wlpdj04.html.styleSheet){wlpdj04.debug("no stylesheet defined for removing rules");return false;}if(wlpdj04.render.html.ie){if(!A){A=wlpdj04.html.styleSheet.rules.length;wlpdj04.html.styleSheet.removeRule(A);}}else{if(document.styleSheets[0]){if(!A){A=wlpdj04.html.styleSheet.cssRules.length;}wlpdj04.html.styleSheet.deleteRule(A);}}return true;};wlpdj04.html._insertedCssFiles=[];wlpdj04.html.insertCssFile=function(G,H,K,C){if(!G){return ;}if(!H){H=document;}var B=wlpdj04.hostenv.getText(G,false,C);if(B===null){return ;}B=wlpdj04.html.fixPathsInCssText(B,G);if(K){var I=-1,D,F=wlpdj04.html._insertedCssFiles;for(var E=0;E<F.length;E++){if((F[E].doc==H)&&(F[E].cssText==B)){I=E;D=F[E].nodeRef;break;}}if(D){var J=H.getElementsByTagName("style");for(var E=0;E<J.length;E++){if(J[E]==D){return ;}}wlpdj04.html._insertedCssFiles.shift(I,1);}}var A=wlpdj04.html.insertCssText(B,H);wlpdj04.html._insertedCssFiles.push({"doc":H,"cssText":B,"nodeRef":A});if(A&&wlpdj04Config.isDebug){A.setAttribute("dbgHref",G);}return A;};wlpdj04.html.insertCssText=function(B,G,C){if(!B){return ;}if(!G){G=document;}if(C){B=wlpdj04.html.fixPathsInCssText(B,C);}var F=G.createElement("style");F.setAttribute("type","text/css");var D=G.getElementsByTagName("head")[0];if(!D){wlpdj04.debug("No head tag in document, aborting styles");return ;}else{D.appendChild(F);}if(F.styleSheet){var A=function(){try{F.styleSheet.cssText=B;}catch(H){wlpdj04.debug(H);}};if(F.styleSheet.disabled){setTimeout(A,10);}else{A();}}else{var E=G.createTextNode(B);F.appendChild(E);}return F;};wlpdj04.html.fixPathsInCssText=function(C,H){if(!C||!H){return ;}var E,F="",B="",D="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";var G=new RegExp("url\\(\\s*("+D+")\\s*\\)");var J=/(file|https?|ftps?):\/\//;var A=new RegExp("^[\\s]*(['\"]?)("+D+")\\1[\\s]*?$");if(wlpdj04.render.html.ie55||wlpdj04.render.html.ie60){var I=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+D+")['\"]");while(E=I.exec(C)){B=E[2].replace(A,"$2");if(!J.exec(B)){B=(new wlpdj04.uri.Uri(H,B).toString());}F+=C.substring(0,E.index)+"AlphaImageLoader("+E[1]+"src='"+B+"'";C=C.substr(E.index+E[0].length);}C=F+C;F="";}while(E=G.exec(C)){B=E[1].replace(A,"$2");if(!J.exec(B)){B=(new wlpdj04.uri.Uri(H,B).toString());}F+=C.substring(0,E.index)+"url("+B+")";C=C.substr(E.index+E[0].length);}return F+C;};wlpdj04.html.setActiveStyleSheet=function(D){var C=0,A,B=wlpdj04.doc().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;}}}};wlpdj04.html.getActiveStyleSheet=function(){var C=0,A,B=wlpdj04.doc().getElementsByTagName("link");while(A=B[C++]){if(A.getAttribute("rel").indexOf("style")!=-1&&A.getAttribute("title")&&!A.disabled){return A.getAttribute("title");}}return null;};wlpdj04.html.getPreferredStyleSheet=function(){var C=0,A,B=wlpdj04.doc().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;};wlpdj04.html.applyBrowserClass=function(B){var D=wlpdj04.render.html;var A={wlpdj04_ie:D.ie,wlpdj04_ie55:D.ie55,wlpdj04_ie6:D.ie60,wlpdj04_ie7:D.ie70,wlpdj04_iequirks:D.ie&&D.quirks,wlpdj04_opera:D.opera,wlpdj04_opera8:D.opera&&(Math.floor(wlpdj04.render.version)==8),wlpdj04_opera9:D.opera&&(Math.floor(wlpdj04.render.version)==9),wlpdj04_khtml:D.khtml,wlpdj04_safari:D.safari,wlpdj04_gecko:D.mozilla};for(var C in A){if(A[C]){wlpdj04.html.addClass(B,C);}}};wlpdj04.provide("wlpdj04.html.display");wlpdj04.require("wlpdj04.html.style");wlpdj04.html._toggle=function(B,A,C){B=wlpdj04.byId(B);C(B,!A(B));return A(B);};wlpdj04.html.show=function(A){A=wlpdj04.byId(A);if(wlpdj04.html.getStyleProperty(A,"display")=="none"){wlpdj04.html.setStyle(A,"display",(A.wlpdj04DisplayCache||""));A.wlpdj04DisplayCache=undefined;}};wlpdj04.html.hide=function(A){A=wlpdj04.byId(A);if(typeof A["wlpdj04DisplayCache"]=="undefined"){var B=wlpdj04.html.getStyleProperty(A,"display");if(B!="none"){A.wlpdj04DisplayCache=B;}}wlpdj04.html.setStyle(A,"display","none");};wlpdj04.html.setShowing=function(A,B){wlpdj04.html[(B?"show":"hide")](A);};wlpdj04.html.isShowing=function(A){return(wlpdj04.html.getStyleProperty(A,"display")!="none");};wlpdj04.html.toggleShowing=function(A){return wlpdj04.html._toggle(A,wlpdj04.html.isShowing,wlpdj04.html.setShowing);};wlpdj04.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};wlpdj04.html.suggestDisplayByTagName=function(B){B=wlpdj04.byId(B);if(B&&B.tagName){var A=B.tagName.toLowerCase();return(A in wlpdj04.html.displayMap?wlpdj04.html.displayMap[A]:"block");}};wlpdj04.html.setDisplay=function(A,B){wlpdj04.html.setStyle(A,"display",((B instanceof String||typeof B=="string")?B:(B?wlpdj04.html.suggestDisplayByTagName(A):"none")));};wlpdj04.html.isDisplayed=function(A){return(wlpdj04.html.getComputedStyle(A,"display")!="none");};wlpdj04.html.toggleDisplay=function(A){return wlpdj04.html._toggle(A,wlpdj04.html.isDisplayed,wlpdj04.html.setDisplay);};wlpdj04.html.setVisibility=function(B,A){wlpdj04.html.setStyle(B,"visibility",((A instanceof String||typeof A=="string")?A:(A?"visible":"hidden")));};wlpdj04.html.isVisible=function(A){return(wlpdj04.html.getComputedStyle(A,"visibility")!="hidden");};wlpdj04.html.toggleVisibility=function(A){return wlpdj04.html._toggle(A,wlpdj04.html.isVisible,wlpdj04.html.setVisibility);};wlpdj04.html.setOpacity=function(F,B,E){F=wlpdj04.byId(F);var D=wlpdj04.render.html;if(!E){if(B>=1){if(D.ie){wlpdj04.html.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;}}}};wlpdj04.html.clearOpacity=function(C){C=wlpdj04.byId(C);var B=C.style;var A=wlpdj04.render.html;if(A.ie){try{if(C.filters&&C.filters.alpha){B.filter="";}}catch(D){}}else{if(A.moz){B.opacity=1;B.MozOpacity=1;}else{if(A.safari){B.opacity=1;B.KhtmlOpacity=1;}else{B.opacity=1;}}}};wlpdj04.html.getOpacity=function(C){C=wlpdj04.byId(C);var A=wlpdj04.render.html;if(A.ie){var B=(C.filters&&C.filters.alpha&&typeof C.filters.alpha.opacity=="number"?C.filters.alpha.opacity:100)/100;}else{var B=C.style.opacity||C.style.MozOpacity||C.style.KhtmlOpacity||1;}return B>=0.999999?1:Number(B);};wlpdj04.provide("wlpdj04.html.layout");wlpdj04.require("wlpdj04.html.common");wlpdj04.require("wlpdj04.html.style");wlpdj04.require("wlpdj04.html.display");wlpdj04.html.sumAncestorProperties=function(A,D){A=wlpdj04.byId(A);if(!A){return 0;}var B=0;while(A){if(wlpdj04.html.getComputedStyle(A,"position")=="fixed"){return 0;}var C=A[D];if(C){B+=C-0;if(A==wlpdj04.body()){break;}}A=A.parentNode;}return B;};wlpdj04.html.setStyleAttributes=function(F,B){F=wlpdj04.byId(F);var E=B.replace(/(;)?\s*$/,"").split(";");for(var D=0;D<E.length;D++){var A=E[D].split(":");var C=A[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();var G=A[1].replace(/\s*$/,"").replace(/^\s*/,"");switch(C){case"opacity":wlpdj04.html.setOpacity(F,G);break;case"content-height":wlpdj04.html.setContentBox(F,{height:G});break;case"content-width":wlpdj04.html.setContentBox(F,{width:G});break;case"outer-height":wlpdj04.html.setMarginBox(F,{height:G});break;case"outer-width":wlpdj04.html.setMarginBox(F,{width:G});break;default:F.style[wlpdj04.html.toCamelCase(C)]=G;}}};wlpdj04.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};wlpdj04.html.getAbsolutePosition=wlpdj04.html.abs=function(node,includeScroll,boxType){node=wlpdj04.byId(node,node.ownerDocument);var ret={x:0,y:0};var bs=wlpdj04.html.boxSizing;if(!boxType){boxType=bs.CONTENT_BOX;}var nativeBoxType=2;var targetBoxType;switch(boxType){case bs.MARGIN_BOX:targetBoxType=3;break;case bs.BORDER_BOX:targetBoxType=2;break;case bs.PADDING_BOX:default:targetBoxType=1;break;case bs.CONTENT_BOX:targetBoxType=0;break;}var h=wlpdj04.render.html;var db=document["body"]||document["documentElement"];if(h.ie){with(node.getBoundingClientRect()){ret.x=left-2;ret.y=top-2;}}else{if(document.getBoxObjectFor){nativeBoxType=1;try{var bo=document.getBoxObjectFor(node);ret.x=bo.x-wlpdj04.html.sumAncestorProperties(node,"scrollLeft");ret.y=bo.y-wlpdj04.html.sumAncestorProperties(node,"scrollTop");}catch(e){}}else{if(node["offsetParent"]){var endNode;if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){endNode=db;}else{endNode=db.parentNode;}if(node.parentNode!=db){var nd=node;if(wlpdj04.render.html.opera){nd=db;}ret.x-=wlpdj04.html.sumAncestorProperties(nd,"scrollLeft");ret.y-=wlpdj04.html.sumAncestorProperties(nd,"scrollTop");}var curnode=node;do{var n=curnode["offsetLeft"];if(!h.opera||n>0){ret.x+=isNaN(n)?0:n;}var m=curnode["offsetTop"];ret.y+=isNaN(m)?0:m;curnode=curnode.offsetParent;}while((curnode!=endNode)&&(curnode!=null));}else{if(node["x"]&&node["y"]){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(includeScroll){var scroll=wlpdj04.html.getScroll();ret.y+=scroll.top;ret.x+=scroll.left;}var extentFuncArray=[wlpdj04.html.getPaddingExtent,wlpdj04.html.getBorderExtent,wlpdj04.html.getMarginExtent];if(nativeBoxType>targetBoxType){for(var i=targetBoxType;i<nativeBoxType;++i){ret.y+=extentFuncArray[i](node,"top");ret.x+=extentFuncArray[i](node,"left");}}else{if(nativeBoxType<targetBoxType){for(var i=targetBoxType;i>nativeBoxType;--i){ret.y-=extentFuncArray[i-1](node,"top");ret.x-=extentFuncArray[i-1](node,"left");}}}ret.top=ret.y;ret.left=ret.x;return ret;};wlpdj04.html.isPositionAbsolute=function(A){return(wlpdj04.html.getComputedStyle(A,"position")=="absolute");};wlpdj04.html._sumPixelValues=function(D,B,E){var C=0;for(var A=0;A<B.length;A++){C+=wlpdj04.html.getPixelValue(D,B[A],E);}return C;};wlpdj04.html.getMargin=function(A){return{width:wlpdj04.html._sumPixelValues(A,["margin-left","margin-right"],(wlpdj04.html.getComputedStyle(A,"position")=="absolute")),height:wlpdj04.html._sumPixelValues(A,["margin-top","margin-bottom"],(wlpdj04.html.getComputedStyle(A,"position")=="absolute"))};};wlpdj04.html.getBorder=function(A){return{width:wlpdj04.html.getBorderExtent(A,"left")+wlpdj04.html.getBorderExtent(A,"right"),height:wlpdj04.html.getBorderExtent(A,"top")+wlpdj04.html.getBorderExtent(A,"bottom")};};wlpdj04.html.getBorderExtent=function(B,A){return(wlpdj04.html.getStyle(B,"border-"+A+"-style")=="none"?0:wlpdj04.html.getPixelValue(B,"border-"+A+"-width"));};wlpdj04.html.getMarginExtent=function(B,A){return wlpdj04.html._sumPixelValues(B,["margin-"+A],wlpdj04.html.isPositionAbsolute(B));};wlpdj04.html.getPaddingExtent=function(B,A){return wlpdj04.html._sumPixelValues(B,["padding-"+A],true);};wlpdj04.html.getPadding=function(A){return{width:wlpdj04.html._sumPixelValues(A,["padding-left","padding-right"],true),height:wlpdj04.html._sumPixelValues(A,["padding-top","padding-bottom"],true)};};wlpdj04.html.getPadBorder=function(B){var C=wlpdj04.html.getPadding(B);var A=wlpdj04.html.getBorder(B);return{width:C.width+A.width,height:C.height+A.height};};wlpdj04.html.getBoxSizing=function(E){var D=wlpdj04.render.html;var C=wlpdj04.html.boxSizing;if(((D.ie)||(D.opera))&&E.nodeName.toLowerCase()!="img"){var A=document["compatMode"];if((A=="BackCompat")||(A=="QuirksMode")){return C.BORDER_BOX;}else{return C.CONTENT_BOX;}}else{if(arguments.length==0){E=document.documentElement;}var B;if(!D.ie){B=wlpdj04.html.getStyle(E,"-moz-box-sizing");if(!B){B=wlpdj04.html.getStyle(E,"box-sizing");}}return(B?B:C.CONTENT_BOX);}};wlpdj04.html.isBorderBox=function(A){return(wlpdj04.html.getBoxSizing(A)==wlpdj04.html.boxSizing.BORDER_BOX);};wlpdj04.html.getBorderBox=function(A){A=wlpdj04.byId(A);return{width:A.offsetWidth,height:A.offsetHeight};};wlpdj04.html.getPaddingBox=function(C){var B=wlpdj04.html.getBorderBox(C);var A=wlpdj04.html.getBorder(C);return{width:B.width-A.width,height:B.height-A.height};};wlpdj04.html.getContentBox=function(A){A=wlpdj04.byId(A);var B=wlpdj04.html.getPadBorder(A);return{width:A.offsetWidth-B.width,height:A.offsetHeight-B.height};};wlpdj04.html.setContentBox=function(F,C){F=wlpdj04.byId(F);var E=0;var A=0;var D=wlpdj04.html.isBorderBox(F);var G=(D?wlpdj04.html.getPadBorder(F):{width:0,height:0});var B={};if(typeof C.width!="undefined"){E=C.width+G.width;B.width=wlpdj04.html.setPositivePixelValue(F,"width",E);}if(typeof C.height!="undefined"){A=C.height+G.height;B.height=wlpdj04.html.setPositivePixelValue(F,"height",A);}return B;};wlpdj04.html.getMarginBox=function(B){var A=wlpdj04.html.getBorderBox(B);var C=wlpdj04.html.getMargin(B);return{width:A.width+C.width,height:A.height+C.height};};wlpdj04.html.setMarginBox=function(F,C){F=wlpdj04.byId(F);var E=0;var A=0;var D=wlpdj04.html.isBorderBox(F);var H=(!D?wlpdj04.html.getPadBorder(F):{width:0,height:0});var G=wlpdj04.html.getMargin(F);var B={};if(typeof C.width!="undefined"){E=C.width-H.width;E-=G.width;B.width=wlpdj04.html.setPositivePixelValue(F,"width",E);}if(typeof C.height!="undefined"){A=C.height-H.height;A-=G.height;B.height=wlpdj04.html.setPositivePixelValue(F,"height",A);}return B;};wlpdj04.html.getElementBox=function(C,B){var A=wlpdj04.html.boxSizing;switch(B){case A.MARGIN_BOX:return wlpdj04.html.getMarginBox(C);case A.BORDER_BOX:return wlpdj04.html.getBorderBox(C);case A.PADDING_BOX:return wlpdj04.html.getPaddingBox(C);case A.CONTENT_BOX:default:return wlpdj04.html.getContentBox(C);}};wlpdj04.html.toCoordinateObject=wlpdj04.html.toCoordinateArray=function(E,D,B){if(E instanceof Array||typeof E=="array"){wlpdj04.deprecated("wlpdj04.html.toCoordinateArray","use wlpdj04.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");while(E.length<4){E.push(0);}while(E.length>4){E.pop();}var A={left:E[0],top:E[1],width:E[2],height:E[3]};}else{if(!E.nodeType&&!(E instanceof String||typeof E=="string")&&("width" in E||"height" in E||"left" in E||"x" in E||"top" in E||"y" in E)){var A={left:E.left||E.x||0,top:E.top||E.y||0,width:E.width||0,height:E.height||0};}else{var C=wlpdj04.byId(E);var G=wlpdj04.html.abs(C,D,B);var F=wlpdj04.html.getMarginBox(C);var A={left:G.left,top:G.top,width:F.width,height:F.height};}}A.x=A.left;A.y=A.top;return A;};wlpdj04.html.setMarginBoxWidth=wlpdj04.html.setOuterWidth=function(B,A){return wlpdj04.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");};wlpdj04.html.setMarginBoxHeight=wlpdj04.html.setOuterHeight=function(){return wlpdj04.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");};wlpdj04.html.getMarginBoxWidth=wlpdj04.html.getOuterWidth=function(){return wlpdj04.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");};wlpdj04.html.getMarginBoxHeight=wlpdj04.html.getOuterHeight=function(){return wlpdj04.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");};wlpdj04.html.getTotalOffset=function(C,A,B){return wlpdj04.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,A);};wlpdj04.html.getAbsoluteX=function(B,A){return wlpdj04.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");};wlpdj04.html.getAbsoluteY=function(B,A){return wlpdj04.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");};wlpdj04.html.totalOffsetLeft=function(B,A){return wlpdj04.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");};wlpdj04.html.totalOffsetTop=function(B,A){return wlpdj04.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");};wlpdj04.html.getMarginWidth=function(A){return wlpdj04.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");};wlpdj04.html.getMarginHeight=function(A){return wlpdj04.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");};wlpdj04.html.getBorderWidth=function(A){return wlpdj04.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");};wlpdj04.html.getBorderHeight=function(A){return wlpdj04.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");};wlpdj04.html.getPaddingWidth=function(A){return wlpdj04.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");};wlpdj04.html.getPaddingHeight=function(A){return wlpdj04.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");};wlpdj04.html.getPadBorderWidth=function(A){return wlpdj04.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");};wlpdj04.html.getPadBorderHeight=function(A){return wlpdj04.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");};wlpdj04.html.getBorderBoxWidth=wlpdj04.html.getInnerWidth=function(){return wlpdj04.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");};wlpdj04.html.getBorderBoxHeight=wlpdj04.html.getInnerHeight=function(){return wlpdj04.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");};wlpdj04.html.getContentBoxWidth=wlpdj04.html.getContentWidth=function(){return wlpdj04.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");};wlpdj04.html.getContentBoxHeight=wlpdj04.html.getContentHeight=function(){return wlpdj04.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");};wlpdj04.html.setContentBoxWidth=wlpdj04.html.setContentWidth=function(B,A){return wlpdj04.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");};wlpdj04.html.setContentBoxHeight=wlpdj04.html.setContentHeight=function(B,A){return wlpdj04.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");};wlpdj04.provide("wlpdj04.dnd.HtmlDragManager");wlpdj04.require("wlpdj04.dnd.DragAndDrop");wlpdj04.require("wlpdj04.event.*");wlpdj04.require("wlpdj04.lang.array");wlpdj04.require("wlpdj04.html.common");wlpdj04.require("wlpdj04.html.layout");wlpdj04.declare("wlpdj04.dnd.HtmlDragManager",wlpdj04.dnd.DragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"wlpdj04DragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],dragSources:[],dropTargets:[],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(wlpdj04.render.html.ie){wlpdj04.event.browser.addListener(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(wlpdj04.render.html.ie){wlpdj04.event.browser.removeListener(B.domNode,"ondragstart",this.cancelEvent);}}},registerDropTarget:function(A){this.dropTargets.push(A);},unregisterDropTarget:function(B){var A=wlpdj04.lang.find(this.dropTargets,B,true);if(A>=0){this.dropTargets.splice(A,1);}},getDragSource:function(C){var A=C.target;if(A===wlpdj04.body()){return ;}var B=wlpdj04.html.getAttribute(A,this.dsPrefix);while((!B)&&(A)){A=A.parentNode;if((!A)||(A===wlpdj04.body())){return ;}B=wlpdj04.html.getAttribute(A,this.dsPrefix);}return this.dragSources[B];},onKeyDown:function(A){},onMouseDown:function(C){if(this.disabled){return ;}if(wlpdj04.render.html.ie){if(C.button!=1){return ;}}else{if(C.which!=1){return ;}}var B=C.target.nodeType==wlpdj04.html.TEXT_NODE?C.target.parentNode:C.target;if(wlpdj04.html.isTag(B,"button","textarea","input","select","option")){return ;}var A=this.getDragSource(C);if(!A){return ;}if(!wlpdj04.lang.inArray(this.selectedSources,A)){this.selectedSources.push(A);A.onSelected();}this.mouseDownX=C.pageX;this.mouseDownY=C.pageY;C.preventDefault();wlpdj04.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;B.dragSource=this.dragSource;if((!B.shiftKey)&&(!B.ctrlKey)){if(this.currentDropTarget){this.currentDropTarget.onDropStart();}wlpdj04.lang.forEach(this.dragObjects,function(D){var C=null;if(!D){return ;}if(this.currentDropTarget){B.dragObject=D;var E=this.currentDropTarget.domNode.childNodes;if(E.length>0){B.dropTarget=E[0];while(B.dropTarget==D.domNode){B.dropTarget=B.dropTarget.nextSibling;}}else{B.dropTarget=this.currentDropTarget.domNode;}if(this.dropAcceptable){C=this.currentDropTarget.onDrop(B);}else{this.currentDropTarget.onDragOut(B);}}B.dragStatus=this.dropAcceptable&&C?"dropSuccess":"dropFailure";wlpdj04.lang.delayThese([function(){try{D.dragSource.onDragEnd(B);}catch(H){var F={};for(var G in B){if(G=="type"){F.type="mouseup";continue;}F[G]=B[G];}D.dragSource.onDragEnd(F);}},function(){D.onDragEnd(B);}]);},this);this.selectedSources=[];this.dragObjects=[];this.dragSource=null;if(this.currentDropTarget){this.currentDropTarget.onDropEnd();}}else{}wlpdj04.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();}}if(this.dragObjects.length){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(){wlpdj04.profile.start("cacheTargetLocations");this.dropTargetDimensions=[];wlpdj04.lang.forEach(this.dropTargets,function(C){var B=C.domNode;if(!B||!C.accepts([this.dragSource])){return ;}var A=wlpdj04.html.getAbsolutePosition(B,true);var D=wlpdj04.html.getBorderBox(B);this.dropTargetDimensions.push([[A.x,A.y],[A.x+D.width,A.y+D.height],C]);},this);wlpdj04.profile.end("cacheTargetLocations");},onMouseMove:function(E){if((wlpdj04.render.html.ie)&&(E.button!=1)){this.currentDropTarget=null;this.onMouseUp(E,true);return ;}if((this.selectedSources.length)&&(!this.dragObjects.length)){var B;var A;if(!this._dragTriggered){this._dragTriggered=(this._dragStartDistance(E.pageX,E.pageY)>this.threshold);if(!this._dragTriggered){return ;}B=E.pageX-this.mouseDownX;A=E.pageY-this.mouseDownY;}this.dragSource=this.selectedSources[0];wlpdj04.lang.forEach(this.selectedSources,function(H){if(!H){return ;}var G=H.onDragStart(E);if(G){G.onDragStart(E);G.dragOffset.y+=A;G.dragOffset.x+=B;G.dragSource=H;this.dragObjects.push(G);}},this);this.previousDropTarget=null;this.cacheTargetLocations();}wlpdj04.lang.forEach(this.dragObjects,function(G){if(G){G.onDragMove(E);}});if(this.currentDropTarget){var F=wlpdj04.html.toCoordinateObject(this.currentDropTarget.domNode,true);var D=[[F.x,F.y],[F.x+F.width,F.y+F.height]];}if((!this.nestedTargets)&&(D)&&(this.isInsideBox(E,D))){if(this.dropAcceptable){this.currentDropTarget.onDragMove(E,this.dragObjects);}}else{var C=this.findBestTarget(E);if(C.target===null){if(this.currentDropTarget){this.currentDropTarget.onDragOut(E);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(E);}this.currentDropTarget=C.target;E.dragObjects=this.dragObjects;this.dropAcceptable=this.currentDropTarget.onDragOver(E);}else{if(this.dropAcceptable){this.currentDropTarget.onDragMove(E,this.dragObjects);}}}},findBestTarget:function(B){var C=this;var A=new Object();A.target=null;A.points=null;wlpdj04.lang.every(this.dropTargetDimensions,function(D){if(!C.isInsideBox(B,D)){return true;}A.target=D[2];A.points=D;return Boolean(C.nestedTargets);});return A;},isInsideBox:function(B,A){if((B.pageX>A[0][0])&&(B.pageX<A[1][0])&&(B.pageY>A[0][1])&&(B.pageY<A[1][1])){return true;}return false;},onMouseOver:function(A){},onMouseOut:function(A){}});wlpdj04.dnd.dragManager=new wlpdj04.dnd.HtmlDragManager();(function(){var B=document;var A=wlpdj04.dnd.dragManager;wlpdj04.event.connect(B,"onkeydown",A,"onKeyDown");wlpdj04.event.connect(B,"onmouseover",A,"onMouseOver");wlpdj04.event.connect(B,"onmouseout",A,"onMouseOut");wlpdj04.event.connect(B,"onmousedown",A,"onMouseDown");wlpdj04.event.connect(B,"onmouseup",A,"onMouseUp");wlpdj04.event.connect(window,"onscroll",A,"onScroll");})();wlpdj04.kwCompoundRequire({common:["wlpdj04.html.common","wlpdj04.html.style"]});wlpdj04.provide("wlpdj04.html.*");wlpdj04.provide("wlpdj04.html.util");wlpdj04.require("wlpdj04.html.layout");wlpdj04.html.getElementWindow=function(A){return wlpdj04.html.getDocumentWindow(A.ownerDocument);};wlpdj04.html.getDocumentWindow=function(C){if(wlpdj04.render.html.safari&&!C._parentWindow){var A=function(E){E.document._parentWindow=E;for(var D=0;D<E.frames.length;D++){A(E.frames[D]);}};A(window.top);}if(wlpdj04.render.html.ie&&window!==document.parentWindow&&!C._parentWindow){C.parentWindow.execScript("document._parentWindow = window;","Javascript");var B=C._parentWindow;C._parentWindow=null;return B;}return C._parentWindow||C.parentWindow||C.defaultView;};wlpdj04.html.gravity=function(node,e){node=wlpdj04.byId(node);var mouse=wlpdj04.html.getCursorPosition(e);with(wlpdj04.html){var absolute=getAbsolutePosition(node,true);var bb=getBorderBox(node);var nodecenterx=absolute.x+(bb.width/2);var nodecentery=absolute.y+(bb.height/2);}with(wlpdj04.html.gravity){return((mouse.x<nodecenterx?WEST:EAST)|(mouse.y<nodecentery?NORTH:SOUTH));}};wlpdj04.html.gravity.NORTH=1;wlpdj04.html.gravity.SOUTH=1<<1;wlpdj04.html.gravity.EAST=1<<2;wlpdj04.html.gravity.WEST=1<<3;wlpdj04.html.overElement=function(C,D){C=wlpdj04.byId(C);var E=wlpdj04.html.getCursorPosition(D);var F=wlpdj04.html.getBorderBox(C);var H=wlpdj04.html.getAbsolutePosition(C,true,wlpdj04.html.boxSizing.BORDER_BOX);var G=H.y;var A=G+F.height;var B=H.x;var I=B+F.width;return(E.x>=B&&E.x<=I&&E.y>=G&&E.y<=A);};wlpdj04.html.renderedTextContent=function(C){C=wlpdj04.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=wlpdj04.html.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+=wlpdj04.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+=wlpdj04.html.renderedTextContent(C.childNodes[B]);}break;}break;case 3:case 2:case 4:var H=C.childNodes[B].nodeValue;var I="unknown";try{I=wlpdj04.html.getStyle(C,"text-transform");}catch(D){}switch(I){case"capitalize":var G=H.split(" ");for(var B=0;B<G.length;B++){G[B]=G[B].charAt(0).toUpperCase()+G[B].substring(1);}H=G.join(" ");break;case"uppercase":H=H.toUpperCase();break;case"lowercase":H=H.toLowerCase();break;default:break;}switch(I){case"nowrap":break;case"pre-wrap":break;case"pre-line":break;case"pre":break;default:H=H.replace(/\s+/," ");if(/\s$/.test(A)){H.replace(/^\s/,"");}break;}A+=H;break;default:break;}}return A;};wlpdj04.html.createNodesFromText=function(D,C){if(C){D=D.replace(/^\s+|\s+$/g,"");}var B=wlpdj04.doc().createElement("div");B.style.visibility="hidden";wlpdj04.body().appendChild(B);var F="none";if((/^<t[dh][\s\r\n>]/i).test(D.replace(/^\s+/))){D="<table><tbody><tr>"+D+"</tr></tbody></table>";F="cell";}else{if((/^<tr[\s\r\n>]/i).test(D.replace(/^\s+/))){D="<table><tbody>"+D+"</tbody></table>";F="row";}else{if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(D.replace(/^\s+/))){D="<table>"+D+"</table>";F="section";}}}B.innerHTML=D;if(B["normalize"]){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";wlpdj04.html.destroyNode(B);return E;};wlpdj04.html.placeOnScreen=function(S,V,U,M,L,R,Y){if(V instanceof Array||typeof V=="array"){Y=R;R=L;L=M;M=U;U=V[1];V=V[0];}if(R instanceof String||typeof R=="string"){R=R.split(",");}if(!isNaN(M)){M=[Number(M),Number(M)];}else{if(!(M instanceof Array||typeof M=="array")){M=[0,0];}}var B=wlpdj04.html.getScroll().offset;var K=wlpdj04.html.getViewport();S=wlpdj04.byId(S);var N=S.style.display;S.style.display="";var D=wlpdj04.html.getBorderBox(S);var J=D.width;var T=D.height;S.style.display=N;if(!(R instanceof Array||typeof R=="array")){R=["TL"];}var C,A,X=Infinity,G;for(var W=0;W<R.length;++W){var F=R[W];var E=true;var Q=V-(F.charAt(1)=="L"?0:J)+M[0]*(F.charAt(1)=="L"?1:-1);var O=U-(F.charAt(0)=="T"?0:T)+M[1]*(F.charAt(0)=="T"?1:-1);if(L){Q-=B.x;O-=B.y;}if(Q<0){Q=0;E=false;}if(O<0){O=0;E=false;}var I=Q+J;if(I>K.width){I=K.width-J;E=false;}else{I=Q;}I=Math.max(M[0],I)+B.x;var H=O+T;if(H>K.height){H=K.height-T;E=false;}else{H=O;}H=Math.max(M[1],H)+B.y;if(E){C=I;A=H;X=0;G=F;break;}else{var P=Math.pow(I-Q-B.x,2)+Math.pow(H-O-B.y,2);if(X>P){X=P;C=I;A=H;G=F;}}}if(!Y){S.style.left=C+"px";S.style.top=A+"px";}return{left:C,top:A,x:C,y:A,dist:X,corner:G};};wlpdj04.html.placeOnScreenPoint=function(B,E,D,C,A){wlpdj04.deprecated("wlpdj04.html.placeOnScreenPoint","use wlpdj04.html.placeOnScreen() instead","0.5");return wlpdj04.html.placeOnScreen(B,E,D,C,A,["TL","TR","BL","BR"]);};wlpdj04.html.placeOnScreenAroundElement=function(L,R,I,H,B,Q){var E,P=Infinity;R=wlpdj04.byId(R);var J=R.style.display;R.style.display="";var A=wlpdj04.html.getElementBox(R,H);var M=A.width;var D=A.height;var F=wlpdj04.html.getAbsolutePosition(R,true,H);R.style.display=J;for(var C in B){var G,O,N;var K=B[C];O=F.x+(C.charAt(1)=="L"?0:M);N=F.y+(C.charAt(0)=="T"?0:D);G=wlpdj04.html.placeOnScreen(L,O,N,I,true,K,true);if(G.dist==0){E=G;break;}else{if(P>G.dist){P=G.dist;E=G;}}}if(!Q){L.style.left=E.left+"px";L.style.top=E.top+"px";}return E;};wlpdj04.html.scrollIntoView=function(C){if(!C){return ;}if(wlpdj04.render.html.ie){if(wlpdj04.html.getBorderBox(C.parentNode).height<=C.parentNode.scrollHeight){C.scrollIntoView(false);}}else{if(wlpdj04.render.html.mozilla){C.scrollIntoView(false);}else{var A=C.parentNode;var B=A.scrollTop+wlpdj04.html.getBorderBox(A).height;var D=C.offsetTop+wlpdj04.html.getMarginBox(C).height;if(B<D){A.scrollTop+=(D-B);}else{if(A.scrollTop>C.offsetTop){A.scrollTop-=(A.scrollTop-C.offsetTop);}}}}};wlpdj04.require("wlpdj04.html.common");wlpdj04.provide("wlpdj04.html.selection");wlpdj04.require("wlpdj04.dom");wlpdj04.require("wlpdj04.lang.common");wlpdj04.html.selectionType={NONE:0,TEXT:1,CONTROL:2};wlpdj04.html.clearSelection=function(){var C=wlpdj04.global();var A=wlpdj04.doc();try{if(C["getSelection"]){if(wlpdj04.render.html.safari){C.getSelection().collapse();}else{C.getSelection().removeAllRanges();}}else{if(A.selection){if(A.selection.empty){A.selection.empty();}else{if(A.selection.clear){A.selection.clear();}}}}return true;}catch(B){wlpdj04.debug(B);return false;}};wlpdj04.html.disableSelection=function(A){A=wlpdj04.byId(A)||wlpdj04.body();var B=wlpdj04.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;};wlpdj04.html.enableSelection=function(A){A=wlpdj04.byId(A)||wlpdj04.body();var B=wlpdj04.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;};wlpdj04.html.selectElement=function(A){wlpdj04.deprecated("wlpdj04.html.selectElement","replaced by wlpdj04.html.selection.selectElementChildren",0.5);};wlpdj04.html.selectInputText=function(C){var E=wlpdj04.global();var A=wlpdj04.doc();C=wlpdj04.byId(C);if(A["selection"]&&wlpdj04.body()["createTextRange"]){var B=C.createTextRange();B.moveStart("character",0);B.moveEnd("character",C.value.length);B.select();}else{if(E["getSelection"]){var D=E.getSelection();C.setSelectionRange(0,C.value.length);}}C.focus();};wlpdj04.html.isSelectionCollapsed=function(){wlpdj04.deprecated("wlpdj04.html.isSelectionCollapsed","replaced by wlpdj04.html.selection.isCollapsed",0.5);return wlpdj04.html.selection.isCollapsed();};wlpdj04.lang.mixin(wlpdj04.html.selection,{getType:function(){if(wlpdj04.doc()["selection"]){return wlpdj04.html.selectionType[wlpdj04.doc().selection.type.toUpperCase()];}else{var B=wlpdj04.html.selectionType.TEXT;var A;try{A=wlpdj04.global().getSelection();}catch(C){}if(A&&A.rangeCount==1){var D=A.getRangeAt(0);if(D.startContainer==D.endContainer&&(D.endOffset-D.startOffset)==1&&D.startContainer.nodeType!=wlpdj04.dom.TEXT_NODE){B=wlpdj04.html.selectionType.CONTROL;}}return B;}},isCollapsed:function(){var C=wlpdj04.global();var A=wlpdj04.doc();if(A["selection"]){return A.selection.createRange().text=="";}else{if(C["getSelection"]){var B=C.getSelection();if(wlpdj04.lang.isString(B)){return B=="";}else{return B.isCollapsed||B.toString()=="";}}}},getSelectedElement:function(){if(wlpdj04.html.selection.getType()==wlpdj04.html.selectionType.CONTROL){if(wlpdj04.doc()["selection"]){var A=wlpdj04.doc().selection.createRange();if(A&&A.item){return wlpdj04.doc().selection.createRange().item(0);}}else{var B=wlpdj04.global().getSelection();return B.anchorNode.childNodes[B.anchorOffset];}}},getParentElement:function(){if(wlpdj04.html.selection.getType()==wlpdj04.html.selectionType.CONTROL){var C=wlpdj04.html.selection.getSelectedElement();if(C){return C.parentNode;}}else{if(wlpdj04.doc()["selection"]){return wlpdj04.doc().selection.createRange().parentElement();}else{var A=wlpdj04.global().getSelection();if(A){var B=A.anchorNode;while(B&&B.nodeType!=wlpdj04.dom.ELEMENT_NODE){B=B.parentNode;}return B;}}}},getSelectedText:function(){if(wlpdj04.doc()["selection"]){if(wlpdj04.html.selection.getType()==wlpdj04.html.selectionType.CONTROL){return null;}return wlpdj04.doc().selection.createRange().text;}else{var A=wlpdj04.global().getSelection();if(A){return A.toString();}}},getSelectedHtml:function(){if(wlpdj04.doc()["selection"]){if(wlpdj04.html.selection.getType()==wlpdj04.html.selectionType.CONTROL){return null;}return wlpdj04.doc().selection.createRange().htmlText;}else{var A=wlpdj04.global().getSelection();if(A&&A.rangeCount){var C=A.getRangeAt(0).cloneContents();var B=document.createElement("div");B.appendChild(C);return B.innerHTML;}return null;}},hasAncestorElement:function(A){return(wlpdj04.html.selection.getAncestorElement.apply(this,arguments)!=null);},getAncestorElement:function(A){var B=wlpdj04.html.selection.getSelectedElement()||wlpdj04.html.selection.getParentElement();while(B){if(wlpdj04.html.selection.isTag(B,arguments).length>0){return B;}B=B.parentNode;}return null;},isTag:function(C,A){if(C&&C.tagName){for(var B=0;B<A.length;B++){if(C.tagName.toLowerCase()==String(A[B]).toLowerCase()){return String(A[B]).toLowerCase();}}}return"";},selectElement:function(C){var F=wlpdj04.global();var A=wlpdj04.doc();C=wlpdj04.byId(C);if(A.selection&&wlpdj04.body().createTextRange){try{var B=wlpdj04.body().createControlRange();B.addElement(C);B.select();}catch(E){wlpdj04.html.selection.selectElementChildren(C);}}else{if(F["getSelection"]){var D=F.getSelection();if(D["removeAllRanges"]){var B=A.createRange();B.selectNode(C);D.removeAllRanges();D.addRange(B);}}}},selectElementChildren:function(C){var E=wlpdj04.global();var A=wlpdj04.doc();C=wlpdj04.byId(C);if(A.selection&&wlpdj04.body().createTextRange){var B=wlpdj04.body().createTextRange();B.moveToElementText(C);B.select();}else{if(E["getSelection"]){var D=E.getSelection();if(D["setBaseAndExtent"]){D.setBaseAndExtent(C,0,C,C.innerText.length-1);}else{if(D["selectAllChildren"]){D.selectAllChildren(C);}}}}},getBookmark:function(){var D;var A=wlpdj04.doc();if(A["selection"]){var B=A.selection.createRange();D=B.getBookmark();}else{var C;try{C=wlpdj04.global().getSelection();}catch(E){}if(C){var B=C.getRangeAt(0);D=B.cloneRange();}else{wlpdj04.debug("No idea how to store the current selection for this browser!");}}return D;},moveToBookmark:function(D){var A=wlpdj04.doc();if(A["selection"]){var B=A.selection.createRange();B.moveToBookmark(D);B.select();}else{var C;try{C=wlpdj04.global().getSelection();}catch(E){}if(C&&C["removeAllRanges"]){C.removeAllRanges();C.addRange(D);}else{wlpdj04.debug("No idea how to restore selection for this browser!");}}},collapse:function(C){if(wlpdj04.global()["getSelection"]){var B=wlpdj04.global().getSelection();if(B.removeAllRanges){if(C){B.collapseToStart();}else{B.collapseToEnd();}}else{wlpdj04.global().getSelection().collapse(C);}}else{if(wlpdj04.doc().selection){var A=wlpdj04.doc().selection.createRange();A.collapse(C);A.select();}}},remove:function(){if(wlpdj04.doc().selection){var B=wlpdj04.doc().selection;if(B.type.toUpperCase()!="NONE"){B.clear();}return B;}else{var B=wlpdj04.global().getSelection();for(var A=0;A<B.rangeCount;A++){B.getRangeAt(A).deleteContents();}return B;}}});wlpdj04.provide("wlpdj04.html.iframe");wlpdj04.require("wlpdj04.html.util");wlpdj04.html.iframeContentWindow=function(A){var B=wlpdj04.html.getDocumentWindow(wlpdj04.html.iframeContentDocument(A))||wlpdj04.html.iframeContentDocument(A).__parent__||(A.name&&document.frames[A.name])||null;return B;};wlpdj04.html.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;};wlpdj04.html.BackgroundIframe=function(B){if(wlpdj04.render.html.ie55||wlpdj04.render.html.ie60){var A="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+'z-index: -1; filter:Alpha(Opacity="0");\' '+">";this.iframe=wlpdj04.doc().createElement(A);this.iframe.tabIndex=-1;if(B){B.appendChild(this.iframe);this.domNode=B;}else{wlpdj04.body().appendChild(this.iframe);this.iframe.style.display="none";}}};wlpdj04.lang.extend(wlpdj04.html.BackgroundIframe,{iframe:null,onResized:function(){if(this.iframe&&this.domNode&&this.domNode.parentNode){var A=wlpdj04.html.getMarginBox(this.domNode);if(A.width==0||A.height==0){wlpdj04.lang.setTimeout(this,this.onResized,100);return ;}this.iframe.style.width=A.width+"px";this.iframe.style.height=A.height+"px";}},size:function(node){if(!this.iframe){return ;}var coords=wlpdj04.html.toCoordinateObject(node,true,wlpdj04.html.boxSizing.BORDER_BOX);with(this.iframe.style){width=coords.width+"px";height=coords.height+"px";left=coords.left+"px";top=coords.top+"px";}},setZIndex:function(A){if(!this.iframe){return ;}if(wlpdj04.dom.isNode(A)){this.iframe.style.zIndex=wlpdj04.html.getStyle(A,"z-index")-1;}else{if(!isNaN(A)){this.iframe.style.zIndex=A;}}},show:function(){if(this.iframe){this.iframe.style.display="block";}},hide:function(){if(this.iframe){this.iframe.style.display="none";}},remove:function(){if(this.iframe){wlpdj04.html.removeNode(this.iframe,true);delete this.iframe;this.iframe=null;}}});wlpdj04.provide("wlpdj04.gfx.color");wlpdj04.require("wlpdj04.lang.common");wlpdj04.require("wlpdj04.lang.array");wlpdj04.gfx.color.Color=function(E,D,A,B){if(wlpdj04.lang.isArray(E)){this.r=E[0];this.g=E[1];this.b=E[2];this.a=E[3]||1;}else{if(wlpdj04.lang.isString(E)){var C=wlpdj04.gfx.color.extractRGB(E);this.r=C[0];this.g=C[1];this.b=C[2];this.a=D||1;}else{if(E instanceof wlpdj04.gfx.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;}}}};wlpdj04.gfx.color.Color.fromArray=function(A){return new wlpdj04.gfx.color.Color(A[0],A[1],A[2],A[3]);};wlpdj04.extend(wlpdj04.gfx.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 wlpdj04.gfx.color.rgb2hex(this.toRgb());},toCss:function(){return"rgb("+this.toRgb().join()+")";},toString:function(){return this.toHex();},blend:function(A,C){var B=null;if(wlpdj04.lang.isArray(A)){B=A;}else{if(A instanceof wlpdj04.gfx.color.Color){B=A.toRgb();}else{B=new wlpdj04.gfx.color.Color(A).toRgb();}}return wlpdj04.gfx.color.blend(this.toRgb(),B,C);}});wlpdj04.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};wlpdj04.gfx.color.blend=function(C,B,D){if(typeof C=="string"){return wlpdj04.gfx.color.blendHex(C,B,D);}if(!D){D=0;}D=Math.min(Math.max(-1,D),1);D=((D+1)/2);var E=[];for(var A=0;A<3;A++){E[A]=parseInt(B[A]+((C[A]-B[A])*D));}return E;};wlpdj04.gfx.color.blendHex=function(B,A,C){return wlpdj04.gfx.color.rgb2hex(wlpdj04.gfx.color.blend(wlpdj04.gfx.color.hex2rgb(B),wlpdj04.gfx.color.hex2rgb(A),C));};wlpdj04.gfx.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=wlpdj04.gfx.color.hex2rgb(B);if(A){return A;}else{return wlpdj04.gfx.color.named[B]||[255,255,255];}}};wlpdj04.gfx.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;};wlpdj04.gfx.color.rgb2hex=function(D,C,A){if(wlpdj04.lang.isArray(D)){C=D[1]||0;A=D[2]||0;D=D[0]||0;}var B=wlpdj04.lang.map([D,C,A],function(E){E=new Number(E);var F=E.toString(16);while(F.length<2){F="0"+F;}return F;});B.unshift("#");return B.join("");};wlpdj04.provide("wlpdj04.lfx.Animation");wlpdj04.require("wlpdj04.lang.func");wlpdj04.lfx.Line=function(C,A){this.start=C;this.end=A;if(wlpdj04.lang.isArray(C)){var B=[];wlpdj04.lang.forEach(this.start,function(E,D){B[D]=this.end[D]-E;},this);this.getValue=function(E){var D=[];wlpdj04.lang.forEach(this.start,function(G,F){D[F]=(B[F]*E)+G;},this);return D;};}else{var B=A-C;this.getValue=function(D){return(B*D)+this.start;};}};if((wlpdj04.render.html.khtml)&&(!wlpdj04.render.html.safari)){wlpdj04.lfx.easeDefault=function(A){return(parseFloat("0.5")+((Math.sin((A+parseFloat("1.5"))*Math.PI))/2));};}else{wlpdj04.lfx.easeDefault=function(A){return(0.5+((Math.sin((A+1.5)*Math.PI))/2));};}wlpdj04.lfx.easeIn=function(A){return Math.pow(A,3);};wlpdj04.lfx.easeOut=function(A){return(1-Math.pow(1-A,3));};wlpdj04.lfx.easeInOut=function(A){return((3*Math.pow(A,2))-(2*Math.pow(A,3)));};wlpdj04.lfx.IAnimation=function(){};wlpdj04.lang.extend(wlpdj04.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:10,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(A,C,B){if(!B){B=C;C=this;}B=wlpdj04.lang.hitch(C,B);var D=this[A]||function(){};this[A]=function(){var E=D.apply(this,arguments);B.apply(this,arguments);return E;};return this;},fire:function(A,B){if(this[A]){this[A].apply(this,(B||[]));}return this;},repeat:function(A){this.repeatCount=A;return this;},_active:false,_paused:false});wlpdj04.lfx.Animation=function(B,D,E,F,A,C){wlpdj04.lfx.IAnimation.call(this);if(wlpdj04.lang.isNumber(B)||(!B&&D.getValue)){C=A;A=F;F=E;E=D;D=B;B=null;}else{if(B.getValue||wlpdj04.lang.isArray(B)){C=F;A=E;F=D;E=B;D=null;B=null;}}if(wlpdj04.lang.isArray(E)){this.curve=new wlpdj04.lfx.Line(E[0],E[1]);}else{this.curve=E;}if(D!=null&&D>0){this.duration=D;}if(A){this.repeatCount=A;}if(C){this.rate=C;}if(B){wlpdj04.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(G){if(B[G]){this.connect(G,B[G]);}},this);}if(F&&wlpdj04.lang.isFunction(F)){this.easing=F;}};wlpdj04.inherits(wlpdj04.lfx.Animation,wlpdj04.lfx.IAnimation);wlpdj04.lang.extend(wlpdj04.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(B,A){if(A){clearTimeout(this._timer);this._active=false;this._paused=false;this._percent=0;}else{if(this._active&&!this._paused){return this;}}this.fire("handler",["beforeBegin"]);this.fire("beforeBegin");if(B>0){setTimeout(wlpdj04.lang.hitch(this,function(){this.play(null,A);}),B);return this;}this._startTime=new Date().valueOf();if(this._paused){this._startTime-=(this.duration*this._percent/100);}this._endTime=this._startTime+this.duration;this._active=true;this._paused=false;var C=this._percent/100;var D=this.curve.getValue(C);if(this._percent==0){if(!this._startRepeatCount){this._startRepeatCount=this.repeatCount;}this.fire("handler",["begin",D]);this.fire("onBegin",[D]);}this.fire("handler",["play",D]);this.fire("onPlay",[D]);this._cycle();return this;},pause:function(){clearTimeout(this._timer);if(!this._active){return this;}this._paused=true;var A=this.curve.getValue(this._percent/100);this.fire("handler",["pause",A]);this.fire("onPause",[A]);return this;},gotoPercent:function(B,A){clearTimeout(this._timer);this._active=true;this._paused=true;this._percent=B;if(A){this.play();}return this;},stop:function(A){clearTimeout(this._timer);var B=this._percent/100;if(A){B=1;}var C=this.curve.getValue(B);this.fire("handler",["stop",C]);this.fire("onStop",[C]);this._active=false;this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}else{return"stopped";}return this;},_cycle:function(){clearTimeout(this._timer);if(this._active){var C=new Date().valueOf();var A=(C-this._startTime)/(this._endTime-this._startTime);if(A>=1){A=1;this._percent=100;}else{this._percent=A*100;}if((this.easing)&&(wlpdj04.lang.isFunction(this.easing))){A=this.easing(A);}var B=this.curve.getValue(A);this.fire("handler",["animate",B]);this.fire("onAnimate",[B]);if(A<1){this._timer=setTimeout(wlpdj04.lang.hitch(this,"_cycle"),this.rate);}else{this._active=false;this.fire("handler",["end"]);this.fire("onEnd");if(this.repeatCount>0){this.repeatCount--;this.play(null,true);}else{if(this.repeatCount==-1){this.play(null,true);}else{if(this._startRepeatCount){this.repeatCount=this._startRepeatCount;this._startRepeatCount=0;}}}}}return this;}});wlpdj04.lfx.Combine=function(B){wlpdj04.lfx.IAnimation.call(this);this._anims=[];this._animsEnded=0;var A=arguments;if(A.length==1&&(wlpdj04.lang.isArray(A[0])||wlpdj04.lang.isArrayLike(A[0]))){A=A[0];}wlpdj04.lang.forEach(A,function(C){this._anims.push(C);C.connect("onEnd",wlpdj04.lang.hitch(this,"_onAnimsEnded"));},this);};wlpdj04.inherits(wlpdj04.lfx.Combine,wlpdj04.lfx.IAnimation);wlpdj04.lang.extend(wlpdj04.lfx.Combine,{_animsEnded:0,play:function(B,A){if(!this._anims.length){return this;}this.fire("beforeBegin");if(B>0){setTimeout(wlpdj04.lang.hitch(this,function(){this.play(null,A);}),B);return this;}if(A||this._anims[0].percent==0){this.fire("onBegin");}this.fire("onPlay");this._animsCall("play",null,A);return this;},pause:function(){this.fire("onPause");this._animsCall("pause");return this;},stop:function(A){this.fire("onStop");this._animsCall("stop",A);return this;},_onAnimsEnded:function(){this._animsEnded++;if(this._animsEnded>=this._anims.length){this.fire("onEnd");}return this;},_animsCall:function(C){var A=[];if(arguments.length>1){for(var B=1;B<arguments.length;B++){A.push(arguments[B]);}}var D=this;wlpdj04.lang.forEach(this._anims,function(E){E[C](A);},D);return this;}});wlpdj04.lfx.Chain=function(C){wlpdj04.lfx.IAnimation.call(this);this._anims=[];this._currAnim=-1;var A=arguments;if(A.length==1&&(wlpdj04.lang.isArray(A[0])||wlpdj04.lang.isArrayLike(A[0]))){A=A[0];}var B=this;wlpdj04.lang.forEach(A,function(F,E,D){this._anims.push(F);if(E<D.length-1){F.connect("onEnd",wlpdj04.lang.hitch(this,"_playNext"));}else{F.connect("onEnd",wlpdj04.lang.hitch(this,function(){this.fire("onEnd");}));}},this);};wlpdj04.inherits(wlpdj04.lfx.Chain,wlpdj04.lfx.IAnimation);wlpdj04.lang.extend(wlpdj04.lfx.Chain,{_currAnim:-1,play:function(B,A){if(!this._anims.length){return this;}if(A||!this._anims[this._currAnim]){this._currAnim=0;}var C=this._anims[this._currAnim];this.fire("beforeBegin");if(B>0){setTimeout(wlpdj04.lang.hitch(this,function(){this.play(null,A);}),B);return this;}if(C){if(this._currAnim==0){this.fire("handler",["begin",this._currAnim]);this.fire("onBegin",[this._currAnim]);}this.fire("onPlay",[this._currAnim]);C.play(null,A);}return this;},pause:function(){if(this._anims[this._currAnim]){this._anims[this._currAnim].pause();this.fire("onPause",[this._currAnim]);}return this;},playPause:function(){if(this._anims.length==0){return this;}if(this._currAnim==-1){this._currAnim=0;}var A=this._anims[this._currAnim];if(A){if(!A._active||A._paused){this.play();}else{this.pause();}}return this;},stop:function(){var A=this._anims[this._currAnim];if(A){A.stop();this.fire("onStop",[this._currAnim]);}return A;},_playNext:function(){if(this._currAnim==-1||this._anims.length==0){return this;}this._currAnim++;if(this._anims[this._currAnim]){this._anims[this._currAnim].play(null,true);}return this;}});wlpdj04.lfx.combine=function(B){var A=arguments;if(wlpdj04.lang.isArray(arguments[0])){A=arguments[0];}if(A.length==1){return A[0];}return new wlpdj04.lfx.Combine(A);};wlpdj04.lfx.chain=function(B){var A=arguments;if(wlpdj04.lang.isArray(arguments[0])){A=arguments[0];}if(A.length==1){return A[0];}return new wlpdj04.lfx.Chain(A);};wlpdj04.require("wlpdj04.html.style");wlpdj04.provide("wlpdj04.html.color");wlpdj04.require("wlpdj04.gfx.color");wlpdj04.require("wlpdj04.lang.common");wlpdj04.html.getBackgroundColor=function(B){B=wlpdj04.byId(B);var A;do{A=wlpdj04.html.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&&wlpdj04.lang.inArray(["transparent",""],A));if(A=="transparent"){A=[255,255,255,0];}else{A=wlpdj04.gfx.color.extractRGB(A);}return A;};wlpdj04.provide("wlpdj04.lfx.html");wlpdj04.require("wlpdj04.gfx.color");wlpdj04.require("wlpdj04.lfx.Animation");wlpdj04.require("wlpdj04.lang.array");wlpdj04.require("wlpdj04.html.display");wlpdj04.require("wlpdj04.html.color");wlpdj04.require("wlpdj04.html.layout");wlpdj04.lfx.html._byId=function(A){if(!A){return[];}if(wlpdj04.lang.isArrayLike(A)){if(!A.alreadyChecked){var B=[];wlpdj04.lang.forEach(A,function(C){B.push(wlpdj04.byId(C));});B.alreadyChecked=true;return B;}else{return A;}}else{var B=[];B.push(wlpdj04.byId(A));B.alreadyChecked=true;return B;}};wlpdj04.lfx.html.propertyAnimation=function(A,K,D,J,B){A=wlpdj04.lfx.html._byId(A);var I={"propertyMap":K,"nodes":A,"duration":D,"easing":J||wlpdj04.lfx.easeDefault};var G=function(M){if(M.nodes.length==1){var O=M.propertyMap;if(!wlpdj04.lang.isArray(M.propertyMap)){var P=[];for(var N in O){O[N].property=N;P.push(O[N]);}O=M.propertyMap=P;}wlpdj04.lang.forEach(O,function(Q){if(wlpdj04_undef("start",Q)){if(Q.property!="opacity"){Q.start=parseInt(wlpdj04.html.getComputedStyle(M.nodes[0],Q.property));}else{Q.start=wlpdj04.html.getOpacity(M.nodes[0]);}}});}};var E=function(M){var N=[];wlpdj04.lang.forEach(M,function(O){N.push(Math.round(O));});return N;};var H=function(P,N){P=wlpdj04.byId(P);if(!P||!P.style){return ;}for(var M in N){try{if(M=="opacity"){wlpdj04.html.setOpacity(P,N[M]);}else{P.style[M]=N[M];}}catch(O){wlpdj04.debug(O);}}};var F=function(M){this._properties=M;this.diffs=new Array(M.length);wlpdj04.lang.forEach(M,function(O,N){if(wlpdj04.lang.isFunction(O.start)){O.start=O.start(O,N);}if(wlpdj04.lang.isFunction(O.end)){O.end=O.end(O,N);}if(wlpdj04.lang.isArray(O.start)){this.diffs[N]=null;}else{if(O.start instanceof wlpdj04.gfx.color.Color){O.startRgb=O.start.toRgb();O.endRgb=O.end.toRgb();}else{this.diffs[N]=O.end-O.start;}}},this);this.getValue=function(O){var N={};wlpdj04.lang.forEach(this._properties,function(S,Q){var R=null;if(wlpdj04.lang.isArray(S.start)){}else{if(S.start instanceof wlpdj04.gfx.color.Color){R=(S.units||"rgb")+"(";for(var P=0;P<S.startRgb.length;P++){R+=Math.round(((S.endRgb[P]-S.startRgb[P])*O)+S.startRgb[P])+(P<S.startRgb.length-1?",":"");}R+=")";}else{R=((this.diffs[Q])*O)+S.start+(S.property!="opacity"?S.units||"px":"");}}N[wlpdj04.html.toCamelCase(S.property)]=R;},this);return N;};};var C=new wlpdj04.lfx.Animation({beforeBegin:function(){G(I);C.curve=new F(I.propertyMap);},onAnimate:function(M){wlpdj04.lang.forEach(I.nodes,function(N){H(N,M);});}},I.duration,null,I.easing);if(B){for(var L in B){if(wlpdj04.lang.isFunction(B[L])){C.connect(L,C,B[L]);}}}return C;};wlpdj04.lfx.html._makeFadeable=function(A){var B=function(C){if(wlpdj04.render.html.ie){if((C.style.zoom.length==0)&&(wlpdj04.html.getStyle(C,"zoom")=="normal")){C.style.zoom="1";}if((C.style.width.length==0)&&(wlpdj04.html.getStyle(C,"width")=="auto")){C.style.width="auto";}}};if(wlpdj04.lang.isArrayLike(A)){wlpdj04.lang.forEach(A,B);}else{B(A);}};wlpdj04.lfx.html.fade=function(B,A,E,G,F){B=wlpdj04.lfx.html._byId(B);var C={property:"opacity"};if(!wlpdj04_undef("start",A)){C.start=A.start;}else{C.start=function(){return wlpdj04.html.getOpacity(B[0]);};}if(!wlpdj04_undef("end",A)){C.end=A.end;}else{wlpdj04.raise("wlpdj04.lfx.html.fade needs an end value");}var D=wlpdj04.lfx.propertyAnimation(B,[C],E,G);D.connect("beforeBegin",function(){wlpdj04.lfx.html._makeFadeable(B);});if(F){D.connect("onEnd",function(){F(B,D);});}return D;};wlpdj04.lfx.html.fadeIn=function(A,B,D,C){return wlpdj04.lfx.html.fade(A,{end:1},B,D,C);};wlpdj04.lfx.html.fadeOut=function(A,B,D,C){return wlpdj04.lfx.html.fade(A,{end:0},B,D,C);};wlpdj04.lfx.html.fadeShow=function(A,C,E,D){A=wlpdj04.lfx.html._byId(A);wlpdj04.lang.forEach(A,function(F){wlpdj04.html.setOpacity(F,0);});var B=wlpdj04.lfx.html.fadeIn(A,C,E,D);B.connect("beforeBegin",function(){if(wlpdj04.lang.isArrayLike(A)){wlpdj04.lang.forEach(A,wlpdj04.html.show);}else{wlpdj04.html.show(A);}});return B;};wlpdj04.lfx.html.fadeHide=function(A,C,E,D){var B=wlpdj04.lfx.html.fadeOut(A,C,E,function(){if(wlpdj04.lang.isArrayLike(A)){wlpdj04.lang.forEach(A,wlpdj04.html.hide);}else{wlpdj04.html.hide(A);}if(D){D(A,B);}});return B;};wlpdj04.lfx.html.wipeIn=function(nodes,duration,easing,callback){nodes=wlpdj04.lfx.html._byId(nodes);var anims=[];wlpdj04.lang.forEach(nodes,function(node){var oprop={};var origTop,origLeft,origPosition;with(node.style){origTop=top;origLeft=left;origPosition=position;top="-9999px";left="-9999px";position="absolute";display="";}var nodeHeight=wlpdj04.html.getBorderBox(node).height;with(node.style){top=origTop;left=origLeft;position=origPosition;display="none";}var anim=wlpdj04.lfx.propertyAnimation(node,{"height":{start:1,end:function(){return nodeHeight;}}},duration,easing);anim.connect("beforeBegin",function(){oprop.overflow=node.style.overflow;oprop.height=node.style.height;with(node.style){overflow="hidden";height="1px";}wlpdj04.html.show(node);});anim.connect("onEnd",function(){with(node.style){overflow=oprop.overflow;height=oprop.height;}if(callback){callback(node,anim);}});anims.push(anim);});return wlpdj04.lfx.combine(anims);};wlpdj04.lfx.html.wipeOut=function(nodes,duration,easing,callback){nodes=wlpdj04.lfx.html._byId(nodes);var anims=[];wlpdj04.lang.forEach(nodes,function(node){var oprop={};var anim=wlpdj04.lfx.propertyAnimation(node,{"height":{start:function(){return wlpdj04.html.getContentBox(node).height;},end:1}},duration,easing,{"beforeBegin":function(){oprop.overflow=node.style.overflow;oprop.height=node.style.height;with(node.style){overflow="hidden";}wlpdj04.html.show(node);},"onEnd":function(){wlpdj04.html.hide(node);with(node.style){overflow=oprop.overflow;height=oprop.height;}if(callback){callback(node,anim);}}});anims.push(anim);});return wlpdj04.lfx.combine(anims);};wlpdj04.lfx.html.slideTo=function(B,C,E,G,F){B=wlpdj04.lfx.html._byId(B);var A=[];var D=wlpdj04.html.getComputedStyle;if(wlpdj04.lang.isArray(C)){wlpdj04.deprecated("wlpdj04.lfx.html.slideTo(node, array)","use wlpdj04.lfx.html.slideTo(node, {top: value, left: value});","0.5");C={top:C[0],left:C[1]};}wlpdj04.lang.forEach(B,function(H){var K=null;var J=null;var L=(function(){var M=H;return function(){var O=D(M,"position");K=(O=="absolute"?H.offsetTop:parseInt(D(H,"top"))||0);J=(O=="absolute"?H.offsetLeft:parseInt(D(H,"left"))||0);if(!wlpdj04.lang.inArray(["absolute","relative"],O)){var N=wlpdj04.html.abs(M,true);wlpdj04.html.setStyleAttributes(M,"position:absolute;top:"+N.y+"px;left:"+N.x+"px;");K=N.y;J=N.x;}};})();L();var I=wlpdj04.lfx.propertyAnimation(H,{"top":{start:K,end:(C.top||0)},"left":{start:J,end:(C.left||0)}},E,G,{"beforeBegin":L});if(F){I.connect("onEnd",function(){F(B,I);});}A.push(I);});return wlpdj04.lfx.combine(A);};wlpdj04.lfx.html.slideBy=function(B,C,E,G,F){B=wlpdj04.lfx.html._byId(B);var A=[];var D=wlpdj04.html.getComputedStyle;if(wlpdj04.lang.isArray(C)){wlpdj04.deprecated("wlpdj04.lfx.html.slideBy(node, array)","use wlpdj04.lfx.html.slideBy(node, {top: value, left: value});","0.5");C={top:C[0],left:C[1]};}wlpdj04.lang.forEach(B,function(H){var K=null;var J=null;var L=(function(){var M=H;return function(){var O=D(M,"position");K=(O=="absolute"?H.offsetTop:parseInt(D(H,"top"))||0);J=(O=="absolute"?H.offsetLeft:parseInt(D(H,"left"))||0);if(!wlpdj04.lang.inArray(["absolute","relative"],O)){var N=wlpdj04.html.abs(M,true);wlpdj04.html.setStyleAttributes(M,"position:absolute;top:"+N.y+"px;left:"+N.x+"px;");K=N.y;J=N.x;}};})();L();var I=wlpdj04.lfx.propertyAnimation(H,{"top":{start:K,end:K+(C.top||0)},"left":{start:J,end:J+(C.left||0)}},E,G).connect("beforeBegin",L);if(F){I.connect("onEnd",function(){F(B,I);});}A.push(I);});return wlpdj04.lfx.combine(A);};wlpdj04.lfx.html.explode=function(start,endNode,duration,easing,callback){var h=wlpdj04.html;start=wlpdj04.byId(start);endNode=wlpdj04.byId(endNode);var startCoords=h.toCoordinateObject(start,true);var outline=document.createElement("div");h.copyStyle(outline,endNode);if(endNode.explodeClassName){outline.className=endNode.explodeClassName;}with(outline.style){position="absolute";display="none";var backgroundStyle=h.getStyle(start,"background-color");backgroundColor=backgroundStyle?backgroundStyle.toLowerCase():"transparent";backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;}wlpdj04.body().appendChild(outline);with(endNode.style){visibility="hidden";display="block";}var endCoords=h.toCoordinateObject(endNode,true);with(endNode.style){display="none";visibility="visible";}var props={opacity:{start:0.5,end:1}};wlpdj04.lang.forEach(["height","width","top","left"],function(type){props[type]={start:startCoords[type],end:endCoords[type]};});var anim=new wlpdj04.lfx.propertyAnimation(outline,props,duration,easing,{"beforeBegin":function(){h.setDisplay(outline,"block");},"onEnd":function(){h.setDisplay(endNode,"block");outline.parentNode.removeChild(outline);}});if(callback){anim.connect("onEnd",function(){callback(endNode,anim);});}return anim;};wlpdj04.lfx.html.implode=function(startNode,end,duration,easing,callback){var h=wlpdj04.html;startNode=wlpdj04.byId(startNode);end=wlpdj04.byId(end);var startCoords=wlpdj04.html.toCoordinateObject(startNode,true);var endCoords=wlpdj04.html.toCoordinateObject(end,true);var outline=document.createElement("div");wlpdj04.html.copyStyle(outline,startNode);if(startNode.explodeClassName){outline.className=startNode.explodeClassName;}wlpdj04.html.setOpacity(outline,0.3);with(outline.style){position="absolute";display="none";backgroundColor=h.getStyle(startNode,"background-color").toLowerCase();}wlpdj04.body().appendChild(outline);var props={opacity:{start:1,end:0.5}};wlpdj04.lang.forEach(["height","width","top","left"],function(type){props[type]={start:startCoords[type],end:endCoords[type]};});var anim=new wlpdj04.lfx.propertyAnimation(outline,props,duration,easing,{"beforeBegin":function(){wlpdj04.html.hide(startNode);wlpdj04.html.show(outline);},"onEnd":function(){outline.parentNode.removeChild(outline);}});if(callback){anim.connect("onEnd",function(){callback(startNode,anim);});}return anim;};wlpdj04.lfx.html.highlight=function(B,D,C,F,E){B=wlpdj04.lfx.html._byId(B);var A=[];wlpdj04.lang.forEach(B,function(L){var H=wlpdj04.html.getBackgroundColor(L);var K=wlpdj04.html.getStyle(L,"background-color").toLowerCase();var G=wlpdj04.html.getStyle(L,"background-image");var J=(K=="transparent"||K=="rgba(0, 0, 0, 0)");while(H.length>3){H.pop();}var I=new wlpdj04.gfx.color.Color(D);var N=new wlpdj04.gfx.color.Color(H);var M=wlpdj04.lfx.propertyAnimation(L,{"background-color":{start:I,end:N}},C,F,{"beforeBegin":function(){if(G){L.style.backgroundImage="none";}L.style.backgroundColor="rgb("+I.toRgb().join(",")+")";},"onEnd":function(){if(G){L.style.backgroundImage=G;}if(J){L.style.backgroundColor="transparent";}if(E){E(L,M);}}});A.push(M);});return wlpdj04.lfx.combine(A);};wlpdj04.lfx.html.unhighlight=function(B,C,D,F,E){B=wlpdj04.lfx.html._byId(B);var A=[];wlpdj04.lang.forEach(B,function(J){var H=new wlpdj04.gfx.color.Color(wlpdj04.html.getBackgroundColor(J));var I=new wlpdj04.gfx.color.Color(C);var G=wlpdj04.html.getStyle(J,"background-image");var K=wlpdj04.lfx.propertyAnimation(J,{"background-color":{start:H,end:I}},D,F,{"beforeBegin":function(){if(G){J.style.backgroundImage="none";}J.style.backgroundColor="rgb("+H.toRgb().join(",")+")";},"onEnd":function(){if(E){E(J,K);}}});A.push(K);});return wlpdj04.lfx.combine(A);};wlpdj04.lang.mixin(wlpdj04.lfx,wlpdj04.lfx.html);wlpdj04.kwCompoundRequire({browser:["wlpdj04.lfx.html"],dashboard:["wlpdj04.lfx.html"]});wlpdj04.provide("wlpdj04.lfx.*");wlpdj04.provide("wlpdj04.dnd.HtmlDragAndDrop");wlpdj04.require("wlpdj04.dnd.HtmlDragManager");wlpdj04.require("wlpdj04.dnd.DragAndDrop");wlpdj04.require("wlpdj04.html.*");wlpdj04.require("wlpdj04.html.display");wlpdj04.require("wlpdj04.html.util");wlpdj04.require("wlpdj04.html.selection");wlpdj04.require("wlpdj04.html.iframe");wlpdj04.require("wlpdj04.lang.extras");wlpdj04.require("wlpdj04.lfx.*");wlpdj04.require("wlpdj04.event.*");wlpdj04.declare("wlpdj04.dnd.HtmlDragSource",wlpdj04.dnd.DragSource,{dragClass:"",onDragStart:function(){var A=new wlpdj04.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=wlpdj04.byId(A);wlpdj04.dnd.dragManager.unregisterDragSource(this);this.domNode=A;wlpdj04.dnd.dragManager.registerDragSource(this);},setDragTarget:function(A){this.dragObject=A;},constrainTo:function(A){this.constrainToContainer=true;if(A){this.constrainingContainer=A;}},onSelected:function(){for(var A=0;A<this.dragObjects.length;A++){wlpdj04.dnd.dragManager.selectedSources.push(new wlpdj04.dnd.HtmlDragSource(this.dragObjects[A]));}},addDragObjects:function(B){for(var A=0;A<arguments.length;A++){this.dragObjects.push(wlpdj04.byId(arguments[A]));}}},function(B,A){B=wlpdj04.byId(B);this.dragObjects=[];this.constrainToContainer=false;if(B){this.domNode=B;this.dragObject=B;this.type=(A)||(this.domNode.nodeName.toLowerCase());wlpdj04.dnd.DragSource.prototype.reregister.call(this);}});wlpdj04.declare("wlpdj04.dnd.HtmlDragObject",wlpdj04.dnd.DragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){var node=this.domNode.cloneNode(true);if(this.dragClass){wlpdj04.html.addClass(node,this.dragClass);}if(this.opacity<1){wlpdj04.html.setOpacity(node,this.opacity);}var ltn=node.tagName.toLowerCase();var isTr=(ltn=="tr");if((isTr)||(ltn=="tbody")){var doc=this.domNode.ownerDocument;var table=doc.createElement("table");if(isTr){var tbody=doc.createElement("tbody");table.appendChild(tbody);tbody.appendChild(node);}else{table.appendChild(node);}var tmpSrcTr=((isTr)?this.domNode:this.domNode.firstChild);var tmpDstTr=((isTr)?node:node.firstChild);var domTds=tmpSrcTr.childNodes;var cloneTds=tmpDstTr.childNodes;for(var i=0;i<domTds.length;i++){if((cloneTds[i])&&(cloneTds[i].style)){cloneTds[i].style.width=wlpdj04.html.getContentBox(domTds[i]).width+"px";}}node=table;}if((wlpdj04.render.html.ie55||wlpdj04.render.html.ie60)&&this.createIframe){with(node.style){top="0px";left="0px";}var outer=document.createElement("div");outer.appendChild(node);this.bgIframe=new wlpdj04.html.BackgroundIframe(outer);outer.appendChild(this.bgIframe.iframe);node=outer;}node.style.zIndex=999;return node;},onDragStart:function(e){wlpdj04.html.clearSelection();this.scrollOffset=wlpdj04.html.getScroll().offset;this.dragStartPosition=wlpdj04.html.getAbsolutePosition(this.domNode,true);this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};this.dragClone=this.createDragNode();this.containingBlockPosition=this.domNode.offsetParent?wlpdj04.html.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};if(this.constrainToContainer){this.constraints=this.getConstraints();}with(this.dragClone.style){position="absolute";top=this.dragOffset.y+e.pageY+"px";left=this.dragOffset.x+e.pageX+"px";}wlpdj04.body().appendChild(this.dragClone);wlpdj04.event.topic.publish("dragStart",{source:this});},getConstraints:function(){if(this.constrainingContainer.nodeName.toLowerCase()=="body"){var D=wlpdj04.html.getViewport();var E=D.width;var C=D.height;var B=wlpdj04.html.getScroll().offset;var A=B.x;var H=B.y;}else{var F=wlpdj04.html.getContentBox(this.constrainingContainer);E=F.width;C=F.height;A=this.containingBlockPosition.x+wlpdj04.html.getPixelValue(this.constrainingContainer,"padding-left",true)+wlpdj04.html.getBorderExtent(this.constrainingContainer,"left");H=this.containingBlockPosition.y+wlpdj04.html.getPixelValue(this.constrainingContainer,"padding-top",true)+wlpdj04.html.getBorderExtent(this.constrainingContainer,"top");}var G=wlpdj04.html.getMarginBox(this.domNode);return{minX:A,minY:H,maxX:A+E-G.width,maxY:H+C-G.height};},updateDragOffset:function(){var A=wlpdj04.html.getScroll().offset;if(A.y!=this.scrollOffset.y){var B=A.y-this.scrollOffset.y;this.dragOffset.y+=B;this.scrollOffset.y=A.y;}if(A.x!=this.scrollOffset.x){var B=A.x-this.scrollOffset.x;this.dragOffset.x+=B;this.scrollOffset.x=A.x;}},onDragMove:function(B){this.updateDragOffset();var A=this.dragOffset.x+B.pageX;var C=this.dragOffset.y+B.pageY;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;}}this.setAbsolutePosition(A,C);wlpdj04.event.topic.publish("dragMove",{source:this});},setAbsolutePosition:function(A,B){if(!this.disableY){this.dragClone.style.top=B+"px";}if(!this.disableX){this.dragClone.style.left=A+"px";}},onDragEnd:function(E){switch(E.dragStatus){case"dropSuccess":wlpdj04.html.removeNode(this.dragClone);this.dragClone=null;break;case"dropFailure":var D=wlpdj04.html.getAbsolutePosition(this.dragClone,true);var A={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};var C=wlpdj04.lfx.slideTo(this.dragClone,A,300);var B=this;wlpdj04.event.connect(C,"onEnd",function(F){wlpdj04.html.removeNode(B.dragClone);B.dragClone=null;});C.play();break;}wlpdj04.event.topic.publish("dragEnd",{source:this});},constrainTo:function(A){this.constrainToContainer=true;if(A){this.constrainingContainer=A;}else{this.constrainingContainer=this.domNode.parentNode;}}},function(B,A){this.domNode=wlpdj04.byId(B);this.type=A;this.constrainToContainer=false;this.dragSource=null;wlpdj04.dnd.DragObject.prototype.register.call(this);});wlpdj04.declare("wlpdj04.dnd.HtmlDropTarget",wlpdj04.dnd.DropTarget,{vertical:false,onDragOver:function(C){if(!this.accepts(C.dragObjects)){return false;}this.childBoxes=[];for(var B=0,E;B<this.domNode.childNodes.length;B++){E=this.domNode.childNodes[B];if(E.nodeType!=wlpdj04.html.ELEMENT_NODE){continue;}var D=wlpdj04.html.getAbsolutePosition(E,true);var A=wlpdj04.html.getBorderBox(E);this.childBoxes.push({top:D.y,bottom:D.y+A.height,left:D.x,right:D.x+A.width,height:A.height,width:A.width,node:E});}return true;},_getNodeUnderMouse:function(e){for(var i=0,child;i<this.childBoxes.length;i++){with(this.childBoxes[i]){if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){return i;}}}return -1;},createDropIndicator:function(){this.dropIndicator=document.createElement("div");with(this.dropIndicator.style){position="absolute";zIndex=999;if(this.vertical){borderLeftWidth="1px";borderLeftColor="black";borderLeftStyle="solid";height=wlpdj04.html.getBorderBox(this.domNode).height+"px";top=wlpdj04.html.getAbsolutePosition(this.domNode,true).y+"px";}else{borderTopWidth="1px";borderTopColor="black";borderTopStyle="solid";width=wlpdj04.html.getBorderBox(this.domNode).width+"px";left=wlpdj04.html.getAbsolutePosition(this.domNode,true).x+"px";}}},onDragMove:function(F,C){var B=this._getNodeUnderMouse(F);if(!this.dropIndicator){this.createDropIndicator();}var H=this.vertical?wlpdj04.html.gravity.WEST:wlpdj04.html.gravity.NORTH;var A=false;if(B<0){if(this.childBoxes.length){var E=(wlpdj04.html.gravity(this.childBoxes[0].node,F)&H);if(E){A=true;}}else{var E=true;}}else{var G=this.childBoxes[B];var E=(wlpdj04.html.gravity(G.node,F)&H);if(G.node===C[0].dragSource.domNode){A=true;}else{var D=E?(B>0?this.childBoxes[B-1]:G):(B<this.childBoxes.length-1?this.childBoxes[B+1]:G);if(D.node===C[0].dragSource.domNode){A=true;}}}if(A){this.dropIndicator.style.display="none";return ;}else{this.dropIndicator.style.display="";}this.placeIndicator(F,C,B,E);if(!wlpdj04.html.hasParent(this.dropIndicator)){wlpdj04.body().appendChild(this.dropIndicator);}},placeIndicator:function(E,C,B,D){var A=this.vertical?"left":"top";var F;if(B<0){if(this.childBoxes.length){F=D?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];}else{this.dropIndicator.style[A]=wlpdj04.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";}}else{F=this.childBoxes[B];}if(F){this.dropIndicator.style[A]=(D?F[A]:F[this.vertical?"right":"bottom"])+"px";if(this.vertical){this.dropIndicator.style.height=F.height+"px";this.dropIndicator.style.top=F.top+"px";}else{this.dropIndicator.style.width=F.width+"px";this.dropIndicator.style.left=F.left+"px";}}},onDragOut:function(A){if(this.dropIndicator){wlpdj04.html.removeNode(this.dropIndicator);delete this.dropIndicator;}},onDrop:function(B){this.onDragOut(B);var A=this._getNodeUnderMouse(B);var D=this.vertical?wlpdj04.html.gravity.WEST:wlpdj04.html.gravity.NORTH;if(A<0){if(this.childBoxes.length){if(wlpdj04.html.gravity(this.childBoxes[0].node,B)&D){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(wlpdj04.html.gravity(C.node,B)&D){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 wlpdj04.html.insertBefore(C,B);}else{if(A=="after"){return wlpdj04.html.insertAfter(C,B);}else{if(A=="append"){B.appendChild(C);return true;}}}return false;}},function(B,A){if(arguments.length==0){return ;}this.domNode=wlpdj04.byId(B);wlpdj04.dnd.DropTarget.call(this);if(A&&wlpdj04.lang.isString(A)){A=[A];}this.acceptedTypes=A||[];wlpdj04.dnd.dragManager.registerDropTarget(this);});wlpdj04.provide("wlpdj04.string.common");wlpdj04.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,"");};wlpdj04.string.trimStart=function(A){return wlpdj04.string.trim(A,1);};wlpdj04.string.trimEnd=function(A){return wlpdj04.string.trim(A,-1);};wlpdj04.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;};wlpdj04.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;};wlpdj04.string.padLeft=function(B,A,C){return wlpdj04.string.pad(B,A,C,1);};wlpdj04.string.padRight=function(B,A,C){return wlpdj04.string.pad(B,A,C,-1);};wlpdj04.provide("wlpdj04.string");wlpdj04.require("wlpdj04.string.common");wlpdj04.provide("wlpdj04.io.common");wlpdj04.require("wlpdj04.string");wlpdj04.require("wlpdj04.lang.extras");wlpdj04.io.transports=[];wlpdj04.io.hdlrFuncNames=["load","error","timeout"];wlpdj04.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;}}};wlpdj04.lang.extend(wlpdj04.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,jsonFilter:function(C){if((this.mimetype=="text/json-comment-filtered")||(this.mimetype=="application/json-comment-filtered")){var A=C.indexOf("/*");var B=C.lastIndexOf("*/");if((A==-1)||(B==-1)){wlpdj04.debug("your JSON wasn't comment filtered!");return"";}return C.substring(A+2,B);}wlpdj04.debug("please consider using a mimetype of text/json-comment-filtered to avoid potential security issues with JSON endpoints");return C;},load:function(B,C,D,A){},error:function(C,A,D,B){},timeout:function(B,C,D,A){},handle:function(B,C,D,A){},timeoutSeconds:0,abort:function(){},fromKwArgs:function(B){if(B["url"]){B.url=B.url.toString();}if(B["formNode"]){B.formNode=wlpdj04.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=wlpdj04.lang.firstValued(B["encoding"],wlpdj04Config["bindEncoding"],"");B.sendTransport=wlpdj04.lang.firstValued(B["sendTransport"],wlpdj04Config["ioSendTransport"],false);var D=wlpdj04.lang.isFunction;for(var A=0;A<wlpdj04.io.hdlrFuncNames.length;A++){var C=wlpdj04.io.hdlrFuncNames[A];if(B[C]&&D(B[C])){continue;}if(B["handle"]&&D(B["handle"])){B[C]=B.handle;}}wlpdj04.lang.mixin(this,B);}});wlpdj04.io.Error=function(C,B,A){this.message=C;this.type=B||"unknown";this.number=A||0;};wlpdj04.io.transports.addTransport=function(A){this.push(A);this[A]=wlpdj04.io[A];};wlpdj04.io.bind=function(D){if(!(D instanceof wlpdj04.io.Request)){try{D=new wlpdj04.io.Request(D);}catch(E){wlpdj04.debug(E);}}var C="";if(D["transport"]){C=D["transport"];if(!this[C]){wlpdj04.io.sendBindError(D,"No wlpdj04.io.bind() transport with name '"+D["transport"]+"'.");return D;}if(!this[C].canHandle(D)){wlpdj04.io.sendBindError(D,"wlpdj04.io.bind() transport with name '"+D["transport"]+"' cannot handle this type of request.");return D;}}else{for(var A=0;A<wlpdj04.io.transports.length;A++){var B=wlpdj04.io.transports[A];if((this[B])&&(this[B].canHandle(D))){C=B;break;}}if(C==""){wlpdj04.io.sendBindError(D,"None of the loaded transports for wlpdj04.io.bind()"+" can handle the request.");return D;}}this[C].bind(D);D.bindSuccess=true;return D;};wlpdj04.io.sendBindError=function(C,B){if((typeof C.error=="function"||typeof C.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){var A=new wlpdj04.io.Error(B);setTimeout(function(){C[(typeof C.error=="function")?"error":"handle"]("error",A,null,C);},50);}else{wlpdj04.raise(B);}};wlpdj04.io.queueBind=function(A){if(!(A instanceof wlpdj04.io.Request)){try{A=new wlpdj04.io.Request(A);}catch(B){wlpdj04.debug(B);}}var C=A.load;A.load=function(){wlpdj04.io._queueBindInFlight=false;var E=C.apply(this,arguments);wlpdj04.io._dispatchNextQueueBind();return E;};var D=A.error;A.error=function(){wlpdj04.io._queueBindInFlight=false;var E=D.apply(this,arguments);wlpdj04.io._dispatchNextQueueBind();return E;};wlpdj04.io._bindQueue.push(A);wlpdj04.io._dispatchNextQueueBind();return A;};wlpdj04.io._dispatchNextQueueBind=function(){if(!wlpdj04.io._queueBindInFlight){wlpdj04.io._queueBindInFlight=true;if(wlpdj04.io._bindQueue.length>0){wlpdj04.io.bind(wlpdj04.io._bindQueue.shift());}else{wlpdj04.io._queueBindInFlight=false;}}};wlpdj04.io._bindQueue=[];wlpdj04.io._queueBindInFlight=false;wlpdj04.io.argsFromMap=function(A,C,I){var D=/utf/i.test(C||"")?encodeURIComponent:wlpdj04.string.encodeAscii;var G=[];var E=new Object();for(var B in A){var F=function(J){var K=D(B)+"="+D(J);G[(I==B)?"push":"unshift"](K);};if(!E[B]){var H=A[B];if(wlpdj04.lang.isArray(H)){wlpdj04.lang.forEach(H,F);}else{F(H);}}}return G.join("&");};wlpdj04.io.setIFrameSrc=function(C,F,B){try{var D=wlpdj04.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.safari){A=C.document;}else{A=C.contentWindow;}}if(!A){C.location=F;return ;}else{A.location.replace(F);}}}catch(E){wlpdj04.debug(E);wlpdj04.debug("setIFrameSrc: "+E);}};wlpdj04.provide("wlpdj04.string.extras");wlpdj04.require("wlpdj04.string.common");wlpdj04.require("wlpdj04.lang.common");wlpdj04.require("wlpdj04.lang.array");wlpdj04.string.substituteParams=function(A,C){var B=(typeof C=="object")?C:wlpdj04.lang.toArray(arguments,1);return A.replace(/\%\{(\w+)\}/g,function(D,E){if(typeof (B[E])!="undefined"&&B[E]!=null){return B[E];}wlpdj04.raise("Substitution not found: "+E);});};wlpdj04.string.capitalize=function(C){if(!wlpdj04.lang.isString(C)){return"";}if(arguments.length==0){C=this;}var B=C.split(" ");for(var A=0;A<B.length;A++){B[A]=B[A].charAt(0).toUpperCase()+B[A].substring(1);}return B.join(" ");};wlpdj04.string.isBlank=function(A){if(!wlpdj04.lang.isString(A)){return true;}return(wlpdj04.string.trim(A).length==0);};wlpdj04.string.encodeAscii=function(G){if(!wlpdj04.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;};wlpdj04.string.escape=function(B,C){var A=wlpdj04.lang.toArray(arguments,1);switch(B.toLowerCase()){case"xml":case"html":case"xhtml":return wlpdj04.string.escapeXml.apply(this,A);case"sql":return wlpdj04.string.escapeSql.apply(this,A);case"regexp":case"regex":return wlpdj04.string.escapeRegExp.apply(this,A);case"javascript":case"jscript":case"js":return wlpdj04.string.escapeJavaScript.apply(this,A);case"ascii":return wlpdj04.string.encodeAscii.apply(this,A);default:return C;}};wlpdj04.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;};wlpdj04.string.escapeSql=function(A){return A.replace(/'/gm,"''");};wlpdj04.string.escapeRegExp=function(A){return A.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");};wlpdj04.string.escapeJavaScript=function(A){return A.replace(/(["'\f\b\n\t\r])/gm,"\\$1");};wlpdj04.string.escapeString=function(A){return('"'+A.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};wlpdj04.string.summary=function(B,A){if(!A||B.length<=A){return B;}return B.substring(0,A).replace(/\.+$/,"")+"...";};wlpdj04.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;};wlpdj04.string.endsWithAny=function(B){for(var A=1;A<arguments.length;A++){if(wlpdj04.string.endsWith(B,arguments[A])){return true;}}return false;};wlpdj04.string.startsWith=function(B,C,A){if(A){B=B.toLowerCase();C=C.toLowerCase();}return B.indexOf(C)==0;};wlpdj04.string.startsWithAny=function(B){for(var A=1;A<arguments.length;A++){if(wlpdj04.string.startsWith(B,arguments[A])){return true;}}return false;};wlpdj04.string.has=function(B){for(var A=1;A<arguments.length;A++){if(B.indexOf(arguments[A])>-1){return true;}}return false;};wlpdj04.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").replace(/\r([^\n])/g,"\r\n$1");}}return B;};wlpdj04.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;};wlpdj04.provide("wlpdj04.undo.browser");wlpdj04.require("wlpdj04.io.common");try{if((!wlpdj04Config["preventBackButtonFix"])&&(!wlpdj04.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='"+(wlpdj04Config["wlpdj04IframeHistoryUrl"]||wlpdj04.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");}}catch(e){}if(wlpdj04.render.html.opera){wlpdj04.debug("Opera is not supported with wlpdj04.undo.browser, so back/forward detection will not work.");}wlpdj04.undo.browser={initialHref:(!wlpdj04_undef("window"))?window.location.href:"",initialHash:(!wlpdj04_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(A){this.initialState=this._createState(this.initialHref,A,this.initialHash);},addToHistory:function(B){this.forwardStack=[];var E=null;var A=null;if(!this.historyIframe){if(wlpdj04Config["useXDomain"]&&!wlpdj04Config["wlpdj04IframeHistoryUrl"]){wlpdj04.debug("wlpdj04.undo.browser: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set wlpdj04Config.wlpdj04IframeHistoryUrl"+" to the path on your domain to iframe_history.html");}this.historyIframe=window.frames["djhistory"];}if(!this.bookmarkAnchor){this.bookmarkAnchor=document.createElement("a");wlpdj04.body().appendChild(this.bookmarkAnchor);this.bookmarkAnchor.style.display="none";}if(B["changeUrl"]){E="#"+((B["changeUrl"]!==true)?B["changeUrl"]:(new Date()).getTime());if(this.historyStack.length==0&&this.initialState.urlHash==E){this.initialState=this._createState(A,B,E);return ;}else{if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==E){this.historyStack[this.historyStack.length-1]=this._createState(A,B,E);return ;}}this.changingUrl=true;setTimeout("window.location.href = '"+E+"'; wlpdj04.undo.browser.changingUrl = false;",1);this.bookmarkAnchor.href=E;if(wlpdj04.render.html.ie){A=this._loadIframeHistory();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;}}}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(wlpdj04.render.html.moz){if(!this.locationTimer){this.locationTimer=setInterval("wlpdj04.undo.browser.checkLocation();",200);}}}}else{A=this._loadIframeHistory();}this.historyStack.push(this._createState(A,B,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){if(!wlpdj04.render.html.opera){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);},_createState:function(B,A,C){return{"url":B,"kwArgs":A,"urlHash":C};},_getUrlQuery:function(B){var A=B.split("?");if(A.length<2){return null;}else{return A[1];}},_loadIframeHistory:function(){var A=(wlpdj04Config["wlpdj04IframeHistoryUrl"]||wlpdj04.hostenv.getBaseScriptUri()+"iframe_history.html")+"?"+(new Date()).getTime();this.moveForward=true;wlpdj04.io.setIFrameSrc(this.historyIframe,A,false);return A;}};wlpdj04.provide("wlpdj04.io.BrowserIO");wlpdj04.require("wlpdj04.io.common");wlpdj04.require("wlpdj04.lang.array");wlpdj04.require("wlpdj04.lang.func");wlpdj04.require("wlpdj04.string.extras");wlpdj04.require("wlpdj04.dom");wlpdj04.require("wlpdj04.undo.browser");if(!wlpdj04_undef("window")){wlpdj04.io.checkChildrenForFile=function(B){var C=false;var A=B.getElementsByTagName("input");wlpdj04.lang.forEach(A,function(D){if(C){return ;}if(D.getAttribute("type")=="file"){C=true;}});return C;};wlpdj04.io.formHasFile=function(A){return wlpdj04.io.checkChildrenForFile(A);};wlpdj04.io.updateNode=function(B,C){B=wlpdj04.byId(B);var A=C;if(wlpdj04.lang.isString(C)){A={url:C};}A.mimetype="text/html";A.load=function(D,F,E){while(B.firstChild){wlpdj04.dom.destroyNode(B.firstChild);}B.innerHTML=F;};wlpdj04.io.bind(A);};wlpdj04.io.formFilter=function(B){var A=(B.type||"").toLowerCase();return !B.disabled&&B.name&&!wlpdj04.lang.inArray(["file","submit","image","reset","button"],A);};wlpdj04.io.encodeForm=function(A,C,K){if((!A)||(!A.tagName)||(!A.tagName.toLowerCase()=="form")){wlpdj04.raise("Attempted to encode a non-form element.");}if(!K){K=wlpdj04.io.formFilter;}var E=/utf/i.test(C||"")?encodeURIComponent:wlpdj04.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(wlpdj04.lang.inArray(["radio","checkbox"],I)){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("&")+"&";};wlpdj04.io.FormBind=function(A){this.bindArgs={};if(A&&A.formNode){this.init(A);}else{if(A){this.init({formNode:A});}}};wlpdj04.lang.extend(wlpdj04.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(C){var F=wlpdj04.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");}}}wlpdj04.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&&wlpdj04.lang.inArray(["submit","button"],E.type.toLowerCase())){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)){wlpdj04.io.bind(wlpdj04.lang.mixin(this.bindArgs,{formFilter:wlpdj04.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(wlpdj04.lang.inArray(["submit","button","image"],B)){if(!this.clickedButton){this.clickedButton=C;}A=C==this.clickedButton;}else{A=!wlpdj04.lang.inArray(["file","submit","reset","button"],B);}}return A;},connect:function(A,B,C){if(wlpdj04.evalObjPath("wlpdj04.event.connect")){wlpdj04.event.connect(A,B,this,C);}else{var D=wlpdj04.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);};}}});wlpdj04.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){if(((S.status>=200)&&(S.status<300))||(S.status==304)||(S.status==1223)||(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=wlpdj04_eval(S.responseText);}catch(O){wlpdj04.debug(O);wlpdj04.debug(S.responseText);P=null;}}else{if(N.mimetype.substr(0,9)=="text/json"||N.mimetype.substr(0,16)=="application/json"){try{P=wlpdj04_eval("("+N.jsonFilter(S.responseText)+")");}catch(O){wlpdj04.debug(O);wlpdj04.debug(S.responseText);P=false;}}else{if((N.mimetype=="application/xml")||(N.mimetype=="text/xml")){P=S.responseXML;if(!P||typeof P=="string"||!S.getResponseHeader("Content-Type")){P=wlpdj04.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 wlpdj04.io.Error("XMLHttpTransport Error: "+S.status+" "+S.statusText);N[(typeof N.error=="function")?"error":"handle"]("error",R,S,N);}}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=setTimeout("wlpdj04.io.XMLHTTPTransport.watchInFlight();",10);}};this.watchInFlight=function(){var J=null;if(!wlpdj04.hostenv._blockAsync&&!H._blockAsync){for(var I=this.inFlight.length-1;I>=0;I--){try{var L=this.inFlight[I];if(!L||L.http._aborted||!L.http.readyState){this.inFlight.splice(I,1);continue;}if(4==L.http.readyState){this.inFlight.splice(I,1);A(L.req,L.http,L.url,L.query,L.useCache);}else{if(L.startTime){if(!J){J=(new Date()).getTime();}if(L.startTime+(L.req.timeoutSeconds*1000)<J){if(typeof L.http.abort=="function"){L.http.abort();}this.inFlight.splice(I,1);L.req[(typeof L.req.timeout=="function")?"timeout":"handle"]("timeout",null,L.http,L.req);}}}}catch(N){try{var K=new wlpdj04.io.Error("XMLHttpTransport.watchInFlight Error: "+N);L.req[(typeof L.req.error=="function")?"error":"handle"]("error",K,L.http,L.req);}catch(M){wlpdj04.debug("XMLHttpTransport error callback failed: "+M);}}}}clearTimeout(this.inFlightTimer);if(this.inFlight.length==0){this.inFlightTimer=null;return ;}this.inFlightTimer=setTimeout("wlpdj04.io.XMLHTTPTransport.watchInFlight();",10);};var E=wlpdj04.hostenv.getXmlhttpObject()?true:false;this.canHandle=function(I){var J=I["mimetype"].toLowerCase()||"";return E&&((wlpdj04.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript"],J))||(J.substr(0,9)=="text/json"||J.substr(0,16)=="application/json"))&&!(I["formNode"]&&wlpdj04.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"])&&(!wlpdj04Config.preventBackButtonFix)){wlpdj04.deprecated("Using wlpdj04.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use wlpdj04.undo.browser.addToHistory() instead.","0.4");wlpdj04.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+=wlpdj04.io.encodeForm(a.formNode,a.encoding,a["formFilter"]);}if(J.indexOf("#")>-1){wlpdj04.debug("Warning: wlpdj04.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"]){wlpdj04.undo.browser.addToHistory(a);}var W=a["content"]||{};if(a.sendTransport){W["wlpdj04.transport"]="xmlhttp";}do{if(a.postContent){K=a.postContent;break;}if(W){K+=wlpdj04.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(wlpdj04.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=wlpdj04.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();}else{H._blockAsync=true;}if(a.method.toLowerCase()=="post"){if(!a.user){X.open("POST",J,L);}else{X.open("POST",J,L,a.user,a.password);}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();}A(a,{status:404},J,K,U);}}else{var V=J;if(K!=""){V+=(V.indexOf("?")>-1?"&":"?")+K;}if(P){V+=(wlpdj04.string.endsWithAny(V,"?","&")?"":(V.indexOf("?")>-1?"&":"?"))+"wlpdj04.preventCache="+new Date().valueOf();}if(!a.user){X.open(a.method.toUpperCase(),V,L);}else{X.open(a.method.toUpperCase(),V,L,a.user,a.password);}G(X,a);try{X.send(null);}catch(Z){if(typeof X.abort=="function"){X.abort();}A(a,{status:404},J,K,U);}}if(!L){A(a,X,J,K,U);H._blockAsync=false;}a.abort=function(){try{X._aborted=true;}catch(c){}return X.abort();};return ;};wlpdj04.io.transports.addTransport("XMLHTTPTransport");};}wlpdj04.provide("wlpdj04.io.cookie");wlpdj04.io.cookie.setCookie=function(B,D,H,F,C,E){var A=-1;if((typeof H=="number")&&(H>=0)){var G=new Date();G.setTime(G.getTime()+(H*24*60*60*1000));A=G.toGMTString();}D=escape(D);document.cookie=B+"="+D+";"+(A!=-1?" expires="+A+";":"")+(F?"path="+F:"")+(C?"; domain="+C:"")+(E?"; secure":"");};wlpdj04.io.cookie.set=wlpdj04.io.cookie.setCookie;wlpdj04.io.cookie.getCookie=function(C){var A=document.cookie.lastIndexOf(C+"=");if(A==-1){return null;}var D=document.cookie.substring(A+C.length+1);var B=D.indexOf(";");if(B==-1){B=D.length;}D=D.substring(0,B);D=unescape(D);return D;};wlpdj04.io.cookie.get=wlpdj04.io.cookie.getCookie;wlpdj04.io.cookie.deleteCookie=function(A){wlpdj04.io.cookie.setCookie(A,"-",0);};wlpdj04.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=wlpdj04.io.cookie.getObjectCookie(C);}if(J>=0){if(!D){D={};}for(var B in G){if(G[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("&");}wlpdj04.io.cookie.setCookie(C,I,J,K,F,A);};wlpdj04.io.cookie.getObjectCookie=function(B){var A=null,D=wlpdj04.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;};wlpdj04.io.cookie.isSupported=function(){if(typeof navigator.cookieEnabled!="boolean"){wlpdj04.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);var A=wlpdj04.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");navigator.cookieEnabled=(A=="CookiesAllowed");if(navigator.cookieEnabled){this.deleteCookie("__TestingYourBrowserForCookieSupport__");}}return navigator.cookieEnabled;};if(!wlpdj04.io.cookies){wlpdj04.io.cookies=wlpdj04.io.cookie;}wlpdj04.kwCompoundRequire({common:["wlpdj04.io.common"],rhino:["wlpdj04.io.RhinoIO"],browser:["wlpdj04.io.BrowserIO","wlpdj04.io.cookie"],dashboard:["wlpdj04.io.BrowserIO","wlpdj04.io.cookie"]});wlpdj04.provide("wlpdj04.io.*");wlpdj04.provide("wlpdj04.io");wlpdj04.require("wlpdj04.io.*");wlpdj04.deprecated("wlpdj04.io","replaced by wlpdj04.io.*","0.5");