
<!-- Original:  CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:  http://www.codelifter.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
theUrl="";
function doThePopUp(theUrl) {
reWin = window.open(theUrl,'determined','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=275,height=600,top=100,left=100');
}
//  End -->

<!-- Original:  Fredrik Fridsten (fredrik.fridsten@home.se) -->
<!-- Web Site:  http://hem.passagen.se/dred -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

// ADDITIONAL NOTES
// The input variables to the toggle function are the number of the submenu to open/close,
// starting with 0, and the number of pixels to move the objects below.
// For example toggle(1,60) opens/closes the second submenu and moves the objects below 60 pixels.

var nom = 8; // Number of menus
var usePictures = 1; // use pictures?  1 = yes, 0 = no

var ttls = new Array(); // An array for the title objects
var subs = new Array(); // An array for the submenu objects
var lastn;
var lastmove;

if (document.layers)
{
  visible = 'show';
  hidden = 'hide';
}
else
  if (document.all)
  {
    visible = 'visible';
    hidden = 'hidden';
  }
  
for (var i = 1; i <= nom; i++)
{
  ttls[i] = ('title' + i);
  subs[i] = ('submenu' +i);
}

function picopen(n)
{
  title = ('title' + n);
  pic = ('pic' + n);
  if (document.layers)
  {
    document.layers[title].document.images[pic].src = "../images/opened.gif";
  }
  else if (document.all)
  {
    document.all(pic).src = "../images/opened.gif";
    }
}

function picclose(n)
{
  title = ('title' + n);
  pic = ('pic' + n);
  if (document.layers)
  {
    document.layers[title].document.images[pic].src = "../images/closed.gif";
  }
  else if (document.all)
  {
    document.all(pic).src = "../images/closed.gif";
    }
}

lastn = (nom + 1);
lastmove = 0;

function lasttoggle(n,move)
{
  if (n <= nom)
  {
    menu = ('submenu' + n);
    if (document.layers)
    {
      submenu = document.layers[menu];
    }
    else if (document.all)
    {
      submenu = document.all(menu).style;
    }
    if (submenu.visibility == visible)
    {
      submenu.visibility = hidden;
      picclose(n); // Remove this if you don't use pictures
      for (var i = (n+1); i <= nom; i++)
      {
        if (document.layers)
        {
          document.layers[ttls[i]].top -= move;
          document.layers[subs[i]].top -= move;
        }
        else if (document.all)
        {
          document.all(ttls[i]).style.pixelTop -= move;
          document.all(subs[i]).style.pixelTop -= move;
              }
          }
      }
    }
}

function toggle(n,move)
{
  menu = ('submenu' + n);
  if (document.layers)
  {
    submenu = document.layers[menu];
  }
  else if (document.all)
  {
    submenu = document.all(menu).style;
  }
  if (submenu.visibility == visible)
  {
    submenu.visibility = hidden;
    if (usePictures)
      picclose(n);
    
    for (var i = (n+1); i <= nom; i++)
    {
      if (document.layers)
      {
        document.layers[ttls[i]].top -= move;
        document.layers[subs[i]].top -= move;
      }
      else if (document.all)
      {
        document.all(ttls[i]).style.pixelTop -= move;
        document.all(subs[i]).style.pixelTop -= move;
          }
      }
  }
  else
  {
    submenu.visibility = visible;
    if (usePictures)
      picopen(n);
    
    if (lastn != n)
    {
      lasttoggle(lastn,lastmove);
    }
    
    for (var i = (n+1); i <= nom; i++)
    {
      if (document.layers)
      {
        document.layers[ttls[i]].top += move;
        document.layers[subs[i]].top += move;
      }
      
      if (document.all)
      {

        document.all(ttls[i]).style.pixelTop += move;
        document.all(subs[i]).style.pixelTop += move;
          }
      }
  }

  lastn = n;
  lastmove = move;
}
//  End -->

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
