/********************************
 * site-specific settings       *
 ********************************/

var showRolloverMenuEffect = Effect.BlindDown;
var showRolloverMenuEffectOptions = { duration: 0.2 };
var hideRolloverDelay = 150;
var hideRolloverMenuEffect = Effect.BlindUp;
var hideRolloverMenuEffectOptions = { duration: 0.2 };

/********************************
 * site-specific functions      *
 ********************************/

/* Function to handle the rotating images on the homepage */

var slides = new Array("slideshow1", "slideshow2", "slideshow3");
var slideNum = 0;
var next = 1;
var previous = 0;
var newLocation = 0;

function slideit1() {
  // fade out the first image
  Effect.Fade(slides[slideNum])
  document.getElementById(slides[next]).style.position = "absolute"
  // set the top of the new image to 77px if the user is logged in (to conpensate for the toolbar)
  if (loggedIn())
    document.getElementById(slides[next]).style.top = "77px"
  // otherwise set the top of the new image to 50px
  else
    document.getElementById(slides[next]).style.top = "50px"
  // have the next image appear
  Effect.Appear(slides[next])
  if (slideNum < 2)
    slideNum++
  else
    slideNum = 0
  if (next < 2)
    next++
  else
    next = 0
  // rotate images every 3 seconds
  setTimeout( "slideit1()", 3000 );
}

function setUrl(url) {
  var button = document.getElementById('continue');
  button.setAttribute('href', url);
}
