// Preload Images
// Works in most browsers

// First load an array with all the images we want to preload
function preloadImages(imageArray, imageFolder) {

  // Count how many items there are to preload
  var numPreload = imageArray.length;

  // Loop through all the items and preload them
  for(loops = 0; loops < numPreload; loops++) {
    thisImage     = new Image();
    thisImage.src = imageFolder + imageArray[loops];
  }

} // ! image preloader
