// OBJ-ORIENTED ROLLOVER SCRIPT:
var totalGraphics=0;         // TOTAL NUMBER OF GRAPHIC OBJECTS CREATED
var graphic = new Array();   // ARRAY OF IMAGE OBJECTS

if (imageSubdirectory==null) {
 var imageSubdirectory = "images/menu_"
} else {
	var imageSubdirectory = imageSubdirectory+"images/menu_"
}

var offSuffix         = ".gif";
var onSuffix          = "_o.gif";
var selSuffix         = "_o.gif";

// CREATE NEW GRAPHIC OBJECT
function ctrl_graphic (name, width, height, statusText) {
  this.name     = name;
  this.height   = height;
  this.width    = width;

  this.off         = new Image (width, height);
  this.off.src     = imageSubdirectory + name + offSuffix;

  this.on         = new Image (width, height);
  this.on.src     = imageSubdirectory + name + onSuffix;
  
  this.sel         = new Image (width, height);
  this.sel.src     = imageSubdirectory + name + selSuffix;

  this.statusText = statusText;
}
// BUILD ARRAY OF GRAPHIC OBJECTS (OFF, ON, PICK)
function create_ctrl (name, width, height, statusText) {
  graphic[totalGraphics] = new ctrl_graphic(name, width, height, statusText);
  totalGraphics++; 
}
function doMouseOver(num) {
	document.images[graphic[num].name].src = graphic[num].on.src;
    self.status = graphic[num].statusText;
}
function doMouseOut (num) {
	document.images[graphic[num].name].src = graphic[num].off.src;
	self.status = '';
}
function doClick (num) {
	document.images[graphic[num].name].src = graphic[num].sel.src;
}


//IMAGE OBJECT ARRAY INSTANTIATION STRINGS
create_ctrl("overview", 146, 10, ": Overview");
create_ctrl("press", 146, 10, ": Press");
create_ctrl("mail", 146, 10, ": Mailing List");
create_ctrl("directions", 146, 10, ": Directions");
create_ctrl("joypad", 146, 10, ": Joypad");
create_ctrl("further", 146, 10, ": FURTHER");
create_ctrl("transcinema", 146, 10, ": Transcinema");
create_ctrl("calendar", 146, 10, ": Calendar");
create_ctrl("avsetup", 146, 10, ": Audio/Visual, Event Production");
create_ctrl("vismedia", 146, 10, ": Visual Media");
create_ctrl("bolt", 146, 10, ": BOLT");
create_ctrl("68k", 146, 10, ": 68k Lounge");