/* An array of rollover images for the main menu */
var mm = new Array(6);

mm[0] = new Image();
mm[0].src = '/i/mainmenu-introduce_.png';
mm[1] = new Image();
mm[1].src = '/i/mainmenu-fascinate_.png';
mm[2] = new Image();
mm[2].src = '/i/mainmenu-document_.png';
mm[3] = new Image();
mm[3].src = '/i/mainmenu-communicate_.png';
mm[4] = new Image();
mm[4].src = '/i/mainmenu-imagine_.png';
mm[5] = new Image();
mm[5].src = '/i/mainmenu-converse_.png';

// RollMeOver
//
// When a mouse rolls over this element, replace it with the indexed
// element of the main menu image array.  Call this function again
// to switch it back.
function RollMeOver( index, element ) {
  var tmpImage = new Image();
  var theElement = document.getElementById( element );

  tmpImage.src = theElement.src;
  theElement.src = mm[index].src;
  mm[index].src = tmpImage.src;
}