portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r605315 [2/3] - in /portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/desktop: core.js core.src.js
Date Tue, 18 Dec 2007 20:03:23 GMT

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/desktop/core.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/desktop/core.js?rev=605315&r1=605314&r2=605315&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/desktop/core.js (original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/desktop/core.js Tue Dec 18 12:03:23 2007
@@ -14,7 +14,7 @@
 if(!jetspeed.debug){
 jetspeed.debug={};
 }
-jetspeed.id={PAGE:"jetspeedPage",DESKTOP_CELL:"jetspeedDesktopCell",DESKTOP:"jetspeedDesktop",COLUMNS:"jetspeedColumns",PAGE_CONTROLS:"jetspeedPageControls",P_CLASS:"portlet",PWIN_CLASS:"portletWindow",PWIN_CLIENT_CLASS:"portletWindowClient",PWIN_GHOST_CLASS:"ghostPane",PW_ID_PREFIX:"pw_",COL_CLASS:"desktopColumn",COL_LAYOUTHEADER_CLASS:"desktopLayoutHeader",PP_WIDGET_ID:"widgetId",PP_CONTENT_RETRIEVER:"contentRetriever",PP_DESKTOP_EXTENDED:"jsdesktop",PP_WINDOW_POSITION_STATIC:"windowPositionStatic",PP_WINDOW_HEIGHT_TO_FIT:"windowHeightToFit",PP_WINDOW_DECORATION:"windowDecoration",PP_WINDOW_TITLE:"title",PP_WINDOW_ICON:"windowIcon",PP_WIDTH:"width",PP_HEIGHT:"height",PP_LEFT:"left",PP_TOP:"top",PP_COLUMN:"column",PP_ROW:"row",PP_EXCLUDE_PCONTENT:"excludePContent",PP_WINDOW_STATE:"windowState",PP_STATICPOS:"staticpos",PP_FITHEIGHT:"fitheight",PP_PROP_SEPARATOR:"=",PP_PAIR_SEPARATOR:";",ACT_MENU:"menu",ACT_MINIMIZE:"minimized",ACT_MAXIMIZE:"maximized",ACT_RESTORE:"normal",AC
 T_PRINT:"print",ACT_EDIT:"edit",ACT_VIEW:"view",ACT_HELP:"help",ACT_ADDPORTLET:"addportlet",ACT_REMOVEPORTLET:"removeportlet",ACT_CHANGEPORTLETTHEME:"changeportlettheme",ACT_DESKTOP_TILE:"tile",ACT_DESKTOP_UNTILE:"untile",ACT_DESKTOP_HEIGHT_EXPAND:"heightexpand",ACT_DESKTOP_HEIGHT_NORMAL:"heightnormal",ACT_DESKTOP_MOVE_TILED:"movetiled",ACT_DESKTOP_MOVE_UNTILED:"moveuntiled",ACT_LOAD_RENDER:"loadportletrender",ACT_LOAD_ACTION:"loadportletaction",ACT_LOAD_UPDATE:"loadportletupdate",PORTLET_ACTION_TYPE_MODE:"mode",PORTLET_ACTION_TYPE_STATE:"state",MENU_WIDGET_ID_PREFIX:"jetspeed-menu-",PG_ED_WID:"jetspeed-page-editor",PG_ED_PARAM:"editPage",PG_ED_STATE_PARAM:"epst",PG_ED_TITLES_PARAM:"wintitles",PORTAL_ORIGINATE_PARAMETER:"portal",PM_P_AD:256,PM_P_D:1024,PM_MZ_P:2048,DEBUG_WINDOW_TAG:"js-db"};
+jetspeed.id={PAGE:"jetspeedPage",DESKTOP_CELL:"jetspeedDesktopCell",DESKTOP:"jetspeedDesktop",COLUMNS:"jetspeedColumns",PAGE_CONTROLS:"jetspeedPageControls",P_CLASS:"portlet",PWIN_CLASS:"portletWindow",PWIN_CLIENT_CLASS:"portletWindowClient",PWIN_GHOST_CLASS:"ghostPane",PW_ID_PREFIX:"pw_",COL_CLASS:"desktopColumn",COL_LAYOUTHEADER_CLASS:"desktopLayoutHeader",PP_WIDGET_ID:"widgetId",PP_CONTENT_RETRIEVER:"contentRetriever",PP_DESKTOP_EXTENDED:"jsdesktop",PP_WINDOW_POSITION_STATIC:"windowPositionStatic",PP_WINDOW_HEIGHT_TO_FIT:"windowHeightToFit",PP_WINDOW_DECORATION:"windowDecoration",PP_WINDOW_TITLE:"title",PP_WINDOW_ICON:"windowIcon",PP_WIDTH:"width",PP_HEIGHT:"height",PP_LEFT:"left",PP_TOP:"top",PP_COLUMN:"column",PP_ROW:"row",PP_EXCLUDE_PCONTENT:"excludePContent",PP_WINDOW_STATE:"windowState",PP_STATICPOS:"staticpos",PP_FITHEIGHT:"fitheight",PP_PROP_SEPARATOR:"=",PP_PAIR_SEPARATOR:";",ACT_MENU:"menu",ACT_MINIMIZE:"minimized",ACT_MAXIMIZE:"maximized",ACT_RESTORE:"normal",AC
 T_PRINT:"print",ACT_EDIT:"edit",ACT_VIEW:"view",ACT_HELP:"help",ACT_ADDPORTLET:"addportlet",ACT_REMOVEPORTLET:"removeportlet",ACT_CHANGEPORTLETTHEME:"changeportlettheme",ACT_DESKTOP_TILE:"tile",ACT_DESKTOP_UNTILE:"untile",ACT_DESKTOP_HEIGHT_EXPAND:"heightexpand",ACT_DESKTOP_HEIGHT_NORMAL:"heightnormal",ACT_DESKTOP_MOVE_TILED:"movetiled",ACT_DESKTOP_MOVE_UNTILED:"moveuntiled",ACT_LOAD_RENDER:"loadportletrender",ACT_LOAD_ACTION:"loadportletaction",ACT_LOAD_UPDATE:"loadportletupdate",PORTLET_ACTION_TYPE_MODE:"mode",PORTLET_ACTION_TYPE_STATE:"state",MENU_WIDGET_ID_PREFIX:"jetspeed-menu-",PG_ED_WID:"jetspeed-page-editor",PG_ED_PARAM:"editPage",ADDP_RFRAG:"aR",PG_ED_STATE_PARAM:"epst",PG_ED_TITLES_PARAM:"wintitles",PORTAL_ORIGINATE_PARAMETER:"portal",PM_P_AD:256,PM_P_D:1024,PM_MZ_P:2048,DEBUG_WINDOW_TAG:"js-db"};
 jetspeed.prefs={windowTiling:true,windowHeightExpand:false,ajaxPageNavigation:false,windowWidth:null,windowHeight:null,layoutName:null,layoutRootUrl:null,getLayoutName:function(){
 if(jetspeed.prefs.layoutName==null&&djConfig.jetspeed!=null){
 jetspeed.prefs.layoutName=djConfig.jetspeed.layoutName;
@@ -175,9 +175,7 @@
 _8.debug.profile=false;
 }
 _8.page.retrievePsml();
-if(_8.UAie6){
 _8.ui.windowResizeMgr.init(window,_8.docBody);
-}
 };
 jetspeed.updatePage=function(_20,_21,_22,_23){
 var _24=jetspeed;
@@ -297,6 +295,7 @@
 jetspeed.PortletRenderer=function(_3a,_3b,_3c,_3d,_3e,_3f){
 var _40=jetspeed;
 var _41=_40.page;
+var _42=dojo;
 this._jsObj=_40;
 this.mkWins=_3a;
 this.initEdit=_3f;
@@ -304,10 +303,6 @@
 this.noRender=(this.minimizeTemp&&_3f.windowTitles!=null);
 this.isPgLd=_3b;
 this.isPgUp=_3c;
-this.pageLoadUrl=null;
-if(_3b){
-this.pageLoadUrl=_40.url.parse(_41.getPageUrl());
-}
 this.renderUrl=_3d;
 this.suppressGetActions=_3e;
 this._colLen=_41.columns.length;
@@ -315,6 +310,11 @@
 this._portletIndex=0;
 this._renderCount=0;
 this.psByCol=_41.portletsByPageColumn;
+this.pageLoadUrl=null;
+if(_3b){
+this.pageLoadUrl=_40.url.parse(_41.getPageUrl());
+_40.ui.evtConnect("before",_42,"addOnLoad",_41,"_beforeAddOnLoad",_42.event);
+}
 this.dbgPgLd=_40.debug.pageLoad&&_3b;
 this.dbgMsg=null;
 if(_40.debug.doRenderDoAction||this.dbgPgLd){
@@ -334,114 +334,114 @@
 this._finished();
 }
 },_finished:function(){
-var _42=this._jsObj;
-var _43=this.dbgMsg;
-if(_43!=null){
+var _43=this._jsObj;
+var _44=this.dbgMsg;
+if(_44!=null){
 if(this.dbgPgLd){
-dojo.debug("portlet-renderer page-url: "+_42.page.getPsmlUrl()+" portlets: ["+renderMsg+"]"+(url?(" url: "+url):""));
+dojo.debug("portlet-renderer page-url: "+_43.page.getPsmlUrl()+" portlets: ["+renderMsg+"]"+(url?(" url: "+url):""));
 }else{
 dojo.debug("portlet-renderer ["+renderMsg+"] url: "+url);
 }
 }
 if(this.isPgLd){
-_42.page.loadPostRender(this.isPgUp,this.initEdit);
+_43.page.loadPostRender(this.isPgUp,this.initEdit);
 }
 },_renderCurrent:function(){
-var _44=this._jsObj;
-var _45=this._colLen;
-var _46=this._colIndex;
-var _47=this._portletIndex;
-if(_46<=_45){
-var _48;
-if(_46<_45){
-_48=this.psByCol[_46.toString()];
-}else{
-_48=this.psByCol["z"];
-_46=null;
-}
-var _49=(_48!=null?_48.length:0);
-if(_49>0){
-var _4a=_48[_47];
-if(_4a){
-var _4b=_4a.portlet;
-var _4c=null;
+var _45=this._jsObj;
+var _46=this._colLen;
+var _47=this._colIndex;
+var _48=this._portletIndex;
+if(_47<=_46){
+var _49;
+if(_47<_46){
+_49=this.psByCol[_47.toString()];
+}else{
+_49=this.psByCol["z"];
+_47=null;
+}
+var _4a=(_49!=null?_49.length:0);
+if(_4a>0){
+var _4b=_49[_48];
+if(_4b){
+var _4c=_4b.portlet;
+var _4d=null;
 if(this.mkWins){
-_4c=_44.ui.createPortletWindow(_4b,_46,_44);
+_4d=_45.ui.createPortletWindow(_4c,_47,_45);
 if(this.minimizeTemp){
-_4c.minimizeWindowTemporarily(this.noRender);
+_4d.minimizeWindowTemporarily(this.noRender);
 }
 }
-var _4d=this.dbgMsg;
-if(_4d!=null){
-if(_4d.length>0){
-_4d=_4d+", ";
+var _4e=this.dbgMsg;
+if(_4e!=null){
+if(_4e.length>0){
+_4e=_4e+", ";
 }
-var _4e=null;
-if(_4b.getProperty!=null){
-_4e=_4b.getProperty(_44.id.PP_WIDGET_ID);
+var _4f=null;
+if(_4c.getProperty!=null){
+_4f=_4c.getProperty(_45.id.PP_WIDGET_ID);
 }
-if(!_4e){
-_4e=_4b.widgetId;
+if(!_4f){
+_4f=_4c.widgetId;
 }
-if(!_4e){
-_4e=_4b.toString();
+if(!_4f){
+_4f=_4c.toString();
 }
-if(_4b.entityId){
-_4d=_4d+_4b.entityId+"("+_4e+")";
-if(this._dbPgLd&&_4b.getProperty(_44.id.PP_WINDOW_TITLE)){
-_4d=_4d+" "+_4b.getProperty(_44.id.PP_WINDOW_TITLE);
+if(_4c.entityId){
+_4e=_4e+_4c.entityId+"("+_4f+")";
+if(this._dbPgLd&&_4c.getProperty(_45.id.PP_WINDOW_TITLE)){
+_4e=_4e+" "+_4c.getProperty(_45.id.PP_WINDOW_TITLE);
 }
 }else{
-_4d=_4d+_4e;
+_4e=_4e+_4f;
 }
 }
 if(!this.noRender){
-_4b.retrieveContent(null,{url:this.renderUrl,jsPageUrl:this.pageLoadUrl},this.suppressGetActions);
+_4c.retrieveContent(null,{url:this.renderUrl,jsPageUrl:this.pageLoadUrl},this.suppressGetActions);
 }else{
-if(_4c&&_4c.portlet){
-var _4f=this.initEdit.windowTitles[_4c.portlet.entityId];
-if(_4f!=null){
-_4c.setPortletTitle(_4f);
+if(_4d&&_4d.portlet){
+var _50=this.initEdit.windowTitles[_4d.portlet.entityId];
+if(_50!=null){
+_4d.setPortletTitle(_50);
 }
 }
 }
 if((this._renderCount%3)==0){
-_44.url.loadingIndicatorStep(_44);
+_45.url.loadingIndicatorStep(_45);
 }
 this._renderCount++;
 }
 }
 }
 },_evalNext:function(){
-var _50=false;
-var _51=this._colLen;
-var _52=this._colIndex;
-var _53=this._portletIndex;
-var _54=_52;
-var _55;
-for(++_52;_52<=_51;_52++){
-_55=this.psByCol[_52==_51?"z":_52.toString()];
-if(_53<(_55!=null?_55.length:0)){
-_50=true;
-this._colIndex=_52;
+var _51=false;
+var _52=this._colLen;
+var _53=this._colIndex;
+var _54=this._portletIndex;
+var _55=_53;
+var _56;
+for(++_53;_53<=_52;_53++){
+_56=this.psByCol[_53==_52?"z":_53.toString()];
+if(_54<(_56!=null?_56.length:0)){
+_51=true;
+this._colIndex=_53;
 break;
 }
 }
-if(!_50){
-++_53;
-for(_52=0;_52<=_54;_52++){
-_55=this.psByCol[_52==_51?"z":_52.toString()];
-if(_53<(_55!=null?_55.length:0)){
-_50=true;
-this._colIndex=_52;
-this._portletIndex=_53;
+if(!_51){
+++_54;
+for(_53=0;_53<=_55;_53++){
+_56=this.psByCol[_53==_52?"z":_53.toString()];
+if(_54<(_56!=null?_56.length:0)){
+_51=true;
+this._colIndex=_53;
+this._portletIndex=_54;
 break;
 }
 }
 }
-return _50;
+return _51;
 }});
-jetspeed.portleturl={DESKTOP_ACTION_PREFIX_URL:null,DESKTOP_RENDER_PREFIX_URL:null,JAVASCRIPT_ARG_QUOTE:"&"+"quot;",PORTLET_REQUEST_ACTION:"action",PORTLET_REQUEST_RENDER:"render",JETSPEED_DO_NOTHING_ACTION:"javascript:jetspeed.doNothingNav()",parseContentUrl:function(_56){
+jetspeed.portleturl={DESKTOP_ACTION_PREFIX_URL:null,DESKTOP_RENDER_PREFIX_URL:null,JAVASCRIPT_ARG_QUOTE:"&"+"quot;",PORTLET_REQUEST_ACTION:"action",PORTLET_REQUEST_RENDER:"render",JETSPEED_DO_NOTHING_ACTION:"javascript:jetspeed.doNothingNav()",parseContentUrl:function(_57){
 if(this.DESKTOP_ACTION_PREFIX_URL==null){
 this.DESKTOP_ACTION_PREFIX_URL=jetspeed.url.basePortalUrl()+jetspeed.url.path.ACTION;
 }
@@ -449,348 +449,358 @@
 this.DESKTOP_RENDER_PREFIX_URL=jetspeed.url.basePortalUrl()+jetspeed.url.path.RENDER;
 }
 var op=null;
-var _58=_56;
-var _59=null;
-if(_56&&_56.length>this.DESKTOP_ACTION_PREFIX_URL.length&&_56.indexOf(this.DESKTOP_ACTION_PREFIX_URL)==0){
+var _59=_57;
+var _5a=null;
+if(_57&&_57.length>this.DESKTOP_ACTION_PREFIX_URL.length&&_57.indexOf(this.DESKTOP_ACTION_PREFIX_URL)==0){
 op=jetspeed.portleturl.PORTLET_REQUEST_ACTION;
 }else{
-if(_56&&_56.length>this.DESKTOP_RENDER_PREFIX_URL.length&&_56.indexOf(this.DESKTOP_RENDER_PREFIX_URL)==0){
+if(_57&&_57.length>this.DESKTOP_RENDER_PREFIX_URL.length&&_57.indexOf(this.DESKTOP_RENDER_PREFIX_URL)==0){
 op=jetspeed.portleturl.PORTLET_REQUEST_RENDER;
 }
 }
 if(op!=null){
-_59=jetspeed.url.getQueryParameter(_56,"entity");
+_5a=jetspeed.url.getQueryParameter(_57,"entity");
 }
-if(!jetspeed.url.urlStartsWithHttp(_58)){
-_58=null;
+if(!jetspeed.url.urlStartsWithHttp(_59)){
+_59=null;
 }
-return {url:_58,operation:op,portletEntityId:_59};
-},genPseudoUrl:function(_5a,_5b){
-if(!_5a||!_5a.url||!_5a.portletEntityId){
+return {url:_59,operation:op,portletEntityId:_5a};
+},genPseudoUrl:function(_5b,_5c){
+if(!_5b||!_5b.url||!_5b.portletEntityId){
 return null;
 }
-var _5c=null;
-if(_5b){
-_5c=jetspeed.portleturl.JETSPEED_DO_NOTHING_ACTION;
+var _5d=null;
+if(_5c){
+_5d=jetspeed.portleturl.JETSPEED_DO_NOTHING_ACTION;
 }else{
-_5c="javascript:";
-var _5d=false;
-if(_5a.operation==jetspeed.portleturl.PORTLET_REQUEST_ACTION){
-_5c+="doAction(\"";
+_5d="javascript:";
+var _5e=false;
+if(_5b.operation==jetspeed.portleturl.PORTLET_REQUEST_ACTION){
+_5d+="doAction(\"";
 }else{
-if(_5a.operation==jetspeed.portleturl.PORTLET_REQUEST_RENDER){
-_5c+="doRender(\"";
+if(_5b.operation==jetspeed.portleturl.PORTLET_REQUEST_RENDER){
+_5d+="doRender(\"";
 }else{
-_5d=true;
+_5e=true;
 }
 }
-if(_5d){
+if(_5e){
 return null;
 }
-_5c+=_5a.url+"\",\""+_5a.portletEntityId+"\"";
-_5c+=")";
+_5d+=_5b.url+"\",\""+_5b.portletEntityId+"\"";
+_5d+=")";
 }
-return _5c;
+return _5d;
 }};
 jetspeed.doNothingNav=function(){
 false;
 };
-jetspeed.loadPortletDecorationStyles=function(_5e,_5f,_60){
-var _61=null;
-var _62=_5f.portletDecorationsConfig;
-if(_5e&&_62){
-_61=_62[_5e];
-}
-if(_61==null&&!_60){
-var _63=_5f.portletDecorationsAllowed;
-for(var i=0;i<_63.length;i++){
-_5e=_63[i];
-_61=_62[_5e];
-if(_61!=null){
+jetspeed.loadPortletDecorationStyles=function(_5f,_60,_61){
+var _62=null;
+var _63=_60.portletDecorationsConfig;
+if(_5f&&_63){
+_62=_63[_5f];
+}
+if(_62==null&&!_61){
+var _64=_60.portletDecorationsAllowed;
+for(var i=0;i<_64.length;i++){
+_5f=_64[i];
+_62=_63[_5f];
+if(_62!=null){
 break;
 }
 }
 }
-if(_61!=null&&!_61._initialized){
-var _65=jetspeed.prefs.getPortletDecorationBaseUrl(_5e);
-_61._initialized=true;
-_61.cssPathCommon=new dojo.uri.Uri(_65+"/css/styles.css");
-_61.cssPathDesktop=new dojo.uri.Uri(_65+"/css/desktop.css");
-dojo.html.insertCssFile(_61.cssPathCommon,null,true);
-dojo.html.insertCssFile(_61.cssPathDesktop,null,true);
-}
-return _61;
-};
-jetspeed.loadPortletDecorationConfig=function(_66,_67,_68){
-var _69={};
-_67.portletDecorationsConfig[_66]=_69;
-_69.name=_66;
-_69.windowActionButtonOrder=_67.windowActionButtonOrder;
-_69.windowActionNotPortlet=_67.windowActionNotPortlet;
-_69.windowActionButtonMax=_67.windowActionButtonMax;
-_69.windowActionButtonTooltip=_67.windowActionButtonTooltip;
-_69.windowActionMenuOrder=_67.windowActionMenuOrder;
-_69.windowActionNoImage=_67.windowActionNoImage;
-_69.windowIconEnabled=_67.windowIconEnabled;
-_69.windowIconPath=_67.windowIconPath;
-_69.windowTitlebar=_67.windowTitlebar;
-_69.windowResizebar=_67.windowResizebar;
-_69.dNodeClass=_68.P_CLASS+" "+_66+" "+_68.PWIN_CLASS+" "+_68.PWIN_CLASS+"-"+_66;
-_69.cNodeClass=_68.P_CLASS+" "+_66+" "+_68.PWIN_CLIENT_CLASS;
-if(_67.portletDecorationsProperties){
-var _6a=_67.portletDecorationsProperties[_66];
-if(_6a){
-for(var _6b in _6a){
-_69[_6b]=_6a[_6b];
-}
-if(_6a.windowActionNoImage!=null){
-var _6c={};
-for(var i=0;i<_6a.windowActionNoImage.length;i++){
-_6c[_6a.windowActionNoImage[i]]=true;
-}
-_69.windowActionNoImage=_6c;
-}
-if(_6a.windowIconPath!=null){
-_69.windowIconPath=dojo.string.trim(_6a.windowIconPath);
-if(_69.windowIconPath==null||_69.windowIconPath.length==0){
-_69.windowIconPath=null;
-}else{
-var _6e=_69.windowIconPath;
-var _6f=_6e.charAt(0);
-if(_6f!="/"){
-_6e="/"+_6e;
-}
-var _70=_6e.charAt(_6e.length-1);
+if(_62!=null&&!_62._initialized){
+var _66=jetspeed.prefs.getPortletDecorationBaseUrl(_5f);
+_62._initialized=true;
+_62.cssPathCommon=new dojo.uri.Uri(_66+"/css/styles.css");
+_62.cssPathDesktop=new dojo.uri.Uri(_66+"/css/desktop.css");
+dojo.html.insertCssFile(_62.cssPathCommon,null,true);
+dojo.html.insertCssFile(_62.cssPathDesktop,null,true);
+}
+return _62;
+};
+jetspeed.loadPortletDecorationConfig=function(_67,_68,_69){
+var _6a={};
+_68.portletDecorationsConfig[_67]=_6a;
+_6a.name=_67;
+_6a.windowActionButtonOrder=_68.windowActionButtonOrder;
+_6a.windowActionNotPortlet=_68.windowActionNotPortlet;
+_6a.windowActionButtonMax=_68.windowActionButtonMax;
+_6a.windowActionButtonTooltip=_68.windowActionButtonTooltip;
+_6a.windowActionMenuOrder=_68.windowActionMenuOrder;
+_6a.windowActionNoImage=_68.windowActionNoImage;
+_6a.windowIconEnabled=_68.windowIconEnabled;
+_6a.windowIconPath=_68.windowIconPath;
+_6a.windowTitlebar=_68.windowTitlebar;
+_6a.windowResizebar=_68.windowResizebar;
+_6a.dNodeClass=_69.P_CLASS+" "+_67+" "+_69.PWIN_CLASS+" "+_69.PWIN_CLASS+"-"+_67;
+_6a.cNodeClass=_69.P_CLASS+" "+_67+" "+_69.PWIN_CLIENT_CLASS;
+if(_68.portletDecorationsProperties){
+var _6b=_68.portletDecorationsProperties[_67];
+if(_6b){
+for(var _6c in _6b){
+_6a[_6c]=_6b[_6c];
+}
+if(_6b.windowActionNoImage!=null){
+var _6d={};
+for(var i=0;i<_6b.windowActionNoImage.length;i++){
+_6d[_6b.windowActionNoImage[i]]=true;
+}
+_6a.windowActionNoImage=_6d;
+}
+if(_6b.windowIconPath!=null){
+_6a.windowIconPath=dojo.string.trim(_6b.windowIconPath);
+if(_6a.windowIconPath==null||_6a.windowIconPath.length==0){
+_6a.windowIconPath=null;
+}else{
+var _6f=_6a.windowIconPath;
+var _70=_6f.charAt(0);
 if(_70!="/"){
-_6e=_6e+"/";
+_6f="/"+_6f;
 }
-_69.windowIconPath=_6e;
+var _71=_6f.charAt(_6f.length-1);
+if(_71!="/"){
+_6f=_6f+"/";
+}
+_6a.windowIconPath=_6f;
 }
 }
 }
 }
 };
-jetspeed.notifyRetrieveAllMenusFinished=function(_71,_72){
-var _73=jetspeed;
-_73.pageNavigateSuppress=true;
+jetspeed.notifyRetrieveAllMenusFinished=function(_72,_73){
+var _74=jetspeed;
+_74.pageNavigateSuppress=true;
 if(dojo.lang.isFunction(window.doMenuBuildAll)){
 window.doMenuBuildAll();
 }
-var _74=_73.page.getMenuNames();
-for(var i=0;i<_74.length;i++){
-var _76=_74[i];
-var _77=dojo.widget.byId(_73.id.MENU_WIDGET_ID_PREFIX+_76);
-if(_77){
-_77.createJetspeedMenu(_73.page.getMenu(_76));
+var _75=_74.page.getMenuNames();
+for(var i=0;i<_75.length;i++){
+var _77=_75[i];
+var _78=dojo.widget.byId(_74.id.MENU_WIDGET_ID_PREFIX+_77);
+if(_78){
+_78.createJetspeedMenu(_74.page.getMenu(_77));
 }
 }
-if(!_72){
-_73.url.loadingIndicatorHide();
+if(!_73){
+_74.url.loadingIndicatorHide();
 }
-_73.pageNavigateSuppress=false;
+_74.pageNavigateSuppress=false;
 };
-jetspeed.notifyRetrieveMenuFinished=function(_78){
+jetspeed.notifyRetrieveMenuFinished=function(_79){
 if(dojo.lang.isFunction(window.doMenuBuild)){
-window.doMenuBuild(_78);
+window.doMenuBuild(_79);
 }
 };
-jetspeed.menuNavClickWidget=function(_79,_7a){
-if(!_79){
+jetspeed.menuNavClickWidget=function(_7a,_7b){
+if(!_7a){
 return;
 }
-if(dojo.lang.isString(_79)){
-var _7b=_79;
-_79=dojo.widget.byId(_7b);
-if(!_79){
-dojo.raise("Tab widget not found: "+_7b);
-}
+if(dojo.lang.isString(_7a)){
+var _7c=_7a;
+_7a=dojo.widget.byId(_7c);
+if(!_7a){
+dojo.raise("Tab widget not found: "+_7c);
 }
-if(_79){
-var _7c=_79.jetspeedmenuname;
-if(!_7c&&_79.extraArgs){
-_7c=_79.extraArgs.jetspeedmenuname;
 }
-if(!_7c){
-dojo.raise("Tab widget is invalid: "+_79.widgetId);
+if(_7a){
+var _7d=_7a.jetspeedmenuname;
+if(!_7d&&_7a.extraArgs){
+_7d=_7a.extraArgs.jetspeedmenuname;
 }
-var _7d=jetspeed.page.getMenu(_7c);
 if(!_7d){
-dojo.raise("Tab widget "+_79.widgetId+" no menu: "+_7c);
+dojo.raise("Tab widget is invalid: "+_7a.widgetId);
+}
+var _7e=jetspeed.page.getMenu(_7d);
+if(!_7e){
+dojo.raise("Tab widget "+_7a.widgetId+" no menu: "+_7d);
 }
-var _7e=_7d.getOptionByIndex(_7a);
-jetspeed.menuNavClick(_7e);
+var _7f=_7e.getOptionByIndex(_7b);
+jetspeed.menuNavClick(_7f);
 }
 };
 jetspeed.pageNavigateSuppress=false;
-jetspeed.pageNavigate=function(_7f,_80,_81){
-var _82=jetspeed;
-if(!_7f||_82.pageNavigateSuppress){
+jetspeed.pageNavigate=function(_80,_81,_82){
+var _83=jetspeed;
+if(!_80||_83.pageNavigateSuppress){
 return;
 }
-if(typeof _81=="undefined"){
-_81=false;
+if(typeof _82=="undefined"){
+_82=false;
 }
-if(!_81&&_82.page&&_82.page.equalsPageUrl(_7f)){
+if(!_82&&_83.page&&_83.page.equalsPageUrl(_80)){
 return;
 }
-_7f=_82.page.makePageUrl(_7f);
-if(_80=="top"){
-top.location.href=_7f;
+_80=_83.page.makePageUrl(_80);
+if(_81=="top"){
+top.location.href=_80;
 }else{
-if(_80=="parent"){
-parent.location.href=_7f;
+if(_81=="parent"){
+parent.location.href=_80;
 }else{
-window.location.href=_7f;
+window.location.href=_80;
 }
 }
 };
-jetspeed.getActionsForPortlet=function(_83){
-if(_83==null){
+jetspeed.getActionsForPortlet=function(_84){
+if(_84==null){
 return;
 }
-jetspeed.getActionsForPortlets([_83]);
+jetspeed.getActionsForPortlets([_84]);
 };
-jetspeed.getActionsForPortlets=function(_84){
-var _85=jetspeed;
-if(_84==null){
-_84=_85.page.getPortletIds();
+jetspeed.getActionsForPortlets=function(_85){
+var _86=jetspeed;
+if(_85==null){
+_85=_86.page.getPortletIds();
 }
-var _86=new _85.om.PortletActionsCL(_84);
-var _87="?action=getactions";
-for(var i=0;i<_84.length;i++){
-_87+="&id="+_84[i];
+var _87=new _86.om.PortletActionsCL(_85);
+var _88="?action=getactions";
+for(var i=0;i<_85.length;i++){
+_88+="&id="+_85[i];
 }
-var _89=_85.url.basePortalUrl()+_85.url.path.AJAX_API+_85.page.getPath()+_87;
-var _8a="text/xml";
-var _8b=new _85.om.Id("getactions",{});
-_85.url.retrieveContent({url:_89,mimetype:_8a},_86,_8b,_85.debugContentDumpIds);
+var _8a=_86.url.basePortalUrl()+_86.url.path.AJAX_API+_86.page.getPath()+_88;
+var _8b="text/xml";
+var _8c=new _86.om.Id("getactions",{});
+_86.url.retrieveContent({url:_8a,mimetype:_8b},_87,_8c,_86.debugContentDumpIds);
 };
-jetspeed.changeActionForPortlet=function(_8c,_8d,_8e,_8f){
-var _90=jetspeed;
-if(_8c==null){
+jetspeed.changeActionForPortlet=function(_8d,_8e,_8f,_90,_91){
+var _92=jetspeed;
+if(_8d==null){
 return;
 }
-if(_8f==null){
-_8f=new _90.om.PortletChangeActionCL(_8c);
-}
-var _91="?action=window&id="+(_8c!=null?_8c:"");
-if(_8d!=null){
-_91+="&state="+_8d;
+if(_90==null){
+_90=new _92.om.PortletChangeActionCL(_8d);
 }
+var _93="?action=window&id="+(_8d!=null?_8d:"");
 if(_8e!=null){
-_91+="&mode="+_8e;
+_93+="&state="+_8e;
+}
+if(_8f!=null){
+_93+="&mode="+_8f;
 }
-var _92=_90.url.basePortalUrl()+_90.url.path.AJAX_API+_90.page.getPath()+_91;
-var _93="text/xml";
-var _94=new _90.om.Id("changeaction",{});
-_90.url.retrieveContent({url:_92,mimetype:_93},_8f,_94,_90.debugContentDumpIds);
-};
-jetspeed.getUserInfo=function(_95){
-var _96=jetspeed;
-var _97=new _96.om.UserInfoCL();
-var _98="?action=getuserinfo";
-var _99=_96.url.basePortalUrl()+_96.url.path.AJAX_API+_96.page.getPath()+_98;
-var _9a="text/xml";
-var _9b=new _96.om.Id("getuserinfo",{});
-_96.url.retrieveContent({url:_99,mimetype:_9a,sync:_95},_97,_9b,_96.debugContentDumpIds);
-};
-jetspeed.editPageInitiate=function(_9c,_9d){
-var _9e=_9c.page;
-if(!_9e.editMode){
-var _9f=_9c.css;
-var _a0=true;
-var _a1=_9c.url.getQueryParameter(window.location.href,_9c.id.PORTAL_ORIGINATE_PARAMETER);
-if(_a1!=null&&_a1=="true"){
-_a0=false;
-}
-_9e.editMode=true;
-var _a2=dojo.widget.byId(_9c.id.PG_ED_WID);
-if(_9c.UAie6){
-_9e.displayAllPWins(true);
-}
-var _a3=((_9d!=null&&_9d.editModeMove)?true:false);
-var _a4=_9e._perms(_9c.prefs,-1,String.fromCharCode);
-if(_a4&&_a4[2]&&_a4[2].length>0){
-if(!_9c.page._getU()){
-_9c.getUserInfo(true);
+var _94=_91;
+if(!_94){
+_94=_92.page.getPath();
+}
+var _95=_92.url.basePortalUrl()+_92.url.path.AJAX_API+_94+_93;
+var _96="text/xml";
+var _97=new _92.om.Id("changeaction",{});
+_92.url.retrieveContent({url:_95,mimetype:_96},_90,_97,_92.debugContentDumpIds);
+};
+jetspeed.getUserInfo=function(_98){
+var _99=jetspeed;
+var _9a=new _99.om.UserInfoCL();
+var _9b="?action=getuserinfo";
+var _9c=_99.url.basePortalUrl()+_99.url.path.AJAX_API+_99.page.getPath()+_9b;
+var _9d="text/xml";
+var _9e=new _99.om.Id("getuserinfo",{});
+_99.url.retrieveContent({url:_9c,mimetype:_9d,sync:_98},_9a,_9e,_99.debugContentDumpIds);
+};
+jetspeed.editPageInitiate=function(_9f,_a0){
+var _a1=_9f.page;
+if(!_a1.editMode){
+var _a2=_9f.css;
+var _a3=true;
+var _a4=_9f.url.getQueryParameter(window.location.href,_9f.id.PORTAL_ORIGINATE_PARAMETER);
+if(_a4!=null&&_a4=="true"){
+_a3=false;
+}
+_a1.editMode=true;
+var _a5=dojo.widget.byId(_9f.id.PG_ED_WID);
+if(_9f.UAie6){
+_a1.displayAllPWins(true);
+}
+var _a6=((_a0!=null&&_a0.editModeMove)?true:false);
+var _a7=_a1._perms(_9f.prefs,-1,String.fromCharCode);
+if(_a7&&_a7[2]&&_a7[2].length>0){
+if(!_9f.page._getU()){
+_9f.getUserInfo(true);
 }
 }
-if(_a2==null){
+if(_a5==null){
 try{
-_9c.url.loadingIndicatorShow("loadpageeditor",true);
-_a2=dojo.widget.createWidget("jetspeed:PageEditor",{widgetId:_9c.id.PG_ED_WID,editorInitiatedFromDesktop:_a0,editModeMove:_a3});
-var _a5=document.getElementById(_9c.id.COLUMNS);
-_a5.insertBefore(_a2.domNode,_a5.firstChild);
+_9f.url.loadingIndicatorShow("loadpageeditor",true);
+_a5=dojo.widget.createWidget("jetspeed:PageEditor",{widgetId:_9f.id.PG_ED_WID,editorInitiatedFromDesktop:_a3,editModeMove:_a6});
+var _a8=document.getElementById(_9f.id.COLUMNS);
+_a8.insertBefore(_a5.domNode,_a8.firstChild);
 }
 catch(e){
-_9c.url.loadingIndicatorHide();
-if(_9c.UAie6){
-_9e.displayAllPWins();
+_9f.url.loadingIndicatorHide();
+if(_9f.UAie6){
+_a1.displayAllPWins();
 }
 }
 }else{
-_a2.editPageShow();
+_a5.editPageShow();
 }
-_9e.syncPageControls(_9c);
+_a1.syncPageControls(_9f);
 }
 };
-jetspeed.editPageTerminate=function(_a6){
-var _a7=_a6.page;
-if(_a7.editMode){
-var _a8=_a6.css;
-var _a9=dojo.widget.byId(_a6.id.PG_ED_WID);
-_a9.editMoveModeExit(true);
-_a7.editMode=false;
-if(!_a9.editorInitiatedFromDesktop){
-var _aa=_a7.getPageUrl(true);
-_aa=_a6.url.removeQueryParameter(_aa,_a6.id.PG_ED_PARAM);
-_aa=_a6.url.removeQueryParameter(_aa,_a6.id.PORTAL_ORIGINATE_PARAMETER);
-window.location.href=_aa;
+jetspeed.editPageTerminate=function(_a9,_aa){
+var _ab=_a9.page;
+if(_ab.editMode){
+var _ac=null;
+var _ad=_a9.css;
+var _ae=dojo.widget.byId(_a9.id.PG_ED_WID);
+if(_ae!=null&&!_ae.editorInitiatedFromDesktop){
+var _af=_ab.getPageUrl(true);
+_af=_a9.url.removeQueryParameter(_af,_a9.id.PG_ED_PARAM);
+_af=_a9.url.removeQueryParameter(_af,_a9.id.PORTAL_ORIGINATE_PARAMETER);
+_ac=_af;
 }else{
-var _ab=_a6.url.getQueryParameter(window.location.href,_a6.id.PG_ED_PARAM);
-if(_ab!=null&&_ab=="true"){
-var _ac=window.location.href;
-_ac=_a6.url.removeQueryParameter(_ac,_a6.id.PG_ED_PARAM);
-window.location.href=_ac;
-}else{
-if(_a9!=null){
-_a9.editPageHide();
+var _b0=_a9.url.getQueryParameter(window.location.href,_a9.id.PG_ED_PARAM);
+if(_b0!=null&&_b0=="true"){
+var _b1=window.location.href;
+_b1=_a9.url.removeQueryParameter(_b1,_a9.id.PG_ED_PARAM);
+_ac=_b1;
+}
 }
-_a7.syncPageControls(_a6);
+if(_ac!=null){
+_ac=_ac.toString();
 }
+_ab.editMode=false;
+_a9.changeActionForPortlet(_ab.rootFragmentId,null,_a9.id.ACT_VIEW,new _a9.om.PageChangeActionCL(_ac));
+if(_ac==null){
+if(_ae!=null){
+_ae.editMoveModeExit(true);
+_ae.editPageHide();
+}
+_ab.syncPageControls(_a9);
 }
 }
 };
 jetspeed.om.PortletContentRetriever=function(){
 };
-jetspeed.om.PortletContentRetriever.prototype={getContent:function(_ad,_ae,_af,_b0){
-if(!_ad){
-_ad={};
+jetspeed.om.PortletContentRetriever.prototype={getContent:function(_b2,_b3,_b4,_b5){
+if(!_b2){
+_b2={};
 }
-jetspeed.url.retrieveContent(_ad,_ae,_af,_b0);
+jetspeed.url.retrieveContent(_b2,_b3,_b4,_b5);
 }};
-jetspeed.om.PageCLCreateWidget=function(_b1,_b2){
-if(typeof _b1=="undefined"){
-_b1=false;
-}
-this.isPageUpdate=_b1;
-this.initEditModeConf=_b2;
-};
-jetspeed.om.PageCLCreateWidget.prototype={notifySuccess:function(_b3,_b4,_b5){
-_b5.loadFromPSML(_b3,this.isPageUpdate,this.initEditModeConf);
-},notifyFailure:function(_b6,_b7,_b8,_b9){
-dojo.raise("PageCLCreateWidget error url: "+_b8+" type: "+_b6+jetspeed.formatError(_b7));
+jetspeed.om.PageCLCreateWidget=function(_b6,_b7){
+if(typeof _b6=="undefined"){
+_b6=false;
+}
+this.isPageUpdate=_b6;
+this.initEditModeConf=_b7;
+};
+jetspeed.om.PageCLCreateWidget.prototype={notifySuccess:function(_b8,_b9,_ba){
+_ba.loadFromPSML(_b8,this.isPageUpdate,this.initEditModeConf);
+},notifyFailure:function(_bb,_bc,_bd,_be){
+dojo.raise("PageCLCreateWidget error url: "+_bd+" type: "+_bb+jetspeed.formatError(_bc));
 }};
-jetspeed.om.Page=function(_ba,_bb,_bc,_bd,_be){
-if(_ba!=null&&_bb!=null){
-this.requiredLayoutDecorator=_ba;
-this.setPsmlPathFromDocumentUrl(_bb);
-this.pageUrlFallback=_bb;
+jetspeed.om.Page=function(_bf,_c0,_c1,_c2,_c3){
+if(_bf!=null&&_c0!=null){
+this.requiredLayoutDecorator=_bf;
+this.setPsmlPathFromDocumentUrl(_c0);
+this.pageUrlFallback=_c0;
 }else{
 this.setPsmlPathFromDocumentUrl();
 }
-if(typeof _bc!="undefined"){
-this.addToHistory=_bc;
+if(typeof _c1!="undefined"){
+this.addToHistory=_c1;
 }
 this.layouts={};
 this.columns=[];
@@ -799,384 +809,382 @@
 this.portlet_count=0;
 this.portlet_windows={};
 this.portlet_window_count=0;
-if(_be!=null){
-this.iframeCoverByWinId=_be;
+if(_c3!=null){
+this.iframeCoverByWinId=_c3;
 }else{
 this.iframeCoverByWinId={};
 }
 this.portlet_tiled_high_z=10;
 this.portlet_untiled_high_z=-1;
 this.menus=[];
-if(_bd!=null){
-this.tooltipMgr=_bd;
+if(_c2!=null){
+this.tooltipMgr=_c2;
 }else{
 this.tooltipMgr=dojo.widget.createWidget("jetspeed:PortalTooltipManager",{isContainer:false,fastMixIn:true});
 jetspeed.docBody.appendChild(this.tooltipMgr.domNode);
 }
 };
 dojo.lang.extend(jetspeed.om.Page,{psmlPath:null,name:null,path:null,pageUrl:null,pagePathAndQuery:null,title:null,shortTitle:null,layoutDecorator:null,portletDecorator:null,uIA:true,requiredLayoutDecorator:null,pageUrlFallback:null,addToHistory:false,layouts:null,columns:null,portlets:null,portletsByPageColumn:null,editMode:false,themeDefinitions:null,menus:null,getId:function(){
-var _bf=(this.name!=null&&this.name.length>0?this.name:null);
-if(!_bf){
+var _c4=(this.name!=null&&this.name.length>0?this.name:null);
+if(!_c4){
 this.getPsmlUrl();
-_bf=this.psmlPath;
+_c4=this.psmlPath;
 }
-return "page-"+_bf;
-},setPsmlPathFromDocumentUrl:function(_c0){
-var _c1=jetspeed;
-var _c2=_c1.url.path.AJAX_API;
-var _c3=null;
-if(_c0==null){
-_c3=window.location.pathname;
-if(!djConfig.preventBackButtonFix&&_c1.prefs.ajaxPageNavigation){
-var _c4=window.location.hash;
-if(_c4!=null&&_c4.length>0){
-if(_c4.indexOf("#")==0){
-_c4=(_c4.length>1?_c4.substring(1):"");
+return "page-"+_c4;
+},setPsmlPathFromDocumentUrl:function(_c5){
+var _c6=jetspeed;
+var _c7=_c6.url.path.AJAX_API;
+var _c8=null;
+if(_c5==null){
+_c8=window.location.pathname;
+if(!djConfig.preventBackButtonFix&&_c6.prefs.ajaxPageNavigation){
+var _c9=window.location.hash;
+if(_c9!=null&&_c9.length>0){
+if(_c9.indexOf("#")==0){
+_c9=(_c9.length>1?_c9.substring(1):"");
 }
-if(_c4!=null&&_c4.length>1&&_c4.indexOf("/")==0){
-this.psmlPath=_c1.url.path.AJAX_API+_c4;
+if(_c9!=null&&_c9.length>1&&_c9.indexOf("/")==0){
+this.psmlPath=_c6.url.path.AJAX_API+_c9;
 return;
 }
 }
 }
 }else{
-var _c5=_c1.url.parse(_c0);
-_c3=_c5.path;
+var _ca=_c6.url.parse(_c5);
+_c8=_ca.path;
 }
-var _c6=_c1.url.path.DESKTOP;
-var _c7=_c3.indexOf(_c6);
-if(_c7!=-1&&_c3.length>(_c7+_c6.length)){
-_c2=_c2+_c3.substring(_c7+_c6.length);
+var _cb=_c6.url.path.DESKTOP;
+var _cc=_c8.indexOf(_cb);
+if(_cc!=-1&&_c8.length>(_cc+_cb.length)){
+_c7=_c7+_c8.substring(_cc+_cb.length);
 }
-this.psmlPath=_c2;
+this.psmlPath=_c7;
 },getPsmlUrl:function(){
-var _c8=jetspeed;
+var _cd=jetspeed;
 if(this.psmlPath==null){
 this.setPsmlPathFromDocumentUrl();
 }
-var _c9=_c8.url.basePortalUrl()+this.psmlPath;
-if(_c8.prefs.printModeOnly!=null){
-_c9=_c8.url.addQueryParameter(_c9,"layoutid",_c8.prefs.printModeOnly.layout);
-_c9=_c8.url.addQueryParameter(_c9,"entity",_c8.prefs.printModeOnly.entity).toString();
+var _ce=_cd.url.basePortalUrl()+this.psmlPath;
+if(_cd.prefs.printModeOnly!=null){
+_ce=_cd.url.addQueryParameter(_ce,"layoutid",_cd.prefs.printModeOnly.layout);
+_ce=_cd.url.addQueryParameter(_ce,"entity",_cd.prefs.printModeOnly.entity).toString();
 }
-return _c9;
+return _ce;
 },_setU:function(u){
 this._u=u;
 },_getU:function(){
 return this._u;
-},retrievePsml:function(_cb){
-var _cc=jetspeed;
-if(_cb==null){
-_cb=new _cc.om.PageCLCreateWidget();
-}
-var _cd=this.getPsmlUrl();
-var _ce="text/xml";
-if(_cc.debug.retrievePsml){
-dojo.debug("retrievePsml url: "+_cd);
-}
-_cc.url.retrieveContent({url:_cd,mimetype:_ce},_cb,this,_cc.debugContentDumpIds);
-},loadFromPSML:function(_cf,_d0,_d1){
-var _d2=jetspeed;
-var _d3=_d2.prefs;
-var _d4=dojo;
-var _d5=_d3.printModeOnly;
-if(djConfig.isDebug&&_d2.debug.profile&&_d5==null){
-_d4.profile.start("loadFromPSML");
-}
-var _d6=this._parsePSML(_cf);
-jetspeed.rootfrag=_d6;
-if(_d6==null){
+},retrievePsml:function(_d0){
+var _d1=jetspeed;
+if(_d0==null){
+_d0=new _d1.om.PageCLCreateWidget();
+}
+var _d2=this.getPsmlUrl();
+var _d3="text/xml";
+if(_d1.debug.retrievePsml){
+dojo.debug("retrievePsml url: "+_d2);
+}
+_d1.url.retrieveContent({url:_d2,mimetype:_d3},_d0,this,_d1.debugContentDumpIds);
+},loadFromPSML:function(_d4,_d5,_d6){
+var _d7=jetspeed;
+var _d8=_d7.prefs;
+var _d9=dojo;
+var _da=_d8.printModeOnly;
+if(djConfig.isDebug&&_d7.debug.profile&&_da==null){
+_d9.profile.start("loadFromPSML");
+}
+var _db=this._parsePSML(_d4);
+jetspeed.rootfrag=_db;
+if(_db==null){
 return;
 }
 this.portletsByPageColumn={};
-var _d7={};
+var _dc={};
 if(this.portletDecorator){
-_d7[this.portletDecorator]=true;
+_dc[this.portletDecorator]=true;
 }
-this.columnsStructure=this._layoutCreateModel(_d6,0,null,this.portletsByPageColumn,true,_d7,_d4,_d2);
-this.rootFragmentId=_d6.id;
+this.columnsStructure=this._layoutCreateModel(_db,0,null,this.portletsByPageColumn,true,_dc,_d9,_d7);
+this.rootFragmentId=_db.id;
 this.editMode=false;
-for(var _d8 in _d7){
-_d2.loadPortletDecorationStyles(_d8,_d3,true);
+for(var _dd in _dc){
+_d7.loadPortletDecorationStyles(_dd,_d8,true);
+}
+if(_d8.windowTiling){
+this._createColsStart(document.getElementById(_d7.id.DESKTOP),_d7.id.COLUMNS);
 }
-if(_d3.windowTiling){
-this._createColsStart(document.getElementById(_d2.id.DESKTOP),_d2.id.COLUMNS);
+this.createLayoutInfo(_d7);
+var _de=this.portletsByPageColumn["z"];
+if(_de){
+_de.sort(this._loadPortletZIndexCompare);
 }
-this.createLayoutInfo(_d2);
-var _d9=this.portletsByPageColumn["z"];
-if(_d9){
-_d9.sort(this._loadPortletZIndexCompare);
-}
-if(typeof _d1=="undefined"){
-_d1=null;
-}
-if(_d1!=null||(this.actions!=null&&this.actions[_d2.id.ACT_VIEW]!=null)){
-if(!this.isUA()&&this.actions!=null&&(this.actions[_d2.id.ACT_EDIT]!=null||this.actions[_d2.id.ACT_VIEW]!=null)){
-if(_d1==null){
-_d1={};
-}
-if((typeof _d1.editModeMove=="undefined")&&this._perms(_d3,_d2.id.PM_MZ_P,String.fromCharCode)){
-_d1.editModeMove=true;
-}
-var _da=_d2.url.parse(window.location.href);
-if(!_d1.editModeMove){
-var _db=_d2.url.getQueryParameter(_da,_d2.id.PG_ED_STATE_PARAM);
-if(_db!=null){
-_db="0x"+_db;
-if((_db&_d2.id.PM_MZ_P)>0){
-_d1.editModeMove=true;
+if(typeof _d6=="undefined"){
+_d6=null;
+}
+if(_d6!=null||(this.actions!=null&&this.actions[_d7.id.ACT_VIEW]!=null)){
+if(!this.isUA()&&this.actions!=null&&(this.actions[_d7.id.ACT_EDIT]!=null||this.actions[_d7.id.ACT_VIEW]!=null)){
+if(_d6==null){
+_d6={};
 }
+if((typeof _d6.editModeMove=="undefined")&&this._perms(_d8,_d7.id.PM_MZ_P,String.fromCharCode)){
+_d6.editModeMove=true;
 }
+var _df=_d7.url.parse(window.location.href);
+if(!_d6.editModeMove){
+var _e0=_d7.url.getQueryParameter(_df,_d7.id.PG_ED_STATE_PARAM);
+if(_e0!=null){
+_e0="0x"+_e0;
+if((_e0&_d7.id.PM_MZ_P)>0){
+_d6.editModeMove=true;
 }
-if(_d1.editModeMove&&!_d1.windowTitles){
-var _dc=_d2.url.getQueryParameter(_da,_d2.id.PG_ED_TITLES_PARAM);
-if(_dc!=null){
-var _dd=_dc.length;
-var _de=new Array(_dd/2);
-var _df=String.fromCharCode;
-var _e0=0,chI=0;
-while(chI<(_dd-1)){
-_de[_e0]=_df(Number("0x"+_dc.substring(chI,(chI+2))));
-_e0++;
+}
+}
+if(_d6.editModeMove&&!_d6.windowTitles){
+var _e1=_d7.url.getQueryParameter(_df,_d7.id.PG_ED_TITLES_PARAM);
+if(_e1!=null){
+var _e2=_e1.length;
+var _e3=new Array(_e2/2);
+var _e4=String.fromCharCode;
+var _e5=0,chI=0;
+while(chI<(_e2-1)){
+_e3[_e5]=_e4(Number("0x"+_e1.substring(chI,(chI+2))));
+_e5++;
 chI+=2;
 }
-var _e2=null;
+var _e7=null;
 try{
-_e2=eval("({"+_de.join("")+"})");
+_e7=eval("({"+_e3.join("")+"})");
 }
 catch(e){
 if(djConfig.isDebug){
-dojo.debug("cannot parse json: "+_de.join(""));
+dojo.debug("cannot parse json: "+_e3.join(""));
 }
 }
-if(_e2!=null){
-var _e3=false;
-for(var _e4 in this.portlets){
-var _e5=this.portlets[_e4];
-if(_e5!=null&&!_e2[_e5.entityId]){
-_e3=true;
+if(_e7!=null){
+var _e8=false;
+for(var _e9 in this.portlets){
+var _ea=this.portlets[_e9];
+if(_ea!=null&&!_e7[_ea.entityId]){
+_e8=true;
 break;
 }
 }
-if(!_e3){
-_d1.windowTitles=_e2;
+if(!_e8){
+_d6.windowTitles=_e7;
 }
 }
 }
 }
 }else{
-_d1=null;
+_d6=null;
 }
 }
-if(_d1!=null){
-_d2.url.loadingIndicatorShow("loadpageeditor",true);
+if(_d6!=null){
+_d7.url.loadingIndicatorShow("loadpageeditor",true);
 }
-var _e6=new _d2.PortletRenderer(true,true,_d0,null,true,_d1);
-_e6.renderAllTimeDistribute();
-},loadPostRender:function(_e7,_e8){
-var _e9=jetspeed;
-var _ea=_e9.prefs.printModeOnly;
-if(_ea==null){
+var _eb=new _d7.PortletRenderer(true,true,_d5,null,true,_d6);
+_eb.renderAllTimeDistribute();
+},loadPostRender:function(_ec,_ed){
+var _ee=jetspeed;
+var _ef=_ee.prefs.printModeOnly;
+if(_ef==null){
 this._portletsInitWinState(this.portletsByPageColumn["z"]);
-this.retrieveMenuDeclarations(true,_e7,_e8);
+this.retrieveMenuDeclarations(true,_ec,_ed);
 }else{
-for(var _eb in this.portlets){
-var _ec=this.portlets[_eb];
-if(_ec!=null){
-_ec.renderAction(null,_ea.action);
+for(var _f0 in this.portlets){
+var _f1=this.portlets[_f0];
+if(_f1!=null){
+_f1.renderAction(null,_ef.action);
 }
 break;
 }
-if(_e7){
-_e9.updatePageEnd();
-}
+if(_ec){
+_ee.updatePageEnd();
 }
-if(_e9.UAie6){
-_e9.ui.evtConnect("after",window,"onresize",_e9.ui.windowResizeMgr,"onResize",dojo.event);
-_e9.ui.windowResizeMgr.onResizeDelayedCompare();
 }
-var _ed,_ee=this.columns;
-if(_ee){
-for(var i=0;i<_ee.length;i++){
-_ed=_ee[i].domNode;
-if(!_ed.childNodes||_ed.childNodes.length==0){
-_ed.style.height="1px";
+_ee.ui.evtConnect("after",window,"onresize",_ee.ui.windowResizeMgr,"onResize",dojo.event);
+_ee.ui.windowResizeMgr.onResizeDelayedCompare();
+var _f2,_f3=this.columns;
+if(_f3){
+for(var i=0;i<_f3.length;i++){
+_f2=_f3[i].domNode;
+if(!_f2.childNodes||_f2.childNodes.length==0){
+_f2.style.height="1px";
 }
 }
 }
-var _f0=this.maximizedOnInit;
-if(_f0!=null){
-var _f1=this.getPWin(_f0);
-if(_f1==null){
-dojo.raise("Cannot identify window to maximize");
+var _f5=this.maximizedOnInit;
+if(_f5!=null){
+var _f6=this.getPWin(_f5);
+if(_f6==null){
+dojo.raise("no pWin to max");
 }else{
-dojo.lang.setTimeout(_f1,_f1._postCreateMaximizeWindow,500);
+dojo.lang.setTimeout(_f6,_f6._postCreateMaximizeWindow,500);
 }
 this.maximizedOnInit=null;
 }
-dojo.lang.setTimeout(_e9.url,_e9.url.loadingIndicatorStepPreload,1800);
-},loadPostRetrieveMenus:function(_f2,_f3){
-var _f4=jetspeed;
-this.renderPageControls(_f4);
-if(_f3){
-_f4.editPageInitiate(_f4,_f3);
-}
-if(_f2){
-_f4.updatePageEnd();
-}
-this.syncPageControls(_f4);
-},_parsePSML:function(_f5){
-var _f6=jetspeed;
-var _f7=dojo;
-var _f8=_f5.getElementsByTagName("page");
-if(!_f8||_f8.length>1||_f8[0]==null){
-_f7.raise("Expected one <page> in PSML");
-}
-var _f9=_f8[0];
-var _fa=_f9.childNodes;
-var _fb=new RegExp("(name|path|profiledPath|title|short-title|uIA|npe)");
-var _fc=null;
-var _fd={};
-for(var i=0;i<_fa.length;i++){
-var _ff=_fa[i];
-if(_ff.nodeType!=1){
+dojo.lang.setTimeout(_ee.url,_ee.url.loadingIndicatorStepPreload,1800);
+},loadPostRetrieveMenus:function(_f7,_f8){
+var _f9=jetspeed;
+this.renderPageControls(_f9);
+if(_f8){
+_f9.editPageInitiate(_f9,_f8);
+}
+if(_f7){
+_f9.updatePageEnd();
+}
+this.syncPageControls(_f9);
+},_parsePSML:function(_fa){
+var _fb=jetspeed;
+var _fc=dojo;
+var _fd=_fa.getElementsByTagName("page");
+if(!_fd||_fd.length>1||_fd[0]==null){
+_fc.raise("<page>");
+}
+var _fe=_fd[0];
+var _ff=_fe.childNodes;
+var _100=new RegExp("(name|path|profiledPath|title|short-title|uIA|npe)");
+var _101=null;
+var _102={};
+for(var i=0;i<_ff.length;i++){
+var _104=_ff[i];
+if(_104.nodeType!=1){
 continue;
 }
-var _100=_ff.nodeName;
-if(_100=="fragment"){
-_fc=_ff;
+var _105=_104.nodeName;
+if(_105=="fragment"){
+_101=_104;
 }else{
-if(_100=="defaults"){
-this.layoutDecorator=_ff.getAttribute("layout-decorator");
-var _101=_ff.getAttribute("portlet-decorator");
-var _102=_f6.prefs.portletDecorationsAllowed;
-if(!_102||_f7.lang.indexOf(_102,_101)==-1){
-_101=_f6.prefs.windowDecoration;
+if(_105=="defaults"){
+this.layoutDecorator=_104.getAttribute("layout-decorator");
+var _106=_104.getAttribute("portlet-decorator");
+var _107=_fb.prefs.portletDecorationsAllowed;
+if(!_107||_fc.lang.indexOf(_107,_106)==-1){
+_106=_fb.prefs.windowDecoration;
 }
-this.portletDecorator=_101;
+this.portletDecorator=_106;
 }else{
-if(_100&&_100.match(_fb)){
-if(_100=="short-title"){
-_100="shortTitle";
+if(_105&&_105.match(_100)){
+if(_105=="short-title"){
+_105="shortTitle";
 }
-this[_100]=((_ff&&_ff.firstChild)?_ff.firstChild.nodeValue:null);
+this[_105]=((_104&&_104.firstChild)?_104.firstChild.nodeValue:null);
 }else{
-if(_100=="action"){
-this._parsePSMLAction(_ff,_fd);
+if(_105=="action"){
+this._parsePSMLAction(_104,_102);
 }
 }
 }
 }
 }
-this.actions=_fd;
-if(_fc==null){
-_f7.raise("No root fragment in PSML");
+this.actions=_102;
+if(_101==null){
+_fc.raise("root frag");
 return null;
 }
 if(this.requiredLayoutDecorator!=null&&this.pageUrlFallback!=null){
 if(this.layoutDecorator!=this.requiredLayoutDecorator){
-if(_f6.debug.ajaxPageNav){
-_f7.debug("ajaxPageNavigation _parsePSML different layout decorator ("+this.requiredLayoutDecorator+" != "+this.layoutDecorator+") - fallback to normal page navigation - "+this.pageUrlFallback);
+if(_fb.debug.ajaxPageNav){
+_fc.debug("ajaxPageNavigation _parsePSML different layout decorator ("+this.requiredLayoutDecorator+" != "+this.layoutDecorator+") - fallback to normal page navigation - "+this.pageUrlFallback);
 }
-_f6.pageNavigate(this.pageUrlFallback,null,true);
+_fb.pageNavigate(this.pageUrlFallback,null,true);
 return null;
 }else{
 if(this.addToHistory){
-var _103=this.getPageUrl();
-_f7.undo.browser.addToHistory({back:function(){
-if(_f6.debug.ajaxPageNav){
-dojo.debug("back-nav-button: "+_103);
+var _108=this.getPageUrl();
+_fc.undo.browser.addToHistory({back:function(){
+if(_fb.debug.ajaxPageNav){
+dojo.debug("back-nav-button: "+_108);
 }
-_f6.updatePage(_103,true);
+_fb.updatePage(_108,true);
 },forward:function(){
-if(_f6.debug.ajaxPageNav){
-dojo.debug("forward-nav-button: "+_103);
+if(_fb.debug.ajaxPageNav){
+dojo.debug("forward-nav-button: "+_108);
 }
-_f6.updatePage(_103,true);
+_fb.updatePage(_108,true);
 },changeUrl:escape(this.getPath())});
 }
 }
 }else{
-if(!djConfig.preventBackButtonFix&&_f6.prefs.ajaxPageNavigation){
-var _103=this.getPageUrl();
-_f7.undo.browser.setInitialState({back:function(){
-if(_f6.debug.ajaxPageNav){
-dojo.debug("back-nav-button initial: "+_103);
+if(!djConfig.preventBackButtonFix&&_fb.prefs.ajaxPageNavigation){
+var _108=this.getPageUrl();
+_fc.undo.browser.setInitialState({back:function(){
+if(_fb.debug.ajaxPageNav){
+dojo.debug("back-nav-button initial: "+_108);
 }
-_f6.updatePage(_103,true);
+_fb.updatePage(_108,true);
 },forward:function(){
-if(_f6.debug.ajaxPageNav){
-dojo.debug("forward-nav-button initial: "+_103);
+if(_fb.debug.ajaxPageNav){
+dojo.debug("forward-nav-button initial: "+_108);
 }
-_f6.updatePage(_103,true);
+_fb.updatePage(_108,true);
 },changeUrl:escape(this.getPath())});
 }
 }
-var _104=this._parsePSMLFrag(_fc,0,false);
-return _104;
-},_parsePSMLFrag:function(_105,_106,_107){
-var _108=jetspeed;
-var _109=new Array();
-var _10a=((_105!=null)?_105.getAttribute("type"):null);
-if(_10a!="layout"){
-dojo.raise("Expected layout fragment: "+_105);
+var _109=this._parsePSMLFrag(_101,0,false);
+return _109;
+},_parsePSMLFrag:function(_10a,_10b,_10c){
+var _10d=jetspeed;
+var _10e=new Array();
+var _10f=((_10a!=null)?_10a.getAttribute("type"):null);
+if(_10f!="layout"){
+dojo.raise("!layout frag="+_10a);
 return null;
 }
-if(!_107){
-var _10b=_105.getAttribute("name");
-if(_10b!=null){
-_10b=_10b.toLowerCase();
-if(_10b.indexOf("noactions")!=-1){
-_107=true;
+if(!_10c){
+var _110=_10a.getAttribute("name");
+if(_110!=null){
+_110=_110.toLowerCase();
+if(_110.indexOf("noactions")!=-1){
+_10c=true;
 }
 }
 }
-var _10c=null,_10d=0;
-var _10e={};
-var _10f=_105.childNodes;
-var _110,_111,_112,_113,_114;
-for(var i=0;i<_10f.length;i++){
-_110=_10f[i];
-if(_110.nodeType!=1){
+var _111=null,_112=0;
+var _113={};
+var _114=_10a.childNodes;
+var _115,_116,_117,_118,_119;
+for(var i=0;i<_114.length;i++){
+_115=_114[i];
+if(_115.nodeType!=1){
 continue;
 }
-_111=_110.nodeName;
-if(_111=="fragment"){
-_114=_110.getAttribute("type");
-if(_114=="layout"){
-var _116=this._parsePSMLFrag(_110,i,_107);
-if(_116!=null){
-_109.push(_116);
+_116=_115.nodeName;
+if(_116=="fragment"){
+_119=_115.getAttribute("type");
+if(_119=="layout"){
+var _11b=this._parsePSMLFrag(_115,i,_10c);
+if(_11b!=null){
+_10e.push(_11b);
+}
+}else{
+var _11c=this._parsePSMLProps(_115,null);
+var _11d=_11c[_10d.id.PP_WINDOW_ICON];
+if(_11d==null||_11d.length==0){
+_11d=this._parsePSMLChildOrAttr(_115,"icon");
+if(_11d!=null&&_11d.length>0){
+_11c[_10d.id.PP_WINDOW_ICON]=_11d;
+}
+}
+_10e.push({id:_115.getAttribute("id"),type:_119,name:_115.getAttribute("name"),properties:_11c,actions:this._parsePSMLActions(_115,null),currentActionState:this._parsePSMLChildOrAttr(_115,"state"),currentActionMode:this._parsePSMLChildOrAttr(_115,"mode"),decorator:_115.getAttribute("decorator"),layoutActionsDisabled:_10c,documentOrderIndex:i});
+}
+}else{
+if(_116=="property"){
+if(this._parsePSMLProp(_115,_113)=="sizes"){
+if(_111!=null){
+dojo.raise("<sizes>: "+_10a);
+return null;
 }
+if(_10d.prefs.printModeOnly!=null){
+_111=["100"];
+_112=100;
 }else{
-var _117=this._parsePSMLProps(_110,null);
-var _118=_117[_108.id.PP_WINDOW_ICON];
-if(_118==null||_118.length==0){
-_118=this._parsePSMLChildOrAttr(_110,"icon");
+_118=_115.getAttribute("value");
 if(_118!=null&&_118.length>0){
-_117[_108.id.PP_WINDOW_ICON]=_118;
-}
-}
-_109.push({id:_110.getAttribute("id"),type:_114,name:_110.getAttribute("name"),properties:_117,actions:this._parsePSMLActions(_110,null),currentActionState:this._parsePSMLChildOrAttr(_110,"state"),currentActionMode:this._parsePSMLChildOrAttr(_110,"mode"),decorator:_110.getAttribute("decorator"),layoutActionsDisabled:_107,documentOrderIndex:i});
-}
-}else{
-if(_111=="property"){
-if(this._parsePSMLProp(_110,_10e)=="sizes"){
-if(_10c!=null){
-dojo.raise("Layout fragment has multiple sizes definitions: "+_105);
-return null;
-}
-if(_108.prefs.printModeOnly!=null){
-_10c=["100"];
-_10d=100;
-}else{
-_113=_110.getAttribute("value");
-if(_113!=null&&_113.length>0){
-_10c=_113.split(",");
-for(var j=0;j<_10c.length;j++){
+_111=_118.split(",");
+for(var j=0;j<_111.length;j++){
 var re=/^[^0-9]*([0-9]+)[^0-9]*$/;
-_10c[j]=_10c[j].replace(re,"$1");
-_10d+=new Number(_10c[j]);
+_111[j]=_111[j].replace(re,"$1");
+_112+=new Number(_111[j]);
 }
 }
 }
@@ -1184,200 +1192,200 @@
 }
 }
 }
-if(_10c==null){
-_10c=["100"];
-_10d=100;
+if(_111==null){
+_111=["100"];
+_112=100;
 }
-var _11b=_10c.length;
-var _11c=_109.length;
-var pCi=_108.id.PP_COLUMN;
-var pRi=_108.id.PP_ROW;
-var _11f=new Array(_11b);
-var _120=new Array(_11b);
-for(var cI=0;cI<_11b;cI++){
-_11f[cI]=[];
-_120[cI]={head:-1,tail:-1,high:-1};
+var _120=_111.length;
+var _121=_10e.length;
+var pCi=_10d.id.PP_COLUMN;
+var pRi=_10d.id.PP_ROW;
+var _124=new Array(_120);
+var _125=new Array(_120);
+for(var cI=0;cI<_120;cI++){
+_124[cI]=[];
+_125[cI]={head:-1,tail:-1,high:-1};
 }
-for(var _122=0;_122<_11c;_122++){
-var frag=_109[_122];
-var _124=frag.properties;
-var col=_124[pCi];
-var row=_124[pRi];
-var _127=null;
-if(col==null||col>=_11b){
-_127=_11b-1;
+for(var _127=0;_127<_121;_127++){
+var frag=_10e[_127];
+var _129=frag.properties;
+var col=_129[pCi];
+var row=_129[pRi];
+var _12c=null;
+if(col==null||col>=_120){
+_12c=_120-1;
 }else{
 if(col<0){
-_127=0;
+_12c=0;
 }
 }
-if(_127!=null){
-col=_124[pCi]=String(_127);
+if(_12c!=null){
+col=_129[pCi]=String(_12c);
 }
-var ll=_11f[col];
-var _129=ll.length;
-var _12a=_120[col];
+var ll=_124[col];
+var _12e=ll.length;
+var _12f=_125[col];
 if(row<0){
-row=_124[pRi]=0;
+row=_129[pRi]=0;
 }else{
 if(row==null){
-row=_12a.high+1;
+row=_12f.high+1;
+}
 }
+var _130={i:_127,row:row,next:-1};
+ll.push(_130);
+if(_12e==0){
+_12f.head=_12f.tail=0;
+_12f.high=row;
+}else{
+if(row>_12f.high){
+ll[_12f.tail].next=_12e;
+_12f.high=row;
+_12f.tail=_12e;
+}else{
+var _131=_12f.head;
+var _132=-1;
+while(ll[_131].row<row){
+_132=_131;
+_131=ll[_131].next;
+}
+if(ll[_131].row==row){
+var _133=new Number(row)+1;
+ll[_131].row=_133;
+if(_12f.tail==_131){
+_12f.high=_133;
+}
+}
+_130.next=_131;
+if(_132==-1){
+_12f.head=_12e;
+}else{
+ll[_132].next=_12e;
+}
+}
+}
+}
+var _134=new Array(_121);
+var _135=0;
+for(var cI=0;cI<_120;cI++){
+var ll=_124[cI];
+var _12f=_125[cI];
+var _136=0;
+var _137=_12f.head;
+while(_137!=-1){
+var _130=ll[_137];
+var frag=_10e[_130.i];
+_134[_135]=frag;
+frag.properties[pRi]=_136;
+_135++;
+_136++;
+_137=_130.next;
+}
+}
+return {id:_10a.getAttribute("id"),type:_10f,name:_10a.getAttribute("name"),decorator:_10a.getAttribute("decorator"),columnSizes:_111,columnSizesSum:_112,properties:_113,fragments:_134,layoutActionsDisabled:_10c,documentOrderIndex:_10b};
+},_parsePSMLActions:function(_138,_139){
+if(_139==null){
+_139={};
+}
+var _13a=_138.getElementsByTagName("action");
+for(var _13b=0;_13b<_13a.length;_13b++){
+var _13c=_13a[_13b];
+this._parsePSMLAction(_13c,_139);
+}
+return _139;
+},_parsePSMLAction:function(_13d,_13e){
+var _13f=_13d.getAttribute("id");
+if(_13f!=null){
+var _140=_13d.getAttribute("type");
+var _141=_13d.getAttribute("name");
+var _142=_13d.getAttribute("url");
+var _143=_13d.getAttribute("alt");
+_13e[_13f.toLowerCase()]={id:_13f,type:_140,label:_141,url:_142,alt:_143};
+}
+},_parsePSMLChildOrAttr:function(_144,_145){
+var _146=null;
+var _147=_144.getElementsByTagName(_145);
+if(_147!=null&&_147.length==1&&_147[0].firstChild!=null){
+_146=_147[0].firstChild.nodeValue;
+}
+if(!_146){
+_146=_144.getAttribute(_145);
+}
+if(_146==null||_146.length==0){
+_146=null;
+}
+return _146;
+},_parsePSMLProps:function(_148,_149){
+if(_149==null){
+_149={};
+}
+var _14a=_148.getElementsByTagName("property");
+for(var _14b=0;_14b<_14a.length;_14b++){
+this._parsePSMLProp(_14a[_14b],_149);
 }
-var _12b={i:_122,row:row,next:-1};
-ll.push(_12b);
-if(_129==0){
-_12a.head=_12a.tail=0;
-_12a.high=row;
-}else{
-if(row>_12a.high){
-ll[_12a.tail].next=_129;
-_12a.high=row;
-_12a.tail=_129;
-}else{
-var _12c=_12a.head;
-var _12d=-1;
-while(ll[_12c].row<row){
-_12d=_12c;
-_12c=ll[_12c].next;
-}
-if(ll[_12c].row==row){
-var _12e=new Number(row)+1;
-ll[_12c].row=_12e;
-if(_12a.tail==_12c){
-_12a.high=_12e;
-}
-}
-_12b.next=_12c;
-if(_12d==-1){
-_12a.head=_129;
-}else{
-ll[_12d].next=_129;
-}
-}
-}
-}
-var _12f=new Array(_11c);
-var _130=0;
-for(var cI=0;cI<_11b;cI++){
-var ll=_11f[cI];
-var _12a=_120[cI];
-var _131=0;
-var _132=_12a.head;
-while(_132!=-1){
-var _12b=ll[_132];
-var frag=_109[_12b.i];
-_12f[_130]=frag;
-frag.properties[pRi]=_131;
-_130++;
-_131++;
-_132=_12b.next;
-}
-}
-return {id:_105.getAttribute("id"),type:_10a,name:_105.getAttribute("name"),decorator:_105.getAttribute("decorator"),columnSizes:_10c,columnSizesSum:_10d,properties:_10e,fragments:_12f,layoutActionsDisabled:_107,documentOrderIndex:_106};
-},_parsePSMLActions:function(_133,_134){
-if(_134==null){
-_134={};
-}
-var _135=_133.getElementsByTagName("action");
-for(var _136=0;_136<_135.length;_136++){
-var _137=_135[_136];
-this._parsePSMLAction(_137,_134);
-}
-return _134;
-},_parsePSMLAction:function(_138,_139){
-var _13a=_138.getAttribute("id");
-if(_13a!=null){
-var _13b=_138.getAttribute("type");
-var _13c=_138.getAttribute("name");
-var _13d=_138.getAttribute("url");
-var _13e=_138.getAttribute("alt");
-_139[_13a.toLowerCase()]={id:_13a,type:_13b,label:_13c,url:_13d,alt:_13e};
-}
-},_parsePSMLChildOrAttr:function(_13f,_140){
-var _141=null;
-var _142=_13f.getElementsByTagName(_140);
-if(_142!=null&&_142.length==1&&_142[0].firstChild!=null){
-_141=_142[0].firstChild.nodeValue;
-}
-if(!_141){
-_141=_13f.getAttribute(_140);
-}
-if(_141==null||_141.length==0){
-_141=null;
-}
-return _141;
-},_parsePSMLProps:function(_143,_144){
-if(_144==null){
-_144={};
-}
-var _145=_143.getElementsByTagName("property");
-for(var _146=0;_146<_145.length;_146++){
-this._parsePSMLProp(_145[_146],_144);
-}
-return _144;
-},_parsePSMLProp:function(_147,_148){
-var _149=_147.getAttribute("name");
-var _14a=_147.getAttribute("value");
-_148[_149]=_14a;
 return _149;
-},_layoutCreateModel:function(_14b,_14c,_14d,_14e,_14f,_150,_151,_152){
-var jsId=_152.id;
-var _154=this.columns.length;
-var _155=this._layoutCreateColsModel(_14b,_14c,_14d,_14f);
-var _156=_155.columnsInLayout;
-if(_155.addedLayoutHeaderColumn){
-_154++;
-}
-var _157=(_156==null?0:_156.length);
-var _158=new Array(_157);
-var _159=new Array(_157);
-for(var i=0;i<_14b.fragments.length;i++){
-var _15b=_14b.fragments[i];
-if(_15b.type=="layout"){
-var _15c=i;
-var _15c=(_15b.properties?_15b.properties[_152.id.PP_COLUMN]:i);
-if(_15c==null||_15c<0||_15c>=_157){
-_15c=(_157>0?(_157-1):0);
-}
-_159[_15c]=true;
-this._layoutCreateModel(_15b,(_14c+1),_156[_15c],_14e,false,_150,_151,_152);
-}else{
-this._layoutCreatePortlet(_15b,_14b,_156,_154,_14e,_158,_150,_151,_152);
-}
-}
-return _156;
-},_layoutCreatePortlet:function(_15d,_15e,_15f,_160,_161,_162,_163,_164,_165){
-if(_15d&&_165.debugPortletEntityIdFilter){
-if(!_164.lang.inArray(_165.debugPortletEntityIdFilter,_15d.id)){
-_15d=null;
-}
-}
-if(_15d){
-var _166="z";
-var _167=_15d.properties[_165.id.PP_DESKTOP_EXTENDED];
-var _168=_165.prefs.windowTiling;
-var _169=_168;
-var _16a=_165.prefs.windowHeightExpand;
-if(_167!=null&&_168&&_165.prefs.printModeOnly==null){
-var _16b=_167.split(_165.id.PP_PAIR_SEPARATOR);
-var _16c=null,_16d=0,_16e=null,_16f=null,_170=false;
-if(_16b!=null&&_16b.length>0){
-var _171=_165.id.PP_PROP_SEPARATOR;
-for(var _172=0;_172<_16b.length;_172++){
-_16c=_16b[_172];
-_16d=((_16c!=null)?_16c.length:0);
-if(_16d>0){
-var _173=_16c.indexOf(_171);
-if(_173>0&&_173<(_16d-1)){
-_16e=_16c.substring(0,_173);
-_16f=_16c.substring(_173+1);
-_170=((_16f=="true")?true:false);
-if(_16e==_165.id.PP_STATICPOS){
-_169=_170;
-}else{
-if(_16e==_165.id.PP_FITHEIGHT){
-_16a=_170;
+},_parsePSMLProp:function(_14c,_14d){
+var _14e=_14c.getAttribute("name");
+var _14f=_14c.getAttribute("value");
+_14d[_14e]=_14f;
+return _14e;
+},_layoutCreateModel:function(_150,_151,_152,_153,_154,_155,_156,_157){
+var jsId=_157.id;
+var _159=this.columns.length;
+var _15a=this._layoutCreateColsModel(_150,_151,_152,_154);
+var _15b=_15a.columnsInLayout;
+if(_15a.addedLayoutHeaderColumn){
+_159++;
+}
+var _15c=(_15b==null?0:_15b.length);
+var _15d=new Array(_15c);
+var _15e=new Array(_15c);
+for(var i=0;i<_150.fragments.length;i++){
+var _160=_150.fragments[i];
+if(_160.type=="layout"){
+var _161=i;
+var _161=(_160.properties?_160.properties[_157.id.PP_COLUMN]:i);
+if(_161==null||_161<0||_161>=_15c){
+_161=(_15c>0?(_15c-1):0);
+}
+_15e[_161]=true;
+this._layoutCreateModel(_160,(_151+1),_15b[_161],_153,false,_155,_156,_157);
+}else{
+this._layoutCreatePortlet(_160,_150,_15b,_159,_153,_15d,_155,_156,_157);
+}
+}
+return _15b;
+},_layoutCreatePortlet:function(_162,_163,_164,_165,_166,_167,_168,_169,_16a){
+if(_162&&_16a.debugPortletEntityIdFilter){
+if(!_169.lang.inArray(_16a.debugPortletEntityIdFilter,_162.id)){
+_162=null;
+}
+}
+if(_162){
+var _16b="z";
+var _16c=_162.properties[_16a.id.PP_DESKTOP_EXTENDED];
+var _16d=_16a.prefs.windowTiling;
+var _16e=_16d;
+var _16f=_16a.prefs.windowHeightExpand;
+if(_16c!=null&&_16d&&_16a.prefs.printModeOnly==null){
+var _170=_16c.split(_16a.id.PP_PAIR_SEPARATOR);
+var _171=null,_172=0,_173=null,_174=null,_175=false;
+if(_170!=null&&_170.length>0){
+var _176=_16a.id.PP_PROP_SEPARATOR;
+for(var _177=0;_177<_170.length;_177++){
+_171=_170[_177];
+_172=((_171!=null)?_171.length:0);
+if(_172>0){
+var _178=_171.indexOf(_176);
+if(_178>0&&_178<(_172-1)){
+_173=_171.substring(0,_178);
+_174=_171.substring(_178+1);
+_175=((_174=="true")?true:false);
+if(_173==_16a.id.PP_STATICPOS){
+_16e=_175;
+}else{
+if(_173==_16a.id.PP_FITHEIGHT){
+_16f=_175;
 }
 }
 }
@@ -1385,177 +1393,177 @@
 }
 }
 }else{
-if(!_168){
-_169=false;
-}
-}
-_15d.properties[_165.id.PP_WINDOW_POSITION_STATIC]=_169;
-_15d.properties[_165.id.PP_WINDOW_HEIGHT_TO_FIT]=_16a;
-if(_169&&_168){
-var _174=_15f.length;
-var _175=_15d.properties[_165.id.PP_COLUMN];
-if(_175==null||_175>=_174){
-_175=_174-1;
-}else{
-if(_175<0){
-_175=0;
-}
-}
-if(_162[_175]==null){
-_162[_175]=new Array();
-}
-_162[_175].push(_15d.id);
-var _176=_160+new Number(_175);
-_166=_176.toString();
-}
-if(_15d.currentActionState==_165.id.ACT_MAXIMIZE){
-this.maximizedOnInit=_15d.id;
-}
-var _177=_15d.decorator;
-if(_177!=null&&_177.length>0){
-if(_164.lang.indexOf(_165.prefs.portletDecorationsAllowed,_177)==-1){
-_177=null;
-}
-}
-if(_177==null||_177.length==0){
-if(djConfig.isDebug&&_165.debug.windowDecorationRandom){
-_177=_165.prefs.portletDecorationsAllowed[Math.floor(Math.random()*_165.prefs.portletDecorationsAllowed.length)];
-}else{
-_177=this.portletDecorator;
-}
-}
-var _178=_15d.properties||{};
-_178[_165.id.PP_WINDOW_DECORATION]=_177;
-_163[_177]=true;
-var _179=_15d.actions||{};
-var _17a=new _165.om.Portlet(_15d.name,_15d.id,null,_178,_179,_15d.currentActionState,_15d.currentActionMode,_15d.layoutActionsDisabled);
-_17a.initialize();
-this.putPortlet(_17a);
-if(_161[_166]==null){
-_161[_166]=new Array();
-}
-_161[_166].push({portlet:_17a,layout:_15e.id});
-}
-},_layoutCreateColsModel:function(_17b,_17c,_17d,_17e){
-var _17f=jetspeed;
-this.layouts[_17b.id]=_17b;
-var _180=false;
-var _181=new Array();
-if(_17f.prefs.windowTiling&&_17b.columnSizes.length>0){
-var _182=false;
-if(_17f.UAie){
-_182=true;
-}
-if(_17d!=null&&!_17e){
-var _183=new _17f.om.Column(0,_17b.id,(_182?_17b.columnSizesSum-0.1:_17b.columnSizesSum),this.columns.length,_17b.layoutActionsDisabled,_17c);
-_183.layoutHeader=true;
-this.columns.push(_183);
-if(_17d.buildColChildren==null){
-_17d.buildColChildren=new Array();
-}
-_17d.buildColChildren.push(_183);
-_17d=_183;
-_180=true;
-}
-for(var i=0;i<_17b.columnSizes.length;i++){
-var size=_17b.columnSizes[i];
-if(_182&&i==(_17b.columnSizes.length-1)){
+if(!_16d){
+_16e=false;
+}
+}
+_162.properties[_16a.id.PP_WINDOW_POSITION_STATIC]=_16e;
+_162.properties[_16a.id.PP_WINDOW_HEIGHT_TO_FIT]=_16f;
+if(_16e&&_16d){
+var _179=_164.length;
+var _17a=_162.properties[_16a.id.PP_COLUMN];
+if(_17a==null||_17a>=_179){
+_17a=_179-1;
+}else{
+if(_17a<0){
+_17a=0;
+}
+}
+if(_167[_17a]==null){
+_167[_17a]=new Array();
+}
+_167[_17a].push(_162.id);
+var _17b=_165+new Number(_17a);
+_16b=_17b.toString();
+}
+if(_162.currentActionState==_16a.id.ACT_MAXIMIZE){
+this.maximizedOnInit=_162.id;
+}
+var _17c=_162.decorator;
+if(_17c!=null&&_17c.length>0){
+if(_169.lang.indexOf(_16a.prefs.portletDecorationsAllowed,_17c)==-1){
+_17c=null;
+}
+}
+if(_17c==null||_17c.length==0){
+if(djConfig.isDebug&&_16a.debug.windowDecorationRandom){
+_17c=_16a.prefs.portletDecorationsAllowed[Math.floor(Math.random()*_16a.prefs.portletDecorationsAllowed.length)];
+}else{
+_17c=this.portletDecorator;
+}
+}
+var _17d=_162.properties||{};
+_17d[_16a.id.PP_WINDOW_DECORATION]=_17c;
+_168[_17c]=true;
+var _17e=_162.actions||{};
+var _17f=new _16a.om.Portlet(_162.name,_162.id,null,_17d,_17e,_162.currentActionState,_162.currentActionMode,_162.layoutActionsDisabled);
+_17f.initialize();
+this.putPortlet(_17f);
+if(_166[_16b]==null){
+_166[_16b]=new Array();
+}
+_166[_16b].push({portlet:_17f,layout:_163.id});
+}
+},_layoutCreateColsModel:function(_180,_181,_182,_183){
+var _184=jetspeed;
+this.layouts[_180.id]=_180;
+var _185=false;
+var _186=new Array();
+if(_184.prefs.windowTiling&&_180.columnSizes.length>0){
+var _187=false;
+if(_184.UAie){
+_187=true;
+}
+if(_182!=null&&!_183){
+var _188=new _184.om.Column(0,_180.id,(_187?_180.columnSizesSum-0.1:_180.columnSizesSum),this.columns.length,_180.layoutActionsDisabled,_181);
+_188.layoutHeader=true;
+this.columns.push(_188);
+if(_182.buildColChildren==null){
+_182.buildColChildren=new Array();
+}
+_182.buildColChildren.push(_188);
+_182=_188;
+_185=true;
+}
+for(var i=0;i<_180.columnSizes.length;i++){
+var size=_180.columnSizes[i];
+if(_187&&i==(_180.columnSizes.length-1)){
 size=size-0.1;
 }
-var _186=new _17f.om.Column(i,_17b.id,size,this.columns.length,_17b.layoutActionsDisabled);
-this.columns.push(_186);
-if(_17d!=null){
-if(_17d.buildColChildren==null){
-_17d.buildColChildren=new Array();
-}
-_17d.buildColChildren.push(_186);
-}
-_181.push(_186);
-}
-}
-return {columnsInLayout:_181,addedLayoutHeaderColumn:_180};
-},_portletsInitWinState:function(_187){
-var _188={};
-this.getPortletCurColRow(null,false,_188);
-for(var _189 in this.portlets){
-var _18a=this.portlets[_189];
-var _18b=_188[_18a.getId()];
-if(_18b==null&&_187){
-for(var i=0;i<_187.length;i++){
-if(_187[i].portlet.getId()==_18a.getId()){
-_18b={layout:_187[i].layout};
+var _18b=new _184.om.Column(i,_180.id,size,this.columns.length,_180.layoutActionsDisabled);
+this.columns.push(_18b);
+if(_182!=null){
+if(_182.buildColChildren==null){
+_182.buildColChildren=new Array();
+}
+_182.buildColChildren.push(_18b);
+}
+_186.push(_18b);
+}
+}
+return {columnsInLayout:_186,addedLayoutHeaderColumn:_185};
+},_portletsInitWinState:function(_18c){
+var _18d={};
+this.getPortletCurColRow(null,false,_18d);
+for(var _18e in this.portlets){
+var _18f=this.portlets[_18e];
+var _190=_18d[_18f.getId()];
+if(_190==null&&_18c){
+for(var i=0;i<_18c.length;i++){
+if(_18c[i].portlet.getId()==_18f.getId()){
+_190={layout:_18c[i].layout};
 break;
 }
 }
 }
-if(_18b!=null){
-_18a._initWinState(_18b,false);
+if(_190!=null){
+_18f._initWinState(_190,false);
 }else{
-dojo.raise("Window state data not found for portlet: "+_18a.getId());
+dojo.raise("Window state data not found for portlet: "+_18f.getId());
 }
 }
-},_loadPortletZIndexCompare:function(_18d,_18e){
-var _18f=null;
-var _190=null;
-var _191=null;
-_18f=_18d.portlet._getInitialZIndex();
-_190=_18e.portlet._getInitialZIndex();
-if(_18f&&!_190){
+},_loadPortletZIndexCompare:function(_192,_193){
+var _194=null;
+var _195=null;
+var _196=null;
+_194=_192.portlet._getInitialZIndex();
+_195=_193.portlet._getInitialZIndex();
+if(_194&&!_195){
 return -1;
 }else{
-if(_190&&!_18f){
+if(_195&&!_194){
 return 1;
 }else{
-if(_18f==_190){
+if(_194==_195){
 return 0;
 }
 }
 }
-return (_18f-_190);
-},_createColsStart:function(_192,_193){
+return (_194-_195);
+},_createColsStart:function(_197,_198){
 if(!this.columnsStructure||this.columnsStructure.length==0){
 return;
 }
-var _194=document.createElement("div");
-_194.id=_193;
-_194.setAttribute("id",_193);
-for(var _195=0;_195<this.columnsStructure.length;_195++){
-var _196=this.columnsStructure[_195];
-this._createCols(_196,_194);
-}
-_192.appendChild(_194);
-},_createCols:function(_197,_198){
-_197.createColumn();
-if(this.colFirstNormI==-1&&!_197.columnContainer&&!_197.layoutHeader){
-this.colFirstNormI=_197.getPageColumnIndex();
-}
-var _199=_197.buildColChildren;
-if(_199!=null&&_199.length>0){
-for(var _19a=0;_19a<_199.length;_19a++){
-this._createCols(_199[_19a],_197.domNode);
-}
-}
-delete _197.buildColChildren;
-_198.appendChild(_197.domNode);
-},_removeCols:function(_19b){
+var _199=document.createElement("div");
+_199.id=_198;
+_199.setAttribute("id",_198);
+for(var _19a=0;_19a<this.columnsStructure.length;_19a++){
+var _19b=this.columnsStructure[_19a];
+this._createCols(_19b,_199);
+}
+_197.appendChild(_199);
+},_createCols:function(_19c,_19d){
+_19c.createColumn();
+if(this.colFirstNormI==-1&&!_19c.columnContainer&&!_19c.layoutHeader){
+this.colFirstNormI=_19c.getPageColumnIndex();
+}
+var _19e=_19c.buildColChildren;
+if(_19e!=null&&_19e.length>0){
+for(var _19f=0;_19f<_19e.length;_19f++){
+this._createCols(_19e[_19f],_19c.domNode);
+}
+}
+delete _19c.buildColChildren;
+_19d.appendChild(_19c.domNode);
+},_removeCols:function(_1a0){
 if(!this.columns||this.columns.length==0){
 return;
 }
 for(var i=0;i<this.columns.length;i++){
 if(this.columns[i]){
-if(_19b){
-var _19d=jetspeed.ui.getPWinAndColChildren(this.columns[i].domNode,null);
-dojo.lang.forEach(_19d,function(_19e){
-_19b.appendChild(_19e);
+if(_1a0){
+var _1a2=jetspeed.ui.getPWinAndColChildren(this.columns[i].domNode,null);
+dojo.lang.forEach(_1a2,function(_1a3){
+_1a0.appendChild(_1a3);
 });
 }
 dojo.dom.removeNode(this.columns[i]);
 this.columns[i]=null;
 }
 }
-var _19f=dojo.byId(jetspeed.id.COLUMNS);
-if(_19f){
-dojo.dom.removeNode(_19f);
+var _1a4=dojo.byId(jetspeed.id.COLUMNS);
+if(_1a4){
+dojo.dom.removeNode(_1a4);
 }
 this.columns=[];
 },getColumnDefault:function(){
@@ -1563,114 +1571,114 @@
 return this.columns[this.colFirstNormI];
 }
 return null;
-},columnsEmptyCheck:function(_1a0){
-var _1a1=null;
-if(_1a0==null){
-return _1a1;
-}
-var _1a2=_1a0.childNodes,_1a3;
-if(_1a2){
-for(var i=0;i<_1a2.length;i++){
-_1a3=_1a2[i];
-var _1a5=this.columnEmptyCheck(_1a3,true);
-if(_1a5!=null){
-_1a1=_1a5;
-if(_1a1==false){
+},columnsEmptyCheck:function(_1a5){
+var _1a6=null;
+if(_1a5==null){
+return _1a6;
+}
+var _1a7=_1a5.childNodes,_1a8;
+if(_1a7){
+for(var i=0;i<_1a7.length;i++){
+_1a8=_1a7[i];
+var _1aa=this.columnEmptyCheck(_1a8,true);
+if(_1aa!=null){
+_1a6=_1aa;
+if(_1a6==false){
 break;
 }
 }
 }
 }
-return _1a1;
-},columnEmptyCheck:function(_1a6,_1a7){
-var _1a8=null;
-if(!_1a6||!_1a6.getAttribute){
-return _1a8;
-}
-var _1a9=_1a6.getAttribute("columnindex");
-if(!_1a9||_1a9.length==0){
-return _1a8;
-}
-var _1aa=_1a6.getAttribute("layoutid");
-if(_1aa==null||_1aa.length==0){
-var _1ab=_1a6.childNodes;
-_1a8=(!_1ab||_1ab.length==0);
-if(!_1a7){
-_1a6.style.height=(_1a8?"1px":"");
+return _1a6;
+},columnEmptyCheck:function(_1ab,_1ac){
+var _1ad=null;
+if(!_1ab||!_1ab.getAttribute){
+return _1ad;
+}
+var _1ae=_1ab.getAttribute("columnindex");
+if(!_1ae||_1ae.length==0){
+return _1ad;
+}
+var _1af=_1ab.getAttribute("layoutid");
+if(_1af==null||_1af.length==0){
+var _1b0=_1ab.childNodes;
+_1ad=(!_1b0||_1b0.length==0);
+if(!_1ac){
+_1ab.style.height=(_1ad?"1px":"");
 }
 }
-return _1a8;
-},getPortletCurColRow:function(_1ac,_1ad,_1ae){
+return _1ad;
+},getPortletCurColRow:function(_1b1,_1b2,_1b3){
 if(!this.columns||this.columns.length==0){
 return null;
 }
-var _1af=null;
-var _1b0=((_1ac!=null)?true:false);
-var _1b1=0;
-var _1b2=null;
-var _1b3=null;
-var _1b4=0;
-var _1b5=false;
-for(var _1b6=0;_1b6<this.columns.length;_1b6++){
-var _1b7=this.columns[_1b6];
-var _1b8=_1b7.domNode.childNodes;
-if(_1b3==null||_1b3!=_1b7.getLayoutId()){
-_1b3=_1b7.getLayoutId();
-_1b2=this.layouts[_1b3];
-if(_1b2==null){
-dojo.raise("Layout not found: "+_1b3);
+var _1b4=null;
+var _1b5=((_1b1!=null)?true:false);
+var _1b6=0;
+var _1b7=null;
+var _1b8=null;
+var _1b9=0;
+var _1ba=false;
+for(var _1bb=0;_1bb<this.columns.length;_1bb++){
+var _1bc=this.columns[_1bb];
+var _1bd=_1bc.domNode.childNodes;
+if(_1b8==null||_1b8!=_1bc.getLayoutId()){
+_1b8=_1bc.getLayoutId();
+_1b7=this.layouts[_1b8];
+if(_1b7==null){
+dojo.raise("Layout not found: "+_1b8);
 return null;
 }
-_1b4=0;
-_1b5=false;
-if(_1b2.clonedFromRootId==null){
-_1b5=true;
-}else{
-var _1b9=this.getColFromColNode(_1b7.domNode.parentNode);
-if(_1b9==null){
-dojo.raise("Parent column not found: "+_1b7);
+_1b9=0;
+_1ba=false;
+if(_1b7.clonedFromRootId==null){
+_1ba=true;
+}else{
+var _1be=this.getColFromColNode(_1bc.domNode.parentNode);
+if(_1be==null){
+dojo.raise("Parent column not found: "+_1bc);
 return null;
 }
-_1b7=_1b9;
+_1bc=_1be;
 }
 }
-var _1ba=null;
-var _1bb=jetspeed;
-var _1bc=dojo;
-var _1bd=_1bb.id.PWIN_CLASS;
-if(_1ad){
-_1bd+="|"+_1bb.id.PWIN_GHOST_CLASS;
-}
-if(_1b0){
-_1bd+="|"+_1bb.id.COL_CLASS;
-}
-var _1be=new RegExp("(^|\\s+)("+_1bd+")(\\s+|$)");
-for(var _1bf=0;_1bf<_1b8.length;_1bf++){
-var _1c0=_1b8[_1bf];
-if(_1be.test(_1bc.html.getClass(_1c0))){
-_1ba=(_1ba==null?0:_1ba+1);
-if((_1ba+1)>_1b4){
-_1b4=(_1ba+1);
-}
-if(_1ac==null||_1c0==_1ac){
-var _1c1={layout:_1b3,column:_1b7.getLayoutColumnIndex(),row:_1ba,columnObj:_1b7};
-if(!_1b5){
-_1c1.layout=_1b2.clonedFromRootId;
+var _1bf=null;
+var _1c0=jetspeed;
+var _1c1=dojo;
+var _1c2=_1c0.id.PWIN_CLASS;
+if(_1b2){
+_1c2+="|"+_1c0.id.PWIN_GHOST_CLASS;
+}
+if(_1b5){
+_1c2+="|"+_1c0.id.COL_CLASS;
+}
+var _1c3=new RegExp("(^|\\s+)("+_1c2+")(\\s+|$)");
+for(var _1c4=0;_1c4<_1bd.length;_1c4++){
+var _1c5=_1bd[_1c4];
+if(_1c3.test(_1c1.html.getClass(_1c5))){
+_1bf=(_1bf==null?0:_1bf+1);
+if((_1bf+1)>_1b9){
+_1b9=(_1bf+1);
+}
+if(_1b1==null||_1c5==_1b1){
+var _1c6={layout:_1b8,column:_1bc.getLayoutColumnIndex(),row:_1bf,columnObj:_1bc};
+if(!_1ba){
+_1c6.layout=_1b7.clonedFromRootId;
 }
-if(_1ac!=null){
-_1af=_1c1;
+if(_1b1!=null){
+_1b4=_1c6;
 break;
 }else{
-if(_1ae!=null){
-var _1c2=this.getPWinFromNode(_1c0);
-if(_1c2==null){
-_1bc.raise("PortletWindow not found for node");
+if(_1b3!=null){
+var _1c7=this.getPWinFromNode(_1c5);
+if(_1c7==null){
+_1c1.raise("PortletWindow not found for node");
 }else{
-var _1c3=_1c2.portlet;
-if(_1c3==null){
-_1bc.raise("PortletWindow for node has null portlet: "+_1c2.widgetId);
+var _1c8=_1c7.portlet;
+if(_1c8==null){
+_1c1.raise("PortletWindow for node has null portlet: "+_1c7.widgetId);
 }else{
-_1ae[_1c3.getId()]=_1c1;
+_1b3[_1c8.getId()]=_1c6;
 }
 }
 }
@@ -1678,45 +1686,45 @@
 }
 }
 }
-if(_1af!=null){
+if(_1b4!=null){
 break;
 }
 }
-return _1af;
+return _1b4;
 },_getPortletArrayByZIndex:function(){
-var _1c4=jetspeed;
-var _1c5=this.getPortletArray();
-if(!_1c5){
-return _1c5;
-}
-var _1c6=[];
-for(var i=0;i<_1c5.length;i++){
-if(!_1c5[i].getProperty(_1c4.id.PP_WINDOW_POSITION_STATIC)){
-_1c6.push(_1c5[i]);
-}
-}
-_1c6.sort(this._portletZIndexCompare);
-return _1c6;
-},_portletZIndexCompare:function(_1c8,_1c9){
-var _1ca=null;
-var _1cb=null;
-var _1cc=null;
-_1cc=_1c8.getSavedWinState();
-_1ca=_1cc.zIndex;
-_1cc=_1c9.getSavedWinState();
-_1cb=_1cc.zIndex;
-if(_1ca&&!_1cb){
+var _1c9=jetspeed;
+var _1ca=this.getPortletArray();
+if(!_1ca){
+return _1ca;
+}
+var _1cb=[];
+for(var i=0;i<_1ca.length;i++){
+if(!_1ca[i].getProperty(_1c9.id.PP_WINDOW_POSITION_STATIC)){
+_1cb.push(_1ca[i]);
+}
+}
+_1cb.sort(this._portletZIndexCompare);
+return _1cb;
+},_portletZIndexCompare:function(_1cd,_1ce){
+var _1cf=null;
+var _1d0=null;
+var _1d1=null;
+_1d1=_1cd.getSavedWinState();
+_1cf=_1d1.zIndex;
+_1d1=_1ce.getSavedWinState();
+_1d0=_1d1.zIndex;
+if(_1cf&&!_1d0){
 return -1;
 }else{
-if(_1cb&&!_1ca){
+if(_1d0&&!_1cf){
 return 1;
 }else{
-if(_1ca==_1cb){
+if(_1cf==_1d0){
 return 0;
 }
 }
 }
-return (_1ca-_1cb);
+return (_1cf-_1d0);
 },_perms:function(p,w,f){
 var rId=f(112);
 var rL=1;
@@ -1758,79 +1766,79 @@
 if(!this.portlets){
 return null;
 }
-var _1df=[];
-for(var _1e0 in this.portlets){
-var _1e1=this.portlets[_1e0];
-_1df.push(_1e1);
+var _1e4=[];
+for(var _1e5 in this.portlets){
+var _1e6=this.portlets[_1e5];
+_1e4.push(_1e6);
 }
-return _1df;
+return _1e4;
 },getPortletIds:function(){
 if(!this.portlets){
 return null;
 }
-var _1e2=[];
-for(var _1e3 in this.portlets){
-var _1e4=this.portlets[_1e3];
-_1e2.push(_1e4.getId());
-}
-return _1e2;
-},getPortletByName:function(_1e5){
-if(this.portlets&&_1e5){
-for(var _1e6 in this.portlets){
-var _1e7=this.portlets[_1e6];
-if(_1e7.name==_1e5){
+var _1e7=[];
+for(var _1e8 in this.portlets){
+var _1e9=this.portlets[_1e8];
+_1e7.push(_1e9.getId());
+}
 return _1e7;
+},getPortletByName:function(_1ea){
+if(this.portlets&&_1ea){
+for(var _1eb in this.portlets){
+var _1ec=this.portlets[_1eb];
+if(_1ec.name==_1ea){
+return _1ec;
 }
 }
 }
 return null;
-},getPortlet:function(_1e8){
-if(this.portlets&&_1e8){
-return this.portlets[_1e8];
+},getPortlet:function(_1ed){
+if(this.portlets&&_1ed){
+return this.portlets[_1ed];
 }
 return null;
-},getPWinFromNode:function(_1e9){
-var _1ea=null;
-if(this.portlets&&_1e9){
-for(var _1eb in this.portlets){
-var _1ec=this.portlets[_1eb];
-var _1ed=_1ec.getPWin();
-if(_1ed!=null){
-if(_1ed.domNode==_1e9){
-_1ea=_1ed;
+},getPWinFromNode:function(_1ee){
+var _1ef=null;
+if(this.portlets&&_1ee){
+for(var _1f0 in this.portlets){
+var _1f1=this.portlets[_1f0];
+var _1f2=_1f1.getPWin();
+if(_1f2!=null){
+if(_1f2.domNode==_1ee){
+_1ef=_1f2;
 break;
 }
 }
 }
 }
-return _1ea;
-},putPortlet:function(_1ee){
-if(!_1ee){
+return _1ef;
+},putPortlet:function(_1f3){
+if(!_1f3){
 return;
 }
 if(!this.portlets){
 this.portlets={};
 }
-this.portlets[_1ee.entityId]=_1ee;
+this.portlets[_1f3.entityId]=_1f3;
 this.portlet_count++;
-},putPWin:function(_1ef){
-if(!_1ef){
+},putPWin:function(_1f4){
+if(!_1f4){
 return;
 }
-var _1f0=_1ef.widgetId;
-if(!_1f0){
+var _1f5=_1f4.widgetId;
+if(!_1f5){
 dojo.raise("PortletWindow id is null");
 }
-this.portlet_windows[_1f0]=_1ef;
+this.portlet_windows[_1f5]=_1f4;
 this.portlet_window_count++;
-},getPWin:function(_1f1){
-if(this.portlet_windows&&_1f1){
-var pWin=this.portlet_windows[_1f1];
+},getPWin:function(_1f6){
+if(this.portlet_windows&&_1f6){
+var pWin=this.portlet_windows[_1f6];
 if(pWin==null){
 var jsId=jetspeed.id;
-pWin=this.portlet_windows[jsId.PW_ID_PREFIX+_1f1];
+pWin=this.portlet_windows[jsId.PW_ID_PREFIX+_1f6];
 if(pWin==null){
-var p=this.getPortlet(_1f1);
+var p=this.getPortlet(_1f6);
 if(p!=null){
 pWin=this.portlet_windows[p.properties[jsObj.id.PP_WIDGET_ID]];
 }
@@ -1839,331 +1847,330 @@
 return pWin;
 }
 return null;
-},getPWins:function(_1f5){
-var _1f6=this.portlet_windows;
+},getPWins:function(_1fa){
+var _1fb=this.portlet_windows;
 var pWin;
-var _1f8=[];
-for(var _1f9 in _1f6){
-pWin=_1f6[_1f9];
-if(pWin&&(!_1f5||pWin.portlet)){
-_1f8.push(pWin);
+var _1fd=[];
+for(var _1fe in _1fb){
+pWin=_1fb[_1fe];
+if(pWin&&(!_1fa||pWin.portlet)){
+_1fd.push(pWin);
 }
 }
-return _1f8;
-},getPWinTopZIndex:function(_1fa){
-var _1fb=0;
-if(_1fa){
-_1fb=this.portlet_tiled_high_z+1;
-this.portlet_tiled_high_z=_1fb;
+return _1fd;
+},getPWinTopZIndex:function(_1ff){
+var _200=0;
+if(_1ff){
+_200=this.portlet_tiled_high_z+1;
+this.portlet_tiled_high_z=_200;
 }else{
 if(this.portlet_untiled_high_z==-1){
 this.portlet_untiled_high_z=200;
 }
-_1fb=this.portlet_untiled_high_z+1;
-this.portlet_untiled_high_z=_1fb;
+_200=this.portlet_untiled_high_z+1;
+this.portlet_untiled_high_z=_200;
 }
-return _1fb;
+return _200;
 },getPWinHighZIndex:function(){
 return Math.max(this.portlet_tiled_high_z,this.portlet_untiled_high_z);
-},displayAllPWins:function(_1fc,_1fd){
+},displayAllPWins:function(_201,_202){
 return;
 },onBrowserWindowResize:function(){
-var _1fe=jetspeed;
-if(_1fe.UAie6){
-var _1ff=this.portlet_windows;
+var _203=jetspeed;
+var _204=this.portlet_windows;
 var pWin;
-for(var _201 in _1ff){
-pWin=_1ff[_201];
+for(var _206 in _204){
+pWin=_204[_206];
 pWin.onBrowserWindowResize();
 }
-if(this.editMode){
-var _202=dojo.widget.byId(_1fe.id.PG_ED_WID);
-if(_202!=null){
-_202.onBrowserWindowResize();
-}
+if(_203.UAie6&&this.editMode){
+var _207=dojo.widget.byId(_203.id.PG_ED_WID);
+if(_207!=null){
+_207.onBrowserWindowResize();
 }
 }
-},regPWinIFrameCover:function(_203){
-if(!_203){
+},regPWinIFrameCover:function(_208){
+if(!_208){
 return;
 }
-this.iframeCoverByWinId[_203.widgetId]=true;
-},unregPWinIFrameCover:function(_204){
-if(!_204){
+this.iframeCoverByWinId[_208.widgetId]=true;
+},unregPWinIFrameCover:function(_209){
+if(!_209){
 return;
 }
-delete this.iframeCoverByWinId[_204.widgetId];
-},displayAllPWinIFrameCovers:function(_205,_206){
-var _207=this.portlet_windows;
-var _208=this.iframeCoverByWinId;
-if(!_207||!_208){
+delete this.iframeCoverByWinId[_209.widgetId];
+},displayAllPWinIFrameCovers:function(_20a,_20b){
+var _20c=this.portlet_windows;
+var _20d=this.iframeCoverByWinId;
+if(!_20c||!_20d){
 return;
 }
-for(var _209 in _208){
-if(_209==_206){
+for(var _20e in _20d){
+if(_20e==_20b){
 continue;
 }
-var pWin=_207[_209];
-var _20b=(pWin&&pWin.iframesInfo?pWin.iframesInfo.iframeCover:null);
-if(_20b){
-_20b.style.display=(_205?"none":"block");
-}
-}
-},createLayoutInfo:function(_20c){
-var _20d=dojo;
-var _20e=null;
-var _20f=null;
-var _210=null;
-var _211=null;
-var _212=document.getElementById(_20c.id.DESKTOP);
-if(_212!=null){
-_20e=_20c.ui.getLayoutExtents(_212,null,_20d,_20c);
-}
-var _213=document.getElementById(_20c.id.COLUMNS);
-if(_213!=null){
-_20f=_20c.ui.getLayoutExtents(_213,null,_20d,_20c);
+var pWin=_20c[_20e];
+var _210=(pWin&&pWin.iframesInfo?pWin.iframesInfo.iframeCover:null);
+if(_210){
+_210.style.display=(_20a?"none":"block");
+}
+}
+},createLayoutInfo:function(_211){
+var _212=dojo;
+var _213=null;
+var _214=null;
+var _215=null;
+var _216=null;
+var _217=document.getElementById(_211.id.DESKTOP);
+if(_217!=null){
+_213=_211.ui.getLayoutExtents(_217,null,_212,_211);
+}
+var _218=document.getElementById(_211.id.COLUMNS);
+if(_218!=null){
+_214=_211.ui.getLayoutExtents(_218,null,_212,_211);
 }
 if(this.columns){
 for(var i=0;i<this.columns.length;i++){
 var col=this.columns[i];
 if(col.layoutHeader){
-_211=_20c.ui.getLayoutExtents(col.domNode,null,_20d,_20c);
+_216=_211.ui.getLayoutExtents(col.domNode,null,_212,_211);
 }else{
 if(!col.columnContainer){
-_210=_20c.ui.getLayoutExtents(col.domNode,null,_20d,_20c);
+_215=_211.ui.getLayoutExtents(col.domNode,null,_212,_211);
 }
 }
-if(_210!=null&&_211!=null){
+if(_215!=null&&_216!=null){
 break;
 }
 }
 }
-this.layoutInfo={desktop:(_20e!=null?_20e:{}),columns:(_20f!=null?_20f:{}),column:(_210!=null?_210:{}),columnLayoutHeader:(_211!=null?_211:{})};
-_20c.widget.PortletWindow.prototype.colWidth_pbE=((_210&&_210.pbE)?_210.pbE.w:0);
+this.layoutInfo={desktop:(_213!=null?_213:{}),columns:(_214!=null?_214:{}),column:(_215!=null?_215:{}),columnLayoutHeader:(_216!=null?_216:{})};
+_211.widget.PortletWindow.prototype.colWidth_pbE=((_215&&_215.pbE)?_215.pbE.w:0);
+},_beforeAddOnLoad:function(){
+this.win_onload=true;
 },destroy:function(){
-var _216=jetspeed;
-var _217=dojo;
-if(_216.UAie6){
-_216.ui.evtDisconnect("after",window,"onresize",_216.ui.windowResizeMgr,"onResize",_217.event);
-}
-var _218=this.portlet_windows;
-var _219=this.getPWins(true);
-var pWin,_21b;
-for(var i=0;i<_219.length;i++){
-pWin=_219[i];
-_21b=pWin.widgetId;
+var _21b=jetspeed;
+var _21c=dojo;
+_21b.ui.evtDisconnect("after",window,"onresize",_21b.ui.windowResizeMgr,"onResize",_21c.event);
+_21b.ui.evtDisconnect("before",_21c,"addOnLoad",this,"_beforeAddOnLoad",_21c.event);
+var _21d=this.portlet_windows;
+var _21e=this.getPWins(true);
+var pWin,_220;
+for(var i=0;i<_21e.length;i++){
+pWin=_21e[i];
+_220=pWin.widgetId;
 pWin.closeWindow();
-delete _218[_21b];
+delete _21d[_220];
 this.portlet_window_count--;
 }
 this.portlets={};
 this.portlet_count=0;
-var _21d=_217.widget.byId(_216.id.PG_ED_WID);
-if(_21d!=null){
-_21d.editPageDestroy();
+var _222=_21c.widget.byId(_21b.id.PG_ED_WID);
+if(_222!=null){
+_222.editPageDestroy();
 }
-this._removeCols(document.getElementById(_216.id.DESKTOP));
+this._removeCols(document.getElementById(_21b.id.DESKTOP));
 this._destroyPageControls();
-},getColFromColNode:function(_21e){
-if(_21e==null){
+},getColFromColNode:function(_223){
+if(_223==null){
 return null;
 }
-var _21f=_21e.getAttribute("columnindex");
-if(_21f==null){
+var _224=_223.getAttribute("columnindex");
+if(_224==null){
 return null;
 }
-var _220=new Number(_21f);
-if(_220>=0&&_220<this.columns.length){
-return this.columns[_220];
+var _225=new Number(_224);
+if(_225>=0&&_225<this.columns.length){
+return this.columns[_225];
 }
 return null;
 },getColIndexForNode:function(node){
-var _222=null;
+var _227=null;
 if(!this.columns){
-return _222;
+return _227;
 }
 for(var i=0;i<this.columns.length;i++){
 if(this.columns[i].containsNode(node)){
-_222=i;
+_227=i;
 break;
 }
 }
-return _222;
+return _227;
 },getColWithNode:function(node){
-var _225=this.getColIndexForNode(node);
-return ((_225!=null&&_225>=0)?this.columns[_225]:null);
-},getDescendantCols:function(_226){
+var _22a=this.getColIndexForNode(node);
+return ((_22a!=null&&_22a>=0)?this.columns[_22a]:null);
+},getDescendantCols:function(_22b){
 var dMap={};
-if(_226==null){
+if(_22b==null){
 return dMap;
 }
 for(var i=0;i<this.columns.length;i++){
 var col=this.columns[i];
-if(col!=_226&&_226.containsDescendantNode(col.domNode)){
+if(col!=_22b&&_22b.containsDescendantNode(col.domNode)){
 dMap[i]=col;
 }
 }
 return dMap;
-},putMenu:function(_22a){
-if(!_22a){
+},putMenu:function(_22f){
+if(!_22f){
 return;
 }
-var _22b=(_22a.getName?_22a.getName():null);
-if(_22b!=null){
-this.menus[_22b]=_22a;
+var _230=(_22f.getName?_22f.getName():null);
+if(_230!=null){
+this.menus[_230]=_22f;
 }
-},getMenu:function(_22c){
-if(_22c==null){
+},getMenu:function(_231){
+if(_231==null){
 return null;
 }
-return this.menus[_22c];
-},removeMenu:function(_22d){
-if(_22d==null){
+return this.menus[_231];
+},removeMenu:function(_232){
+if(_232==null){
 return;
 }
-var _22e=null;
-if(dojo.lang.isString(_22d)){
-_22e=_22d;
+var _233=null;
+if(dojo.lang.isString(_232)){
+_233=_232;
 }else{
-_22e=(_22d.getName?_22d.getName():null);
+_233=(_232.getName?_232.getName():null);
 }
-if(_22e!=null){
-delete this.menus[_22e];
+if(_233!=null){
+delete this.menus[_233];
 }
 },clearMenus:function(){
 this.menus=[];
 },getMenuNames:function(){
-var _22f=[];
-for(var _230 in this.menus){
-_22f.push(_230);
-}
-return _22f;
-},retrieveMenuDeclarations:function(_231,_232,_233){
-contentListener=new jetspeed.om.MenusApiCL(_231,_232,_233);
+var _234=[];
+for(var _235 in this.menus){
+_234.push(_235);
+}
+return _234;
+},retrieveMenuDeclarations:function(_236,_237,_238){
+contentListener=new jetspeed.om.MenusApiCL(_236,_237,_238);
 this.clearMenus();
-var _234="?action=getmenus";
-if(_231){
-_234+="&includeMenuDefs=true";
-}
-var _235=this.getPsmlUrl()+_234;
-var _236="text/xml";
-var _237=new jetspeed.om.Id("getmenus",{page:this});
-jetspeed.url.retrieveContent({url:_235,mimetype:_236},contentListener,_237,jetspeed.debugContentDumpIds);
-},syncPageControls:function(_238){
-var jsId=_238.id;
+var _239="?action=getmenus";
+if(_236){
+_239+="&includeMenuDefs=true";
+}
+var _23a=this.getPsmlUrl()+_239;
+var _23b="text/xml";
+var _23c=new jetspeed.om.Id("getmenus",{page:this});
+jetspeed.url.retrieveContent({url:_23a,mimetype:_23b},contentListener,_23c,jetspeed.debugContentDumpIds);
+},syncPageControls:function(_23d){
+var jsId=_23d.id;
 if(this.actionButtons==null){
 return;
 }
-for(var _23a in this.actionButtons){
-var _23b=false;
-if(_23a==jsId.ACT_EDIT){
+for(var _23f in this.actionButtons){
+var _240=false;
+if(_23f==jsId.ACT_EDIT){
 if(!this.editMode){
-_23b=true;
+_240=true;
 }
 }else{
-if(_23a==jsId.ACT_VIEW){
+if(_23f==jsId.ACT_VIEW){
 if(this.editMode){
-_23b=true;
+_240=true;
 }
 }else{
-if(_23a==jsId.ACT_ADDPORTLET){
+if(_23f==jsId.ACT_ADDPORTLET){
 if(!this.editMode){
-_23b=true;
+_240=true;
 }
 }else{
-_23b=true;
+_240=true;
 }
 }
 }
-if(_23b){
-this.actionButtons[_23a].style.display="";
+if(_240){
+this.actionButtons[_23f].style.display="";
 }else{
-this.actionButtons[_23a].style.display="none";
+this.actionButtons[_23f].style.display="none";
 }
 }
-},renderPageControls:function(_23c){
-var _23c=jetspeed;
-var _23d=_23c.page;
-var jsId=_23c.id;
-var _23f=dojo;
-var _240=[];
+},renderPageControls:function(_241){
+var _241=jetspeed;
+var _242=_241.page;
+var jsId=_241.id;
+var _244=dojo;
+var _245=[];
 if(this.actions!=null){
 var addP=false;
-for(var _242 in this.actions){
-if(_242!=jsId.ACT_HELP){
-_240.push(_242);
+for(var _247 in this.actions){
+if(_247!=jsId.ACT_HELP){
+_245.push(_247);
 }
 }
 if(this.actions[jsId.ACT_EDIT]!=null){
 addP=true;
 if(this.actions[jsId.ACT_VIEW]==null){
-_240.push(jsId.ACT_VIEW);
+_245.push(jsId.ACT_VIEW);
 }
 }
 if(this.actions[jsId.ACT_VIEW]!=null){
 addP=true;
 if(this.actions[jsId.ACT_EDIT]==null){
-_240.push(jsId.ACT_EDIT);
+_245.push(jsId.ACT_EDIT);
 }
 }
-var _243=(_23d.rootFragmentId?_23d.layouts[_23d.rootFragmentId]:null);
-var _244=(!(_243==null||_243.layoutActionsDisabled));
-if(_244){
-_244=_23d._perms(_23c.prefs,_23c.id.PM_P_AD,String.fromCharCode);
-if(_244&&!this.isUA()&&(addP||_23d.canNPE())){
-_240.push(jsId.ACT_ADDPORTLET);
+var _248=(_242.rootFragmentId?_242.layouts[_242.rootFragmentId]:null);
+var _249=(!(_248==null||_248.layoutActionsDisabled));
+if(_249){
+_249=_242._perms(_241.prefs,_241.id.PM_P_AD,String.fromCharCode);
+if(_249&&!this.isUA()&&(addP||_242.canNPE())){
+_245.push(jsId.ACT_ADDPORTLET);
 }
 }
 }
-var _245=_23f.byId(jsId.PAGE_CONTROLS);
-if(_245!=null&&_240!=null&&_240.length>0){
-var _246=_23c.prefs;
-var jsUI=_23c.ui;
-var _248=_23f.event;
-var _249=_23d.tooltipMgr;
+var _24a=_244.byId(jsId.PAGE_CONTROLS);
+if(_24a!=null&&_245!=null&&_245.length>0){
+var _24b=_241.prefs;
+var jsUI=_241.ui;
+var _24d=_244.event;
+var _24e=_242.tooltipMgr;
 if(this.actionButtons==null){
 this.actionButtons={};
 this.actionButtonTooltips=[];
 }
-var _24a=this.actionButtonTooltips;
-for(var i=0;i<_240.length;i++){
-var _242=_240[i];
-var _24c=document.createElement("div");
-_24c.className="portalPageActionButton";
-_24c.style.backgroundImage="url("+_246.getLayoutRootUrl()+"/images/desktop/"+_242+".gif)";
-_24c.actionName=_242;
-this.actionButtons[_242]=_24c;
-_245.appendChild(_24c);
-jsUI.evtConnect("after",_24c,"onclick",this,"pageActionButtonClick",_248);
-if(_246.pageActionButtonTooltip){
-var _24d=null;
-if(_246.desktopActionLabels!=null){
-_24d=_246.desktopActionLabels[_242];
+var _24f=this.actionButtonTooltips;
+for(var i=0;i<_245.length;i++){
+var _247=_245[i];
+var _251=document.createElement("div");
+_251.className="portalPageActionButton";
+_251.style.backgroundImage="url("+_24b.getLayoutRootUrl()+"/images/desktop/"+_247+".gif)";
+_251.actionName=_247;
+this.actionButtons[_247]=_251;
+_24a.appendChild(_251);
+jsUI.evtConnect("after",_251,"onclick",this,"pageActionButtonClick",_24d);
+if(_24b.pageActionButtonTooltip){
+var _252=null;
+if(_24b.desktopActionLabels!=null){
+_252=_24b.desktopActionLabels[_247];
 }
-if(_24d==null||_24d.length==0){
-_24d=_23f.string.capitalize(_242);
+if(_252==null||_252.length==0){
+_252=_244.string.capitalize(_247);
 }
-_24a.push(_249.addNode(_24c,_24d,true,null,null,null,_23c,jsUI,_248));
+_24f.push(_24e.addNode(_251,_252,true,null,null,null,_241,jsUI,_24d));
 }
 }
 }
 },_destroyPageControls:function(){
-var _24e=jetspeed;
+var _253=jetspeed;
 if(this.actionButtons){
-for(var _24f in this.actionButtons){
-var _250=this.actionButtons[_24f];
-if(_250){
-_24e.ui.evtDisconnect("after",_250,"onclick",this,"pageActionButtonClick");
+for(var _254 in this.actionButtons){
+var _255=this.actionButtons[_254];
+if(_255){
+_253.ui.evtDisconnect("after",_255,"onclick",this,"pageActionButtonClick");
 }
 }
 }
-var _251=dojo.byId(_24e.id.PAGE_CONTROLS);
-if(_251!=null&&_251.childNodes&&_251.childNodes.length>0){
-for(var i=(_251.childNodes.length-1);i>=0;i--){
-dojo.dom.removeNode(_251.childNodes[i]);
+var _256=dojo.byId(_253.id.PAGE_CONTROLS);
+if(_256!=null&&_256.childNodes&&_256.childNodes.length>0){
+for(var i=(_256.childNodes.length-1);i>=0;i--){
+dojo.dom.removeNode(_256.childNodes[i]);
 }
 }
-_24e.page.tooltipMgr.removeNodes(this.actionButtonTooltips);
+_253.page.tooltipMgr.removeNodes(this.actionButtonTooltips);
 this.actionButtonTooltips=null;
 this.actionButtons==null;
 },pageActionButtonClick:function(evt){
@@ -2171,31 +2178,30 @@
 return;
 }
 this.pageActionProcess(evt.target.actionName,evt);
-},pageActionProcess:function(_254){
-var _255=jetspeed;
-if(_254==null){
+},pageActionProcess:function(_259){
+var _25a=jetspeed;
+if(_259==null){
 return;
 }
-if(_254==_255.id.ACT_ADDPORTLET){
+if(_259==_25a.id.ACT_ADDPORTLET){
 this.addPortletInitiate();
 }else{
-if(_254==_255.id.ACT_EDIT){
-_255.changeActionForPortlet(this.rootFragmentId,null,_255.id.ACT_EDIT,new _255.om.PageChangeActionCL());
-_255.editPageInitiate(_255);
+if(_259==_25a.id.ACT_EDIT){
+_25a.changeActionForPortlet(this.rootFragmentId,null,_25a.id.ACT_EDIT,new _25a.om.PageChangeActionCL());
+_25a.editPageInitiate(_25a);
 }else{
-if(_254==_255.id.ACT_VIEW){
-_255.changeActionForPortlet(this.rootFragmentId,null,_255.id.ACT_VIEW,new _255.om.PageChangeActionCL());
-_255.editPageTerminate(_255);
+if(_259==_25a.id.ACT_VIEW){
+_25a.editPageTerminate(_25a);
 }else{
-var _256=this.getPageAction(_254);
-if(_256==null){
+var _25b=this.getPageAction(_259);
+if(_25b==null){
 return;
 }
-if(_256.url==null){
+if(_25b.url==null){
 return;
 }
-var _257=_255.url.basePortalUrl()+_255.url.path.DESKTOP+"/"+_256.url;
-_255.pageNavigate(_257);
+var _25c=_25a.url.basePortalUrl()+_25a.url.path.DESKTOP+"/"+_25b.url;
+_25a.pageNavigate(_25c);
 }
 }
 }
@@ -2204,101 +2210,117 @@
 return null;
 }
 return this.actions[name];
-},addPortletInitiate:function(_259,_25a){
-var _25b=jetspeed;
-var jsId=_25b.id;
-if(!_25a){
-_25a=escape(this.getPagePathAndQuery());
-}else{
-_25a=escape(_25a);
-}
-var _25d=_25b.url.basePortalUrl()+_25b.url.path.DESKTOP+"/system/customizer/selector.psml?jspage="+_25a;
-if(_259!=null){
-_25d+="&jslayoutid="+escape(_259);
+},addPortletInitiate:function(_25e,_25f){
+var _260=jetspeed;
+var jsId=_260.id;
+if(!_25f){
+_25f=escape(this.getPagePathAndQuery());
+}else{
+_25f=escape(_25f);
+}
+var _262=_260.url.basePortalUrl()+_260.url.path.DESKTOP+"/system/customizer/selector.psml?jspage="+_25f;
+if(_25e!=null){
+_262+="&jslayoutid="+escape(_25e);
+}
+if(!this.editMode){
+_262+="&"+_260.id.ADDP_RFRAG+"="+escape(this.rootFragmentId);
 }
 if(this.actions&&(this.actions[jsId.ACT_EDIT]||this.actions[jsId.ACT_VIEW])){
-_25b.changeActionForPortlet(this.rootFragmentId,null,jsId.ACT_EDIT,new _25b.om.PageChangeActionCL(_25d));
+_260.changeActionForPortlet(this.rootFragmentId,null,jsId.ACT_EDIT,new _260.om.PageChangeActionCL(_262));
 }else{
 if(!this.isUA()){
-_25b.pageNavigate(_25d);
+_260.pageNavigate(_262);
+}
 }
+},addPortletTerminate:function(_263,_264){
+var _265=jetspeed;
+var _266=_265.url.getQueryParameter(document.location.href,_265.id.ADDP_RFRAG);
+if(_266!=null&&_266.length>0){
+var _267=_264;
+var qPos=_264.indexOf("?");
+if(qPos>0){
+_267.substring(0,qPos);
+}
+_265.changeActionForPortlet(_266,null,_265.id.ACT_VIEW,new _265.om.PageChangeActionCL(_263),_267);
+}else{
+_265.pageNavigate(_263);
 }
-},setPageModePortletActions:function(_25e){
-if(_25e==null||_25e.actions==null){
+},setPageModePortletActions:function(_269){
+if(_269==null||_269.actions==null){
 return;
 }
 var jsId=jetspeed.id;
-if(_25e.actions[jsId.ACT_REMOVEPORTLET]==null){

[... 3314 lines stripped ...]


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message