<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);

  /* **************************************************************************
%name: ActivityBannerStyles_inc.jsp %
%version: 7 %
%date_modified: Tue Sep 23 17:57:39 2003 %
Copyright (c) 2000, 2001 Novell, Inc. All Rights Reserved.
THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL PROPRIETARY
AND TRADE SECRET INFORMATION OF NOVELL, INC. ACCESS TO THIS WORK IS
RESTRICTED TO (I) NOVELL, INC. EMPLOYEES WHO HAVE A NEED TO KNOW HOW
TO PERFORM TASKS WITHIN THE SCOPE OF THEIR ASSIGNMENTS AND (II)
ENTITIES OTHER THAN NOVELL, INC. WHO HAVE ENTERED INTO APPROPRIATE
LICENSE AGREEMENTS. NO PART OF THIS WORK MAY BE USED, PRACTICED,
PERFORMED COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED,
CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, RECAST, TRANSFORMED
OR ADAPTED WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE
OR EXPLOITATION OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE
PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
***************************************************************************  */

  /* Set flags regarding which browser we"re running under.  We"ll use  */
  /* the Microsoft IE 5 settings as the initial default.                */
   c.set("ActivityBanner.BrowserIsIE", "true");
   c.set("ActivityBanner.BrowserIsIE4", "false");
   c.set("ActivityBanner.BrowserIsIE5", "true");
   c.set("ActivityBanner.BrowserIsNetscape", "false");
   c.set("ActivityBanner.BrowserIsNetscape4", "false");
   c.set("ActivityBanner.BrowserIsNetscape6", "false");
   c.set("ActivityBanner.BrowserDivSupported", "true");
   c.set("ActivityBanner.BrowserDivTag", "DIV");
   c.set("ActivityBanner.Name", "ActBanner");



  /* Are we running on Microsoft IE?  */
   if (("MSIE".equals(c.var("Browser.name")))) {
	  /* Yes!  Are we running under Microsoft IE 4?  */
	   if (("4".equals(c.var("Browser.mjrVer")))) {
		  /* Yes!  Set things up appropriately.  */
		   c.set("ActivityBanner.BrowserIsIE4", "true");
		   c.set("ActivityBanner.BrowserIsIE5", "false");
	   }


  /* No, we aren"t running on Microsoft IE!  Are we running on a  */
  /* recognized version of Netscape?                              */
   } else if ((("NSN".equals(c.var("Browser.name"))) || ("MOZILLA".equals(c.var("Browser.name"))))) {
	  /* Yes!  Set things up appropriately.  */
	   c.set("ActivityBanner.BrowserIsIE", "false");
	   c.set("ActivityBanner.BrowserIsIE4", "false");
	   c.set("ActivityBanner.BrowserIsIE5", "false");
	   c.set("ActivityBanner.BrowserIsNetscape", "true");


	  /* Are we running under Netscape 4?  */
	   if (("4".equals(c.var("Browser.mjrVer")))) {
		  /* Yes!  Set things up appropriately.  */
		   c.set("ActivityBanner.BrowserIsNetscape4", "true");
		   c.set("ActivityBanner.BrowserDivSupported", "false");
		   c.set("ActivityBanner.BrowserDivTag", "LAYER");


	  /* No, we aren"t running under Netscape 4!  Are we running under  */
	  /* Netscape 6 or greater?  (Yes, the check for 5 is correct!)                */
	   }
       else if (("5".equals(c.var("Browser.mjrVer"))) || c.gt(c.var("Browser.mjrVer"),"5") ) {
		  /* Yes!  Set things up appropriately.  */
		   c.set("ActivityBanner.BrowserIsNetscape6", "true");
	   }


   } else {
	  /* We don"t recognize which browser that we"re running under.  */
	   c.set("ActivityBanner.BrowserIsIE", "false");
	   c.set("ActivityBanner.BrowserIsIE5", "false");
   }


  /* ------------------------------------------------------------  */
  /* This include file defines the style that makes up the driver  */
  /* wizard"s activity banner facility.                            */
  /*                                                               */
  /*                                                               */
  /* Parameters:                                                   */
  /* 		ActivityBanner.Size                        */
  /*			Optional                                             */
  /*			Description:  Number of activity banner options.     */
  /*						  Default"s to 0 if not specified.       */
  /* ------------------------------------------------------------  */


  /* Did the caller specify the number of activity banners?  */
   if ((c.var("null").equals(c.var("ActivityBanner.Size")))) {
	  /* No!  We"ll assume that there aren"t any.  */
	   c.set("ActivityBanner.Size", "0");
   }
   c.set("numStyles", c.var("ActivityBanner.Size")); %>

<STYLE media="screen" type="text/css">
	<!--
		<%/* Table cells in an activity banner always use a 0 width.  */%>
		TD.activity	{ border-width: 0px }

		<%/* Loop through the activity banners we need to create...  */
		   c.set("i", "0");
		   while (c.lt(c.var("i"), c.var("numStyles"))) {
			   c.set("styleName", c.plus("ActBanner", c.var("i")));
			   if ((c.var("null").equals(c.var("styleName")) == false)) { %>
				#<%= c.var("styleName") %>
				{
					<%/* Positions centered over the panel"s header.  */%>
					z-index:     <%= c.var("i") %>;
					position:    absolute;
					top:         0px;
					left:        100px;
					<% if (("true".equals(c.var("ActivityBanner.BrowserIsNetscape4")))) { %>
						visibility:	"hide"
					<% } else if (("true".equals(c.var("ActivityBanner.BrowserIsNetscape6")))) { %>
						visibility: hidden
					<% } else {
						  /* Browser is IE, ...  */%>
						visibility:	"hidden"
					<% } %>
				}
			<% }
			   c.inc("i");
		   } %>
	//-->
</STYLE>


<SCRIPT>
	<!--
		<%/* --------------------------------------------------------  */
		  /* This method is called to initially hide all the activity  */
		  /* banners.                                                  */
		  /* --------------------------------------------------------  */%>
		function initActivityBanners()
		{
			<%/* Loop through the activity banners we need to create...  */
			   c.set("i", "0");
			   while (c.lt(c.var("i"), c.var("numStyles"))) {
				   c.set("styleName", c.var("i")); %>
				hideDivs( "<%= c.var("styleName") %>" );
				<% c.inc("i");
			   } %>
		} <%/* initActivityBanners  */%>
	//-->
</SCRIPT>


<%/*-- Reset the activity banner interaction variables.
{SET ActivityBanner.Size = null}
-- */



						     /* * * * * * *  */
                             /* End of File  */
                             /* * * * * * *  */%>
