
/* These are defined in the preload and rollover .js files */
function preLoad() { }
function rollOver() { }

/* 
 * IE and DOM browsers only (NS4 not supported)
 * newVis = "visible" or "hidden" 
 */
function layerVis( layerName, newVis )
{
  if (document.getElementById){
   // DOM3 browser (ie5, ns6, etc)
   toShow = document.getElementById(layerName);
   toShow.style.visibility = newVis;
  }
  else {
    if (document.all){
     // IE4 :(
     toShow = document.all[ layerName ];
     toShow.style.visibility = newVis;
    }
  }
}

function enterSigil( name, bodyOverlay )
{
  rollOver(name, 'on');
  layerVis( bodyOverlay, 'visible' );
}

function exitSigil( name, bodyOverlay )
{
  rollOver(name, 'off');
  layerVis( bodyOverlay, 'hidden' );
}

/* Change the color of an obj (text) */
function setColor( name, clr )
{
  if (document.getElementById)
  {
    document.getElementById(name).style.color = clr;
  }
  else if (document.all)
  {
    document.all[name].style.color = clr;
  }
}


/* Activate makes a layer visible, then loads a page */
function activate( name, link )
{
  layerVis( name, 'visible' );
  loadPageAfterDelay( link, 1000 );
}

/* Function to change pages...soon */
function loadPageAfterDelay( page, delayInMilliseconds )
{
  setTimeout( "self.location='" + page + "'", delayInMilliseconds );
}




