/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _8=tn+"";console[_8]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};console[_8]._fake=true;})();}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _9 in djConfig){d.config[_9]=djConfig[_9];}}dojo.locale=d.config.locale;var _a="$Rev: 21629 $".match(/\d+/);dojo.version={major:1,minor:4,patch:3,flag:"_IBM",revision:_a?+_a[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}var _b,_c,_d={};for(var i in {toString:1}){_b=[];break;}dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];_c=_b.length;dojo._mixin=function(_e,_f){var _10,s,i;for(_10 in _f){s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}if(_c&&_f){for(i=0;i<_c;++i){_10=_b[i];s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}}return _e;};dojo.mixin=function(obj,_11){if(!obj){obj={};}for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_12,_13,_14){var obj=_14||d.global;for(var i=0,p;obj&&(p=_12[i]);i++){if(i==0&&d._scopeMap[p]){p=d._scopeMap[p];}obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_15,_16,_17){var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);return obj&&p?(obj[p]=_16):undefined;};dojo.getObject=function(_19,_1a,_1b){return d._getProp(_19.split("."),_1a,_1b);};dojo.exists=function(_1c,obj){return !!d.getObject(_1c,false,obj);};dojo["eval"]=function(_1d){return d.global.eval?d.global.eval(_1d):eval(_1d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1e){var mp=d._modulePrefixes;return !!(mp[_1e]&&mp[_1e].value);},_getModulePrefix:function(_1f){var mp=d._modulePrefixes;if(d._moduleHasPrefix(_1f)){return mp[_1f].value;}return _1f;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_20,_21,cb){var uri=((_20.charAt(0)=="/"||_20.match(/^\w+:/))?"":d.baseUrl)+_20;try{return !_21?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_21,cb);}catch(e){console.error(e);return false;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _22=d._getText(uri,true);if(_22){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_22="("+_22+")";}else{_22=d._scopePrefix+_22+d._scopeSuffix;}if(!d.isIE){_22+="\r\n//@ sourceURL="+uri;}var _23=d["eval"](_22);if(cb){cb(_23);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return !!_22;};dojo._loadUriAndCheck=function(uri,_24,cb){var ok=false;try{ok=d._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&d._loadedModules[_24]);};dojo.loaded=function(){d._loadNotifying=true;d._postLoad=true;var mll=d._loaders;d._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}d._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())();}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _25=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_25.call(obj);});}}};dojo.ready=dojo.addOnLoad=function(obj,_26){d._onto(d._loaders,obj,_26);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};var dca=d.config.addOnLoad;if(dca){d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);}dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded();}:d._scopeName+".loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_27){var _28=_27.split(".");for(var i=_28.length;i>0;i--){var _29=_28.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_29)){_28[0]="../"+_28[0];}else{var _2a=d._getModulePrefix(_29);if(_2a!=_29){_28.splice(0,i,_2a);break;}}}return _28;};dojo._global_omit_module_check=false;dojo.loadInit=function(_2b){_2b();};dojo._loadModule=dojo.require=function(_2c,_2d){_2d=d._global_omit_module_check||_2d;var _2e=d._loadedModules[_2c];if(_2e){return _2e;}var _2f=d._getModuleSymbols(_2c).join("/")+".js";var _30=!_2d?_2c:null;var ok=d._loadPath(_2f,_30);if(!ok&&!_2d){throw new Error("Could not load '"+_2c+"'; last tried '"+_2f+"'");}if(!_2d&&!d._isXDomain){_2e=d._loadedModules[_2c];if(!_2e){throw new Error("symbol '"+_2c+"' is not defined after loading '"+_2f+"'");}}return _2e;};dojo.provide=function(_31){_31=_31+"";return (d._loadedModules[_31]=d.getObject(_31,true));};dojo.platformRequire=function(_32){var _33=_32.common||[];var _34=_33.concat(_32[d._name]||_32["default"]||[]);for(var x=0;x<_34.length;x++){var _35=_34[x];if(_35.constructor==Array){d._loadModule.apply(d,_35);}else{d._loadModule(_35);}}};dojo.requireIf=function(_36,_37){if(_36===true){var _38=[];for(var i=1;i<arguments.length;i++){_38.push(arguments[i]);}d.require.apply(d,_38);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_39,_3a){d._modulePrefixes[_39]={name:_39,value:_3a};};dojo.requireLocalization=function(_3b,_3c,_3d,_3e){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null,_3f=arguments,uri=[_3f[0]];for(var i=1;i<_3f.length;i++){if(!_3f[i]){continue;}var _40=new d._Url(_3f[i]+""),_41=new d._Url(uri[0]+"");if(_40.path==""&&!_40.scheme&&!_40.authority&&!_40.query){if(_40.fragment!=n){_41.fragment=_40.fragment;}_40=_41;}else{if(!_40.scheme){_40.scheme=_41.scheme;if(!_40.authority){_40.authority=_41.authority;if(_40.path.charAt(0)!="/"){var _42=_41.path.substring(0,_41.path.lastIndexOf("/")+1)+_40.path;var _43=_42.split("/");for(var j=0;j<_43.length;j++){if(_43[j]=="."){if(j==_43.length-1){_43[j]="";}else{_43.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){if(j==(_43.length-1)){_43.splice(j,1);_43[j-1]="";}else{_43.splice(j-1,2);j-=2;}}}}_40.path=_43.join("/");}}}}uri=[];if(_40.scheme){uri.push(_40.scheme,":");}if(_40.authority){uri.push("//",_40.authority);}uri.push(_40.path);if(_40.query){uri.push("?",_40.query);}if(_40.fragment){uri.push("#",_40.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_44,url){var loc=d._getModuleSymbols(_44).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _45=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_45==-1||_45>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _46=document.getElementsByTagName("script");var _47=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_46.length;i++){var src=_46[i].getAttribute("src");if(!src){continue;}var m=src.match(_47);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_46[i].getAttribute("djConfig");if(cfg){var _48=eval("({ "+cfg+" })");for(var x in _48){dojo.config[x]=_48[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")>=0){d.isOpera=tv;}if(dua.indexOf("AdobeAIR")>=0){d.isAIR=1;}d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")>=0;var _49=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_49&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_49+7))<=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var _4a=document.documentMode;if(_4a&&_4a!=5&&Math.floor(d.isIE)!=_4a){d.isIE=_4a;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _4b,_4c;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_4b=new XMLHttpRequest();}catch(e){}}if(!_4b){for(var i=0;i<3;++i){var _4d=d._XMLHTTP_PROGIDS[i];try{_4b=new ActiveXObject(_4d);}catch(e){_4c=e;}if(_4b){d._XMLHTTP_PROGIDS=[_4d];break;}}}if(!_4b){throw new Error("XMLHTTP not available: "+_4c);}return _4b;};d._isDocumentOk=function(_4e){var _4f=_4e.status||0,lp=location.protocol;return (_4f>=200&&_4f<300)||_4f==304||_4f==1223||(!_4f&&(lp=="file:"||lp=="chrome:"||lp=="app:"));};var _50=window.location+"";var _51=document.getElementsByTagName("base");var _52=(_51&&_51.length>0);d._getText=function(uri,_53){var _54=d._xhrObj();if(!_52&&dojo._Url){uri=(new dojo._Url(_50,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_54.open("GET",uri,false);try{_54.send(null);if(!d._isDocumentOk(_54)){var err=Error("Unable to load "+uri+" status:"+_54.status);err.status=_54.status;err.responseText=_54.responseText;throw err;}}catch(e){if(_53){return null;}throw e;}return _54.responseText;};var _55=window;var _56=function(_57,fp){var _58=_55.attachEvent||_55.addEventListener;_57=_55.attachEvent?_57:_57.substring(2);_58(_57,function(){fp.apply(_55,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};var _59=0;d.addOnWindowUnload=function(obj,_5a){d._onto(d._windowUnloaders,obj,_5a);if(!_59){_59=1;_56("onunload",d.windowUnloaded);}};var _5b=0;d.addOnUnload=function(obj,_5c){d._onto(d._unloaders,obj,_5c);if(!_5b){_5b=1;_56("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit);}if(dojo._inFlightCount==0){dojo._modulesLoaded();}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false);}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit);}}}if(dojo.isIE){if(!dojo.config.afterOnLoad&&!dojo.config.skipIeDomLoaded){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _5d=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_5d.length;}for(;i<l;++i){s.addRule("v\\:"+_5d[i],"behavior:url(#default#VML); display:inline-block");}}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5e in mp){dojo.registerModulePath(_5e,mp[_5e]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");(function(){var d=dojo,_5f=Object.prototype.toString;dojo.isString=function(it){return (typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=function(it){return _5f.call(it)==="[object Function]";};dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));};dojo.isArrayLike=function(it){return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_60,_61){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_60.prototype,arguments[i]);}return _60;};dojo._hitchArgs=function(_62,_63){var pre=d._toArray(arguments,2);var _64=d.isString(_63);return function(){var _65=d._toArray(arguments);var f=_64?(_62||d.global)[_63]:_63;return f&&f.apply(_62||this,pre.concat(_65));};};dojo.hitch=function(_66,_67){if(arguments.length>2){return d._hitchArgs.apply(d,arguments);}if(!_67){_67=_66;_66=null;}if(d.isString(_67)){_66=_66||d.global;if(!_66[_67]){throw (["dojo.hitch: scope[\"",_67,"\"] is null (scope=\"",_66,"\")"].join(""));}return function(){return _66[_67].apply(_66,arguments||[]);};}return !_66?_67:function(){return _67.apply(_66,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_68){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_68){d._mixin(tmp,_68);}return tmp;};})();var _69=function(obj,_6a,_6b){return (_6b||[]).concat(Array.prototype.slice.call(obj,_6a||0));};var _6c=function(obj,_6d,_6e){var arr=_6e||[];for(var x=_6d||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=d.isIE?function(obj){return ((obj.item)?_6c:_69).apply(this,arguments);}:_69;dojo.partial=function(_6f){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)));};var _70=d._extraNames,_71=_70.length,_72={};dojo.clone=function(o){if(!o||typeof o!="object"||d.isFunction(o)){return o;}if(o.nodeType&&"cloneNode" in o){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}var r,i,l,s,_73;if(d.isArray(o)){r=[];for(i=0,l=o.length;i<l;++i){if(i in o){r.push(d.clone(o[i]));}}}else{r=o.constructor?new o.constructor():{};}for(_73 in o){s=o[_73];if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){r[_73]=d.clone(s);}}if(_71){for(i=0;i<_71;++i){_73=_70[i];s=o[_73];if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){r[_73]=s;}}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};var _74=/\{([^\}]+)\}/g;dojo.replace=function(_75,map,_76){return _75.replace(_76||_74,d.isFunction(map)?map:function(_77,k){return d.getObject(k,false,map);});};})();}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _78=function(arr,obj,cb){return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];};var _79=function(_7a,arr,_7b,_7c){var _7d=_78(arr,_7c,_7b);arr=_7d[0];for(var i=0,l=arr.length;i<l;++i){var _7e=!!_7d[2].call(_7d[1],arr[i],i,arr);if(_7a^_7e){return _7e;}}return _7a;};dojo.mixin(dojo,{indexOf:function(_7f,_80,_81,_82){var _83=1,end=_7f.length||0,i=0;if(_82){i=end-1;_83=end=-1;}if(_81!=undefined){i=_81;}if((_82&&i>end)||i<end){for(;i!=end;i+=_83){if(_7f[i]==_80){return i;}}}return -1;},lastIndexOf:function(_84,_85,_86){return dojo.indexOf(_84,_85,_86,true);},forEach:function(arr,_87,_88){if(!arr||!arr.length){return;}var _89=_78(arr,_88,_87);arr=_89[0];for(var i=0,l=arr.length;i<l;++i){_89[2].call(_89[1],arr[i],i,arr);}},every:function(arr,_8a,_8b){return _79(true,arr,_8a,_8b);},some:function(arr,_8c,_8d){return _79(false,arr,_8c,_8d);},map:function(arr,_8e,_8f){var _90=_78(arr,_8f,_8e);arr=_90[0];var _91=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_91.push(_90[2].call(_90[1],arr[i],i,arr));}return _91;},filter:function(arr,_92,_93){var _94=_78(arr,_93,_92);arr=_94[0];var _95=[];for(var i=0,l=arr.length;i<l;++i){if(_94[2].call(_94[1],arr[i],i,arr)){_95.push(arr[i]);}}return _95;}});})();}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");(function(){var d=dojo,mix=d._mixin,op=Object.prototype,_96=op.toString,_97=new Function,_98=0,_99="constructor";function err(msg){throw new Error("declare: "+msg);};function c3mro(_9a){var _9b=[],_9c=[{cls:0,refs:[]}],_9d={},_9e=1,l=_9a.length,i=0,j,lin,_9f,top,_a0,rec,_a1,_a2;for(;i<l;++i){_9f=_9a[i];if(!_9f){err("mixin #"+i+" is null");}lin=_9f._meta?_9f._meta.bases:[_9f];top=0;for(j=lin.length-1;j>=0;--j){_a0=lin[j].prototype;if(!_a0.hasOwnProperty("declaredClass")){_a0.declaredClass="uniqName_"+(_98++);}_a1=_a0.declaredClass;if(!_9d.hasOwnProperty(_a1)){_9d[_a1]={count:0,refs:[],cls:lin[j]};++_9e;}rec=_9d[_a1];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_9c[0].refs.push(top);}while(_9c.length){top=_9c.pop();_9b.push(top.cls);--_9e;while(_a2=top.refs,_a2.length==1){top=_a2[0];if(!top||--top.count){top=0;break;}_9b.push(top.cls);--_9e;}if(top){for(i=0,l=_a2.length;i<l;++i){top=_a2[i];if(!--top.count){_9c.push(top);}}}}if(_9e){err("can't build consistent linearization");}_9f=_9a[0];_9b[0]=_9f?_9f._meta&&_9f===_9b[_9b.length-_9f._meta.bases.length]?_9f._meta.bases.length:1:0;return _9b;};function inherited(_a3,a,f){var _a4,_a5,_a6,_a7,_a8,_a9,_aa,opf,pos,_ab=this._inherited=this._inherited||{};if(typeof _a3=="string"){_a4=_a3;_a3=a;a=f;}f=0;_a7=_a3.callee;_a4=_a4||_a7.nom;if(!_a4){err("can't deduce a name to call inherited()");}_a8=this.constructor._meta;_a6=_a8.bases;pos=_ab.p;if(_a4!=_99){if(_ab.c!==_a7){pos=0;_a9=_a6[0];_a8=_a9._meta;if(_a8.hidden[_a4]!==_a7){_a5=_a8.chains;if(_a5&&typeof _a5[_a4]=="string"){err("calling chained method with inherited: "+_a4);}do{_a8=_a9._meta;_aa=_a9.prototype;if(_a8&&(_aa[_a4]===_a7&&_aa.hasOwnProperty(_a4)||_a8.hidden[_a4]===_a7)){break;}}while(_a9=_a6[++pos]);pos=_a9?pos:-1;}}_a9=_a6[++pos];if(_a9){_aa=_a9.prototype;if(_a9._meta&&_aa.hasOwnProperty(_a4)){f=_aa[_a4];}else{opf=op[_a4];do{_aa=_a9.prototype;f=_aa[_a4];if(f&&(_a9._meta?_aa.hasOwnProperty(_a4):f!==opf)){break;}}while(_a9=_a6[++pos]);}}f=_a9&&f||op[_a4];}else{if(_ab.c!==_a7){pos=0;_a8=_a6[0]._meta;if(_a8&&_a8.ctor!==_a7){_a5=_a8.chains;if(!_a5||_a5.constructor!=="manual"){err("calling chained constructor with inherited");}while(_a9=_a6[++pos]){_a8=_a9._meta;if(_a8&&_a8.ctor===_a7){break;}}pos=_a9?pos:-1;}}while(_a9=_a6[++pos]){_a8=_a9._meta;f=_a8?_a8.ctor:_a9;if(f){break;}}f=_a9&&f;}_ab.c=f;_ab.p=pos;if(f){return a===true?f:f.apply(this,a||_a3);}};function getInherited(_ac,_ad){if(typeof _ac=="string"){return this.inherited(_ac,_ad,true);}return this.inherited(_ac,true);};function isInstanceOf(cls){var _ae=this.constructor._meta.bases;for(var i=0,l=_ae.length;i<l;++i){if(_ae[i]===cls){return true;}}return this instanceof cls;};function safeMixin(_af,_b0){var _b1,t,i=0,l=d._extraNames.length;for(_b1 in _b0){t=_b0[_b1];if((t!==op[_b1]||!(_b1 in op))&&_b1!=_99){if(_96.call(t)=="[object Function]"){t.nom=_b1;}_af[_b1]=t;}}for(;i<l;++i){_b1=d._extraNames[i];t=_b0[_b1];if((t!==op[_b1]||!(_b1 in op))&&_b1!=_99){if(_96.call(t)=="[object Function]"){t.nom=_b1;}_af[_b1]=t;}}return _af;};function extend(_b2){safeMixin(this.prototype,_b2);return this;};function chainedConstructor(_b3,_b4){return function(){var a=arguments,_b5=a,a0=a[0],f,i,m,l=_b3.length,_b6;if(_b4&&(a0&&a0.preamble||this.preamble)){_b6=new Array(_b3.length);_b6[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_b3[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_b6[i]=a;}}for(i=l-1;i>=0;--i){f=_b3[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_b6?_b6[i]:a);}}f=this.postscript;if(f){f.apply(this,_b5);}};};function singleConstructor(_b7,_b8){return function(){var a=arguments,t=a,a0=a[0],f;if(_b8){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(_b7){_b7.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function simpleConstructor(_b9){return function(){var a=arguments,i=0,f;for(;f=_b9[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function chain(_ba,_bb,_bc){return function(){var b,m,f,i=0,_bd=1;if(_bc){i=_bb.length-1;_bd=-1;}for(;b=_bb[i];i+=_bd){m=b._meta;f=(m?m.hidden:b.prototype)[_ba];if(f){f.apply(this,arguments);}}};};d.declare=function(_be,_bf,_c0){var _c1,i,t,_c2,_c3,_c4,_c5,_c6=1,_c7=_bf;if(typeof _be!="string"){_c0=_bf;_bf=_be;_be="";}_c0=_c0||{};if(_96.call(_bf)=="[object Array]"){_c4=c3mro(_bf);t=_c4[0];_c6=_c4.length-t;_bf=_c4[_c6];}else{_c4=[0];if(_bf){t=_bf._meta;_c4=_c4.concat(t?t.bases:_bf);}}if(_bf){for(i=_c6-1;;--i){_97.prototype=_bf.prototype;_c1=new _97;if(!i){break;}t=_c4[i];mix(_c1,t._meta?t._meta.hidden:t.prototype);_c2=new Function;_c2.superclass=_bf;_c2.prototype=_c1;_bf=_c1.constructor=_c2;}}else{_c1={};}safeMixin(_c1,_c0);t=_c0.constructor;if(t!==op.constructor){t.nom=_99;_c1.constructor=t;}_97.prototype=0;for(i=_c6-1;i;--i){t=_c4[i]._meta;if(t&&t.chains){_c5=mix(_c5||{},t.chains);}}if(_c1["-chains-"]){_c5=mix(_c5||{},_c1["-chains-"]);}t=!_c5||!_c5.hasOwnProperty(_99);_c4[0]=_c2=(_c5&&_c5.constructor==="manual")?simpleConstructor(_c4):(_c4.length==1?singleConstructor(_c0.constructor,t):chainedConstructor(_c4,t));_c2._meta={bases:_c4,hidden:_c0,chains:_c5,parents:_c7,ctor:_c0.constructor};_c2.superclass=_bf&&_bf.prototype;_c2.extend=extend;_c2.prototype=_c1;_c1.constructor=_c2;_c1.getInherited=getInherited;_c1.inherited=inherited;_c1.isInstanceOf=isInstanceOf;if(_be){_c1.declaredClass=_be;d.setObject(_be,_c2);}if(_c5){for(_c3 in _c5){if(_c1[_c3]&&typeof _c5[_c3]=="string"&&_c3!=_99){t=_c1[_c3]=chain(_c3,_c4,_c5[_c3]==="after");t.nom=_c3;}}}return _c2;};d.safeMixin=safeMixin;})();}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var lls;lls=[].concat(ls);for(var i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_c8,_c9,_ca){_c8=_c8||dojo.global;var f=_c8[_c9];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_c8[_c9]=d;}return f._listeners.push(_ca);},remove:function(_cb,_cc,_cd){var f=(_cb||dojo.global)[_cc];if(f&&f._listeners&&_cd--){delete f._listeners[_cd];}}};dojo.connect=function(obj,_ce,_cf,_d0,_d1){var a=arguments,_d2=[],i=0;_d2.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_d2.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_d2.push(a[i]);}return dojo._connect.apply(this,_d2);};dojo._connect=function(obj,_d3,_d4,_d5){var l=dojo._listener,h=l.add(obj,_d3,dojo.hitch(_d4,_d5));return [obj,_d3,h,l];};dojo.disconnect=function(_d6){if(_d6&&_d6[0]!==undefined){dojo._disconnect.apply(this,_d6);delete _d6[0];}};dojo._disconnect=function(obj,_d7,_d8,_d9){_d9.remove(obj,_d7,_d8);};dojo._topics={};dojo.subscribe=function(_da,_db,_dc){return [_da,dojo._listener.add(dojo._topics,_da,dojo.hitch(_db,_dc))];};dojo.unsubscribe=function(_dd){if(_dd){dojo._listener.remove(dojo._topics,_dd[0],_dd[1]);}};dojo.publish=function(_de,_df){var f=dojo._topics[_de];if(f){f.apply(this,_df||[]);}};dojo.connectPublisher=function(_e0,obj,_e1){var pf=function(){dojo.publish(_e0,arguments);};return (_e1)?dojo.connect(obj,_e1,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(_e2){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_e2;this.silentlyCancelled=false;this.isFiring=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(err instanceof Error)){var res=err;var msg="Deferred Cancelled";if(err&&err.toString){msg+=": "+err.toString();}err=new Error(msg);err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,_e3){var _e4=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_e4,_e4);},addCallback:function(cb,_e5){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,_e6){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0&&!this.isFiring){this._fire();}return this;},_fire:function(){this.isFiring=true;var _e7=this.chain;var _e8=this.fired;var res=this.results[_e8];var _e9=this;var cb=null;while((_e7.length>0)&&(this.paused==0)){var f=_e7.shift()[_e8];if(!f){continue;}var _ea=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}_e8=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){_e9._resback(res);_e9.paused--;if((_e9.paused==0)&&(_e9.fired>=0)){_e9._fire();}};this.paused++;}};if(dojo.config.debugAtAllCosts){_ea.call(this);}else{try{_ea.call(this);}catch(err){_e8=1;res=err;}}}this.fired=_e8;this.results[_e8]=res;this.isFiring=false;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(_eb){return eval("("+_eb+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_ec,_ed){if(it===undefined){return "undefined";}var _ee=typeof it;if(_ee=="number"||_ee=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _ef=arguments.callee;var _f0;_ed=_ed||"";var _f1=_ec?_ed+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_f0=tf.call(it);if(it!==_f0){return _ef(_f0,_ec,_f1);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_ec?" ":"";var _f2=_ec?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_ef(obj,_ec,_f1);if(typeof val!="string"){val="undefined";}return _f2+_f1+val;});return "["+res.join(","+sep)+_f2+_ed+"]";}if(_ee=="function"){return null;}var _f3=[],key;for(key in it){var _f4,val;if(typeof key=="number"){_f4="\""+key+"\"";}else{if(typeof key=="string"){_f4=dojo._escapeString(key);}else{continue;}}val=_ef(it[key],_ec,_f1);if(typeof val!="string"){continue;}_f3.push(_f2+_f1+_f4+":"+sep+val);}return "{"+_f3.join(","+sep)+_f2+_ed+"}";};}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_f5){if(_f5){this.setColor(_f5);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_f6){if(d.isString(_f6)){d.colorFromString(_f6,this);}else{if(d.isArray(_f6)){d.colorFromArray(_f6,this);}else{this._set(_f6.r,_f6.g,_f6.b,_f6.a);if(!(_f6 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=d.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_f7){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_f7?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_f8,end,_f9,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_f8[x]+(end[x]-_f8[x])*_f9;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_fa,obj){var m=_fa.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_fb,obj){var t=obj||new d.Color(),_fc=(_fb.length==4)?4:8,_fd=(1<<_fc)-1;_fb=Number("0x"+_fb.substr(1));if(isNaN(_fb)){return null;}d.forEach(["b","g","r"],function(x){var c=_fb&_fd;_fb>>=_fc;t[x]=_fc==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_fe,_ff){dojo.global=_fe;dojo.doc=_ff;};dojo.withGlobal=function(_100,_101,_102,_103){var _104=dojo.global;try{dojo.global=_100;return dojo.withDoc.call(null,_100.document,_101,_102,_103);}finally{dojo.global=_104;}};dojo.withDoc=function(_105,_106,_107,_108){var _109=dojo.doc,_10a=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_105;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_107&&typeof _106=="string"){_106=_107[_106];}return _106.apply(_107,_108||[]);}finally{dojo.doc=_109;delete dojo._bodyLtr;if(_10a!==undefined){dojo._bodyLtr=_10a;}dojo.isQuirks=oldQ;}};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _10b=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_10c,_10d){if(node){_10c=del._normalizeEventName(_10c);if(!dojo.isIE&&(_10c=="mouseenter"||_10c=="mouseleave")){_10c=(_10c=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_10c,_10d,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_10e){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,_10f){return del._fixEvent(evt,_10f);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _110=dojo._listener;dojo._connect=function(obj,_111,_112,_113,_114){var _115=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_115?(_114?2:1):0,l=[dojo._listener,del,_110][lid];var h=l.add(obj,_111,dojo.hitch(_112,_113));return [obj,_111,h,lid];};dojo._disconnect=function(obj,_116,_117,_118){([dojo._listener,del,_110][_118]).remove(obj,_116,_117);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var _119=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_119];};if(dojo.isIE){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_11a){return e.button&_11a;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_11b){return e.button==_11b;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}if(dojo.isIE){var _11c=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _11d=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_110=iel=dojo._ie_listener={handlers:[],add:function(_11e,_11f,_120){_11e=_11e||dojo.global;var f=_11e[_11f];if(!f||!f[_11d]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_11d]=[];f=_11e[_11f]=d;}return f[_11d].push(ieh.push(_120)-1);},remove:function(_121,_122,_123){var f=(_121||dojo.global)[_122],l=f&&f[_11d];if(f&&l&&_123--){delete ieh[l[_123]];delete l[_123];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_124,fp){if(!node){return;}_124=del._normalizeEventName(_124);if(_124=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_11d]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_124,del._fixCallback(fp));},remove:function(node,_125,_126){_125=del._normalizeEventName(_125);iel.remove(node,_125,_126);if(_125=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_127){return _127.slice(0,2)!="on"?"on"+_127:_127;},_nop:function(){},_fixEvent:function(evt,_128){if(!evt){var w=_128&&(_128.ownerDocument||_128.document||_128).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_128||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _129=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _12a=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_129.scrollLeft||0)-_12a.x;evt.pageY=evt.clientY+(_129.scrollTop||0)-_12a.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_11d]){return;}var k=evt.keyCode;var _12b=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_12b||evt.ctrlKey){var c=_12b?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_11c(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_11c(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_12c){var faux=dojo.mixin({},evt,_12c);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_12d){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=c<41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,_12e,fp){if(!node){return;}var _12f=del._add(node,_12e,fp);if(del._normalizeEventName(_12e)=="keypress"){_12f._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _130=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_130||evt.ctrlKey){var c=_130?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if(!evt.shiftKey&&c>=65&&c<=90){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux);}});}return _12f;},remove:function(node,_131,_132){if(node){if(_132._stealthKeyDownHandle){del._remove(node,"keydown",_132._stealthKeyDownHandle);}del._remove(node,_131,_132);}},_fixEvent:function(evt,_133){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c>=32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_134){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_134,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_134,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(typeof id!="string"){return id;}var _135=doc||dojo.doc,te=_135.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_135.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dojo.byId=function(id,doc){return (typeof id=="string")?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var byId=d.byId;var _136=null,_137;d.addOnWindowUnload(function(){_136=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_136||_137!=doc){_136=doc.createElement("div");_137=doc;}_136.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_136.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_138){try{node=byId(node);_138=byId(_138);while(node){if(node==_138){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_139){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_139?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_139?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_139?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _13a=function(node,ref){var _13b=ref.parentNode;if(_13b){_13b.insertBefore(node,ref);}};var _13c=function(node,ref){var _13d=ref.parentNode;if(_13d){if(_13d.lastChild==ref){_13d.appendChild(node);}else{_13d.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_13e,_13f){_13e=byId(_13e);if(typeof node=="string"){node=node.charAt(0)=="<"?d._toDom(node,_13e.ownerDocument):byId(node);}if(typeof _13f=="number"){var cn=_13e.childNodes;if(!cn.length||cn.length<=_13f){_13e.appendChild(node);}else{_13a(node,cn[_13f<0?0:_13f]);}}else{switch(_13f){case "before":_13a(node,_13e);break;case "after":_13c(node,_13e);break;case "replace":_13e.parentNode.replaceChild(node,_13e);break;case "only":d.empty(_13e);_13e.appendChild(node);break;case "first":if(_13e.firstChild){_13a(node,_13e.firstChild);break;}default:_13e.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_140,_141){return parseFloat(_141)||0;};}else{d._toPixelValue=function(_142,_143){if(!_143){return 0;}if(_143=="medium"){return 4;}if(_143.slice&&_143.slice(-2)=="px"){return parseFloat(_143);}with(_142){var _144=style.left;var _145=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_143;_143=style.pixelLeft;}catch(e){_143=0;}style.left=_144;runtimeStyle.left=_145;}return _143;};}var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};dojo._getOpacity=d.isIE?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_146){var ov=_146*100;node.style.zoom=1;af(node,1).Enabled=!(_146==1);if(!af(node)){node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_146);});}return _146;}:function(node,_147){return node.style.opacity=_147;};var _148={left:true,top:true};var _149=/margin|padding|width|height|max|min|offset/;var _14a=function(node,type,_14b){type=type.toLowerCase();if(d.isIE){if(_14b=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_14b){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _148)){_148[type]=_149.test(type);}return _148[type]?px(node,_14b):_14b;};var _14c=d.isIE?"styleFloat":"cssFloat",_14d={"cssFloat":_14c,"styleFloat":_14c,"float":_14c};dojo.style=function(node,_14e,_14f){var n=byId(node),args=arguments.length,op=(_14e=="opacity");_14e=_14d[_14e]||_14e;if(args==3){return op?d._setOpacity(n,_14f):n.style[_14e]=_14f;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _14e!="string"){for(var x in _14e){d.style(node,x,_14e[x]);}return s;}return (args==1)?s:_14a(n,_14e,s[_14e]||n.style[_14e]);};dojo._getPadExtents=function(n,_150){var s=_150||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_151){var ne="none",s=_151||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_152){var s=_152||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_153){var s=_153||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_154){var s=_154||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getContentBox=function(node,_155){var s=_155||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_156){var s=_156||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);};dojo._setContentSize=function(node,_157,_158,_159){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_159);if(_157>=0){_157+=pb.w;}if(_158>=0){_158+=pb.h;}}d._setBox(node,NaN,NaN,_157,_158);};dojo._setMarginBox=function(node,_15a,_15b,_15c,_15d,_15e){var s=_15e||gcs(node),bb=d._usesBorderBox(node),pb=bb?_15f:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_15c>=0&&!ns.width){ns.width="4px";}if(_15d>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_15c>=0){_15c=Math.max(_15c-pb.w-mb.w,0);}if(_15d>=0){_15d=Math.max(_15d-pb.h-mb.h,0);}d._setBox(node,_15a,_15b,_15c,_15d);};var _15f={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _160=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_161=0,_162=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_161+=val-0;if(node==_162){break;}}node=node.parentNode;}return _161;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.doc.documentElement,n.clientHeight?{x:d._fixIeBiDiScrollLeft(n.scrollLeft),y:n.scrollTop}:(n=d.body(),{x:n.scrollLeft||0,y:n.scrollTop||0}));};dojo._isBodyLtr=function(){return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(_163){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=d.isQuirks?dd.body:dd.documentElement;return _163+de.clientWidth-de.scrollWidth;}return _163;};dojo._abs=dojo.position=function(node,_164){var db=d.body(),dh=db.parentNode,ret;node=byId(node);if(node["getBoundingClientRect"]){ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var _165=d._getIeDocumentElementOffset();ret.x-=_165.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_165.y+(d.isQuirks?db.clientTop+db.offsetTop:0);}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}}}else{ret={x:0,y:0,w:node.offsetWidth,h:node.offsetHeight};if(node["offsetParent"]){ret.x-=_160(node,"scrollLeft");ret.y-=_160(node,"scrollTop");var _166=node;do{var n=_166.offsetLeft,t=_166.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(_166);if(_166!=node){if(d.isMoz){ret.x+=2*px(_166,cs.borderLeftWidth);ret.y+=2*px(_166,cs.borderTopWidth);}else{ret.x+=px(_166,cs.borderLeftWidth);ret.y+=px(_166,cs.borderTopWidth);}}if(d.isMoz&&cs.position=="static"){var _167=_166.parentNode;while(_167!=_166.offsetParent){var pcs=gcs(_167);if(pcs.position=="static"){ret.x+=px(_166,pcs.borderLeftWidth);ret.y+=px(_166,pcs.borderTopWidth);}_167=_167.parentNode;}}_166=_166.offsetParent;}while((_166!=dh)&&_166);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}if(_164){var _168=d._docScroll();ret.x+=_168.x;ret.y+=_168.y;}return ret;};dojo.coords=function(node,_169){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_169);mb.x=abs.x;mb.y=abs.y;return mb;};var _16a={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_16b={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_16c={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _16d=function(name){return _16b[name.toLowerCase()]||name;};var _16e=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _16c[_16a[lc]||name]||_16e(byId(node),_16b[lc]||name);};var _16f={},_170=0,_171=dojo._scopeName+"attrid",_172={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_173){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_174=_16a[lc]||name,_175=_16c[_174],_176=_16b[lc]||name;if(args==3){do{if(_174=="style"&&typeof _173!="string"){d.style(node,_173);break;}if(_174=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _172){d.empty(node);node.appendChild(d._toDom(_173,node.ownerDocument));}else{node[_174]=_173;}break;}if(d.isFunction(_173)){var _177=d.attr(node,_171);if(!_177){_177=_170++;d.attr(node,_171,_177);}if(!_16f[_177]){_16f[_177]={};}var h=_16f[_177][_174];if(h){d.disconnect(h);}else{try{delete node[_174];}catch(e){}}_16f[_177][_174]=d.connect(node,_174,_173);break;}if(_175||typeof _173=="boolean"){node[_174]=_173;break;}node.setAttribute(_176,_173);}while(false);return node;}_173=node[_174];if(_175&&typeof _173!="undefined"){return _173;}if(_174!="href"&&(typeof _173=="boolean"||d.isFunction(_173))){return _173;}return _16e(node,_176)?node.getAttribute(_176):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_16d(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_178=_16a[lc]||name;if((_178 in node)&&_178!="href"){return node[_178];}var _179=_16b[lc]||name;return _16e(node,_179)?node.getAttribute(_179):null;};dojo.create=function(tag,_17a,_17b,pos){var doc=d.doc;if(_17b){_17b=byId(_17b);doc=_17b.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_17a){d.attr(tag,_17a);}if(_17b){d.place(tag,_17b,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _17c={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_17d=/<\s*([\w\:]+)/,_17e={},_17f=0,_180="__"+d._scopeName+"ToDomId";for(var _181 in _17c){var tw=_17c[_181];tw.pre=_181=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}d._toDom=function(frag,doc){doc=doc||d.doc;var _182=doc[_180];if(!_182){doc[_180]=_182=++_17f+"";_17e[_182]=doc.createElement("div");}frag+="";var _183=frag.match(_17d),tag=_183?_183[1].toLowerCase():"",_184=_17e[_182],wrap,i,fc,df;if(_183&&_17c[tag]){wrap=_17c[tag];_184.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_184=_184.firstChild;}}else{_184.innerHTML=frag;}if(_184.childNodes.length==1){return _184.removeChild(_184.firstChild);}df=doc.createDocumentFragment();while(fc=_184.firstChild){df.appendChild(fc);}return df;};var _185="className";dojo.hasClass=function(node,_186){return ((" "+byId(node)[_185]+" ").indexOf(" "+_186+" ")>=0);};var _187=/\s+/,a1=[""],_188=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_187);}}return s;};dojo.addClass=function(node,_189){node=byId(node);_189=_188(_189);var cls=" "+node[_185]+" ";for(var i=0,len=_189.length,c;i<len;++i){c=_189[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}node[_185]=d.trim(cls);};dojo.removeClass=function(node,_18a){node=byId(node);var cls;if(_18a!==undefined){_18a=_188(_18a);cls=" "+node[_185]+" ";for(var i=0,len=_18a.length;i<len;++i){cls=cls.replace(" "+_18a[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_185]!=cls){node[_185]=cls;}};dojo.toggleClass=function(node,_18b,_18c){if(_18c===undefined){_18c=!d.hasClass(node,_18b);}d[_18c?"addClass":"removeClass"](node,_18b);};})();}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var ap=Array.prototype,aps=ap.slice,apc=ap.concat;var tnl=function(a,_18d,_18e){if(!a.sort){a=aps.call(a,0);}var ctor=_18e||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _18d?a._stash(_18d):a;};var _18f=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||d.global;return function(node){a[0]=node;return f.apply(o,a);};};var _190=function(f,o){return function(){this.forEach(_18f(f,arguments,o));return this;};};var _191=function(f,o){return function(){return this.map(_18f(f,arguments,o));};};var _192=function(f,o){return function(){return this.filter(_18f(f,arguments,o));};};var _193=function(f,g,o){return function(){var a=arguments,body=_18f(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _194=function(a){return a.length==1&&(typeof a[0]=="string");};var _195=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};d._NodeListCtor=d.NodeList;var nl=d.NodeList,nlp=nl.prototype;nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_191;nl._adaptAsForEach=_190;nl._adaptAsFilter=_192;nl._adaptWithCondition=_193;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});d.forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=d[name];nlp[name]=function(){return f.apply(d,[this].concat(aps.call(arguments,0)));};});d.forEach(["attr","style"],function(name){nlp[name]=_193(d[name],_194);});d.forEach(["connect","addClass","removeClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_190(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_196,_197){var _198=_196.parse===true?true:false;if(typeof _196.template=="string"){var _199=_196.templateFunc||(dojo.string&&dojo.string.substitute);_196=_199?_199(_196.template,_196):_196;}var type=(typeof _196);if(type=="string"||type=="number"){_196=dojo._toDom(_196,(_197&&_197.ownerDocument));if(_196.nodeType==11){_196=dojo._toArray(_196.childNodes);}else{_196=[_196];}}else{if(!dojo.isArrayLike(_196)){_196=[_196];}else{if(!dojo.isArray(_196)){_196=dojo._toArray(_196);}}}if(_198){_196._runParse=true;}return _196;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_19a,_19b,_19c){if(_19a.nodeType!=1&&_19b=="only"){return;}var _19d=_19a,_19e;var _19f=ary.length;for(var i=_19f-1;i>=0;i--){var node=(_19c?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_19e){_19e=_19d.ownerDocument.createElement("div");}_19e.appendChild(node);dojo.parser.parse(_19e);node=_19e.firstChild;while(_19e.firstChild){_19e.removeChild(_19e.firstChild);}}if(i==_19f-1){dojo.place(node,_19d,_19b);}else{_19d.parentNode.insertBefore(node,_19d);}_19d=node;}},_stash:function(_1a0){this._parent=_1a0;return this;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor();}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(d.map(this,func,obj),this);},forEach:function(_1a1,_1a2){d.forEach(this,_1a1,_1a2);return this;},coords:_191(d.coords),position:_191(d.position),place:function(_1a3,_1a4){var item=d.query(_1a3)[0];return this.forEach(function(node){d.place(node,item,_1a4);});},orphan:function(_1a5){return (_1a5?d._filterQueryResult(this,_1a5):this).forEach(_195);},adopt:function(_1a6,_1a7){return d.query(_1a6).place(this[0],_1a7)._stash(this);},query:function(_1a8){if(!_1a8){return this;}var ret=this.map(function(node){return d.query(_1a8,node).filter(function(_1a9){return _1a9!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1aa){var a=arguments,_1ab=this,_1ac=0;if(typeof _1aa=="string"){_1ab=d._filterQueryResult(this,a[0]);if(a.length==1){return _1ab._stash(this);}_1ac=1;}return this._wrap(d.filter(_1ab,a[_1ac],a[_1ac+1]),this);},addContent:function(_1ad,_1ae){_1ad=this._normalize(_1ad,this[0]);for(var i=0,node;node=this[i];i++){this._place(_1ad,node,_1ae,i>0);}return this;},instantiate:function(_1af,_1b0){var c=d.isFunction(_1af)?_1af:d.getObject(_1af);_1b0=_1b0||{};return this.forEach(function(node){new c(_1b0,node);});},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];d.forEach(nl.events,function(evt){var _1b1="on"+evt;nlp[_1b1]=function(a,b){return this.connect(_1b1,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;if(typeof dojo!="undefined"){dojo.provide("dojo._base.query");}(function(d){var trim=d.trim;var each=d.forEach;var qlc=d._NodeListCtor=d.NodeList;var _1b2=function(){return d.doc;};var _1b3=((d.isWebKit||d.isMozilla)&&((_1b2().compatMode)=="BackCompat"));var _1b4=!!_1b2().firstChild["children"]?"children":"childNodes";var _1b5=">~+";var _1b6=false;var _1b7=function(){return true;};var _1b8=function(_1b9){if(_1b5.indexOf(_1b9.slice(-1))>=0){_1b9+=" * ";}else{_1b9+=" ";}var ts=function(s,e){return trim(_1b9.slice(s,e));};var _1ba=[];var _1bb=-1,_1bc=-1,_1bd=-1,_1be=-1,_1bf=-1,inId=-1,_1c0=-1,lc="",cc="",_1c1;var x=0,ql=_1b9.length,_1c2=null,_1c3=null;var _1c4=function(){if(_1c0>=0){var tv=(_1c0==x)?null:ts(_1c0,x);_1c2[(_1b5.indexOf(tv)<0)?"tag":"oper"]=tv;_1c0=-1;}};var _1c5=function(){if(inId>=0){_1c2.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1c6=function(){if(_1bf>=0){_1c2.classes.push(ts(_1bf+1,x).replace(/\\/g,""));_1bf=-1;}};var _1c7=function(){_1c5();_1c4();_1c6();};var _1c8=function(){_1c7();if(_1be>=0){_1c2.pseudos.push({name:ts(_1be+1,x)});}_1c2.loops=(_1c2.pseudos.length||_1c2.attrs.length||_1c2.classes.length);_1c2.oquery=_1c2.query=ts(_1c1,x);_1c2.otag=_1c2.tag=(_1c2["oper"])?null:(_1c2.tag||"*");if(_1c2.tag){_1c2.tag=_1c2.tag.toUpperCase();}if(_1ba.length&&(_1ba[_1ba.length-1].oper)){_1c2.infixOper=_1ba.pop();_1c2.query=_1c2.infixOper.query+" "+_1c2.query;}_1ba.push(_1c2);_1c2=null;};for(;lc=cc,cc=_1b9.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_1c2){_1c1=x;_1c2={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return (_1b6)?this.otag:this.tag;}};_1c0=x;}if(_1bb>=0){if(cc=="]"){if(!_1c3.attr){_1c3.attr=ts(_1bb+1,x);}else{_1c3.matchFor=ts((_1bd||_1bb+1),x);}var cmf=_1c3.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1c3.matchFor=cmf.slice(1,-1);}}_1c2.attrs.push(_1c3);_1c3=null;_1bb=_1bd=-1;}else{if(cc=="="){var _1c9=("|~^$*".indexOf(lc)>=0)?lc:"";_1c3.type=_1c9+cc;_1c3.attr=ts(_1bb+1,x-_1c9.length);_1bd=x+1;}}}else{if(_1bc>=0){if(cc==")"){if(_1be>=0){_1c3.value=ts(_1bc+1,x);}_1be=_1bc=-1;}}else{if(cc=="#"){_1c7();inId=x+1;}else{if(cc=="."){_1c7();_1bf=x;}else{if(cc==":"){_1c7();_1be=x;}else{if(cc=="["){_1c7();_1bb=x;_1c3={};}else{if(cc=="("){if(_1be>=0){_1c3={name:ts(_1be+1,x),value:null};_1c2.pseudos.push(_1c3);}_1bc=x;}else{if((cc==" ")&&(lc!=cc)){_1c8();}}}}}}}}}return _1ba;};var _1ca=function(_1cb,_1cc){if(!_1cb){return _1cc;}if(!_1cc){return _1cb;}return function(){return _1cb.apply(window,arguments)&&_1cc.apply(window,arguments);};};var _1cd=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _1ce=function(n){return (1==n.nodeType);};var _1cf="";var _1d0=function(elem,attr){if(!elem){return _1cf;}if(attr=="class"){return elem.className||_1cf;}if(attr=="for"){return elem.htmlFor||_1cf;}if(attr=="style"){return elem.style.cssText||_1cf;}return (_1b6?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1cf;};var _1d1={"*=":function(attr,_1d2){return function(elem){return (_1d0(elem,attr).indexOf(_1d2)>=0);};},"^=":function(attr,_1d3){return function(elem){return (_1d0(elem,attr).indexOf(_1d3)==0);};},"$=":function(attr,_1d4){var tval=" "+_1d4;return function(elem){var ea=" "+_1d0(elem,attr);return (ea.lastIndexOf(_1d4)==(ea.length-_1d4.length));};},"~=":function(attr,_1d5){var tval=" "+_1d5+" ";return function(elem){var ea=" "+_1d0(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_1d6){var _1d7=" "+_1d6+"-";return function(elem){var ea=" "+_1d0(elem,attr);return ((ea==_1d6)||(ea.indexOf(_1d7)==0));};},"=":function(attr,_1d8){return function(elem){return (_1d0(elem,attr)==_1d8);};}};var _1d9=(typeof _1b2().firstChild.nextElementSibling=="undefined");var _1da=!_1d9?"nextElementSibling":"nextSibling";var _1db=!_1d9?"previousElementSibling":"previousSibling";var _1dc=(_1d9?_1ce:_1b7);var _1dd=function(node){while(node=node[_1db]){if(_1dc(node)){return false;}}return true;};var _1de=function(node){while(node=node[_1da]){if(_1dc(node)){return false;}}return true;};var _1df=function(node){var root=node.parentNode;var i=0,tret=root[_1b4],ci=(node["_i"]||-1),cl=(root["_l"]||-1);if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}root["_l"]=l;ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_1da]){if(_1dc(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _1e0=function(elem){return !((_1df(elem))%2);};var _1e1=function(elem){return ((_1df(elem))%2);};var _1e2={"checked":function(name,_1e3){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"first-child":function(){return _1dd;},"last-child":function(){return _1de;},"only-child":function(name,_1e4){return function(node){if(!_1dd(node)){return false;}if(!_1de(node)){return false;}return true;};},"empty":function(name,_1e5){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_1e6){var cz=_1e6.charAt(0);if(cz=="\""||cz=="'"){_1e6=_1e6.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_1e6)>=0);};},"not":function(name,_1e7){var p=_1b8(_1e7)[0];var _1e8={el:1};if(p.tag!="*"){_1e8.tag=1;}if(!p.classes.length){_1e8.classes=1;}var ntf=_1e9(p,_1e8);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_1ea){var pi=parseInt;if(_1ea=="odd"){return _1e1;}else{if(_1ea=="even"){return _1e0;}}if(_1ea.indexOf("n")!=-1){var _1eb=_1ea.split("n",2);var pred=_1eb[0]?((_1eb[0]=="-")?-1:pi(_1eb[0])):1;var idx=_1eb[1]?pi(_1eb[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_1df(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_1ea=idx;}}var _1ec=pi(_1ea);return function(elem){return (_1df(elem)==_1ec);};}};var _1ed=(d.isIE)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1b6?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _1e9=function(_1ee,_1ef){if(!_1ee){return _1b7;}_1ef=_1ef||{};var ff=null;if(!("el" in _1ef)){ff=_1ca(ff,_1ce);}if(!("tag" in _1ef)){if(_1ee.tag!="*"){ff=_1ca(ff,function(elem){return (elem&&(elem.tagName==_1ee.getTag()));});}}if(!("classes" in _1ef)){each(_1ee.classes,function(_1f0,idx,arr){var re=new RegExp("(?:^|\\s)"+_1f0+"(?:\\s|$)");ff=_1ca(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _1ef)){each(_1ee.pseudos,function(_1f1){var pn=_1f1.name;if(_1e2[pn]){ff=_1ca(ff,_1e2[pn](pn,_1f1.value));}});}if(!("attrs" in _1ef)){each(_1ee.attrs,function(attr){var _1f2;var a=attr.attr;if(attr.type&&_1d1[attr.type]){_1f2=_1d1[attr.type](a,attr.matchFor);}else{if(a.length){_1f2=_1ed(a);}}if(_1f2){ff=_1ca(ff,_1f2);}});}if(!("id" in _1ef)){if(_1ee.id){ff=_1ca(ff,function(elem){return (!!elem&&(elem.id==_1ee.id));});}}if(!ff){if(!("default" in _1ef)){ff=_1b7;}}return ff;};var _1f3=function(_1f4){return function(node,ret,bag){while(node=node[_1da]){if(_1d9&&(!_1ce(node))){continue;}if((!bag||_1f5(node,bag))&&_1f4(node)){ret.push(node);}break;}return ret;};};var _1f6=function(_1f7){return function(root,ret,bag){var te=root[_1da];while(te){if(_1dc(te)){if(bag&&!_1f5(te,bag)){break;}if(_1f7(te)){ret.push(te);}}te=te[_1da];}return ret;};};var _1f8=function(_1f9){_1f9=_1f9||_1b7;return function(root,ret,bag){var te,x=0,tret=root[_1b4];while(te=tret[x++]){if(_1dc(te)&&(!bag||_1f5(te,bag))&&(_1f9(te,x))){ret.push(te);}}return ret;};};var _1fa=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _1fb={};var _1fc=function(_1fd){var _1fe=_1fb[_1fd.query];if(_1fe){return _1fe;}var io=_1fd.infixOper;var oper=(io?io.oper:"");var _1ff=_1e9(_1fd,{el:1});var qt=_1fd.tag;var _200=("*"==qt);var ecs=_1b2()["getElementsByClassName"];if(!oper){if(_1fd.id){_1ff=(!_1fd.loops&&_200)?_1b7:_1e9(_1fd,{el:1,id:1});_1fe=function(root,arr){var te=d.byId(_1fd.id,(root.ownerDocument||root));if(!te||!_1ff(te)){return;}if(9==root.nodeType){return _1cd(te,arr);}else{if(_1fa(te,root)){return _1cd(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_1fd.classes.length&&!_1b3){_1ff=_1e9(_1fd,{el:1,classes:1,id:1});var _201=_1fd.classes.join(" ");_1fe=function(root,arr,bag){var ret=_1cd(0,arr),te,x=0;var tret=root.getElementsByClassName(_201);while((te=tret[x++])){if(_1ff(te,root)&&_1f5(te,bag)){ret.push(te);}}return ret;};}else{if(!_200&&!_1fd.loops){_1fe=function(root,arr,bag){var ret=_1cd(0,arr),te,x=0;var tret=root.getElementsByTagName(_1fd.getTag());while((te=tret[x++])){if(_1f5(te,bag)){ret.push(te);}}return ret;};}else{_1ff=_1e9(_1fd,{el:1,tag:1,id:1});_1fe=function(root,arr,bag){var ret=_1cd(0,arr),te,x=0;var tret=root.getElementsByTagName(_1fd.getTag());while((te=tret[x++])){if(_1ff(te,root)&&_1f5(te,bag)){ret.push(te);}}return ret;};}}}}else{var _202={el:1};if(_200){_202.tag=1;}_1ff=_1e9(_1fd,_202);if("+"==oper){_1fe=_1f3(_1ff);}else{if("~"==oper){_1fe=_1f6(_1ff);}else{if(">"==oper){_1fe=_1f8(_1ff);}}}}return _1fb[_1fd.query]=_1fe;};var _203=function(root,_204){var _205=_1cd(root),qp,x,te,qpl=_204.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_204[i];x=_205.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_1fc(qp);for(var j=0;(te=_205[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_205=ret;}return ret;};var _206={},_207={};var _208=function(_209){var _20a=_1b8(trim(_209));if(_20a.length==1){var tef=_1fc(_20a[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _203(root,_20a);};};var nua=navigator.userAgent;var wk="WebKit/";var _20b=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _20c=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _20d=(!!_1b2()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_20b));var _20e=/n\+\d|([^ ])?([>~+])([^ =])?/g;var _20f=function(_210,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_210;};var _211=function(_212,_213){_212=_212.replace(_20e,_20f);if(_20d){var _214=_207[_212];if(_214&&!_213){return _214;}}var _215=_206[_212];if(_215){return _215;}var qcz=_212.charAt(0);var _216=(-1==_212.indexOf(" "));if((_212.indexOf("#")>=0)&&(_216)){_213=true;}var _217=(_20d&&(!_213)&&(_1b5.indexOf(qcz)==-1)&&(!d.isIE||(_212.indexOf(":")==-1))&&(!(_1b3&&(_212.indexOf(".")>=0)))&&(_212.indexOf(":contains")==-1)&&(_212.indexOf(":checked")==-1)&&(_212.indexOf("|=")==-1));if(_217){var tq=(_1b5.indexOf(_212.charAt(_212.length-1))>=0)?(_212+" *"):_212;return _207[_212]=function(root){try{if(!((9==root.nodeType)||_216)){throw "";}var r=root[qsa](tq);r[_20c]=true;return r;}catch(e){return _211(_212,true)(root);}};}else{var _218=_212.split(/\s*,\s*/);return _206[_212]=((_218.length<2)?_208(_212):function(root){var _219=0,ret=[],tp;while((tp=_218[_219++])){ret=ret.concat(_208(tp)(root));}return ret;});}};var _21a=0;var _21b=d.isIE?function(node){if(_1b6){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_21a)||_21a);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_21a));};var _1f5=function(node,bag){if(!bag){return 1;}var id=_21b(node);if(!bag[id]){return bag[id]=1;}return 0;};var _21c="_zipIdx";var _21d=function(arr){if(arr&&arr.nozip){return (qlc._wrap)?qlc._wrap(arr):arr;}var ret=new qlc();if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_21a++;if(d.isIE&&_1b6){var _21e=_21a+"";arr[0].setAttribute(_21c,_21e);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_21c)!=_21e){ret.push(te);}te.setAttribute(_21c,_21e);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_1ce(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_21c]=_21a;}for(var x=1,te;te=arr[x];x++){if(arr[x][_21c]!=_21a){ret.push(te);}te[_21c]=_21a;}}}return ret;};d.query=function(_21f,root){qlc=d._NodeListCtor;if(!_21f){return new qlc();}if(_21f.constructor==qlc){return _21f;}if(typeof _21f!="string"){return new qlc(_21f);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_1b2();var od=root.ownerDocument||root.documentElement;_1b6=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));var r=_211(_21f)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _21d(r);};d.query.pseudos=_1e2;d._filterQueryResult=function(_220,_221){var _222=new d._NodeListCtor();var _223=_1e9(_1b8(_221)[0]);for(var x=0,te;te=_220[x];x++){if(_223(te)){_222.push(te);}}return _222;};})(this["queryPortability"]||this["acme"]||dojo);}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _224=dojo,cfg=_224.config;function setValue(obj,name,_225){if(_225===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_225];}else{if(_224.isArray(val)){val.push(_225);}else{obj[name]=_225;}}};dojo.fieldToObject=function(_226){var ret=null;var item=_224.byId(_226);if(item){var _227=item.name;var type=(item.type||"").toLowerCase();if(_227&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_224.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_228){var ret={};var _229="file|submit|image|reset|button|";_224.forEach(dojo.byId(_228).elements,function(item){var _22a=item.name;var type=(item.type||"").toLowerCase();if(_22a&&type&&_229.indexOf(type)==-1&&!item.disabled){setValue(ret,_22a,_224.fieldToObject(item));if(type=="image"){ret[_22a+".x"]=ret[_22a+".y"]=ret[_22a].x=ret[_22a].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _22b=[];var _22c={};for(var name in map){var _22d=map[name];if(_22d!=_22c[name]){var _22e=enc(name)+"=";if(_224.isArray(_22d)){for(var i=0;i<_22d.length;i++){_22b.push(_22e+enc(_22d[i]));}}else{_22b.push(_22e+enc(_22d));}}}return _22b.join("&");};dojo.formToQuery=function(_22f){return _224.objectToQuery(_224.formToObject(_22f));};dojo.formToJson=function(_230,_231){return _224.toJson(_224.formToObject(_230),_231);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_224.forEach(qp,function(item){if(item.length){var _232=item.split("=");var name=dec(_232.shift());var val=dec(_232.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_224.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;var _233=_224._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _224.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _234=xhr.responseText;var _235=_234.indexOf("/*");var _236=_234.lastIndexOf("*/");if(_235==-1||_236==-1){throw new Error("JSON was not comment filtered");}return _224.fromJson(_234.substring(_235+2,_236));},javascript:function(xhr){return _224.eval(xhr.responseText);},xml:function(xhr){var _237=xhr.responseXML;if(_224.isIE&&(!_237||!_237.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_224.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_237=dom;}catch(e){return false;}return true;});}return _237;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _233["json-comment-filtered"](xhr);}else{return _233["json"](xhr);}}};dojo._ioSetArgs=function(args,_238,_239,_23a){var _23b={args:args,url:args.url};var _23c=null;if(args.form){var form=_224.byId(args.form);var _23d=form.getAttributeNode("action");_23b.url=_23b.url||(_23d?_23d.value:null);_23c=_224.formToObject(form);}var _23e=[{}];if(_23c){_23e.push(_23c);}if(args.content){_23e.push(args.content);}if(args.preventCache){_23e.push({"dojo.preventCache":new Date().valueOf()});}_23b.query=_224.objectToQuery(_224.mixin.apply(null,_23e));_23b.handleAs=args.handleAs||"text";var d=new _224.Deferred(_238);d.addCallbacks(_239,function(_23f){return _23a(_23f,d);});var ld=args.load;if(ld&&_224.isFunction(ld)){d.addCallback(function(_240){return ld.call(args,_240,_23b);});}var err=args.error;if(err&&_224.isFunction(err)){d.addErrback(function(_241){return err.call(args,_241,_23b);});}var _242=args.handle;if(_242&&_224.isFunction(_242)){d.addBoth(function(_243){return _242.call(args,_243,_23b);});}if(cfg.ioPublish&&_224.publish&&_23b.args.ioPublish!==false){d.addCallbacks(function(res){_224.publish("/dojo/io/load",[d,res]);return res;},function(res){_224.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_224.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_23b;return d;};var _244=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _245=typeof xhr.abort;if(_245=="function"||_245=="object"||_245=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _246=function(dfd){var ret=_233[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _247=function(_248,dfd){if(!dfd.ioArgs.args.failOk){console.error(_248);}return _248;};var _249=null;var _24a=[];var _24b=0;var _24c=function(dfd){if(_24b<=0){_24b=0;if(cfg.ioPublish&&_224.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_224.publish("/dojo/io/stop");}}};var _24d=function(){var now=(new Date()).getTime();if(!_224._blockAsync){for(var i=0,tif;i<_24a.length&&(tif=_24a[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_24a.splice(i--,1);_24b-=1;}else{if(tif.ioCheck(dfd)){_24a.splice(i--,1);tif.resHandle(dfd);_24b-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_24a.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_24b-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_24c(dfd);if(!_24a.length){clearInterval(_249);_249=null;return;}};dojo._ioCancelAll=function(){try{_224.forEach(_24a,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_224.isIE){_224.addOnWindowUnload(_224._ioCancelAll);}_224._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_224.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_24b){_224.publish("/dojo/io/start");}_24b+=1;_224.publish("/dojo/io/send",[dfd]);}};_224._ioWatch=function(dfd,_24e,_24f,_250){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_24a.push({dfd:dfd,validCheck:_24e,ioCheck:_24f,resHandle:_250});if(!_249){_249=setInterval(_24d,50);}if(args.sync){_24d();}};var _251="application/x-www-form-urlencoded";var _252=function(dfd){return dfd.ioArgs.xhr.readyState;};var _253=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _254=function(dfd){var xhr=dfd.ioArgs.xhr;if(_224._isDocumentOk(xhr)){dfd.callback(dfd);}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err);}};dojo._ioAddQueryToUrl=function(_255){if(_255.query.length){_255.url+=(_255.url.indexOf("?")==-1?"?":"&")+_255.query;_255.query=null;}};dojo.xhr=function(_256,args,_257){var dfd=_224._ioSetArgs(args,_244,_246,_247);var _258=dfd.ioArgs;var xhr=_258.xhr=_224._xhrObj(_258.args);if(!xhr){dfd.cancel();return dfd;}if("postData" in args){_258.query=args.postData;}else{if("putData" in args){_258.query=args.putData;}else{if("rawBody" in args){_258.query=args.rawBody;}else{if((arguments.length>2&&!_257)||"POST|PUT".indexOf(_256.toUpperCase())==-1){_224._ioAddQueryToUrl(_258);}}}}xhr.open(_256,_258.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{if(args.headers[hdr]){xhr.setRequestHeader(hdr,args.headers[hdr]);}}}}xhr.setRequestHeader("Content-Type",args.contentType||_251);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_224._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_258.query);}else{try{xhr.send(_258.query);}catch(e){_258.error=e;dfd.cancel();}}_224._ioWatch(dfd,_252,_253,_254);xhr=null;return dfd;};dojo.xhrGet=function(args){return _224.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _224.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _224.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _224.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;var _259=d._mixin;dojo._Line=function(_25a,end){this.start=_25a;this.end=end;};dojo._Line.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_259(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}};d._Animation=d.Animation;d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _25b=this._percent,_25c=this.easing;return _25c?_25c(_25b):_25b;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(d.config.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_25d,_25e){var _25f=this;if(_25f._delayTimer){_25f._clearTimer();}if(_25e){_25f._stopTimer();_25f._active=_25f._paused=false;_25f._percent=0;}else{if(_25f._active&&!_25f._paused){return _25f;}}_25f._fire("beforeBegin",[_25f.node]);var de=_25d||_25f.delay,_260=dojo.hitch(_25f,"_play",_25e);if(de>0){_25f._delayTimer=setTimeout(_260,de);return _25f;}_260();return _25f;},_play:function(_261){var _262=this;if(_262._delayTimer){_262._clearTimer();}_262._startTime=new Date().valueOf();if(_262._paused){_262._startTime-=_262.duration*_262._percent;}_262._endTime=_262._startTime+_262.duration;_262._active=true;_262._paused=false;var _263=_262.curve.getValue(_262._getStep());if(!_262._percent){if(!_262._startRepeatCount){_262._startRepeatCount=_262.repeat;}_262._fire("onBegin",[_263]);}_262._fire("onPlay",[_263]);_262._cycle();return _262;},pause:function(){var _264=this;if(_264._delayTimer){_264._clearTimer();}_264._stopTimer();if(!_264._active){return _264;}_264._paused=true;_264._fire("onPause",[_264.curve.getValue(_264._getStep())]);return _264;},gotoPercent:function(_265,_266){var _267=this;_267._stopTimer();_267._active=_267._paused=true;_267._percent=_265;if(_266){_267.play();}return _267;},stop:function(_268){var _269=this;if(_269._delayTimer){_269._clearTimer();}if(!_269._timer){return _269;}_269._stopTimer();if(_268){_269._percent=1;}_269._fire("onStop",[_269.curve.getValue(_269._getStep())]);_269._active=_269._paused=false;return _269;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _26a=this;if(_26a._active){var curr=new Date().valueOf();var step=(curr-_26a._startTime)/(_26a._endTime-_26a._startTime);if(step>=1){step=1;}_26a._percent=step;if(_26a.easing){step=_26a.easing(step);}_26a._fire("onAnimate",[_26a.curve.getValue(step)]);if(_26a._percent<1){_26a._startTimer();}else{_26a._active=false;if(_26a.repeat>0){_26a.repeat--;_26a.play(null,true);}else{if(_26a.repeat==-1){_26a.play(null,true);}else{if(_26a._startRepeatCount){_26a.repeat=_26a._startRepeatCount;_26a._startRepeatCount=0;}}}_26a._percent=0;_26a._fire("onEnd",[_26a.node]);!_26a.repeat&&_26a._stopTimer();}}return _26a;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_26b=[],_26c=null,_26d={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_26d,"run",this,"_cycle");ctr++;}if(!_26c){_26c=setInterval(d.hitch(_26d,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_26c);_26c=null;ctr=0;}}});var _26e=d.isIE?function(node){var ns=node.style;if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _26f=_259({properties:{}},args),_270=(_26f.properties.opacity={});_270.start=!("start" in _26f)?function(){return +d.style(_26f.node,"opacity")||0;}:_26f.start;_270.end=_26f.end;var anim=d.animateProperty(_26f);d.connect(anim,"beforeBegin",d.partial(_26e,_26f.node));return anim;};dojo.fadeIn=function(args){return d._fade(_259({end:1},args));};dojo.fadeOut=function(args){return d._fade(_259({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _271=function(_272){this._properties=_272;for(var p in _272){var prop=_272[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_271.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_273=prop.start;if(_273 instanceof d.Color){ret[p]=d.blendColors(_273,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_273)){ret[p]=((prop.end-_273)*r)+_273+(p!="opacity"?prop.units||"px":0);}}}return ret;};dojo.animateProperty=function(args){var n=args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(d.isFunction(prop)){prop=prop(n);}prop=pm[p]=_259({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start(n);}if(d.isFunction(prop.end)){prop.end=prop.end(n);}var _274=(p.toLowerCase().indexOf("color")>=0);function getStyle(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?+v:(_274?v:parseFloat(v));};if(!("end" in prop)){prop.end=getStyle(n,p);}else{if(!("start" in prop)){prop.start=getStyle(n,p);}}if(_274){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _271(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_275,_276,_277,_278,_279){return d.animateProperty({node:node,duration:_276||d.Animation.prototype.duration,properties:_275,easing:_277,onEnd:_278}).play(_279||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.forEach(dojo.config.require,function(i){dojo["require"](i);});}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_27a){var _27b=_27a.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_27b==1&&dojo.date.isLeapYear(_27a)){return 29;}return days[_27b];};dojo.date.isLeapYear=function(_27c){var year=_27c.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_27d){var str=_27d.toString();var tz="";var _27e;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_27e=str.match(pat))){tz=_27e[1];}else{str=_27d.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_27e=str.match(pat))){tz=_27e[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_27f,_280,_281){_27f=new Date(+_27f);_280=new Date(+(_280||new Date()));if(_281=="date"){_27f.setHours(0,0,0,0);_280.setHours(0,0,0,0);}else{if(_281=="time"){_27f.setFullYear(0,0,0);_280.setFullYear(0,0,0);}}if(_27f>_280){return 1;}if(_27f<_280){return -1;}return 0;};dojo.date.add=function(date,_282,_283){var sum=new Date(+date);var _284=false;var _285="Date";switch(_282){case "day":break;case "weekday":var days,_286;var mod=_283%5;if(!mod){days=(_283>0)?5:-5;_286=(_283>0)?((_283-5)/5):((_283+5)/5);}else{days=mod;_286=parseInt(_283/5);}var strt=date.getDay();var adj=0;if(strt==6&&_283>0){adj=1;}else{if(strt==0&&_283<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_283>0)?2:-2;}_283=(7*_286)+days+adj;break;case "year":_285="FullYear";_284=true;break;case "week":_283*=7;break;case "quarter":_283*=3;case "month":_284=true;_285="Month";break;default:_285="UTC"+_282.charAt(0).toUpperCase()+_282.substring(1)+"s";}if(_285){sum["set"+_285](sum["get"+_285]()+_283);}if(_284&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_287,_288,_289){_288=_288||new Date();_289=_289||"day";var _28a=_288.getFullYear()-_287.getFullYear();var _28b=1;switch(_289){case "quarter":var m1=_287.getMonth();var m2=_288.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_28a*4);_28b=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_287,_288,"day"));var _28c=parseInt(dojo.date.difference(_287,_288,"week"));var mod=days%7;if(mod==0){days=_28c*5;}else{var adj=0;var aDay=_287.getDay();var bDay=_288.getDay();_28c=parseInt(days/7);mod=days%7;var _28d=new Date(_287);_28d.setDate(_28d.getDate()+(_28c*7));var _28e=_28d.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_28e+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_28e+mod)<0:adj=2;}}}days+=adj;days-=(_28c*2);}_28b=days;break;case "year":_28b=_28a;break;case "month":_28b=(_288.getMonth()-_287.getMonth())+(_28a*12);break;case "week":_28b=parseInt(dojo.date.difference(_287,_288,"day")/7);break;case "day":_28b/=24;case "hour":_28b/=60;case "minute":_28b/=60;case "second":_28b/=1000;case "millisecond":_28b*=_288.getTime()-_287.getTime();}return Math.round(_28b);};}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_28f,_290,_291){_291=dojo.i18n.normalizeLocale(_291);var _292=_291.split("-");var _293=[_28f,"nls",_290].join(".");var _294=dojo._loadedModules[_293];if(_294){var _295;for(var i=_292.length;i>0;i--){var loc=_292.slice(0,i).join("_");if(_294[loc]){_295=_294[loc];break;}}if(!_295){_295=_294.ROOT;}if(_295){var _296=function(){};_296.prototype=_295;return new _296();}}throw new Error("Bundle not found: "+_290+" in "+_28f+" , locale="+_291);};dojo.i18n.normalizeLocale=function(_297){var _298=_297?_297.toLowerCase():dojo.locale;if(_298=="root"){_298="ROOT";}return _298;};dojo.i18n._requireLocalization=function(_299,_29a,_29b,_29c){var _29d=dojo.i18n.normalizeLocale(_29b);var _29e=[_299,"nls",_29a].join(".");var _29f="";if(_29c){var _2a0=_29c.split(",");for(var i=0;i<_2a0.length;i++){if(_29d["indexOf"](_2a0[i])==0){if(_2a0[i].length>_29f.length){_29f=_2a0[i];}}}if(!_29f){_29f="ROOT";}}var _2a1=_29c?_29f:_29d;var _2a2=dojo._loadedModules[_29e];var _2a3=null;if(_2a2){if(dojo.config.localizationComplete&&_2a2._built){return;}var _2a4=_2a1.replace(/-/g,"_");var _2a5=_29e+"."+_2a4;_2a3=dojo._loadedModules[_2a5];}if(!_2a3){_2a2=dojo["provide"](_29e);var syms=dojo._getModuleSymbols(_299);var _2a6=syms.concat("nls").join("/");var _2a7;dojo.i18n._searchLocalePath(_2a1,_29c,function(loc){var _2a8=loc.replace(/-/g,"_");var _2a9=_29e+"."+_2a8;var _2aa=false;if(!dojo._loadedModules[_2a9]){dojo["provide"](_2a9);var _2ab=[_2a6];if(loc!="ROOT"){_2ab.push(loc);}_2ab.push(_29a);var _2ac=_2ab.join("/")+".js";_2aa=dojo._loadPath(_2ac,null,function(hash){var _2ad=function(){};_2ad.prototype=_2a7;_2a2[_2a8]=new _2ad();for(var j in hash){_2a2[_2a8][j]=hash[j];}});}else{_2aa=true;}if(_2aa&&_2a2[_2a8]){_2a7=_2a2[_2a8];}else{_2a2[_2a8]=_2a7;}if(_29c){return true;}});}if(_29c&&_29d!=_29f){_2a2[_29d.replace(/-/g,"_")]=_2a2[_29f.replace(/-/g,"_")];}};(function(){var _2ae=dojo.config.extraLocale;if(_2ae){if(!_2ae instanceof Array){_2ae=[_2ae];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_2af,_2b0){req(m,b,_2af,_2b0);if(_2af){return;}for(var i=0;i<_2ae.length;i++){req(m,b,_2ae[i],_2b0);}};}})();dojo.i18n._searchLocalePath=function(_2b1,down,_2b2){_2b1=dojo.i18n.normalizeLocale(_2b1);var _2b3=_2b1.split("-");var _2b4=[];for(var i=_2b3.length;i>0;i--){_2b4.push(_2b3.slice(0,i).join("-"));}_2b4.push(false);if(down){_2b4.reverse();}for(var j=_2b4.length-1;j>=0;j--){var loc=_2b4[j]||"ROOT";var stop=_2b2(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_2b5,_2b6){function preload(_2b7){_2b7=dojo.i18n.normalizeLocale(_2b7);dojo.i18n._searchLocalePath(_2b7,true,function(loc){for(var i=0;i<_2b6.length;i++){if(_2b6[i]==loc){dojo["require"](_2b5+"_"+loc);return true;}}return false;});};preload();var _2b8=dojo.config.extraLocale||[];for(var i=0;i<_2b8.length;i++){preload(_2b8[i]);}};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_2b9){var _2ba={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _2bb=dojo.cldr.supplemental._region(_2b9);var dow=_2ba[_2bb];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_2bc){_2bc=dojo.i18n.normalizeLocale(_2bc);var tags=_2bc.split("-");var _2bd=tags[1];if(!_2bd){_2bd={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_2bd.length==4){_2bd=tags[2];}}return _2bd;};dojo.cldr.supplemental.getWeekend=function(_2be){var _2bf={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _2c0={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _2c1=dojo.cldr.supplemental._region(_2be);var _2c2=_2bf[_2c1];var end=_2c0[_2c1];if(_2c2===undefined){_2c2=6;}if(end===undefined){end=0;}return {start:_2c2,end:end};};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_2c3){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_2c3&&_2c3.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_2c4){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_2c4);};dojo.regexp.group=function(_2c5,_2c6){return "("+(_2c6?"?:":"")+_2c5+")";};}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_2c7,map,_2c8,_2c9){_2c9=_2c9||dojo.global;_2c8=_2c8?dojo.hitch(_2c9,_2c8):function(v){return v;};return _2c7.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_2ca,key,_2cb){var _2cc=dojo.getObject(key,false,map);if(_2cb){_2cc=dojo.getObject(_2cb,false,_2c9).call(_2c9,_2cc,key);}return _2c8(_2cc,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_2cd,_2ce,_2cf,_2d0){return _2d0.replace(/([a-z])\1*/ig,function(_2d1){var s,pad,c=_2d1.charAt(0),l=_2d1.length,_2d2=["abbr","wide","narrow"];switch(c){case "G":s=_2ce[(l<4)?"eraAbbr":"eraNames"][_2cd.getFullYear()<0?0:1];break;case "y":s=_2cd.getFullYear();switch(l){case 1:break;case 2:if(!_2cf.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_2cd.getMonth()+1)/3);pad=true;break;case "M":var m=_2cd.getMonth();if(l<3){s=m+1;pad=true;}else{var _2d3=["months","format",_2d2[l-3]].join("-");s=_2ce[_2d3][m];}break;case "w":var _2d4=0;s=dojo.date.locale._getWeekOfYear(_2cd,_2d4);pad=true;break;case "d":s=_2cd.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_2cd);pad=true;break;case "E":var d=_2cd.getDay();if(l<3){s=d+1;pad=true;}else{var _2d5=["days","format",_2d2[l-3]].join("-");s=_2ce[_2d5][d];}break;case "a":var _2d6=(_2cd.getHours()<12)?"am":"pm";s=_2ce[_2d6];break;case "h":case "H":case "K":case "k":var h=_2cd.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_2cd.getMinutes();pad=true;break;case "s":s=_2cd.getSeconds();pad=true;break;case "S":s=Math.round(_2cd.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_2cd,true,_2cf);if(s){break;}l=4;case "Z":var _2d7=dojo.date.locale._getZone(_2cd,false,_2cf);var tz=[(_2d7<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_2d7)/60),2),dojo.string.pad(Math.abs(_2d7)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_2d0);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_2d8,_2d9,_2da){if(_2d9){return dojo.date.getTimezoneName(_2d8);}else{return _2d8.getTimezoneOffset();}};dojo.date.locale.format=function(_2db,_2dc){_2dc=_2dc||{};var _2dd=dojo.i18n.normalizeLocale(_2dc.locale),_2de=_2dc.formatLength||"short",_2df=dojo.date.locale._getGregorianBundle(_2dd),str=[],_2e0=dojo.hitch(this,formatPattern,_2db,_2df,_2dc);if(_2dc.selector=="year"){return _processPattern(_2df["dateFormatItem-yyyy"]||"yyyy",_2e0);}var _2e1;if(_2dc.selector!="date"){_2e1=_2dc.timePattern||_2df["timeFormat-"+_2de];if(_2e1){str.push(_processPattern(_2e1,_2e0));}}if(_2dc.selector!="time"){_2e1=_2dc.datePattern||_2df["dateFormat-"+_2de];if(_2e1){str.push(_processPattern(_2e1,_2e0));}}return str.length==1?str[0]:_2df["dateTimeFormat-"+_2de].replace(/\{(\d+)\}/g,function(_2e2,key){return str[key];});};dojo.date.locale.regexp=function(_2e3){return dojo.date.locale._parseInfo(_2e3).regexp;};dojo.date.locale._parseInfo=function(_2e4){_2e4=_2e4||{};var _2e5=dojo.i18n.normalizeLocale(_2e4.locale),_2e6=dojo.date.locale._getGregorianBundle(_2e5),_2e7=_2e4.formatLength||"short",_2e8=_2e4.datePattern||_2e6["dateFormat-"+_2e7],_2e9=_2e4.timePattern||_2e6["timeFormat-"+_2e7],_2ea;if(_2e4.selector=="date"){_2ea=_2e8;}else{if(_2e4.selector=="time"){_2ea=_2e9;}else{_2ea=_2e6["dateTimeFormat-"+_2e7].replace(/\{(\d+)\}/g,function(_2eb,key){return [_2e9,_2e8][key];});}}var _2ec=[],re=_processPattern(_2ea,dojo.hitch(this,_buildDateTimeRE,_2ec,_2e6,_2e4));return {regexp:re,tokens:_2ec,bundle:_2e6};};dojo.date.locale.parse=function(_2ed,_2ee){var info=dojo.date.locale._parseInfo(_2ee),_2ef=info.tokens,_2f0=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_2f1=re.exec(_2ed);if(!_2f1){return null;}var _2f2=["abbr","wide","narrow"],_2f3=[1970,0,1,0,0,0,0],amPm="",_2f4=dojo.every(_2f1,function(v,i){if(!i){return true;}var _2f5=_2ef[i-1];var l=_2f5.length;switch(_2f5.charAt(0)){case "y":if(l!=2&&_2ee.strict){_2f3[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_2f6=year.substring(0,2)*100,_2f7=Math.min(Number(year.substring(2,4))+20,99),num=(v<_2f7)?_2f6+v:_2f6-100+v;_2f3[0]=num;}else{if(_2ee.strict){return false;}_2f3[0]=v;}}break;case "M":if(l>2){var _2f8=_2f0["months-format-"+_2f2[l-3]].concat();if(!_2ee.strict){v=v.replace(".","").toLowerCase();_2f8=dojo.map(_2f8,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_2f8,v);if(v==-1){return false;}}else{v--;}_2f3[1]=v;break;case "E":case "e":var days=_2f0["days-format-"+_2f2[l-3]].concat();if(!_2ee.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_2f3[1]=0;case "d":_2f3[2]=v;break;case "a":var am=_2ee.am||_2f0.am;var pm=_2ee.pm||_2f0.pm;if(!_2ee.strict){var _2f9=/\./g;v=v.replace(_2f9,"").toLowerCase();am=am.replace(_2f9,"").toLowerCase();pm=pm.replace(_2f9,"").toLowerCase();}if(_2ee.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_2f3[3]=v;break;case "m":_2f3[4]=v;break;case "s":_2f3[5]=v;break;case "S":_2f3[6]=v;}return true;});var _2fa=+_2f3[3];if(amPm==="p"&&_2fa<12){_2f3[3]=_2fa+12;}else{if(amPm==="a"&&_2fa==12){_2f3[3]=0;}}var _2fb=new Date(_2f3[0],_2f3[1],_2f3[2],_2f3[3],_2f3[4],_2f3[5],_2f3[6]);if(_2ee.strict){_2fb.setFullYear(_2f3[0]);}var _2fc=_2ef.join(""),_2fd=_2fc.indexOf("d")!=-1,_2fe=_2fc.indexOf("M")!=-1;if(!_2f4||(_2fe&&_2fb.getMonth()>_2f3[1])||(_2fd&&_2fb.getDate()>_2f3[2])){return null;}if((_2fe&&_2fb.getMonth()<_2f3[1])||(_2fd&&_2fb.getDate()<_2f3[2])){_2fb=dojo.date.add(_2fb,"hour",1);}return _2fb;};function _processPattern(_2ff,_300,_301,_302){var _303=function(x){return x;};_300=_300||_303;_301=_301||_303;_302=_302||_303;var _304=_2ff.match(/(''|[^'])+/g),_305=_2ff.charAt(0)=="'";dojo.forEach(_304,function(_306,i){if(!_306){_304[i]="";}else{_304[i]=(_305?_301:_300)(_306);_305=!_305;}});return _302(_304.join(""));};function _buildDateTimeRE(_307,_308,_309,_30a){_30a=dojo.regexp.escapeString(_30a);if(!_309.strict){_30a=_30a.replace(" a"," ?a");}return _30a.replace(/([a-z])\1*/ig,function(_30b){var s,c=_30b.charAt(0),l=_30b.length,p2="",p3="";if(_309.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_309.am||_308.am||"AM";var pm=_309.pm||_308.pm||"PM";if(_309.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_307){_307.push(_30b);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _30c=[];dojo.date.locale.addCustomFormats=function(_30d,_30e){_30c.push({pkg:_30d,name:_30e});};dojo.date.locale._getGregorianBundle=function(_30f){var _310={};dojo.forEach(_30c,function(desc){var _311=dojo.i18n.getLocalization(desc.pkg,desc.name,_30f);_310=dojo.mixin(_310,_311);},this);return _310;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_312,_313){var _314,_315=dojo.date.locale._getGregorianBundle(_313),_316=[item,_312,type];if(_312=="standAlone"){var key=_316.join("-");_314=_315[key];if(_314[0]==1){_314=undefined;}}_316[1]="format";return (_314||_315[_316.join("-")]).concat();};dojo.date.locale.isWeekend=function(_317,_318){var _319=dojo.cldr.supplemental.getWeekend(_318),day=(_317||new Date()).getDay();if(_319.end<_319.start){_319.end+=7;if(day<_319.start){day+=7;}}return day>=_319.start&&day<=_319.end;};dojo.date.locale._getDayOfYear=function(_31a){return dojo.date.difference(new Date(_31a.getFullYear(),0,1,_31a.getHours()),_31a)+1;};dojo.date.locale._getWeekOfYear=function(_31b,_31c){if(arguments.length==1){_31c=0;}var _31d=new Date(_31b.getFullYear(),0,1).getDay(),adj=(_31d-_31c+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_31b)+adj-1)/7);if(_31d==_31c){week++;}return week;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_31e,_31f){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _320=dojo.date.stamp._isoRegExp.exec(_31e),_321=null;if(_320){_320.shift();if(_320[1]){_320[1]--;}if(_320[6]){_320[6]*=1000;}if(_31f){_31f=new Date(_31f);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _31f["get"+prop]();}).forEach(function(_322,_323){if(_320[_323]===undefined){_320[_323]=_322;}});}_321=new Date(_320[0]||1970,_320[1]||0,_320[2]||1,_320[3]||0,_320[4]||0,_320[5]||0,_320[6]||0);if(_320[0]<100){_321.setFullYear(_320[0]||1970);}var _324=0,_325=_320[7]&&_320[7].charAt(0);if(_325!="Z"){_324=((_320[8]||0)*60)+(Number(_320[9])||0);if(_325!="-"){_324*=-1;}}if(_325){_324-=_321.getTimezoneOffset();}if(_324){_321.setTime(_321.getTime()+_324*60000);}}return _321;};dojo.date.stamp.toISOString=function(_326,_327){var _328=function(n){return (n<10)?"0"+n:n;};_327=_327||{};var _329=[],_32a=_327.zulu?"getUTC":"get",date="";if(_327.selector!="time"){var year=_326[_32a+"FullYear"]();date=["0000".substr((year+"").length)+year,_328(_326[_32a+"Month"]()+1),_328(_326[_32a+"Date"]())].join("-");}_329.push(date);if(_327.selector!="date"){var time=[_328(_326[_32a+"Hours"]()),_328(_326[_32a+"Minutes"]()),_328(_326[_32a+"Seconds"]())].join(":");var _32b=_326[_32a+"Milliseconds"]();if(_327.milliseconds){time+="."+(_32b<100?"0":"")+_328(_32b);}if(_327.zulu){time+="Z";}else{if(_327.selector!="time"){var _32c=_326.getTimezoneOffset();var _32d=Math.abs(_32c);time+=(_32c>0?"-":"+")+_328(Math.floor(_32d/60))+":"+_328(_32d%60);}}_329.push(time);}return _329.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function val2type(_32e){if(d.isString(_32e)){return "string";}if(typeof _32e=="number"){return "number";}if(typeof _32e=="boolean"){return "boolean";}if(d.isFunction(_32e)){return "function";}if(d.isArray(_32e)){return "array";}if(_32e instanceof Date){return "date";}if(_32e instanceof d._Url){return "url";}return "object";};function str2obj(_32f,type){switch(type){case "string":return _32f;case "number":return _32f.length?Number(_32f):NaN;case "boolean":return typeof _32f=="boolean"?_32f:!(_32f.toLowerCase()=="false");case "function":if(d.isFunction(_32f)){_32f=_32f.toString();_32f=d.trim(_32f.substring(_32f.indexOf("{")+1,_32f.length-1));}try{if(_32f.search(/[^\w\.]+/i)!=-1){return new Function(_32f);}else{return d.getObject(_32f,false);}}catch(e){return new Function();}case "array":return _32f?_32f.split(/\s*,\s*/):[];case "date":switch(_32f){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_32f);}case "url":return d.baseUrl+_32f;default:return d.fromJson(_32f);}};var _330={};dojo.connect(dojo,"extend",function(){_330={};});function getClassInfo(_331){if(!_330[_331]){var cls=d.getObject(_331);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_331+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _332=cls.prototype;var _333={},_334={};for(var name in _332){if(name.charAt(0)=="_"){continue;}if(name in _334){continue;}var _335=_332[name];_333[name]=val2type(_335);}_330[_331]={cls:cls,params:_333};}return _330[_331];};this._functionFromScript=function(_336){var _337="";var _338="";var _339=_336.getAttribute("args");if(_339){d.forEach(_339.split(/\s*,\s*/),function(part,idx){_337+="var "+part+" = arguments["+idx+"]; ";});}var _33a=_336.getAttribute("with");if(_33a&&_33a.length){d.forEach(_33a.split(/\s*,\s*/),function(part){_337+="with("+part+"){";_338+="}";});}return new Function(_337+_336.innerHTML+_338);};this.instantiate=function(_33b,_33c,args){var _33d=[],dp=dojo.parser;_33c=_33c||{};args=args||{};d.forEach(_33b,function(node){if(!node){return;}var type=dp._attrName in _33c?_33c[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _33e=getClassInfo(type),_33f=_33e.cls,ps=_33f._noScript||_33f.prototype._noScript;var _340={},_341=node.attributes;for(var name in _33e.params){var item=name in _33c?{value:_33c[name],specified:true}:_341.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _342=item.value;switch(name){case "class":_342="className" in _33c?_33c.className:node.className;break;case "style":_342="style" in _33c?_33c.style:(node.style&&node.style.cssText);}var _343=_33e.params[name];if(typeof _342=="string"){_340[name]=str2obj(_342,_343);}else{_340[name]=_342;}}if(!ps){var _344=[],_345=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_346){var _347=_346.getAttribute("event"),type=_346.getAttribute("type"),nf=d.parser._functionFromScript(_346);if(_347){if(type=="dojo/connect"){_344.push({event:_347,func:nf});}else{_340[_347]=nf;}}else{_345.push(nf);}});}var _348=_33f.markupFactory||_33f.prototype&&_33f.prototype.markupFactory;var _349=_348?_348(_340,node,_33f):new _33f(_340,node);_33d.push(_349);var _34a=node.getAttribute("jsId");if(_34a){d.setObject(_34a,_349);}if(!ps){d.forEach(_344,function(_34b){d.connect(_349,_34b.event,null,_34b.func);});d.forEach(_345,function(func){func.call(_349);});}});if(!_33c._started){d.forEach(_33d,function(_34c){if(!args.noStart&&_34c&&_34c.startup&&!_34c._started&&(!_34c.getParent||!_34c.getParent())){_34c.startup();}});}return _33d;};this.parse=function(_34d,args){var root;if(!args&&_34d&&_34d.rootNode){args=_34d;root=args.rootNode;}else{root=_34d;}var list=d.query(this._query,root);return this.instantiate(list,null,args);};}();(function(){var _34e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_34e);}else{dojo._loaders.unshift(_34e);}})();}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_34f,_350){var c=document.cookie;if(arguments.length==1){var _351=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _351?decodeURIComponent(_351[1]):undefined;}else{_350=_350||{};var exp=_350.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_350.expires=d;}if(exp&&exp.toUTCString){_350.expires=exp.toUTCString();}_34f=encodeURIComponent(_34f);var _352=name+"="+_34f,_353;for(_353 in _350){_352+="; "+_353;var _354=_350[_353];if(_354!==true){_352+="="+_354;}}document.cookie=_352;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_355,_356,uri){if(window[_355]){return window[_355];}if(window.frames[_355]){return window.frames[_355];}var _357=null;var turi=uri;if(!turi){if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}turi=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _358=dojo.isIE?"<iframe name=\""+_355+"\" src=\""+turi+"\" onload=\""+_356+"\">":"iframe";_357=dojo.doc.createElement(_358);with(_357){name=_355;setAttribute("name",_355);id=_355;}dojo.body().appendChild(_357);window[_355]=_357;with(_357.style){if(!(dojo.isSafari<3)){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_357,turi,true);_357.onload=new Function(_356);}return _357;},setSrc:function(_359,src,_35a){try{if(!_35a){if(dojo.isWebKit){_359.location=src;}else{frames[_359.name].location=src;}}else{var idoc;if(dojo.isIE||dojo.isWebKit>521){idoc=_359.contentWindow.document;}else{if(dojo.isSafari){idoc=_359.document;}else{idoc=_359.contentWindow;}}if(!idoc){_359.location=src;return;}else{idoc.location.replace(src);}}}catch(e){console.log("dojo.io.iframe.setSrc: ",e);}},doc:function(_35b){var doc=_35b.contentDocument||(((_35b.name)&&(_35b.document)&&(dojo.doc.getElementsByTagName("iframe")[_35b.name].contentWindow)&&(dojo.doc.getElementsByTagName("iframe")[_35b.name].contentWindow.document)))||((_35b.name)&&(dojo.doc.frames[_35b.name])&&(dojo.doc.frames[_35b.name].document))||null;return doc;},send:function(args){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(args,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _35c=null;try{var _35d=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _35e=_35d.handleAs;_35c=ifd;if(_35e!="html"){if(_35e=="xml"){if(dojo.isIE){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _35f=(dii._frame.contentWindow.document).documentElement.innerText;_35f=_35f.replace(/>\s+</g,"><");_35f=dojo.trim(_35f);var _360={responseText:_35f};_35c=dojo._contentHandlers["xml"](_360);}}else{_35c=ifd.getElementsByTagName("textarea")[0].value;if(_35e=="json"){_35c=dojo.fromJson(_35c);}else{if(_35e=="javascript"){_35c=dojo.eval(_35c);}}}}}catch(e){_35c=e;}finally{_35d._callNext();}return _35c;},function(_361,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _361;});dfd.ioArgs._callNext=function(){if(!this["_calledNext"]){this._calledNext=true;dojo.io.iframe._currentDfd=null;dojo.io.iframe._fireNextRequest();}};this._dfdQueue.push(dfd);this._fireNextRequest();dojo._ioWatch(dfd,function(dfd){return !dfd.ioArgs["_hasError"];},function(dfd){return (!!dfd.ioArgs["_finished"]);},function(dfd){if(dfd.ioArgs._finished){dfd.callback(dfd);}else{dfd.errback(new Error("Invalid dojo.io.iframe request state"));}});return dfd;},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){try{if((this._currentDfd)||(this._dfdQueue.length==0)){return;}do{var dfd=this._currentDfd=this._dfdQueue.shift();}while(dfd&&dfd.canceled&&this._dfdQueue.length);if(!dfd||dfd.canceled){this._currentDfd=null;return;}var _362=dfd.ioArgs;var args=_362.args;_362._contentToClean=[];var fn=dojo.byId(args["form"]);var _363=args["content"]||{};if(fn){if(_363){var _364=function(name,_365){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+name+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=name;}tn.value=_365;fn.appendChild(tn);_362._contentToClean.push(name);};for(var x in _363){var val=_363[x];if(dojo.isArray(val)&&val.length>1){var i;for(i=0;i<val.length;i++){_364(x,val[i]);}}else{if(!fn[x]){_364(x,val);}else{fn[x].value=val;}}}}var _366=fn.getAttributeNode("action");var _367=fn.getAttributeNode("method");var _368=fn.getAttributeNode("target");if(args["url"]){_362._originalAction=_366?_366.value:null;if(_366){_366.value=args.url;}else{fn.setAttribute("action",args.url);}}if(!_367||!_367.value){if(_367){_367.value=(args["method"])?args["method"]:"post";}else{fn.setAttribute("method",(args["method"])?args["method"]:"post");}}_362._originalTarget=_368?_368.value:null;if(_368){_368.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;dojo._ioNotifyStart(dfd);fn.submit();}else{var _369=args.url+(args.url.indexOf("?")>-1?"&":"?")+_362.query;dojo._ioNotifyStart(dfd);this.setSrc(this._frame,_369,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _36a=dfd.ioArgs;var args=_36a.args;var _36b=dojo.byId(args.form);if(_36b){var _36c=_36a._contentToClean;for(var i=0;i<_36c.length;i++){var key=_36c[i];for(var j=0;j<_36b.childNodes.length;j++){var _36d=_36b.childNodes[j];if(_36d.name==key){dojo.destroy(_36d);break;}}}if(_36a["_originalAction"]){_36b.setAttribute("action",_36a._originalAction);}if(_36a["_originalTarget"]){_36b.setAttribute("target",_36a._originalTarget);_36b.target=_36a._originalTarget;}}_36a._finished=true;}};}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");(function(){var _36e=dojo.isIE?"onreadystatechange":"load",_36f=/complete|loaded/;dojo.io.script={get:function(args){var dfd=this._makeScriptDeferred(args);var _370=dfd.ioArgs;dojo._ioAddQueryToUrl(_370);dojo._ioNotifyStart(dfd);if(this._canAttach(_370)){var node=this.attach(_370.id,_370.url,args.frameDoc);if(!_370.jsonp&&!_370.args.checkString){var _371=dojo.connect(node,_36e,function(evt){if(evt.type=="load"||_36f.test(node.readyState)){dojo.disconnect(_371);_370.scriptLoaded=evt;}});}}dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url,_372){var doc=(_372||dojo.doc);var _373=doc.createElement("script");_373.type="text/javascript";_373.src=url;_373.id=id;_373.charset="utf-8";return doc.getElementsByTagName("head")[0].appendChild(_373);},remove:function(id,_374){dojo.destroy(dojo.byId(id,_374));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(args){var dfd=dojo._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);var _375=dfd.ioArgs;_375.id=dojo._scopeName+"IoScript"+(this._counter++);_375.canDelete=false;_375.jsonp=args.callbackParamName||args.jsonp;if(_375.jsonp){_375.query=_375.query||"";if(_375.query.length>0){_375.query+="&";}_375.query+=_375.jsonp+"="+(args.frameDoc?"parent.":"")+dojo._scopeName+".io.script.jsonp_"+_375.id+"._jsonpCallback";_375.frameDoc=args.frameDoc;_375.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_375.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._addDeadScript(dfd.ioArgs);}},_deferredOk:function(dfd){var _376=dfd.ioArgs;if(_376.canDelete){dojo.io.script._addDeadScript(_376);}return _376.json||_376.scriptLoaded||_376;},_deferredError:function(_377,dfd){if(dfd.ioArgs.canDelete){if(_377.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id,dfd.ioArgs.frameDoc);}else{dojo.io.script._addDeadScript(dfd.ioArgs);}}console.log("dojo.io.script error",_377);return _377;},_deadScripts:[],_counter:1,_addDeadScript:function(_378){dojo.io.script._deadScripts.push({id:_378.id,frameDoc:_378.frameDoc});_378.frameDoc=null;},_validCheck:function(dfd){var _379=dojo.io.script;var _37a=_379._deadScripts;if(_37a&&_37a.length>0){for(var i=0;i<_37a.length;i++){_379.remove(_37a[i].id,_37a[i].frameDoc);_37a[i].frameDoc=null;}dojo.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){var _37b=dfd.ioArgs;if(_37b.json||(_37b.scriptLoaded&&!_37b.args.checkString)){return true;}var _37c=_37b.args.checkString;if(_37c&&eval("typeof("+_37c+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_canAttach:function(_37d){return true;},_jsonpCallback:function(json){this.ioArgs.json=json;}};})();}if(!dojo._hasResource["dojox.xml.parser"]){dojo._hasResource["dojox.xml.parser"]=true;dojo.provide("dojox.xml.parser");dojox.xml.parser.parse=function(str,_37e){var _37f=dojo.doc;var doc;_37e=_37e||"text/xml";if(str&&dojo.trim(str)&&"DOMParser" in dojo.global){var _380=new DOMParser();doc=_380.parseFromString(str,_37e);var de=doc.documentElement;var _381="http://www.mozilla.org/newlayout/xml/parsererror.xml";if(de.nodeName=="parsererror"&&de.namespaceURI==_381){var _382=de.getElementsByTagNameNS(_381,"sourcetext")[0];if(!_382){_382=_382.firstChild.data;}throw new Error("Error parsing text "+nativeDoc.documentElement.firstChild.data+" \n"+_382);}return doc;}else{if("ActiveXObject" in dojo.global){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];dojo.some(dp,function(p){try{doc=new ActiveXObject(p);}catch(e){return false;}return true;});if(str&&doc){doc.async=false;doc.loadXML(str);var pe=doc.parseError;if(pe.errorCode!==0){throw new Error("Line: "+pe.line+"\n"+"Col: "+pe.linepos+"\n"+"Reason: "+pe.reason+"\n"+"Error Code: "+pe.errorCode+"\n"+"Source: "+pe.srcText);}}if(doc){return doc;}}else{if(_37f.implementation&&_37f.implementation.createDocument){if(str&&dojo.trim(str)&&_37f.createElement){var tmp=_37f.createElement("xml");tmp.innerHTML=str;var _383=_37f.implementation.createDocument("foo","",null);dojo.forEach(tmp.childNodes,function(_384){_383.importNode(_384,true);});return _383;}else{return _37f.implementation.createDocument("","",null);}}}}return null;};dojox.xml.parser.textContent=function(node,text){if(arguments.length>1){var _385=node.ownerDocument||dojo.doc;dojox.xml.parser.replaceChildren(node,_385.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _386="";if(node){dojo.forEach(node.childNodes,function(_387){switch(_387.nodeType){case 1:case 5:_386+=dojox.xml.parser.textContent(_387);break;case 3:case 2:case 4:_386+=_387.nodeValue;}});}return _386;}};dojox.xml.parser.replaceChildren=function(node,_388){var _389=[];if(dojo.isIE){dojo.forEach(node.childNodes,function(_38a){_389.push(_38a);});}dojox.xml.parser.removeChildren(node);dojo.forEach(_389,dojo.destroy);if(!dojo.isArray(_388)){node.appendChild(_388);}else{dojo.forEach(_388,function(_38b){node.appendChild(_38b);});}};dojox.xml.parser.removeChildren=function(node){var _38c=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _38c;};dojox.xml.parser.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}return null;};}if(!dojo._hasResource["dojox.data.dom"]){dojo._hasResource["dojox.data.dom"]=true;dojo.provide("dojox.data.dom");dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0");dojox.data.dom.createDocument=function(str,_38d){dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");try{return dojox.xml.parser.parse(str,_38d);}catch(e){return null;}};dojox.data.dom.textContent=function(node,text){dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");if(arguments.length>1){return dojox.xml.parser.textContent(node,text);}else{return dojox.xml.parser.textContent(node);}};dojox.data.dom.replaceChildren=function(node,_38e){dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");dojox.xml.parser.replaceChildren(node,_38e);};dojox.data.dom.removeChildren=function(node){dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");return dojox.xml.parser.removeChildren(node);};dojox.data.dom.innerXML=function(node){dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");return dojox.xml.parser.innerXML(node);};}if(!dojo._hasResource["com.ibm.portal.xslt"]){dojo._hasResource["com.ibm.portal.xslt"]=true;dojo.provide("com.ibm.portal.xslt");dojo.require("dojox.data.dom");dojo.declare("com.ibm.portal.xslt.TransformerFactory",null,{constructor:function(){this._xsltMap=new Array();},newTransformer:function(_38f){ibm.portal.debug.entry("newTransformer",[_38f]);var trf=this._getCached(_38f);if(trf==null){trf=new com.ibm.portal.xslt.Transformer(_38f);this._xsltMap.push({url:_38f,transformer:trf});}return trf;},_getCached:function(_390){var xslt=null;for(i=0;i<this._xsltMap.length;i++){var _391=this._xsltMap[i];if(_390==_391.url){xslt=_391.transformer;break;}}return xslt;}});dojo.declare("com.ibm.portal.xslt.Transformer",null,{constructor:function(_392){this._xslt=com.ibm.portal.xslt.loadXsl(_392);},transformToRegion:function(_393,_394,node,doc){com.ibm.portal.utilities.html.safeClean(node);if(dojo.isIE){var _395=com.ibm.portal.xslt.transform(_393,this._xslt,null,_394,true);node.innerHTML=dojo.string.trim(_395);}else{var frag=com.ibm.portal.xslt.gecko._transformToFragment(_393,this._xslt,null,_394,doc);node.innerHTML="";node.appendChild(frag);}},transformToDocument:function(_396,_397,_398){var _399=com.ibm.portal.xslt.transform(_396,this._xslt,null,_397,_398);return _399;}});com.ibm.portal.xslt.TRANSFORMER_FACTORY=new com.ibm.portal.xslt.TransformerFactory();com.ibm.portal.xslt.ie={};com.ibm.portal.xslt.gecko={};com.ibm.portal.xslt.getXmlHttpRequest=function(){var oXml=null;if(typeof ActiveXObject!="undefined"){oXml=new ActiveXObject("Microsoft.XMLHTTP");}else{oXml=new XMLHttpRequest();}return oXml;};com.ibm.portal.xslt.loadXml=function(sUrl){if(typeof ActiveXObject!="undefined"){return com.ibm.portal.xslt.ie.loadXml(sUrl);}else{return com.ibm.portal.xslt.gecko.loadXml(sUrl);}};com.ibm.portal.xslt.loadXmlString=function(sXml){if(typeof ActiveXObject!="undefined"){return com.ibm.portal.xslt.ie.loadXmlString(sXml);}else{return com.ibm.portal.xslt.gecko.loadXmlString(sXml);}};com.ibm.portal.xslt.loadXsl=function(sUrl){if(typeof ActiveXObject!="undefined"){return com.ibm.portal.xslt.ie.loadXsl(sUrl);}else{return com.ibm.portal.xslt.gecko.loadXsl(sUrl);}};com.ibm.portal.xslt.transform=function(xml,xsl,_39a,_39b,_39c){ibm.portal.debug.entry("transform",[xml,xsl,_39a,_39b,_39c]);if(typeof ActiveXObject!="undefined"){return com.ibm.portal.xslt.ie.transform(xml,xsl,_39a,_39b,_39c);}else{return com.ibm.portal.xslt.gecko.transform(xml,xsl,_39a,_39b,_39c);}};com.ibm.portal.xslt.transformAndUpdate=function(_39d,xml,xsl,_39e,_39f){ibm.portal.debug.entry("transformAndUpdate",[_39d,xml,xsl,_39e,_39f]);if(typeof ActiveXObject!="undefined"){var _3a0=com.ibm.portal.xslt.transform(xml,xsl,_39e,_39f,true);_39d.innerHTML=dojo.string.trim(_3a0);}else{var doc=_39d.ownerDocument?_39d.ownerDocument:document;var frag=com.ibm.portal.xslt.gecko._transformToFragment(xml,xsl,_39e,_39f,doc);_39d.innerHTML="";_39d.appendChild(frag);}ibm.portal.debug.exit("transformAndUpdate");};com.ibm.portal.xslt.ie.XSLT_PROG_IDS=["Msxml2.XSLTemplate.6.0","Msxml2.XSLTemplate.4.0","MSXML2.XSLTemplate.3.0","MSXML2.XSLTemplate"];com.ibm.portal.xslt.ie.DOM_PROG_IDS=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];com.ibm.portal.xslt.ie.FTDOM_PROG_IDS=["Msxml2.FreeThreadedDOMDocument.6.0","Msxml2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument","MSXML.FreeThreadedDOMDocument","Microsoft.FreeThreadedXMLDOM"];com.ibm.portal.xslt.ie._getMSXMLImpl=function(_3a1){while(_3a1.length>0){try{var impl=new ActiveXObject(_3a1[0]);if(impl){return impl;}}catch(err){}_3a1.splice(0,1);}throw new Error("No MSXML implementation exists");};com.ibm.portal.xslt.ie.loadXml=function(sUrl){var _3a2=this._getMSXMLImpl(this.DOM_PROG_IDS);_3a2.async=0;_3a2.resolveExternals=0;if(!_3a2.load(sUrl)){throw new Error("Error loading xml file "+sUrl);}return _3a2;};com.ibm.portal.xslt.ie.loadXmlString=function(sXml){var _3a3=this._getMSXMLImpl(this.DOM_PROG_IDS);_3a3.async=0;_3a3.resolveExternals=0;if(!_3a3.loadXML(sXml)){throw new Error("Error loading xml string "+sXml);}return _3a3;};com.ibm.portal.xslt.ie.loadXsl=function(sUrl){var _3a4=this._getMSXMLImpl(this.FTDOM_PROG_IDS);_3a4.async=0;_3a4.resolveExternals=0;_3a4.setProperty("ForcedResync",false);if(!_3a4.load(sUrl)){throw new Error("Error loading xsl file "+sUrl);}return _3a4;};com.ibm.portal.xslt.ie.transform=function(_3a5,xsl,_3a6,_3a7,_3a8){var oXml=_3a5;var oXsl=xsl;try{if(!oXsl.documentElement){oXsl=this.loadXsl(xsl);}}catch(e){var sMsg=e.message;throw new Error(""+sMsg,""+sMsg);}var _3a9=this._getMSXMLImpl(this.XSLT_PROG_IDS);_3a9.stylesheet=oXsl;var _3aa=_3a9.createProcessor();_3aa.input=oXml;if(_3a7){for(var p in _3a7){_3aa.addParameter(p,_3a7[p]);}}if(_3a6){_3aa.addParameter("mode",_3a6);}if(_3a8){if(!_3aa.transform()){throw new Error("Error transforming xml doc "+oXml);}return _3aa.output;}else{var _3ab=this._getMSXMLImpl(this.DOM_PROG_IDS);_3ab.async=false;_3ab.validateOnParse=false;oXml.transformNodeToObject(oXsl,_3ab);return _3ab;}};com.ibm.portal.xslt.gecko.loadXml=function(sUrl){var _3ac=null;if(dojo.isSafari){var xhr=new XMLHttpRequest();xhr.open("GET",sUrl,false);xhr.send(null);if(xhr.status==200){_3ac=xhr.responseXML;}}else{_3ac=document.implementation.createDocument("","",null);_3ac.async=0;_3ac.load(sUrl);}return _3ac;};com.ibm.portal.xslt.gecko.loadXmlString=function(sXml){var _3ad=new DOMParser();try{oXmlDoc=_3ad.parseFromString(sXml,"text/xml");}catch(exc){throw new Error("Error loading xml string "+sXml);}return oXmlDoc;};com.ibm.portal.xslt.gecko.loadXsl=function(sUrl){var _3ae=null;if(dojo.isWebKit){var xhr=new XMLHttpRequest();xhr.open("GET",sUrl,false);xhr.send(null);if(xhr.status==200){_3ae=xhr.responseXML;}}else{_3ae=document.implementation.createDocument("","",null);_3ae.async=0;_3ae.load(sUrl);}return _3ae;};com.ibm.portal.xslt.gecko._getXSLTProc=function(_3af,xsl,_3b0,_3b1){var _3b2=xsl;if(!_3b2.documentElement){_3b2=this.loadXsl(xsl);}var proc=new XSLTProcessor();proc.importStylesheet(_3b2);if(_3b1){for(var p in _3b1){proc.setParameter(null,p,_3b1[p]);}}if(_3b0){proc.setParameter(null,"mode",_3b0);}return proc;};com.ibm.portal.xslt.gecko._transformToFragment=function(_3b3,xsl,_3b4,_3b5,doc){var proc=com.ibm.portal.xslt.gecko._getXSLTProc(_3b3,xsl,_3b4,_3b5);var _3b6=null;_3b6=proc.transformToFragment(_3b3,doc);proc.clearParameters();return _3b6;};com.ibm.portal.xslt.gecko.transform=function(_3b7,xsl,_3b8,_3b9,_3ba){try{var _3bb=null;if(!_3ba){var proc=com.ibm.portal.xslt.gecko._getXSLTProc(_3b7,xsl,_3b8,_3b9);_3bb=proc.transformToDocument(_3b7);return _3bb;}else{_3bb=com.ibm.portal.xslt.gecko._transformToFragment(_3b7,xsl,_3b8,_3b9,document);}var _3bc=new XMLSerializer();var _3bd=dojo.string.trim(_3bc.serializeToString(_3bb));if(dojo.isOpera&&_3bb.firstChild&&_3bb.firstChild.nodeName=="result"){var _3be=_3bd.indexOf("<result>")+8;var end=_3bd.lastIndexOf("</result>");_3bd=dojo.string.trim(_3bd.substring(_3be,end));}return _3bd;}catch(exc){throw new Error("Error transforming xml doc "+exc);}};com.ibm.portal.xslt.setLayerContentByXml=function(_3bf,xml,xsl,_3c0,_3c1){var _3c2=com.ibm.portal.xslt.transform(xml,xsl,null,_3c0,_3c1);if(_3bf.innerHTML){_3bf.innerHTML=_3c2;}else{var obj=document.getElementById(_3bf);obj.innerHTML=_3c2;}};}if(!dojo._hasResource["com.ibm.portal.xpath"]){dojo._hasResource["com.ibm.portal.xpath"]=true;dojo.provide("com.ibm.portal.xpath");com.ibm.portal.xpath.evaluateXPath=function(_3c3,doc,_3c4){if(typeof ActiveXObject!="undefined"){return com.ibm.portal.xpath.ie.evaluateXPath(_3c3,doc,_3c4);}else{return com.ibm.portal.xpath.gecko.evaluateXPath(_3c3,doc,_3c4);}};dojo.provide("com.ibm.portal.xpath.ie");com.ibm.portal.xpath.ie.evaluateXPath=function(_3c5,doc,_3c6){if(_3c6){var ns="";for(var prop in _3c6){ns+="xmlns:"+prop+"='"+_3c6[prop]+"' ";}if(doc.ownerDocument){doc.ownerDocument.setProperty("SelectionNamespaces",ns);}else{doc.setProperty("SelectionNamespaces",ns);}}var _3c7=doc.selectNodes(_3c5);var _3c8;var _3c9=[];var len=0;for(var i=0;i<_3c7.length;i++){_3c8=_3c7[i];if(_3c8){_3c9[len]=_3c8;len++;}}return _3c9;};dojo.provide("com.ibm.portal.xpath.gecko");com.ibm.portal.xpath.gecko.evaluateXPath=function(_3ca,doc,_3cb){var _3cc;try{var _3cd=doc;if(!_3cd.evaluate){_3cd=doc.ownerDocument;}_3cc=_3cd.evaluate(_3ca,doc,function(_3ce){return _3cb[_3ce]||null;},XPathResult.ANY_TYPE,null);}catch(exc){throw new Error("Error with xpath expression"+exc);}var _3cf;var _3d0=[];var len=0;do{_3cf=_3cc.iterateNext();if(_3cf){_3d0[len]=_3cf;len++;}}while(_3cf);return _3d0;};}if(!dojo._hasResource["ibm.portal.xml.xslt"]){dojo._hasResource["ibm.portal.xml.xslt"]=true;dojo.provide("ibm.portal.xml.xslt");dojo.require("com.ibm.portal.xslt");ibm.portal.xml.xslt.ie={};ibm.portal.xml.xslt.gecko={};ibm.portal.xml.xslt.getXmlHttpRequest=function(){return com.ibm.portal.xslt.getXmlHttpRequest();};ibm.portal.xml.xslt.loadXml=function(sUrl){return com.ibm.portal.xslt.loadXml(sUrl);};ibm.portal.xml.xslt.loadXmlString=function(sXml){return com.ibm.portal.xslt.loadXmlString(sXml);};ibm.portal.xml.xslt.loadXsl=function(sUrl){return com.ibm.portal.xslt.loadXsl(sUrl);};ibm.portal.xml.xslt.transform=function(xml,xsl,_3d1,_3d2,_3d3){ibm.portal.debug.entry("transform",[xml,xsl,_3d1,_3d2,_3d3]);return com.ibm.portal.xslt.transform(xml,xsl,_3d1,_3d2,_3d3);};ibm.portal.xml.xslt.transformAndUpdate=function(_3d4,xml,xsl,_3d5,_3d6){ibm.portal.debug.entry("transformAndUpdate",[_3d4,xml,xsl,_3d5,_3d6]);com.ibm.portal.xslt.transformAndUpdate(_3d4,xml,xsl,_3d5,_3d6);ibm.portal.debug.exit("transformAndUpdate");};ibm.portal.xml.xslt.ie.loadXml=function(sUrl){return com.ibm.portal.xslt.ie.loadXml(sUrl);};ibm.portal.xml.xslt.ie.loadXmlString=function(sXml){return com.ibm.portal.xslt.ie.loadXmlString(sXml);};ibm.portal.xml.xslt.ie.loadXsl=function(sUrl){return com.ibm.portal.xslt.ie.loadXsl(sUrl);};ibm.portal.xml.xslt.ie.transform=function(_3d7,xsl,_3d8,_3d9,_3da){return com.ibm.portal.xslt.ie.transform(_3d7,xsl,_3d8,_3d9,_3da);};ibm.portal.xml.xslt.gecko.loadXml=function(sUrl){return com.ibm.portal.xslt.gecko.loadXml(sUrl);};ibm.portal.xml.xslt.gecko.loadXmlString=function(sXml){return com.ibm.portal.xslt.gecko.loadXmlString(sXml);};ibm.portal.xml.xslt.gecko.loadXsl=function(sUrl){return com.ibm.portal.xslt.gecko.loadXsl(sUrl);};ibm.portal.xml.xslt.gecko.transform=function(_3db,xsl,_3dc,_3dd,_3de){return com.ibm.portal.xslt.gecko.transform(_3db,xsl,_3dc,_3dd,_3de);};ibm.portal.xml.xslt.setLayerContentByXml=function(_3df,xml,xsl,_3e0,_3e1){com.ibm.portal.xslt.setLayerContentByXml(_3df,xml,xsl,_3e0,_3e1);};}if(!dojo._hasResource["ibm.portal.xml.xpath"]){dojo._hasResource["ibm.portal.xml.xpath"]=true;dojo.provide("ibm.portal.xml.xpath");dojo.require("com.ibm.portal.xpath");ibm.portal.xml.xpath.evaluateXPath=function(_3e2,doc,_3e3){return com.ibm.portal.xpath.evaluateXPath(_3e2,doc,_3e3);};dojo.provide("ibm.portal.xml.xpath.ie");ibm.portal.xml.xpath.ie.evaluateXPath=function(_3e4,doc,_3e5){return com.ibm.portal.xpath.ie.evaluateXPath(_3e4,doc,_3e5);};dojo.provide("ibm.portal.xml.xpath.gecko");ibm.portal.xml.xpath.gecko.evaluateXPath=function(_3e6,doc,_3e7){return com.ibm.portal.xpath.gecko.evaluateXPath(_3e6,doc,_3e7);};}if(!dojo._hasResource["com.ibm.portal.utilities"]){dojo._hasResource["com.ibm.portal.utilities"]=true;dojo.provide("com.ibm.portal.utilities");com.ibm.portal.utilities={findPortletIdByElement:function(_3e8){ibm.portal.debug.entry("findPortletID",[_3e8]);var id="";var _3e9=_3e8.parentNode;while(_3e9&&id.length==0){ibm.portal.debug.text("examining element "+_3e9.tagName+"; class="+_3e9.className,"findPortletID");if(typeof (_3e9.className)=="string"){if(_3e9.className&&(_3e9.className.match(/\bwpsPortletBody\b/)||_3e9.className.match(/\bwpsPortletBodyInlineMode\b/))){id=_3e9.id;var _3ea=id.indexOf("_mode");if(_3ea>=0){id=id.substring(0,_3ea);}}}_3e9=_3e9.parentNode;}if(id.indexOf("portletActions_")>=0){id=id.substring("portletActions_".length);}ibm.portal.debug.exit("findPortletID",[id]);return id;},findFormByElement:function(_3eb){var _3ec=_3eb;while(_3ec){if(_3ec.tagName&&_3ec.tagName.toLowerCase()=="form"){break;}_3ec=_3ec.parentNode;}return _3ec;},encodeURI:function(uri){ibm.portal.debug.entry("encodeURI",[uri]);var _3ed=uri;var _3ee=uri.lastIndexOf(":");while(_3ee>=0){var _3ef=_3ed.substring(0,_3ee);var part=_3ed.substring(_3ee+1);_3ed=_3ef+":"+encodeURIComponent(part);_3ee=_3ef.lastIndexOf(":");}_3ed=encodeURIComponent(_3ed);ibm.portal.debug.exit("encodeURI",[_3ed]);return _3ed;},decodeURI:function(uri){ibm.portal.debug.entry("decodeURI",[uri]);var _3f0=decodeURIComponent(uri);var _3f1=_3f0.indexOf(":");while(_3f1>=0){var _3f2=_3f0.substring(0,_3f1);var part=_3f0.substring(_3f1+1);_3f0=_3f2+":"+decodeURIComponent(part);_3f1=_3f0.indexOf(":",_3f1+1);}ibm.portal.debug.exit("decodeURI",[_3f0]);return _3f0;},getSelectionNodeId:function(_3f3){ibm.portal.debug.entry("getSelectionNodeId",[_3f3]);var _3f4=_3f3.split("@oid:");ibm.portal.debug.exit("getSelectionNodeId",[_3f4[1]]);return _3f4[1];},getControlId:function(_3f5){ibm.portal.debug.entry("_getControlId",[_3f5]);var _3f6=_3f5.split("@oid:");var _3f7=_3f6[0].split("oid:");ibm.portal.debug.exit("getControlId",[_3f7[1]]);return _3f7[1];},getOverwriteMap:function(obj,_3f8){var _3f9=null;var _3fa=com.ibm.portal.utilities.domData.getManager(obj);if(_3fa){_3f9=_3fa.data(obj,"_overwritten_");if(!_3f9&&_3f8){_3f9={};_3fa.data(obj,"_overwritten_",_3f9);}}else{_3f9=obj["_overwritten_"];if(!_3f9&&_3f8){obj["_overwritten_"]=_3f9={};}}return _3f9;},overwriteProperty:function(obj,_3fb,_3fc,_3fd){ibm.portal.debug.entry("overwriteProperty",[obj,_3fb,_3fc,_3fd]);var _3fe=com.ibm.portal.utilities.getOverwriteMap(obj,true);if(!_3fd){_3fd=false;}var _3ff=(_3fd&&(_3fe[_3fb]!=null));if(!_3ff){if(_3fe[_3fb]==null){_3fe[_3fb]=obj[_3fb];}else{_3fe[_3fb]=null;}var _400=com.ibm.portal.utilities.domData.getManager(obj);if(_400){_400.trackProperty(obj,_3fb);}obj[_3fb]=_3fc;ibm.portal.debug.text("Property overwrite successful!");}ibm.portal.debug.exit("overwriteProperty");},restoreProperty:function(obj,_401){ibm.portal.debug.entry("utilities.restoreProperty",[obj,_401]);var _402=obj[_401];var _403=com.ibm.portal.utilities.getOverwriteMap(obj);if(_403!=null){ibm.portal.debug.text("overwritten property value: "+_403);obj[_401]=_403[_401];_403[_401]=null;}else{obj[_401]=null;}ibm.portal.debug.exit("utilities.restoreProperty",_402);return _402;},getOverwrittenProperty:function(obj,_404){var _405=com.ibm.portal.utilities.getOverwriteMap(obj);if(_405){return _405[_404];}else{return null;}},setOverwrittenProperty:function(obj,_406,_407){ibm.portal.debug.entry("utilities.setOverwrittenProperty",[obj,_406,_407]);var _408=com.ibm.portal.utilities.getOverwriteMap(obj,true);_408[_406]=_407;ibm.portal.debug.exit("utilities.setOverwrittenProperty");},callOverwrittenFunction:function(_409,_40a,args){ibm.portal.debug.entry("utilities.callOverwrittenFunction",[_409,_40a,args]);var _40b=null;var _40c=this.getOverwrittenProperty(_409,_40a);ibm.portal.debug.text("Overwritten property: "+_40c);if(_40c){ibm.portal.debug.text("old property's apply function: "+_40c.apply);if(args){_40b=_40c.apply(_409,args);}else{_40b=_40c.apply(_409);}}ibm.portal.debug.exit("utilities.callOverwrittenFunction",_40b);return _40b;},clearOverwrittenProperties:function(obj){ibm.portal.debug.entry("utilities.clearOverwrittenProperties",[obj]);if(obj){com.ibm.portal.utilities.domData(obj,"_overwritten_",null);if(obj["_overwritten_"]){delete obj["_overwritten_"];}}ibm.portal.debug.exit("utilities.clearOverwrittenProperties");},isExternalUrl:function(_40d){ibm.portal.debug.entry("isExternalUrl",[_40d]);var host=window.location.host;var _40e=window.location.protocol;var _40f=_40d.split("?")[0];var _410=!(_40f.indexOf("://")<0||(_40f.indexOf(_40e)==0&&_40f.indexOf(host)==_40e.length+2));ibm.portal.debug.text("urlStringNoQuery.indexOf(\"://\") = "+_40f.indexOf("://"));ibm.portal.debug.text("urlStringNoQuery.indexOf(protocol) = "+_40f.indexOf(_40e));ibm.portal.debug.exit("isExternalUrl",_410);return _410;},isJavascriptUrl:function(_411){ibm.portal.debug.entry("isJavascriptUrl",[_411]);var url=com.ibm.portal.utilities.string.trim(_411.toLowerCase());var _412=(url.indexOf("javascript:")==0);ibm.portal.debug.exit("isJavascriptUrl",_412);return _412;},isPortalUrl:function(_413){ibm.portal.debug.entry("utilities.isPortalUrl",[_413]);var _414=(_413.indexOf(ibmPortalConfig["portalURI"])>=0);ibm.portal.debug.exit("utilities.isPortalUrl",_414);return _414;},addExternalNode:function(doc,node){var _415=null;if(doc.importNode){_415=doc.importNode(node,true);}else{_415=node;}doc.appendChild(_415);},decodeXML:function(_416){ibm.portal.debug.entry("decodeXML",[_416]);var _417=_416.replace(/&amp;/g,"&");var _418=_417.replace(/&amp;/g,"&");_417=_418.replace(/&#039;/g,"'");_418=_417.replace(/&#034;/g,"\"");_418=_418.replace(/&lt;/g,"<");_418=_418.replace(/&gt;/g,">");ibm.portal.debug.exit("decodeXML",[_418]);return _418;},eventHandlerToString:function(_419){var _41a=_419.toString();var _41b=_41a.indexOf("{");var _41c=_41a.lastIndexOf("}");onclickStr=_41a.substring(_41b+1,_41c);return onclickStr;},_waitingForScript:false,_isWaitingForScript:function(){return com.ibm.portal.utilities._waitingForScript;},stopWaitingForScript:function(){com.ibm.portal.utilities._waitingForScript=false;},waitFor:function(_41d,_41e,_41f,args){var _420=setInterval(function(){if(_41d()){clearInterval(_420);if(!args){_41f();}else{_41f(args);}}},_41e);},waitForScript:function(_421,args){com.ibm.portal.utilities._waitingForScript=true;com.ibm.portal.utilities.waitFor(function(){return (!com.ibm.portal.utilities._isWaitingForScript());},500,_421,args);}};(function(){var _422=0,_423=0,mgrs=[],_424={};com.ibm.portal.utilities.DomDataManager=function(_425){this.trackAll=_425;this.dataSet={};this.tracked={};this.trackedProps={};this.trackedConnections={};this.id="DomDataManager"+_423++;mgrs.push(this);_424[this.id]=this;};var _426=["onclick","click","submit","onsubmit"];dojo.extend(com.ibm.portal.utilities.DomDataManager,{getDuid:function(node,set){var d;if(node.nodeType==1){d=node.getAttribute("duid");if(!d){d="duid"+_422++;node.setAttribute("duid",d);}}else{d=node.duid;if(!d){d=node.duid="duid"+_422++;}}if(_422==Number.MAX_VALUE){_422=0;}return d;},data:function(node,key,_427){if(node){var d,duid;if(arguments.length>2){duid=this.getDuid(node,true);if(this.trackAll){this.track(node);}d=this.dataSet[duid];if(!d){d=this.dataSet[duid]={};}d[key]=_427;node._domMgrId=this.id;return _427;}else{duid=this.getDuid(node);if(duid){d=this.dataSet[duid];if(d){return d[key];}}return null;}}},track:function(node){if(node&&node.nodeType==1){var d=this.getDuid(node,true);this.tracked[d]=node;return d;}return null;},trackProperty:function(node,prop){var duid=this.track(node);if(duid){if(!this.trackedProps[duid]){this.trackedProps[duid]={};}this.trackedProps[duid][prop]=true;}},trackConnection:function(node,conn){var duid=this.track(node);if(duid&&!this.trackedConnections[duid]){this.trackedConnections[duid]=[];}this.trackedConnections[duid].push(conn);},toString:function(){return this.id;},_nodeExists:function(n){while(n){if(n.parentNode==dojo.body()){return true;}n=n.parentNode;}return false;},cleanNode:function(node){if(node&&this.tracked){var i=this.track(node);if(i){for(var p in this.trackedProps[i]){this.tracked[i][p]=null;}for(var x=0;x<_426.length;x++){try{this.tracked[i][_426[x]]=null;}catch(err){}}if(this.trackedConnections[i]){while(this.trackedConnections[i].length>0){dojo.disconnect(this.trackedConnections[i].pop());}}delete this.trackedConnections[i];delete this.trackedProps[i];delete this.dataSet[i];delete this.tracked[i];}}},clean:function(_428){for(var i in this.tracked){if(_428||!this._nodeExists(this.tracked[i])){this.cleanNode(this.tracked[i]);}}},destroy:function(){this.clean(true);delete this.dataSet;delete this.tracked;delete this.trackedProps;delete this.trackedConnections;for(var i=0;i<mgrs.length;i++){if(mgrs[i]==this){mgrs.splice(i,1);break;}}for(var id in _429){if(_429[id]==this){delete _429[id];}}delete _424[this.id];}});var _42a=new com.ibm.portal.utilities.DomDataManager(true);var _42b=_42a;var _429={};dojo.addOnWindowUnload(function(){while(mgrs.length>0){mgrs.pop().destroy();}});com.ibm.portal.utilities.domData=function(){var mgr=com.ibm.portal.utilities.domData.getManager(arguments[0]);if(mgr){return mgr.data.apply(mgr,arguments);}};dojo.mixin(com.ibm.portal.utilities.domData,{setCurrent:function(mgr){if(mgr!=null){_42b=mgr;}},resetCurrent:function(){_42b=_42a;},getCurrent:function(){return _42b;},getManager:function(node){if(node==document||node==dojo.body()){return _42a;}else{if(node==window||typeof node.nodeName!="string"||typeof node.nodeType!="number"){return null;}else{if(node._domMgrId){return _424[node._domMgrId]||_42b;}else{return _42b;}}}},register:function(mgr,id){_429[id]=mgr;},get:function(id){return _429[id];}});dojo.subscribe("/portal/DOM/StartUpdate",function(id){var mgr=com.ibm.portal.utilities.domData.get(id);if(mgr){com.ibm.portal.utilities.domData.setCurrent(mgr);}});dojo.subscribe("/portal/DOM/StopUpdate",function(id){var mgr=com.ibm.portal.utilities.domData.get(id);if(mgr==com.ibm.portal.utilities.domData.getCurrent()){com.ibm.portal.utilities.domData.resetCurrent();}});})();com.ibm.portal.utilities.string={findNext:function(_42c,_42d,from){ibm.portal.debug.entry("string.findNext",[_42c,_42d]);var _42e=-1;for(var i=0;i<_42d.length;i++){var _42f=null;if(from){_42f=from+_42d[i].length;}var _430=_42c.indexOf(_42d[i],_42f);if(_430>-1&&(_430<_42e||_42e==-1)){_42e=_430;}}ibm.portal.debug.exit("string.findNext",[_42e]);return _42e;},contains:function(_431,_432){ibm.portal.debug.entry("string.contains",[_431,_432]);var _433=false;if(_431!=null&&_432!=null){_433=(_431.indexOf(_432)!=-1);}ibm.portal.debug.exit("string.contains",[_433]);return _433;},strip:function(_434,_435){ibm.portal.debug.entry("string.strip",[_434,_435]);var _436=_434.replace(new RegExp(_435,"g"),"");ibm.portal.debug.exit("string.strip",[_436]);return _436;},properCase:function(_437){if(_437==null||_437.length<1){return "";}ibm.portal.debug.entry("string.properCase",[_437]);var _438=_437.charAt(0).toUpperCase();if(_437.length>1){_438+=_437.substring(1).toLowerCase();}ibm.portal.debug.exit("string.properCase",[_438]);return _438;},trim:function(_439){ibm.portal.debug.entry("string.trim",[_439]);var _43a=_439;_43a=_43a.replace(/^\s+/,"");_43a=_43a.replace(/\s+$/,"");ibm.portal.debug.exit("string.trim",_43a);return _43a;}};dojo.declare("com.ibm.portal.utilities.HttpUrl",null,{constructor:function(_43b){this.scheme=window.location.protocol+"//";this.server=this._extractServer(_43b);this.port=this._extractPort(_43b);this.path=this._extractPath(_43b);this.query=this._extractQuery(_43b);this.anchor="";},addParameter:function(name,_43c){this.query+="&"+name+"="+_43c;},toString:function(){var str="";if(this.server!=""){str+=this.scheme+this.server;}if(this.port!=""){str+=":"+this.port;}str+="/"+this.path;if(this.query!=""){str+="?"+this.query;}if(this.anchor!=""){str+="#"+this.anchor;}return str;},_extractServer:function(_43d){var _43e=_43d.indexOf(this.scheme);var _43f="";if(_43e==0){var _440=_43d.indexOf("/",_43e+this.scheme.length);var _441=_43d.substring(_43e+this.scheme.length,_440);_43f=_441.split(":")[0];}return _43f;},_extractPort:function(_442){var _443=_442.indexOf(this.server);var _444="";if(_443>=0){var _445=_442.indexOf("/",_443);var _446=_442.substring(_443,_445);var _447=_446.split(":");if(_447.length>1){_444=_447[1];}}return _444;},_extractPath:function(_448){var _449=_448.indexOf(this.server);var _44a="";if(_449>=0){var _44b=_448.indexOf("/",_449);var _44c=_448.indexOf("?");var _44d=_448.lastIndexOf("#");if(_44c>=0){_44a=_448.substring(_44b+1,_44c);}else{if(_44d>=0){_44a=_448.substring(_44b+1,_44d);}else{_44a=_448.substring(_44b+1);}}}return _44a;},_extractQuery:function(_44e){var _44f="";var _450=_44e.split("?");if(_450.length>1){_44f=_450[1].split("#")[0];}return _44f;},_extractAnchor:function(_451){var _452="";var _453=_451.split("#");if(_453.length>1){_452=_453[_453.length-1];}return _452;}});}if(!dojo._hasResource["com.ibm.portal.debug"]){dojo._hasResource["com.ibm.portal.debug"]=true;dojo.provide("com.ibm.portal.debug");dojo.provide("ibm.portal.debug");ibm.portal.debug.setTrace=function(_454){ibm.portal.debug._traceString=_454;};ibm.portal.debug._isDebugEnabled=function(){var _455=false;if(typeof (ibmPortalConfig)!="undefined"){if(ibmPortalConfig&&ibmPortalConfig.isDebug){_455=true;}}return _455;};ibm.portal.debug.text=function(str,_456){if(typeof (ibmPortalConfig)!="undefined"){if(ibmPortalConfig&&ibmPortalConfig.isDebug){var _457=ibm.portal.debug._traceString;if(_457){if(_456){if(_456.indexOf(_457)>=0){window.console.log(str);}}}else{window.console.log(str);}}}};ibm.portal.debug.entry=function(_458,args){if(ibm.portal.debug._isDebugEnabled()){var _459=_458+" --> entry; { ";if(args&&args.length>0){for(arg in args){_459=_459+args[arg]+" ";}}_459=_459+" } ";ibm.portal.debug.text(_459,_458);}};ibm.portal.debug.exit=function(_45a,_45b){if(ibm.portal.debug._isDebugEnabled()){var _45c=_45a+" --> exit;";if(typeof (_45b)!="undefined"){_45c=_45c+" { "+_45b+" } ";}ibm.portal.debug.text(_45c,_45a);}};ibm.portal.debug.escapeXmlForHTMLDisplay=function(_45d){_45d=_45d.replace(/</g,"&lt;");_45d=_45d.replace(/>/g,"&gt;");return _45d;};}if(!dojo._hasResource["com.ibm.ajax.auth"]){dojo._hasResource["com.ibm.ajax.auth"]=true;dojo.provide("com.ibm.ajax.auth");com.ibm.ajax.auth={prepareSecure:function(args,_45e,_45f){args._handle=args.handle;args.handle=dojo.partial(this.testAuthenticationHandler,this,_45e,_45f);return args;},setAuthenticationHandler:function(_460){this.authenticationHandler=_460;},setTestAuthenticationHandler:function(_461){this.testAuthenticationHandler=_461;},setDefaultAuthenticationTests:function(_462,_463,_464){this.checkFromCaller=_462;this.checkByContentType=_463;this.checkByStatusCode=_464;},addAuthenticationCheck:function(_465){if(_465){this.authenticationChecks.push(_465);}},isAuthenticationRequired:function(_466,_467){var _468=_467.args.handleAs;var _469=false;if(!_466||dojo.indexOf(["cancel","timeout"],_466.dojoType)==-1){if(this.checkByContentType&&dojo.indexOf(["xml","json","json-comment-optional","text"],_468)!=-1&&_467.xhr&&/^text\/html/.exec(_467.xhr.getResponseHeader("Content-Type"))&&_467.xhr.status>=200&&_467.xhr.status<300){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG content type does not match request, assume logged out");return true;}else{if(this.checkByStatusCode&&dojo.indexOf(["xml","json","json-comment-optional","text"],_468)!=-1&&_467.xhr&&_467.xhr.status==302){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG redirect received, assume login request");return true;}else{if(this.checkByStatusCode&&_467.xhr&&(_467.xhr.status==401||_467.xhr.status==0)&&_467.xhr.getResponseHeader("WWW-Authenticate")&&_467.xhr.getResponseHeader("WWW-Authenticate").indexOf("IBMXHR")!=-1){ibm.portal.debug.text("auth::isAuthenticationRequired DEBUG Portal 401 received, assume login required");return true;}}}}if(!_469){for(var i=0;i<this.authenticationChecks.length;i++){if(this.authenticationChecks[i](this,_466,_467)){return true;}}}return false;},testAuthenticationHandler:function(auth,_46a,_46b,_46c,_46d){var args=dojo._toArray(arguments).slice(3);var _46e=false;if(!_46c||dojo.indexOf(["cancel","timeout"],_46c.dojoType)==-1){if(auth.checkFromCaller&&typeof _46a=="function"&&_46a(_46c,_46d)){_46e=true;}else{_46e=auth.isAuthenticationRequired(_46c,_46d,_46a);}}if(_46e){var path=auth._parseUri(_46d.args.url).path;dojo.cookie("WASPostParam",null,{expires:-1,path:path});dojo.cookie("WASReqURL",null,{expires:-1,path:"/"});auth.authenticationHandler(_46c,_46d,_46b);args[0]=new Error("xhr unauthenticated");args[0].dojoType="unauthenticated";}if(_46d.args._handle){return _46d.args._handle.apply(this,args);}else{return (_46c);}},_parseUri:function(uri){if(!uri){return null;}uri=new dojo._Url(uri);var _46f=this._splitQuery(uri.query);uri.queryParameters=_46f;return uri;},_splitQuery:function(_470){var _471={};if(!_470){return _471;}if(_470.charAt(0)=="?"){_470=_470.substring(1);}var args=_470.split("&");for(var i=0;i<args.length;i++){if(args[i].length>0){var _472=args[i].indexOf("=");if(_472==-1){var key=decodeURIComponent(args[i]);var _473=_471[key];if(dojo.isArray(_473)){_473.push("");}else{if(_473){_471[key]=[_473,""];}else{_471[key]="";}}}else{if(_472>0){var key=decodeURIComponent(args[i].substring(0,_472));var _474=decodeURIComponent(args[i].substring(_472+1));var _473=_471[key];if(dojo.isArray(_473)){_473.push(_474);}else{if(_473){_471[key]=[_473,_474];}else{_471[key]=_474;}}}}}}return _471;},checkFromCaller:true,checkByContentType:true,checkByStatusCode:true,authenticationChecks:[],authenticationHandler:function(){ibm.portal.debug.text("auth::authenticationHandler DEBUG authentication was required");}};}if(!dojo._hasResource["com.ibm.portal.EventBroker"]){dojo._hasResource["com.ibm.portal.EventBroker"]=true;dojo.provide("com.ibm.portal.EventBroker");dojo.require("com.ibm.portal.debug");dojo.declare("com.ibm.portal.Event",null,{constructor:function(_475){this.eventName=_475;this._listeners=new Array();},fire:function(_476){ibm.portal.debug.text("Firing event: "+this.eventName+" with parameters: ");dojo.publish(this.eventName,[_476]);},register:function(_477,_478){if(!_478){return dojo.subscribe(this.eventName,null,_477);}else{return dojo.subscribe(this.eventName,_477,_478);}},unregister:function(_479){dojo.unsubscribe(_479);},cancel:function(_47a){dojo.publish(this.id+"/cancel");}});dojo.declare("com.ibm.portal.EventBroker",null,{startPage:new com.ibm.portal.Event("portal/StartPage"),endPage:new com.ibm.portal.Event("portal/EndPage"),startFragment:new com.ibm.portal.Event("portal/StartFragment"),endFragment:new com.ibm.portal.Event("portal/EndFragment"),fragmentUpdated:new com.ibm.portal.Event("portal/FragmentUpdated"),startRequest:new com.ibm.portal.Event("portal/StartRequest"),endRequest:new com.ibm.portal.Event("portal/EndRequest"),cancelAll:new com.ibm.portal.Event("portal/CancelAll"),cancelFragmentUpdate:new com.ibm.portal.Event("portal/CancelFragmentUpdate"),stateChanged:new com.ibm.portal.Event("portal/StateChanged"),startScriptHandling:new com.ibm.portal.Event("portal/StartScriptHandling"),endScriptHandling:new com.ibm.portal.Event("portal/EndScriptHandling"),startScriptExecution:new com.ibm.portal.Event("portal/StartScriptExecution"),endScriptExecution:new com.ibm.portal.Event("portal/EndScriptExecution"),javascriptCleanup:new com.ibm.portal.Event("portal/JavascriptCleanup"),beforeSnapShot:new com.ibm.portal.Event("portal/BeforeSnapShot"),afterSnapShot:new com.ibm.portal.Event("portal/AfterSnapShot"),restorePointUpdated:new com.ibm.portal.Event("portal/RestorePointUpdated"),clearRestorePoint:new com.ibm.portal.Event("portal/ClearRestorePoint"),stopEvent:new com.ibm.portal.Event("portal/StopEvent"),redirect:new com.ibm.portal.Event("portal/Redirect")});com.ibm.portal.EVENT_BROKER=new com.ibm.portal.EventBroker();}if(!dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequestQueue"]){dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequestQueue"]=true;dojo.provide("com.ibm.portal.services.PortalRestServiceRequestQueue");dojo.declare("com.ibm.portal.services.PortalRestServiceRequestQueue",null,{maxNumberOfActiveRequests:4,constructor:function(){var _47b="PortalRestServiceRequestQueue.constructor";ibm.portal.debug.entry(_47b);this._activeRequests=0;this._requestQueue=[];ibm.portal.debug.exit(_47b);},add:function(req){var _47c="PortalRestServiceRequestQueue.add";ibm.portal.debug.entry(_47c,[req]);this._requestQueue.push(req);var me=this;setTimeout(function(){me._executeNextRequest();},5);ibm.portal.debug.exit(_47c);},_executeNextRequest:function(){var _47d="PortalRestServiceRequestQueue._executeNextRequest";ibm.portal.debug.entry(_47d);ibm.portal.debug.text(this._requestQueue.length+" request(s) in the queue. "+this._activeRequests+" active request(s) currently.",_47d);if(this._requestQueue.length>0&&this._activeRequests<this.maxNumberOfActiveRequests){var _47e=this._requestQueue.shift();ibm.portal.debug.text("Executing request: "+_47e,_47d);var me=this;setTimeout(function(){me._activeRequests=me._activeRequests+1;_47e.execute(function(){me._notifyComplete();});},1);}else{ibm.portal.debug.text("No request(s) pending or maximum number of requests already currently active.",_47d);}ibm.portal.debug.exit(_47d);},_notifyComplete:function(){var _47f="PortalRestServiceRequestQueue._notifyComplete";this._activeRequests=this._activeRequests-1;if(this._activeRequests<0){this._activeRequests=0;}var me=this;setTimeout(function(){me._executeNextRequest();},5);}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd.getCopyKeyState=dojo.isCopyKeyPressed;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _480=this;dojo.mixin(_480,args);_480.node=args.node;_480._showArgs=dojo.mixin({},args);_480._showArgs.node=_480.node;_480._showArgs.duration=_480.showDuration;_480.showAnim=_480.showFunc(_480._showArgs);_480._hideArgs=dojo.mixin({},args);_480._hideArgs.node=_480.node;_480._hideArgs.duration=_480.hideDuration;_480.hideAnim=_480.hideFunc(_480._hideArgs);dojo.connect(_480.showAnim,"beforeBegin",dojo.hitch(_480.hideAnim,"stop",true));dojo.connect(_480.hideAnim,"beforeBegin",dojo.hitch(_480.showAnim,"stop",true));},show:function(_481){return this.showAnim.play(_481||0);},hide:function(_482){return this.hideAnim.play(_482||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_483={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _484=function(_485){this._index=-1;this._animations=_485||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_484,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_486,_487){if(!this._current){this._current=this._animations[this._index=0];}if(!_487&&this._current.status()=="playing"){return this;}var _488=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_489=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_48a=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_488);d.disconnect(_489);d.disconnect(_48a);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_48b,_48c){this.pause();var _48d=this.duration*_48b;this._current=null;d.some(this._animations,function(a){if(a.duration<=_48d){this._current=a;return true;}_48d-=a.duration;return false;});if(this._current){this._current.gotoPercent(_48d/this._current.duration,_48c);}return this;},stop:function(_48e){if(this._current){if(_48e){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_484,_483);dojo.fx.chain=function(_48f){return new _484(_48f);};var _490=function(_491){this._animations=_491||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_491,function(a){var _492=a.duration;if(a.delay){_492+=a.delay;}if(this.duration<_492){this.duration=_492;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_490,{_doAction:function(_493,args){d.forEach(this._animations,function(a){a[_493].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_494,args){var t=this._pseudoAnimation;t[_494].apply(t,args);},play:function(_495,_496){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_497,_498){var ms=this.duration*_497;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_498);});this._call("gotoPercent",arguments);return this;},stop:function(_499){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_490,_483);dojo.fx.combine=function(_49a){return new _490(_49a);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _49b=d.style(node,"height");return Math.max(_49b,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["com.ibm.portal.utilities.html"]){dojo._hasResource["com.ibm.portal.utilities.html"]=true;dojo.provide("com.ibm.portal.utilities.html");dojo.require("com.ibm.portal.utilities");dojo.require("dojo.fx");com.ibm.portal.utilities.html={createAnchor:function(_49c,href,id,_49d,_49e){ibm.portal.debug.entry("SkinRenderer.createAnchor",[_49c,href,id,_49d,_49e]);var _49f=document.createElement("A");_49f.href=href;if(id){_49f.id=id;}if(_49e){_49f.className=_49e;}if(_49d){_49f.appendChild(document.createTextNode(_49d));}_49c.appendChild(_49f);ibm.portal.debug.exit("SkinRenderer.createAnchor",[_49f]);return _49f;},createButton:function(_4a0,href,id,_4a1,_4a2){ibm.portal.debug.entry("SkinRenderer.createButton",[_4a0,href,id,_4a1,_4a2]);var _4a3=document.createElement("BUTTON");if(href){_4a3.href=href;}if(id){_4a3.id=id;}if(_4a2){_4a3.className=_4a2;}if(_4a1){_4a3.appendChild(document.createTextNode(_4a1));}_4a0.appendChild(_4a3);ibm.portal.debug.exit("SkinRenderer.createButton",[_4a3]);return _4a3;},createImage:function(_4a4,src,id,_4a5,_4a6){ibm.portal.debug.entry("SkinRenderer.createImage",[_4a4,src,id,_4a5,_4a6]);var img=document.createElement("IMG");img.src=src;if(id){img.id=id;}if(_4a5){img.alt=_4a5;img.setAttribute("title",_4a5);if(_4a4.nodeName=="BUTTON"){_4a4.setAttribute("title",_4a5);}}if(_4a6){img.className=_4a6;}_4a4.appendChild(img);ibm.portal.debug.exit("SkinRenderer.createImage",[img]);return img;},createImageAnchor:function(_4a7,src,id,_4a8,_4a9){ibm.portal.debug.entry("SkinRenderer.createImageAnchor",[_4a7,src,id,_4a8,_4a9]);var _4aa=com.ibm.portal.utilities.html.createAnchor(_4a7,"javascript:void(0);");var img=document.createElement("IMG");img.src=src;if(id){img.id=id;}if(_4a8){img.alt=_4a8;img.title=_4a8;}if(_4a9){img.className=_4a9;}_4aa.appendChild(img);ibm.portal.debug.exit("SkinRenderer.createImageAnchor",[img]);return _4aa;},createTemporaryMarkupDiv:function(_4ab){ibm.portal.debug.entry("html.createTemporaryMarkupDiv");var _4ac={markup:_4ab,objects:{}};if(dojo.isIE){_4ac=com.ibm.portal.utilities.html.extractObjectElementsFromString(_4ab);_4ac.markup=com.ibm.portal.utilities.html.replaceForms(_4ac.markup);}var div=document.createElement("DIV");dojo.body().appendChild(div);div.setAttribute("style","display:none");div.innerHTML="<p style='display: none;'>&nbsp;</p>"+_4ac.markup;ibm.portal.debug.exit("html.createTemporaryMarkupDiv",[div]);return {node:div,objects:_4ac.objects};},replaceTemporaryMarkup:function(_4ad,_4ae){var c=_4ad.node.childNodes;if(c&&_4ad.node!=_4ae){while(c.length>0){_4ae.appendChild(c[0]);}}if(dojo.isIE){com.ibm.portal.utilities.html.replaceObjectElementsInMarkup(_4ad.objects);com.ibm.portal.utilities.html.replaceFormMarkers(_4ae);}},extractObjectElementsFromString:function(_4af){var _4b0={};var _4b1=/<object/gi;var _4b2=/<\/object>/gi;var _4b3=_4af;var _4b4=null;try{_4b4=_4b1.exec(_4b3);if(_4b4&&_4b4.index>-1){var _4b5=_4b4.index;var buf;var end;var _4b6;var id;while(_4b5>-1){buf=_4b3.substring(0,_4b5);end=_4b3.indexOf(">",_4b5);if(_4b3.charAt(end-1)=="/"){_4b1.lastIndex=end;_4b4=_4b1.exec(_4b3);if(_4b4){_4b5=_4b4.index;continue;}else{break;}}_4b2.lastIndex=_4b5;_4b4=_4b2.exec(_4b3);if(_4b4){end=_4b4.index;}else{break;}_4b6=_4b3.substring(_4b5,end+9);id=dojo.dnd.getUniqueId();_4b3=buf+"<div id='"+id+"'></div>"+_4b3.substring(end+9);_4b0[id]=_4b6;_4b1.lastIndex=0;_4b4=_4b1.exec(_4b3);if(_4b4){_4b5=_4b4.index;}else{break;}}}_4af=_4b3;}catch(e){_4b0={};}return {markup:_4af,objects:_4b0};},replaceObjectElementsInMarkup:function(_4b7){for(var id in _4b7){var _4b8=dojo.byId(id);if(_4b8){_4b8.outerHTML=_4b7[id];}}},removeNodesOnCondition:function(node,_4b9){if(!_4b9){_4b9=function(){return false;};}if(node&&node.childNodes){for(var i=0;i<node.childNodes.length;i++){if(_4b9(node.childNodes[i])){var _4ba=node.childNodes[i];node.removeChild(_4ba);delete _4ba;i--;}else{this.removeNodesOnCondition(node.childNodes[i],_4b9);}}}},getElementsByTagNames:function(_4bb){ibm.portal.debug.entry("html.getElementsByTagNames",[_4bb]);var _4bc=new Array();for(var i=1;i<arguments.length;i++){var _4bd=_4bb.getElementsByTagName(arguments[i]);ibm.portal.debug.text("found "+_4bd.length+" "+arguments[i]+" tags.");for(var j=0;j<_4bd.length;j++){_4bc.push(_4bd[j]);}}ibm.portal.debug.exit("html.getElementsByTagNames",[_4bc]);return _4bc;},getX:function(elem){ibm.portal.debug.entry("html.getX",[elem]);var size=0;if(elem!=null){if(elem.offsetParent!=null){size+=com.ibm.portal.utilities.html.getX(elem.offsetParent);}if(elem!=null){size+=elem.offsetLeft;}}ibm.portal.debug.exit("html.getX",[size]);return size;},getY:function(elem){ibm.portal.debug.entry("html.getY"[elem]);var size=0;if(elem!=null){if(elem.offsetParent!=null){size+=com.ibm.portal.utilities.html.getY(elem.offsetParent);}if(elem!=null){size+=elem.offsetTop;}}ibm.portal.debug.exit("html.getY",[size]);return size;},convertFormToQuery:function(_4be,_4bf){ibm.portal.debug.entry("html.convertFormToQuery",[_4be,_4bf]);var _4c0=this.getElementsByTagNames(_4be,"input","select","textarea","button");var _4c1="";var _4c2="&";var _4c3="=";var _4c4=0;for(var i=0;i<_4c0.length;i++){var _4c5=this.convertInputToNameValuePairs(_4c0[i],_4bf);for(var k=0;k<_4c5.length;k++){var pair=_4c5[k];if(pair.name!=""){if(_4c4!=0){_4c1+=_4c2;}_4c1+=encodeURIComponent(pair.name);for(var j=0;j<pair.values.length;j++){if(j==0){_4c1+=(_4c3+encodeURIComponent(pair.values[j]));}else{_4c1+=(_4c2+encodeURIComponent(pair.name)+_4c3+encodeURIComponent(pair.values[j]));}}_4c4=_4c4+1;}}}ibm.portal.debug.exit("html.convertFormToQuery",_4c1);return _4c1;},convertInputToNameValuePairs:function(_4c6,_4c7){ibm.portal.debug.entry("html.convertInputToNameValuePairs",[_4c6,_4c7]);var type=_4c6.type;ibm.portal.debug.text("Input type is: "+type);ibm.portal.debug.text("Input name is: "+_4c6.name);var name="";var _4c8=[];var _4c9=[];if(!_4c6.disabled){switch(type.toLowerCase()){case "text":case "password":case "hidden":name=_4c6.name;_4c8.push(_4c6.value);_4c9.push({name:name,values:_4c8});break;case "reset":case "button":if(!_4c7||(_4c6.name==_4c7.name&&_4c6.value==_4c7.value)){name=_4c6.name;_4c8.push(_4c6.value);_4c9.push({name:name,values:_4c8});}break;case "radio":case "checkbox":if(_4c6.checked){name=_4c6.name;_4c8.push(_4c6.value);}_4c9.push({name:name,values:_4c8});break;case "image":if(!_4c7||_4c6.name==_4c7){name=_4c6.name;if(_4c6.value){_4c8.push(_4c6.value);_4c9.push({name:name,values:_4c8});}_4c9.push({name:name+".x",values:[this.getX(_4c6)]});_4c9.push({name:name+".y",values:[this.getY(_4c6)]});}break;case "submit":if(!_4c7||(_4c6.name==_4c7.name&&_4c6.value==_4c7.value)){name=_4c6.name;if(_4c6.value){_4c8.push(_4c6.value);}_4c9.push({name:name,values:_4c8});}break;case "select-one":case "select-multiple":name=_4c6.name;for(var i=0;i<_4c6.options.length;i++){if(_4c6.options[i].selected){var _4ca=_4c6.options[i].value?_4c6.options[i].value:_4c6.options[i].text;_4c8.push(_4ca);}}if(_4c8.length!=0){_4c9.push({name:name,values:_4c8});}break;case "file":break;default:name=_4c6.name;_4c8.push(_4c6.value);_4c9.push({name:name,values:_4c8});}}ibm.portal.debug.exit("html.convertInputToNameValuePairs",_4c9);return _4c9;},isHidden:function(node){return dojo.style(node,"display")=="none";},hide:function(node){dojo.fx.wipeOut({node:node,duration:5}).play();},show:function(node){dojo.fx.wipeIn({node:node,duration:5}).play();},isDescendantOf:function(node,ref){var node=node.parentNode;var _4cb=false;while(node&&!_4cb){if(node==ref){_4cb=true;}node=node.parentNode;}return _4cb;},safeClean:function(node,_4cc){if(!node||node.nodeType!=1){return;}if(dojo.isIE){com.ibm.portal.utilities.html.cleanForms(node);}var _4cd=com.ibm.portal.utilities.domData;dojo.query("[duid]",node).forEach(function(_4ce){var mgr=_4cd.getManager(_4ce);if(mgr){mgr.cleanNode(_4ce);}dojo.destroy(_4ce);});node.innerHTML="";if(!_4cc&&window.CollectGarbage){window.CollectGarbage();}}};(function(){var _4cf=/<\w+([^>]*)>/i,_4d0=/([\w-]+)=/i;var _4d1={formNodes:[],getAttributeNames:function(node){var ret=[];if(node){var o=node.outerHTML;var m=_4cf.exec(o);if(m&&m.length>1){var _4d2=m[1];m=_4d0.exec(_4d2);while(m&&m.index>-1){ret.push(m[1]);_4d2=_4d2.substr(m.index+m[0].length);m=_4d0.exec(_4d2);}}}return ret;},replaceForms:function(_4d3){return _4d3.replace(/<form/ig,"<div data-csa-xform=\"true\"").replace(/<\/form>/ig,"</div>");},replaceFormMarkers:function(node){dojo.query("[data-csa-xform]",node).forEach(function(_4d4){var _4d5=_4d1.getNode();_4d4.parentNode.insertBefore(_4d5,_4d4);_4d1.moveContents(_4d4,_4d5);_4d4.innerHTML="";_4d1.copyAttributes(_4d4,_4d5);dojo.destroy(_4d4);_4d4=null;});},getNode:function(){if(_4d1.formNodes.length>0){return _4d1.formNodes.shift();}else{var node=document.createElement("form");node._attachEvent=node.attachEvent;node._listeners=[];node.attachEvent=function(nom,fn){this._listeners.push(fn);return this._attachEvent(nom,fn);};return node;}},returnNode:function(node){if(node){if(node._listeners){while(node._listeners.length>0){node.detachEvent(node._listeners.shift());}}var _4d6=com.ibm.portal.utilities.domData.getManager(node);if(_4d6){_4d6.cleanNode(node);}com.ibm.portal.utilities.html.safeClean(node);_4d1.clearAttributes(node);if(node.parentNode){node.parentNode.removeChild(node);}_4d1.formNodes.push(node);}},clearAttributes:function(node){if(node){var _4d7=_4d1.getAttributeNames(node),n;if(_4d7){for(var j=0;j<_4d7.length;j++){n=_4d7[j];if(n!="duid"){node.removeAttribute(n);}}}}},copyAttributes:function(node,copy){if(node){var _4d8=_4d1.getAttributeNames(node),n,_4d9;if(_4d8){for(var j=0;j<_4d8.length;j++){n=_4d8[j];if(n=="data-csa-xform"){continue;}_4d9=node.getAttributeNode(n);if(_4d9){copy.setAttribute(n,_4d9.value);}}}copy.style.cssText=node.style.cssText;}},moveContents:function(_4da,_4db){var c=_4da.childNodes;if(c&&_4da!=_4db){while(c.length>0){_4db.appendChild(c[0]);}}},cleanForms:function(node){if(node){var _4dc=dojo.query("form",node).forEach(function(_4dd){_4d1.returnNode(_4dd);});}}};dojo.mixin(com.ibm.portal.utilities.html,{replaceForms:_4d1.replaceForms,replaceFormMarkers:_4d1.replaceFormMarkers,cleanForms:_4d1.cleanForms});dojo.addOnWindowUnload(function(){var node;while(_4d1.formNodes.length>0){node=_4d1.formNodes.shift();if(node){var _4de=com.ibm.portal.utilities.domData.getManager(node);if(_4de){_4de.cleanNode(node);}node._attachEvent=null;node.attachEvent=null;node._listeners=null;}}});})();}if(!dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequest"]){dojo._hasResource["com.ibm.portal.services.PortalRestServiceRequest"]=true;dojo.provide("com.ibm.portal.services.PortalRestServiceRequest");dojo.require("com.ibm.ajax.auth");dojo.require("com.ibm.portal.EventBroker");dojo.require("com.ibm.portal.services.PortalRestServiceRequestQueue");dojo.declare("com.ibm.portal.services.ContentHandlerURL",null,{constructor:function(uri,_4df,verb,_4e0){ibm.portal.debug.entry("ContentHandlerURL.constructor",[uri,_4df,verb,_4e0]);if(uri==null){return null;}if(!_4df){_4df=2;}var _4e1=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var _4e2=_4e1.getLocale();if(_4e2){if(_4e0){_4e0+="&locale="+_4e2;}else{_4e0="&locale="+_4e2;}}this.url="";if(uri.charAt(0)=="?"){this.url=this._fromQueryString(uri,_4e0);}else{this.url=this._fromURI(uri,_4df,"download",_4e0);}ibm.portal.debug.exit("ContentHandlerURL.constructor");},_fromQueryString:function(_4e3,_4e4){ibm.portal.debug.entry("fromQueryString",[_4e3]);var str=ibmPortalConfig["contentHandlerURI"]+_4e3;str=str.replace(/&amp;/g,"&");if(_4e4){str=str+_4e4;}if(str.indexOf("rep=compact")<0&&str.indexOf("rep=full")<0){str=str+"&rep=compact";}ibm.portal.debug.exit("fromQueryString",[str]);return str;},_fromURI:function(uri,_4e5,verb,_4e6){ibm.portal.debug.entry("ContentHandlerURL._fromURI",[uri,_4e5,verb,_4e6]);uri=com.ibm.portal.utilities.encodeURI(uri);var qStr="?uri="+uri;if(_4e5){qStr=qStr+"&levels="+encodeURIComponent(_4e5);}if(verb){qStr=qStr+"&mode="+encodeURIComponent(verb);}if(_4e6){qStr=qStr+_4e6;}if(qStr.indexOf("rep=compact")<0&&qStr.indexOf("rep=full")<0){qStr=qStr+"&rep=compact";}return this._fromQueryString(qStr);},getURI:function(){ibm.portal.debug.entry("ContentHandlerURL.getURI");return com.ibm.portal.utilities.decodeURI(this._extractParamValue("uri"));},getLevels:function(){return this._extractParamValue("levels");},getVerb:function(){return this._extractParamValue("verb");},_extractParamValue:function(_4e7){ibm.portal.debug.entry("ContentHandlerURL._extractParamValue",[_4e7]);var _4e8=this.url.indexOf(_4e7);var _4e9=this.url.indexOf("&",_4e8);var _4ea=this.url.slice(_4e8+_4e7.length+1,_4e9);ibm.portal.debug.exit("ContentHandlerURL._extractParamValue",[_4ea]);return _4ea;}});dojo.require("com.ibm.portal.utilities.html");dojo.declare("com.ibm.portal.services.PortalRestServiceForm",null,{method:"GET",isMultipart:false,encoding:"application/x-www-form-urlencoded",DomId:null,constructor:function(_4eb){if(_4eb.getAttributeNode("method")){this.method=_4eb.getAttributeNode("method").value;}if(_4eb.getAttributeNode("encType")){this.encoding=_4eb.getAttributeNode("encType").value;}if(_4eb.getAttributeNode("id")){this.DomId=_4eb.getAttributeNode("id").value;}else{DomId=_4eb;}this.isMultipart=(this.encoding=="multipart/form-data");},getDOMElement:function(){return dojo.byId(this.DomId);},submit:function(){this.getDOMElement().submit();},toQuery:function(){return com.ibm.portal.utilities.html.convertFormToQuery(this.getDOMElement());}});com.ibm.portal.services.REQUEST_QUEUE=new com.ibm.portal.services.PortalRestServiceRequestQueue();dojo.declare("com.ibm.portal.services.PortalRestServiceRequest",null,{constructor:function(_4ec,form,_4ed,sync){ibm.portal.debug.entry("PortalRestServiceRequest.constructor",[_4ec,form,_4ed,sync]);this._feedURI=_4ec.url;this._textOnly=_4ed;this._sync=sync;this._form=form;this._customResponseValidator=null;this._onauthenticated=null;if(!this._sync){this._sync=false;}ibm.portal.debug.exit("PortalRestServiceRequest.constructor");},cancelled:false,_deferred:undefined,setAuthenticationValidator:function(_4ee){this._customResponseValidator=_4ee;},setOnAuthenticatedHandler:function(_4ef){this._onauthenticated=_4ef;},create:function(data,_4f0,_4f1){if(!this.cancelled){this._doXmlHttpRequest("POST",data,_4f0,_4f1);}},read:function(_4f2,_4f3){ibm.portal.debug.entry("PortalRestServiceRequest.read",[_4f2,_4f3]);if(!this.cancelled){if(!this._sync){ibm.portal.debug.text("Queueing request!");var q=com.ibm.portal.services.REQUEST_QUEUE;var me=this;q.add({execute:function(_4f4){if(!me.cancelled){com.ibm.portal.EVENT_BROKER.startRequest.fire({uri:me._feedURI});var _4f5=function(arg1,arg2,arg3,arg4){_4f2(arg1,arg2,arg3,arg4);if(_4f4){_4f4();}};if(me._textOnly){me._retrieveRawFeed(_4f5,_4f3);}else{me._retrieve(_4f5,_4f3);}}else{if(_4f4){_4f4();}}}});}else{com.ibm.portal.EVENT_BROKER.startRequest.fire({uri:this._feedURI});if(this._textOnly){this._retrieveRawFeed(_4f2,_4f3);}else{this._retrieve(_4f2,_4f3);}}}ibm.portal.debug.exit("PortalRestServiceRequest.read");},update:function(data,_4f6,_4f7){if(!this.cancelled){this._doXmlHttpRequest("Put",data,_4f6,_4f7);}},remove:function(_4f8,_4f9){if(!this.cancelled){this._doXmlHttpRequest("Delete",null,_4f8,_4f9);}},cancel:function(){this.cancelled=true;if(this._deferred!==undefined){this._deferred.cancel();}},_retrieveRawFeed:function(_4fa,_4fb){ibm.portal.debug.entry("_retrieveRawFeed",[_4fa,_4fb]);var me=this;dojo.xhrGet({url:this._feedURI,load:function(type,data,evt){_4fa(data,_4fb);com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});},sync:this._sync});ibm.portal.debug.exit("_retrieveRawFeed");},_retrieve:function(_4fc,_4fd,_4fe,_4ff){ibm.portal.debug.entry("_retrieve",[_4fc]);if(this._form&&this._form.isMultipart){this._doIframeRequest(_4fc,_4fd);}else{this._doXmlHttpRequest("Get",null,_4fc,_4fd);}ibm.portal.debug.exit("PortalRestServiceRequest._retrieve");},_doIframeRequest:function(_500,_501){ibm.portal.debug.entry("PortalRestServiceRequest._doIframeRequest",[_500]);var _502=null;var _503=dojo.dnd.getUniqueId();if(dojo.isIE){_502=document.createElement("<iframe name='"+_503+"' id='"+_503+"' src='about:blank' onload='com.ibm.portal.aggregation.forms.PORTLET_FORM_HANDLER.handleMultiPartResult(this.id);'></iframe>");com.ibm.portal.aggregation.forms.PORTLET_FORM_HANDLER._callbackfns[_503]={fn:_500,args:_501};var url=new com.ibm.portal.utilities.HttpUrl(this._feedURI);url.addParameter("ibm.web2.contentType","text/plain");this._form.getDOMElement().setAttribute("action",url.toString());}else{ibm.portal.debug.text("Creating the iframe... name is: "+_503+"; url is: "+this._feedURI);_502=document.createElement("IFRAME");_502.setAttribute("name",_503);_502.setAttribute("id",_503);var me=this;_502.onload=function(){var xml=window.frames[_503].document;_500("load",xml,null,_501);com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});};this._form.getDOMElement().setAttribute("action",this._feedURI);}_502.style.visibility="hidden";_502.style.height="1px";_502.style.width="1px";document.body.appendChild(_502);if(window.frames[_503].name!=_503){window.frames[_503].name=_503;}ibm.portal.debug.text("Setting the iframe target attribute to: "+_503);this._form.getDOMElement().setAttribute("target",_503);this._form.submit();ibm.portal.debug.exit("PortalRestServiceRequest._doIframeRequest");},_doXmlHttpRequest:function(_504,body,_505,_506){ibm.portal.debug.entry("PortalRestServiceRequest._doXmlHttpRequest",[_504,body,_505,_506]);ibm.portal.debug.text("Attempting to retrieve: "+this._feedURI+" using method: "+_504+"; synchronously? "+this._sync);var me=this;var args={url:this._feedURI,content:{},headers:{"X-IBM-XHR":"true"},handle:function(_507,_508){ibm.portal.debug.entry("PortalRestServiceRequest.handle",[_507,_508]);if(_507 instanceof Error&&_507.dojoType==="cancel"){_505("cancel",_507,null,_506);return;}var xhr=_508.xhr;ibm.portal.debug.text("XHR object: "+xhr);var _509=com.ibm.portal.services.PortalRestServiceConfig;var _50a=xhr.getResponseHeader("X-Request-Digest");if(_50a){_509.digest=_50a;}if(xhr.status==200){var data=_507;var loc=xhr.getResponseHeader("IBM-Web2-Location");if(loc){if(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>=0&&me._feedURI.indexOf(ibmPortalConfig["portalPublicURI"])>=0){top.location.href=loc;return;}}var _50b=xhr.getResponseHeader("Content-Type");ibm.portal.debug.text("content-type is: "+_50b);if(/^text\/html/.exec(_50b)&&loc&&(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>-1||loc.indexOf(ibmPortalConfig["portalPublicURI"])>-1)){ibm.portal.debug.text("content-type is text .. follow IBM-Web2-Location");top.location.href=loc;return;}var auth=com.ibm.ajax.auth;var _50c=false;if(me._customResponseValidator){_50c=me._customResponseValidator(_507,_508);}if(!_50c){_50c=auth.isAuthenticationRequired(_507,_508);}if(_50c){auth.authenticationHandler(_507,_508,me._onauthenticated);return;}ibm.portal.debug.text("Read feed: "+me._feedURI);if(dojo.isIE){var doc=dojox.data.dom.createDocument(data);_505("load",doc,xhr,_506);}else{_505("load",data,xhr,_506);}}else{if(dojo.isFF&&_508.xhr.status==0){return;}else{if(xhr.status==401||xhr.status==0){ibm.portal.debug.text("Basic auth 401 found, trigger reload");com.ibm.ajax.auth.authenticationHandler();return;}else{_505("error",_507,xhr,_506);}}}com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});ibm.portal.debug.exit("PortalRestServiceRequest.handle");},sync:this._sync,handleAs:"xml"};if(this._form){args.content=dojo.queryToObject(this._form.toQuery());_504=this._form.method;}_504=_504.toUpperCase();if(_504!="GET"&&_504!="POST"){if(ibmPortalConfig&&ibmPortalConfig.xMethodOverride){args.headers["X-Method-Override"]=_504.toUpperCase();_504="Post";}}if(_504=="PUT"&&body){args.putData=body;}else{if(_504=="POST"&&body){args.postData=body;}}if(dojo.isIE){args.content["ibm.web2.contentType"]="text/xml";args.handleAs="text";}var _50d=com.ibm.portal.services.PortalRestServiceConfig;if(_50d.timeout){args.timeout=_50d.timeout;}if(_50d.digest){args.content["digest"]=_50d.digest;}_504=com.ibm.portal.utilities.string.properCase(_504);var _50e=dojo["xhr"+_504];if(_50e){this._deferred=_50e(args);}else{throw new Error("Invalid request method attempted: "+_504);}ibm.portal.debug.exit("PortalRestServiceRequest._doXmlHttpRequest");},toString:function(){return this._feedURI;}});com.ibm.portal.services.PortalRestServiceConfig={timeout:null,digest:null};(function(){var _50f=false;com.ibm.ajax.auth.setAuthenticationHandler(function(){if(_50f){return;}if(typeof (document.isCSA)=="undefined"){top.location.reload();}else{_50f=true;ibm.portal.debug.entry("DefaultAuthenticationHandler");ibm.portal.debug.text("Illegal response content-type detected!");ibm.portal.debug.text("Parameterized redirect URL is: "+ibmPortalConfig["contentModelBlankURL"]);var _510=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var _511=ibmPortalConfig["contentModelBlankURL"].replace("-----oid-----",_510.getPageSelection());ibm.portal.debug.text("fullPageRefreshURL is currently: "+_511);if(dojo.cookie("WASReqURL")!=null){var _512=_510.createLinkToCurrentState();var _513="WASReqURL="+_512+"; path=/";document.cookie=_513;}ibm.portal.debug.text("Redirecting to: "+_511);com.ibm.portal.EVENT_BROKER.redirect.fire({url:_511});_50f=false;top.location.href=_511;ibm.portal.debug.exit("DefaultAuthenticationHandler");}});})();}if(!dojo._hasResource["com.ibm.portal.services.PortletFragmentService"]){dojo._hasResource["com.ibm.portal.services.PortletFragmentService"]=true;dojo.provide("com.ibm.portal.services.PortletFragmentService");dojo.require("dojox.data.dom");dojo.require("com.ibm.portal.services.PortalRestServiceRequest");dojo.require("com.ibm.portal.utilities");dojo.require("com.ibm.portal.debug");dojo.require("com.ibm.portal.EventBroker");dojo.declare("com.ibm.portal.services.PortletFragmentURL",null,{constructor:function(uri){if(uri.indexOf("?uri=")==0){this.url=ibmPortalConfig["portalURI"]+uri;this.url=this.url.replace(/&amp;/g,"&");this.url=this.url.replace(/lm:/,"pm:");}else{if(uri.indexOf("lm:")==0){this.url=ibmPortalConfig["portalURI"]+"?uri=fragment:"+uri;this.url=this.url.replace(/lm:/,"pm:");}else{this.url=uri;}}}});dojo.declare("com.ibm.portal.services.PortletInfo",null,{constructor:function(wId,pId,_514,_515,_516,_517,_518,_519,_51a,_51b,_51c,_51d){ibm.portal.debug.entry("PortletInfo.constructor",[wId,pId,_514,_515,_516,_517,_519,_51d]);this.windowId=wId;this.portletId=pId;this.uri="fragment:pm:oid:"+wId+"@oid:"+pId;this.markup=_514;this.portletModes=_515;this.windowStates=_516;this.dependentPortlets=_517;this.otherPortlets=_518;this.stateVaryExpressions=_51a;this.updatedState=_519;this.currentMode=_51b;this.currentWindowState=_51c;this.portletTitle=_51d;ibm.portal.debug.exit("PortletInfo.constructor");}});dojo.declare("com.ibm.portal.services.PortletFragmentService",null,{namespaces:{"xsl":"http://www.w3.org/1999/XSL/Transform","thr":"http://purl.org/syndication/thread/1.0","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","model":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements","base":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base","portal":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model","xsi":"http://www.w3.org/2001/XMLSchema-instance","state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state","state-vary":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state-vary"},activeRequests:{},constructor:function(){this.staticContext=com.ibm.portal.services.PortletFragmentService.prototype;},_flagPortletUrl:function(url,_51e){ibm.portal.debug.entry("PortletFragmentService._flagPortletUrl",[url]);var _51f=url.indexOf("uri=fragment:pm:oid:");var _520=new com.ibm.portal.utilities.HttpUrl(url);_520.addParameter("ibm.web2.keepRenderMode","false");if(_51f<0){_51e=_51e.replace(/lm:/g,"fragment:pm:");_520.addParameter("uri",_51e);}ibm.portal.debug.exit("PortletFragmentService._flagPortletUrl",[_520.toString()]);return _520.toString();},getPortletInfo:function(_521,_522,_523,form,_524){ibm.portal.debug.entry("PortletFragmentService.getPortletInfo",[_521,_522,_523,form,_524]);if(_522=="#"||_522==window.location.href+"#"){ibm.portal.debug.text("Illegal portlet url provided: "+_522);ibm.portal.debug.text("Aborting request.");return false;}if(com.ibm.portal.utilities.isJavascriptUrl(_522)){return eval(_522);}var _525=_522;if(_525.indexOf(top.location.href)==0){_525=_525.substring(top.location.href.length);while(_525.length>0&&_525.charAt(0)=="/"){_525=_525.substring(1);}}if(_525.indexOf("?")==0){var _526=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();_522=_526.resolveRelativePortletURL(_525);}if(com.ibm.portal.utilities.isExternalUrl(_522)){self.location.href=_522;}else{var url={url:this._flagPortletUrl(_522,_521)};var _527=ibmPortalConfig.enforceOneActivePortletRequest;if(_527){var _528=this.staticContext.activeRequests;if(_528[_521]!==undefined&&_528[_521]!==null){_528[_521].cancel();com.ibm.portal.EVENT_BROKER.cancelFragmentUpdate.fire({id:_521});_528[_521]=null;}}var _529=new com.ibm.portal.services.PortalRestServiceRequest(url,form);if(!_524){com.ibm.portal.EVENT_BROKER.startFragment.fire({id:_521});}if(_527){_528[_521]=_529;}var me=this;_529.read(function(type,_52a,xhr){if(_527){_528[_521]=null;}if(xhr.status==404){var _52b=false;for(var i=0;i<com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks.length;i++){if(com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks[i].id==_521){_52b=true;if(com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks[i].state=="pending"){com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks[i].state="error";}}}if(!_52b){com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks.push({"id":_521,"state":"pending"});_529.cancelled=true;com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page.refreshPageForPortlet(_521);}}if(xhr.status==200&&com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks.length>0){for(var i=0;i<com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks.length;i++){if(com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks[i].id==_521){com.ibm.portal.aggregation.PORTAL_AGGREGATOR.page._crcPortletChecks.splice(i--,1);}}}if(!_529.cancelled){var _52c=null;if(type=="load"){_52c=me.createPortletInfo(_52a);}if(_52a instanceof Error){_52c=_52a;}if(!_524){me._fireEvents(_52c,_521,xhr);}if(_523){_523(_52c,xhr);}}});}ibm.portal.debug.exit("PortletFragmentService.getPortletInfo");},readWindowID:function(_52d){ibm.portal.debug.entry("PortletFragmentService.readWindowID",[_52d]);var _52e="/atom:feed/atom:entry/atom:id";var _52f=com.ibm.portal.xpath.evaluateXPath(_52e,_52d,this.namespaces);var _530=dojox.data.dom.textContent(_52f[0]);ibm.portal.debug.exit("PortletFragmentService.readWindowID",[_530.substring(4)]);return _530.substring(4);},readPortletID:function(_531){ibm.portal.debug.entry("PortletFragmentService.readPortletID",[_531]);var _532="/atom:feed/atom:id";var _533=com.ibm.portal.xpath.evaluateXPath(_532,_531,this.namespaces);var _534=dojox.data.dom.textContent(_533[0]);ibm.portal.debug.exit("PortletFragmentService.readPortletID",[_534.substring(4)]);return _534.substring(4);},readMarkup:function(_535){ibm.portal.debug.entry("PortletFragmentService.readMarkup",[_535]);var _536="/atom:feed/atom:entry/atom:content";var _537=com.ibm.portal.xpath.evaluateXPath(_536,_535,this.namespaces);var _538="";if(_537!=null&&_537.length>0){_538=dojox.data.dom.textContent(_537[0]);}ibm.portal.debug.exit("PortletFragmentService.readMarkup",[_538]);return _538;},readPortletModes:function(_539){ibm.portal.debug.entry("PortletFragmentService.readPortletModes",[_539]);var _53a="/atom:feed/atom:entry/atom:link[@portal:rel='portlet-mode']";var _53b=com.ibm.portal.xpath.evaluateXPath(_53a,_539,this.namespaces);var _53c=new Array();if(_53b!=null&&_53b.length>0){var _53d=_53b.length;for(var i=0;i<_53d;i++){_53c.push({"link":_53b[i].getAttribute("href"),"mode":_53b[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readPortletModes",[_53c]);return _53c;},readWindowStates:function(_53e){ibm.portal.debug.entry("PortletFragmentService.readWindowStates",[_53e]);var _53f="/atom:feed/atom:entry/atom:link[@portal:rel='window-state']";var _540=com.ibm.portal.xpath.evaluateXPath(_53f,_53e,this.namespaces);var _541=new Array();if(_540!=null&&_540.length>0){var _542=_540.length;for(var i=0;i<_542;i++){_541.push({"link":_540[i].getAttribute("href"),"mode":_540[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readWindowStates",[_541]);return _541;},readDependentPortlets:function(_543){ibm.portal.debug.entry("PortletFragmentService.readDependentPortlets",[_543]);var _544="/atom:feed/atom:link[@portal:rel='dependent']";var _545=com.ibm.portal.xpath.evaluateXPath(_544,_543,this.namespaces);var _546=new Array();if(_545!=null&&_545.length>0){var _547=_545.length;for(var i=0;i<_547;i++){_546.push({"link":_545[i].getAttribute("href"),"portlet":_545[i].getAttribute("title"),"uri":_545[i].getAttribute("portal:uri")?_545[i].getAttribute("portal:uri"):_545[i].getAttribute("uri")});}}ibm.portal.debug.exit("PortletFragmentService.readDependentPortlets",[_546]);return _546;},readOtherPortlets:function(_548){ibm.portal.debug.entry("PortletFragmentService.readOtherPortlets",[_548]);var _549="/atom:feed/atom:link[@portal:rel='other']";var _54a=com.ibm.portal.xpath.evaluateXPath(_549,_548,this.namespaces);var _54b=new Array();if(_54a!=null&&_54a.length>0){var _54c=_54a.length;for(var i=0;i<_54c;i++){_54b.push({"link":_54a[i].getAttribute("href"),"portlet":_54a[i].getAttribute("title"),"uri":_54a[i].getAttribute("portal:uri")});}}ibm.portal.debug.exit("PortletFragmentService.readOtherPortlets",[_54b]);return _54b;},readStateVaryExpressions:function(_54d){ibm.portal.debug.entry("PortletFragmentService.readStateVaryExpressions",[_54d]);var _54e="/atom:feed/atom:entry/state-vary:state-vary/state-vary:expr";var _54f=com.ibm.portal.xpath.evaluateXPath(_54e,_54d,this.namespaces);var _550=new Array();if(_54f!=null&&_54f.length>0){var _551=_54f.length;for(var i=0;i<_551;i++){var _552=_54f[i].firstChild;if(_552!=null){_550.push(_552.nodeValue);}}}ibm.portal.debug.exit("PortletFragmentService.readStateVaryExpressions",[_550]);return _550;},readPortletState:function(_553){return this._readPortletState(_553);},_readPortletState:function(_554){ibm.portal.debug.entry("PortletFragmentService.readPortletState",[_554]);var _555="/atom:feed/atom:entry/state:root";var _556=com.ibm.portal.xpath.evaluateXPath(_555,_554,this.namespaces);var _557=null;if(_556!=null&&_556.length>0){var doc=dojox.data.dom.createDocument();com.ibm.portal.utilities.addExternalNode(doc,_556[0]);_557=doc;}else{_555="/atom:feed/state:root";_556=com.ibm.portal.xpath.evaluateXPath(_555,_554,this.namespaces);if(_556!=null&&_556.length>0){var doc=dojox.data.dom.createDocument();com.ibm.portal.utilities.addExternalNode(doc,_556[0]);_557=doc;}}ibm.portal.debug.exit("PortletFragmentService.readPortletState",[_557]);return _557;},readPortletTitle:function(_558){return this._readPortletTitle(_558);},_readPortletTitle:function(_559){ibm.portal.debug.entry("PortletFragmentService.readPortletTitle",[_559]);var _55a="/atom:feed/atom:entry/atom:title";var _55b=com.ibm.portal.xpath.evaluateXPath(_55a,_559,this.namespaces);var _55c=dojox.data.dom.textContent(_55b[0]);ibm.portal.debug.exit("PortletFragmentService.readPortletTitle",_55c);return _55c;},_fireEvents:function(_55d,_55e,xhr){this._fireGlobalPortletStateChange(_55d,_55e,xhr);},_fireGlobalPortletStateChange:function(_55f,_560,xhr){com.ibm.portal.EVENT_BROKER.endFragment.fire({portletInfo:_55f,id:_560,xhr:xhr});},_fireIndividualPortletStateChange:function(_561){},createPortletInfo:function(_562){var _563=this.readWindowID(_562);var _564=this.readPortletID(_562);var _565=this.readMarkup(_562);var _566=this.readPortletModes(_562);var _567=this.readWindowStates(_562);var _568=this.readDependentPortlets(_562);var _569=this.readOtherPortlets(_562);var _56a=this.readPortletState(_562);var _56b=this.readStateVaryExpressions(_562);var _56c=this.readPortletTitle(_562);var _56d=_56a;if(_56d==null){_56d=this._readPortletState(_562);}var _56e=new com.ibm.portal.state.StateManager();var _56f=_56e.newPortletAccessor(_563,_56d);var mode=_56f.getPortletMode();var _570=_56f.getWindowState();return new com.ibm.portal.services.PortletInfo(_563,_564,_565,_566,_567,_568,_569,_56a,_56b,mode,_570,_56c);}});dojo.declare("com.ibm.portal.services.IndependentPortletFragmentService",com.ibm.portal.services.PortletFragmentService,{readDependentPortlets:function(_571){ibm.portal.debug.entry("DependentPortletFragmentService.readDependentPortlets",[_571]);var _572=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readDependentPortlets",[_572]);return _572;},readOtherPortlets:function(_573){ibm.portal.debug.entry("DependentPortletFragmentService.readOtherPortlets",[_573]);var _574=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readOtherPortlets",[_574]);return _574;},readPortletState:function(_575){return null;}});}if(!dojo._hasResource["com.ibm.portal.state"]){dojo._hasResource["com.ibm.portal.state"]=true;dojo.provide("com.ibm.portal.state");dojo.declare("com.ibm.portal.state.StateManager",null,{constructor:function(_576){this.stateDOM=null;this.stateNode=null;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};this.serializationManager=new com.ibm.portal.state.SerializationManager(_576);},getState:function(){return this.stateDOM;},newState:function(_577,_578,_579){var _57a=null;if(_577==null){_57a=dojox.data.dom.createDocument();}else{if(_578==null){_57a=dojox.data.dom.createDocument(dojox.data.dom.innerXML(_577));}else{var xslt=com.ibm.portal.xslt;var _57b=xslt.transform(_577,_578,null,_579,true);_57a=dojox.data.dom.createDocument(_57b);}}return _57a;},reset:function(_57c){this.stateDOM=_57c;this.stateNode=this._getStateNode(_57c);},getSerializationManager:function(){return this.serializationManager;},newExpansionsListAccessor:function(_57d){var _57e;var _57f;if(_57d==null||this.stateDOM==_57d){_57e=this.stateNode;_57f=this.stateDOM;}else{_57e=this._getStateNode(_57d);_57f=_57d;}return new com.ibm.portal.state.ExpansionsListAccessor(_57e,_57f);},newPortletAccessor:function(_580,_581){var _582;var _583;if(_581==null||this.stateDOM==_581){_582=this.stateNode;_583=this.stateDOM;}else{_582=this._getStateNode(_581);_583=_581;}var expr="state:portlet[@id='"+_580+"']";var _584=this._getSpecificStateNode("portlet",expr,_582,_583);_584.setAttribute("id",_580);return new com.ibm.portal.state.PortletAccessor(_584,_583);},newPortletListAccessor:function(_585){var _586;var _587;if(_585==null||this.stateDOM==_585){_586=this.stateNode;_587=this.stateDOM;}else{_586=this._getStateNode(_585);_587=_585;}return new com.ibm.portal.state.PortletListAccessor(_586,_587);},newSelectionAccessor:function(_588){var _589;var _58a;if(_588==null||this.stateDOM==_588){_589=this.stateNode;_58a=this.stateDOM;}else{_589=this._getStateNode(_588);_58a=_588;}var _58b=this._getSpecificStateNode("selection","state:selection",_589,_58a);return new com.ibm.portal.state.SelectionAccessor(_58b,_58a);},newSoloStateAccessor:function(_58c){var _58d;var _58e;if(_58c==null||this.stateDOM==_58c){_58d=this.stateNode;_58e=this.stateDOM;}else{_58d=this._getStateNode(_58c);_58e=_58c;}var _58f=this._getSpecificStateNode("solo","state:solo",_58d,_58e);return new com.ibm.portal.state.SoloStateAccessor(_58f,_58e);},newThemeTemplateAccessor:function(_590){var _591;var _592;if(_590==null||this.stateDOM==_590){_591=this.stateNode;_592=this.stateDOM;}else{_591=this._getStateNode(_590);_592=_590;}var _593=this._getSpecificStateNode("theme-template","state:theme-template",_591,_592);return new com.ibm.portal.state.ThemeTemplateAccessor(_593,_592);},newThemePolicyAccessor:function(_594){var _595;var _596;if(_594==null||this.stateDOM==_594){_595=this.stateNode;_596=this.stateDOM;}else{_595=this._getStateNode(_594);_596=_594;}var _597=this._getSpecificStateNode("theme-policy","state:theme-policy",_595,_596);return new com.ibm.portal.state.ThemePolicyAccessor(_597,_596);},newScreenTemplateAccessor:function(_598){var _599;var _59a;if(_598==null||this.stateDOM==_598){_599=this.stateNode;_59a=this.stateDOM;}else{_599=this._getStateNode(_598);_59a=_598;}var _59b=this._getSpecificStateNode("screen-template","state:screen-template",_599,_59a);return new com.ibm.portal.state.ScreenTemplateAccessor(_59b,_59a);},newLocaleAccessor:function(_59c){var _59d;var _59e;if(_59c==null||this.stateDOM==_59c){_59d=this.stateNode;_59e=this.stateDOM;}else{_59d=this._getStateNode(_59c);_59e=_59c;}var _59f=this._getSpecificStateNode("locale","state:locale",_59d,_59e);return new com.ibm.portal.state.LocaleAccessor(_59f,_59e);},newStatePartitionAccessor:function(_5a0){var _5a1;var _5a2;if(_5a0==null||this.stateDOM==_5a0){_5a1=this.stateNode;_5a2=this.stateDOM;}else{_5a1=this._getStateNode(_5a0);_5a2=_5a0;}var _5a3=this._getSpecificStateNode("statepartition","state:statepartition",_5a1,_5a2);return new com.ibm.portal.state.StatePartitionAccessor(_5a3,_5a2);},newSharedStateListAccessor:function(_5a4){var _5a5;var _5a6;if(_5a4==null||this.stateDOM==_5a4){_5a5=this.stateNode;_5a6=this.stateDOM;}else{_5a5=this._getStateNode(_5a4);_5a6=_5a4;}return new com.ibm.portal.state.SharedStateListAccessor(_5a5,_5a6);},newSharedStateAccessor:function(_5a7,_5a8){var _5a9;var _5aa;if(_5a8==null||this.stateDOM==_5a8){_5a9=this.stateNode;_5aa=this.stateDOM;}else{_5a9=this._getStateNode(_5a8);_5aa=_5a8;}var expr="state:shared-parameters[@id='"+_5a7+"']";var _5ab=this._getSpecificStateNode("shared-parameters",expr,_5a9,_5aa);_5ab.setAttribute("id",_5a7);return new com.ibm.portal.state.SharedStateAccessor(_5a7,_5ab,_5aa);},_getStateNode:function(_5ac){var expr="state:root/state:state";var _5ad=com.ibm.portal.xpath.evaluateXPath(expr,_5ac,this.ns);var _5ae=null;if(_5ad&&_5ad.length>0){_5ae=_5ad[0];}else{var root=null;var _5af="state:root";var _5b0=com.ibm.portal.xpath.evaluateXPath(_5af,_5ac,this.ns);if(_5b0&&_5b0.length>0){root=_5b0[0];}else{root=this._createElement(_5ac,"root");this._prependChild(root,_5ac);}_5ae=this._createElement(_5ac,"state");this._prependChild(_5ae,root);_5ae.setAttribute("type","navigational");}return _5ae;},_getSpecificStateNode:function(_5b1,_5b2,_5b3,_5b4){var _5b5=com.ibm.portal.xpath.evaluateXPath(_5b2,_5b3,this.ns);var node;if(_5b5==null||_5b5.length<=0){node=this._createElement(_5b4,_5b1);this._prependChild(node,_5b3);}else{node=_5b5[0];}return node;},_prependChild:function(node,_5b6){_5b6.firstChild?_5b6.insertBefore(node,_5b6.firstChild):_5b6.appendChild(node);},_createElement:function(dom,name){var _5b7;if(dojo.isIE){_5b7=dom.createNode(1,name,this.ns.state);}else{_5b7=dom.createElementNS(this.ns.state,name);}return _5b7;}});dojo.declare("com.ibm.portal.state.PortletAccessor",null,{constructor:function(_5b8,_5b9){this.portletNode=_5b8;this.stateDOM=_5b9;this.parameters=new com.ibm.portal.state.Parameters(_5b8,_5b9);this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};this.xsltURL=dojo.moduleUrl("com","ibm/portal/state/");},getPortletMode:function(){var expr="state:portlet-mode";var _5ba=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);var _5bb=ibm.portal.portlet.PortletMode.VIEW;if(_5ba!=null&&_5ba.length>0){var _5bc=_5ba[0].firstChild;if(_5bc!=null){_5bb=_5bc.nodeValue;}}return _5bb;},getWindowState:function(){var expr="state:window-state";var _5bd=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);var _5be=ibm.portal.portlet.WindowState.NORMAL;if(_5bd!=null&&_5bd.length>0){var _5bf=_5bd[0].firstChild;if(_5bf!=null){_5be=_5bf.nodeValue;}}return _5be;},getRenderParameters:function(){return this.parameters;},setPortletMode:function(_5c0){var expr="state:portlet-mode";var _5c1=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);if(_5c1==null||_5c1.length<=0){var _5c2=this._createElement(this.stateDOM,"portlet-mode");this._prependChild(_5c2,this.portletNode);var _5c3=this.stateDOM.createTextNode(_5c0);this._prependChild(_5c3,_5c2);}else{_5c1[0].firstChild.nodeValue=_5c0;}},setWindowState:function(_5c4){var expr="state:window-state";var _5c5=com.ibm.portal.xpath.evaluateXPath(expr,this.portletNode,this.ns);if(_5c5==null||_5c5.length<=0){var _5c6=this._createElement(this.stateDOM,"window-state");this._prependChild(_5c6,this.portletNode);var _5c7=this.stateDOM.createTextNode(_5c4);this._prependChild(_5c7,_5c6);}else{_5c5[0].firstChild.nodeValue=_5c4;}},getPortletState:function(){var _5c8=dojox.data.dom.createDocument();var _5c9=com.ibm.portal.state.STATE_MANAGER.newPortletAccessor(this.portletNode.getAttribute("id"),_5c8);_5c9.setPortletMode(this.getPortletMode());_5c9.setWindowState(this.getWindowState());var _5ca=this.getRenderParameters().getMap();if(_5ca.length>0){_5c9.getRenderParameters().putAll(_5ca);}return _5c8;},setPortletState:function(_5cb,_5cc){var _5cd=com.ibm.portal.state.STATE_MANAGER.newPortletAccessor(this.portletNode.getAttribute("id"),_5cb);this.setPortletMode(_5cd.getPortletMode());this.setWindowState(_5cd.getWindowState());var _5ce=_5cd.getRenderParameters().getMap();if(_5cc==null||_5cc==false){this.getRenderParameters().clear();}if(_5ce.length>0){this.getRenderParameters().putAll(_5ce);}},_prependChild:function(node,_5cf){_5cf.firstChild?_5cf.insertBefore(node,_5cf.firstChild):_5cf.appendChild(node);},_createElement:function(dom,name){var _5d0;if(dojo.isIE){_5d0=dom.createNode(1,name,this.ns.state);}else{_5d0=dom.createElementNS(this.ns.state,name);}return _5d0;}});dojo.declare("com.ibm.portal.state.Parameters",null,{constructor:function(_5d1,_5d2){this.baseNode=_5d1;this.stateDOM=_5d2;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getMap:function(){var _5d3=this.getNames();var map=new Array(_5d3.length);for(var i=0;i<_5d3.length;i++){var name=_5d3[i];map[i]={name:name,values:this.getValues(name)};}return map;},getNames:function(){var expr="state:parameters/state:param";var _5d4=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);var _5d5=new Array();if(_5d4!=null&&_5d4.length>0){var _5d6=_5d4.length;for(var i=0;i<_5d6;i++){_5d5[i]=_5d4[i].getAttribute("name");}}return _5d5;},getValue:function(name){var _5d7=this.getValues(name);var _5d8=null;if(_5d7!=null&&_5d7.length>0){_5d8=_5d7[0];}return _5d8;},getValues:function(name){var expr="state:parameters/state:param[@name='"+name+"']/state:value";var _5d9=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);var _5da=null;if(_5d9!=null&&_5d9.length>0){_5da=[];dojo.forEach(_5d9,function(node){var _5db=dojox.xml.parser.textContent(node);_5da.push(_5db);});}return _5da;},remove:function(name){var expr="state:parameters/state:param[@name='"+name+"']";var _5dc=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);if(_5dc!=null){var _5dd=_5dc[0];if(_5dd&&_5dd.parentNode){_5dd.parentNode.removeChild(_5dd);}}},putAll:function(map){if(map!=null&&map.length>0){for(var i=map.length-1;i>=0;i--){var _5de=map[i].name;var _5df=map[i].values;this.setValues(_5de,_5df);}}},setValue:function(name,_5e0){this.setValues(name,new Array(_5e0));},setValues:function(name,_5e1){var _5e2=this._getParamsRoot();var expr="state:param[@name='"+name+"']";var _5e3=com.ibm.portal.xpath.evaluateXPath(expr,_5e2,this.ns);var _5e4;if(_5e3&&_5e3.length>0){_5e4=_5e3[0];dojox.data.dom.removeChildren(_5e4);}else{_5e4=this._createElement(this.stateDOM,"param");_5e4.setAttribute("name",name);this._prependChild(_5e4,_5e2);}if(_5e1){for(var i=_5e1.length-1;i>=0;i--){var _5e5=this._createElement(this.stateDOM,"value");this._prependChild(_5e5,_5e4);var _5e6=_5e1[i];if(dojo.isString(_5e6)){var _5e7=this.stateDOM.createTextNode(_5e6);this._prependChild(_5e7,_5e5);}}}},clear:function(){var expr="state:parameters";var _5e8=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);if(_5e8!=null){var _5e9=_5e8[0];if(_5e9&&_5e9.parentNode){_5e9.parentNode.removeChild(_5e9);}}},_getParamsRoot:function(){if(!this.params){var expr="state:parameters";var _5ea=com.ibm.portal.xpath.evaluateXPath(expr,this.baseNode,this.ns);if(_5ea&&_5ea.length>0){this.params=_5ea[0];}else{var _5eb=this._createElement(this.stateDOM,"parameters");this._prependChild(_5eb,this.baseNode);this.params=_5eb;}}return this.params;},_prependChild:function(node,_5ec){_5ec.firstChild?_5ec.insertBefore(node,_5ec.firstChild):_5ec.appendChild(node);},_createElement:function(dom,name){var _5ed;if(dojo.isIE){_5ed=dom.createNode(1,name,this.ns.state);}else{_5ed=dom.createElementNS(this.ns.state,name);}return _5ed;}});dojo.declare("com.ibm.portal.state.ExpansionsListAccessor",null,{constructor:function(_5ee,_5ef){this.stateNode=_5ee;this.stateDOM=_5ef;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getExpansions:function(){var expr="state:expansions/state:node";var _5f0=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);var _5f1=null;if(_5f0!=null&&_5f0.length>0){_5f1=new Array(_5f0.length);for(var i=0;i<_5f0.length;i++){var node=_5f0[i];_5f1[i]=node.getAttribute("id");}}return _5f1;},setExpansions:function(ids){var expr="state:expansions";var _5f2=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);if(_5f2!=null){var _5f3=_5f2[0],node;if(!_5f3){_5f3=this._createElement(this.stateDOM,"expansions");this.stateNode.appendChild(_5f3);}while(_5f3.childNodes.length>0){_5f3.removeChild(_5f3.childNodes[0]);}for(var i=0;i<ids.length;i++){node=this._createElement(this.stateDOM,"node");node.setAttribute("id",ids[i]);_5f3.appendChild(node);}}},_createElement:function(dom,name){var _5f4;if(dojo.isIE){_5f4=dom.createNode(1,name,this.ns.state);}else{_5f4=dom.createElementNS(this.ns.state,name);}return _5f4;}});dojo.declare("com.ibm.portal.state.PortletListAccessor",null,{constructor:function(_5f5,_5f6){this.stateNode=_5f5;this.stateDOM=_5f6;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getPortlets:function(){var expr="state:portlet";var _5f7=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);var _5f8=null;if(_5f7!=null&&_5f7.length>0){_5f8=new Array(_5f7.length);for(var i=0;i<_5f7.length;i++){var node=_5f7[i];_5f8[i]=node.getAttribute("id");}}return _5f8;}});dojo.declare("com.ibm.portal.state.SharedStateListAccessor",null,{constructor:function(_5f9,_5fa){this.stateNode=_5f9;this.stateDOM=_5fa;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getScopeIDs:function(){var expr="state:shared-parameters";var _5fb=com.ibm.portal.xpath.evaluateXPath(expr,this.stateNode,this.ns);var _5fc=[];if(_5fb&&_5fb.length>0){dojo.forEach(_5fb,function(node){var id=node.getAttribute("id");if(id){_5fc.push(id);}});}return _5fc;}});dojo.declare("com.ibm.portal.state.SharedStateAccessor",null,{constructor:function(_5fd,_5fe,_5ff){this.scopeID=_5fd;this.sharedStateNode=_5fe;this.stateDOM=_5ff;this.xpath=com.ibm.portal.xpath;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};this.xsltURL=dojo.moduleUrl("com","ibm/portal/state/");},getScopeID:function(){return this.scopeID;},getQNames:function(){var expr="state:shared-parameter";var _600=this.xpath.evaluateXPath(expr,this.sharedStateNode,this.ns);var _601=[];if(_600&&_600.length>0){var acc=this;dojo.forEach(_600,function(node){var uri=node.getAttribute("nsuri");var _602=node.getAttribute("localpart");_601.push(acc._serializeQName(uri,_602));});}return _601;},_serializeQName:function(uri,_603){return "{"+uri+"}"+_603;},_deserializeQName:function(_604){var _605=_604.split("}");var _606={};if(_605&&_605.length==2){_606.nsuri=_605[0].substring(1);_606.localpart=_605[1];}return _606;},getValues:function(_607){var _608=this._deserializeQName(_607);var uri=_608.nsuri;var _609=_608.localpart;if(dojo.isString(uri)&&_609){var expr="state:shared-parameter[@nsuri='"+uri+"'][@localpart='"+_609+"']/state:value";var _60a=this.xpath.evaluateXPath(expr,this.sharedStateNode,this.ns);if(_60a&&_60a.length>0){var _60b=[];dojo.forEach(_60a,function(node){var _60c=dojox.xml.parser.textContent(node);if(_60c){_60b.push(_60c);}});return _60b;}else{return null;}}},getValue:function(_60d){var _60e=this.getValues(_60d);if(_60e&&_60e.length>0){return _60e[0];}else{return null;}},setValues:function(_60f,_610){var _611=this._deserializeQName(_60f);var uri=_611.nsuri;var _612=_611.localpart;var expr="state:shared-parameter[@nsuri='"+uri+"'][@localpart='"+_612+"']";var _613=this.xpath.evaluateXPath(expr,this.sharedStateNode,this.ns);var _614=null;if(_613&&_613.length>0){_614=_613[0];dojox.xml.parser.removeChildren(_614);}else{_614=this._createElement(this.stateDOM,"shared-parameter");_614.setAttribute("nsuri",uri);_614.setAttribute("localpart",_612);this._prependChild(_614,this.sharedStateNode);}if(_614&&_610){for(var i=_610.length-1;i>=0;i--){var _615=this._createElement(this.stateDOM,"value");this._prependChild(_615,_614);var _616=_610[i];if(dojo.isString(_616)){var _617=this.stateDOM.createTextNode(_616);this._prependChild(_617,_615);}}}},setValue:function(_618,_619){if(_619){this.setValues(_618,[_619]);}},_prependChild:function(node,_61a){_61a.firstChild?_61a.insertBefore(node,_61a.firstChild):_61a.appendChild(node);},_createElement:function(dom,name){var _61b;if(dojo.isIE){_61b=dom.createNode(1,name,this.ns.state);}else{_61b=dom.createElementNS(this.ns.state,name);}return _61b;}});dojo.declare("com.ibm.portal.state.SelectionAccessor",null,{constructor:function(_61c,_61d){this.selectionNode=_61c;this.stateDOM=_61d;this.parameters=new com.ibm.portal.state.Parameters(this.selectionNode,_61d);this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},getPageSelection:function(){return this.selectionNode.getAttribute("selection-node");},getFragmentSelection:function(){var _61e=this.getParameters();var _61f=_61e.getValues("frg");var _620=null;if(_61f!=null&&_61f.length>0){_620=_61f[0];if(_61f.length>1){if(_620=="pw"){_620=_61f[1];}}}return _620;},getMapping:function(_621){var expr="state:mapping[@src='"+_621+"']";var _622=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _623=null;if(_622!=null&&_622.length>0){var _624=_622[0];_623=_624.getAttribute("dst");}return _623;},getMappingSources:function(){var expr="state:mapping";var _625=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _626=[];if(_625&&_625.length>0){dojo.forEach(_625,function(node){var src=node.getAttribute("src");if(src){_626.push(src);}});}return _626;},getParameters:function(){return this.parameters;},setPageSelection:function(_627){this.selectionNode.setAttribute("selection-node",_627);},setURI:function(uri){this.selectionNode.setAttribute("selection-uri",uri);},getURI:function(){return this.selectionNode.getAttribute("selection-uri");},setFragmentSelection:function(_628,_629){var _62a=this.getParameters();if(_629==null||_629==true){var _62b=new Array(2);_62b[0]=_628;_62b[1]="pw";_62a.setValues("frg",_62b);}else{_62a.setValue("frg",_628);}},setMapping:function(_62c,_62d){if(_62d!=null){var expr="state:mapping[@src='"+_62c+"']";var _62e=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _62f;if(_62e!=null&&_62e.length>0){_62f=_62e[0];}else{_62f=this._createElement(this.stateDOM,"mapping");this._prependChild(_62f,this.selectionNode);_62f.setAttribute("src",_62c);}_62f.setAttribute("dst",_62d);}else{this.removeMapping(_62c);}},removeMapping:function(_630){var expr="state:mapping[@src='"+_630+"']";var _631=com.ibm.portal.xpath.evaluateXPath(expr,this.selectionNode,this.ns);var _632=false;if(_631!=null&&_631.length>0){for(var i=0;i<_631.length;i++){var _633=_631[i];if(_633&&_633.parentNode){_633.parentNode.removeChild(_633);}}_632=true;}return _632;},_prependChild:function(node,_634){_634.firstChild?_634.insertBefore(node,_634.firstChild):_634.appendChild(node);},_createElement:function(dom,name){var _635;if(dojo.isIE){_635=dom.createNode(1,name,this.ns.state);}else{_635=dom.createElementNS(this.ns.state,name);}return _635;},getSelection:function(){return this.getPageSelection();},setSelection:function(_636){this.setPageSelection(_636);}});dojo.declare("com.ibm.portal.state.SingleTokenAccessor",null,{constructor:function(node,_637){this.node=node;this.stateDOM=_637;},setValue:function(_638){dojox.xml.parser.removeChildren(this.node);if(_638){dojox.xml.parser.textContent(this.node,_638);}},getValue:function(){return dojox.xml.parser.textContent(this.node);},setAttribute:function(name,_639){this.node.setAttribute(name,_639);},getAttribute:function(name){return this.node.getAttribute(name);}});dojo.declare("com.ibm.portal.state.SoloStateAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_63a,_63b){this.soloNode=_63a;this.stateDOM=_63b;this.ns={"state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};},setSoloPortlet:function(_63c){this.setValue(_63c);},getSoloPortlet:function(){return this.getValue();},setReturnSelection:function(_63d){this.setAttribute("return-selection",_63d);},getReturnSelection:function(){return this.getAttribute("return-selection");}});dojo.declare("com.ibm.portal.state.ThemeTemplateAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_63e,_63f){this.themeTemplateNode=_63e;this.stateDOM=_63f;},setThemeTemplate:function(_640){this.setValue(_640);},getThemeTemplate:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.ScreenTemplateAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_641,_642){this.screenTemplateNode=_641;this.stateDOM=_642;},setScreenTemplate:function(_643){this.setValue(_643);},getScreenTemplate:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.LocaleAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_644,_645){this.localeNode=_644;this.stateDOM=_645;},setLocale:function(_646){this.setValue(_646);},getLocale:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.ThemePolicyAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_647,_648){this.localeNode=_647;this.stateDOM=_648;},setThemePolicy:function(_649){this.setValue(_649);},getThemePolicy:function(){return this.getValue();}});dojo.declare("com.ibm.portal.state.StatePartitionAccessor",com.ibm.portal.state.SingleTokenAccessor,{constructor:function(_64a,_64b){this.statePartitionNode=_64a;this.stateDOM=_64b;},includeStatePartition:function(){this.setStatePartition(this._generateID());},setStatePartition:function(_64c){this.setValue(_64c);},getStatePartition:function(){return this.getValue();},_generateID:function(){return Math.floor(Math.random()*100);}});dojo.declare("com.ibm.portal.state.SerializationManager",null,{STATE_URI_SCHEME:"state",STATE_URI_POST:"state:encode",DOWNLOAD_MODE:"download",STATUS_UNDEFINED:0,STATUS_OK:1,STATUS_ERROR:2,STATE_NS_URI:"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state",JSON_SERIALIZATION:{names:{expansions:"exp",portlets:"pp",pMode:"m",pWState:"w",locale:"lcl",screenTemplate:"scrtm",selection:"sel",selPg:"pg",selFrg:"frg",selURI:"uri",selMaps:"mp",sharedState:"ss",statePartition:"sp",solo:"solo",soloPortlet:"soloP",soloReturn:"soloR",themePolicy:"thp",themeTemplate:"thtm",params:"parm",paramValue:"v"},portlet:{defMode:"view",defWState:"normal"}},constructor:function(_64d){this.serviceURL=_64d;},sendDebugRequest:function(_64e,_64f,_650){ibm.portal.debug.entry("SerializationManager.sendDebugRequest",[]);var _651=_650?_650:{};_651.portalURI=ibmPortalConfig["portalURI"];_651.stateServiceURL=this.serviceURL.substring(0,40);var _652=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();_651.currPage=_652.getPageSelection();if(_64f){_651.cType=_64f.xhr.getResponseHeader("Content-Type");_651.status=_64f.xhr.status;}var _653=ibmPortalConfig["portalURI"]+"/DEBUG"+this.buildDebugURLContent(_651)+"/DEBUG";dojo.xhrGet({url:_653,sync:false,content:{},headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_654,_655){ibm.portal.debug.text("DebugRequest:Response: "+_654);com.ibm.ajax.auth.authenticationHandler();},transport:"XMLHTTPTransport"});ibm.portal.debug.exit("SerializationManager.sendDebugRequest",[]);},buildDebugURLContent:function(_656){ibm.portal.debug.entry("SerializationManager.buildDebugURLContent",[]);var _657="";for(var key in _656){_657+=("/"+key+":"+_656[key]);}ibm.portal.debug.exit("SerializationManager.buildDebugURLContent",_657);return _657;},isDebugReqNeeded:function(_658,_659){return _658 instanceof Error||!(_659.xhr.status>=200&&_659.xhr.status<300)||com.ibm.ajax.auth.isAuthenticationRequired(_658,_659);},jsonCoders:{to:{expansions:function(obj,mgr){var acc=mgr.newExpansionsListAccessor(),val=acc.getExpansions();if(val&&val.length>0){obj[this.JSON_SERIALIZATION.names.expansions]=val;}},portlets:function(obj,mgr){var acc=mgr.newPortletListAccessor(),fn=this.jsonCoders.to.portlet;dojo.forEach(acc.getPortlets(),function(pid){fn.call(this,pid,obj,mgr);},this);},portlet:function(pid,obj,mgr){var pAcc=mgr.newPortletAccessor(pid),mode=pAcc.getPortletMode(),_65a=pAcc.getWindowState(),_65b=pAcc.getRenderParameters(),_65c=this.JSON_SERIALIZATION.names,_65d=this.JSON_SERIALIZATION.portlet,pObj=null,path=[_65c.portlets,pid].join(".");if(mode&&mode!=_65d.defMode){if(!pObj){pObj=dojo.setObject(path,{},obj);}pObj[_65c.pMode]=mode;}if(_65a&&_65a!=_65d.defWState){if(!pObj){pObj=dojo.setObject(path,{},obj);}pObj[_65c.pWState]=_65a;}var _65e=_65b.getNames();if(_65e.length>0){if(!pObj){pObj=dojo.setObject(path,{},obj);}this.jsonCoders.to.params.call(this,pObj,_65b);}},selection:function(obj,mgr){var acc=mgr.newSelectionAccessor(),_65f=this.JSON_SERIALIZATION.names,sel=obj[_65f.selection]={},val=acc.getPageSelection(),_660=acc.getParameters();if(val){sel[_65f.selPg]=val;}val=acc.getFragmentSelection();if(val){sel[_65f.selFrg]=val;}val=acc.getURI();if(val){sel[_65f.selURI]=val;}var _661=acc.getMappingSources();if(_661.length>0){var map=sel[_65f.selMaps]={};for(var i=0;i<_661.length;i++){map[_661[i]]=acc.getMapping(_661[i]);}}var _662=_660.getNames();if(_662.length>0){this.jsonCoders.to.params.call(this,sel,_660);}},sharedStateList:function(obj,mgr){var acc=mgr.newSharedStateListAccessor(),fn=this.jsonCoders.to.sharedState;dojo.forEach(acc.getScopeIDs(),function(sid){fn.call(this,sid,obj,mgr);},this);},sharedState:function(_663,obj,mgr){var acc=mgr.newSharedStateAccessor(_663),_664=this.JSON_SERIALIZATION.names,_665=acc.getQNames();if(_665.length>0){var pObj=dojo.setObject([_664.sharedState,_663].join("."),{},obj);for(var i=0;i<_665.length;i++){pObj[_665[i]]=acc.getValues(_665[i]);}}},params:function(obj,_666){var _667=_666.getNames();if(_667.length>0){var _668=obj[this.JSON_SERIALIZATION.names.params]={};for(var i=0;i<_667.length;i++){_668[_667[i]]=_666.getValues(_667[i]);}}}},from:{expansions:function(obj,mgr){var val=obj[this.JSON_SERIALIZATION.names.expansions];if(val&&val.length>0){mgr.newExpansionsListAccessor().setExpansions(val);}},portlets:function(obj,mgr){var fn=this.jsonCoders.from.portlet;for(var pid in obj[this.JSON_SERIALIZATION.names.portlets]){fn.call(this,pid,obj,mgr);}},portlet:function(pid,obj,mgr){var _669=this.JSON_SERIALIZATION.names,_66a=this.JSON_SERIALIZATION.portlet,pObj=dojo.getObject([_669.portlets,pid].join("."),false,obj);if(pObj){var pAcc=mgr.newPortletAccessor(pid),mode=pObj[_669.pMode],_66b=pObj[_669.pWState];if(mode&&mode!=_66a.defMode){pAcc.setPortletMode(mode);}if(_66b&&_66b!=_66a.defWState){pAcc.setWindowState(_66b);}var _66c=pObj[_669.params];if(_66c){var _66d=pAcc.getRenderParameters();this.jsonCoders.from.params.call(this,pObj,_66d);}}},selection:function(obj,mgr){var _66e=this.JSON_SERIALIZATION.names,sel=obj[_66e.selection],acc;if(sel){var val=sel[_66e.selPg];if(val){acc=mgr.newSelectionAccessor();acc.setPageSelection(val);}val=sel[_66e.selFrg];if(val){if(!acc){acc=mgr.newSelectionAccessor();}acc.setFragmentSelection(val);}val=sel[_66e.selURI];if(val){if(!acc){acc=mgr.newSelectionAccessor();}acc.setURI(val);}val=sel[_66e.selMaps];for(var n in val){acc.setMapping(n,val[n]);}val=sel[_66e.params];if(val){var _66f=acc.getParameters();this.jsonCoders.from.params.call(this,sel,_66f);}}},sharedStateList:function(obj,mgr){var fn=this.jsonCoders.from.sharedState;for(var sid in obj[this.JSON_SERIALIZATION.names.sharedState]){fn.call(this,sid,obj,mgr);}},sharedState:function(_670,obj,mgr){var acc=mgr.newSharedStateAccessor(_670),_671=this.JSON_SERIALIZATION.names,_672=obj[_671.sharedState][_670];for(var n in _672){acc.setValues(n,_672[n]);}},params:function(obj,_673){var _674=obj[this.JSON_SERIALIZATION.names.params];for(var n in _674){_673.setValues(n,_674[n]);}}}},toJSON:function(_675){var mgr=new com.ibm.portal.state.StateManager(ibmPortalConfig.contentHandlerURI),obj={},acc,val,_676=this.JSON_SERIALIZATION.names;mgr.reset(_675);acc=mgr.newLocaleAccessor(),val=acc.getLocale();if(val){obj[_676.locale]=val;}this.jsonCoders.to.portlets.call(this,obj,mgr);this.jsonCoders.to.expansions.call(this,obj,mgr);acc=mgr.newScreenTemplateAccessor();val=acc.getScreenTemplate();if(val){obj[_676.screenTemplate]=val;}this.jsonCoders.to.selection.call(this,obj,mgr);this.jsonCoders.to.sharedStateList.call(this,obj,mgr);acc=mgr.newSoloStateAccessor();val=acc.getSoloPortlet();if(val){dojo.setObject([_676.solo,_676.soloPortlet].join("."),val,obj);}val=acc.getReturnSelection();if(val){dojo.setObject([_676.solo,_676.soloReturn].join("."),val,obj);}acc=mgr.newStatePartitionAccessor();val=acc.getStatePartition();if(val){obj[_676.statePartition]=val;}acc=mgr.newThemePolicyAccessor();val=acc.getThemePolicy();if(val){obj[_676.themePolicy]=val;}acc=mgr.newThemeTemplateAccessor();val=acc.getThemeTemplate();if(val){obj[_676.themeTemplate]=val;}return obj;},fromJSON:function(obj){var mgr=new com.ibm.portal.state.StateManager(ibmPortalConfig.contentHandlerURI),acc,val,_677=this.JSON_SERIALIZATION.names;mgr.reset(dojox.data.dom.createDocument());val=obj[_677.locale];if(val){mgr.newLocaleAccessor().setLocale(val);}this.jsonCoders.from.portlets.call(this,obj,mgr);this.jsonCoders.from.expansions.call(this,obj,mgr);val=obj[_677.screenTemplate];if(val){mgr.newScreenTemplateAccessor().setScreenTemplate(val);}this.jsonCoders.from.selection.call(this,obj,mgr);this.jsonCoders.from.sharedStateList.call(this,obj,mgr);acc=null;val=dojo.getObject([_677.solo,_677.soloPortlet].join("."),false,obj);if(val){acc=mgr.newSoloStateAccessor();acc.setSoloPortlet(val);}val=dojo.getObject([_677.solo,_677.soloReturn].join("."),false,obj);if(val){if(!acc){acc=mgr.newSoloStateAccessor();}acc.setReturnSelection(val);}val=obj[_677.statePartition];if(val){mgr.newStatePartitionAccessor().setStatePartition(val);}val=obj[_677.themePolicy];if(val){mgr.newThemePolicyAccessor().setThemePolicy(val);}val=obj[_677.themeTemplate];if(val){mgr.newThemeTemplateAccessor().setThemeTemplate(val);}return mgr.stateDOM;},serialize:function(_678,_679,_67a,_67b){var _67c=dojox.data.dom.innerXML(_678).replace(/[\r\n]/mg,"");ibm.portal.debug.entry("SerializationManager.serialize",[_67c,_679,_67a,_67b]);var _67d=encodeURIComponent(_67c);var _67e=this._getMimeType();var _67f=null;var me=this;var auth=com.ibm.ajax.auth;var _680=typeof ibmCfg!="undefined"&&ibmCfg?(ibmCfg&&ibmCfg.themeConfig?ibmCfg.themeConfig.onauthenticated:null):null;var _681=com.ibm.portal.services.PortalRestServiceConfig.digest;if(typeof ibmPortalConfig!="undefined"&&_67d.length<=ibmPortalConfig.stateThreshold){var _682=this.STATE_URI_SCHEME+":"+_67d;var _683={"uri":_682,"mode":this.DOWNLOAD_MODE,"xmlns":this.STATE_NS_URI,"sessionDependencyAllowed":"true"};_679=(_679!=null&&_679==true);if(_679===true){_683.preprocessors="true";}if(_681){_683.digest=_681;}if(_67b===true){_683.forceAbsolute=true;}dojo.xhrGet({url:this.serviceURL,sync:true,content:_683,handleAs:_67e,handle:function(_684,_685){if(auth.isAuthenticationRequired(_684,_685)){ibm.portal.debug.text("Authentication required.");auth.authenticationHandler(_684,_685,_680);}else{_67f=me._handleSerializationResponse.call(me,_684,_67a,_678,_679);return _684;}},transport:"XMLHTTPTransport"});}else{if(dojo.isIE){var idx=_67c.indexOf("UTF-16");if(idx>=0){_67c=_67c.replace(/UTF-16/,"UTF-8");}}var url=this.serviceURL+"?uri="+this.STATE_URI_POST+"&xmlns="+this.STATE_NS_URI+"&sessionDependencyAllowed=true";if(_681!=null){url+="&digest="+_681;}if(_679===true){url+="&preprocessors=true";}if(_67b===true){url+="&forceAbsolute=true";}dojo.rawXhrPost({url:url,sync:true,postData:_67c,handleAs:_67e,headers:{"Content-Type":"text/xml"},handle:function(_686,_687){if(auth.isAuthenticationRequired(_686,_687)){ibm.portal.debug.text("Authentication required.");auth.authenticationHandler(_686,_687,_680);}else{_67f=me._handleSerializationResponse.call(me,_686,_67a,_678,_679);return _686;}},transport:"XMLHTTPTransport"});}return _67f;},deserialize:function(url,_688){ibm.portal.debug.entry("SerializationManager.deserialize",[url]);var _689=this.STATE_URI_SCHEME+":"+encodeURIComponent(url);var _68a=null;var _68b=this._getMimeType();var me=this;var _68c=com.ibm.portal.services.PortalRestServiceConfig.digest;var auth=com.ibm.ajax.auth;var _68d=typeof ibmCfg!="undefined"&&ibmCfg?(ibmCfg&&ibmCfg.themeConfig?ibmCfg.themeConfig.onauthenticated:null):null;var _68e={"uri":_689,"mode":this.DOWNLOAD_MODE,"xmlns":this.STATE_NS_URI,"preprocessors":"true"};if(_68c!=null){_68e.digest=_68c;}dojo.xhrGet({url:this.serviceURL,sync:(_688)?false:true,content:_68e,headers:{"X-IBM-XHR":"true"},handleAs:_68b,handle:function(_68f,_690){var type=(_68f instanceof Error)?"error":"load";if(type=="load"){var _691=me._getResponseXML(_68f);if(_691.documentElement.nodeName=="parsererror"){_691=dojox.data.dom.createDocument();}if(_688){_688(1,url,_691);}else{_68a={"status":1,"input":me.serviceURL,"url":me.serviceURL,"returnObject":_691,"state":_691};}}else{if(type=="error"){if(auth.isAuthenticationRequired(_68f,_690)){ibm.portal.debug.text("Authentication required.");auth.authenticationHandler(_68f,_690,_68d);}else{if(_688){_688(2,url,null);}else{_68a={"status":2,"input":me.serviceURL,"url":me.serviceURL,"returnObject":null,"state":null};}}}}},transport:"XMLHTTPTransport"});return _68a;},_handleSerializationResponse:function(_692,_693,_694,_695){var _696=null;var type=(_692 instanceof Error)?"error":"load";if(type=="load"){var _697=this._getResponseXML(_692);var _698="atom:entry/atom:link";var ns={"atom":"http://www.w3.org/2005/Atom","state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state"};var _699=null;var _69a=com.ibm.portal.xpath.evaluateXPath(_698,_697,ns);if(_69a!=null&&_69a.length>0){_699=_69a[0].getAttribute("href");}else{com.ibm.ajax.auth.authenticationHandler();_696={"status":this.STATUS_ERROR,"input":_694,"state":_694,"returnObject":null,"url":null};return _696;}var _69b=_694;if(_695==true){var _69c="atom:entry/atom:content/state:root";var _69d=com.ibm.portal.xpath.evaluateXPath(_69c,_697,ns);if(_69d!=null&&_69d.length>0){var _69e=dojox.data.dom.innerXML(_69d[0]);_69b=dojox.data.dom.createDocument(_69e);}}if(_693){_693(1,_69b,_699);}else{_696={"status":1,"input":_69b,"state":_69b,"returnObject":_699,"url":_699};}}else{if(type=="error"){if(_693){_693(this.STATUS_ERROR,_694,null);}else{_696={"status":this.STATUS_ERROR,"input":_694,"state":_694,"returnObject":null,"url":null};}}}return _696;},_getMimeType:function(){var _69f="xml";if(dojo.isIE){_69f="text";}return _69f;},_getResponseXML:function(data){var _6a0=data;if(dojo.isIE){_6a0=dojox.data.dom.createDocument(data);}return _6a0;}});dojo.declare("com.ibm.portal.navigation.controller.StateVaryManager",null,{constructor:function(){this._expr=new Array();},setExpressions:function(id,_6a1){var _6a2=this._findBucket(id);if(_6a2==null){_6a2={"id":id,"expr":null};this._expr.push(_6a2);}_6a2.expr=_6a1;},getExpressions:function(id){var _6a3=null;var _6a4=this._findBucket(id);if(_6a4!=null){_6a3=_6a4.expr;}return _6a3;},_findBucket:function(id){var _6a5=null;for(i=0;i<this._expr.length;i++){var temp=this._expr[i];if(temp.id==id){_6a5=temp;break;}}return _6a5;}});com.ibm.portal.state.STATE_MANAGER=new com.ibm.portal.state.StateManager();com.ibm.portal.state.STATE_MANAGER.reset(dojox.data.dom.createDocument());}if(!dojo._hasResource["ibm.portal.portlet.portlet"]){dojo._hasResource["ibm.portal.portlet.portlet"]=true;dojo.provide("ibm.portal.portlet.portlet");ibm.portal.portlet._SafeToExecute=false;dojo.declare("ibm.portal.portlet.PortletWindow",null,{STATUS_UNDEFINED:0,STATUS_OK:1,STATUS_ERROR:2,constructor:function(_6a6){this.isEnablerAvailable=(typeof dojo.getObject("com.ibm.mashups.enabler")!="undefined");if(this.isEnablerAvailable){var _6a7="ibm.portal.portlet.PortletWindow";this.logger=new ibm.portal.portlet.Logger(_6a7);var _6a8="constructor()";this.logger.logEntry(_6a8,_6a6);}if(_6a6==null){return;}this.windowID=_6a6;var _6a9=document.getElementById("com.ibm.wps.web2.portlet.preferences."+this.windowID);this.preferenceEditID=_6a9.getAttribute("editid");this.preferenceConfigID=_6a9.getAttribute("configid");this.preferenceEditDefaultsID=_6a9.getAttribute("editdefaultsid");this.pageID=_6a9.getAttribute("pageid");_6a9=null;this.isCSA=false;try{this.isCSA=(typeof (document.isCSA)!="undefined");}catch(e){}if(this.isEnablerAvailable){this.widgetModel=com.ibm.mashups.enabler.widget.Factory.getWidgetModel();this.navigationStateModel=com.ibm.mashups.enabler.model.state.NavigationStateModelFactory.getNavigationStateModel();this.widgetAccessor=com.ibm.mashups.enabler.model.state.AccessorFactory.getWidgetAccessor(this.navigationStateModel,this.windowID);this.userModel=com.ibm.mashups.enabler.user.Factory.getUserModel();}this.attributes=new Array();this._queuedFuncs=new Array();this.portletState=new ibm.portal.portlet.PortletState(this.isEnablerAvailable,_6a6,null,this.navigationStateModel);var me=this;function executeQueued(){for(var i=0;i<me._queuedFuncs.length;i++){me._queuedFuncs[i]();}};if(ibmPortalConfig.isCSAListening){if(window.addEventListener){window.addEventListener("load",function(){if(!ibm.portal.portlet._SafeToExecute){ibm.portal.portlet._SafeToExecute=true;}executeQueued();},false);}else{if(window.attachEvent){window.attachEvent("onload",function(){if(!ibm.portal.portlet._SafeToExecute){ibm.portal.portlet._SafeToExecute=true;}executeQueued();});}}}else{ibm.portal.portlet._SafeToExecuteDfd.addCallback(executeQueued);}if(this.isEnablerAvailable){this.logger.logExit(_6a8);}},reportError:function(_6aa){var code;if(_6aa.getErrorCode()==ibm.portal.portlet.Error.ERROR){code="error";}else{if(_6aa.getErrorCode()==ibm.portal.portlet.Error.INFO){code="info";}else{if(_6aa.getErrorCode()==ibm.portal.portlet.Error.WARN){code="warning";}}}var _6ab={"_type":code,"_message":_6aa.getMessage(),"_details":_6aa.getDescription()};if(this.isCSA){dojo.publish("/portal/status",[{message:_6ab}]);}else{if(typeof (console)!="undefined"){if(_6aa.getErrorCode()==ibm.portal.portlet.Error.ERROR){console.error(_6ab._message+"\n"+_6ab._details);}else{if(_6aa.getErrorCode()==ibm.portal.portlet.Error.INFO){console.info(_6ab._message+"\n"+_6ab._details);}else{if(_6aa.getErrorCode()==ibm.portal.portlet.Error.WARN){console.warn(_6ab._message+"\n"+_6ab._details);}}}}else{alert(_6ab._type.toUpperCase()+"\nMessage: "+_6ab._message+"\nDetails: "+_6ab._details);}}},getAttribute:function(name){return this.attributes[name];},setAttribute:function(name,_6ac){var ret=this.attributes[name];this.attributes[name]=_6ac;return ret;},removeAttribute:function(name){this.attributes[name]=null;},clearAttributes:function(){this.attributes=new Array();},getPortletState:function(_6ad){if(this.isEnablerAvailable){var _6ae="getPortletState()";this.logger.logEntry(_6ae,_6ad);}var _6af=this.portletState;var _6b0=this;var _6b1=null;if(_6ad!=null){_6ad(_6b0,ibm.portal.portlet.PortletWindow.STATUS_OK,_6af);}else{_6b1={"portletWindow":_6b0,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6af};}if(this.isEnablerAvailable){this.logger.logExit(_6ae,_6b1);}return _6b1;},setPortletState:function(_6b2,_6b3){if(this.isEnablerAvailable){var _6b4="setPortletState()";this.logger.logEntry(_6b4,_6b3);}this.portletState=_6b2;if(this.isEnablerAvailable){this.navigationStateModel.commit({allowRedirect:true}).start(false);}else{if(this.isCSA){if(_6b3==null){var _6b5=new com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var url=_6b5.newPortletRenderURL(this.windowID);var _6b6=new com.ibm.portal.services.PortletFragmentService();_6b6.getPortletInfo("lm:oid:"+this.windowID+"@oid:"+this.pageID,url);}}else{var _6b7=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);_6b7.reset(_6b2.portletAccessor.stateDOM);var _6b8=_6b7.getSerializationManager();var _6b9=_6b8.serialize(_6b7.getState());var _6ba=_6b9["returnObject"];var url=_6ba;window.location.href=url;}}var _6bb=this.getPortletState(_6b3);if(this.isEnablerAvailable){this.logger.logExit(_6b4,_6bb);}return _6bb;},_queueUp:function(_6bc){this._queuedFuncs.push(_6bc);},_throwInappropriateRequestError:function(_6bd){throw new Error("Cannot execute a synchronous call before the page loads! Please use an onload handler to execute this call to \""+_6bd+"\".");return null;},getPortletPreferences:function(_6be){if(this.isEnablerAvailable){var _6bf="getPortletPreferences()";this.logger.logEntry(_6bf,_6be);}if(!ibm.portal.portlet._SafeToExecute){if(_6be){var me=this;this._queueUp(function(){me.getPortletPreferences(_6be);});return false;}else{return this._throwInappropriateRequestError("getPortletPreferences");}}if(this.isEnablerAvailable){var _6c0=this;var _6c1=null;var _6c2=new ibm.portal.portlet.PortletPreferences(_6c0.isEnablerAvailable,_6c0.windowID,_6c0.pageID,_6c0.requestedPreferenceID,null,_6c0.widgetModel);if(_6be){_6be(_6c0,ibm.portal.portlet.PortletWindow.STATUS_OK,_6c2);}else{_6c1={"portletWindow":_6c0,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6c2};}}else{var _6c3=this.getPortletState().returnObject.getPortletMode();this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _6c4=document.getElementById("com.ibm.wps.web2.portlet.root."+this.windowID).innerHTML;var idx=_6c4.indexOf("--portletwindowid--");var _6c5=_6c4.replace(/--portletwindowid--/g,this.windowID);if(_6c5.indexOf("?")<0){_6c5=_6c5+"?";}_6c5+="&verb=download&levels=-all&rep=compact&preferences=aggregated";this.requestedPreferenceID="pm:oid:"+this.preferenceEditID;if(_6c3==ibm.portal.portlet.PortletMode.CONFIG){this.requestedPreferenceID="pm:oid:"+this.preferenceConfigID;}else{if(_6c3==ibm.portal.portlet.PortletMode.EDIT_DEFAULTS){this.requestedPreferenceID="pm:oid:"+this.preferenceEditDefaultsID;}else{if((_6c3==ibm.portal.portlet.PortletMode.EDIT)||(this.preferenceEditID==null)){if(this.preferenceEditID==null){var _6c6=_6c4.substring(0,_6c4.indexOf("@")).replace(/--portletwindowid--/g,this.preferenceEditDefaultsID);if(_6c6.indexOf("?")<0){_6c6=_6c6+"?";}_6c6+="&verb=download&levels=-all&rep=compact&preferences=aggregated";var _6c7="<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+"<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:model=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements\" xmlns:creation-context=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">"+"<atom:entry>"+"<atom:id>pm:cid:0</atom:id>"+"<atom:content type=\"application/xml\">"+"<model:portlet-entity creation-context:portlet-entity=\"pm:oid:"+this.preferenceEditDefaultsID+"\"/>"+"</atom:content>"+"</atom:entry>"+"</atom:feed>";dojo.rawXhrPost({url:_6c6,sync:true,postData:_6c7,contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:dojo.hitch(this,function(_6c8,_6c9){var type=(_6c8 instanceof Error)?"error":"load";if(type=="load"){var _6ca=_6c8;if(!_6ca||(typeof (dojox.data.dom.innerXML(_6c8))=="undefined")){_6ca=dojox.data.dom.createDocument(_6c9.xhr.responseText);}var ns={"atom":"http://www.w3.org/2005/Atom"};var expr="/atom:feed/atom:entry/atom:id";var _6cb=ibm.portal.xml.xpath.evaluateXPath(expr,_6ca,ns);this.requestedPreferenceID=dojox.data.dom.textContent(_6cb[0]);}else{if(_6c9.xhr.status==409){var _6ca=dojox.data.dom.createDocument(_6c9.xhr.responseText);var ns={"atom":"http://www.w3.org/2005/Atom"};var expr="/atom:feed/atom:entry/atom:id";var _6cb=ibm.portal.xml.xpath.evaluateXPath(expr,_6ca,ns);this.requestedPreferenceID=dojox.data.dom.textContent(_6cb[0]);}}}),transport:"XMLHTTPTransport"});}else{this.requestedPreferenceID="pm:oid:"+this.preferenceEditID;}}}}var _6c0=this;var _6c1=null;dojo.xhrGet({url:_6c5,handleAs:"xml",headers:{"X-IBM-XHR":"true","If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_6be)?false:true,handle:function(_6cc,_6cd){if(_6c0.isAuthenticationRequired(_6cd.xhr,_6cd.args.handleAs)){_6c0.doAuthentication();}else{var type=(_6cc instanceof Error)?"error":"load";if(type=="load"){var _6ce=_6cc;if(!_6ce||(typeof (dojox.data.dom.innerXML(_6cc))=="undefined")){_6ce=dojox.data.dom.createDocument(_6cd.xhr.responseText);}var _6cf=new ibm.portal.portlet.PortletPreferences(_6c0.isEnablerAvailable,_6c0.windowID,_6c0.pageID,_6c0.requestedPreferenceID,_6ce,_6c0.widgetModel);if(_6be){_6be(_6c0,ibm.portal.portlet.PortletWindow.STATUS_OK,_6cf);}else{_6c1={"portletWindow":_6c0,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6cf};}}else{if(type=="error"){if(_6be){_6be(_6c0,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_6c1={"portletWindow":_6c0,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_6bf,_6c1);}return _6c1;},setPortletPreferences:function(_6d0,_6d1){if(this.isEnablerAvailable){var _6d2="setPortletPreferences()";this.logger.logEntry(_6d2,_6d1);}if(!ibm.portal.portlet._SafeToExecute){if(_6d1){var me=this;this._queueUp(function(){me.setPortletPreferences(_6d0,_6d1);});return false;}else{return this._throwInappropriateRequestError("setPortletPreferences");}}if(this.isEnablerAvailable){this.widgetModel.commit().start();var _6d3=this;var _6d4=null;if(_6d1){_6d1(_6d3,ibm.portal.portlet.PortletWindow.STATUS_OK,_6d0);}else{_6d4={"portletWindow":_6d3,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6d0};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _6d5=document.getElementById("com.ibm.wps.web2.portlet.root."+this.windowID).innerHTML;var idx=_6d5.indexOf("--portletwindowid--");var _6d6=_6d5.replace(/--portletwindowid--/g,this.windowID);if(_6d6.indexOf("?")<0){_6d6+="?verb=download";}else{_6d6+="&verb=download";}var _6d7=_6d0.requestedPreferenceID;var expr="/atom:feed/atom:entry[atom:id='"+_6d7+"']";var _6d8=ibm.portal.xml.xpath.evaluateXPath(expr,_6d0.xmlData,_6d0.ns);var _6d9;if(_6d8&&_6d8.length>0){_6d9=_6d8[0];}else{return null;}var _6da=_6d9.parentNode;expr="/atom:feed/atom:entry";_6d8=ibm.portal.xml.xpath.evaluateXPath(expr,_6d0.xmlData,_6d0.ns);for(var i=0;i<_6d8.length;i++){var node=_6d8[i];if(node!=_6d9){_6da.removeChild(node);}}var _6d3=this;var _6d4=null;var _6db={url:_6d6,sync:(_6d1)?false:true,contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_6dc,_6dd){if(_6d3.isAuthenticationRequired(_6dd.xhr,_6dd.args.handleAs)){_6d3.doAuthentication();}else{var type=(_6dc instanceof Error)?"error":"load";if(type=="load"){if(_6d1){_6d1(_6d3,ibm.portal.portlet.PortletWindow.STATUS_OK,_6d0);}else{_6d4={"portletWindow":_6d3,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6d0};}}else{if(type=="error"){if(_6d1){_6d1(_6d3,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_6d4={"portletWindow":_6d3,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"};var _6de="rawXhrPut";if(ibmPortalConfig&&ibmPortalConfig.xMethodOverride){_6db.headers["X-Method-Override"]="PUT";_6de="xhrPost";_6db.postData=dojox.data.dom.innerXML(_6d0.xmlData);}else{_6db.putData=dojox.data.dom.innerXML(_6d0.xmlData);}dojo[_6de](_6db);}if(this.isEnablerAvailable){this.logger.logExit(_6d2,_6d4);}return _6d4;},getUserProfile:function(_6df){if(this.isEnablerAvailable){var _6e0="getUserProfile()";this.logger.logEntry(_6e0,_6df);}if(!ibm.portal.portlet._SafeToExecute){if(_6df){var me=this;this._queueUp(function(){me.getUserProfile(_6df);});return false;}else{return this._throwInappropriateRequestError("getUserProfile");}}if(this.isEnablerAvailable){var _6e1=this;var _6e2=null;var _6e3=new ibm.portal.portlet.UserProfile(_6e1.isEnablerAvailable,_6e1.windowID,null,_6e1.userModel);if(_6df){_6df(_6e1,ibm.portal.portlet.PortletWindow.STATUS_OK,_6e3);}else{_6e2={"portletWindow":_6e1,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6e3};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _6e4=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _6e1=this;var _6e2=null;dojo.xhrGet({url:_6e4,headers:{"X-IBM-XHR":"true","If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_6df)?false:true,handleAs:"xml",handle:function(_6e5,_6e6){if(_6e1.isAuthenticationRequired(_6e6.xhr,_6e6.args.handleAs)){_6e1.doAuthentication();}else{var type=(_6e5 instanceof Error)?"error":"load";if(type=="load"){var _6e7=_6e5;if(!_6e7||(typeof (dojox.data.dom.innerXML(_6e5))=="undefined")){_6e7=dojox.data.dom.createDocument(_6e6.xhr.responseText);}var _6e8=new ibm.portal.portlet.UserProfile(_6e1.isEnablerAvailable,_6e1.windowID,_6e7,_6e1.userModel);if(_6df){_6df(_6e1,ibm.portal.portlet.PortletWindow.STATUS_OK,_6e8);}else{_6e2={"portletWindow":_6e1,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6e8};}}else{if(type=="error"){if(_6df){_6df(_6e1,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_6e2={"portletWindow":_6e1,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_6e0,_6e2);}return _6e2;},setUserProfile:function(_6e9,_6ea){if(this.isEnablerAvailable){var _6eb="setUserProfile()";this.logger.logEntry(_6eb,_6ea);}if(!ibm.portal.portlet._SafeToExecute){if(_6ea){var me=this;this._queueUp(function(){me.setUserProfile(_6e9,_6ea);});return false;}else{return this._throwInappropriateRequestError("setUserProfile");}}if(this.isEnablerAvailable){this.userModel.commit().start();var _6ec=this;var _6ed=null;if(_6ea){_6ea(_6ec,ibm.portal.portlet.PortletWindow.STATUS_OK,_6ec.userProfile);}else{_6ed={"portletWindow":_6ec,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6e9};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _6ee=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _6ec=this;var _6ed=null;dojo.rawXhrPost({url:_6ee,sync:(_6ea)?false:true,postData:dojox.data.dom.innerXML(_6e9.xmlData),contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_6ef,_6f0){if(_6ec.isAuthenticationRequired(_6f0.xhr,_6f0.args.handleAs)){_6ec.doAuthentication();}else{var type=(_6ef instanceof Error)?"error":"load";if(type=="load"){if(_6ea){_6ea(_6ec,ibm.portal.portlet.PortletWindow.STATUS_OK,_6e9);}else{_6ed={"portletWindow":_6ec,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_6e9};}}else{if(type=="error"){if(_6ea){_6ea(_6ec,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_6ed={"portletWindow":_6ec,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_6eb,_6ed);}return _6ed;},newXMLPortletRequest:function(){return new ibm.portal.portlet.XMLPortletRequest(this);},isAuthenticationRequired:function(_6f1,_6f2){if(_6f1.readyState!=4){throw new Error("isAuthenticationRequired should only be called with a COMPLETED XMLHttpRequest! The readyState on the given XMLHttpRequest is not 4 (COMPLETE)!");}var _6f3={dojoType:"valid"};var _6f4={xhr:_6f1,args:{handleAs:_6f2}};return com.ibm.ajax.auth.isAuthenticationRequired(_6f3,_6f4);},setAuthenticationHandler:function(_6f5){this._authenticationFn=_6f5;},doAuthentication:function(){if(this._authenticationFn){this._authenticationFn();}else{com.ibm.ajax.auth.authenticationHandler();}}});if(typeof (ibmPortalConfig)=="undefined"||!ibmPortalConfig.isCSAListening){ibm.portal.portlet._SafeToExecuteDfd=new dojo.Deferred();ibm.portal.portlet._SafeToExecuteDfd.addCallback(function(){ibm.portal.portlet._SafeToExecute=true;});var f=new Function("ibm.portal.portlet._SafeToExecuteDfd.callback();");if(window.addEventListener){window.addEventListener("load",f,false);}else{if(window.attachEvent){window.attachEvent("onload",f);}}}dojo.declare("ibm.portal.portlet.PortletPreferences",null,{constructor:function(_6f6,_6f7,_6f8,_6f9,data,_6fa){this.windowID=_6f7;this.pageID=_6f8;this.requestedPreferenceID=_6f9;this.xmlData=data;this.xsltURL=dojo.moduleUrl("ibm","portal/portlet/");this.ns={"xsl":"http://www.w3.org/1999/XSL/Transform","thr":"http://purl.org/syndication/thread/1.0","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","model":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements","base":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base","portal":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model","xsi":"http://www.w3.org/2001/XMLSchema-instance"};this.isEnablerAvailable=_6f6;if(this.isEnablerAvailable){var _6fb="ibm.portal.portlet.PortletPreferences";this.logger=new ibm.portal.portlet.Logger(_6fb);var _6fc="constructor()";this.logger.logEntry(_6fc);this.logger.log(_6fc,"windowid: ${0}",_6f7);this.logger.log(_6fc,"pageid: ${0}",_6f8);this.logger.log(_6fc,"requestedpreferenceid: ${0}",_6f9);this.logger.log(_6fc,"data: ${0}",data);this.logger.log(_6fc,"widgetModel: ${0}",_6fa);this.widgetModel=_6fa;this.logger.logExit(_6fc);}else{this.widgetModel=null;this.internal_reset();}},getMap:function(){if(this.isEnablerAvailable){var _6fd="getMap()";this.logger.logEntry(_6fd);var _6fe=this.getNames();var _6ff=new Array();for(var n=0;n<_6fe.length;n++){var _700=this.getValues(_6fe[n]);var _701=this.isReadOnly(_6fe[n]);_6ff[n]={name:_6fe[n],values:_700,readOnly:_701};}this.logger.logExit(_6fd,_6ff);return _6ff;}else{if(this.result_getMap){return this.result_getMap;}var _702=ibm.portal.xml.xslt.loadXsl(this.xsltURL+"PortletPreferencesMap.xsl");if(_702.documentElement==null){alert("xslDoc is null");}var _703=ibm.portal.xml.xslt.transform(this.xmlData,_702,null,{"selectionid":this.requestedPreferenceID},true);if(_703==null){this.result_getNames=null;return null;}var _704=eval(_703);if(_704){_704=_704.preferences;}this.result_getMap=_704;return this.result_getMap;}},getNames:function(){if(this.isEnablerAvailable){var _705="getNames()";this.logger.logEntry(_705);var _706=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _707=_706.getNames();this.logger.logExit(_705,_707);return _707;}else{if(this.result_getNames){return this.result_getNames;}var _708=ibm.portal.xml.xslt.loadXsl(this.xsltURL+"PortletPreferencesNames.xsl");if(_708.documentElement==null){alert("xslDoc is null");}var _709=ibm.portal.xml.xslt.transform(this.xmlData,_708,null,{"selectionid":this.requestedPreferenceID},true);if(_709==null){this.result_getNames=null;return null;}var _70a=eval(_709);if(_70a){_70a=_70a.names;}this.result_getNames=_70a;return this.result_getNames;}},getValue:function(key,def){if(this.isEnablerAvailable){var _70b="getValue()";this.logger.logEntry(_70b);this.logger.log(_70b,"key: ${0}",key);var _70c=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _70d=_70c.getValue(key);this.logger.logExit(_70b,_70d);return _70d;}else{var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']/base:value";var _70e=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _70d;if(_70e&&_70e.length>0){_70d=_70e[0].getAttribute("value");}else{_70d=def;}return _70d;}},getValues:function(key,def){if(this.isEnablerAvailable){var _70f="getValues()";this.logger.logEntry(_70f);this.logger.log(_70f,"key: ${0}",key);var _710=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _711=_710.getValues(key);this.logger.logExit(_70f,_711);return _711;}else{var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']/base:value";var _712=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _711;if(_712&&_712.length>0){_711=new Array();for(var i=0;i<_712.length;i++){_711[i]=_712[i].getAttribute("value");}}else{_711=def;}return _711;}},isReadOnly:function(key){if(this.isEnablerAvailable){var _713="isReadOnly()";this.logger.logEntry(_713);this.logger.log(_713,"key: ${0}",key);var _714=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _715=_714.isReadOnly(key);this.logger.logExit(_713,_715);return _715;}else{var id=this.requestedPreferenceID;var expr="/atom:feed/atom:entry[atom:id='"+id+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _716=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _715=false;if(_716&&_716.length>0){var temp=_716[0].getAttribute("read-only");if(temp!=null){if(temp=="true"){_715=true;}}}return _715;}},reset:function(key){if(this.isEnablerAvailable){var _717="reset()";this.logger.logEntry(_717);this.logger.log(_717,"key: ${0}",key);var _718=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_718.remove(key);this.logger.logExit(_717);}else{this.internal_reset();var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _719=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);if(_719&&_719.length>0){var _71a=_719[0];while(_71a.childNodes.length>0){_71a.removeChild(_71a.firstChild);}}}},setValue:function(key,_71b){if(this.isEnablerAvailable){var _71c="setValue()";this.logger.logEntry(_71c);this.logger.log(_71c,"key: ${0}",key);this.logger.log(_71c,"value: ${0}",_71b);var _71d=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_71d.setValue(key,_71b);this.logger.logExit(_71c);}else{var _71e=new Array();_71e[0]=_71b;this.setValues(key,_71e);}},setValues:function(key,_71f){if(this.isEnablerAvailable){var _720="setValues()";this.logger.logEntry(_720);this.logger.log(_720,"key: ${0}",key);this.logger.log(_720,"values: ${0}",_71f);var _721=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_721.setValues(key,_71f);this.logger.logExit(_720);}else{this.internal_reset();var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _722=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _723=null;if(_722&&_722.length>0){_723=_722[0];for(var i=_723.childNodes.length-1;i>=0;i--){_723.removeChild(_723.childNodes[i]);}}else{var _724="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*";var _725=ibm.portal.xml.xpath.evaluateXPath(_724,this.xmlData,this.ns);if(dojo.isIE){_723=this.xmlData.createNode(1,"model:portletpreferences",this.ns.model);}else{_723=this.xmlData.createElementNS(this.ns.model,"model:portletpreferences");}_723.setAttribute("name",key);_723.setAttribute("read-only","false");_725[0].appendChild(_723);}for(var i=0;i<_71f.length;i++){var _726;if(dojo.isIE){_726=this.xmlData.createNode(1,"base:value",this.ns.base);var _727=this.xmlData.createNode(2,"xsi:type",this.ns.xsi);_727.nodeValue="String";_726.setAttributeNode(_727);}else{_726=this.xmlData.createElementNS(this.ns.base,"base:value");_726.setAttributeNS(this.ns.xsi,"xsi:type","String");}_726.setAttribute("value",_71f[i]);_723.appendChild(_726);}}},internal_reset:function(){this.result_getMap=null;this.result_getNames=null;},clone:function(){var _728=dojox.data.dom.innerXML(this.xmlData);var _729=dojox.data.dom.createDocument(_728);return new ibm.portal.portlet.PortletPreferences(this.isEnablerAvailable,this.windowID,this.pageID,this.requestedPreferenceID,_729,this.widgetModel);},getModifiablePreferences:function(_72a,_72b,_72c){var _72d="getModifiablePreferences()";this.logger.logEntry(_72d);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"widgetModel: ${0}",_72a);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"windowID: ${0}",_72c);var _72e=com.ibm.mashups.enabler.navigation.Factory.getNavigationModel();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"navigationModel: ${0}",_72e);var _72f=_72e.find(_72b).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"selectedNode: ${0}",_72f);var _730=_72e.getLayoutModel(_72f);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"layoutModel: ${0}",_730);var _731=_730.find(_72c).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"layoutControl: ${0}",_731);var _732=_72a.getWidgetWindow(_731).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_72d,"widgetInstance: ${0}",_732);var _733=_72a.getHierarchicalPreferences(_732).start();this.logger.logExit(_72d,_733);return _733;}});dojo.declare("ibm.portal.portlet.PortletMode",null,{VIEW:"view",EDIT:"edit",EDIT_DEFAULTS:"edit_defaults",HELP:"help",CONFIG:"config"});dojo.declare("ibm.portal.portlet.WindowState",null,{NORMAL:"normal",MINIMIZED:"minimized",MAXIMIZED:"maximized"});dojo.declare("ibm.portal.portlet.PortletState",null,{constructor:function(_734,_735,_736,_737){this.windowID=_735;this.isEnablerAvailable=_734;if(this.isEnablerAvailable){var _738="ibm.portal.portlet.PortletState";this.logger=new ibm.portal.portlet.Logger(_738);var _739="constructor()";this.logger.logEntry(_739);this.logger.log(_739,"windowid: ${0}",_735);this.logger.log(_739,"portletWindowId: ${0}",_736);this.logger.log(_739,"navigationStateModel: ${0}",_737);this.navigationStateModel=_737;this.widgetAccessor=com.ibm.mashups.enabler.model.state.AccessorFactory.getWidgetAccessor(this.navigationStateModel,this.windowID);this.logger.logExit(_739);}else{var _73a=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);if(dojo.isString(_735)){var _73b=this._getExistingState(_735,_73a.getSerializationManager());_73a.reset(_73b);}else{_73a.reset(_735);_735=_736;}this.portletAccessor=_73a.newPortletAccessor(_735);this.renderParameters=this.portletAccessor.getRenderParameters();}},_isCSA:function(){var _73c=false;try{_73c=(typeof (document.isCSA)!="undefined");}catch(e){}return _73c;},_getExistingState:function(_73d,_73e){var _73f=null;if(this._isCSA()){_73f=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState().stateDOM;}else{if(_73e!=null){var _740=_73e.deserialize(location.href);_73f=_740.returnObject;}else{_73f=dojox.data.dom.createDocument();}}return _73f;},getPortletMode:function(){if(this.isEnablerAvailable){var _741="getPortletMode()";this.logger.logEntry(_741);var _742=this.widgetAccessor.getWidgetMode();var _743=null;switch(_742){case "view":_743=new ibm.portal.portlet.PortletMode().VIEW;break;case "personalize":_743=new ibm.portal.portlet.PortletMode().EDIT;break;case "edit":_743=new ibm.portal.portlet.PortletMode().EDIT_DEFAULTS;break;case "config":_743=new ibm.portal.portlet.PortletMode().CONFIG;break;case "help":_743=new ibm.portal.portlet.PortletMode().HELP;break;}this.logger.logExit(_741,_743);return _743;}else{return this.portletAccessor.getPortletMode();}},setPortletMode:function(_744){if(this.isEnablerAvailable){var _745="setPortletMode()";this.logger.logEntry(_745);this.logger.log(_745,"portletMode: ${0}",_744);var _746=null;switch(_744){case new ibm.portal.portlet.PortletMode().VIEW:_746="view";break;case new ibm.portal.portlet.PortletMode().EDIT:_746="personalize";break;case new ibm.portal.portlet.PortletMode().EDIT_DEFAULTS:_746="edit";break;case new ibm.portal.portlet.PortletMode().CONFIG:_746="config";break;case new ibm.portal.portlet.PortletMode().HELP:_746="help";break;}this.widgetAccessor.setWidgetMode(_746);this.logger.logExit(_745,_744);return _744;}else{this.portletAccessor.setPortletMode(_744);return _744;}},getWindowState:function(){if(this.isEnablerAvailable){var _747="getWindowState()";this.logger.logEntry(_747);var _748=this.widgetAccessor.getWindowState();var _749=null;switch(_748){case "normal":_749=new ibm.portal.portlet.WindowState().NORMAL;break;case "minimize":_749=new ibm.portal.portlet.WindowState().MINIMIZED;break;case "maximize":_749=new ibm.portal.portlet.WindowState().MAXIMIZED;break;}this.logger.logExit(_747,_749);return _749;}else{return this.portletAccessor.getWindowState();}},setWindowState:function(_74a){if(this.isEnablerAvailable){var _74b="setWindowState()";this.logger.logEntry(_74b);this.logger.log(_74b,"windowState: ${0}",_74a);var _74c=null;switch(_74a){case new ibm.portal.portlet.WindowState().NORMAL:_74c="normal";break;case new ibm.portal.portlet.WindowState().MINIMIZED:_74c="minimize";break;case new ibm.portal.portlet.WindowState().MAXIMIZED:_74c="maximize";break;}this.widgetAccessor.setWindowState(_74c);this.logger.logExit(_74b,_74a);return _74a;}else{this.portletAccessor.setWindowState(_74a);return _74a;}},getParameterNames:function(){if(this.isEnablerAvailable){var _74d="getParameterNames()";this.logger.logEntry(_74d);var _74e=this.widgetAccessor.getWidgetStateNames();this.logger.logExit(_74d,_74e);return _74e;}else{return this.renderParameters.getNames();}},getParameterValue:function(name){if(this.isEnablerAvailable){var _74f="getParameterValue()";this.logger.logEntry(_74f);this.logger.log(_74f,"name: ${0}",name);var _750=this.widgetAccessor.getWidgetState(name);this.logger.logExit(_74f,_750);return _750;}else{return this.renderParameters.getValue(name);}},getParameterValues:function(name){if(this.isEnablerAvailable){var _751="getParameterValues()";this.logger.logEntry(_751);this.logger.log(_751,"name: ${0}",name);var _752=this.widgetAccessor.getWidgetStateValues(name);this.logger.logExit(_751,_752);return _752;}else{return this.renderParameters.getValues(name);}},getParameterMap:function(){if(this.isEnablerAvailable){var _753="getParameterMap()";this.logger.logEntry(_753);var _754=this.getParameterNames();var _755=new Array();for(var n=0;n<_754.length;n++){var _756=this.getParameterValues(_754[n]);_755[n]={name:_754[n],values:_756};}this.logger.logExit(_753,_755);return _755;}else{return this.renderParameters.getMap();}},setParameterValue:function(name,_757){if(this.isEnablerAvailable){var _758="setParameterValue()";this.logger.logEntry(_758);this.logger.log(_758,"name: ${0}",name);this.logger.log(_758,"value: ${0}",_757);this.widgetAccessor.setWidgetState(name,_757);this.logger.logExit(_758,_757);return _757;}else{this.renderParameters.setValue(name,_757);return _757;}},setParameterValues:function(name,_759){if(this.isEnablerAvailable){var _75a="setParameterValues()";this.logger.logEntry(_75a);this.logger.log(_75a,"name: ${0}",name);this.logger.log(_75a,"values: ${0}",_759);this.widgetAccessor.setWidgetState(name,_759);this.logger.logExit(_75a,_759);return _759;}else{this.renderParameters.setValues(name,_759);return _759;}},setParameterMap:function(map,_75b){if(this.isEnablerAvailable){var _75c="setParameterMap()";this.logger.logEntry(_75c);this.logger.log(_75c,"map: ${0}",map);this.logger.log(_75c,"replace: ${0}",_75b);for(var n=0;n<map.length;n++){var _75d=map[n].name;var _75e=map[n].values;this.setParameterValues(_75d,_75e);}this.logger.logExit(_75c);}else{if(_75b==true){this.renderParameters.clear();}this.renderParameters.putAll(map);return this.renderParameters.getMap();}},removeParameter:function(name){if(this.isEnablerAvailable){var _75f="removeParameter()";this.logger.logEntry(_75f);this.logger.log(_75f,"name: ${0}",name);this.widgetAccessor.removeWidgetState(name);this.logger.logExit(_75f);}else{this.renderParameters.remove(name);}}});dojo.require("com.ibm.portal.services.PortletFragmentService");dojo.declare("ibm.portal.portlet.XMLPortletRequest",null,{onreadystatechange:null,readyState:0,responseText:null,responseXML:null,status:null,statusText:null,onportletstateready:null,_location:null,_async:null,constructor:function(_760){var _761=this.declaredClass+".constructor";ibm.portal.debug.entry(_761,[_760]);this.pageID=_760.pageID;this.windowID=_760.windowID;this.windowObj=_760;ibm.portal.debug.exit(_761);this.isEnablerAvailable=_760.isEnablerAvailable;this.navigationStateModel=_760.navigationStateModel;},_getXHR:function(){var _762=this.declaredClass+"._getXHR";ibm.portal.debug.entry(_762);if(!this._xhr){this._xhr=this._createXHR();}ibm.portal.debug.exit(_762,this._xhr);return this._xhr;},_createXHR:function(){var _763=this.declaredClass+"._createXHR";ibm.portal.debug.entry(_763);var _764=null;if(typeof (XMLHttpRequest)!="undefined"){_764=new XMLHttpRequest();}else{_764=new ActiveXObject("Microsoft.XMLHTTP");}ibm.portal.debug.exit(_763,_764);return _764;},_onreadystatechangehandler:function(){var _765=this.declaredClass+"._onreadystatechangehandler";ibm.portal.debug.entry(_765);if(!this.handled){var xhr=this._getXHR();this.readyState=xhr.readyState;ibm.portal.debug.text("ready state is "+xhr.readyState);if(this.readyState==4){var _766=this.windowObj.isAuthenticationRequired(xhr,"xml");ibm.portal.debug.text("is auth required: "+_766);xhr.onreadystatechange=new Function;if(_766){this.windowObj.doAuthentication(xhr);return;}else{this.responseText=xhr.responseText;this.responseXML=xhr.responseXML;this.status=xhr.status;this.statusText=xhr.statusText;var _767=new com.ibm.portal.services.PortletFragmentService();var _768=_767.createPortletInfo(xhr.responseXML);this.responseText=_768.markup;this.responseXML=null;var _769=true;var _76a=_768.updatedState;if(this.onportletstateready!=null){var _76b=_768.windowId;var _76c=new ibm.portal.portlet.PortletState(this.isEnablerAvailable,_76a,_76b,null,this.navigationStateModel);_769=this.onportletstateready(_76c);}if(_769&&this._isCSA()){_767._fireGlobalPortletStateChange(_768);}this._handleDependentPortlets(_767.readDependentPortlets(xhr.responseXML),_76a);this.handled=true;}}if(this.onreadystatechange!=null){this.onreadystatechange();}}ibm.portal.debug.exit(_765);},_handleDependentPortlets:function(_76d,_76e){var _76f=this.declaredClass+"._handleDependentPortlets";ibm.portal.debug.entry(_76f,[_76d,_76e]);if(!this._isCSA()){if(_76d.length>0){window.location.href=this._newPageURL(_76e);}}ibm.portal.debug.exit(_76f);},_isCSA:function(){var _770=this.declaredClass+"._isCSA";ibm.portal.debug.entry(_770);var _771=false;try{_771=(typeof (document.isCSA)!="undefined");}catch(e){}ibm.portal.debug.exit(_770,_771);return _771;},_flag:function(_772){var _773=this.declaredClass+"._flag";ibm.portal.debug.entry(_773,[_772]);var id="lm:oid:"+this.windowID+"@oid:"+this.pageID;var _774=new com.ibm.portal.services.PortletFragmentService();var url=_774._flagPortletUrl(_772,id);ibm.portal.debug.exit(_773,url);return url;},_newPageURL:function(_775){var _776=this.declaredClass+"._newPageURL";ibm.portal.debug.entry(_776,[_775]);ibm.portal.debug.text(dojox.data.dom.innerXML(_775));var _777=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);var _778=_775;if(!_775){_778=dojox.data.dom.createDocument();}_777.reset(_778);var _779=_777.getSerializationManager();var _77a=_779.serialize(_778);var _77b=_77a["returnObject"];var url=_77b;ibm.portal.debug.exit(_776,url);return url;},open:function(_77c,uri){var _77d=this.declaredClass+".open";ibm.portal.debug.entry(_77d,[_77c,uri]);this.open(_77c,uri,false);ibm.portal.debug.exit(_77d);},open:function(_77e,uri,_77f){var _780=this.declaredClass+".open";ibm.portal.debug.entry(_780,[_77e,uri,_77f]);var xhr=this._getXHR();var me=this;this._location=uri;if(_77f==undefined){_77f=false;}this._async=_77f;xhr.onreadystatechange=function(){me._onreadystatechangehandler();};xhr.open(_77e,this._flag(uri),_77f);xhr.setRequestHeader("X-IBM-XHR","true");ibm.portal.debug.exit(_780);},setRequestHeader:function(_781,_782){var _783=this.declaredClass+".setRequestHeader";ibm.portal.debug.entry(_783,[_781,_782]);this._getXHR().setRequestHeader(_781,_782);ibm.portal.debug.exit(_783);},send:function(data){var _784=this.declaredClass+".send";ibm.portal.debug.entry(_784,[data]);this._getXHR().send(data);if(!this._async){this._onreadystatechangehandler();}ibm.portal.debug.exit(_784);},abort:function(){var _785=this.declaredClass+".abort";ibm.portal.debug.entry(_785);this._getXHR().abort();ibm.portal.debug.exit(_785);},getAllResponseHeaders:function(){return this._getXHR().getAllResponseHeaders();},getResponseHeader:function(_786){return this._getXHR().getResponseHeader(_786);}});dojo.declare("ibm.portal.portlet.UserProfile",null,{constructor:function(_787,_788,data,_789){this.windowID=_788;this.xmlData=data;this.ns={"xsl":"http://www.w3.org/1999/XSL/Transform","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","xsi":"http://www.w3.org/2001/XMLSchema-instance","um":"http://www.ibm.com/xmlns/prod/websphere/um.xsd"};this.isEnablerAvailable=_787;if(this.isEnablerAvailable){var _78a="ibm.portal.portlet.UserProfile";this.logger=new ibm.portal.portlet.Logger(_78a);var _78b="constructor()";this.logger.logEntry(_78b);this.logger.log(_78b,"windowid: ${0}",_788);this.logger.log(_78b,"data: ${0}",data);this.logger.log(_78b,"userModel: ${0}",_789);this.userModel=_789;this.logger.logExit(_78b);}else{this.userModel=null;}},getAttribute:function(name){if(this.isEnablerAvailable){var _78c="getAttribute()";this.logger.logEntry(_78c);this.logger.log(_78c,"name: ${0}",name);var user=this.userModel.findCurrentUser().start();var _78d=user.getAttribute(name);this.logger.logExit(_78c,_78d);return _78d;}else{var expr="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']/um:attributeValue";var _78e=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _78d=null;if(_78e&&_78e.length>0){if(_78e[0].textContent){_78d=_78e[0].textContent;}else{_78d=_78e[0].text;}}return _78d;}},setAttribute:function(name,_78f){if(this.isEnablerAvailable){var _790="setAttribute()";this.logger.logEntry(_790);this.logger.log(_790,"name: ${0}",name);this.logger.log(_790,"value: ${0}",_78f);var user=this.userModel.findCurrentUser().start();var _791=user.setAttribute(name,_78f);this.logger.logExit(_790,_791);return _791;}else{var expr="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']/um:attributeValue";var _792=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _791=null;if(_792&&_792.length>0){if(_792[0].textContent){_791=_792[0].textContent;_792[0].textContent=_78f;}else{_791=_792[0].text;_792[0].text=_78f;}}else{var _793="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']";var _794=ibm.portal.xml.xpath.evaluateXPath(_793,this.xmlData,this.ns);var _795=null;if(_794&&_794.length>0){_795=_794[0];}else{var _796="/atom:entry/atom:content/um:profile[@type='user']";var _797=ibm.portal.xml.xpath.evaluateXPath(_796,this.xmlData,this.ns);if(dojo.isIE){_795=this.xmlData.createNode(1,"um:attribute",this.ns.um);}else{_795=this.xmlData.createElementNS(this.ns.um,"um:attribute");}_795.setAttribute("type","xs:string");_795.setAttribute("multiValued","false");_795.setAttribute("name",name);_797[0].appendChild(_795);}var _798;if(dojo.isIE){_798=this.xmlData.createNode(1,"um:attributeValue",this.ns.um);_798.text=_78f;}else{_798=this.xmlData.createElementNS(this.ns.um,"um:attributeValue");_798.textContent=_78f;}_795.appendChild(_798);}return _791;}},clone:function(){var _799=dojox.data.dom.innerXML(this.xmlData);var _79a=dojox.data.dom.createDocument(_799);return new ibm.portal.portlet.UserProfile(this.isEnablerAvailable,this.windowID,_79a,this.userModel);}});dojo.declare("ibm.portal.portlet.Error",null,{INFO:0,WARN:1,ERROR:2,constructor:function(_79b,_79c,_79d){this.errorCode=_79b;this.message=_79c;this.description=_79d;},getErrorCode:function(){return this.errorCode;},getMessage:function(){return this.message;},getDescription:function(){return this.description;}});dojo.declare("ibm.portal.portlet.Logger",null,{constructor:function(_79e){this.className=_79e;this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(_79e);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;},logEntry:function(name,args){var _79f=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_79f){this.LOGGER.entering(name,args);}},log:function(name,msg,args){var _7a0=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_7a0){this.LOGGER.log(this.LOG_LEVEL,name,msg,args);}},logLevel:function(_7a1,name,msg,args){var _7a2=this.LOGGER.isLoggable(_7a1);if(_7a2){this.LOGGER.log(_7a1,name,msg,args);}},logExit:function(name,_7a3){var _7a4=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_7a4){this.LOGGER.exiting(name,_7a3);}}});var _7a5=new ibm.portal.portlet.PortletWindow();ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED=_7a5.STATUS_UNDEFINED;ibm.portal.portlet.PortletWindow.STATUS_OK=_7a5.STATUS_OK;ibm.portal.portlet.PortletWindow.STATUS_ERROR=_7a5.STATUS_ERROR;_7a5=null;var _7a6=new ibm.portal.portlet.PortletMode();ibm.portal.portlet.PortletMode.VIEW=_7a6.VIEW;ibm.portal.portlet.PortletMode.EDIT=_7a6.EDIT;ibm.portal.portlet.PortletMode.EDIT_DEFAULTS=_7a6.EDIT_DEFAULTS;ibm.portal.portlet.PortletMode.HELP=_7a6.HELP;ibm.portal.portlet.PortletMode.CONFIG=_7a6.CONFIG;_7a6=null;var _7a7=new ibm.portal.portlet.WindowState();ibm.portal.portlet.WindowState.NORMAL=_7a7.NORMAL;ibm.portal.portlet.WindowState.MINIMIZED=_7a7.MINIMIZED;ibm.portal.portlet.WindowState.MAXIMIZED=_7a7.MAXIMIZED;_7a7=null;var _7a8=new ibm.portal.portlet.Error();ibm.portal.portlet.Error.INFO=_7a8.INFO;ibm.portal.portlet.Error.WARN=_7a8.WARN;ibm.portal.portlet.Error.ERROR=_7a8.ERROR;_7a8=null;}dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","ar","ca","cs","da","de","el","en","es","fi","fr","he","hr","hu","it","ja","ko","nl","no","pl","pt","pt-br","ro","ru","sk","sl","sv","th","tr","uk","xx","zh","zh-tw"]);if(dojo.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._loadInit,1000);}})();

