//v1.7
// Flash Player Version Detection
var swap = new Array();
function preload() {
   // object detection to test if what we want works
   if( document.images ) {
      for( var j=0; j < arguments.length; j++ ) {
         swap[j] = new Image(); // instance of image object
         swap[j].src = arguments[j]; // arguments are handled on the fly
      }
   }
}

// Now for when the user either hovers or clicks
function activateImg(img, newImagePath) {
   if( document.images )
      document[img].src = newImagePath;
}

// When user's mouse leaves image or mouse button goes back up
function deactivateImg(img, oldImagePath) {
   if( document.images )
      document[img].src = oldImagePath;
}