function preloadImages(){
	for(i=0;i<imgArray.length;i++){
		newImage[i] = new Image();
		newImage[i].src = imgArray[i];
	}
}

function showTab(index){
	var tempL = document.getElementById("tabL"+index);
	var tempClass = document.getElementById("tab"+index);
	var tempR = document.getElementById("tabR"+index);
	tempL.src="images/nav_onL.jpg";
	tempClass.className="navOn";
	tempR.src="images/nav_onR.jpg";
}
function hideTab(index){
	var tempL = document.getElementById("tabL"+index);
	var tempClass = document.getElementById("tab"+index);
	var tempR = document.getElementById("tabR"+index);
	tempL.src="images/nav_offL.jpg";
	tempClass.className="navOff";
	tempR.src="images/nav_offR.jpg";
}

