//Shows an IFRAME inside a lightbox which blocks access to the page. var wptheme_IFrameLightbox = function ( /*String*/disabledBackgroundClassname, /*String*/borderBoxClassname, /*String*/closeLinkClassname, /*String*/closeString ) { // summary: Creates a "lightbox" effect where a partially opaque div is set to cover the entire viewable area of the browser and the content // is displayed in an iframe in approximately the middle of the viewable area. // description: Creates a div the size of the viewable area of the browser which is styled using the given "disabledBackgroundClassname". The iframe is // displayed inside another div which is approximately centered and styled according to the given "borderBoxClassname". The content of the iframe is // set using the "setURL" function. The "lightbox" is closed via a text anchor link which is positioned above the top right edge of the border box. The // text displayed is controlled using the "closeString" parameter and the link is styled according to the "closeLinkClassname". // disabledBackgroundClassname: the CSS class name to apply to the background div displayed when the lightbox is showing // borderBoxClassname: the CSS class name to apply to the border box in the center of the page // closeString: the string which will be displayed as the link to close the lightbox this.className = "wptheme_IFrameLightbox"; //Declare this here so that any dependency error (e.g. wptheme_HTMLElementUtils not yet being defined) //is clear from the beginning (throws an error at construction time instead of runtime). Also, allows //for easy substitution of alternate implementations (as long as function names & signatures are the same). this._htmlUtils = wptheme_HTMLElementUtils; this._debugUtils = wptheme_DebugUtils; this._initialized = false; this.showing = false; var uniquePrefix = this._htmlUtils.getUniqueId(); this._backgroundDivId = uniquePrefix + "_lightboxPageBackgroundDiv"; this._borderDivId = uniquePrefix + "_lightboxBorderDiv"; this._closeLinkId = uniquePrefix + "_lightboxCloseLink"; this._iframeId = uniquePrefix + "_lightboxIframe"; // **************************************************************** // * Dynamically created DOM elements. // **************************************************************** function createDiv(idStr, className, parent ) { // summary: Creates a div with the given ID, class, and appends to the given parent node. The display property is set to none by default. var div = document.createElement( "DIV" ); div.id = idStr; div.className = className; div.style.display = "none"; parent.appendChild( div ); return div; } var me = this; function createLink(idStr, className, text, parent) { // summary: Creates a link with the given ID, class, textContent, and appends it to the given parent node. The display property is set to none // by default. The onclick is set to hide the lightbox. var a = document.createElement( "A" ); a.id = idStr; a.className = className; a.href = "javascript:void(0);"; a.onclick = function () { me.hide() }; a.style.display = "none"; a.appendChild( document.createTextNode( text ) ); parent.appendChild( a ); return a; } function createIFrame( idStr, parent ) { // summary: Creates an iframe with the given ID (also used for the name) and appends it to the given parent node. var iframe = document.createElement( "IFRAME" ); iframe.name = idStr; iframe.id = idStr; //iframe.style.display = "none"; parent.appendChild( iframe ); return iframe; } // **************************************************************** // * Initialization. // **************************************************************** this._init = function () { this._initialized = true; //Create the background div. createDiv( this._backgroundDivId, disabledBackgroundClassname, document.body ); //Create the border box div createIFrame( this._iframeId, createDiv( this._borderDivId, borderBoxClassname, document.body )); //Create the close link. createLink( this._closeLinkId, closeLinkClassname, closeString, document.body ); } // **************************************************************** // * Handling the browser scrolling and resizing dynamically. // **************************************************************** //Make sure to call any existing onscroll handler. var oldScrollFunc = window.onscroll; window.onscroll = function (e) { if ( me.showing ) { me.sizeAndPositionBorderBox(); //me.sizeBackgroundDisablingDiv(); } if ( oldScrollFunc ) { if (e) { oldScrollFunc(e); } else { oldScrollFunc(); } } } //Make sure to call any existing onresize handler. var oldResizeFunc = window.onresize; window.onresize = function (e) { if ( me.showing ) { me.sizeAndPositionBorderBox(); me.sizeBackgroundDisablingDiv(); } if ( oldResizeFunc ) { if (e) { oldResizeFunc(e); } else { oldResizeFunc(); } } } // **************************************************************** // * Main functions for use in the theme. // **************************************************************** this.setURL = function ( /*String*/url ) { // summary: Sets the URL displayed by the IFRAME in the lightbox. // url: the url to the resource to display window.frames[this._iframeId].location = url; } this.show = function ( /*String?*/url ) { // summary: Shows the lightbox above the disabled background div. // url: OPTIONAL -- the url to display in the iframe in the center of the screen if ( !this._initialized ) { this._init(); } this.showing = true; this.disableBackground(); this.showBorderBox(); if ( url ) { this.setURL( url ); } } this.hide = function() { // summary: Hides the lightbox and the disabled background div. if ( !this._initialized ) { this._init(); } this.showing = false; this.enableBackground(); this.hideBorderBox(); } // **************************************************************** // * Content border box // **************************************************************** this.showBorderBox = function () { // summary: Shows and positions the border box which contains the IFRAME. var div = document.getElementById( this._borderDivId ); div.style.display = "block"; var link = document.getElementById( this._closeLinkId ); link.style.display = "block"; this.sizeAndPositionBorderBox(); } this.sizeAndPositionBorderBox = function () { // summary: Sizes and positions the border box which contains the IFRAME. var div = document.getElementById( this._borderDivId ); this._htmlUtils.sizeRelativeToViewableArea( div, 0.60, 0.75 ); this._htmlUtils.positionRelativeToViewableArea( div, 0.20, 0.12 ); var link = document.getElementById( this._closeLinkId ); this._htmlUtils.positionOutsideElementTopRight( link, div ); } this.hideBorderBox = function () { // summary: hides the border box and IFRAME. document.getElementById( this._borderDivId ).style.display = "none"; document.getElementById( this._closeLinkId ).style.display = "none"; } // **************************************************************** // * Transparent background controls // **************************************************************** this.disableBackground = function () { // summary: Disables the background by laying a transparent div over top of the document body. var div = document.getElementById( this._backgroundDivId ); div.style.display = "block"; this.sizeBackgroundDisablingDiv(); this._htmlUtils.hideElementsByTagName( "select" ); } this.sizeBackgroundDisablingDiv = function () { // summary: Sizes the transparent div appropriately. var div = document.getElementById( this._backgroundDivId ); //dynamically size the div to the inner browser window this._htmlUtils.sizeToEntireArea( div ); } this.enableBackground=function () { // summary: Enables the background by hiding the overlaid div. this._htmlUtils.showElementsByTagName( "select" ); document.getElementById( this._backgroundDivId ).style.display = "none"; } }; (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); /* 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 _8=_1[i];_2+="var "+_8[0]+" = {}; "+_8[1]+" = "+_8[0]+";"+_8[1]+"._scopeName = '"+_8[1]+"';";_3+=(i==0?"":",")+_8[0];_4+=(i==0?"":",")+_8[1];_5[_8[0]]=_8[1];_6[_8[1]]=_8[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{if(this["navigator"]){if(/3[\.0-9]+.*Safari/i.test(navigator.appVersion)&&this["console"]){this.console={_c:this.console,log:function(s){this._c.log(s);},info:function(s){this._c.info(s);},error:function(s){this._c.error(s);},warn:function(s){this._c.warn(s);}};}}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 tcn=tn+"";console[tcn]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(tcn+":");console["log"](a.join(" "));}:function(){};})();}}}if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){this.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 opt in djConfig){d.config[opt]=djConfig[opt];}}dojo.locale=d.config.locale;var rev="$Rev: 18832 $".match(/\d+/);dojo.version={major:1,minor:3,patch:2,flag:"_IBM",revision:rev?+rev[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 _15={};dojo._mixin=function(obj,_17){for(var x in _17){if(_15[x]===undefined||_15[x]!=_17[x]){obj[x]=_17[x];}}if(d.isIE&&_17){var p=_17.toString;if(typeof p=="function"&&p!=obj.toString&&p!=_15.toString&&p!="\nfunction toString() {\n [native code]\n}\n"){obj.toString=_17.toString;}}return obj;};dojo.mixin=function(obj,_1b){if(!obj){obj={};}for(var i=1,l=arguments.length;i0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){if(dojo.isAIR){setTimeout(function(){dojo.loaded();},0);}else{setTimeout(dojo._scopeName+".loaded();",0);}}else{d.loaded();}};dojo._getModuleSymbols=function(_4b){var _4c=_4b.split(".");for(var i=_4c.length;i>0;i--){var _4e=_4c.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(_4e)){_4c[0]="../"+_4c[0];}else{var _4f=this._getModulePrefix(_4e);if(_4f!=_4e){_4c.splice(0,i,_4f);break;}}}return _4c;};dojo._global_omit_module_check=false;dojo.loadInit=function(_50){_50();};dojo._loadModule=dojo.require=function(_51,_52){_52=this._global_omit_module_check||_52;var _53=this._loadedModules[_51];if(_53){return _53;}var _54=this._getModuleSymbols(_51).join("/")+".js";var _55=(!_52)?_51:null;var ok=this._loadPath(_54,_55);if(!ok&&!_52){throw new Error("Could not load '"+_51+"'; last tried '"+_54+"'");}if(!_52&&!this._isXDomain){_53=this._loadedModules[_51];if(!_53){throw new Error("symbol '"+_51+"' is not defined after loading '"+_54+"'");}}return _53;};dojo.provide=function(_57){_57=_57+"";return (d._loadedModules[_57]=d.getObject(_57,true));};dojo.platformRequire=function(_58){var _59=_58.common||[];var _5a=_59.concat(_58[d._name]||_58["default"]||[]);for(var x=0;x<_5a.length;x++){var _5c=_5a[x];if(_5c.constructor==Array){d._loadModule.apply(d,_5c);}else{d._loadModule(_5c);}}};dojo.requireIf=function(_5d,_5e){if(_5d===true){var _5f=[];for(var i=1;i0&&!(j==1&&_70[0]=="")&&_70[j]==".."&&_70[j-1]!=".."){if(j==(_70.length-1)){_70.splice(j,1);_70[j-1]="";}else{_70.splice(j-1,2);j-=2;}}}}_6d.path=_70.join("/");}}}}uri=[];if(_6d.scheme){uri.push(_6d.scheme,":");}if(_6d.authority){uri.push("//",_6d.authority);}uri.push(_6d.path);if(_6d.query){uri.push("?",_6d.query);}if(_6d.fragment){uri.push("#",_6d.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(_73,url){var loc=d._getModuleSymbols(_73).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _76=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_76==-1||_76>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 _78=document.getElementsByTagName("script");var _79=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_78.length;i++){var src=_78[i].getAttribute("src");if(!src){continue;}var m=src.match(_79);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_78[i].getAttribute("djConfig");if(cfg){var _7e=eval("({ "+cfg+" })");for(var x in _7e){dojo.config[x]=_7e[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;var _84=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_84&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_84+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]||dua.split("Shiretoko/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;if(d.isIE>=8&&document.documentMode!=5){d.isIE=document.documentMode;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;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 _86,_87;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_86=new XMLHttpRequest();}catch(e){}}if(!_86){for(var i=0;i<3;++i){var _89=d._XMLHTTP_PROGIDS[i];try{_86=new ActiveXObject(_89);}catch(e){_87=e;}if(_86){d._XMLHTTP_PROGIDS=[_89];break;}}}if(!_86){throw new Error("XMLHTTP not available: "+_87);}return _86;};d._isDocumentOk=function(_8a){var _8b=_8a.status||0;return (_8b>=200&&_8b<300)||_8b==304||_8b==1223||(!_8b&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _8c=window.location+"";var _8d=document.getElementsByTagName("base");var _8e=(_8d&&_8d.length>0);d._getText=function(uri,_90){var _91=this._xhrObj();if(!_8e&&dojo._Url){uri=(new dojo._Url(_8c,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_91.open("GET",uri,false);try{_91.send(null);if(!d._isDocumentOk(_91)){var err=Error("Unable to load "+uri+" status:"+_91.status);err.status=_91.status;err.responseText=_91.responseText;throw err;}}catch(e){if(_90){return null;}throw e;}return _91.responseText;};var _w=window;var _94=function(_95,fp){var _97=_w[_95]||function(){};_w[_95]=function(){fp.apply(_w,arguments);_97.apply(_w,arguments);};};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};var _99=0;d.addOnWindowUnload=function(obj,_9b){d._onto(d._windowUnloaders,obj,_9b);if(!_99){_99=1;_94("onunload",d.windowUnloaded);}};var _9c=0;d.addOnUnload=function(obj,_9e){d._onto(d._unloaders,obj,_9e);if(!_9c){_9c=1;_94("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _a0=e&&e.type?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_a0!="domcontentloaded"&&_a0!="load")){return;}arguments.callee.initialized=true;if("_khtmlTimer" in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isWebKit>525||dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else{if((dojo.isWebKit<525)||dojo.isKhtml){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}}if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write(""+"");}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _a1=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_a1.length;}for(;i2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_ba){_ba=_b9;_b9=null;}if(dojo.isString(_ba)){_b9=_b9||dojo.global;if(!_b9[_ba]){throw (["dojo.hitch: scope[\"",_ba,"\"] is null (scope=\"",_b9,"\")"].join(""));}return function(){return _b9[_ba].apply(_b9,arguments||[]);};}return !_b9?_ba:function(){return _ba.apply(_b9,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_bc){TMP.prototype=obj;var tmp=new TMP();if(_bc){dojo._mixin(tmp,_bc);}return tmp;};})();(function(){var _be=function(obj,_c0,_c1){return (_c1||[]).concat(Array.prototype.slice.call(obj,_c0||0));};var _c2=function(obj,_c4,_c5){var arr=_c5||[];for(var x=_c4||0;x=0){this._fire();}return this;},_fire:function(){var _13d=this.chain;var _13e=this.fired;var res=this.results[_13e];var self=this;var cb=null;while((_13d.length>0)&&(this.paused==0)){var f=_13d.shift()[_13e];if(!f){continue;}var func=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}_13e=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire();}};this.paused++;}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(err){_13e=1;res=err;}}}this.fired=_13e;this.results[_13e]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_149,_14a){if(it===undefined){return "undefined";}var _14b=typeof it;if(_14b=="number"||_14b=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _14c=arguments.callee;var _14d;_14a=_14a||"";var _14e=_149?_14a+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_14d=tf.call(it);if(it!==_14d){return _14c(_14d,_149,_14e);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_149?" ":"";var _151=_149?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_14c(obj,_149,_14e);if(typeof val!="string"){val="undefined";}return _151+_14e+val;});return "["+res.join(","+sep)+_151+_14a+"]";}if(_14b=="function"){return null;}var _155=[],key;for(key in it){var _157,val;if(typeof key=="number"){_157="\""+key+"\"";}else{if(typeof key=="string"){_157=dojo._escapeString(key);}else{continue;}}val=_14c(it[key],_149,_14e);if(typeof val!="string"){continue;}_155.push(_151+_14e+_157+":"+sep+val);}return "{"+_155.join(","+sep)+_151+_14a+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _159=function(arr,obj,cb){return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];};dojo.mixin(dojo,{indexOf:function(_15d,_15e,_15f,_160){var step=1,end=_15d.length||0,i=0;if(_160){i=end-1;step=end=-1;}if(_15f!=undefined){i=_15f;}if((_160&&i>end)||i>=bits;t[x]=bits==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(_1aa,_1ab){dojo.global=_1aa;dojo.doc=_1ab;};dojo.withGlobal=function(_1ac,_1ad,_1ae,_1af){var _1b0=dojo.global;try{dojo.global=_1ac;return dojo.withDoc.call(null,_1ac.document,_1ad,_1ae,_1af);}finally{dojo.global=_1b0;}};dojo.withDoc=function(_1b1,_1b2,_1b3,_1b4){var _1b5=dojo.doc,_1b6=dojo._bodyLtr;try{dojo.doc=_1b1;delete dojo._bodyLtr;if(_1b3&&dojo.isString(_1b2)){_1b2=_1b3[_1b2];}return _1b2.apply(_1b3,_1b4||[]);}finally{dojo.doc=_1b5;if(_1b6!==undefined){dojo._bodyLtr=_1b6;}}};}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 _1bb=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(dojo.isFF<=2){try{e.relatedTarget.tagName;}catch(e2){return;}}if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_1bf,_1c0){if(node){_1bf=del._normalizeEventName(_1bf);if(!dojo.isIE&&(_1bf=="mouseenter"||_1bf=="mouseleave")){_1bf=(_1bf=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_1bf,_1c0,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,_1c6){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,_1c9){return del._fixEvent(evt,_1c9);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _1cb=dojo._listener;dojo._connect=function(obj,_1cd,_1ce,_1cf,_1d0){var _1d1=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_1d1?(_1d0?2:1):0,l=[dojo._listener,del,_1cb][lid];var h=l.add(obj,_1cd,dojo.hitch(_1ce,_1cf));return [obj,_1cd,h,lid];};dojo._disconnect=function(obj,_1d5,_1d6,_1d7){([dojo._listener,del,_1cb][_1d7]).remove(obj,_1d5,_1d6);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145};if(dojo.isIE){var _1d8=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _1dc=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_1cb=iel=dojo._ie_listener={handlers:[],add:function(_1dd,_1de,_1df){_1dd=_1dd||dojo.global;var f=_1dd[_1de];if(!f||!f[_1dc]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_1dc]=[];f=_1dd[_1de]=d;}return f[_1dc].push(ieh.push(_1df)-1);},remove:function(_1e3,_1e4,_1e5){var f=(_1e3||dojo.global)[_1e4],l=f&&f[_1dc];if(f&&l&&_1e5--){delete ieh[l[_1e5]];delete l[_1e5];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_1e8,fp){if(!node){return;}_1e8=del._normalizeEventName(_1e8);if(_1e8=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_1dc]||!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,_1e8,del._fixCallback(fp));},remove:function(node,_1ed,_1ee){_1ed=del._normalizeEventName(_1ed);iel.remove(node,_1ed,_1ee);if(_1ed=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_1f0){return _1f0.slice(0,2)!="on"?"on"+_1f0:_1f0;},_nop:function(){},_fixEvent:function(evt,_1f2){if(!evt){var w=_1f2&&(_1f2.ownerDocument||_1f2.document||_1f2).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_1f2||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _1f6=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _1f7=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1f6.scrollLeft||0)-_1f7.x;evt.pageY=evt.clientY+(_1f6.scrollTop||0)-_1f7.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[_1dc]){return;}var k=evt.keyCode;var _1fd=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_1fd||evt.ctrlKey){var c=_1fd?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;_1d8(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_1d8(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,_202){var faux=dojo.mixin({},evt,_202);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_205){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,_208,fp){if(!node){return;}var _20a=del._add(node,_208,fp);if(del._normalizeEventName(_208)=="keypress"){_20a._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _20d=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_20d||evt.ctrlKey){var c=_20d?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 _20a;},remove:function(node,_211,_212){if(node){if(_212._stealthKeyDownHandle){del._remove(node,"keydown",_212._stealthKeyDownHandle);}del._remove(node,_211,_212);}},_fixEvent:function(evt,_214){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,_217){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(_217,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_217,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(dojo.isString(id)){var _d=doc||dojo.doc;var te=_d.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_d.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{return id;}};}else{dojo.byId=function(id,doc){return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var _22d=null;d.addOnWindowUnload(function(){_22d=null;});dojo._destroyElement=dojo.destroy=function(node){node=d.byId(node);try{if(!_22d||_22d.ownerDocument!=node.ownerDocument){_22d=node.ownerDocument.createElement("div");}_22d.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_22d.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_230){try{node=d.byId(node);_230=d.byId(_230);while(node){if(node===_230){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_232){node=d.byId(node);if(d.isMozilla){node.style.MozUserSelect=_232?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_232?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_232?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _234=function(node,ref){var _237=ref.parentNode;if(_237){_237.insertBefore(node,ref);}};var _238=function(node,ref){var _23b=ref.parentNode;if(_23b){if(_23b.lastChild==ref){_23b.appendChild(node);}else{_23b.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_23d,_23e){_23d=d.byId(_23d);if(d.isString(node)){node=node.charAt(0)=="<"?d._toDom(node,_23d.ownerDocument):d.byId(node);}if(typeof _23e=="number"){var cn=_23d.childNodes;if(!cn.length||cn.length<=_23e){_23d.appendChild(node);}else{_234(node,cn[_23e<0?0:_23e]);}}else{switch(_23e){case "before":_234(node,_23d);break;case "after":_238(node,_23d);break;case "replace":_23d.parentNode.replaceChild(node,_23d);break;case "only":d.empty(_23d);_23d.appendChild(node);break;case "first":if(_23d.firstChild){_234(node,_23d.firstChild);break;}default:_23d.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){var _dcm=document.compatMode;d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"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(_247,_248){return parseFloat(_248)||0;};}else{d._toPixelValue=function(_249,_24a){if(!_24a){return 0;}if(_24a=="medium"){return 4;}if(_24a.slice&&_24a.slice(-2)=="px"){return parseFloat(_24a);}with(_249){var _24b=style.left;var _24c=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_24a;_24a=style.pixelLeft;}catch(e){_24a=0;}style.left=_24b;runtimeStyle.left=_24c;}return _24a;};}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,_255){var ov=_255*100;node.style.zoom=1;af(node,1).Enabled=!(_255==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,_255);});}return _255;}:function(node,_259){return node.style.opacity=_259;};var _25a={left:true,top:true};var _25b=/margin|padding|width|height|max|min|offset/;var _25c=function(node,type,_25f){type=type.toLowerCase();if(d.isIE){if(_25f=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_25f){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _25a)){_25a[type]=_25b.test(type);}return _25a[type]?px(node,_25f):_25f;};var _260=d.isIE?"styleFloat":"cssFloat",_261={"cssFloat":_260,"styleFloat":_260,"float":_260};dojo.style=function(node,_263,_264){var n=d.byId(node),args=arguments.length,op=(_263=="opacity");_263=_261[_263]||_263;if(args==3){return op?d._setOpacity(n,_264):n.style[_263]=_264;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&!d.isString(_263)){for(var x in _263){d.style(node,x,_263[x]);}return s;}return (args==1)?s:_25c(n,_263,s[_263]||n.style[_263]);};dojo._getPadExtents=function(n,_26b){var s=_26b||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,_26f){var ne="none",s=_26f||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,_274){var s=_274||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,_279){var s=_279||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,_27f){var s=_27f||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,_28a){var s=_28a||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,_291){var s=_291||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,_2a0,_2a1,_2a2){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_2a2);if(_2a0>=0){_2a0+=pb.w;}if(_2a1>=0){_2a1+=pb.h;}}d._setBox(node,NaN,NaN,_2a0,_2a1);};dojo._setMarginBox=function(node,_2a5,_2a6,_2a7,_2a8,_2a9){var s=_2a9||gcs(node),bb=d._usesBorderBox(node),pb=bb?_2ad:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_2a7>=0&&!ns.width){ns.width="4px";}if(_2a8>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_2a7>=0){_2a7=Math.max(_2a7-pb.w-mb.w,0);}if(_2a8>=0){_2a8=Math.max(_2a8-pb.h-mb.h,0);}d._setBox(node,_2a5,_2a6,_2a7,_2a8);};var _2ad={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=d.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=d.byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _2b8=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_2bc=0,_b=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_2bc+=val-0;if(node==_b){break;}}node=node.parentNode;}return _2bc;};dojo._docScroll=function(){var _b=d.body(),_w=d.global,de=d.doc.documentElement;return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||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<7){return {x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};}else{if(d.isIE<8){return {x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top};}else{return {x:0,y:0};}}};dojo._fixIeBiDiScrollLeft=function(_2c2){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return _2c2+de.clientWidth-de.scrollWidth;}return _2c2;};dojo._abs=function(node,_2c6){var db=d.body(),dh=d.body().parentNode,ret;if(node["getBoundingClientRect"]){var _2ca=node.getBoundingClientRect();ret={x:_2ca.left,y:_2ca.top};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);}if(d.isIE){var _2cc=d._getIeDocumentElementOffset();ret.x-=_2cc.x+(d.isQuirks?db.clientLeft:0);ret.y-=_2cc.y+(d.isQuirks?db.clientTop:0);}}else{ret={x:0,y:0};if(node["offsetParent"]){ret.x-=_2b8(node,"scrollLeft");ret.y-=_2b8(node,"scrollTop");var _2cd=node;do{var n=_2cd.offsetLeft,t=_2cd.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(_2cd);if(_2cd!=node){if(d.isFF){ret.x+=2*px(_2cd,cs.borderLeftWidth);ret.y+=2*px(_2cd,cs.borderTopWidth);}else{ret.x+=px(_2cd,cs.borderLeftWidth);ret.y+=px(_2cd,cs.borderTopWidth);}}if(d.isFF&&cs.position=="static"){var _2d0=_2cd.parentNode;while(_2d0!=_2cd.offsetParent){var pcs=gcs(_2d0);if(pcs.position=="static"){ret.x+=px(_2cd,pcs.borderLeftWidth);ret.y+=px(_2cd,pcs.borderTopWidth);}_2d0=_2d0.parentNode;}}_2cd=_2cd.offsetParent;}while((_2cd!=dh)&&_2cd);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}if(_2c6){var _2d2=d._docScroll();ret.x+=_2d2.x;ret.y+=_2d2.y;}return ret;};dojo.coords=function(node,_2d4){var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,_2d4);mb.x=abs.x;mb.y=abs.y;return mb;};var _2d8=d.isIE<8;var _2d9=function(name){switch(name.toLowerCase()){case "tabindex":return _2d8?"tabIndex":"tabindex";case "readonly":return "readOnly";case "class":return "className";case "for":case "htmlfor":return _2d8?"htmlFor":"for";default:return name;}};var _2db={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType",classname:"className",innerhtml:"innerHTML"};dojo.hasAttr=function(node,name){node=d.byId(node);var _2de=_2d9(name);_2de=_2de=="htmlFor"?"for":_2de;var attr=node.getAttributeNode&&node.getAttributeNode(_2de);return attr?attr.specified:false;};var _2e0={},_ctr=0,_2e2=dojo._scopeName+"attrid",_2e3={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_2e6){node=d.byId(node);var args=arguments.length;if(args==2&&!d.isString(name)){for(var x in name){d.attr(node,x,name[x]);}return;}name=_2d9(name);if(args==3){if(d.isFunction(_2e6)){var _2e9=d.attr(node,_2e2);if(!_2e9){_2e9=_ctr++;d.attr(node,_2e2,_2e9);}if(!_2e0[_2e9]){_2e0[_2e9]={};}var h=_2e0[_2e9][name];if(h){d.disconnect(h);}else{try{delete node[name];}catch(e){}}_2e0[_2e9][name]=d.connect(node,name,_2e6);}else{if(typeof _2e6=="boolean"){node[name]=_2e6;}else{if(name==="style"&&!d.isString(_2e6)){d.style(node,_2e6);}else{if(name=="className"){node.className=_2e6;}else{if(name==="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _2e3){d.empty(node);node.appendChild(d._toDom(_2e6,node.ownerDocument));}else{node[name]=_2e6;}}else{node.setAttribute(name,_2e6);}}}}}}else{var prop=_2db[name.toLowerCase()];if(prop){return node[prop];}var _2ec=node[name];return (typeof _2ec=="boolean"||typeof _2ec=="function")?_2ec:(d.hasAttr(node,name)?node.getAttribute(name):null);}};dojo.removeAttr=function(node,name){d.byId(node).removeAttribute(_2d9(name));};dojo.create=function(tag,_2f0,_2f1,pos){var doc=d.doc;if(_2f1){_2f1=d.byId(_2f1);doc=_2f1.ownerDocument;}if(d.isString(tag)){tag=doc.createElement(tag);}if(_2f0){d.attr(tag,_2f0);}if(_2f1){d.place(tag,_2f1,pos);}return tag;};d.empty=d.isIE?function(node){node=d.byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){d.byId(node).innerHTML="";};var _2f7={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"]},_2f8=/<\s*([\w\:]+)/,_2f9={},_2fa=0,_2fb="__"+d._scopeName+"ToDomId";for(var _2fc in _2f7){var tw=_2f7[_2fc];tw.pre=_2fc=="option"?"");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=name;}tn.value=_6c8;fn.appendChild(tn);_6c2._contentToClean.push(name);};for(var x in _6c5){var val=_6c5[x];if(dojo.isArray(val)&&val.length>1){var i;for(i=0;i-1?"&":"?")+_6c2.query;this.setSrc(this._frame,_6d0,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _6d2=dfd.ioArgs;var args=_6d2.args;var _6d4=dojo.byId(args.form);if(_6d4){var _6d5=_6d2._contentToClean;for(var i=0;i<_6d5.length;i++){var key=_6d5[i];for(var j=0;j<_6d4.childNodes.length;j++){var _6d9=_6d4.childNodes[j];if(_6d9.name==key){dojo.destroy(_6d9);break;}}}if(_6d2["_originalAction"]){_6d4.setAttribute("action",_6d2._originalAction);}if(_6d2["_originalTarget"]){_6d4.setAttribute("target",_6d2._originalTarget);_6d4.target=_6d2._originalTarget;}}_6d2._finished=true;}};}dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","ar","ca","cs","da","de","el","en","es","fi","fr","he","hr","hu","it","ja","kk","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);}})(); /* 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. */ dojo.provide("dijit.dijit");if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _1=dojo.doc;if(_1.selection&&!dojo.isOpera){var s=_1.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _3=dojo.global;var _4=_3.getSelection();if(dojo.isString(_4)){return !_4;}else{return !_4||_4.isCollapsed||!_4.toString();}}},getBookmark:function(){var _5,_6=dojo.doc.selection;if(_6&&!dojo.isOpera){var _7=_6.createRange();if(_6.type.toUpperCase()=="CONTROL"){if(_7.length){_5=[];var i=0,_9=_7.length;while(i<_9){_5.push(_7.item(i++));}}else{_5=null;}}else{_5=_7.getBookmark();}}else{if(window.getSelection){_6=dojo.global.getSelection();if(_6){_7=_6.getRangeAt(0);_5=_7.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _5;},moveToBookmark:function(_a){var _b=dojo.doc;if(_b.selection&&!dojo.isOpera){var _c;if(dojo.isArray(_a)){_c=_b.body.createControlRange();dojo.forEach(_a,function(n){_c.addElement(n);});}else{_c=_b.selection.createRange();_c.moveToBookmark(_a);}_c.select();}else{var _e=dojo.global.getSelection&&dojo.global.getSelection();if(_e&&_e.removeAllRanges){_e.removeAllRanges();_e.addRange(_a);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_f,_10){return {node:_f&&dojo.isDescendant(dijit._curFocus,_f.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_10||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_10||dojo.global,dijit.getBookmark):null,openedForWindow:_10};},focus:function(_11){if(!_11){return;}var _12="node" in _11?_11.node:_11,_13=_11.bookmark,_14=_11.openedForWindow;if(_12){var _15=(_12.tagName.toLowerCase()=="iframe")?_12.contentWindow:_12;if(_15&&_15.focus){try{_15.focus();}catch(e){}}dijit._onFocusNode(_12);}if(_13&&dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)){if(_14){_14.focus();}try{dojo.withGlobal(_14||dojo.global,dijit.moveToBookmark,null,[_13]);}catch(e){}}},_activeStack:[],registerIframe:function(_16){dijit.registerWin(_16.contentWindow,_16);},registerWin:function(_17,_18){dojo.connect(_17.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_18||evt.target||evt.srcElement);});var doc=_17.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_18||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_18||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_18||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_18||evt.target);},true);}}doc=null;},_onBlurNode:function(_1f){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_20){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _21=[];try{while(_20){if(_20.dijitPopupParent){_20=dijit.byId(_20.dijitPopupParent).domNode;}else{if(_20.tagName&&_20.tagName.toLowerCase()=="body"){if(_20===dojo.body()){break;}_20=dijit.getDocumentWindow(_20.ownerDocument).frameElement;}else{var id=_20.getAttribute&&_20.getAttribute("widgetId");if(id){_21.unshift(id);}_20=_20.parentNode;}}}}catch(e){}dijit._setStack(_21);},_onFocusNode:function(_23){if(!_23){return;}if(_23.nodeType==9){return;}dijit._onTouchNode(_23);if(_23==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_23;dojo.publish("focusNode",[_23]);},_setStack:function(_24){var _25=dijit._activeStack;dijit._activeStack=_24;for(var _26=0;_26=_26;i--){var _28=dijit.byId(_25[i]);if(_28){_28._focused=false;_28._hasBeenBlurred=true;if(_28._onBlur){_28._onBlur();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetBlur",[_28]);}}for(i=_26;i<_24.length;i++){_28=dijit.byId(_24[i]);if(_28){_28._focused=true;if(_28._onFocus){_28._onFocus();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetFocus",[_28]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_29){if(this._hash[_29.id]){throw new Error("Tried to register widget with id=="+_29.id+" but that id is already registered");}this._hash[_29.id]=_29;},remove:function(id){delete this._hash[id];},forEach:function(_2b){for(var id in this._hash){_2b(this._hash[id]);}},filter:function(_2d){var res=new dijit.WidgetSet();this.forEach(function(_2f){if(_2d(_2f)){res.add(_2f);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_32){return _32.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_33){var id;do{id=_33+"_"+(_33 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_33]:dijit._widgetTypeCtr[_33]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_35){var _36=[];function getChildrenHelper(_37){var _38=dojo.isIE?_37.children:_37.childNodes,i=0,_3a;while(_3a=_38[i++]){if(_3a.nodeType!=1){continue;}var _3b=_3a.getAttribute("widgetId");if(_3b){var _3c=dijit.byId(_3b);_36.push(_3c);}else{getChildrenHelper(_3a);}}};getChildrenHelper(_35);return _36;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_3d){if(_3d.destroyRecursive){_3d.destroyRecursive();}else{if(_3d.destroy){_3d.destroy();}}});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_3f){return dijit.registry.byId(_3f.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_40){while(_40){if(_40.getAttribute&&_40.getAttribute("widgetId")){return dijit.registry.byId(_40.getAttribute("widgetId"));}_40=_40.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_41){var _42=dojo.style(_41);return (_42.visibility!="hidden")&&(_42.visibility!="collapsed")&&(_42.display!="none")&&(dojo.attr(_41,"type")!="hidden");};dijit.isTabNavigable=function(_43){if(dojo.hasAttr(_43,"disabled")){return false;}var _44=dojo.hasAttr(_43,"tabindex");var _45=dojo.attr(_43,"tabindex");if(_44&&_45>=0){return true;}var _46=_43.nodeName.toLowerCase();if(((_46=="a"&&dojo.hasAttr(_43,"href"))||dijit._tabElements[_46])&&(!_44||_45>=0)){return true;}return false;};dijit._getTabNavigable=function(_47){var _48,_49,_4a,_4b,_4c,_4d;var _4e=function(_4f){dojo.query("> *",_4f).forEach(function(_50){var _51=dijit._isElementShown(_50);if(_51&&dijit.isTabNavigable(_50)){var _52=dojo.attr(_50,"tabindex");if(!dojo.hasAttr(_50,"tabindex")||_52==0){if(!_48){_48=_50;}_49=_50;}else{if(_52>0){if(!_4a||_52<_4b){_4b=_52;_4a=_50;}if(!_4c||_52>=_4d){_4d=_52;_4c=_50;}}}}if(_51&&_50.nodeName.toUpperCase()!="SELECT"){_4e(_50);}});};if(dijit._isElementShown(_47)){_4e(_47);}return {first:_48,last:_49,lowest:_4a,highest:_4c};};dijit.getFirstInTabbingOrder=function(_53){var _54=dijit._getTabNavigable(dojo.byId(_53));return _54.lowest?_54.lowest:_54.first;};dijit.getLastInTabbingOrder=function(_55){var _56=dijit._getTabNavigable(dojo.byId(_55));return _56.last?_56.last:_56.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_57){this.pairs=[];this.returnWrappers=_57||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_58,_59,_5a,_5b,_5c){this.pairs[((_5c)?"unshift":"push")]([_58,_59,_5a,_5b]);},match:function(){for(var i=0;i0&&_9d[pi].parent===_9d[pi-1].widget;pi--){}return _9d[pi];};_ab.push(dojo.connect(_a7,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a2.onCancel){dojo.stopEvent(evt);_a2.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _af=_ac();if(_af&&_af.onCancel){_af.onCancel();}}}}));if(_a3.onCancel){_ab.push(dojo.connect(_a3,"onCancel",null,_a2.onCancel));}_ab.push(dojo.connect(_a3,_a3.onExecute?"onExecute":"onChange",null,function(){var _b0=_ac();if(_b0&&_b0.onExecute){_b0.onExecute();}}));_9d.push({wrapper:_a7,iframe:_a9,widget:_a3,parent:_a2.parent,onExecute:_a2.onExecute,onCancel:_a2.onCancel,onClose:_a2.onClose,handlers:_ab});if(_a3.onOpen){_a3.onOpen(_aa);}return _aa;};this.close=function(_b1){while(dojo.some(_9d,function(_b2){return _b2.widget==_b1;})){var top=_9d.pop(),_b4=top.wrapper,_b5=top.iframe,_b6=top.widget,_b7=top.onClose;if(_b6.onClose){_b6.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_b6||!_b6.domNode){return;}this.prepare(_b6.domNode);_b5.destroy();dojo.destroy(_b4);if(_b7){_b7();}}};}();dijit._frames=new function(){var _b8=[];this.pop=function(){var _b9;if(_b8.length){_b9=_b8.pop();_b9.style.display="";}else{if(dojo.isIE){var _ba=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _bb="");com.ibm.portal.aggregation.forms.PORTLET_FORM_HANDLER._callbackfns[_488]={fn:_485,args:_486};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: "+_488+"; url is: "+this._feedURI);_487=document.createElement("IFRAME");_487.setAttribute("name",_488);_487.setAttribute("id",_488);var me=this;_487.onload=function(){var xml=window.frames[_488].document;_485("load",xml,null,_486);com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});};this._form.getDOMElement().setAttribute("action",this._feedURI);}_487.style.visibility="hidden";_487.style.height="1px";_487.style.width="1px";document.body.appendChild(_487);if(window.frames[_488].name!=_488){window.frames[_488].name=_488;}ibm.portal.debug.text("Setting the iframe target attribute to: "+_488);this._form.getDOMElement().setAttribute("target",_488);this._form.submit();ibm.portal.debug.exit("PortalRestServiceRequest._doIframeRequest");},isValidRedirect:function(_48c,_48d){ibm.portal.debug.text("URLS request: "+_48c+" redirect: "+_48d);var _48e=_48c.indexOf("http");var _48f=_48d.indexOf("http");var _490=false;if(_48f==0){var _491=_48c.indexOf("//");var _492=_48d.indexOf("//");if((_491>0)&&(_492>0)){var _493=_48c.indexOf(":",_491);var _494=_48d.indexOf(":",_492);if(_493<0){_493=_48c.indexOf("/",_491+2);}if(_494<0){_494=_48d.indexOf("/",_492+2);}var _495=_48c.substring(_491+2,_493);ibm.portal.debug.text("request Host is: "+_495);var _496=_48d.substring(_492+2,_494);ibm.portal.debug.text("redirect Host is: "+_496);if(_495.toLowerCase()==_496.toLowerCase()){_490=true;}}}else{_490=true;ibm.portal.debug.text("PortalRestServiceRequest.isValid returning true - relative url");}ibm.portal.debug.text("PortalRestServiceRequest._isValidRedirect returning:"+_490);return _490;},_doXmlHttpRequest:function(_497,body,_499,_49a){ibm.portal.debug.entry("PortalRestServiceRequest._doXmlHttpRequest",[_497,body,_499,_49a]);ibm.portal.debug.text("Attempting to retrieve: "+this._feedURI+" using method: "+_497+"; synchronously? "+this._sync);var me=this;var args={url:this._feedURI,content:{},headers:{"X-IBM-XHR":"true"},handle:function(_49d,_49e){ibm.portal.debug.entry("PortalRestServiceRequest.handle",[_49d,_49e]);if(_49d instanceof Error&&_49d.dojoType==="cancel"){_499("cancel",_49d,null,_49a);return;}var xhr=_49e.xhr;ibm.portal.debug.text("XHR object: "+xhr);var _4a0=com.ibm.portal.services.PortalRestServiceConfig;var _4a1=xhr.getResponseHeader("X-Request-Digest");if(_4a1){_4a0.digest=_4a1;}if(xhr.status==200){var data=_49d;var loc=xhr.getResponseHeader("IBM-Web2-Location");if((loc)&&me.isValidRedirect(top.location.href,loc)){if(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>=0&&me._feedURI.indexOf(ibmPortalConfig["portalPublicURI"])>=0){top.location.href=loc;return;}}var _4a4=xhr.getResponseHeader("Content-Type");ibm.portal.debug.text("content-type is: "+_4a4);if(/^text\/html/.exec(_4a4)&&loc&&(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>-1||loc.indexOf(ibmPortalConfig["portalPublicURI"])>-1)&&me.isValidRedirect(top.location.href,loc)){ibm.portal.debug.text("content-type is text .. follow IBM-Web2-Location");top.location.href=loc;return;}var auth=com.ibm.ajax.auth;var _4a6=false;if(me._customResponseValidator){_4a6=me._customResponseValidator(_49d,_49e);}if(!_4a6){_4a6=auth.isAuthenticationRequired(_49d,_49e);}if(_4a6){auth.authenticationHandler(_49d,_49e,me._onauthenticated);return;}ibm.portal.debug.text("Read feed: "+me._feedURI);if(dojo.isIE||window.ActiveXObject!==undefined){var doc=com.ibm.portal.xslt.loadXmlString(data);_499("load",doc,xhr,_49a);}else{_499("load",data,xhr,_49a);}}else{if(dojo.isFF&&_49e.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{_499("error",_49d,xhr,_49a);}}}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());_497=this._form.method;}_497=_497.toUpperCase();if(_497!="GET"&&_497!="POST"){if(ibmPortalConfig&&ibmPortalConfig.xMethodOverride){args.headers["X-Method-Override"]=_497.toUpperCase();_497="Post";}}if(_497=="PUT"&&body){args.putData=body;}else{if(_497=="POST"&&body){args.postData=body;}}if(dojo.isIE||window.ActiveXObject!==undefined){args.content["ibm.web2.contentType"]="text/xml";args.handleAs="text";}var _4a8=com.ibm.portal.services.PortalRestServiceConfig;if(_4a8.timeout){args.timeout=_4a8.timeout;}if(_4a8.digest){args.content["digest"]=_4a8.digest;}_497=com.ibm.portal.utilities.string.properCase(_497);var _4a9=dojo["xhr"+_497];if(_4a9){this._deferred=_4a9(args);}else{throw new Error("Invalid request method attempted: "+_497);}ibm.portal.debug.exit("PortalRestServiceRequest._doXmlHttpRequest");},toString:function(){return this._feedURI;}});com.ibm.portal.services.PortalRestServiceConfig={timeout:null,digest:null};(function(){var _4aa=false;com.ibm.ajax.auth.setAuthenticationHandler(function(){if(_4aa){return;}if(typeof (document.isCSA)=="undefined"){top.location.reload();}else{_4aa=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 _4ab=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var _4ac=ibmPortalConfig["contentModelBlankURL"].replace("-----oid-----",_4ab.getPageSelection());ibm.portal.debug.text("fullPageRefreshURL is currently: "+_4ac);if(dojo.cookie("WASReqURL")!=null){var _4ad=_4ab.createLinkToCurrentState();var _4ae="WASReqURL="+_4ad+"; path=/";document.cookie=_4ae;}ibm.portal.debug.text("Redirecting to: "+_4ac);com.ibm.portal.EVENT_BROKER.redirect.fire({url:_4ac});_4aa=false;top.location.href=_4ac;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(/&/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,_4b2,_4b3,_4b4,_4b5,_4b6,_4b7,_4b8,_4b9,_4ba,_4bb){ibm.portal.debug.entry("PortletInfo.constructor",[wId,pId,_4b2,_4b3,_4b4,_4b5,_4b7,_4bb]);this.windowId=wId;this.portletId=pId;this.uri="fragment:pm:oid:"+wId+"@oid:"+pId;this.markup=_4b2;this.portletModes=_4b3;this.windowStates=_4b4;this.dependentPortlets=_4b5;this.otherPortlets=_4b6;this.stateVaryExpressions=_4b8;this.updatedState=_4b7;this.currentMode=_4b9;this.currentWindowState=_4ba;this.portletTitle=_4bb;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,_4bd){ibm.portal.debug.entry("PortletFragmentService._flagPortletUrl",[url]);var _4be=url.indexOf("uri=fragment:pm:oid:");var _4bf=new com.ibm.portal.utilities.HttpUrl(url);_4bf.addParameter("ibm.web2.keepRenderMode","false");if(_4be<0){_4bd=_4bd.replace(/lm:/g,"fragment:pm:");_4bf.addParameter("uri",_4bd);}ibm.portal.debug.exit("PortletFragmentService._flagPortletUrl",[_4bf.toString()]);return _4bf.toString();},getPortletInfo:function(_4c0,_4c1,_4c2,form,_4c4){ibm.portal.debug.entry("PortletFragmentService.getPortletInfo",[_4c0,_4c1,_4c2,form,_4c4]);if(_4c1=="#"||_4c1==window.location.href+"#"){ibm.portal.debug.text("Illegal portlet url provided: "+_4c1);ibm.portal.debug.text("Aborting request.");return false;}if(com.ibm.portal.utilities.isJavascriptUrl(_4c1)){return eval(_4c1);}var _4c5=_4c1;if(_4c5.indexOf(top.location.href)==0){_4c5=_4c5.substring(top.location.href.length);while(_4c5.length>0&&_4c5.charAt(0)=="/"){_4c5=_4c5.substring(1);}}if(_4c5.indexOf("?")==0){var _4c6=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();_4c1=_4c6.resolveRelativePortletURL(_4c5);}if(com.ibm.portal.utilities.isExternalUrl(_4c1)){self.location.href=_4c1;}else{var url={url:this._flagPortletUrl(_4c1,_4c0)};var _4c8=ibmPortalConfig.enforceOneActivePortletRequest;if(_4c8){var _4c9=this.staticContext.activeRequests;if(_4c9[_4c0]!==undefined&&_4c9[_4c0]!==null){_4c9[_4c0].cancel();com.ibm.portal.EVENT_BROKER.cancelFragmentUpdate.fire({id:_4c0});_4c9[_4c0]=null;}}var _4ca=new com.ibm.portal.services.PortalRestServiceRequest(url,form);if(!_4c4){com.ibm.portal.EVENT_BROKER.startFragment.fire({id:_4c0});}if(_4c8){_4c9[_4c0]=_4ca;}var me=this;_4ca.read(function(type,_4cd,xhr){if(_4c8){_4c9[_4c0]=null;}if(xhr.status==404){var _4cf=false;for(var i=0;i0){for(var i=0;i0){_4dd=dojox.data.dom.textContent(_4dc[0]);}ibm.portal.debug.exit("PortletFragmentService.readMarkup",[_4dd]);return _4dd;},readPortletModes:function(_4de){ibm.portal.debug.entry("PortletFragmentService.readPortletModes",[_4de]);var _4df="/atom:feed/atom:entry/atom:link[@portal:rel='portlet-mode']";var _4e0=com.ibm.portal.xpath.evaluateXPath(_4df,_4de,this.namespaces);var _4e1=new Array();if(_4e0!=null&&_4e0.length>0){var _4e2=_4e0.length;for(var i=0;i<_4e2;i++){_4e1.push({"link":_4e0[i].getAttribute("href"),"mode":_4e0[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readPortletModes",[_4e1]);return _4e1;},readWindowStates:function(_4e4){ibm.portal.debug.entry("PortletFragmentService.readWindowStates",[_4e4]);var _4e5="/atom:feed/atom:entry/atom:link[@portal:rel='window-state']";var _4e6=com.ibm.portal.xpath.evaluateXPath(_4e5,_4e4,this.namespaces);var _4e7=new Array();if(_4e6!=null&&_4e6.length>0){var _4e8=_4e6.length;for(var i=0;i<_4e8;i++){_4e7.push({"link":_4e6[i].getAttribute("href"),"mode":_4e6[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readWindowStates",[_4e7]);return _4e7;},readDependentPortlets:function(_4ea){ibm.portal.debug.entry("PortletFragmentService.readDependentPortlets",[_4ea]);var _4eb="/atom:feed/atom:link[@portal:rel='dependent']";var _4ec=com.ibm.portal.xpath.evaluateXPath(_4eb,_4ea,this.namespaces);var _4ed=new Array();if(_4ec!=null&&_4ec.length>0){var _4ee=_4ec.length;for(var i=0;i<_4ee;i++){_4ed.push({"link":_4ec[i].getAttribute("href"),"portlet":_4ec[i].getAttribute("title"),"uri":_4ec[i].getAttribute("portal:uri")?_4ec[i].getAttribute("portal:uri"):_4ec[i].getAttribute("uri")});}}ibm.portal.debug.exit("PortletFragmentService.readDependentPortlets",[_4ed]);return _4ed;},readOtherPortlets:function(_4f0){ibm.portal.debug.entry("PortletFragmentService.readOtherPortlets",[_4f0]);var _4f1="/atom:feed/atom:link[@portal:rel='other']";var _4f2=com.ibm.portal.xpath.evaluateXPath(_4f1,_4f0,this.namespaces);var _4f3=new Array();if(_4f2!=null&&_4f2.length>0){var _4f4=_4f2.length;for(var i=0;i<_4f4;i++){_4f3.push({"link":_4f2[i].getAttribute("href"),"portlet":_4f2[i].getAttribute("title"),"uri":_4f2[i].getAttribute("portal:uri")});}}ibm.portal.debug.exit("PortletFragmentService.readOtherPortlets",[_4f3]);return _4f3;},readStateVaryExpressions:function(_4f6){ibm.portal.debug.entry("PortletFragmentService.readStateVaryExpressions",[_4f6]);var _4f7="/atom:feed/atom:entry/state-vary:state-vary/state-vary:expr";var _4f8=com.ibm.portal.xpath.evaluateXPath(_4f7,_4f6,this.namespaces);var _4f9=new Array();if(_4f8!=null&&_4f8.length>0){var _4fa=_4f8.length;for(var i=0;i<_4fa;i++){var _4fc=_4f8[i].firstChild;if(_4fc!=null){_4f9.push(_4fc.nodeValue);}}}ibm.portal.debug.exit("PortletFragmentService.readStateVaryExpressions",[_4f9]);return _4f9;},readPortletState:function(_4fd){return this._readPortletState(_4fd);},_readPortletState:function(_4fe){ibm.portal.debug.entry("PortletFragmentService.readPortletState",[_4fe]);var _4ff="/atom:feed/atom:entry/state:root";var _500=com.ibm.portal.xpath.evaluateXPath(_4ff,_4fe,this.namespaces);var _501=null;if(_500!=null&&_500.length>0){var doc=com.ibm.portal.xslt.loadXmlString();com.ibm.portal.utilities.addExternalNode(doc,_500[0]);_501=doc;}else{_4ff="/atom:feed/state:root";_500=com.ibm.portal.xpath.evaluateXPath(_4ff,_4fe,this.namespaces);if(_500!=null&&_500.length>0){var doc=com.ibm.portal.xslt.loadXmlString();com.ibm.portal.utilities.addExternalNode(doc,_500[0]);_501=doc;}}ibm.portal.debug.exit("PortletFragmentService.readPortletState",[_501]);return _501;},readPortletTitle:function(_503){return this._readPortletTitle(_503);},_readPortletTitle:function(_504){ibm.portal.debug.entry("PortletFragmentService.readPortletTitle",[_504]);var _505="/atom:feed/atom:entry/atom:title";var _506=com.ibm.portal.xpath.evaluateXPath(_505,_504,this.namespaces);var _507=dojox.data.dom.textContent(_506[0]);ibm.portal.debug.exit("PortletFragmentService.readPortletTitle",_507);return _507;},_fireEvents:function(_508,_509,xhr){this._fireGlobalPortletStateChange(_508,_509,xhr);},_fireGlobalPortletStateChange:function(_50b,_50c,xhr){com.ibm.portal.EVENT_BROKER.endFragment.fire({portletInfo:_50b,id:_50c,xhr:xhr});},_fireIndividualPortletStateChange:function(_50e){},createPortletInfo:function(_50f){var _510=this.readWindowID(_50f);var _511=this.readPortletID(_50f);var _512=this.readMarkup(_50f);var _513=this.readPortletModes(_50f);var _514=this.readWindowStates(_50f);var _515=this.readDependentPortlets(_50f);var _516=this.readOtherPortlets(_50f);var _517=this.readPortletState(_50f);var _518=this.readStateVaryExpressions(_50f);var _519=this.readPortletTitle(_50f);var _51a=_517;if(_51a==null){_51a=this._readPortletState(_50f);}var _51b=new com.ibm.portal.state.StateManager();var _51c=_51b.newPortletAccessor(_510,_51a);var mode=_51c.getPortletMode();var _51e=_51c.getWindowState();return new com.ibm.portal.services.PortletInfo(_510,_511,_512,_513,_514,_515,_516,_517,_518,mode,_51e,_519);}});dojo.declare("com.ibm.portal.services.IndependentPortletFragmentService",com.ibm.portal.services.PortletFragmentService,{readDependentPortlets:function(_51f){ibm.portal.debug.entry("DependentPortletFragmentService.readDependentPortlets",[_51f]);var _520=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readDependentPortlets",[_520]);return _520;},readOtherPortlets:function(_521){ibm.portal.debug.entry("DependentPortletFragmentService.readOtherPortlets",[_521]);var _522=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readOtherPortlets",[_522]);return _522;},readPortletState:function(_523){return null;}});}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(_524){this.isEnablerAvailable=false;if(this.isEnablerAvailable){var _525="ibm.portal.portlet.PortletWindow";this.logger=new ibm.portal.portlet.Logger(_525);var _526="constructor()";this.logger.logEntry(_526,_524);}if(_524==null){return;}this.windowID=_524;var _527=document.getElementById("com.ibm.wps.web2.portlet.preferences."+this.windowID);this.preferenceEditID=_527.getAttribute("editid");this.preferenceConfigID=_527.getAttribute("configid");this.preferenceEditDefaultsID=_527.getAttribute("editdefaultsid");this.pageID=_527.getAttribute("pageid");_527=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,_524,null,this.navigationStateModel);var me=this;function executeQueued(){for(var i=0;i"+""+""+"pm:cid:0"+""+""+""+""+"";dojo.rawXhrPost({url:_54e,sync:true,postData:_54f,contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:dojo.hitch(this,function(_550,_551){var type=(_550 instanceof Error)?"error":"load";if(type=="load"){var _553=_550;if(!_553||(typeof (dojox.data.dom.innerXML(_550))=="undefined")){_553=com.ibm.portal.xslt.loadXmlString(_551.xhr.responseText);}var ns={"atom":"http://www.w3.org/2005/Atom"};var expr="/atom:feed/atom:entry/atom:id";var _556=ibm.portal.xml.xpath.evaluateXPath(expr,_553,ns);this.requestedPreferenceID=dojox.data.dom.textContent(_556[0]);}else{if(_551.xhr.status==409){var _553=com.ibm.portal.xslt.loadXmlString(_551.xhr.responseText);var ns={"atom":"http://www.w3.org/2005/Atom"};var expr="/atom:feed/atom:entry/atom:id";var _556=ibm.portal.xml.xpath.evaluateXPath(expr,_553,ns);this.requestedPreferenceID=dojox.data.dom.textContent(_556[0]);}}}),transport:"XMLHTTPTransport"});}else{this.requestedPreferenceID="pm:oid:"+this.preferenceEditID;}}}}var _547=this;var _548=null;dojo.xhrGet({url:_url,handleAs:"xml",preventCache:true,headers:{"X-IBM-XHR":"true","If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_544)?false:true,handle:function(_557,_558){if(_547.isAuthenticationRequired(_558.xhr,_558.args.handleAs)){_547.doAuthentication();}else{var type=(_557 instanceof Error)?"error":"load";if(type=="load"){var _55a=_557;if(!_55a||(typeof (dojox.data.dom.innerXML(_557))=="undefined")){_55a=com.ibm.portal.xslt.loadXmlString(_558.xhr.responseText);}var _55b=new ibm.portal.portlet.PortletPreferences(_547.isEnablerAvailable,_547.windowID,_547.pageID,_547.requestedPreferenceID,_55a,_547.widgetModel);if(_544){_544(_547,ibm.portal.portlet.PortletWindow.STATUS_OK,_55b);}else{_548={"portletWindow":_547,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_55b};}}else{if(type=="error"){if(_544){_544(_547,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_548={"portletWindow":_547,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_545,_548);}return _548;},setPortletPreferences:function(_55c,_55d){if(this.isEnablerAvailable){var _55e="setPortletPreferences()";this.logger.logEntry(_55e,_55d);}if(!ibm.portal.portlet._SafeToExecute){if(_55d){var me=this;this._queueUp(function(){me.setPortletPreferences(_55c,_55d);});return false;}else{return this._throwInappropriateRequestError("setPortletPreferences");}}if(this.isEnablerAvailable){this.widgetModel.commit().start();var _560=this;var _561=null;if(_55d){_55d(_560,ibm.portal.portlet.PortletWindow.STATUS_OK,_55c);}else{_561={"portletWindow":_560,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_55c};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _562=document.getElementById("com.ibm.wps.web2.portlet.root."+this.windowID).innerHTML;var idx=_562.indexOf("--portletwindowid--");var _url=_562.replace(/--portletwindowid--/g,this.windowID);if(_url.indexOf("?")<0){_url+="?verb=download";}else{_url+="&verb=download";}var _565=_55c.requestedPreferenceID;var expr="/atom:feed/atom:entry[atom:id='"+_565+"']";var _567=ibm.portal.xml.xpath.evaluateXPath(expr,_55c.xmlData,_55c.ns);var _568;if(_567&&_567.length>0){_568=_567[0];}else{return null;}var _569=_568.parentNode;expr="/atom:feed/atom:entry";_567=ibm.portal.xml.xpath.evaluateXPath(expr,_55c.xmlData,_55c.ns);for(var i=0;i<_567.length;i++){var node=_567[i];if(node!=_568){_569.removeChild(node);}}var _560=this;var _561=null;var _56c={url:_url,sync:(_55d)?false:true,contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_56d,_56e){if(_560.isAuthenticationRequired(_56e.xhr,_56e.args.handleAs)){_560.doAuthentication();}else{var type=(_56d instanceof Error)?"error":"load";if(type=="load"){if(_55d){_55d(_560,ibm.portal.portlet.PortletWindow.STATUS_OK,_55c);}else{_561={"portletWindow":_560,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_55c};}}else{if(type=="error"){if(_55d){_55d(_560,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_561={"portletWindow":_560,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"};var _570="rawXhrPut";if(ibmPortalConfig&&ibmPortalConfig.xMethodOverride){_56c.headers["X-Method-Override"]="PUT";_570="xhrPost";_56c.postData=dojox.data.dom.innerXML(_55c.xmlData);}else{_56c.putData=dojox.data.dom.innerXML(_55c.xmlData);}dojo[_570](_56c);}if(this.isEnablerAvailable){this.logger.logExit(_55e,_561);}return _561;},getUserProfile:function(_571){if(this.isEnablerAvailable){var _572="getUserProfile()";this.logger.logEntry(_572,_571);}if(!ibm.portal.portlet._SafeToExecute){if(_571){var me=this;this._queueUp(function(){me.getUserProfile(_571);});return false;}else{return this._throwInappropriateRequestError("getUserProfile");}}if(this.isEnablerAvailable){var _574=this;var _575=null;var _576=new ibm.portal.portlet.UserProfile(_574.isEnablerAvailable,_574.windowID,null,_574.userModel);if(_571){_571(_574,ibm.portal.portlet.PortletWindow.STATUS_OK,_576);}else{_575={"portletWindow":_574,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_576};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _url=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _574=this;var _575=null;dojo.xhrGet({url:_url,headers:{"X-IBM-XHR":"true","If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_571)?false:true,handleAs:"xml",handle:function(_578,_579){if(_574.isAuthenticationRequired(_579.xhr,_579.args.handleAs)){_574.doAuthentication();}else{var type=(_578 instanceof Error)?"error":"load";if(type=="load"){var _57b=_578;if(!_57b||(typeof (dojox.data.dom.innerXML(_578))=="undefined")){_57b=com.ibm.portal.xslt.loadXmlString(_579.xhr.responseText);}var _57c=new ibm.portal.portlet.UserProfile(_574.isEnablerAvailable,_574.windowID,_57b,_574.userModel);if(_571){_571(_574,ibm.portal.portlet.PortletWindow.STATUS_OK,_57c);}else{_575={"portletWindow":_574,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_57c};}}else{if(type=="error"){if(_571){_571(_574,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_575={"portletWindow":_574,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_572,_575);}return _575;},setUserProfile:function(_57d,_57e){if(this.isEnablerAvailable){var _57f="setUserProfile()";this.logger.logEntry(_57f,_57e);}if(!ibm.portal.portlet._SafeToExecute){if(_57e){var me=this;this._queueUp(function(){me.setUserProfile(_57d,_57e);});return false;}else{return this._throwInappropriateRequestError("setUserProfile");}}if(this.isEnablerAvailable){this.userModel.commit().start();var _581=this;var _582=null;if(_57e){_57e(_581,ibm.portal.portlet.PortletWindow.STATUS_OK,_581.userProfile);}else{_582={"portletWindow":_581,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_57d};}}else{this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _url=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _581=this;var _582=null;dojo.rawXhrPost({url:_url,sync:(_57e)?false:true,postData:dojox.data.dom.innerXML(_57d.xmlData),contentType:"application/xml",headers:{"X-IBM-XHR":"true"},handleAs:"xml",handle:function(_584,_585){if(_581.isAuthenticationRequired(_585.xhr,_585.args.handleAs)){_581.doAuthentication();}else{var type=(_584 instanceof Error)?"error":"load";if(type=="load"){if(_57e){_57e(_581,ibm.portal.portlet.PortletWindow.STATUS_OK,_57d);}else{_582={"portletWindow":_581,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_57d};}}else{if(type=="error"){if(_57e){_57e(_581,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_582={"portletWindow":_581,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}}},transport:"XMLHTTPTransport"});}if(this.isEnablerAvailable){this.logger.logExit(_57f,_582);}return _582;},newXMLPortletRequest:function(){return new ibm.portal.portlet.XMLPortletRequest(this);},isAuthenticationRequired:function(_587,_588){if(_587.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 _589={dojoType:"valid"};var _58a={xhr:_587,args:{handleAs:_588}};return com.ibm.ajax.auth.isAuthenticationRequired(_589,_58a);},setAuthenticationHandler:function(_58b){this._authenticationFn=_58b;},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(_58c,_58d,_58e,_58f,data,_591){this.windowID=_58d;this.pageID=_58e;this.requestedPreferenceID=_58f;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=_58c;if(this.isEnablerAvailable){var _592="ibm.portal.portlet.PortletPreferences";this.logger=new ibm.portal.portlet.Logger(_592);var _593="constructor()";this.logger.logEntry(_593);this.logger.log(_593,"windowid: ${0}",_58d);this.logger.log(_593,"pageid: ${0}",_58e);this.logger.log(_593,"requestedpreferenceid: ${0}",_58f);this.logger.log(_593,"data: ${0}",data);this.logger.log(_593,"widgetModel: ${0}",_591);this.widgetModel=_591;this.logger.logExit(_593);}else{this.widgetModel=null;this.internal_reset();}},getMap:function(){if(this.isEnablerAvailable){var _594="getMap()";this.logger.logEntry(_594);var _595=this.getNames();var _596=new Array();for(var n=0;n<_595.length;n++){var _598=this.getValues(_595[n]);var _599=this.isReadOnly(_595[n]);_596[n]={name:_595[n],values:_598,readOnly:_599};}this.logger.logExit(_594,_596);return _596;}else{if(this.result_getMap){return this.result_getMap;}var _59a=ibm.portal.xml.xslt.loadXsl(this.xsltURL+"PortletPreferencesMap.xsl");if(_59a.documentElement==null){alert("xslDoc is null");}var _59b=ibm.portal.xml.xslt.transform(this.xmlData,_59a,null,{"selectionid":this.requestedPreferenceID},true);if(_59b==null){this.result_getNames=null;return null;}var _59c=eval(_59b);if(_59c){_59c=_59c.preferences;}this.result_getMap=_59c;return this.result_getMap;}},getNames:function(){if(this.isEnablerAvailable){var _59d="getNames()";this.logger.logEntry(_59d);var _59e=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _59f=_59e.getNames();this.logger.logExit(_59d,_59f);return _59f;}else{if(this.result_getNames){return this.result_getNames;}var _5a0=ibm.portal.xml.xslt.loadXsl(this.xsltURL+"PortletPreferencesNames.xsl");if(_5a0.documentElement==null){alert("xslDoc is null");}var _5a1=ibm.portal.xml.xslt.transform(this.xmlData,_5a0,null,{"selectionid":this.requestedPreferenceID},true);if(_5a1==null){this.result_getNames=null;return null;}var _5a2=eval(_5a1);if(_5a2){_5a2=_5a2.names;}this.result_getNames=_5a2;return this.result_getNames;}},getValue:function(key,def){if(this.isEnablerAvailable){var _5a5="getValue()";this.logger.logEntry(_5a5);this.logger.log(_5a5,"key: ${0}",key);var _5a6=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _5a7=_5a6.getValue(key);this.logger.logExit(_5a5,_5a7);return _5a7;}else{var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']/base:value";var _5a9=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _5a7;if(_5a9&&_5a9.length>0){_5a7=_5a9[0].getAttribute("value");}else{_5a7=def;}return _5a7;}},getValues:function(key,def){if(this.isEnablerAvailable){var _5ac="getValues()";this.logger.logEntry(_5ac);this.logger.log(_5ac,"key: ${0}",key);var _5ad=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _5ae=_5ad.getValues(key);this.logger.logExit(_5ac,_5ae);return _5ae;}else{var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']/base:value";var _5b0=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _5ae;if(_5b0&&_5b0.length>0){_5ae=new Array();for(var i=0;i<_5b0.length;i++){_5ae[i]=_5b0[i].getAttribute("value");}}else{_5ae=def;}return _5ae;}},isReadOnly:function(key){if(this.isEnablerAvailable){var _5b3="isReadOnly()";this.logger.logEntry(_5b3);this.logger.log(_5b3,"key: ${0}",key);var _5b4=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);var _5b5=_5b4.isReadOnly(key);this.logger.logExit(_5b3,_5b5);return _5b5;}else{var id=this.requestedPreferenceID;var expr="/atom:feed/atom:entry[atom:id='"+id+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _5b8=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _5b5=false;if(_5b8&&_5b8.length>0){var temp=_5b8[0].getAttribute("read-only");if(temp!=null){if(temp=="true"){_5b5=true;}}}return _5b5;}},reset:function(key){if(this.isEnablerAvailable){var _5bb="reset()";this.logger.logEntry(_5bb);this.logger.log(_5bb,"key: ${0}",key);var _5bc=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_5bc.remove(key);this.logger.logExit(_5bb);}else{this.internal_reset();var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _5be=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);if(_5be&&_5be.length>0){var _5bf=_5be[0];_5bf.parentNode.removeChild(_5bf);}}},setValue:function(key,_5c1){if(this.isEnablerAvailable){var _5c2="setValue()";this.logger.logEntry(_5c2);this.logger.log(_5c2,"key: ${0}",key);this.logger.log(_5c2,"value: ${0}",_5c1);var _5c3=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_5c3.setValue(key,_5c1);this.logger.logExit(_5c2);}else{var _5c4=new Array();_5c4[0]=_5c1;this.setValues(key,_5c4);}},setValues:function(key,_5c6){if(this.isEnablerAvailable){var _5c7="setValues()";this.logger.logEntry(_5c7);this.logger.log(_5c7,"key: ${0}",key);this.logger.log(_5c7,"values: ${0}",_5c6);var _5c8=this.getModifiablePreferences(this.widgetModel,this.pageID,this.windowID);_5c8.setValues(key,_5c6);this.logger.logExit(_5c7);}else{this.internal_reset();var expr="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*/model:portletpreferences[@name='"+key+"']";var _5ca=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _5cb=null;if(_5ca&&_5ca.length>0){_5cb=_5ca[0];for(var i=_5cb.childNodes.length-1;i>=0;i--){_5cb.removeChild(_5cb.childNodes[i]);}}else{var _5cd="/atom:feed/atom:entry[atom:id='"+this.requestedPreferenceID+"']/atom:content/*";var _5ce=ibm.portal.xml.xpath.evaluateXPath(_5cd,this.xmlData,this.ns);if(dojo.isIE||window.ActiveXObject!==undefined){_5cb=this.xmlData.createNode(1,"model:portletpreferences",this.ns.model);}else{_5cb=this.xmlData.createElementNS(this.ns.model,"model:portletpreferences");}_5cb.setAttribute("name",key);_5cb.setAttribute("read-only","false");_5ce[0].appendChild(_5cb);}for(var i=0;i<_5c6.length;i++){var _5cf;if(dojo.isIE||window.ActiveXObject!==undefined){_5cf=this.xmlData.createNode(1,"base:value",this.ns.base);var _5d0=this.xmlData.createNode(2,"xsi:type",this.ns.xsi);_5d0.nodeValue="String";_5cf.setAttributeNode(_5d0);}else{_5cf=this.xmlData.createElementNS(this.ns.base,"base:value");_5cf.setAttributeNS(this.ns.xsi,"xsi:type","String");}_5cf.setAttribute("value",_5c6[i]);_5cb.appendChild(_5cf);}}},internal_reset:function(){this.result_getMap=null;this.result_getNames=null;},clone:function(){var _5d1=dojox.data.dom.innerXML(this.xmlData);var _5d2=com.ibm.portal.xslt.loadXmlString(_5d1);return new ibm.portal.portlet.PortletPreferences(this.isEnablerAvailable,this.windowID,this.pageID,this.requestedPreferenceID,_5d2,this.widgetModel);},getModifiablePreferences:function(_5d3,_5d4,_5d5){var _5d6="getModifiablePreferences()";this.logger.logEntry(_5d6);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"widgetModel: ${0}",_5d3);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"windowID: ${0}",_5d5);var _5d7=com.ibm.mashups.enabler.navigation.Factory.getNavigationModel();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"navigationModel: ${0}",_5d7);var _5d8=_5d7.find(_5d4).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"selectedNode: ${0}",_5d8);var _5d9=_5d7.getLayoutModel(_5d8);this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"layoutModel: ${0}",_5d9);var _5da=_5d9.find(_5d5).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"layoutControl: ${0}",_5da);var _5db=_5d3.getWidgetWindow(_5da).start();this.logger.logLevel(com.ibm.mashups.enabler.logging.LogLevel.INFO,_5d6,"widgetInstance: ${0}",_5db);var _5dc=_5d3.getHierarchicalPreferences(_5db).start();this.logger.logExit(_5d6,_5dc);return _5dc;}});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(_5dd,_5de,_5df,_5e0){this.windowID=_5de;this.isEnablerAvailable=_5dd;if(this.isEnablerAvailable){var _5e1="ibm.portal.portlet.PortletState";this.logger=new ibm.portal.portlet.Logger(_5e1);var _5e2="constructor()";this.logger.logEntry(_5e2);this.logger.log(_5e2,"windowid: ${0}",_5de);this.logger.log(_5e2,"portletWindowId: ${0}",_5df);this.logger.log(_5e2,"navigationStateModel: ${0}",_5e0);this.navigationStateModel=_5e0;this.widgetAccessor=com.ibm.mashups.enabler.model.state.AccessorFactory.getWidgetAccessor(this.navigationStateModel,this.windowID);this.logger.logExit(_5e2);}else{var _5e3=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);if(dojo.isString(_5de)){var _5e4=this._getExistingState(_5de,_5e3.getSerializationManager());_5e3.reset(_5e4);}else{_5e3.reset(_5de);_5de=_5df;}this.portletAccessor=_5e3.newPortletAccessor(_5de);this.renderParameters=this.portletAccessor.getRenderParameters();}},_isCSA:function(){var _5e5=false;try{_5e5=(typeof (document.isCSA)!="undefined");}catch(e){}return _5e5;},_getExistingState:function(_5e6,_5e7){var _5e8=null;if(this._isCSA()){_5e8=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState().stateDOM;}else{if(_5e7!=null){var _5e9=_5e7.deserialize(location.href);_5e8=_5e9.returnObject;}else{_5e8=com.ibm.portal.xslt.loadXmlString();}}return _5e8;},getPortletMode:function(){if(this.isEnablerAvailable){var _5ea="getPortletMode()";this.logger.logEntry(_5ea);var _5eb=this.widgetAccessor.getWidgetMode();var _5ec=null;switch(_5eb){case "view":_5ec=new ibm.portal.portlet.PortletMode().VIEW;break;case "personalize":_5ec=new ibm.portal.portlet.PortletMode().EDIT;break;case "edit":_5ec=new ibm.portal.portlet.PortletMode().EDIT_DEFAULTS;break;case "config":_5ec=new ibm.portal.portlet.PortletMode().CONFIG;break;case "help":_5ec=new ibm.portal.portlet.PortletMode().HELP;break;}this.logger.logExit(_5ea,_5ec);return _5ec;}else{return this.portletAccessor.getPortletMode();}},setPortletMode:function(_5ed){if(this.isEnablerAvailable){var _5ee="setPortletMode()";this.logger.logEntry(_5ee);this.logger.log(_5ee,"portletMode: ${0}",_5ed);var _5ef=null;switch(_5ed){case new ibm.portal.portlet.PortletMode().VIEW:_5ef="view";break;case new ibm.portal.portlet.PortletMode().EDIT:_5ef="personalize";break;case new ibm.portal.portlet.PortletMode().EDIT_DEFAULTS:_5ef="edit";break;case new ibm.portal.portlet.PortletMode().CONFIG:_5ef="config";break;case new ibm.portal.portlet.PortletMode().HELP:_5ef="help";break;}this.widgetAccessor.setWidgetMode(_5ef);this.logger.logExit(_5ee,_5ed);return _5ed;}else{this.portletAccessor.setPortletMode(_5ed);return _5ed;}},getWindowState:function(){if(this.isEnablerAvailable){var _5f0="getWindowState()";this.logger.logEntry(_5f0);var _5f1=this.widgetAccessor.getWindowState();var _5f2=null;switch(_5f1){case "normal":_5f2=new ibm.portal.portlet.WindowState().NORMAL;break;case "minimize":_5f2=new ibm.portal.portlet.WindowState().MINIMIZED;break;case "maximize":_5f2=new ibm.portal.portlet.WindowState().MAXIMIZED;break;}this.logger.logExit(_5f0,_5f2);return _5f2;}else{return this.portletAccessor.getWindowState();}},setWindowState:function(_5f3){if(this.isEnablerAvailable){var _5f4="setWindowState()";this.logger.logEntry(_5f4);this.logger.log(_5f4,"windowState: ${0}",_5f3);var _5f5=null;switch(_5f3){case new ibm.portal.portlet.WindowState().NORMAL:_5f5="normal";break;case new ibm.portal.portlet.WindowState().MINIMIZED:_5f5="minimize";break;case new ibm.portal.portlet.WindowState().MAXIMIZED:_5f5="maximize";break;}this.widgetAccessor.setWindowState(_5f5);this.logger.logExit(_5f4,_5f3);return _5f3;}else{this.portletAccessor.setWindowState(_5f3);return _5f3;}},getParameterNames:function(){if(this.isEnablerAvailable){var _5f6="getParameterNames()";this.logger.logEntry(_5f6);var _5f7=this.widgetAccessor.getWidgetStateNames();this.logger.logExit(_5f6,_5f7);return _5f7;}else{return this.renderParameters.getNames();}},getParameterValue:function(name){if(this.isEnablerAvailable){var _5f9="getParameterValue()";this.logger.logEntry(_5f9);this.logger.log(_5f9,"name: ${0}",name);var _5fa=this.widgetAccessor.getWidgetState(name);this.logger.logExit(_5f9,_5fa);return _5fa;}else{return this.renderParameters.getValue(name);}},getParameterValues:function(name){if(this.isEnablerAvailable){var _5fc="getParameterValues()";this.logger.logEntry(_5fc);this.logger.log(_5fc,"name: ${0}",name);var _5fd=this.widgetAccessor.getWidgetStateValues(name);this.logger.logExit(_5fc,_5fd);return _5fd;}else{return this.renderParameters.getValues(name);}},getParameterMap:function(){if(this.isEnablerAvailable){var _5fe="getParameterMap()";this.logger.logEntry(_5fe);var _5ff=this.getParameterNames();var _600=new Array();for(var n=0;n<_5ff.length;n++){var _602=this.getParameterValues(_5ff[n]);_600[n]={name:_5ff[n],values:_602};}this.logger.logExit(_5fe,_600);return _600;}else{return this.renderParameters.getMap();}},setParameterValue:function(name,_604){if(this.isEnablerAvailable){var _605="setParameterValue()";this.logger.logEntry(_605);this.logger.log(_605,"name: ${0}",name);this.logger.log(_605,"value: ${0}",_604);this.widgetAccessor.setWidgetState(name,_604);this.logger.logExit(_605,_604);return _604;}else{this.renderParameters.setValue(name,_604);return _604;}},setParameterValues:function(name,_607){if(this.isEnablerAvailable){var _608="setParameterValues()";this.logger.logEntry(_608);this.logger.log(_608,"name: ${0}",name);this.logger.log(_608,"values: ${0}",_607);this.widgetAccessor.setWidgetState(name,_607);this.logger.logExit(_608,_607);return _607;}else{this.renderParameters.setValues(name,_607);return _607;}},setParameterMap:function(map,_60a){if(this.isEnablerAvailable){var _60b="setParameterMap()";this.logger.logEntry(_60b);this.logger.log(_60b,"map: ${0}",map);this.logger.log(_60b,"replace: ${0}",_60a);for(var n=0;n0){window.location.href=this._newPageURL(_620);}}ibm.portal.debug.exit(_621);},_isCSA:function(){var _622=this.declaredClass+"._isCSA";ibm.portal.debug.entry(_622);var _623=false;try{_623=(typeof (document.isCSA)!="undefined");}catch(e){}ibm.portal.debug.exit(_622,_623);return _623;},_flag:function(_624){var _625=this.declaredClass+"._flag";ibm.portal.debug.entry(_625,[_624]);var id="lm:oid:"+this.windowID+"@oid:"+this.pageID;var _627=new com.ibm.portal.services.PortletFragmentService();var url=_627._flagPortletUrl(_624,id);ibm.portal.debug.exit(_625,url);return url;},_newPageURL:function(_629){var _62a=this.declaredClass+"._newPageURL";ibm.portal.debug.entry(_62a,[_629]);ibm.portal.debug.text(dojox.data.dom.innerXML(_629));var _62b=new com.ibm.portal.state.StateManager(ibmPortalConfig["contentHandlerURI"]);var _62c=_629;if(!_629){_62c=com.ibm.portal.xslt.loadXmlString();}_62b.reset(_62c);var _62d=_62b.getSerializationManager();var _62e=_62d.serialize(_62c);var _62f=_62e["returnObject"];var url=_62f;ibm.portal.debug.exit(_62a,url);return url;},open:function(_631,uri){var _633=this.declaredClass+".open";ibm.portal.debug.entry(_633,[_631,uri]);this.open(_631,uri,false);ibm.portal.debug.exit(_633);},open:function(_634,uri,_636){var _637=this.declaredClass+".open";ibm.portal.debug.entry(_637,[_634,uri,_636]);var xhr=this._getXHR();var me=this;this._location=uri;if(_636==undefined){_636=false;}this._async=_636;xhr.onreadystatechange=function(){me._onreadystatechangehandler();};xhr.open(_634,this._flag(uri),_636);xhr.setRequestHeader("X-IBM-XHR","true");ibm.portal.debug.exit(_637);},setRequestHeader:function(_63a,_63b){var _63c=this.declaredClass+".setRequestHeader";ibm.portal.debug.entry(_63c,[_63a,_63b]);this._getXHR().setRequestHeader(_63a,_63b);ibm.portal.debug.exit(_63c);},send:function(data){var _63e=this.declaredClass+".send";ibm.portal.debug.entry(_63e,[data]);this._getXHR().send(data);if(!this._async){this._onreadystatechangehandler();}ibm.portal.debug.exit(_63e);},abort:function(){var _63f=this.declaredClass+".abort";ibm.portal.debug.entry(_63f);this._getXHR().abort();ibm.portal.debug.exit(_63f);},getAllResponseHeaders:function(){return this._getXHR().getAllResponseHeaders();},getResponseHeader:function(_640){return this._getXHR().getResponseHeader(_640);}});dojo.declare("ibm.portal.portlet.UserProfile",null,{constructor:function(_641,_642,data,_644){this.windowID=_642;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=_641;if(this.isEnablerAvailable){var _645="ibm.portal.portlet.UserProfile";this.logger=new ibm.portal.portlet.Logger(_645);var _646="constructor()";this.logger.logEntry(_646);this.logger.log(_646,"windowid: ${0}",_642);this.logger.log(_646,"data: ${0}",data);this.logger.log(_646,"userModel: ${0}",_644);this.userModel=_644;this.logger.logExit(_646);}else{this.userModel=null;}},getAttribute:function(name){if(this.isEnablerAvailable){var _648="getAttribute()";this.logger.logEntry(_648);this.logger.log(_648,"name: ${0}",name);var user=this.userModel.findCurrentUser().start();var _64a=user.getAttribute(name);this.logger.logExit(_648,_64a);return _64a;}else{var expr="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']/um:attributeValue";var _64c=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _64a=null;if(_64c&&_64c.length>0){if(_64c[0].textContent){_64a=_64c[0].textContent;}else{_64a=_64c[0].text;}}return _64a;}},setAttribute:function(name,_64e){if(this.isEnablerAvailable){var _64f="setAttribute()";this.logger.logEntry(_64f);this.logger.log(_64f,"name: ${0}",name);this.logger.log(_64f,"value: ${0}",_64e);var user=this.userModel.findCurrentUser().start();var _651=user.setAttribute(name,_64e);this.logger.logExit(_64f,_651);return _651;}else{var expr="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']/um:attributeValue";var _653=ibm.portal.xml.xpath.evaluateXPath(expr,this.xmlData,this.ns);var _651=null;if(_653&&_653.length>0){if(_653[0].textContent){_651=_653[0].textContent;_653[0].textContent=_64e;}else{_651=_653[0].text;_653[0].text=_64e;}}else{var _654="/atom:entry/atom:content/um:profile[@type='user']/um:attribute[@name='"+name+"']";var _655=ibm.portal.xml.xpath.evaluateXPath(_654,this.xmlData,this.ns);var _656=null;if(_655&&_655.length>0){_656=_655[0];}else{var _657="/atom:entry/atom:content/um:profile[@type='user']";var _658=ibm.portal.xml.xpath.evaluateXPath(_657,this.xmlData,this.ns);if(dojo.isIE||window.ActiveXObject!==undefined){_656=this.xmlData.createNode(1,"um:attribute",this.ns.um);}else{_656=this.xmlData.createElementNS(this.ns.um,"um:attribute");}_656.setAttribute("type","xs:string");_656.setAttribute("multiValued","false");_656.setAttribute("name",name);_658[0].appendChild(_656);}var _659;if(dojo.isIE||window.ActiveXObject!==undefined){_659=this.xmlData.createNode(1,"um:attributeValue",this.ns.um);_659.text=_64e;}else{_659=this.xmlData.createElementNS(this.ns.um,"um:attributeValue");_659.textContent=_64e;}_656.appendChild(_659);}return _651;}},clone:function(){var _65a=dojox.data.dom.innerXML(this.xmlData);var _65b=com.ibm.portal.xslt.loadXmlString(_65a);return new ibm.portal.portlet.UserProfile(this.isEnablerAvailable,this.windowID,_65b,this.userModel);}});dojo.declare("ibm.portal.portlet.Error",null,{INFO:0,WARN:1,ERROR:2,constructor:function(_65c,_65d,_65e){this.errorCode=_65c;this.message=_65d;this.description=_65e;},getErrorCode:function(){return this.errorCode;},getMessage:function(){return this.message;},getDescription:function(){return this.description;}});dojo.declare("ibm.portal.portlet.Logger",null,{constructor:function(_65f){this.className=_65f;this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(_65f);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;},logEntry:function(name,args){var _662=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_662){this.LOGGER.entering(name,args);}},log:function(name,msg,args){var _666=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_666){this.LOGGER.log(this.LOG_LEVEL,name,msg,args);}},logLevel:function(_667,name,msg,args){var _66b=this.LOGGER.isLoggable(_667);if(_66b){this.LOGGER.log(_667,name,msg,args);}},logExit:function(name,_66d){var _66e=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_66e){this.LOGGER.exiting(name,_66d);}}});var com_ibm_portal_portlet_portletwindow=new ibm.portal.portlet.PortletWindow();ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED=com_ibm_portal_portlet_portletwindow.STATUS_UNDEFINED;ibm.portal.portlet.PortletWindow.STATUS_OK=com_ibm_portal_portlet_portletwindow.STATUS_OK;ibm.portal.portlet.PortletWindow.STATUS_ERROR=com_ibm_portal_portlet_portletwindow.STATUS_ERROR;com_ibm_portal_portlet_portletwindow=null;var com_ibm_portal_portlet_portletmode=new ibm.portal.portlet.PortletMode();ibm.portal.portlet.PortletMode.VIEW=com_ibm_portal_portlet_portletmode.VIEW;ibm.portal.portlet.PortletMode.EDIT=com_ibm_portal_portlet_portletmode.EDIT;ibm.portal.portlet.PortletMode.EDIT_DEFAULTS=com_ibm_portal_portlet_portletmode.EDIT_DEFAULTS;ibm.portal.portlet.PortletMode.HELP=com_ibm_portal_portlet_portletmode.HELP;ibm.portal.portlet.PortletMode.CONFIG=com_ibm_portal_portlet_portletmode.CONFIG;com_ibm_portal_portlet_portletmode=null;var com_ibm_portal_portlet_windowstate=new ibm.portal.portlet.WindowState();ibm.portal.portlet.WindowState.NORMAL=com_ibm_portal_portlet_windowstate.NORMAL;ibm.portal.portlet.WindowState.MINIMIZED=com_ibm_portal_portlet_windowstate.MINIMIZED;ibm.portal.portlet.WindowState.MAXIMIZED=com_ibm_portal_portlet_windowstate.MAXIMIZED;com_ibm_portal_portlet_windowstate=null;var com_ibm_portal_portlet_error=new ibm.portal.portlet.Error();ibm.portal.portlet.Error.INFO=com_ibm_portal_portlet_error.INFO;ibm.portal.portlet.Error.WARN=com_ibm_portal_portlet_error.WARN;ibm.portal.portlet.Error.ERROR=com_ibm_portal_portlet_error.ERROR;com_ibm_portal_portlet_error=null;} delete djConfig.baseUrl;