// (Don't touch the next line; it declares the image array.)
var Pic = new Array


Pic[0] = '../../images/button_order.gif'
Pic[1] = '../../images/button_order_on.gif'
Pic[2] = '../../images/button_order_down.gif'


// ----------------------------------------------------------------------
// This section of code preloads the images you named in the Pic[] array
// above, so images will be ready as soon as the page opens.

var p = Pic.length
var preLoad = new Array()
var i = 0;
for (i = 0; i < p; i++){
     preLoad[i] = new Image()
     preLoad[i].src = Pic[i]
}


function switchImage(whichImage,imageNumber){
   document.images[whichImage].src = preLoad[imageNumber].src
}


