//make var for currently highlighted button
curr_highltd=0

//including-----------------------
numb_of_buttons=7

//number of images before the first menu image-------- 
images_before=2

//--------load "highlighted" tabs into memory---------
 button_on = new Array(numb_of_buttons);
 
 for (i=0; i<numb_of_buttons; i++)
  button_on[i]=new Image();

//------------------descriptions----------------------
 descrip = new Array(numb_of_buttons);
 
 for (i=0; i<numb_of_buttons; i++)
  descrip[i]=new Image();

//load files------------------------------------------
 for (i=0; i<numb_of_buttons; i++){
  button_on[i].src="menu/"+(i+1)+"on.gif";
  //desc[i].src="images/tabc"+(i+1)+".gif";
 }

 function on(image,file)
  {
   document.images[image+images_before].src=file;
   //store the highlighted on for off()
   curr_highltd=image+images_before;  
  }

 function off()
  {
    document.images[curr_highltd].src="menu/"+(curr_highltd-images_before)+".gif";
  }

