portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r584887 [2/3] - in /portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget: PortletWindow.js PortletWindow.src.js
Date Mon, 15 Oct 2007 20:14:41 GMT

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js?rev=584887&r1=584886&r2=584887&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js (original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/widget/PortletWindow.js Mon Oct 15 13:14:40 2007
@@ -9,7 +9,7 @@
 this._onUnloadStack=[];
 this._callOnUnload=false;
 };
-dojo.extend(jetspeed.widget.PortletWindow,{title:"",nextIndex:1,resizable:true,moveable:true,moveAllowTilingChg:true,decName:null,decConfig:null,posStatic:false,heightToFit:false,titleMouseIn:0,titleLit:false,colWidth_pbE:0,portlet:null,altInitParams:null,inContentChgd:false,exclPContent:false,minimizeTempRestore:null,executeScripts:false,scriptSeparation:false,adjustPaths:false,parseContent:true,childWidgets:null,dbProfile:(djConfig.isDebug&&jetspeed.debug.profile),dbOn:djConfig.isDebug,dbMenuDims:"Dump Dimensions",altInitParamsDef:function(_1,_2){
+dojo.extend(jetspeed.widget.PortletWindow,{title:"",nextIndex:1,resizable:true,moveable:true,moveAllowTilingChg:true,posStatic:false,heightToFit:false,decName:null,decConfig:null,titlebarEnabled:true,resizebarEnabled:true,editPageEnabled:false,iframeCoverContainerClass:"portletWindowIFrameClient",colWidth_pbE:0,portlet:null,altInitParams:null,inContentChgd:false,exclPContent:false,minimizeTempRestore:null,executeScripts:false,scriptSeparation:false,adjustPaths:false,parseContent:true,childWidgets:null,dbProfile:(djConfig.isDebug&&jetspeed.debug.profile),dbOn:djConfig.isDebug,dbMenuDims:"Dump Dimensions",altInitParamsDef:function(_1,_2){
 if(!_1){
 _1={getProperty:function(_3){
 if(!_3){
@@ -73,32 +73,14 @@
 this.widgetId=_17;
 _9.widget.PortletWindow.prototype.nextIndex++;
 var _18=iP[_a.PP_WINDOW_DECORATION];
-if(!_18){
-_18=this.portletDecorationName;
-if(!_18){
-_18=_c.getPortletDecorationDefault();
-}
-}
 this.decName=_18;
-var wDC=_9.loadPortletDecorationStyles(_18);
+var wDC=_9.loadPortletDecorationStyles(_18,_b);
 if(wDC==null){
-wDC={};
+_11.raise("No portlet decoration is available: "+this.widgetId);
 }
 this.decConfig=wDC;
 var _1a=wDC.dNodeClass;
 var _1b=wDC.cNodeClass;
-if(_1a==null||_1b==null){
-_1a=_a.PWIN_CLASS;
-_1b="portletWindowClient";
-if(_18){
-_1a=_18+" "+_1a;
-_1b=_18+" "+_1b;
-}
-_1a=_a.P_CLASS+" "+_1a;
-_1b=_a.P_CLASS+" "+_1b;
-wDC.dNodeClass=_1a;
-wDC.cNodeClass=_1b;
-}
 var _1c=_f.createElement("div");
 _1c.id=_17;
 _1c.className=_1a;
@@ -227,85 +209,60 @@
 _1e.unselectable="on";
 }
 }
-var _30=null;
-var _31=_11.event;
-var _32=_c.tooltipMgr;
-if(wDC.windowActionButtonTooltip){
-if(this.actionLabels[_a.ACT_DESKTOP_MOVE_TILED]!=null&&this.actionLabels[_a.ACT_DESKTOP_MOVE_UNTILED]!=null){
-this.tooltips.push(_32.addNode(_1e,null,true,1200,this,"getTitleBarTooltip",_9,_e,_31));
-}
-}
-var _33=(_15)?wDC.windowActionButtonNames:wDC.windowActionButtonNamesNp;
-if(_33==null){
-_33=this._buildActionStructures(wDC,_15,_10,_9,_a,_b,_11);
-}
-var aNm;
-for(var i=0;i<_33.length;i++){
-aNm=_33[i];
-if(aNm!=null){
-if(!_15||(aNm==_a.ACT_RESTORE||aNm==_a.ACT_MENU||_15.getAction(aNm)!=null||_b.windowActionDesktop[aNm]!=null)){
-this._createActionButtonNode(aNm,_f,_10,_32,wDC,_9,_b,_e,_11,_31);
-}
+this._setupTitlebar(wDC,null,_15,_10,_f,_9,_a,_b,_e,_c,_11);
 }
+var _30=this.resizable;
+var _31=null;
+if(_30&&_1f){
+var _32=_17+"_resize";
+var _31=_9.widget.CreatePortletWindowResizeHandler(this,_9);
+this.resizeHandle=_31;
+if(_31){
+_1f.appendChild(_31.domNode);
 }
-this.actionMenuWidget=(_15)?wDC.windowActionMenuWidget:wDC.windowActionMenuWidgetNp;
-if(this.actionMenuWidget&&wDC.windowActionMenuHasNoImg){
-_e.evtConnect("after",_1e,"oncontextmenu",this,"actionMenuOpen",_31);
-}
-this.actionBtnSync(_9,_a);
-if(wDC.windowDisableResize){
+}else{
 this.resizable=false;
 }
-if(wDC.windowDisableMove){
-this.moveable=false;
+_10.removeChild(_1c);
+if(!wDC.windowTitlebar||!wDC.windowResizebar){
+var _33=_9.css.cssDis;
+if(!wDC.windowTitlebar){
+this.titlebarEnabled=false;
+if(this.tbNodeCss){
+this.tbNodeCss[_33]="none";
 }
 }
-var _36=this.resizable;
-var _37=null;
-if(_36&&_1f){
-var _38=_17+"_resize";
-var _37=_9.widget.CreatePortletWindowResizeHandler(this,_9);
-this.resizeHandle=_37;
-if(_37){
-_1f.appendChild(_37.domNode);
+if(!wDC.windowResizebar){
+this.resizebarEnabled=false;
+if(this.rbNodeCss){
+this.rbNodeCss[_33]="none";
 }
-}else{
-this.resizable=false;
 }
-_10.removeChild(_1c);
-if(!wDC.windowTitlebar||!wDC.windowResizebar){
-var _39=_9.css.cssDis;
-if(this.tbNodeCss&&!wDC.windowTitlebar){
-this.tbNodeCss[_39]="none";
-}
-if(this.rbNodeCss&&!wDC.windowResizebar){
-this.rbNodeCss[_39]="none";
-}
-}
-var _3a=false;
-var _3b=_8.childNodes;
-if(_25&&_3b){
-var _3c=iP[_a.PP_ROW];
-if(_3c!=null){
-var _3d=new Number(_3c);
-if(_3d>=0){
-var _3e=_3b.length-1;
-if(_3e>=_3d){
-var _3f=_3b[_3d];
-if(_3f){
-_8.insertBefore(_1c,_3f);
-_3a=true;
 }
+var _34=false;
+var _35=_8.childNodes;
+if(_25&&_35){
+var _36=iP[_a.PP_ROW];
+if(_36!=null){
+var _37=new Number(_36);
+if(_37>=0){
+var _38=_35.length-1;
+if(_38>=_37){
+var _39=_35[_37];
+if(_39){
+_8.insertBefore(_1c,_39);
+_34=true;
 }
 }
 }
 }
-if(!_3a){
+}
+if(!_34){
 _8.appendChild(_1c);
 }
 if(!wDC.layout){
-var _40="display: block; visibility: hidden; width: "+_27+"px"+((_28!=null&&_28>0)?("; height: "+_28+"px"):"");
-_1c.style.cssText=_40;
+var _3a="display: block; visibility: hidden; width: "+_27+"px"+((_28!=null&&_28>0)?("; height: "+_28+"px"):"");
+_1c.style.cssText=_3a;
 this._createLayoutInfo(wDC,false,_1c,_1d,_1e,_1f,_11,_9,_e);
 }
 if(this.moveable&&_1e){
@@ -338,113 +295,120 @@
 this.minimizeOnNextRender=true;
 }
 if(_9.widget.pwGhost==null&&_c!=null){
-var _42=_f.createElement("div");
-_42.id="pwGhost";
-var _43=_c.getPortletDecorationDefault();
-if(!_43){
-_43=_18;
-}
-_42.className=_1a;
-_42.style.position="static";
-_42.style.width="";
-_42.style.left="auto";
-_42.style.top="auto";
-_9.widget.pwGhost=_42;
+var _3c=_f.createElement("div");
+_3c.id="pwGhost";
+_3c.className=_1a;
+_3c.style.position="static";
+_3c.style.width="";
+_3c.style.left="auto";
+_3c.style.top="auto";
+_9.widget.pwGhost=_3c;
 }
 if(ie6&&_9.widget.ie6ZappedContentHelper==null){
-var _44=_f.createElement("span");
-_44.id="ie6ZappedContentHelper";
-_9.widget.ie6ZappedContentHelper=_44;
-}
-},_buildActionStructures:function(wDC,_46,_47,_48,_49,_4a,_4b){
-var _4c=new Array();
-var aNm,_4e,_4f=false;
-var _50=new Array();
-var _51=new Object();
+var _3d=_f.createElement("span");
+_3d.id="ie6ZappedContentHelper";
+_9.widget.ie6ZappedContentHelper=_3d;
+}
+},_buildActionStructures:function(wDC,_3f,_40,_41,_42,_43,_44){
+var _45=new Array();
+var aNm,_47,_48=false;
+var _49=new Array();
+var _4a=new Object();
 if(wDC.windowActionButtonOrder!=null){
-if(_46){
+if(_3f){
 for(var aI=(wDC.windowActionButtonOrder.length-1);aI>=0;aI--){
 aNm=wDC.windowActionButtonOrder[aI];
-_4c.push(aNm);
-_51[aNm]=true;
+_45.push(aNm);
+_4a[aNm]=true;
 }
 }else{
 for(var aI=(wDC.windowActionButtonOrder.length-1);aI>=0;aI--){
 aNm=wDC.windowActionButtonOrder[aI];
-_4e=false;
-if(aNm==_49.ACT_MINIMIZE||aNm==_49.ACT_MAXIMIZE||aNm==_49.ACT_RESTORE||aNm==_49.ACT_MENU||_4a.windowActionDesktop[aNm]!=null){
-_4e=true;
-}
-if(_4e){
-_4c.push(aNm);
-_51[aNm]=true;
+_47=false;
+if(aNm==_42.ACT_MINIMIZE||aNm==_42.ACT_MAXIMIZE||aNm==_42.ACT_RESTORE||aNm==_42.ACT_MENU||_43.windowActionDesktop[aNm]!=null){
+_47=true;
+}
+if(_47){
+_45.push(aNm);
+_4a[aNm]=true;
 }
 }
 }
-var _53=(wDC.windowActionButtonMax==null?-1:wDC.windowActionButtonMax);
-if(_53!=-1&&_4c.length>=_53){
-var _54=0;
-var _55=_4c.length-_53+1;
-for(var i=0;i<_4c.length&&_54<_55;i++){
-aNm=_4c[i];
-if(aNm!=_49.ACT_MENU){
-_50.push(aNm);
-_4c[i]=null;
-delete _51[aNm];
-_54++;
+var _4c=(wDC.windowActionButtonMax==null?-1:wDC.windowActionButtonMax);
+if(_4c!=-1&&_45.length>=_4c){
+var _4d=0;
+var _4e=_45.length-_4c+1;
+for(var i=0;i<_45.length&&_4d<_4e;i++){
+aNm=_45[i];
+if(aNm!=_42.ACT_MENU){
+_49.push(aNm);
+_45[i]=null;
+delete _4a[aNm];
+_4d++;
 }
 }
 }
 if(wDC.windowActionNoImage){
-for(var i=0;i<_4c.length;i++){
-aNm=_4c[i];
+for(var i=0;i<_45.length;i++){
+aNm=_45[i];
 if(wDC.windowActionNoImage[aNm]!=null){
-if(aNm==_49.ACT_MENU){
-_4f=true;
+if(aNm==_42.ACT_MENU){
+_48=true;
 }else{
-_50.push(aNm);
+_49.push(aNm);
 }
-_4c[i]=null;
-delete _51[aNm];
+_45[i]=null;
+delete _4a[aNm];
 }
 }
 }
 }
 if(wDC.windowActionMenuOrder){
-if(_46){
+if(_3f){
 for(var aI=0;aI<wDC.windowActionMenuOrder.length;aI++){
 aNm=wDC.windowActionMenuOrder[aI];
-_50.push(aNm);
+_49.push(aNm);
 }
 }else{
 for(var aI=0;aI<wDC.windowActionMenuOrder.length;aI++){
 aNm=wDC.windowActionMenuOrder[aI];
-if(_4a.windowActionDesktop[aNm]!=null){
-_50.push(aNm);
+if(_43.windowActionDesktop[aNm]!=null){
+_49.push(aNm);
+}
 }
 }
 }
+var _50=_42.ACT_CHANGEPORTLETTHEME;
+var _51=_43.portletDecorationsAllowed;
+if(_43.pageEditorLabels&&_51&&_51.length>1){
+var _52=_43.pageEditorLabels[_50];
+if(_52){
+_49.push(_50);
+this.actionLabels[_50]=_52;
 }
-var _57=new Array();
-if(_50.length>0||this.dbOn){
-var _58=new Object();
-for(var i=0;i<_50.length;i++){
-aNm=_50[i];
-if(aNm!=null&&_58[aNm]==null&&_51[aNm]==null){
-_57.push(aNm);
-_58[aNm]=true;
+}
+var _53=new Array();
+if(_49.length>0||this.dbOn){
+var _54=new Object();
+for(var i=0;i<_49.length;i++){
+aNm=_49[i];
+if(aNm!=null&&_54[aNm]==null&&_4a[aNm]==null){
+_53.push(aNm);
+_54[aNm]=true;
 }
 }
 if(this.dbOn){
-_57.push({aNm:this.dbMenuDims,dev:true});
+_53.push({aNm:this.dbMenuDims,dev:true});
 }
 }
-var _59=null;
-if(_57.length>0){
-var _5a={};
-var aNm,_5b,_5c,_5d;
-_59=_4b.widget.createWidget("PopupMenu2",{id:this.widgetId+"_ctxmenu",contextMenuForWindow:false},null);
-_59.onItemClick=function(mi){
+var _55=null;
+if(_53.length>0){
+var _56={};
+var aNm,_57,_58,_59,_5a,_5b;
+var _5c=wDC.name+"_menu"+(!_3f?"Np":"");
+var _5d=_5c;
+_55=_44.widget.createWidget("PopupMenu2",{id:_5d,contextMenuForWindow:false},null);
+_55.onItemClick=function(mi){
 var _aN=mi.jsActNm;
 var _60=this.pWin;
 if(!mi.jsActDev){
@@ -453,48 +417,130 @@
 _60.actionProcessDev(_aN);
 }
 };
-for(var i=0;i<_57.length;i++){
-aNm=_57[i];
-_5d=false;
+for(var i=0;i<_53.length;i++){
+aNm=_53[i];
+_5a=null;
+_5b=false;
 if(!aNm.dev){
-_5b=this.actionLabels[aNm];
+_57=this.actionLabels[aNm];
+if(aNm==_50){
+_5a=_5c+"_sub_"+aNm;
+_59=_44.widget.createWidget("PopupMenu2",{id:_5a,contextMenuForWindow:false},null);
+_59.onItemClick=function(mi){
+var _62=mi.jsPDecNm;
+var _63=_55.pWin;
+_63.changeDecorator(_62);
+};
+for(var j=0;j<_51.length;j++){
+var _65=_51[j];
+var _66=_44.widget.createWidget("MenuItem2",{caption:_65,jsPDecNm:_65});
+_59.addChild(_66);
+}
+_40.appendChild(_59.domNode);
+_41.ui.addPopupMenuWidget(_59);
+}
 }else{
-_5d=true;
-_5b=aNm=aNm.aNm;
+_5b=true;
+_57=aNm=aNm.aNm;
+}
+_58=_44.widget.createWidget("MenuItem2",{caption:_57,submenuId:_5a,jsActNm:aNm,jsActDev:_5b});
+_56[aNm]=_58;
+_55.addChild(_58);
 }
-_5c=_4b.widget.createWidget("MenuItem2",{caption:_5b,jsActNm:aNm,jsActDev:_5d});
-_5a[aNm]=_5c;
-_59.addChild(_5c);
-}
-_59.menuItemsByName=_5a;
-_47.appendChild(_59.domNode);
-_48.ui.addPopupMenuWidget(_59);
-}
-wDC.windowActionMenuHasNoImg=_4f;
-if(_46){
-wDC.windowActionButtonNames=_4c;
-wDC.windowActionMenuNames=_57;
-wDC.windowActionMenuWidget=_59;
-}else{
-wDC.windowActionButtonNamesNp=_4c;
-wDC.windowActionMenuNamesNp=_57;
-wDC.windowActionMenuWidgetNp=_59;
+_55.menuItemsByName=_56;
+_40.appendChild(_55.domNode);
+_41.ui.addPopupMenuWidget(_55);
 }
-return _4c;
-},_createActionButtonNode:function(aNm,doc,_63,_64,wDC,_66,_67,_68,_69,_6a){
+wDC.windowActionMenuHasNoImg=_48;
+if(_3f){
+wDC.windowActionButtonNames=_45;
+wDC.windowActionMenuNames=_53;
+wDC.windowActionMenuWidget=_55;
+}else{
+wDC.windowActionButtonNamesNp=_45;
+wDC.windowActionMenuNamesNp=_53;
+wDC.windowActionMenuWidgetNp=_55;
+}
+return _45;
+},_setupTitlebar:function(wDC,_68,_69,_6a,doc,_6c,_6d,_6e,_6f,_70,_71){
+var _72=_71.event;
+var aNm;
+var _74=_70.tooltipMgr;
+var _75=this.tbNode;
+var _76=(_68&&wDC);
+if(_68){
+if(this.actionMenuWidget&&_68.windowActionMenuHasNoImg){
+_6f.evtDisconnect("after",_75,"oncontextmenu",this,"actionMenuOpen",_72);
+}
+_70.tooltipMgr.removeNodes(this.tooltips);
+this.tooltips=ttps=[];
+var _77=this.actionButtons;
+if(_77){
+var _78=(_68&&_68.windowActionButtonTooltip);
+for(aNm in _77){
+var _79=_77[aNm];
+if(_79){
+_6f.evtDisconnect("after",_79,"onclick",this,"actionBtnClick",_72);
+if(!_78){
+_6f.evtDisconnect("after",_79,"onmousedown",_6c,"_stopEvent",_72);
+}
+if(_76){
+_71.dom.removeNode(_79);
+}
+}
+}
+this.actionButtons=_77={};
+}
+}
+if(wDC){
+if(wDC.windowActionButtonTooltip){
+if(this.actionLabels[_6d.ACT_DESKTOP_MOVE_TILED]!=null&&this.actionLabels[_6d.ACT_DESKTOP_MOVE_UNTILED]!=null){
+this.tooltips.push(_74.addNode(_75,null,true,1200,this,"getTitleBarTooltip",_6c,_6f,_72));
+}
+}
+var _7a=(_69)?wDC.windowActionButtonNames:wDC.windowActionButtonNamesNp;
+if(_7a==null){
+_7a=this._buildActionStructures(wDC,_69,_6a,_6c,_6d,_6e,_71);
+}
+for(var i=0;i<_7a.length;i++){
+aNm=_7a[i];
+if(aNm!=null){
+if(!_69||(aNm==_6d.ACT_RESTORE||aNm==_6d.ACT_MENU||_69.getAction(aNm)!=null||_6e.windowActionDesktop[aNm]!=null)){
+this._createActionButtonNode(aNm,doc,_6a,_74,wDC,_6c,_6e,_6f,_71,_72);
+}
+}
+}
+this.actionMenuWidget=(_69)?wDC.windowActionMenuWidget:wDC.windowActionMenuWidgetNp;
+if(this.actionMenuWidget&&wDC.windowActionMenuHasNoImg){
+_6f.evtConnect("after",_75,"oncontextmenu",this,"actionMenuOpen",_72);
+}
+if(this.ie6&&!wDC._ie6used){
+wDC._ie6used=true;
+this.actionBtnSyncDefer();
+}else{
+this.actionBtnSync(_6c,_6d);
+}
+if(wDC.windowDisableResize){
+this.resizable=false;
+}
+if(wDC.windowDisableMove){
+this.moveable=false;
+}
+}
+},_createActionButtonNode:function(aNm,doc,_7e,_7f,wDC,_81,_82,_83,_84,_85){
 if(aNm!=null){
-var _6b=doc.createElement("div");
-_6b.className="portletWindowActionButton";
-_6b.style.backgroundImage="url("+_67.getPortletDecorationBaseUrl(this.decName)+"/images/desktop/"+aNm+".gif)";
-_6b.actionName=aNm;
-this.actionButtons[aNm]=_6b;
-this.tbNode.appendChild(_6b);
-_68.evtConnect("after",_6b,"onclick",this,"actionBtnClick",_6a);
+var _86=doc.createElement("div");
+_86.className="portletWindowActionButton";
+_86.style.backgroundImage="url("+_82.getPortletDecorationBaseUrl(this.decName)+"/images/desktop/"+aNm+".gif)";
+_86.actionName=aNm;
+this.actionButtons[aNm]=_86;
+this.tbNode.appendChild(_86);
+_83.evtConnect("after",_86,"onclick",this,"actionBtnClick",_85);
 if(wDC.windowActionButtonTooltip){
-var _6c=this.actionLabels[aNm];
-this.tooltips.push(_64.addNode(_6b,_6c,true,null,null,null,_66,_68,_6a));
+var _87=this.actionLabels[aNm];
+this.tooltips.push(_7f.addNode(_86,_87,true,null,null,null,_81,_83,_85));
 }else{
-_68.evtConnect("after",_6b,"onmousedown",_66,"_stopEvent",_6a);
+_83.evtConnect("after",_86,"onmousedown",_81,"_stopEvent",_85);
 }
 }
 },getTitleBarTooltip:function(){
@@ -506,44 +552,44 @@
 }else{
 return this.actionLabels[jetspeed.id.ACT_DESKTOP_MOVE_UNTILED];
 }
-},_createLayoutInfo:function(_6d,_6e,_6f,_70,_71,_72,_73,_74,_75){
-var _76=_73.gcs(_6f);
-var _77=_73.gcs(_70);
-var _78=_75.getLayoutExtents(_6f,_76,_73,_74);
-var _79=_75.getLayoutExtents(_70,_77,_73,_74);
-var _7a={dNode:_78,cNode:_79};
-var _7b=Math.max(0,_79.mE.t);
-var _7c=Math.max(0,_79.mE.h-_79.mE.t);
-var _7d=0;
-var _7e=0;
-var _7f=null;
-if(_71){
-var _80=_73.gcs(_71);
-_7f=_75.getLayoutExtents(_71,_80,_73,_74);
-var _81=_80.cursor;
-if(_81==null||_81.length==0){
-_81="move";
-}
-_6d.dragCursor=_81;
-_7f.mBh=_73.getMarginBox(_71,_80,_74).h;
-var _82=Math.max(0,_7f.mE.h-_7f.mE.t);
-_7d=(_7f.mBh-_82)+Math.max(0,(_82-_7b));
-_7a.tbNode=_7f;
-}
-var _83=null;
-if(_72){
-var _84=_73.gcs(_72);
-_83=_75.getLayoutExtents(_72,_84,_73,_74);
-_83.mBh=_73.getMarginBox(_72,_84,_74).h;
-var _85=Math.max(0,_83.mE.t);
-_7e=(_83.mBh-_85)+Math.max(0,(_85-_7c));
-_7a.rbNode=_83;
-}
-_7a.cNode_mBh_LessBars=_7d+_7e;
-if(!_6e){
-_6d.layout=_7a;
+},_createLayoutInfo:function(_88,_89,_8a,_8b,_8c,_8d,_8e,_8f,_90){
+var _91=_8e.gcs(_8a);
+var _92=_8e.gcs(_8b);
+var _93=_90.getLayoutExtents(_8a,_91,_8e,_8f);
+var _94=_90.getLayoutExtents(_8b,_92,_8e,_8f);
+var _95={dNode:_93,cNode:_94};
+var _96=Math.max(0,_94.mE.t);
+var _97=Math.max(0,_94.mE.h-_94.mE.t);
+var _98=0;
+var _99=0;
+var _9a=null;
+if(_8c){
+var _9b=_8e.gcs(_8c);
+_9a=_90.getLayoutExtents(_8c,_9b,_8e,_8f);
+var _9c=_9b.cursor;
+if(_9c==null||_9c.length==0){
+_9c="move";
+}
+_88.dragCursor=_9c;
+_9a.mBh=_8e.getMarginBox(_8c,_9b,_8f).h;
+var _9d=Math.max(0,_9a.mE.h-_9a.mE.t);
+_98=(_9a.mBh-_9d)+Math.max(0,(_9d-_96));
+_95.tbNode=_9a;
+}
+var _9e=null;
+if(_8d){
+var _9f=_8e.gcs(_8d);
+_9e=_90.getLayoutExtents(_8d,_9f,_8e,_8f);
+_9e.mBh=_8e.getMarginBox(_8d,_9f,_8f).h;
+var _a0=Math.max(0,_9e.mE.t);
+_99=(_9e.mBh-_a0)+Math.max(0,(_a0-_97));
+_95.rbNode=_9e;
+}
+_95.cNode_mBh_LessBars=_98+_99;
+if(!_89){
+_88.layout=_95;
 }else{
-_6d.layoutIFrame=_7a;
+_88.layoutIFrame=_95;
 }
 },actionBtnClick:function(evt){
 if(evt==null||evt.target==null){
@@ -551,78 +597,77 @@
 }
 this.actionProcess(evt.target.actionName,evt);
 },actionMenuOpen:function(evt){
-var _88=jetspeed;
-var _89=_88.id;
-var _8a=this.actionMenuWidget;
-if(!_8a){
+var _a3=jetspeed;
+var _a4=_a3.id;
+var _a5=this.actionMenuWidget;
+if(!_a5){
 return;
 }
-if(_8a.isShowingNow){
-_8a.close();
+if(_a5.isShowingNow){
+_a5.close();
 }
-var _8b=null;
-var _8c=null;
+var _a6=null;
+var _a7=null;
 if(this.portlet){
-_8b=this.portlet.getCurrentActionState();
-_8c=this.portlet.getCurrentActionMode();
+_a6=this.portlet.getCurrentActionState();
+_a7=this.portlet.getCurrentActionMode();
 }
-var _8d=_8a.menuItemsByName;
-var _8e,_8f;
-for(var aNm in _8d){
-_8e=_8d[aNm];
-_8f=(this._isActionEnabled(aNm,_8b,_8c,_88,_89))?"":"none";
-_8e.domNode.style.display=_8f;
+var _a8=_a5.menuItemsByName;
+for(var aNm in _a8){
+var _aa=_a8[aNm];
+var _ab=(this._isActionEnabled(aNm,_a6,_a7,_a3,_a4))?"":"none";
+_aa.domNode.style.display=_ab;
 }
-_8a.pWin=this;
-_8a.onOpen(evt);
+_a5.pWin=this;
+_a5.onOpen(evt);
 },actionProcessDev:function(aNm,evt){
 if(aNm==this.dbMenuDims&&jetspeed.debugPWinPos){
 jetspeed.debugPWinPos(this);
 }
 },actionProcess:function(aNm,evt){
-var _95=jetspeed;
-var _96=_95.id;
+var _b0=jetspeed;
+var _b1=_b0.id;
 if(aNm==null){
 return;
 }
-if(_95.prefs.windowActionDesktop[aNm]!=null){
-if(aNm==_96.ACT_DESKTOP_TILE){
+if(_b0.prefs.windowActionDesktop[aNm]!=null){
+if(aNm==_b1.ACT_DESKTOP_TILE){
 this.makeTiled();
 }else{
-if(aNm==_96.ACT_DESKTOP_UNTILE){
+if(aNm==_b1.ACT_DESKTOP_UNTILE){
 this.makeUntiled();
 }else{
-if(aNm==_96.ACT_DESKTOP_HEIGHT_EXPAND){
+if(aNm==_b1.ACT_DESKTOP_HEIGHT_EXPAND){
 this.makeHeightToFit(false);
 }else{
-if(aNm==_96.ACT_DESKTOP_HEIGHT_NORMAL){
+if(aNm==_b1.ACT_DESKTOP_HEIGHT_NORMAL){
 this.makeHeightVariable(false,false);
 }
 }
 }
 }
 }else{
-if(aNm==_96.ACT_MENU){
+if(aNm==_b1.ACT_MENU){
 this.actionMenuOpen(evt);
 }else{
-if(aNm==_96.ACT_MINIMIZE){
-if(this.portlet&&this.windowState==_96.ACT_MAXIMIZE){
+if(aNm==_b1.ACT_MINIMIZE){
+if(this.portlet&&this.windowState==_b1.ACT_MAXIMIZE){
 this.needsRenderOnRestore=true;
 }
 this.minimizeWindow();
 if(this.portlet){
-_95.changeActionForPortlet(this.portlet.getId(),_96.ACT_MINIMIZE,null);
+_b0.changeActionForPortlet(this.portlet.getId(),_b1.ACT_MINIMIZE,null);
 }
 if(!this.portlet){
 this.actionBtnSyncDefer();
 }
 }else{
-if(aNm==_96.ACT_RESTORE){
-var _97=false;
+if(aNm==_b1.ACT_RESTORE){
+var _b2=false;
 if(this.portlet){
-if(this.windowState==_96.ACT_MAXIMIZE||this.needsRenderOnRestore){
+if(this.windowState==_b1.ACT_MAXIMIZE||this.needsRenderOnRestore){
 if(this.needsRenderOnRestore){
-_97=true;
+_b2=true;
 this.restoreOnNextRender=true;
 this.needsRenderOnRestore=false;
 }
@@ -631,17 +676,17 @@
 }
 this.portlet.renderAction(aNm);
 }else{
-_95.changeActionForPortlet(this.portlet.getId(),_96.ACT_RESTORE,null);
+_b0.changeActionForPortlet(this.portlet.getId(),_b1.ACT_RESTORE,null);
 }
 }
-if(!_97){
+if(!_b2){
 this.restoreWindow();
 }
 if(!this.portlet){
 this.actionBtnSyncDefer();
 }
 }else{
-if(aNm==_96.ACT_MAXIMIZE){
+if(aNm==_b1.ACT_MAXIMIZE){
 if(this.portlet&&this.iframesInfo){
 this.iframesInfo.iframesSize=[];
 }
@@ -649,14 +694,14 @@
 if(this.portlet){
 this.portlet.renderAction(aNm);
 }else{
-this.actionBtnSync(_95,_96);
+this.actionBtnSync(_b0,_b1);
 }
 }else{
-if(aNm==_96.ACT_REMOVEPORTLET){
+if(aNm==_b1.ACT_REMOVEPORTLET){
 if(this.portlet){
-var _98=dojo.widget.byId(_96.PG_ED_WID);
-if(_98!=null){
-_98.deletePortlet(this.portlet.entityId,this.title);
+var _b3=dojo.widget.byId(_b1.PG_ED_WID);
+if(_b3!=null){
+_b3.deletePortlet(this.portlet.entityId,this.title);
 }
 }
 }else{
@@ -669,49 +714,49 @@
 }
 }
 }
-},_isActionEnabled:function(aNm,_9a,_9b,_9c,_9d){
-var _9c=jetspeed;
-var _9d=_9c.id;
-var _9e=false;
-var _9f=this.windowState;
+},_isActionEnabled:function(aNm,_b5,_b6,_b7,_b8){
+var _b7=jetspeed;
+var _b8=_b7.id;
+var _b9=false;
+var _ba=this.windowState;
 if(this.minimizeTempRestore!=null){
 if(this.portlet){
-var _a0=this.portlet.getAction(aNm);
-if(_a0!=null){
-if(_a0.id==_9d.ACT_REMOVEPORTLET){
-if(_9c.page.editMode&&this.getLayoutActionsEnabled()){
-_9e=true;
+var _bb=this.portlet.getAction(aNm);
+if(_bb!=null){
+if(_bb.id==_b8.ACT_REMOVEPORTLET){
+if(_b7.page.editMode&&this.getLayoutActionsEnabled()){
+_b9=true;
 }
 }
 }
 }
 }else{
-if(aNm==_9d.ACT_MENU){
-if(!this._actionMenuIsEmpty(_9c,_9d)){
-_9e=true;
+if(aNm==_b8.ACT_MENU){
+if(!this._actionMenuIsEmpty(_b7,_b8)){
+_b9=true;
 }
 }else{
-if(_9c.prefs.windowActionDesktop[aNm]!=null){
+if(_b7.prefs.windowActionDesktop[aNm]!=null){
 if(this.getLayoutActionsEnabled()){
-var _a1=(this.ie6&&_9f==_9d.ACT_MINIMIZE);
-if(aNm==_9d.ACT_DESKTOP_HEIGHT_EXPAND){
-if(!this.heightToFit&&!_a1){
-_9e=true;
+var _bc=(this.ie6&&_ba==_b8.ACT_MINIMIZE);
+if(aNm==_b8.ACT_DESKTOP_HEIGHT_EXPAND){
+if(!this.heightToFit&&!_bc){
+_b9=true;
 }
 }else{
-if(aNm==_9d.ACT_DESKTOP_HEIGHT_NORMAL){
-if(this.heightToFit&&!_a1){
-_9e=true;
+if(aNm==_b8.ACT_DESKTOP_HEIGHT_NORMAL){
+if(this.heightToFit&&!_bc){
+_b9=true;
 }
 }else{
-if(aNm==_9d.ACT_DESKTOP_TILE&&_9c.prefs.windowTiling){
+if(aNm==_b8.ACT_DESKTOP_TILE&&_b7.prefs.windowTiling){
 if(!this.posStatic){
-_9e=true;
+_b9=true;
 }
 }else{
-if(aNm==_9d.ACT_DESKTOP_UNTILE){
+if(aNm==_b8.ACT_DESKTOP_UNTILE){
 if(this.posStatic){
-_9e=true;
+_b9=true;
 }
 }
 }
@@ -719,44 +764,50 @@
 }
 }
 }else{
+if(aNm==_b8.ACT_CHANGEPORTLETTHEME){
+_b9=this.editPageEnabled;
+}else{
 if(this.portlet){
-var _a0=this.portlet.getAction(aNm);
-if(_a0!=null){
-if(_a0.id==_9d.ACT_REMOVEPORTLET){
-if(_9c.page.editMode&&this.getLayoutActionsEnabled()){
-_9e=true;
+var _bb=this.portlet.getAction(aNm);
+if(_bb!=null){
+if(_bb.id==_b8.ACT_REMOVEPORTLET){
+if(_b7.page.editMode&&this.getLayoutActionsEnabled()){
+_b9=true;
 }
 }else{
-if(_a0.type==_9d.PORTLET_ACTION_TYPE_MODE){
-if(aNm!=_9b){
-_9e=true;
+if(_bb.type==_b8.PORTLET_ACTION_TYPE_MODE){
+if(aNm!=_b6){
+_b9=true;
 }
 }else{
-if(aNm!=_9a){
-_9e=true;
+if(aNm!=_b5){
+_b9=true;
 }
 }
 }
 }else{
-_9e=true;
+if(aNm==this.dbMenuDims){
+_b9=true;
+}
 }
 }else{
-if(aNm==_9d.ACT_MAXIMIZE){
-if(aNm!=_9f&&this.minimizeTempRestore==null){
-_9e=true;
+if(aNm==_b8.ACT_MAXIMIZE){
+if(aNm!=_ba&&this.minimizeTempRestore==null){
+_b9=true;
 }
 }else{
-if(aNm==_9d.ACT_MINIMIZE){
-if(aNm!=_9f){
-_9e=true;
+if(aNm==_b8.ACT_MINIMIZE){
+if(aNm!=_ba){
+_b9=true;
 }
 }else{
-if(aNm==_9d.ACT_RESTORE){
-if(_9f==_9d.ACT_MAXIMIZE||_9f==_9d.ACT_MINIMIZE){
-_9e=true;
+if(aNm==_b8.ACT_RESTORE){
+if(_ba==_b8.ACT_MAXIMIZE||_ba==_b8.ACT_MINIMIZE){
+_b9=true;
 }
 }else{
-_9e=true;
+if(aNm==this.dbMenuDims){
+_b9=true;
 }
 }
 }
@@ -764,354 +815,363 @@
 }
 }
 }
-return _9e;
-},_actionMenuIsEmpty:function(_a2,_a3){
-var _a4=true;
-var _a5=this.actionMenuWidget;
-if(_a5){
-var _a6=null;
-var _a7=null;
+}
+}
+return _b9;
+},_actionMenuIsEmpty:function(_bd,_be){
+var _bf=true;
+var _c0=this.actionMenuWidget;
+if(_c0){
+var _c1=null;
+var _c2=null;
 if(this.portlet){
-_a6=this.portlet.getCurrentActionState();
-_a7=this.portlet.getCurrentActionMode();
+_c1=this.portlet.getCurrentActionState();
+_c2=this.portlet.getCurrentActionMode();
 }
-for(var aNm in _a5.menuItemsByName){
-if(aNm!=_a3.ACT_MENU&&this._isActionEnabled(aNm,_a6,_a7,_a2,_a3)){
-_a4=false;
+for(var aNm in _c0.menuItemsByName){
+if(aNm!=_be.ACT_MENU&&this._isActionEnabled(aNm,_c1,_c2,_bd,_be)){
+_bf=false;
 break;
 }
 }
 }
-return _a4;
+return _bf;
 },actionBtnSyncDefer:function(){
 dojo.lang.setTimeout(this,this.actionBtnSync,10);
-},actionBtnSync:function(_a9,_aa){
-if(!_a9){
-_a9=jetspeed;
-_aa=_a9.id;
-}
-var _ab=this.decConfig.windowActionButtonHide;
-var _ac=null;
-var _ad=null;
+},actionBtnSync:function(_c4,_c5){
+if(!_c4){
+_c4=jetspeed;
+_c5=_c4.id;
+}
+var _c6=null;
+var _c7=null;
 if(this.portlet){
-_ac=this.portlet.getCurrentActionState();
-_ad=this.portlet.getCurrentActionMode();
+_c6=this.portlet.getCurrentActionState();
+_c7=this.portlet.getCurrentActionMode();
 }
 for(var aNm in this.actionButtons){
-var _af=false;
-if(!_ab||this.titleLit){
-_af=this._isActionEnabled(aNm,_ac,_ad,_a9,_aa);
-}
-var _b0=this.actionButtons[aNm];
-_b0.style.display=(_af)?"":"none";
+var _c9=this._isActionEnabled(aNm,_c6,_c7,_c4,_c5);
+var _ca=this.actionButtons[aNm];
+_ca.style.display=(_c9)?"block":"none";
 }
 },_postCreateMaximizeWindow:function(){
-var _b1=jetspeed;
-var _b2=_b1.id;
+var _cb=jetspeed;
+var _cc=_cb.id;
 this.maximizeWindow();
 if(this.portlet){
-this.portlet.renderAction(_b2.ACT_MAXIMIZE);
+this.portlet.renderAction(_cc.ACT_MAXIMIZE);
 }else{
-this.actionBtnSync(_b1,_b2);
+this.actionBtnSync(_cb,_cc);
 }
 },minimizeWindowTemporarily:function(){
-var _b3=jetspeed;
-var _b4=_b3.id;
+var _cd=jetspeed;
+var _ce=_cd.id;
 if(this.minimizeTempRestore==null){
 this.minimizeTempRestore=this.windowState;
-if(this.windowState!=_b4.ACT_MINIMIZE){
+if(this.windowState!=_ce.ACT_MINIMIZE){
 this.minimizeWindow(false);
 }
-this.actionBtnSync(_b3,_b4);
+this.actionBtnSync(_cd,_ce);
 }
 },restoreFromMinimizeWindowTemporarily:function(){
-var _b5=jetspeed;
-var _b6=_b5.id;
-var _b7=this.minimizeTempRestore;
+var _cf=jetspeed;
+var _d0=_cf.id;
+var _d1=this.minimizeTempRestore;
 this.minimizeTempRestore=null;
-if(_b7){
-if(_b7!=_b6.ACT_MINIMIZE){
+if(_d1){
+if(_d1!=_d0.ACT_MINIMIZE){
 this.restoreWindow();
 }
-this.actionBtnSync(_b5,_b6);
+this.actionBtnSync(_cf,_d0);
 }
-},minimizeWindow:function(_b8){
+},minimizeWindow:function(_d2){
 if(!this.tbNode){
 return;
 }
-var _b9=jetspeed;
+var _d3=jetspeed;
 if(this.windowState==jetspeed.id.ACT_MAXIMIZE){
-_b9.widget.showAllPortletWindows();
+_d3.widget.showAllPortletWindows();
 this.restoreWindow();
 }else{
-if(!_b8){
+if(!_d2){
 this._updtDimsObj(false,false);
 }
 }
-var _ba=_b9.css.cssDis;
-this.cNodeCss[_ba]="none";
+var _d4=_d3.css.cssDis;
+this.cNodeCss[_d4]="none";
 if(this.rbNodeCss){
-this.rbNodeCss[_ba]="none";
+this.rbNodeCss[_d4]="none";
 }
-this.windowState=_b9.id.ACT_MINIMIZE;
+this.windowState=_d3.id.ACT_MINIMIZE;
 if(this.ie6){
 this.containerNode.style.display="none";
 }
 this._alterCss(true,true);
 },maximizeWindow:function(){
-var _bb=jetspeed;
-var _bc=_bb.id;
-var _bd=this.domNode;
-var _be=[this.widgetId];
-_bb.widget.hideAllPortletWindows(_be);
-if(this.windowState==_bc.ACT_MINIMIZE){
+var _d5=jetspeed;
+var _d6=_d5.id;
+var _d7=this.domNode;
+var _d8=[this.widgetId];
+_d5.widget.hideAllPortletWindows(_d8);
+if(this.windowState==_d6.ACT_MINIMIZE){
 this.restoreWindow();
 }
-var _bf=this.posStatic;
-this.preMaxPosStatic=_bf;
+var _d9=this.posStatic;
+this.preMaxPosStatic=_d9;
 this.preMaxHeightToFit=this.heightToFit;
-var _c0=_bf;
-this._updtDimsObj(false,_c0);
-var _c1=document.getElementById(_bc.DESKTOP);
-var _c2=dojo.html.getAbsolutePosition(_c1,true).y;
-var _c3=dojo.html.getViewport();
-var _c4=dojo.html.getPadding(_bb.docBody);
-this.dimsUntiledTemp={w:_c3.width-_c4.width-2,h:_c3.height-_c4.height-_c2,l:1,t:_c2};
-this._setTitleBarDragging(true,_bb.css,false);
+var _da=_d9;
+this._updtDimsObj(false,_da);
+var _db=document.getElementById(_d6.DESKTOP);
+var _dc=dojo.html.getAbsolutePosition(_db,true).y;
+var _dd=dojo.html.getViewport();
+var _de=dojo.html.getPadding(_d5.docBody);
+this.dimsUntiledTemp={w:_dd.width-_de.width-2,h:_dd.height-_de.height-_dc,l:1,t:_dc};
+this._setTitleBarDragging(true,_d5.css,false);
 this.posStatic=false;
 this.heightToFit=false;
 this._alterCss(true,true);
-if(_bf){
-_c1.appendChild(_bd);
+if(_d9){
+_db.appendChild(_d7);
 }
-this.windowState=_bc.ACT_MAXIMIZE;
+this.windowState=_d6.ACT_MAXIMIZE;
 },restoreWindow:function(){
-var _c5=jetspeed;
-var _c6=_c5.id;
-var _c7=_c5.css;
-var _c8=this.domNode;
-var _c9=false;
-if(_c8.style.position=="absolute"){
-_c9=true;
-}
-var _ca=null;
-if(this.windowState==_c6.ACT_MAXIMIZE){
-_c5.widget.showAllPortletWindows();
+var _df=jetspeed;
+var _e0=_df.id;
+var _e1=_df.css;
+var _e2=this.domNode;
+var _e3=false;
+if(_e2.style.position=="absolute"){
+_e3=true;
+}
+var _e4=null;
+if(this.windowState==_e0.ACT_MAXIMIZE){
+_df.widget.showAllPortletWindows();
 this.posStatic=this.preMaxPosStatic;
 this.heightToFit=this.preMaxHeightToFit;
 this.dimsUntiledTemp=null;
 }
-var _cb=_c7.cssDis;
-this.cNodeCss[_cb]="block";
-if(this.rbNodeCss){
-this.rbNodeCss[_cb]="block";
+var _e5=_e1.cssDis;
+this.cNodeCss[_e5]="block";
+if(this.rbNodeCss&&this.resizebarEnabled){
+this.rbNodeCss[_e5]="block";
 }
-this.windowState=_c6.ACT_RESTORE;
-this._setTitleBarDragging(true,_c5.css);
+this.windowState=_e0.ACT_RESTORE;
+this._setTitleBarDragging(true,_df.css);
 var ie6=this.ie6;
 if(!ie6){
 this._alterCss(true,true);
 }else{
-var _cd=null;
+var _e7=null;
 if(this.heightToFit){
-_cd=this.iNodeCss;
+_e7=this.iNodeCss;
 this.iNodeCss=null;
 }
 this._alterCss(true,true);
 this._updtDimsObj(false,false,true,false,true);
-if(_cd!=null){
-this.iNodeCss=_cd;
+if(_e7!=null){
+this.iNodeCss=_e7;
 }
 this._alterCss(false,false,true);
 }
-if(this.posStatic&&_c9){
-this._tileWindow(_c5);
+if(this.posStatic&&_e3){
+this._tileWindow(_df);
 }
-},_tileWindow:function(_ce){
+},_tileWindow:function(_e8){
 if(!this.posStatic){
 return;
 }
-var _cf=this.domNode;
-var _d0=this.getDimsObj(this.posStatic);
-var _d1=true;
-if(_d0!=null){
-var _d2=_d0.colInfo;
-if(_d2!=null&&_d2.colI!=null){
-var _d3=_ce.page.columns[_d2.colI];
-var _d4=((_d3!=null)?_d3.domNode:null);
-if(_d4!=null){
-var _d5=null;
-var _d6=_d4.childNodes.length;
-if(_d6==0){
-_d4.appendChild(_cf);
-_d1=false;
-}else{
-var _d7,_d8,_d9=0;
-if(_d2.pSibId!=null||_d2.nSibId!=null){
-_d7=_d4.firstChild;
+var _e9=this.domNode;
+var _ea=this.getDimsObj(this.posStatic);
+var _eb=true;
+if(_ea!=null){
+var _ec=_ea.colInfo;
+if(_ec!=null&&_ec.colI!=null){
+var _ed=_e8.page.columns[_ec.colI];
+var _ee=((_ed!=null)?_ed.domNode:null);
+if(_ee!=null){
+var _ef=null;
+var _f0=_ee.childNodes.length;
+if(_f0==0){
+_ee.appendChild(_e9);
+_eb=false;
+}else{
+var _f1,_f2,_f3=0;
+if(_ec.pSibId!=null||_ec.nSibId!=null){
+_f1=_ee.firstChild;
 do{
-_d8=_d7.id;
-if(_d8==null){
+_f2=_f1.id;
+if(_f2==null){
 continue;
 }
-if(_d8==_d2.pSibId){
-dojo.dom.insertAfter(_cf,_d7);
-_d1=false;
+if(_f2==_ec.pSibId){
+dojo.dom.insertAfter(_e9,_f1);
+_eb=false;
 }else{
-if(_d8==_d2.nSibId){
-dojo.dom.insertBefore(_cf,_d7);
-_d1=false;
+if(_f2==_ec.nSibId){
+dojo.dom.insertBefore(_e9,_f1);
+_eb=false;
 }else{
-if(_d9==_d2.elmtI){
-_d5=_d7;
+if(_f3==_ec.elmtI){
+_ef=_f1;
 }
 }
 }
-_d7=_d7.nextSibling;
-_d9++;
-}while(_d1&&_d7!=null);
+_f1=_f1.nextSibling;
+_f3++;
+}while(_eb&&_f1!=null);
 }
 }
-if(_d1){
-if(_d5!=null){
-dojo.dom.insertBefore(_cf,_d5);
+if(_eb){
+if(_ef!=null){
+dojo.dom.insertBefore(_e9,_ef);
 }else{
-dojo.dom.prependChild(_cf,_d4);
+dojo.dom.prependChild(_e9,_ee);
 }
-_d1=false;
+_eb=false;
 }
 }
 }
 }
-if(_d1){
-var _da=_ce.page.getColumnDefault();
-if(_da!=null){
-dojo.dom.prependChild(_cf,_da.domNode);
-}
-}
-},getDimsObj:function(_db,_dc){
-return (_db?((this.dimsTiledTemp!=null&&!_dc)?this.dimsTiledTemp:this.dimsTiled):((this.dimsUntiledTemp!=null&&!_dc)?this.dimsUntiledTemp:this.dimsUntiled));
-},_updtDimsObj:function(_dd,_de,_df,_e0,_e1,_e2){
-var _e3=jetspeed;
-var _e4=dojo;
-var _e5=this.domNode;
-var _e6=this.posStatic;
-var _e7=this.getDimsObj(_e6,_e2);
-var _e8=(!_df&&!_e6&&(!_dd||_e7.l==null||_e7.t==null));
-var _e9=(!_e0&&(!_dd||_e8||_e1||_e7.w==null||_e7.h==null));
-if(_e9||_e8){
-var _ea=this._getLayoutInfo().dNode;
-if(_e9){
-var _eb=_e3.ui.getMarginBoxSize(_e5,_ea);
-_e7.w=_eb.w;
-_e7.h=_eb.h;
-if(!_e6){
-_e8=true;
-}
-}
-if(_e8){
-var _ec=_e4.html.getAbsolutePosition(_e5,true);
-_e7.l=_ec.x-_ea.mE.l-_ea.pbE.l;
-_e7.t=_ec.y-_ea.mE.t-_ea.pbE.t;
-}
-}
-if(_e6){
-if(_de||_e2&&_e7.colInfo==null){
-var _ed=0,_ee=_e5.previousSibling,_ef=_e5.nextSibling;
-var _f0=(_ee!=null?_ee.id:null),_f1=(_ef!=null?_ef.id:null);
-if(_ee!=null){
-_f0=_ee.id;
+if(_eb){
+var _f4=_e8.page.getColumnDefault();
+if(_f4!=null){
+dojo.dom.prependChild(_e9,_f4.domNode);
+}
+}
+},getDimsObj:function(_f5,_f6){
+return (_f5?((this.dimsTiledTemp!=null&&!_f6)?this.dimsTiledTemp:this.dimsTiled):((this.dimsUntiledTemp!=null&&!_f6)?this.dimsUntiledTemp:this.dimsUntiled));
+},_updtDimsObj:function(_f7,_f8,_f9,_fa,_fb,_fc){
+var _fd=jetspeed;
+var _fe=dojo;
+var _ff=this.domNode;
+var _100=this.posStatic;
+var _101=this.getDimsObj(_100,_fc);
+var _102=(!_f9&&!_100&&(!_f7||_101.l==null||_101.t==null));
+var _103=(!_fa&&(!_f7||_102||_fb||_101.w==null||_101.h==null));
+if(_103||_102){
+var _104=this._getLayoutInfo().dNode;
+if(_103){
+var _105=_fd.ui.getMarginBoxSize(_ff,_104);
+_101.w=_105.w;
+_101.h=_105.h;
+if(!_100){
+_102=true;
+}
+}
+if(_102){
+var _106=_fe.html.getAbsolutePosition(_ff,true);
+_101.l=_106.x-_104.mE.l-_104.pbE.l;
+_101.t=_106.y-_104.mE.t-_104.pbE.t;
 }
-while(_ee!=null){
-_ed++;
-_ee=_ee.previousSibling;
 }
-_e7.colInfo={elmtI:_ed,pSibId:_f0,nSibId:_f1,colI:this.getPageColumnIndex()};
+if(_100){
+if(_f8||_fc&&_101.colInfo==null){
+var _107=0,_108=_ff.previousSibling,_109=_ff.nextSibling;
+var _10a=(_108!=null?_108.id:null),_10b=(_109!=null?_109.id:null);
+if(_108!=null){
+_10a=_108.id;
 }
-if(_e2){
-this.dimsTiledTemp={w:_e7.w,h:_e7.h,colInfo:_e7.colInfo};
-_e7=this.dimsTiledTemp;
+while(_108!=null){
+_107++;
+_108=_108.previousSibling;
+}
+_101.colInfo={elmtI:_107,pSibId:_10a,nSibId:_10b,colI:this.getPageColumnIndex()};
+}
+if(_fc){
+this.dimsTiledTemp={w:_101.w,h:_101.h,colInfo:_101.colInfo};
+_101=this.dimsTiledTemp;
 }
 }else{
-if(_e2){
-this.dimsUntiledTemp={w:_e7.w,h:_e7.h,l:_e7.l,t:_e7.t};
-_e7=this.dimsUntiledTemp;
+if(_fc){
+this.dimsUntiledTemp={w:_101.w,h:_101.h,l:_101.l,t:_101.t};
+_101=this.dimsUntiledTemp;
 }
 }
-return _e7;
+return _101;
 },getLayoutActionsEnabled:function(){
 return (this.windowState!=jetspeed.id.ACT_MAXIMIZE&&(!this.portlet||!this.portlet.layoutActionsDisabled));
-},_setTitleBarDragging:function(_f2,_f3,_f4){
-var _f5=this.tbNode;
-if(!_f5){
+},_setTitleBarDragging:function(_10c,_10d,_10e){
+var _10f=this.tbNode;
+if(!_10f){
 return;
 }
-if(typeof _f4=="undefined"){
-_f4=this.getLayoutActionsEnabled();
+if(typeof _10e=="undefined"){
+_10e=this.getLayoutActionsEnabled();
+}
+var _110=this.resizeHandle;
+var _111=null;
+var wDC=this.decConfig;
+var _113=_10e;
+if(_113&&!this.resizebarEnabled){
+_113=false;
 }
-var _f6=this.resizeHandle;
-var _f7=null;
-if(_f4){
-_f7=this.decConfig.dragCursor;
-if(_f6){
-_f6.domNode.style.display="";
+if(_10e&&!this.titlebarEnabled){
+_10e=false;
 }
+if(_10e){
+_111=wDC.dragCursor;
 if(this.drag){
 this.drag.enable();
 }
 }else{
-_f7="default";
-if(_f6){
-_f6.domNode.style.display="none";
-}
+_111="default";
 if(this.drag){
 this.drag.disable();
 }
 }
-this.tbNodeCss[_f3.cssCur]=_f7;
-if(!_f2){
-_f5.style.cursor=_f7;
+if(_113){
+if(_110){
+_110.domNode.style.display="";
+}
+}else{
+if(_110){
+_110.domNode.style.display="none";
+}
+}
+this.tbNodeCss[_10d.cssCur]=_111;
+if(!_10c){
+_10f.style.cursor=_111;
 }
 },onMouseDown:function(evt){
 this.bringToTop(evt,false,false,jetspeed);
-},bringToTop:function(evt,_fa,_fb,_fc){
+},bringToTop:function(evt,_116,_117,_118){
 if(!this.posStatic){
-var _fd=_fc.page;
-var _fe=_fc.css;
-var _ff=this.dNodeCss;
-var _100=_fd.getPWinHighZIndex();
-var zCur=_ff[_fe.cssZIndex];
-if(_100!=zCur){
-var zTop=this._setAsTopZIndex(_fd,_fe,_ff,false);
+var _119=_118.page;
+var _11a=_118.css;
+var _11b=this.dNodeCss;
+var _11c=_119.getPWinHighZIndex();
+var zCur=_11b[_11a.cssZIndex];
+if(_11c!=zCur){
+var zTop=this._setAsTopZIndex(_119,_11a,_11b,false);
 if(this.windowInitialized){
 this.domNode.style.zIndex=zTop;
-if(!_fb&&this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){
+if(!_117&&this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){
 this.portlet.submitWinState();
 }
 }
 }
 }else{
-if(_fa){
-var zTop=this._setAsTopZIndex(_fd,_fe,_ff,true);
+if(_116){
+var zTop=this._setAsTopZIndex(_119,_11a,_11b,true);
 if(this.windowInitialized){
 this.domNode.style.zIndex=zTop;
 }
 }
 }
-},_setAsTopZIndex:function(_103,_104,_105,_106){
-var zTop=String(_103.getPWinTopZIndex(_106));
-_105[_104.cssZIndex]=zTop;
+},_setAsTopZIndex:function(_11f,_120,_121,_122){
+var zTop=String(_11f.getPWinTopZIndex(_122));
+_121[_120.cssZIndex]=zTop;
 return zTop;
 },makeUntiled:function(){
-var _108=jetspeed;
+var _124=jetspeed;
 this._updtDimsObj(false,true);
 this.posStatic=false;
 this._updtDimsObj(true,false);
-this._setAsTopZIndex(_108.page,_108.css,this.dNodeCss,false);
+this._setAsTopZIndex(_124.page,_124.css,this.dNodeCss,false);
 this._alterCss(true,true);
-var _109=document.getElementById(jetspeed.id.DESKTOP);
-_109.appendChild(this.domNode);
-if(this.windowState==_108.id.ACT_MINIMIZE){
+var _125=document.getElementById(jetspeed.id.DESKTOP);
+_125.appendChild(this.domNode);
+if(this.windowState==_124.id.ACT_MINIMIZE){
 this.minimizeWindow();
 }
 if(this.portlet){
@@ -1120,10 +1180,10 @@
 this._addUntiledEvents();
 },makeTiled:function(){
 this.posStatic=true;
-var _10a=jetspeed;
-this._setAsTopZIndex(_10a.page,_10a.css,this.dNodeCss,true);
+var _126=jetspeed;
+this._setAsTopZIndex(_126.page,_126.css,this.dNodeCss,true);
 this._alterCss(true,true);
-this._tileWindow(_10a);
+this._tileWindow(_126);
 if(this.portlet){
 this.portlet.submitWinState();
 }
@@ -1137,56 +1197,156 @@
 jetspeed.ui.evtDisconnectWObjAry(this._untiledEvts);
 delete this._untiledEvts;
 }
-},makeHeightToFit:function(_10b){
-var _10c=dojo.html.getMarginBox(this.domNode);
+},makeHeightToFit:function(_127){
+var _128=dojo.html.getMarginBox(this.domNode);
 this.heightToFit=true;
 if(this.ie6){
-var _10d=this.iNodeCss;
+var _129=this.iNodeCss;
 this.iNodeCss=null;
 this._alterCss(false,true);
 this._updtDimsObj(false,false,true,false,true);
-this.iNodeCss=_10d;
+this.iNodeCss=_129;
 }
 this._alterCss(false,true);
-if(!_10b&&this.portlet){
+if(!_127&&this.portlet){
 this.portlet.submitWinState();
 }
-},makeHeightVariable:function(_10e,_10f){
-var _110=this.getDimsObj(this.posStatic);
-var _111=this._getLayoutInfo().dNode;
-var _112=jetspeed.ui.getMarginBoxSize(this.domNode,_111);
-_110.w=_112.w;
-_110.h=_112.h;
+},makeHeightVariable:function(_12a,_12b){
+var _12c=this.getDimsObj(this.posStatic);
+var _12d=this._getLayoutInfo().dNode;
+var _12e=jetspeed.ui.getMarginBoxSize(this.domNode,_12d);
+_12c.w=_12e.w;
+_12c.h=_12e.h;
 this.heightToFit=false;
 this._alterCss(false,true);
-if(!_10f&&this.iframesInfo){
+if(!_12b&&this.iframesInfo){
 dojo.lang.setTimeout(this,this._forceRefreshZIndex,70);
 }
-if(!_10e&&this.portlet){
+if(!_12a&&this.portlet){
 this.portlet.submitWinState();
 }
-},resizeTo:function(w,h,_115){
-var _116=this.getDimsObj(this.posStatic);
-_116.w=w;
-_116.h=h;
+},editPageInitiate:function(_12f,_130){
+this.editPageEnabled=true;
+var wDC=this.decConfig;
+if(!wDC.windowTitlebar||!wDC.windowResizebar){
+var _132=_12f.cssDis;
+if(!wDC.windowTitlebar){
+this.titlebarEnabled=true;
+if(this.tbNodeCss){
+this.tbNodeCss[_132]="block";
+}
+}
+if(!wDC.windowResizebar){
+this.resizebarEnabled=true;
+if(this.rbNodeCss){
+this.rbNodeCss[_132]="block";
+}
+}
+this._setTitleBarDragging(true,_12f);
+if(!_130){
+this._alterCss(true,true);
+}
+}
+},editPageTerminate:function(_133,_134){
+this.editPageEnabled=false;
+var wDC=this.decConfig;
+if(!wDC.windowTitlebar||!wDC.windowResizebar){
+var _136=_133.cssDis;
+if(!wDC.windowTitlebar){
+this.titlebarEnabled=false;
+if(this.tbNodeCss){
+this.tbNodeCss[_136]="none";
+}
+}
+if(!wDC.windowResizebar){
+this.resizebarEnabled=false;
+if(this.rbNodeCss){
+this.rbNodeCss[_136]="none";
+}
+}
+this._setTitleBarDragging(true,_133);
+if(!_134){
+this._alterCss(true,true);
+}
+}
+},changeDecorator:function(_137){
+var _138=jetspeed;
+var _139=_138.css;
+var jsId=_138.id;
+var jsUI=_138.ui;
+var _13c=_138.prefs;
+var _13d=dojo;
+var _13e=this.decConfig;
+if(_13e&&_13e.name==_137){
+return;
+}
+var wDC=_138.loadPortletDecorationStyles(_137,_13c);
+if(!wDC){
+return;
+}
+var _140=this.portlet;
+if(_140){
+_140._submitAjaxApi("updatepage","&method=update-portlet-decorator&portlet-decorator="+_137);
+}
+this.decConfig=wDC;
+this.decName=wDC.name;
+var _141=this.domNode;
+var _142=this.containerNode;
+var _143=this.iframesInfo;
+var _144=(_143&&_143.layout);
+var _145=(!_144?wDC.layout:wDC.layoutIFrame);
+if(!_145){
+if(!_144){
+this._createLayoutInfo(wDC,false,_141,_142,this.tbNode,this.rbNode,_13d,_138,jsUI);
+}else{
+this._createLayoutInfo(wDC,true,_141,_142,this.tbNode,this.rbNode,_13d,_138,jsUI);
+}
+}
+this._setupTitlebar(wDC,_13e,this.portlet,_138.docBody,document,_138,_138.id,_13c,jsUI,_138.page,_13d);
+_141.className=wDC.dNodeClass;
+if(_144){
+_142.className=wDC.cNodeClass+" "+this.iframeCoverContainerClass;
+}else{
+_142.className=wDC.cNodeClass;
+}
+var _146=_139.cssDis;
+this.titlebarEnabled=true;
+if(this.tbNodeCss){
+this.tbNodeCss[_146]="block";
+}
+this.resizebarEnabled=true;
+if(this.rbNodeCss){
+this.rbNodeCss[_146]="block";
+}
+if(this.editPageEnabled){
+this.editPageInitiate(_139,true);
+}else{
+this.editPageTerminate(_139,true);
+}
+this._setTitleBarDragging(true,_139);
+this._alterCss(true,true);
+},resizeTo:function(w,h,_149){
+var _14a=this.getDimsObj(this.posStatic);
+_14a.w=w;
+_14a.h=h;
 this._alterCss(false,false,true);
 if(!this.windowIsSizing){
-var _117=this.resizeHandle;
-if(_117!=null&&_117._isSizing){
-jetspeed.ui.evtConnect("after",_117,"_endSizing",this,"endSizing");
+var _14b=this.resizeHandle;
+if(_14b!=null&&_14b._isSizing){
+jetspeed.ui.evtConnect("after",_14b,"_endSizing",this,"endSizing");
 this.windowIsSizing=true;
 }
 }
 this.resizeNotifyChildWidgets();
 },resizeNotifyChildWidgets:function(){
 if(this.childWidgets){
-var _118=this.childWidgets;
-var _119=_118.length,_11a;
-for(var i=0;i<_119;i++){
+var _14c=this.childWidgets;
+var _14d=_14c.length,_14e;
+for(var i=0;i<_14d;i++){
 try{
-_11a=_118[i];
-if(_11a){
-_11a.checkSize();
+_14e=_14c[i];
+if(_14e){
+_14e.checkSize();
 }
 }
 catch(e){
@@ -1194,235 +1354,235 @@
 }
 }
 },_getLayoutInfo:function(){
-var _11c=this.iframesInfo;
-return ((!(_11c&&_11c.layout))?this.decConfig.layout:this.decConfig.layoutIFrame);
+var _150=this.iframesInfo;
+return ((!(_150&&_150.layout))?this.decConfig.layout:this.decConfig.layoutIFrame);
 },_getLayoutInfoMoveable:function(){
 return this._getLayoutInfo().dNode;
 },onBrowserWindowResize:function(){
 if(this.ie6){
 this._resetIE6TiledSize(false);
 }
-},_resetIE6TiledSize:function(_11d){
-var _11e=this.posStatic;
-if(_11e){
-var _11f=this.domNode;
-var _120=this.getDimsObj(_11e);
-_120.w=Math.max(0,this.domNode.parentNode.offsetWidth-this.colWidth_pbE);
-this._alterCss(_11d,false,false,false,true);
-}
-},_alterCss:function(_121,_122,_123,_124,_125,_126){
-var _127=jetspeed;
-var _128=_127.css;
-var _129=this.iframesInfo;
-var _12a=(_129&&_129.layout);
-var _12b=(!_12a?this.decConfig.layout:this.decConfig.layoutIFrame);
-var _12c=this.dNodeCss,_12d=null,_12e=null,_12f=null,_130=false,_131=this.iNodeCss,_132=null;
-if(_131&&_12a){
-_132=_129.iframeCoverIE6Css;
-}
-var _133=this.posStatic;
-var _134=(_133&&_131==null);
-var _135=this.heightToFit;
-var _136=(_121||_125||(_123&&!_134));
-var _137=(_122||_123);
-var _138=(_121||_124);
-var _139=(_122||(_123&&_12a));
-var _13a=this.getDimsObj(_133);
-if(_121){
-_12c[_128.cssPos]=(_133?"relative":"absolute");
-}
-var _13b=null,_13c=null;
-if(_122){
-if(_12a){
-var _13d=this.getIFrames(false);
-if(_13d&&_13d.iframes.length==1&&_129.iframesSize!=null&&_129.iframesSize.length==1){
-var _13e=_129.iframesSize[0].h;
-if(_13e!=null){
-_13b=_13d.iframes[0];
-_13c=(_135?_13e:(!_127.UAie?"100%":"99%"));
-_126=false;
-}
-}
-}
-}
-if(_139){
-_12d=this.cNodeCss;
-var _13f=_128.cssOx,_140=_128.cssOy;
-if(_135&&!_12a){
-_12c[_140]="visible";
-_12d[_140]="visible";
-}else{
-_12c[_140]="hidden";
-_12d[_140]=(!_12a?"auto":"hidden");
-}
-}
-if(_138){
-var lIdx=_128.cssL,_142=_128.cssLU;
-var tIdx=_128.cssT,_144=_128.cssTU;
-if(_133){
-_12c[lIdx]="auto";
-_12c[_142]="";
-_12c[tIdx]="auto";
-_12c[_144]="";
-}else{
-_12c[lIdx]=_13a.l;
-_12c[_142]="px";
-_12c[tIdx]=_13a.t;
-_12c[_144]="px";
-}
-}
-if(_137){
-_12d=this.cNodeCss;
-var hIdx=_128.cssH,_146=_128.cssHU;
-if(_135&&_131==null){
-_12c[hIdx]="";
-_12c[_146]="";
-_12d[hIdx]="";
-_12d[_146]="";
-}else{
-var h=_13a.h;
-var _148=_127.css.cssDis;
-var _149;
-var _14a;
-if(_12d[_148]=="none"){
-_149=_12b.tbNode.mBh;
-_14a="";
-_12d[_146]="";
-}else{
-_149=(h-_12b.dNode.lessH);
-_14a=_149-_12b.cNode.lessH-_12b.cNode_mBh_LessBars;
-_12d[_146]="px";
-}
-_12c[hIdx]=_149;
-_12c[_146]="px";
-_12d[hIdx]=_14a;
-if(_131){
-_131[hIdx]=_149;
-_131[_146]="px";
-_130=true;
-if(_132){
-_132[hIdx]=_14a;
-_132[_146]=_12d[_146];
-}
-}
-}
-}
-if(_136){
-var w=_13a.w;
-_12d=this.cNodeCss;
-_12e=this.tbNodeCss;
-_12f=this.rbNodeCss;
-var wIdx=_128.cssW,_14d=_128.cssWU;
-if(_134&&(!this.ie6||!w)){
-_12c[wIdx]="";
-_12c[_14d]="";
-_12d[wIdx]="";
-_12d[_14d]="";
-if(_12e){
-_12e[wIdx]="";
-_12e[_14d]="";
-}
-if(_12f){
-_12f[wIdx]="";
-_12f[_14d]="";
-}
-}else{
-var _14e=(w-_12b.dNode.lessW);
-_12c[wIdx]=_14e;
-_12c[_14d]="px";
-_12d[wIdx]=_14e-_12b.cNode.lessW;
-_12d[_14d]="px";
-if(_12e){
-_12e[wIdx]=_14e-_12b.tbNode.lessW;
-_12e[_14d]="px";
-}
-if(_12f){
-_12f[wIdx]=_14e-_12b.rbNode.lessW;
-_12f[_14d]="px";
-}
-if(_131){
-_131[wIdx]=_14e;
-_131[_14d]="px";
-_130=true;
-if(_132){
-_132[wIdx]=_12d[wIdx];
-_132[_14d]=_12d[_14d];
-}
-}
-}
-}
-if(!_126){
-this.domNode.style.cssText=_12c.join("");
-if(_12d){
-this.containerNode.style.cssText=_12d.join("");
-}
-if(_12e){
-this.tbNode.style.cssText=_12e.join("");
-}
-if(_12f){
-this.rbNode.style.cssText=_12f.join("");
-}
-if(_130){
-this.bgIframe.iframe.style.cssText=_131.join("");
-if(_132){
-_129.iframeCover.style.cssText=_132.join("");
-}
-}
-}
-if(_13b&&_13c){
-this._deferSetIFrameH(_13b,_13c,false,50);
-}
-},_deferSetIFrameH:function(_14f,_150,_151,_152,_153){
-if(!_152){
-_152=100;
+},_resetIE6TiledSize:function(_151){
+var _152=this.posStatic;
+if(_152){
+var _153=this.domNode;
+var _154=this.getDimsObj(_152);
+_154.w=Math.max(0,this.domNode.parentNode.offsetWidth-this.colWidth_pbE);
+this._alterCss(_151,false,false,false,true);
+}
+},_alterCss:function(_155,_156,_157,_158,_159,_15a){
+var _15b=jetspeed;
+var _15c=_15b.css;
+var _15d=this.iframesInfo;
+var _15e=(_15d&&_15d.layout);
+var _15f=(!_15e?this.decConfig.layout:this.decConfig.layoutIFrame);
+var _160=this.dNodeCss,_161=null,_162=null,_163=null,_164=false,_165=this.iNodeCss,_166=null;
+if(_165&&_15e){
+_166=_15d.iframeCoverIE6Css;
+}
+var _167=this.posStatic;
+var _168=(_167&&_165==null);
+var _169=this.heightToFit;
+var _16a=(_155||_159||(_157&&!_168));
+var _16b=(_156||_157);
+var _16c=(_155||_158);
+var _16d=(_156||(_157&&_15e));
+var _16e=this.getDimsObj(_167);
+if(_155){
+_160[_15c.cssPos]=(_167?"relative":"absolute");
+}
+var _16f=null,_170=null;
+if(_156){
+if(_15e){
+var _171=this.getIFrames(false);
+if(_171&&_171.iframes.length==1&&_15d.iframesSize!=null&&_15d.iframesSize.length==1){
+var _172=_15d.iframesSize[0].h;
+if(_172!=null){
+_16f=_171.iframes[0];
+_170=(_169?_172:(!_15b.UAie?"100%":"99%"));
+_15a=false;
+}
+}
+}
+}
+if(_16d){
+_161=this.cNodeCss;
+var _173=_15c.cssOx,_174=_15c.cssOy;
+if(_169&&!_15e){
+_160[_174]="visible";
+_161[_174]="visible";
+}else{
+_160[_174]="hidden";
+_161[_174]=(!_15e?"auto":"hidden");
+}
+}
+if(_16c){
+var lIdx=_15c.cssL,_176=_15c.cssLU;
+var tIdx=_15c.cssT,_178=_15c.cssTU;
+if(_167){
+_160[lIdx]="auto";
+_160[_176]="";
+_160[tIdx]="auto";
+_160[_178]="";
+}else{
+_160[lIdx]=_16e.l;
+_160[_176]="px";
+_160[tIdx]=_16e.t;
+_160[_178]="px";
+}
+}
+if(_16b){
+_161=this.cNodeCss;
+var hIdx=_15c.cssH,_17a=_15c.cssHU;
+if(_169&&_165==null){
+_160[hIdx]="";
+_160[_17a]="";
+_161[hIdx]="";
+_161[_17a]="";
+}else{
+var h=_16e.h;
+var _17c=_15b.css.cssDis;
+var _17d;
+var _17e;
+if(_161[_17c]=="none"){
+_17d=_15f.tbNode.mBh;
+_17e="";
+_161[_17a]="";
+}else{
+_17d=(h-_15f.dNode.lessH);
+_17e=_17d-_15f.cNode.lessH-_15f.cNode_mBh_LessBars;
+_161[_17a]="px";
+}
+_160[hIdx]=_17d;
+_160[_17a]="px";
+_161[hIdx]=_17e;
+if(_165){
+_165[hIdx]=_17d;
+_165[_17a]="px";
+_164=true;
+if(_166){
+_166[hIdx]=_17e;
+_166[_17a]=_161[_17a];
+}
+}
+}
+}
+if(_16a){
+var w=_16e.w;
+_161=this.cNodeCss;
+_162=this.tbNodeCss;
+_163=this.rbNodeCss;
+var wIdx=_15c.cssW,_181=_15c.cssWU;
+if(_168&&(!this.ie6||!w)){
+_160[wIdx]="";
+_160[_181]="";
+_161[wIdx]="";
+_161[_181]="";
+if(_162){
+_162[wIdx]="";
+_162[_181]="";
+}
+if(_163){
+_163[wIdx]="";
+_163[_181]="";
+}
+}else{
+var _182=(w-_15f.dNode.lessW);
+_160[wIdx]=_182;
+_160[_181]="px";
+_161[wIdx]=_182-_15f.cNode.lessW;
+_161[_181]="px";
+if(_162){
+_162[wIdx]=_182-_15f.tbNode.lessW;
+_162[_181]="px";
+}
+if(_163){
+_163[wIdx]=_182-_15f.rbNode.lessW;
+_163[_181]="px";
+}
+if(_165){
+_165[wIdx]=_182;
+_165[_181]="px";
+_164=true;
+if(_166){
+_166[wIdx]=_161[wIdx];
+_166[_181]=_161[_181];
+}
+}
+}
+}
+if(!_15a){
+this.domNode.style.cssText=_160.join("");
+if(_161){
+this.containerNode.style.cssText=_161.join("");
+}
+if(_162){
+this.tbNode.style.cssText=_162.join("");
+}
+if(_163){
+this.rbNode.style.cssText=_163.join("");
+}
+if(_164){
+this.bgIframe.iframe.style.cssText=_165.join("");
+if(_166){
+_15d.iframeCover.style.cssText=_166.join("");
+}
+}
+}
+if(_16f&&_170){
+this._deferSetIFrameH(_16f,_170,false,50);
+}
+},_deferSetIFrameH:function(_183,_184,_185,_186,_187){
+if(!_186){
+_186=100;
 }
 var pWin=this;
 window.setTimeout(function(){
-_14f.height=_150;
-if(_151){
-if(_153==null){
-_153=50;
+_183.height=_184;
+if(_185){
+if(_187==null){
+_187=50;
 }
-if(_153==0){
+if(_187==0){
 pWin._forceRefreshZIndexAndForget();
 }else{
-dojo.lang.setTimeout(pWin,pWin._forceRefreshZIndexAndForget,_153);
+dojo.lang.setTimeout(pWin,pWin._forceRefreshZIndexAndForget,_187);
 }
 }
-},_152);
-},_getWindowMarginBox:function(_155,_156){
-var _157=this.domNode;
-if(_155==null){
-_155=this._getLayoutInfo().dNode;
+},_186);
+},_getWindowMarginBox:function(_189,_18a){
+var _18b=this.domNode;
+if(_189==null){
+_189=this._getLayoutInfo().dNode;
 }
-var _158=null;
-if(_156.UAope){
-_158=(this.posStatic?_156.page.layoutInfo.column:_156.page.layoutInfo.desktop);
+var _18c=null;
+if(_18a.UAope){
+_18c=(this.posStatic?_18a.page.layoutInfo.column:_18a.page.layoutInfo.desktop);
 }
-return _156.ui.getMarginBox(_157,_155,_158,_156);
+return _18a.ui.getMarginBox(_18b,_189,_18c,_18a);
 },_forceRefreshZIndex:function(){
-var _159=jetspeed;
-var zTop=this._setAsTopZIndex(_159.page,_159.css,this.dNodeCss,this.posStatic);
+var _18d=jetspeed;
+var zTop=this._setAsTopZIndex(_18d.page,_18d.css,this.dNodeCss,this.posStatic);
 this.domNode.style.zIndex=zTop;
 },_forceRefreshZIndexAndForget:function(){
 var zTop=jetspeed.page.getPWinTopZIndex(this.posStatic);
 this.domNode.style.zIndex=String(zTop);
-},getIFrames:function(_15c){
-var _15d=this.containerNode.getElementsByTagName("iframe");
-if(_15d&&_15d.length>0){
-if(!_15c){
-return {iframes:_15d};
-}
-var _15e=[];
-for(var i=0;i<_15d.length;i++){
-var ifrm=_15d[i];
+},getIFrames:function(_190){
+var _191=this.containerNode.getElementsByTagName("iframe");
+if(_191&&_191.length>0){
+if(!_190){
+return {iframes:_191};
+}
+var _192=[];
+for(var i=0;i<_191.length;i++){
+var ifrm=_191[i];
 var w=new Number(String(ifrm.width));
 w=(isNaN(w)?null:String(ifrm.width));
 var h=new Number(String(ifrm.height));
 h=(isNaN(h)?null:String(ifrm.height));
-_15e.push({w:w,h:h});
+_192.push({w:w,h:h});
 }
-return {iframes:_15d,iframesSize:_15e};
+return {iframes:_191,iframesSize:_192};
 }
 return null;
 },contentChanged:function(evt){
@@ -1434,67 +1594,49 @@
 this.inContentChgd=false;
 }
 },closeWindow:function(){
-var _164=jetspeed;
-var jsUI=_164.ui;
-var _166=_164.page;
-var _167=dojo;
-var _168=_167.event;
+var _198=jetspeed;
+var jsUI=_198.ui;
+var _19a=_198.page;
+var _19b=dojo;
+var _19c=_19b.event;
 var wDC=this.decConfig;
-if(this.actionMenuWidget&&wDC&&wDC.windowActionMenuHasNoImg){
-jsUI.evtDisconnect("after",this.tbNode,"oncontextmenu",this,"actionMenuOpen",_168);
-}
-_166.tooltipMgr.removeNodes(this.tooltips);
-this.tooltips=ttps=null;
 if(this.iframesInfo){
-_166.unregPWinIFrameCover(this);
-}
-var _16a=this.actionButtons;
-if(_16a){
-var _16b=(wDC&&wDC.windowActionButtonTooltip);
-for(var aNm in _16a){
-var aBtn=_16a[aNm];
-if(aBtn){
-jsUI.evtDisconnect("after",aBtn,"onclick",this,"actionBtnClick",_168);
-if(!_16b){
-jsUI.evtDisconnect("after",aBtn,"onmousedown",_164,"_stopEvent",_168);
-}
-}
-}
-this.actionButtons=_16a=null;
+_19a.unregPWinIFrameCover(this);
 }
+this._setupTitlebar(null,wDC,this.portlet,_198.docBody,document,_198,_198.id,_198.prefs,jsUI,_19a,_19b);
 if(this.drag){
-this.drag.destroy(_167,_168,_164,jsUI);
+this.drag.destroy(_19b,_19c,_198,jsUI);
 this.drag=null;
 }
 if(this.resizeHandle){
-this.resizeHandle.destroy(_168,_164,jsUI);
+this.resizeHandle.destroy(_19c,_198,jsUI);
 this.resizeHandle=null;
 }
-this._destroyChildWidgets(_167);
+this._destroyChildWidgets(_19b);
 this._removeUntiledEvents();
-var _16e=this.domNode;
-if(_16e&&_16e.parentNode){
-_16e.parentNode.removeChild(_16e);
+var _19e=this.domNode;
+if(_19e&&_19e.parentNode){
+_19e.parentNode.removeChild(_19e);
 }
 this.domNode=null;
 this.containerNode=null;
 this.tbNode=null;
 this.rbNode=null;
-},_destroyChildWidgets:function(_16f){
+},_destroyChildWidgets:function(_19f){
 if(this.childWidgets){
-var _170=this.childWidgets;
-var _171=_170.length,_172,swT,swI;
-_16f.debug("PortletWindow ["+this.widgetId+"] destroy child widgets ("+_171+")");
-for(var i=(_171-1);i>=0;i--){
+var _1a0=this.childWidgets;
+var _1a1=_1a0.length,_1a2,swT,swI;
+_19f.debug("PortletWindow ["+this.widgetId+"] destroy child widgets ("+_1a1+")");
+for(var i=(_1a1-1);i>=0;i--){
 try{
-_172=_170[i];
-if(_172){
-swT=_172.widgetType;
-swI=_172.widgetId;
-_172.destroy();
-_16f.debug("destroyed child widget["+i+"]: "+swT+" "+swI);
+_1a2=_1a0[i];
+if(_1a2){
+swT=_1a2.widgetType;
+swI=_1a2.widgetId;
+_1a2.destroy();
+_19f.debug("destroyed child widget["+i+"]: "+swT+" "+swI);
 }
-_170[i]=null;
+_1a0[i]=null;
 }
 catch(e){
 }
@@ -1509,192 +1651,192 @@
 if(this.portlet&&this.windowState!=jetspeed.id.ACT_MAXIMIZE){
 this.portlet.submitWinState();
 }
-},endDragging:function(_177,_178,_179){
-var _17a=jetspeed;
+},endDragging:function(_1a7,_1a8,_1a9){
+var _1aa=jetspeed;
 var ie6=this.ie6;
-if(_178){
+if(_1a8){
 this.posStatic=false;
 }else{
-if(_179){
+if(_1a9){
 this.posStatic=true;
 }
 }
-var _17c=this.posStatic;
-if(!_17c){
-var _17d=this.getDimsObj(_17c);
-if(_177&&_177.left!=null&&_177.top!=null){
-_17d.l=_177.left;
-_17d.t=_177.top;
-if(!_178){
+var _1ac=this.posStatic;
+if(!_1ac){
+var _1ad=this.getDimsObj(_1ac);
+if(_1a7&&_1a7.left!=null&&_1a7.top!=null){
+_1ad.l=_1a7.left;
+_1ad.t=_1a7.top;
+if(!_1a8){
 this._alterCss(false,false,false,true,false,true);
 }
 }
-if(_178){
+if(_1a8){
 this._updtDimsObj(false,false,true);
 this._alterCss(true,true,false,true);
 this._addUntiledEvents();
 }
 }else{
-if(_179){
-this._setAsTopZIndex(_17a.page,_17a.css,this.dNodeCss,_17c);
+if(_1a9){
+this._setAsTopZIndex(_1aa.page,_1aa.css,this.dNodeCss,_1ac);
 this._updtDimsObj(false,false);
 }
 if(!ie6){
 this._alterCss(true);
 this.resizeNotifyChildWidgets();
 }else{
-this._resetIE6TiledSize(_179);
+this._resetIE6TiledSize(_1a9);
 }
 }
-if(this.portlet&&this.windowState!=_17a.id.ACT_MAXIMIZE){
+if(this.portlet&&this.windowState!=_1aa.id.ACT_MAXIMIZE){
 this.portlet.submitWinState();
 }
 if(ie6){
-dojo.lang.setTimeout(this,this._IEPostDrag,_17a.widget.ie6PostDragAddDelay);
+dojo.lang.setTimeout(this,this._IEPostDrag,_1aa.widget.ie6PostDragAddDelay);
 }
-},getCurWinState:function(_17e){
-var _17f=this.domNode;
-var _180=this.posStatic;
-if(!_17f){
+},getCurWinState:function(_1ae){
+var _1af=this.domNode;
+var _1b0=this.posStatic;
+if(!_1af){
 return null;
 }
-var _181=_17f.style;
-var _182={};
-if(!_180){
-_182.zIndex=_181.zIndex;
-}
-if(_17e){
-return _182;
-}
-var _183=this.getDimsObj(_180);
-_182.width=(_183.w?String(_183.w):"");
-_182.height=(_183.h?String(_183.h):"");
-_182[jetspeed.id.PP_WINDOW_POSITION_STATIC]=_180;
-_182[jetspeed.id.PP_WINDOW_HEIGHT_TO_FIT]=this.heightToFit;
-if(!_180){
-_182.left=(_183.l!=null?String(_183.l):"");
-_182.top=(_183.t!=null?String(_183.t):"");
-}else{
-var _184=jetspeed.page.getPortletCurColRow(_17f);
-if(_184!=null){
-_182.column=_184.column;
-_182.row=_184.row;
-_182.layout=_184.layout;
+var _1b1=_1af.style;
+var _1b2={};
+if(!_1b0){
+_1b2.zIndex=_1b1.zIndex;
+}
+if(_1ae){
+return _1b2;
+}
+var _1b3=this.getDimsObj(_1b0);
+_1b2.width=(_1b3.w?String(_1b3.w):"");
+_1b2.height=(_1b3.h?String(_1b3.h):"");
+_1b2[jetspeed.id.PP_WINDOW_POSITION_STATIC]=_1b0;
+_1b2[jetspeed.id.PP_WINDOW_HEIGHT_TO_FIT]=this.heightToFit;
+if(!_1b0){
+_1b2.left=(_1b3.l!=null?String(_1b3.l):"");
+_1b2.top=(_1b3.t!=null?String(_1b3.t):"");
+}else{
+var _1b4=jetspeed.page.getPortletCurColRow(_1af);
+if(_1b4!=null){
+_1b2.column=_1b4.column;
+_1b2.row=_1b4.row;
+_1b2.layout=_1b4.layout;
 }else{
 throw new Error("Can't find row/col/layout for window: "+this.widgetId);
 }
 }
-return _182;
-},getCurWinStateForPersist:function(_185){
-var _186=this.getCurWinState(_185);
-this._mkNumProp(null,_186,"left");
-this._mkNumProp(null,_186,"top");
-this._mkNumProp(null,_186,"width");
-this._mkNumProp(null,_186,"height");
-return _186;
-},_mkNumProp:function(_187,_188,_189){
-var _18a=(_188!=null&&_189!=null);
-if(_187==null&&_18a){
-_187=_188[_189];
-}
-if(_187==null||_187.length==0){
-_187=0;
-}else{
-var _18b="";
-for(var i=0;i<_187.length;i++){
-var _18d=_187.charAt(i);
-if((_18d>="0"&&_18d<="9")||_18d=="."){
-_18b+=_18d.toString();
-}
-}
-if(_18b==null||_18b.length==0){
-_18b="0";
+return _1b2;
+},getCurWinStateForPersist:function(_1b5){
+var _1b6=this.getCurWinState(_1b5);
+this._mkNumProp(null,_1b6,"left");
+this._mkNumProp(null,_1b6,"top");
+this._mkNumProp(null,_1b6,"width");
+this._mkNumProp(null,_1b6,"height");
+return _1b6;
+},_mkNumProp:function(_1b7,_1b8,_1b9){
+var _1ba=(_1b8!=null&&_1b9!=null);
+if(_1b7==null&&_1ba){
+_1b7=_1b8[_1b9];
+}
+if(_1b7==null||_1b7.length==0){
+_1b7=0;
+}else{
+var _1bb="";
+for(var i=0;i<_1b7.length;i++){
+var _1bd=_1b7.charAt(i);
+if((_1bd>="0"&&_1bd<="9")||_1bd=="."){
+_1bb+=_1bd.toString();
+}
+}
+if(_1bb==null||_1bb.length==0){
+_1bb="0";
 }
-if(_18a){
-_188[_189]=_18b;
+if(_1ba){
+_1b8[_1b9]=_1bb;
 }
-_187=new Number(_18b);
+_1b7=new Number(_1bb);
 }
-return _187;
+return _1b7;
 },setPortletContent:function(html,url){
-var _190=jetspeed;
-var _191=dojo;
+var _1c0=jetspeed;
+var _1c1=dojo;
 var ie6=this.ie6;
-var _193=null;
+var _1c3=null;
 if(ie6){
-_193=this.iNodeCss;
+_1c3=this.iNodeCss;
 if(this.heightToFit){
 this.iNodeCss=null;
 this._alterCss(false,true);
 }
 }
-var _194=html.toString();
+var _1c4=html.toString();
 if(!this.exclPContent){
-_194="<div class=\"PContent\" >"+_194+"</div>";
+_1c4="<div class=\"PContent\" >"+_1c4+"</div>";
 }
-var _195=this._splitAndFixPaths_scriptsonly(_194,url);
-var _196=this.setContent(_195,_191);
-this.childWidgets=((_196&&_196.length>0)?_196:null);
-if(_195.scripts!=null&&_195.scripts.length!=null&&_195.scripts.length>0){
-this._executeScripts(_195.scripts,_191);
+var _1c5=this._splitAndFixPaths_scriptsonly(_1c4,url);
+var _1c6=this.setContent(_1c5,_1c1);
+this.childWidgets=((_1c6&&_1c6.length>0)?_1c6:null);
+if(_1c5.scripts!=null&&_1c5.scripts.length!=null&&_1c5.scripts.length>0){
+this._executeScripts(_1c5.scripts,_1c1);
 this.onLoad();
 }
-if(_190.debug.setPortletContent){
-_191.debug("setPortletContent ["+(this.portlet?this.portlet.entityId:this.widgetId)+"]");
+if(_1c0.debug.setPortletContent){
+_1c1.debug("setPortletContent ["+(this.portlet?this.portlet.entityId:this.widgetId)+"]");
 }
-var _197=this.containerNode;
+var _1c7=this.containerNode;
 if(this.portlet){
-this.portlet.postParseAnnotateHtml(_197);
+this.portlet.postParseAnnotateHtml(_1c7);
 }
-var _198=this.iframesInfo;
-var _199=this.getIFrames(true);
-var _19a=null,_19b=false;
-if(_199!=null){
-if(_198==null){
-this.iframesInfo=_198={};
-var _19c=_197.ownerDocument.createElement("div");
-var _19d="portletWindowIFrameCover";
-_19c.className=_19d;
-_197.appendChild(_19c);
-if(_190.UAie){
-_19c.className=(_19d+"IE")+" "+_19d;
+var _1c8=this.iframesInfo;
+var _1c9=this.getIFrames(true);
+var _1ca=null,_1cb=false;
+if(_1c9!=null){
+if(_1c8==null){
+this.iframesInfo=_1c8={};
+var _1cc=_1c7.ownerDocument.createElement("div");
+var _1cd="portletWindowIFrameCover";
+_1cc.className=_1cd;
+_1c7.appendChild(_1cc);
+if(_1c0.UAie){
+_1cc.className=(_1cd+"IE")+" "+_1cd;
 if(ie6){
-_198.iframeCoverIE6Css=_190.css.cssWidthHeight.concat();
+_1c8.iframeCoverIE6Css=_1c0.css.cssWidthHeight.concat();
 }
 }
-_198.iframeCover=_19c;
-_190.page.regPWinIFrameCover(this);
+_1c8.iframeCover=_1cc;
+_1c0.page.regPWinIFrameCover(this);
 }
-var _19e=_198.iframesSize=_199.iframesSize;
-var _19f=_199.iframes;
-var _1a0=_198.layout;
-var _1a1=_198.layout=(_19f.length==1&&_19e[0].h!=null);
-if(_1a0!=_1a1){
-_19b=true;
+var _1ce=_1c8.iframesSize=_1c9.iframesSize;
+var _1cf=_1c9.iframes;
+var _1d0=_1c8.layout;
+var _1d1=_1c8.layout=(_1cf.length==1&&_1ce[0].h!=null);
+if(_1d0!=_1d1){
+_1cb=true;
 }
-if(_1a1){
+if(_1d1){
 if(!this.heightToFit){
-_19a=_19f[0];
+_1ca=_1cf[0];
 }
 var wDC=this.decConfig;
-var _197=this.containerNode;
-_197.firstChild.className="PContent portletIFramePContent";
-_197.className=wDC.cNodeClass+" portletWindowIFrameClient";
+var _1c7=this.containerNode;
+_1c7.firstChild.className="PContent portletIFramePContent";
+_1c7.className=wDC.cNodeClass+" "+this.iframeCoverContainerClass;
 if(!wDC.layoutIFrame){
-this._createLayoutInfo(wDC,true,this.domNode,_197,this.tbNode,this.rbNode,_191,_190,_190.ui);
+this._createLayoutInfo(wDC,true,this.domNode,_1c7,this.tbNode,this.rbNode,_1c1,_1c0,_1c0.ui);
 }
 }
 }else{
-if(_198!=null){
-if(_198.layout){
+if(_1c8!=null){
+if(_1c8.layout){
 this.containerNode.className=this.decConfig.cNodeClass;
-_19b=true;
+_1cb=true;
 }
 this.iframesInfo=null;
-_190.page.unregPWinIFrameCover(this);
+_1c0.page.unregPWinIFrameCover(this);
 }
 }
-if(_19b){
+if(_1cb){
 this._alterCss(false,false,true);
 }
 if(this.restoreOnNextRender){
@@ -1703,25 +1845,25 @@
 }
 if(ie6){
 this._updtDimsObj(false,false,true,false,true);
-if(_193==null){
-var _1a3=_190.css;
-_193=_1a3.cssHeight.concat();
-_193[_1a3.cssDis]="inline";
+if(_1c3==null){
+var _1d3=_1c0.css;
+_1c3=_1d3.cssHeight.concat();
+_1c3[_1d3.cssDis]="inline";
 }
-this.iNodeCss=_193;
+this.iNodeCss=_1c3;
 this._alterCss(false,false,true);
 }
 if(this.minimizeOnNextRender){
 this.minimizeOnNextRender=false;
 this.minimizeWindow(true);
-this.actionBtnSync(_190,_190.id);
+this.actionBtnSync(_1c0,_1c0.id);
 this.needsRenderOnRestore=true;
 }
-if(_19a){
-this._deferSetIFrameH(_19a,(!_190.UAie?"100%":"99%"),true);
+if(_1ca){
+this._deferSetIFrameH(_1ca,(!_1c0.UAie?"100%":"99%"),true);
 }
-},setContent:function(data,_1a5){
-var _1a6=null;
+},setContent:function(data,_1d5){
+var _1d6=null;
 var step=1;
 try{
 if(this._callOnUnload){
@@ -1729,25 +1871,25 @@
 }
 this._callOnUnload=true;
 step=2;
-this._setContent(data.xml,_1a5);
+this._setContent(data.xml,_1d5);
 step=3;
 if(this.parseContent){
 var node=this.containerNode;
-var _1a9=new _1a5.xml.Parse();
-var frag=_1a9.parseElement(node,null,true);
-_1a6=_1a5.widget.getParser().createSubComponents(frag,null);
+var _1d9=new _1d5.xml.Parse();
+var frag=_1d9.parseElement(node,null,true);
+_1d6=_1d5.widget.getParser().createSubComponents(frag,null);
 }
 }
 catch(e){
 dojo.hostenv.println("ERROR in PortletWindow ["+this.widgetId+"] setContent while "+(step==1?"running onUnload":(step==2?"setting innerHTML":"creating dojo widgets"))+" - "+jetspeed.formatError(e));
 }
-return _1a6;
-},_setContent:function(cont,_1ac){
-this._destroyChildWidgets(_1ac);
+return _1d6;
+},_setContent:function(cont,_1dc){
+this._destroyChildWidgets(_1dc);
 try{
 var node=this.containerNode;
 while(node.firstChild){
-_1ac.html.destroyNode(node.firstChild);
+_1dc.html.destroyNode(node.firstChild);
 }
 node.innerHTML=cont;
 }
@@ -1761,48 +1903,48 @@
 },onUnload:function(e){
 this._runStack("_onUnloadStack");
 delete this.scriptScope;
-},_runStack:function(_1b0){
-var st=this[_1b0];
+},_runStack:function(_1e0){
+var st=this[_1e0];
 var err="";
-var _1b3=this.scriptScope||window;
+var _1e3=this.scriptScope||window;
 for(var i=0;i<st.length;i++){
 try{
-st[i].call(_1b3);
+st[i].call(_1e3);
 }
 catch(e){
 err+="\n"+st[i]+" failed: "+e.description;
 }
 }
-this[_1b0]=[];
+this[_1e0]=[];
 if(err.length){
-var name=(_1b0=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
+var name=(_1e0=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
 this._handleDefaults(name+" failure\n "+err,"onExecError","debug");
 }
-},_executeScripts:function(_1b6,_1b7){
+},_executeScripts:function(_1e6,_1e7){
 var self=this;
-var _1b9=true;
+var _1e9=true;
 var tmp="",code="";
-for(var i=0;i<_1b6.length;i++){
-if(_1b6[i].path){
-_1b7.io.bind(this._cacheSetting({"url":_1b6[i].path,"load":function(type,_1be){
-dojo.lang.hitch(self,tmp=";"+_1be);
-},"error":function(type,_1c0){
-_1c0.text=type+" downloading remote script";
-self._handleDefaults.call(self,_1c0,"onExecError","debug");
-},"mimetype":"text/plain","sync":true},_1b9));
+for(var i=0;i<_1e6.length;i++){
+if(_1e6[i].path){
+_1e7.io.bind(this._cacheSetting({"url":_1e6[i].path,"load":function(type,_1ee){
+dojo.lang.hitch(self,tmp=";"+_1ee);
+},"error":function(type,_1f0){
+_1f0.text=type+" downloading remote script";
+self._handleDefaults.call(self,_1f0,"onExecError","debug");
+},"mimetype":"text/plain","sync":true},_1e9));
 code+=tmp;
 }else{
-code+=_1b6[i];
+code+=_1e6[i];
 }
 }
 try{
 if(this.scriptSeparation){
 }else{
-var djg=_1b7.global();
+var djg=_1e7.global();
 if(djg.execScript){
 djg.execScript(code);
 }else{
-var djd=_1b7.doc();
+var djd=_1e7.doc();
 var sc=djd.createElement("script");
 sc.appendChild(djd.createTextNode(code));
 (this.containerNode||this.domNode).appendChild(sc);
@@ -1813,29 +1955,29 @@
 e.text="Error running scripts from content:\n"+e.description;
 this._handleDefaults(e,"onExecError","debug");
 }
-},_cacheSetting:function(_1c4,_1c5){
-var _1c6=dojo.lang;
+},_cacheSetting:function(_1f4,_1f5){
+var _1f6=dojo.lang;
 for(var x in this.bindArgs){
-if(_1c6.isUndefined(_1c4[x])){
-_1c4[x]=this.bindArgs[x];
+if(_1f6.isUndefined(_1f4[x])){
+_1f4[x]=this.bindArgs[x];
 }
 }
-if(_1c6.isUndefined(_1c4.useCache)){
-_1c4.useCache=_1c5;
+if(_1f6.isUndefined(_1f4.useCache)){
+_1f4.useCache=_1f5;
 }
-if(_1c6.isUndefined(_1c4.preventCache)){
-_1c4.preventCache=!_1c5;
+if(_1f6.isUndefined(_1f4.preventCache)){
+_1f4.preventCache=!_1f5;
 }
-if(_1c6.isUndefined(_1c4.mimetype)){
-_1c4.mimetype="text/html";
+if(_1f6.isUndefined(_1f4.mimetype)){
+_1f4.mimetype="text/html";
 }
-return _1c4;
-},_handleDefaults:function(e,_1c9,_1ca){
-var _1cb=dojo;
-if(!_1c9){
-_1c9="onContentError";
+return _1f4;
+},_handleDefaults:function(e,_1f9,_1fa){
+var _1fb=dojo;
+if(!_1f9){
+_1f9="onContentError";
 }
-if(_1cb.lang.isString(e)){
+if(_1fb.lang.isString(e)){
 e={text:e};
 }
 if(!e.text){
@@ -1852,15 +1994,15 @@
 this.returnValue=false;
 };
 }
-this[_1c9](e);
+this[_1f9](e);
 if(e.returnValue){
-switch(_1ca){
+switch(_1fa){
 case true:
 case "alert":
 alert(e.toString());
 break;
 case "debug":
-_1cb.debug(e.toString());
+_1fb.debug(e.toString());
 break;
 default:
 if(this._callOnUnload){
@@ -1868,19 +2010,19 @@
 }
 this._callOnUnload=false;
 if(arguments.callee._loopStop){
-_1cb.debug(e.toString());
+_1fb.debug(e.toString());
 }else{
 arguments.callee._loopStop=true;
-this._setContent(e.toString(),_1cb);
+this._setContent(e.toString(),_1fb);
 }
 }
 }
 arguments.callee._loopStop=false;
 },onExecError:function(e){
 },onContentError:function(e){
-},setPortletTitle:function(_1ce){
-if(_1ce){
-this.title=_1ce;
+},setPortletTitle:function(_1fe){
+if(_1fe){
+this.title=_1fe;
 }else{
 this.title="";
 }
@@ -1890,14 +2032,14 @@
 },getPortletTitle:function(){
 return this.title;
 },_splitAndFixPaths_scriptsonly:function(s,url){
-var _1d1=true;
-var _1d2=[];
-var _1d3=/<script([^>]*)>([\s\S]*?)<\/script>/i;
-var _1d4=/src=(['"]?)([^"']*)\1/i;
-while(match=_1d3.exec(s)){
-if(_1d1&&match[1]){
-if(attr=_1d4.exec(match[1])){
-_1d2.push({path:attr[2]});
+var _201=true;
+var _202=[];
+var _203=/<script([^>]*)>([\s\S]*?)<\/script>/i;
+var _204=/src=(['"]?)([^"']*)\1/i;
+while(match=_203.exec(s)){
+if(_201&&match[1]){
+if(attr=_204.exec(match[1])){
+_202.push({path:attr[2]});
 }
 }
 if(match[2]){
@@ -1905,79 +2047,79 @@
 if(!sc){
 continue;
 }
-if(_1d1){
-_1d2.push(sc);
+if(_201){
+_202.push(sc);
 }
 }
 s=s.substr(0,match.index)+s.substr(match.index+match[0].length);
 }
-return {"xml":s,"styles":[],"titles":[],"requires":[],"scripts":_1d2,"url":url};
+return {"xml":s,"styles":[],"titles":[],"requires":[],"scripts":_202,"url":url};
 },_IEPostDrag:function(){
 if(!this.posStatic){
 return;
 }
-var _1d6=this.domNode.parentNode;
-dojo.dom.insertAtIndex(jetspeed.widget.ie6ZappedContentHelper,_1d6,0);
+var _206=this.domNode.parentNode;
+dojo.dom.insertAtIndex(jetspeed.widget.ie6ZappedContentHelper,_206,0);
 dojo.lang.setTimeout(this,this._IERemoveHelper,jetspeed.widget.ie6PostDragRmDelay);
 },_IERemoveHelper:function(){
 dojo.dom.removeNode(jetspeed.widget.ie6ZappedContentHelper);
 }});
 jetspeed.widget.showAllPortletWindows=function(){
-var _1d7=jetspeed;
-var _1d8=_1d7.css;
-var _1d9=_1d8.cssDis,_1da=_1d8.cssNoSelNm,_1db=_1d8.cssNoSel,_1dc=_1d8.cssNoSelEnd;
-var _1dd=_1d7.page.getPWins(false);
-var _1de,_1df;
-for(var i=0;i<_1dd.length;i++){
-_1de=_1dd[i];
-if(_1de){
-_1df=_1de.dNodeCss;
-_1df[_1da]="";
-_1df[_1db]="";
-_1df[_1dc]="";
-_1df[_1d9]="block";
-_1de.domNode.style.display="block";
-_1de.domNode.style.visibility="visible";
+var _207=jetspeed;
+var _208=_207.css;
+var _209=_208.cssDis,_20a=_208.cssNoSelNm,_20b=_208.cssNoSel,_20c=_208.cssNoSelEnd;
+var _20d=_207.page.getPWins(false);
+var _20e,_20f;
+for(var i=0;i<_20d.length;i++){
+_20e=_20d[i];
+if(_20e){
+_20f=_20e.dNodeCss;
+_20f[_20a]="";
+_20f[_20b]="";
+_20f[_20c]="";
+_20f[_209]="block";
+_20e.domNode.style.display="block";
+_20e.domNode.style.visibility="visible";
 }
 }
 };
-jetspeed.widget.hideAllPortletWindows=function(_1e1){
-var _1e2=jetspeed;
-var _1e3=_1e2.css;
-var _1e4=_1e3.cssDis,_1e5=_1e3.cssNoSelNm,_1e6=_1e3.cssNoSel,_1e7=_1e3.cssNoSelEnd;
-var _1e8=_1e2.page.getPWins(false);
-var _1e9,_1ea,_1eb;
-for(var i=0;i<_1e8.length;i++){
-_1ea=_1e8[i];
-_1e9=true;
-if(_1ea&&_1e1&&_1e1.length>0){
-for(var _1ed=0;_1ed<_1e1.length;_1ed++){
-if(_1ea.widgetId==_1e1[_1ed]){
-_1e9=false;
+jetspeed.widget.hideAllPortletWindows=function(_211){
+var _212=jetspeed;
+var _213=_212.css;
+var _214=_213.cssDis,_215=_213.cssNoSelNm,_216=_213.cssNoSel,_217=_213.cssNoSelEnd;
+var _218=_212.page.getPWins(false);
+var _219,_21a,_21b;
+for(var i=0;i<_218.length;i++){
+_21a=_218[i];
+_219=true;
+if(_21a&&_211&&_211.length>0){
+for(var _21d=0;_21d<_211.length;_21d++){
+if(_21a.widgetId==_211[_21d]){
+_219=false;
 break;
 }
 }
 }
-if(_1ea){
-_1eb=_1ea.dNodeCss;
-_1eb[_1e5]="";
-_1eb[_1e6]="";
-_1eb[_1e7]="";
-if(_1e9){
-_1eb[_1e4]="none";
-_1ea.domNode.style.display="none";
+if(_21a){
+_21b=_21a.dNodeCss;
+_21b[_215]="";
+_21b[_216]="";
+_21b[_217]="";
+if(_219){
+_21b[_214]="none";
+_21a.domNode.style.display="none";
 }else{
-_1eb[_1e4]="block";
-_1ea.domNode.style.display="block";
+_21b[_214]="block";
+_21a.domNode.style.display="block";
 }
-_1ea.domNode.style.visibility="visible";
+_21a.domNode.style.visibility="visible";
 }
 }
 };
 jetspeed.widget.WinScroller=function(){
-var _1ee=this.jsObj;
-this.UAmoz=_1ee.UAmoz;
-this.UAope=_1ee.UAope;
+var _21e=this.jsObj;
+this.UAmoz=_21e.UAmoz;
+this.UAope=_21e.UAope;
 };
 dojo.extend(jetspeed.widget.WinScroller,{jsObj:jetspeed,djObj:dojo,typeNm:"WinScroller",V_AS_T:32,V_AS_V:16,autoScroll:function(e){
 try{
@@ -1986,25 +2128,25 @@
 if(e.clientY<this.V_AS_T){
 dy=-this.V_AS_V;
 }else{
-var _1f2=null;
+var _222=null;
 if(this.UAmoz){
-_1f2=w.innerHeight;
+_222=w.innerHeight;
 }else{
 var doc=document,dd=doc.documentElement;
 if(!this.UAope&&w.innerWidth){
-_1f2=w.innerHeight;
+_222=w.innerHeight;
 }else{
 if(!this.UAope&&dd&&dd.clientWidth){
-_1f2=dd.clientHeight;
+_222=dd.clientHeight;
 }else{
 var b=jetspeed.docBody;
 if(b.clientWidth){
-_1f2=b.clientHeight;
+_222=b.clientHeight;
 }
 }
 }
 }
-if(_1f2!=null&&e.clientY>_1f2-this.V_AS_T){
+if(_222!=null&&e.clientY>_222-this.V_AS_T){
 dy=this.V_AS_V;
 }
 }
@@ -2012,49 +2154,49 @@
 }
 catch(ex){
 }
-},_getErrMsg:function(ex,msg,_1f8,_1f9){
-return ((_1f9!=null?(_1f9+"; "):"")+this.typeNm+" "+(_1f8==null?"<unknown>":_1f8.widgetId)+" "+msg+" ("+ex.toString()+")");
+},_getErrMsg:function(ex,msg,_228,_229){
+return ((_229!=null?(_229+"; "):"")+this.typeNm+" "+(_228==null?"<unknown>":_228.widgetId)+" "+msg+" ("+ex.toString()+")");
 }});
-jetspeed.widget.CreatePortletWindowResizeHandler=function(_1fa,_1fb){
-var _1fc=new jetspeed.widget.PortletWindowResizeHandle(_1fa,_1fb);
+jetspeed.widget.CreatePortletWindowResizeHandler=function(_22a,_22b){
+var _22c=new jetspeed.widget.PortletWindowResizeHandle(_22a,_22b);
 var doc=document;
-var _1fe=doc.createElement("div");
-_1fe.className=_1fc.rhClass;
-var _1ff=doc.createElement("div");
-_1fe.appendChild(_1ff);
-_1fa.rbNode.appendChild(_1fe);
-_1fc.domNode=_1fe;
-_1fc.build();
-return _1fc;
-};
-jetspeed.widget.PortletWindowResizeHandle=function(_200,_201){
-this.pWin=_200;
-_201.widget.WinScroller.call(this);
+var _22e=doc.createElement("div");
+_22e.className=_22c.rhClass;
+var _22f=doc.createElement("div");
+_22e.appendChild(_22f);
+_22a.rbNode.appendChild(_22e);
+_22c.domNode=_22e;
+_22c.build();
+return _22c;
+};
+jetspeed.widget.PortletWindowResizeHandle=function(_230,_231){
+this.pWin=_230;
+_231.widget.WinScroller.call(this);
 };
 dojo.inherits(jetspeed.widget.PortletWindowResizeHandle,jetspeed.widget.WinScroller);
 dojo.extend(jetspeed.widget.PortletWindowResizeHandle,{typeNm:"Resize",rhClass:"portletWindowResizeHandle",build:function(){
 this.events=[jetspeed.ui.evtConnect("after",this.domNode,"onmousedown",this,"_beginSizing")];
-},destroy:function(_202,_203,jsUI){
-this._cleanUpLastEvt(_202,_203,jsUI);
-jsUI.evtDisconnectWObjAry(this.events,_202);
+},destroy:function(_232,_233,jsUI){
+this._cleanUpLastEvt(_232,_233,jsUI);
+jsUI.evtDisconnectWObjAry(this.events,_232);
 this.events=this.pWin=null;
-},_cleanUpLastEvt:function(_205,_206,jsUI){
-var _208=null;
+},_cleanUpLastEvt:function(_235,_236,jsUI){
+var _238=null;
 try{
-jsUI.evtDisconnectWObjAry(this.tempEvents,_205);
+jsUI.evtDisconnectWObjAry(this.tempEvents,_235);
 this.tempEvents=null;
 }
 catch(ex){
-_208=this._getErrMsg(ex,"event clean-up error",this.pWin,_208);
+_238=this._getErrMsg(ex,"event clean-up error",this.pWin,_238);
 }
 try{
-_206.page.displayAllPWinIFrameCovers(true);
+_236.page.displayAllPWinIFrameCovers(true);
 }
 catch(ex){
-_208=this._getErrMsg(ex,"clean-up error",this.pWin,_208);
+_238=this._getErrMsg(ex,"clean-up error",this.pWin,_238);
 }
-if(_208!=null){
-dojo.raise(_208);
+if(_238!=null){
+dojo.raise(_238);
 }
 },_beginSizing:function(e){
 if(this._isSizing){
@@ -2066,26 +2208,26 @@
 return false;
 }
 this.targetDomNode=node;
-var _20c=jetspeed;
-var jsUI=_20c.ui;
-var _20e=dojo;
-var _20f=_20e.event;
-var _210=_20c.docBody;
+var _23c=jetspeed;
+var jsUI=_23c.ui;
+var _23e=dojo;
+var _23f=_23e.event;
+var _240=_23c.docBody;
 if(this.tempEvents!=null){
-this._cleanUpLastEvt(_20f,_20c,jsUI);
+this._cleanUpLastEvt(_23f,_23c,jsUI);
 }
 this._isSizing=true;
 this.startPoint={x:e.pageX,y:e.pageY};
-var mb=_20e.html.getMarginBox(node);
+var mb=_23e.html.getMarginBox(node);
 this.startSize={w:mb.width,h:mb.height};
 var d=node.ownerDocument;
-var _213=[];
-_213.push(jsUI.evtConnect("after",_210,"onmousemove",this,"_changeSizing",_20f,25));
-_213.push(jsUI.evtConnect("after",_210,"onmouseup",this,"_endSizing",_20f));
-_213.push(jsUI.evtConnect("after",d,"ondragstart",_20c,"_stopEvent",_20f));
-_213.push(jsUI.evtConnect("after",d,"onselectstart",_20c,"_stopEvent",_20f));
-_20c.page.displayAllPWinIFrameCovers(false);
-this.tempEvents=_213;
+var _243=[];
+_243.push(jsUI.evtConnect("after",_240,"onmousemove",this,"_changeSizing",_23f,25));
+_243.push(jsUI.evtConnect("after",_240,"onmouseup",this,"_endSizing",_23f));
+_243.push(jsUI.evtConnect("after",d,"ondragstart",_23c,"_stopEvent",_23f));
+_243.push(jsUI.evtConnect("after",d,"onselectstart",_23c,"_stopEvent",_23f));
+_23c.page.displayAllPWinIFrameCovers(false);
+this.tempEvents=_243;
 e.preventDefault();
 },_changeSizing:function(e){
 var pWin=this.pWin;
@@ -2105,8 +2247,8 @@
 var dy=this.startPoint.y-e.pageY;
 var newW=this.startSize.w-dx;
 var newH=this.startSize.h-dy;
-var _21a=pWin.posStatic;
-if(_21a){
+var _24a=pWin.posStatic;
+if(_24a){
 newW=this.startSize.w;
 }
 if(this.minSize){
@@ -2121,18 +2263,18 @@
 pWin.resizeTo(newW,newH);
 e.preventDefault();
 },_endSizing:function(e){
-var _21d=jetspeed;
-this._cleanUpLastEvt(dojo.event,_21d,_21d.ui);
+var _24d=jetspeed;
+this._cleanUpLastEvt(dojo.event,_24d,_24d.ui);
 this._isSizing=false;
 }});
 jetspeed.widget.ie6PostDragAddDelay=60;
 jetspeed.widget.ie6PostDragRmDelay=120;
-jetspeed.widget.BackgroundIframe=function(node,_21f,_220){
-if(!_21f){
-_21f=this.defaultStyleClass;
+jetspeed.widget.BackgroundIframe=function(node,_24f,_250){
+if(!_24f){
+_24f=this.defaultStyleClass;
 }
-var html="<iframe src='' frameborder='0' scrolling='no' class='"+_21f+"'>";
-this.iframe=_220.doc().createElement(html);
+var html="<iframe src='' frameborder='0' scrolling='no' class='"+_24f+"'>";
+this.iframe=_250.doc().createElement(html);
 this.iframe.tabIndex=-1;
 node.appendChild(this.iframe);
 };
@@ -2140,56 +2282,56 @@
 if(!dojo.dnd){
 dojo.dnd={};
 }
-dojo.dnd.Mover=function(_222,_223,_224,_225,e,_227,_228,_229){
-var jsUI=_229.ui;
-var _22b=_228.event;
-_229.widget.WinScroller.call(this);
-if(_229.widget._movingInProgress){
+dojo.dnd.Mover=function(_252,_253,_254,_255,e,_257,_258,_259){
+var jsUI=_259.ui;
+var _25b=_258.event;
+_259.widget.WinScroller.call(this);
+if(_259.widget._movingInProgress){
 if(djConfig.isDebug){
-_229.debugAlert("ERROR - Mover initiation before previous Mover was destroyed");
+_259.debugAlert("ERROR - Mover initiation before previous Mover was destroyed");
 }
 }
-_229.widget._movingInProgress=true;
+_259.widget._movingInProgress=true;
 this.moveInitiated=false;
-this.moveableObj=_225;
-this.windowOrLayoutWidget=_222;
-this.node=_223;
-this.nodeLayoutColumn=_224;
-this.posStatic=_222.posStatic;
-this.notifyOnAbsolute=_227;
-if(e.ctrlKey&&_222.moveAllowTilingChg){
+this.moveableObj=_255;
+this.windowOrLayoutWidget=_252;
+this.node=_253;
+this.nodeLayoutColumn=_254;
+this.posStatic=_252.posStatic;
+this.notifyOnAbsolute=_257;
+if(e.ctrlKey&&_252.moveAllowTilingChg){
 if(this.posStatic){
 this.changeToUntiled=true;
 }else{
-if(_229.prefs.windowTiling){
+if(_259.prefs.windowTiling){
 this.changeToTiled=true;
 this.changeToTiledStarted=false;
 }
 }
 }
 this.posRecord={};
-this.disqualifiedColumnIndexes=(_224!=null)?_224.getDescendantCols():{};
+this.disqualifiedColumnIndexes=(_254!=null)?_254.getDescendantCols():{};
 this.marginBox={l:e.pageX,t:e.pageY};
 var doc=this.node.ownerDocument;
-var _22d=[];
-var _22e=jsUI.evtConnect("after",doc,"onmousemove",this,"onFirstMove",_22b);
-_22d.push(jsUI.evtConnect("after",doc,"onmousemove",this,"onMouseMove",_22b));
-_22d.push(jsUI.evtConnect("after",doc,"onmouseup",this,"mouseUpDestroy",_22b));
-_22d.push(jsUI.evtConnect("after",doc,"ondragstart",_229,"_stopEvent",_22b));
-_22d.push(jsUI.evtConnect("after",doc,"onselectstart",_229,"_stopEvent",_22b));
-if(_229.UAie6){
-_22d.push(jsUI.evtConnect("after",doc,"onmousedown",_229,"mouseUpDestroy",_22b));
-}
-_229.page.displayAllPWinIFrameCovers(false);
-_22d.push(_22e);
-this.events=_22d;
+var _25d=[];
+var _25e=jsUI.evtConnect("after",doc,"onmousemove",this,"onFirstMove",_25b);
+_25d.push(jsUI.evtConnect("after",doc,"onmousemove",this,"onMouseMove",_25b));
+_25d.push(jsUI.evtConnect("after",doc,"onmouseup",this,"mouseUpDestroy",_25b));
+_25d.push(jsUI.evtConnect("after",doc,"ondragstart",_259,"_stopEvent",_25b));
+_25d.push(jsUI.evtConnect("after",doc,"onselectstart",_259,"_stopEvent",_25b));
+if(_259.UAie6){
+_25d.push(jsUI.evtConnect("after",doc,"onmousedown",_259,"mouseUpDestroy",_25b));
+}
+_259.page.displayAllPWinIFrameCovers(false);
+_25d.push(_25e);
+this.events=_25d;
 this.pSLastColChgIdx=null;
 this.pSLastColChgTime=null;
 this.pSLastNaturalColChgYTest=null;
 this.pSLastNaturalColChgHistory=null;
 this.pSLastNaturalColChgChoiceMap=null;
 this.isDebug=false;
-if(_229.debug.dragWindow){
+if(_259.debug.dragWindow){
 this.isDebug=true;
 this.devKeepLastMsg=null;
 this.devKeepLastCount=0;
@@ -2200,394 +2342,394 @@
 this.devLrgTh=200;
 this.devChgSubsqTh=10;
 this.devTimeTh=6000;
-this.devI=_229.debugindent;
-this.devIH=_229.debugindentH;
-this.devIT=_229.debugindentT;
-this.devI3=_229.debugindent3;
-this.devICH=_229.debugindentch;
+this.devI=_259.debugindent;
+this.devIH=_259.debugindentH;
+this.devIT=_259.debugindentT;
+this.devI3=_259.debugindent3;
+this.devICH=_259.debugindentch;
 }
 };
 dojo.inherits(dojo.dnd.Mover,jetspeed.widget.WinScroller);
 dojo.extend(dojo.dnd.Mover,{typeNm:"Mover",pSColChgTimeTh:3000,onMouseMove:function(e){
-var _230=this.jsObj;
-var _231=this.djObj;
-var _232=this.UAmoz;
+var _260=this.jsObj;
+var _261=this.djObj;
+var _262=this.UAmoz;
 this.autoScroll(e);
 var m=this.marginBox;
-var _234=false;
+var _264=false;
 var x=m.l+e.pageX;
 var y=m.t+e.pageY;
-var _237=this.isDebug;
-var _238=false;
-var _239=null,_23a=null,_23b,_23c,_23d,_23e,_23f;
-if(_237){
-_23b=this.devI;
-_23c=this.devIH;
-_23d=this.devI3;
-_23e=this.devICH,_23f=this.devIT;
-_239=(new Date().getTime());
+var _267=this.isDebug;
+var _268=false;
+var _269=null,_26a=null,_26b,_26c,_26d,_26e,_26f;
+if(_267){
+_26b=this.devI;
+_26c=this.devIH;
+_26d=this.devI3;
+_26e=this.devICH,_26f=this.devIT;
+_269=(new Date().getTime());
 if(this.devLastX==null||this.devLastY==null){
 this.devLastX=x;
 this.devLastY=y;
 }else{
-var _240=(Math.abs(x-this.devLastX)>this.devLrgTh)||(Math.abs(y-this.devLastY)>this.devLrgTh);
-if(!_240&&this.devLastTime!=null&&((this.devLastTime+this.devTimeTh)>_239)){
+var _270=(Math.abs(x-this.devLastX)>this.devLrgTh)||(Math.abs(y-this.devLastY)>this.devLrgTh);
+if(!_270&&this.devLastTime!=null&&((this.devLastTime+this.devTimeTh)>_269)){
 }else{
 if(Math.abs(x-this.devLastX)>this.devChgTh){
 this.devLastX=x;
-_238=true;
+_268=true;
 }
 if(Math.abs(y-this.devLastY)>this.devChgTh){
 this.devLastY=y;
-_238=true;
+_268=true;
 }
 }
 }
 }
-if(_232&&this.firstEvtAdjustXY!=null){
+if(_262&&this.firstEvtAdjustXY!=null){
 x=x+this.firstEvtAdjustXY.l;
 y=y+this.firstEvtAdjustXY.t;
 this.firstEvtAdjustXY=null;
-_234=true;
+_264=true;
 }
-_230.ui.setMarginBox(this.node,x,y,null,null,this.nodeLayoutInfo,_230,_231);
-var _241=this.posRecord;
-_241.left=x;
-_241.top=y;
-var _242=false;
-var _243=this.posStatic;
-if(!_243){
-if(!_234&&this.changeToTiled&&!this.changeToTiledStarted){
-_242=true;
-_243=true;
-}
-}
-if(_243&&!_234){
-var _244=this.columnInfoArray;
-var _245=_230.page.columns;
-var _246=this.heightHalf;
-var _247=_245.length;
-var _248=e.pageX;
-var _249=y+_246;
-var _24a=this.pSLastColChgIdx;
-var _24b=this.pSLastNaturalColChgChoiceMap;
-var _24c=null,_24d=[],_24e=null;
-var _24f,_250,_251,_252,lowY,_254,_255,_256,_257;
-for(var i=0;i<_247;i++){
-_24f=_244[i];
-if(_24f!=null){
-if(_248>=_24f.left&&_248<=_24f.right){
-if(_249>=(_24f.top-30)||(_24b!=null&&_24b[i]!=null)){
-_250=Math.min(Math.abs(_249-(_24f.top)),Math.abs(e.pageY-(_24f.top)));
-_251=Math.min(Math.abs(_249-(_24f.yhalf)),Math.abs(e.pageY-(_24f.yhalf)));
-_252=Math.min(Math.abs(_249-_24f.bottom),Math.abs(e.pageY-_24f.bottom));
-lowY=Math.min(_250,_251);
-lowY=Math.min(lowY,_252);
-_255=null;
-_257=_24c;
-while(_257!=null){
-_256=_24d[_257];
-if(lowY<_256.lowY){
+_260.ui.setMarginBox(this.node,x,y,null,null,this.nodeLayoutInfo,_260,_261);
+var _271=this.posRecord;
+_271.left=x;
+_271.top=y;
+var _272=false;
+var _273=this.posStatic;
+if(!_273){
+if(!_264&&this.changeToTiled&&!this.changeToTiledStarted){
+_272=true;
+_273=true;
+}
+}
+if(_273&&!_264){
+var _274=this.columnInfoArray;
+var _275=_260.page.columns;
+var _276=this.heightHalf;
+var _277=_275.length;
+var _278=e.pageX;
+var _279=y+_276;
+var _27a=this.pSLastColChgIdx;
+var _27b=this.pSLastNaturalColChgChoiceMap;
+var _27c=null,_27d=[],_27e=null;
+var _27f,_280,_281,_282,lowY,_284,_285,_286,_287;
+for(var i=0;i<_277;i++){
+_27f=_274[i];
+if(_27f!=null){
+if(_278>=_27f.left&&_278<=_27f.right){
+if(_279>=(_27f.top-30)||(_27b!=null&&_27b[i]!=null)){
+_280=Math.min(Math.abs(_279-(_27f.top)),Math.abs(e.pageY-(_27f.top)));
+_281=Math.min(Math.abs(_279-(_27f.yhalf)),Math.abs(e.pageY-(_27f.yhalf)));
+_282=Math.min(Math.abs(_279-_27f.bottom),Math.abs(e.pageY-_27f.bottom));
+lowY=Math.min(_280,_281);
+lowY=Math.min(lowY,_282);
+_285=null;
+_287=_27c;
+while(_287!=null){
+_286=_27d[_287];
+if(lowY<_286.lowY){
 break;
 }else{
-_255=_256;
-_257=_256.nextIndex;
+_285=_286;
+_287=_286.nextIndex;
 }
 }
-_24d.push({index:i,lowY:lowY,nextIndex:_257,lowYAlign:((!_237)?null:(lowY==_250?"^":(lowY==_251?"~":"_")))});
-_254=(_24d.length-1);
-if(_255!=null){
-_255.nextIndex=_254;
-}else{
-_24c=_254;
-}
-if(i==_24a){
-_24e=lowY;
-}
-}else{
-if(_237){
-if(_23a==null){
-_23a=[];
-}
-var _259=(_24f.top-30)-_249;
-_23a.push(_231.string.padRight(String(i),2,_23e)+" y! "+_231.string.padRight(String(_259),4,_23e));
-}
-}
-}else{
-if(_237&&_248>_24f.width){
-if(_23a==null){
-_23a=[];
-}
-var _259=_248-_24f.width;
-_23a.push(_231.string.padRight(String(i),2,_23e)+" x! "+_231.string.padRight(String(_259),4,_23e));
-}
-}
-}
-}
-var _25a=-1;
-var _25b=-1,_25c=-1;
-var _25d=null,_25e=null,_25f=null,_260=null,_261=null;
-if(_24c!=null){
-_256=_24d[_24c];
-_25a=_256.index;
-_25d=_256.lowY;
-if(_256.nextIndex!=null){
-_256=_24d[_256.nextIndex];
-_25b=_256.index;
-_25e=_256.lowY;
-_260=_25e-_25d;
-if(_256.nextIndex!=null){
-_256=_24d[_256.nextIndex];
-_25c=_256.index;
-_25f=_256.lowY;
-_261=_25f-_25d;
-}
-}
-}
-var _262=null;
-var _263=(new Date().getTime());
-var _264=this.pSLastNaturalColChgYTest;
-if(_24e==null||(_264!=null&&Math.abs(_249-_264)>=Math.max((_246-Math.floor(_246*0.3)),Math.min(_246,21)))){
-if(_25a>=0){
-this.pSLastNaturalColChgYTest=_249;
-this.pSLastNaturalColChgHistory=[_25a];
-_24b={};
-_24b[_25a]=true;
-this.pSLastNaturalColChgChoiceMap=_24b;
-}
-}else{
-if(_264==null){
-this.pSLastNaturalColChgYTest=_249;
-_25a=_24a;
-this.pSLastNaturalColChgHistory=[_25a];
-_24b={};
-_24b[_25a]=true;
-this.pSLastNaturalColChgChoiceMap=_24b;
-}else{
-var _265=null;
-var _266=this.pSLastColChgTime+this.pSColChgTimeTh;
-if(_266<_263){
-var _267=this.pSLastNaturalColChgHistory;
-var _268=(_267==null?0:_267.length);
-var _269=null,_26a;
-_257=_24c;
-while(_257!=null){
-_256=_24d[_257];
-colI=_256.index;
-if(_268==0){
-_265=colI;
+_27d.push({index:i,lowY:lowY,nextIndex:_287,lowYAlign:((!_267)?null:(lowY==_280?"^":(lowY==_281?"~":"_")))});
+_284=(_27d.length-1);
+if(_285!=null){
+_285.nextIndex=_284;
+}else{
+_27c=_284;
+}
+if(i==_27a){
+_27e=lowY;
+}
+}else{
+if(_267){
+if(_26a==null){
+_26a=[];
+}
+var _289=(_27f.top-30)-_279;
+_26a.push(_261.string.padRight(String(i),2,_26e)+" y! "+_261.string.padRight(String(_289),4,_26e));
+}
+}
+}else{
+if(_267&&_278>_27f.width){
+if(_26a==null){
+_26a=[];
+}
+var _289=_278-_27f.width;
+_26a.push(_261.string.padRight(String(i),2,_26e)+" x! "+_261.string.padRight(String(_289),4,_26e));
+}
+}
+}
+}
+var _28a=-1;
+var _28b=-1,_28c=-1;
+var _28d=null,_28e=null,_28f=null,_290=null,_291=null;
+if(_27c!=null){
+_286=_27d[_27c];
+_28a=_286.index;
+_28d=_286.lowY;
+if(_286.nextIndex!=null){
+_286=_27d[_286.nextIndex];
+_28b=_286.index;
+_28e=_286.lowY;
+_290=_28e-_28d;
+if(_286.nextIndex!=null){
+_286=_27d[_286.nextIndex];
+_28c=_286.index;
+_28f=_286.lowY;
+_291=_28f-_28d;
+}
+}
+}
+var _292=null;
+var _293=(new Date().getTime());
+var _294=this.pSLastNaturalColChgYTest;
+if(_27e==null||(_294!=null&&Math.abs(_279-_294)>=Math.max((_276-Math.floor(_276*0.3)),Math.min(_276,21)))){
+if(_28a>=0){
+this.pSLastNaturalColChgYTest=_279;
+this.pSLastNaturalColChgHistory=[_28a];
+_27b={};
+_27b[_28a]=true;
+this.pSLastNaturalColChgChoiceMap=_27b;
+}
+}else{
+if(_294==null){
+this.pSLastNaturalColChgYTest=_279;
+_28a=_27a;
+this.pSLastNaturalColChgHistory=[_28a];
+_27b={};
+_27b[_28a]=true;
+this.pSLastNaturalColChgChoiceMap=_27b;
+}else{
+var _295=null;
+var _296=this.pSLastColChgTime+this.pSColChgTimeTh;
+if(_296<_293){
+var _297=this.pSLastNaturalColChgHistory;
+var _298=(_297==null?0:_297.length);
+var _299=null,_29a;
+_287=_27c;

[... 928 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