<!--

   /* =================================================================================== */
   /* Configuration Options - Do not modify without consultation */
   /* =================================================================================== */
   var useBackgroundElement = true;
   var menuTimeout          = false;                            // Delay for closing menu's (in milliseconds)
   var inactiveMenuTimeout  = 9999999;                           // Delay for closing [top-level] menu's (in milliseconds)
   var blankImage           = "https://secure.colorado.aaa.com/imagesPCI/spacer.gif";
   var moreImage            = new Image();
   var moreImageOver        = new Image();
   var mouseX               = 0;
   var mouseY               = 0;
   var xOffset              = 2;
   var yOffset              = 2;
   var submenuTopOffset     = -1;                             // This offset ONLY applies to top menus (to position submenu under button if desired)
   var submenuLeftOffset    = -1;                             // This offset applies to ALL submenu's (to overlap if submenus have a border)
   var ignoreMenu           = '';                             // Used for FireFox fix to prevent closing a menu that is in the process of opening!
   var autoCalculateWidth   = true;
   var autoWidthPadding     = 3;
   var firstMenu            = null;

   moreImage.src     = "https://secure.colorado.aaa.com/imagesPCI/arr1.gif";
   moreImageOver.src = "https://secure.colorado.aaa.com/imagesPCI/arr4_o.gif";
   /* =================================================================================== */

   function checkBrowser() {
      this.ver = navigator.appVersion;
      this.dom = document.getElementById ? 1 : 0;
      this.ie5 = ( this.ver.indexOf( "MSIE 5" ) > -1 && this.dom ) ? 1 : 0;
      this.ie4 = ( document.all && !this.dom ) ? 1 : 0;
      this.ns5 = ( this.dom && parseInt( this.ver ) >= 5 ) ? 1 : 0;
      this.ns4 = ( document.layers && !this.dom ) ? 1 : 0;
      this.bw  = ( this.ie5 || this.ie4 || this.ns4 || this.ns5 );

      return this; };

   bw = new checkBrowser();

   function getBrowserWidth() {
      if( document.body.clientWidth ) {
         browseWidth  = document.body.clientWidth; }
      else if( window.outerWidth ) {
         browseWidth  = window.outerWidth; }

      return browseWidth; };

   function getBrowserHeight() {
      if( document.body.clientHeight ) {
         browseHeight = document.body.clientHeight; }
      else if( window.outerHeight ) {
         browseHeight = window.outerHeight; }

      return browseHeight; };

   function cursorInit() {
      if( bw.ns4 ) { document.captureEvents( Event.MOUSEMOVE ); }

      document.onmousemove = moveWithScroll; };

   function makeCursorObj( obj, nest ) {
      nest        = ( !nest ) ? '' : 'document.' + nest + '.';
      this.css    = bw.dom ? document.getElementById( obj ).style : bw.ie4 ? document.all[ obj ].style : bw.ns4 ? eval( nest + "document.layers." + obj ) : 0;
      this.moveIt = b_moveIt;

      return this; };

   function moveWithScroll( e ) {
      mouseX = bw.ns4 || bw.ns5 ? e.pageX : event.x;
      mouseY = bw.ns4 || bw.ns5 ? e.pageY : event.y;

      if( arguments.length == 0 ) { e = event; }

      if( document.layers ) {
         mouseX = e.pageX;
         mouseY = e.pageY; }
   /* =================================================================================== */
   /* Commented out by Seth Daire of Crown Point Solutions due to JS error in IE */
   /* =================================================================================== */
   /*   else { */
   /*      mouseX = e.clientX + document.body.scrollLeft; */
   /*      mouseY = e.clientY + document.body.scrollTop; } */
 

      if( bw.ie4 || bw.ie5 ) { mouseY = mouseY + eval( scrolled ); } };

   function move( e ) {
      mouseX = bw.ns4 || bw.ns5 ? e.pageX : event.x;
      mouseY = bw.ns4 || bw.ns5 ? e.pageY : event.y;

      if( arguments.length == 0 ) { e = event; }

      if( document.layers ) {
         mouseX = e.pageX;
         mouseY = e.pageY; }
      else {
         mouseX = e.clientX;
         mouseY = e.clientY; }

      if( bw.ie4 || bw.ie5 ) { mouseY = mouseY + eval( scrolled ); } };

   function nextDivId( idString ) {
      if( !document.getElementById( idString ) ) {
         return idString; }
      else {
         var i = 1;

         while( document.getElementById( idString + i.toString() ) ) {
            i++; }

         return idString + i.toString(); } };

   function makeDivId( idString ) {
      return idString.replace( /[^0-9,a-z,A-Z]/gi, "_" ); };

   function findPosX( obj ) {
      var curleft = 0;

      if( obj.offsetParent ) {
         while( 1 ) {
            curleft += obj.offsetLeft;

            if( !obj.offsetParent ) { break; }

            obj = obj.offsetParent; } }
      else if( obj.x ) {
         curleft += obj.x; }

      return curleft; };

   function findPosY( obj ) {
      var curtop = 0;

      if( obj.offsetParent ) {
         while( 1 ) {
            curtop += obj.offsetTop;

            if( !obj.offsetParent ) { break; }

            obj = obj.offsetParent; } }
      else if( obj.y ) {
         curtop += obj.y; }

      return curtop; };

   function findWidth( obj ) {
      if( obj.width ) {
         return parseInt( obj.width ); }
      else if( obj.style.width ) {
         return parseInt( obj.style.width ); }
      else if( obj.offsetWidth ) {
         return parseInt( obj.offsetWidth ); }
      else {
         return null; } };

   function findHeight( obj ) {
      if( obj.style.height ) {
         try { return parseInt( obj.style.height ); } catch( err ) { return null; } }
      else if( obj.height ) {
         try { return parseInt( obj.height ); } catch( err ) { return null; } }
      else if( obj.offsetHeight ) {
         try { return parseInt( obj.offsetHeight ); } catch( err ) { return null; } }
      else {
         return null; } };

   function startCloseMonitor( menuToMonitor ) {
      var pmId = "";

      // Verify that menu exists and retrieve menu object:
      if( !document.getElementById( menuToMonitor ) ) {
         return; }
      else {
         m = document.getElementById( menuToMonitor ); }

      // Cancel monitors if menu is already closed:
      if( m.style.visibility == 'hidden' ) {
         try { clearTimeout( m.cancelTimer ); } catch( err ) { /* Do nothing, ignore error */ }
         try { clearTimeout( m.closeTimer  ); } catch( err ) { /* Do nothing, ignore error */ }

         return; }

      // Verify that no submenu is not open if menu is a top-level menu (no parent menu):
      if( m.getAttribute( 'parent' ) ) { pmId = m.getAttribute( 'parent' ); }

      if( pmId <= "" ) {
         if( document.getElementById( 'submenu_' + menuToMonitor ) ) {
            sm = document.getElementById( 'submenu_' + menuToMonitor );

            if( sm.style.visibility == 'visible' ) {
               clearTimeout( m.closeTimer );

               m.closeTimer = setTimeout( "startCloseMonitor( '" + menuToMonitor + "' );", menuTimeout );

               return; } } }

      // Verify that submenu children are not open:
      if( m.childNodes ) {
         cn = m.childNodes;

         for( var i = 0; i < cn.length; i++ ) {
            if( cn[ i ].getAttribute( 'submenu' ) ) {
               csmId = cn[ i ].getAttribute( 'submenu' );

               if( document.getElementById( csmId ) ) {
                  csm = document.getElementById( csmId );

                  if( csm.style.visibility == 'visible' ) {
                     clearTimeout( m.closeTimer  );

                     m.closeTimer = setTimeout( "startCloseMonitor( '" + menuToMonitor + "' );", menuTimeout );

                     return; } } } } }

      // At this point it is okay to close the menu:
      if( closeMenu( menuToMonitor ) ) {
         return true; }
      else {
         clearTimeout( m.closeTimer );

         m.closeTimer = setTimeout( "startCloseMonitor( '" + menuToMonitor + "' );", menuTimeout );

         return; } };

   function getMenuWidth( obj ) {
      contentWidth = 0;

      if( obj.childNodes ) {
         for( i = 0; i < obj.childNodes.length; i++ ) {
            c = obj.childNodes[ i ];

            if( c.style ) {
               if( c.style.visibility != 'hidden' ) {
                  ncWidth = findWidth( c );

                  if( ncWidth > contentWidth ) {
                     contentWidth = ncWidth; } } } } }

      return contentWidth; };

   function isTopMenu( menuObject ) {
      try {
         if( menuObject.parentNode.id == 'menuHolder' ) {
            return true; }
         else {
            return false; } }
      catch( e ) {} };

   function showMenu( menuParent ) {
      if( !document.getElementById( menuParent ) ) {
         return; }
      else {
         m = document.getElementById( menuParent ); }

      if( document.getElementById( menuParent ) ) {
         thisMenuHolder = document.getElementById( menuParent );

         if( thisMenuHolder.getAttribute( 'menuOnClass' ) ) {
            menuHolderOnClass = thisMenuHolder.getAttribute( 'menuOnClass' );

            if( menuHolderOnClass > '' ) { m.className = menuHolderOnClass; } } }

      // Display "submenu arrow" mouseover image:
      if( document.getElementById( 'subImg_' + menuParent ) ) {
         smi = document.getElementById( 'subImg_' + menuParent );

         if( smi.src == moreImage.src ) { smi.src = moreImageOver.src; } }

      // If a submenu exists then display the submenu:
      if( document.getElementById( 'submenu_' + menuParent ) ) {
         s = document.getElementById( 'submenu_' + menuParent );

         if( s.childNodes.length > 1 ) {
            s.style.position = 'absolute';

            // Resize menu to width of content:
            if( !( s.getElementsByTagName( "A" )[ 0 ].getAttribute( "autoCalcWidth" ) == "true" ) ) {
               s.style.width = ( getMenuWidth( s ) ).toString() + 'px'; }

            // Position submenu horizontally:
            if( document.getElementById( 'subImg_' + menuParent ) ) {
               submenuLeft = findPosX( m ) + submenuLeftOffset; }
            else {
               submenuLeft = findPosX( m ); }

            // Reposition submenu horizontally if it exceeds the horizontal page size:
            if( true ) { // !isTopMenu( m )
               if( ( submenuLeft + parseInt( s.style.width ) ) > getBrowserWidth() ) {
                  if( document.getElementById( 'subImg_' + menuParent ) ) {
                     submenuLeft = findPosX( m ) + findWidth( m ) - findWidth( s ) - submenuLeftOffset; }
                  else {
                     submenuLeft = findPosX( m ) + findWidth( m ) - findWidth( s ); } } }

            s.style.left = submenuLeft.toString() + 'px';

            // Position submenu under menu link (varies in different browsers):
            var menuTopOffset = 0;

            if( navigator.userAgent.indexOf( "Firefox" ) > - 1 ) {
               if( s.getAttribute( 'parent' ) ) {
                  pmId = s.getAttribute( 'parent' );

                  if( document.getElementById( pmId ) ) {
                     pml = document.getElementById( pmId );

                     if( isTopMenu( pml ) ) {
                        menuTopOffset = -6; } } } }

            if( isTopMenu( m ) ) {
               if( document.getElementById( 'img_' + menuParent ) ) {
                  s.style.top = ( findPosY( m ) + findHeight( m ) + submenuTopOffset ).toString() + 'px'; }
               else {
                  s.style.top = ( findPosY( m ) + findHeight( m ) + submenuTopOffset ).toString() + 'px'; } }
            else {
               if( document.getElementById( 'img_' + menuParent ) ) {
                  s.style.top = ( findPosY( m ) + findHeight( m ) ).toString() + 'px'; }
               else {
                  s.style.top = ( findPosY( m ) + findHeight( m ) ).toString() + 'px'; } }

            // Display the submenu (only if there are options in the submenu):
            var pmId = "";

            if( s.childNodes.length > 0 ) {
               ignoreMenu = s.id;

               closeRelatedMenus( s.id );

               s.style.visibility = 'visible';

               if( s.getAttribute( 'parent' ) ) {
                  pmId = s.getAttribute( 'parent' );

                  if( document.getElementById( pmId ) ) {
                     pml = document.getElementById( pmId );

                     if( pml.parentNode ) {
                        if( isTopMenu( pml ) ) {
                           s.cancelTimer = setTimeout( "if( !closeMenu( '" + s.id + "' ) ) { this.closeTimer = startCloseMonitor( '" + s.id + "' ); }", inactiveMenuTimeout ); }
                        else {
                           s.closeTimer = startCloseMonitor( s.id ); } } } }

               try {
                  eval( "s.closeTimer = s.attachEvent( 'onmouseover', function() { clearTimeout( document.getElementById( '" + s.id + "' ).cancelTimer ); document.getElementById( '" + s.id + "' ).closeTimer = startCloseMonitor( '" + s.id + "' ); return true; } )" ); }
               catch( err ) {
                  s.closeTimer = s.setAttribute( 'onMouseOver', "clearTimeout( this.cancelTimer ); this.closeTimer = startCloseMonitor( '" + s.id + "' ); return true;" ); }

               try {
                  eval( "s.closeTimer = s.attachEvent( 'onmouseout', function() { if( !closeMenu( '" + s.id + "' ) ) { this.closeTimer = startCloseMonitor( '" + s.id + "' ); } } )" ); }
               catch( err ) {
                  s.closeTimer = s.setAttribute( 'onMouseOut', "if( !closeMenu( '" + s.id + "' ) ) { this.closeTimer = startCloseMonitor( '" + s.id + "' ); } return true;" ); } } }
         else {
            try {
               eval( "m.closeTimer = m.attachEvent( 'onmouseout', function() { if( !closeMenu( document.getElementById( '" + m.id + "' ) ) ) { document.getElementById( '" + m.id + "' ).closeTimer = startCloseMonitor( '" + m.id + "' ); } } )" ); }
            catch( err ) {
               m.closeTimer = m.setAttribute( 'onMouseOut', "if( !closeMenu( '" + m.id + "' ) ) { this.closeTimer = startCloseMonitor( '" + m.id + "' ); } return true;" ); }

            closeRelatedMenus( s.id ); } }

      ignoreMenu = ''; };

   function closeMenu( menuId ) {
      if( menuId == ignoreMenu ) { return; }

      var pmId = "";

      // Retrieve menu object:
      if( !document.getElementById( menuId ) ) {
         return; }
      else {
         m = document.getElementById( menuId ); }

      // Verify that mouse is not currently over menu:
      mx1 = findPosX( m ) - xOffset;
      my1 = findPosY( m ) - yOffset;
      mx2 = mx1 + findWidth( m ) + xOffset;
      my2 = my1 + findHeight( m ) + yOffset;

      // Quit, mouse still over menu!
      if( ( mouseX >= mx1 ) && ( mouseY >= my1 ) && ( mouseX <= mx2 ) && ( mouseY <= my2 ) ) { return false; }

      // Verify that mouse is not currently over menu link:
      if( m.getAttribute( 'parent' ) ) {
         pmId = m.getAttribute( 'parent' );

         if( document.getElementById( 'ml_' + pmId ) ) {
            pml = document.getElementById( 'ml_' + pmId );

            pmlx1 = findPosX( pml ) - xOffset;
            pmly1 = findPosY( pml ) - yOffset;
            pmlx2 = pmlx1 + findWidth( pml ) + xOffset;
            pmly2 = pmly1 + findHeight( pml ) + yOffset;

            // Mouse still over menu link if true:
            if( ( mouseX >= pmlx1 ) && ( mouseY >= pmly1 ) && ( mouseX <= pmlx2 ) && ( mouseY <= pmly2 ) ) { return false; } } }

      // Verify that no submenu container is open:
      if( document.getElementById( 'submenu_' + m.id ) ) {
         sm = document.getElementById( 'submenu_' + m.id );

         // Submenu still open if true:
         if( sm.style.visibility == 'visible' ) { return false; } }

      // Verify that no submenu children are open:
      if( m.childNodes ) {
        sms = m.childNodes;

        for( i = 0; i < sms.length; i++ ) {
           if( document.getElementById( 'submenu_' + sms[ i ].id ) ) {
             smcn = document.getElementById( 'submenu_' + sms[ i ].id );

             if( smcn.style.visibility == 'visible' ) { return false; } } } }

      // Mouse not over menu link and mouse not over submenu, stop all monitoring and hide menu:
      try { clearTimeout( m.cancelTimer ); } catch( err ) { /* Do nothing, ignore error */ }
      try { clearTimeout( m.closeTimer  ); } catch( err ) { /* Do nothing, ignore error */ }

      // Reset parent submenu arrow and/or mouseover image if exist:
      if( pmId > "" ) {
         if( document.getElementById( 'subImg_' + pmId ) ) {
            pmi = document.getElementById( 'subImg_' + pmId );

            if( pmi.src == moreImageOver.src ) { pmi.src = moreImage.src; } }

         // Reset menu link mouseover image:
         if( document.getElementById( 'ml_' + pmId ) ) {
            ml = document.getElementById( 'ml_' + pmId );

            if( ml.getAttribute( "oImage" ) > "" ) {
               if( document.getElementById( 'img_' + pmId ) ) {
                  mi = document.getElementById( 'img_' + pmId );

                  mi.src = ml.getAttribute( "oImage" ); } } }

         // At this point the menu is safe to be closed:
         m.style.visibility = 'hidden'; }

      if( document.getElementById( m.getAttribute( 'parent' ) ) ) {
         thisMenuHolder = document.getElementById( m.getAttribute( 'parent' ) );

         if( thisMenuHolder.getAttribute( 'menuOffClass' ) ) {
            menuHolderOffClass = thisMenuHolder.getAttribute( 'menuOffClass' );

            if( menuHolderOffClass > '' ) { thisMenuHolder.className = menuHolderOffClass; } } }
      else if( m.childNodes ) {
         sms = m.childNodes;

         if( sms.length <= 1 ) {
            if( m.getAttribute( 'menuOffClass' ) ) {
               menuHolderOffClass = m.getAttribute( 'menuOffClass' );

               if( menuHolderOffClass > '' ) { m.className = menuHolderOffClass; } } } }

//      alert( '(' + mouseX + ',' + mouseY + ') not in (' + pmlx1 + ',' + pmly1 + ')-(' + pmlx2 + ',' + pmly2 + ')' );

      return true; };

   function forceCloseMenu( menuId ) {
      var pmId = "";

      // Retrieve menu object:
      if( !document.getElementById( menuId ) ) {
         return; }
      else {
         m = document.getElementById( menuId ); }

      // Verify that no submenu container is open:
      if( document.getElementById( 'submenu_' + m.id ) ) {
         sm = document.getElementById( 'submenu_' + m.id );

         // Submenu still open if true:
         if( sm.style.visibility == 'visible' ) { return false; } }

      // Verify that no submenu children are open:
      if( m.childNodes ) {
        sms = m.childNodes;

        for( i = 0; i < sms.length; i++ ) {
           if( document.getElementById( 'submenu_' + sms[ i ].id ) ) {
             smcn = document.getElementById( 'submenu_' + sms[ i ].id );

             if( smcn.style.visibility == 'visible' ) { return false; } } } }

      // Stop all monitoring and hide menu:
      try { clearTimeout( m.cancelTimer ); } catch( err ) { /* Do nothing, ignore error */ }
      try { clearTimeout( m.closeTimer  ); } catch( err ) { /* Do nothing, ignore error */ }

      // Reset parent submenu arrow and/or mouseover image if exist:
      if( m.getAttribute( 'parent' ) ) { pmId = m.getAttribute( 'parent' ); }

      if( pmId > "" ) {
         if( document.getElementById( 'subImg_' + pmId ) ) {
            pmi = document.getElementById( 'subImg_' + pmId );

            if( pmi.src == moreImageOver.src ) { pmi.src = moreImage.src; } }

         // Reset menu link mouseover image:
         if( document.getElementById( 'ml_' + pmId ) ) {
            ml = document.getElementById( 'ml_' + pmId );

            if( ml.getAttribute( "oImage" ) > "" ) {
               if( document.getElementById( 'img_' + pmId ) ) {
                  mi = document.getElementById( 'img_' + pmId );

                  mi.src = ml.getAttribute( "oImage" ); } } } }

      // At this point the menu is safe to be closed:
      m.style.visibility = 'hidden';

      if( document.getElementById( m.getAttribute( 'parent' ) ) ) {
         thisMenuHolder = document.getElementById( m.getAttribute( 'parent' ) );

         if( thisMenuHolder.getAttribute( 'menuOffClass' ) ) {
            menuHolderOffClass = thisMenuHolder.getAttribute( 'menuOffClass' );

            if( menuHolderOffClass > '' ) { thisMenuHolder.className = menuHolderOffClass; } } }

      return true; };

   function closeRelatedMenus( menuId ) {
      if( !document.getElementById( menuId ) ) {
         return; }
      else {
         am = document.getElementById( menuId ); }

      if( document.getElementById( am.getAttribute( 'parent' ) ) ) {
         pm = document.getElementById( am.getAttribute( 'parent' ) );

         if( pm.parentNode ) {
            mc = pm.parentNode;

            if( mc.childNodes ) {
               om = mc.childNodes;

               for( var i = 0; i < om.length; i++ ) {
                  if( document.getElementById( 'submenu_' + om[ i ].id ) ) {
                     osm = document.getElementById( 'submenu_' + om[ i ].id );

                     if( osm.id != menuId ) {
                        try { forceCloseMenu( osm.id ); } catch( e ) {} } } } } } } };

   function addMenu( parentMenu, menuTitle, menuLink, menuOnImage, menuOffImage, menuClass, menuHoverClass, imgWidth, imgHeight ) {
      if( parentMenu <= "" ) {
         var menuContainer        = document.getElementById( 'menuHolder' );
         var newSubmenu           = document.createElement( 'span' );
         var submenuContainer     = document.getElementById( 'submenuHolder' );
         var newSubmenuBackground = document.createElement( 'span' );
         var parentMenuId         = nextDivId( makeDivId( menuTitle ) );
         var newDivId             = nextDivId( makeDivId( "submenu_" + parentMenuId ) );

         newSubmenu.setAttribute( 'id',     newDivId     );
         newSubmenu.setAttribute( 'parent', parentMenuId );

         newSubmenu.style.visibility = 'hidden';
         newSubmenu.style.position   = 'absolute';
         newSubmenu.className        = 'submenuContainerElement';

         newSubmenuBackground.className = 'submenuContainerBackground';

         if( useBackgroundElement ) { newSubmenu.appendChild( newSubmenuBackground ); }

         if( imgWidth > 0 ) {
            newSubmenu.style.width = imgWidth + 'px'; }
         else if( parentMenu > "" ) {
            if( document.getElementById( parentMenu ) ) {
               pm = document.getElementById( parentMenu );

               if( pm.style.width > '' ) {
                  newSubmenu.style.width = pm.style.width; } } }

         submenuContainer.appendChild( newSubmenu );

         var newMenu = document.createElement( 'span' ); }
      else if( document.getElementById( makeDivId( parentMenu ) ) ) {
         var menuContainer        = document.getElementById( makeDivId( "submenu_" + parentMenu ) );
         var newSubmenu           = document.createElement( 'span' );
         var submenuContainer     = document.getElementById( 'submenuHolder' );
         var newSubmenuBackground = document.createElement( 'span' );
         var parentMenuId         = nextDivId( makeDivId( menuTitle ) );
         var newDivId             = nextDivId( makeDivId( "submenu_" + parentMenuId ) );

         newSubmenu.setAttribute( 'id',     newDivId     );
         newSubmenu.setAttribute( 'parent', parentMenuId );

         newSubmenu.style.position   = 'absolute';
         newSubmenu.style.visibility = 'hidden';
         newSubmenu.className        = 'submenuContainerElement';

         newSubmenuBackground.className = 'submenuContainerBackground';

         if( useBackgroundElement ) { newSubmenu.appendChild( newSubmenuBackground ); }

         if( imgWidth > 0 ) {
            newSubmenu.style.width = imgWidth + 'px'; }
         else if( parentMenu > "" ) {
            if( document.getElementById( parentMenu ) ) {
               pm = document.getElementById( parentMenu );
               if( autoCalculateWidth ) {
                  menuContainer.style.overflowX = 'visible'; }
               else {
                  if( pm.style.width > '' ) {
                     newSubmenu.style.width = pm.style.width; } } } }

         submenuContainer.appendChild( newSubmenu );

         if( document.getElementById( makeDivId( "subImg_" + parentMenu ) ) ) {
            submenuMoreImg              = document.getElementById( makeDivId( "subImg_" + parentMenu ) );
            submenuMoreImg.style.height = '5px';
            submenuMoreImg.style.width  = '14px';
            submenuMoreImg.src          = moreImage.src; }

         var newMenu = document.createElement( 'div' );

         if( imgWidth > 0 ) {
            newMenu.style.width = imgWidth + 'px'; }
         else if( parentMenu > "" ) {
            if( document.getElementById( parentMenu ) ) {
               pm = document.getElementById( parentMenu );

               if( pm.style.width > '' ) {
                  newMenu.style.width = pm.style.width; } } } }
      else {
         return false; }

      var newDivId = nextDivId( makeDivId( menuTitle ) );

      menuContainer.appendChild( newMenu );

      newMenu.setAttribute( 'id', newDivId );

      if( menuClass > "" ) { newMenu.className = menuClass; }

      if( menuOnImage <= "" && menuOffImage > "" ) { menuOnImage = menuOffImage; }

      if( menuOnImage <= ""  && menuOffImage <= "" ) {
         newMenu.setAttribute( 'menuOnClass',  menuHoverClass );
         newMenu.setAttribute( 'menuOffClass', menuClass      );

         newMenuHTML = "<nobr><a id=\"ml_" + newDivId + "\" href=\"" + menuLink + "\" onMouseOver=\"showMenu( '" + newDivId +
                       "' ); return true;\" submenu=\"submenu_" + newDivId + "\" style=\"display: block; height:" + imgHeight + "px; width:" +
                       ( imgWidth > 0 ? imgWidth + "px; overflow: hidden" : "auto; overflow: visible" ) + ";\"" +
                       ( autoCalculateWidth && ( imgWidth == 0 ) ? " autoCalcWidth=\"true\"" : "" ) + ">&nbsp;" + menuTitle;

         if( parentMenu > "" ) {
            newMenuHTML += "<img id=\"subImg_" + newDivId + "\" src=\"" + blankImage + "\" border=\"0\" height=\"" + moreImage.height + "\" width=\"" +
                           moreImage.width + "\" alt=\"\" style=\"float:right; position:relative; top:-8px;\" />"; }

         newMenuHTML += "</a></nobr>";

         newMenu.innerHTML = newMenuHTML;

         if( autoCalculateWidth && ( imgWidth == 0 ) ) { menuContainer.style.width = ( newMenu.scrollWidth + autoWidthPadding ).toString() + 'px'; } }
      else {
         newMenu.setAttribute( 'menuOnClass',  menuHoverClass );
         newMenu.setAttribute( 'menuOffClass', menuClass      );

         newMenu.innerHTML = "<nobr><a id=\"ml_" + newDivId + "\" href=\"" + menuLink + "\" oImage=\"" + menuOffImage +
                             "\" onMouseOver=\"document.getElementById( 'img_" + newDivId + "' ).src = '" + menuOnImage + "'; showMenu( '" + newDivId +
                             "' ); return true;\" submenu=\"submenu_" + newDivId + "\"><img src=\"" + menuOffImage + "\" id=\"img_" + newDivId +
                             "\" alt=\"" + menuTitle + "\" height=\"" + imgHeight.toString() + "\" width=\"" + imgWidth.toString() +
                             "\" border=\"0\" /></a></nobr>"; }

      if( firstMenu == null ) { firstMenu = document.getElementById( newDivId ); }

      return newDivId; };

   function addImage( imgPath, imgClass, imgWidth, imgHeight ) {
      var menuContainer = document.getElementById( 'menuHolder' );
      var menuImage     = document.createElement( 'div' );

      menuImage.className             = imgClass;
      menuImage.style.display         = 'inline';
      menuImage.style.backgroundImage = 'url(' + imgPath + ')';
      menuImage.style.height          = imgHeight.toString() + 'px';
      menuImage.style.width           = imgWidth.toString() + 'px';
      menuImage.style.overflow        = 'hidden';

      menuContainer.appendChild( menuImage ); };

   function clearMenuFiller() {
      try {
         if( menuContainer = document.getElementById( 'menuFiller' ).parentNode ) {
            menuContainer.removeChild( document.getElementById( 'menuFiller' ) ); } }
      catch( e ) {}

      patchNetscape();

      return; }

   function patchNetscape() {
      try {
         if( !( navigator.appName.indexOf( 'Netscape' ) > -1 ) ) {
            return; }
         else if( firstMenu != null ) {
            if( firstMenu.getAttribute( 'menuOnClass' ) ) {
               menuHolderOnClass  = firstMenu.getAttribute( 'menuOnClass' );
               menuHolderOffClass = firstMenu.getAttribute( 'menuOffClass' );

               if( ( menuHolderOnClass > '' ) && ( menuHolderOffClass > '' ) ) {
                  firstMenu.className = menuHolderOnClass;
                  firstMenu.className = menuHolderOffClass; } } } }
      catch( e ) {}

      return; }

   cursorInit();

//-->