function preload(){
  for(var count=0;count<buttons.length;count++){
    buttonGraphics[count]=new Image();
    buttonOrig[count]=new Image();
    buttonGraphics[count].src='images/menu/'+buttons[count]+'_hi.gif';
    buttonOrig[count].src='images/menu/'+buttons[count]+'.gif';
  }
}


function highLight(whichButton){
  if(whichButton!= lastClicked){
    document.images[buttons[whichButton]].src=buttonGraphics[whichButton].src;
    currentHighlight=whichButton
  }
}

function deHighLight(whichButton){
  if ((whichButton!= lastClicked)) {
    document.images[buttons[whichButton]].src=buttonOrig[whichButton].src;
  }
}



function change(x)
{
	if (lastClicked==-1) lastClicked=xx;
	document.images[buttons[lastClicked]].src=buttonOrig[lastClicked].src;
	document.images[buttons[xx]].src=buttonGraphics[xx].src;
	lastClicked = x;
	
}


preload();