<!--
// -----------------------------------------------------------------------------
// Filename   : PDSExpandHdr.js
// Description: Definitions for PDS Website Explorer Expand Type
// -----------------------------------------------------------------------------
// Author     : Gary Javier (JGS)
// Version    : 1.01.02
// Update History:
//    Date              Description                                   Author
//    ----------------- --------------------------------------------- ----------
//    11/22/2004        Created Generic Function to open a details    JGS
//                      to allow different behaviour and support
//                      the mouse over event of a link
//
// Note:
// --------------------------------------------------------------------
// Please use navlinks.css get product lists for example
// -----------------------------------------------------------------------------
// Copyright @ 2000-2005 by Progressive Data Systems
// -----------------------------------------------------------------------------
// This Code is licensed by Progressive Data System and are not for re-use 
// or distribution unless with written approval by PDS Software
// -----------------------------------------------------------------------------

   function fHideClasses(SpanClassName) {           
      if (document.getElementById){
         document.write('<style type="text/css">\n');
         document.write(' .' + String(SpanClassName) + '{display: none;}\n');
         document.write('</style>\n');
      }
   }

   

   function fOpenDetailEx(DivId,SpanClassName,SpanId) {
      fOpenDetailsEx (DivId,SpanClassName,SpanId,true,true);
   }

   function fOpenDetailMouseOver(DivId,SpanClassName,SpanId) {
      fOpenDetailsEx(DivId,SpanClassName,SpanId,true,false);
   }

   function fOpenDetailMouseOverNoHide(DivId,SpanClassName,SpanId) {
      fOpenDetailsEx(DivId,SpanClassName,SpanId,false,false);
   }


   function fOpenDetailsEx(DivId,SpanClassName,SpanId,HideOtherBlocks,AutoHide) {
      if (document.getElementById) {
         var el = document.getElementById(String(SpanId));
         var ar = document.getElementById(String(DivId)).getElementsByTagName("span");

         if (el.style.display != "block") {
            if (HideOtherBlocks == true) {
               for (var i = 0; i < ar.length; i++) {
                  if (ar[i].className == String(SpanClassName))
                    ar[i].style.display = "none";
               }
            }
            el.style.display = "block";
         }
         else if (AutoHide == true) {
            el.style.display = "none";
         }
      }
   }

//-->

