//globals
var imagePath	= "images/buttons/"

function loadImgs() {
	
	var imgArray 	= new Array('about','people','product')
	var imgObjArray = new Array(imgArray.length * 2) // double the length for 'on' and 'off' imgs
	

	var count;
	
	for (count=0;count < imgArray.length;count++) {
		imgObjArray[count] = new Image();
		imgObjArray[count].src = imagePath + imgArray[count] + "2.gif"
	}
	
	for (count=0;count < imgArray.length;count++) {
		imgObjArray[count + imgArray.length] = new Image();
		imgObjArray[count + imgArray.length].src = imagePath + imgArray[count] + "1.gif"
	}
	
}

function swapImgs(imgName, type, mode ) {
	//image rollover swapping

		if (imgName != crntImage) {

			switch(mode) {
				case 'on':
					document.images[imgName].src = imagePath + imgName + "2.gif"
				break;
				
				case 'off':
					document.images[imgName].src = imagePath + imgName + "1.gif"
				break;
			}
		}
}
