//preload the background images
image1 = new Image();
image1.src = "images/robertFudgeBG.jpg";
image2 = new Image();
image2.src  = "images/aboutMeBG.jpg";
image3 = new Image();
image3.src  = "images/loginBG.jpg";
image4 = new Image();
image4.src  = "images/contactMeBG.jpg";
image5 = new Image();
image5.src  = "images/legalBG.jpg";

//change the background image, called from flash
function setBackgroundImage(id, imageURL) {
  if (document.layers)
    document[id].background.src = imageURL == 'none' ? null : imageURL;
  else if (document.all)
    document.all[id].style.backgroundImage = imageURL == 'none' ? 'none' : 'url(' + imageURL + ')';
  else if (document.getElementById)
    document.getElementById(id).style.backgroundImage = imageURL == 'none' ? 'none' : 'url(' + imageURL + ')';
}