// set variables for the clear.gif img and
// the red box for 3nav. We'll repeat these
// a lot.
var offArrow	= "/images/global/arrow.gif";
var onArrow		= "/images/global/arrow_on.gif";



// Create an array for all of the images who
// will be touched by the imageSwap functions.
var imagesoff = new Array();
imagesoff["arrow1"]		= offArrow;
imagesoff["arrow2"]		= offArrow;
imagesoff["arrow3"]		= offArrow;
imagesoff["arrow4"]		= offArrow;


// Create an array for all of the 'on' images who
// will be touched by the imageSwap functions.
var imageson = new Array();
imageson["arrow1"]		= onArrow;
imageson["arrow2"]		= onArrow;
imageson["arrow3"]		= onArrow;
imageson["arrow4"]		= onArrow;



// function to change a single image's
// source. tell it the name of img to
// be swapped and it it is going to
// the "on" or "off" state.
function imageSwap(img, state)
{
	var newImg = eval("images" + state + "[img]");
	eval("document." + img + ".src" + " = '" + newImg + "'");
}
