<%
	/**
	 * Created by The eXo Platform SARL
	 * Author : Pham Dung Ha
	 *          ha.pham@exoplatform.com
	 * March 13, 2006
	 * version: $Id$
	 */

	String maskId = uicomponent.getId() ;
  boolean isShow = uicomponent.isShow();
    String classes = uicomponent.getCssClasses();
%>	
<div id="$maskId" style="display: none;">
<div class="UIMaskWorkspace $classes">
<%
  if (isShow)
  {
    def rcontext = _ctx.getRequestContext() ;
    int width = uicomponent.getWindowWidth();
    int height = uicomponent.getWindowHeight();

    String script = "maskWS.show('"+maskId+"', "+width+", "+height+");";
    rcontext.getJavascriptManager().require("SHARED/uiMaskWorkspace", "maskWS").addScripts(script) ;
%>
    <div class="MaskContainer">
      <%uicomponent.renderChildren();%>
    </div>
<%
  }
%>
</div>
</div>