flyout.jspf

 

<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved.

  NOTE: See notes in Default.jsp for information regarding editing theme JSP fragments.  

--%>
<%-- !! Changed the left postion to display the bar <div id="wpsFLYflyout" style="position: absolute; top: 150; left: -293; width: 280"> --%>
<div id="wpsFLYflyout" class="portalFlyout" >
  <iframe class="portalFlyoutIframe" id="wpsFLY_flyoutIFrame" frameborder="0px" width="380px" name="wpsFLY_flyoutIFrame" src="<portal-logic:urlFindInTheme file="./flyoutInit.html" />" scrolling="auto"></iframe>
</div>

<script>
  <%-- check to make sure these elements are in the page before trying to set the height and width --%>
  if ( document.getElementById( 'wpsFLYflyout' ) && document.getElementById( 'footer' ) && document.getElementById( 'mainContent' ) )
  {
    document.getElementById( 'wpsFLYflyout' ).style.top = getTop( document.getElementById( 'mainContent' ), true ) + "px";
    document.getElementById( 'wpsFLYflyout' ).style.height = Math.max( (getTop( document.getElementById( 'footer' ), true ) - getTop( document.getElementById( 'mainContent' ), true ) - 2 ), 600 ) + "px";
    document.getElementById( 'wpsFLY_flyoutIFrame' ).style.height = Math.max( (getTop( document.getElementById( 'footer' ), true ) - getTop( document.getElementById( 'mainContent' ), true ) - 2 ), 600 ) + "px";
  }
</script>