<!-- Hide Javascript

// PRELOAD IMAGES

var preloadFlag = false;

function preloadImages() {
  var arrImages = new Array();
  var strImageName = "";
  var counter = 0;

  for(i=0; i<document.images.length; i++) {
    strImageName = document.images[i].name;
    if (strImageName != "") {
      arrImages[counter] = new Image();
      arrImages[counter].src = "images/buttons/" + strImageName + "_over.gif";
      counter++;
    }
  }

  // alert("There are " + arrImages.length + " images loaded");
  preloadFlag = true;
}


// IMAGE SWAPPING SCRIPT

function swap(name, over) {
  if ((document.images) && (preloadFlag)) {
    if (over == "over") {
      var source = "images/buttons/"+name+"_over.gif";
    }
    else {
      var source = "images/buttons/"+name+".gif";
    }
    document.images[name].src = source;
  }
}


// GOTO MENU AUTO-REDIRECT...
function gotoUrl(whichform, whichelement) {
  menuIndex  = document.forms[whichform].elements[whichelement].options.selectedIndex;
  menuChoice = document.forms[whichform].elements[whichelement].options[menuIndex].value;

  if (menuChoice != "") {
    if (menuChoice.indexOf("http://") == -1) {
      menuChoice = "http://www.macwoods.com/website3/" + menuChoice;
    }

    window.location = menuChoice;
  }
}

//  Stop Hiding Javascript -->