var Fse; if (!Fse) Fse = {}; if( ! Fse.DocumentPortlet ) Fse.DocumentPortlet = {}; showReferenceCenterItems = function( sPortletName, sURLRoot, iPid, iPtk, iLimit ) { var sPortletId = sPortletName + "-portlet-view"; var sURL = sURLRoot + "/portlets/referenceCenter.cfm?pid=" + iPid + "&pTk=" + iPtk + "&refctrclimit=" + iLimit; // this snipped of code forces a re-initialization of the expand/contract state // of the portlet, it is necessary because the display size may change // on the reload var oPortletView = $(sPortletId); if( oPortletView ) { oPortletView.attr( "fse:initialState", "open" ); oPortletView.height("auto"); oPortletView.width("auto"); } Fse.Portal.initializePortlet( sPortletName ); // end of snippet Fse.Portal.loadPortlet( sPortletId, sURL ); };