/* This code can be reused and modified as 
     long as the copyright notice and URL 
     are maintained. */
  // This code is
  // copyright 1998 InsideDHTML.com, LLC.
  // http://www.insideDHTML.com
  
  // Set this to the number of pages
  var pageCount = 3
  // Browser detection veriables
  var allSupport = (document.all!=null)
  var layersSupport = (document.layers!=null)

  function getElement(elName) {    
    // Get an element from its ID
    if (allSupport)      
     return document.all[elName]    
    else
      return document.layers[elName]  
  }

  function setVisibility(el, bDisplay) {    
    // Hide or show to tip
    if (bDisplay)      
      if (allSupport)        
        el.style.visibility = "visible" 
      else        
        el.visibility = "show";    
      else      
        if (allSupport)
          el.style.visibility = "hidden"      
        else        
          el.visibility = "hidden"
  }

  function movePage(what) {
   if ((allSupport) || (layersSupport)) {
     for (var i=1; i <=pageCount; i++) 
       setVisibility(getElement("page"+i),what==i)
     return false
   } else 
     // Ignore code in downlevel browsers
     return true
  }

  function doResize() {
    location.reload()
  }

  // Work-around Netscape resize bug
  if (layersSupport)
    setTimeout('window.onresize=doResize',200)