var buttonNames = new Array("howitworks","whoweare","home");

var buttons = new Array(3);

function PicButton() { 
   this.off = new Image(200,50); 
   this.over = new Image(200,50);
} 

function initializePics() {
	for (ndx = 0; ndx < buttonNames.length; ndx = ndx + 1) {
		buttons[ndx] = new PicButton();
		buttons[ndx].off.src = "images/" + buttonNames[ndx] + ".gif";
		buttons[ndx].over.src = "images/" + buttonNames[ndx] + "over.gif";
	}
}

function mouseOff(name,num) {
	document.images[name].src = buttons[num].off.src;
	return true;
}

function mouseOver(name,num) {
	document.images[name].src = buttons[num].over.src;
	return true;
}

initializePics();

