navIndex = new Array('carpet','custom','hardwood','runners','rugs','vinyl')
imagePrefix = "nav_"
currentPage = ""
filePath = ""

function preLoadImages() {
	imgArray = navIndex
	for (x=0;x<imgArray.length;x++) {
		thisImage = eval("document." + imgArray[x] + "Img")
		thisImage.name = imgArray[x] + "Img"
		thisImage.defaultState = filePath + "images/" + imagePrefix + imgArray[x] + ".gif"
		thisImage.overState = filePath + "images/" + imagePrefix + imgArray[x] + "_over.gif"
		thisImage.onmouseover = function () { this.src=this.overState }
		thisImage.onmouseout = function () { if (currentPage + "Img" != this.name ) this.src=this.defaultState }
	}
}
