var textArray = new Array();

textArray[1]='county/watershed_text.png';
textArray[2]='county/forest_text.png';
textArray[3]='county/soil_text.png';
textArray[4]='county/urban_text.png';
textArray[5]='county/development_text.png';
textArray[6]='county/schools_text.png';
textArray[7]='county/quality_text.png';
textArray[8]='county/distribution_text.png';
textArray[9]='county/wastewater_text.png';
textArray[0]='county/base_txt.png';
textArray[10]='';

divN=['d1','d2','d3','d4','d5','d6','d7','d8','d9'];

function showTemp(obj) {
var divName = obj;


if (document.getElementById){
	
	var contentImg = document.getElementById("countytext");
	
	if (contentImg.src == 'http://www.projectalbemarle.com/' + textArray[obj]) {
		
		if (document.getElementById('d'+obj).style.visibility == "visible") {
			contentImg.src = textArray[obj];
			}
		else {
			contentImg.src = textArray[0];
		}
		
	}
	else {
		if (document.getElementById('d'+obj).style.visibility == "hidden") {
			contentImg.src = textArray[0];
		}
		else {
			contentImg.src = textArray[obj];
		}
		
	}
	
	}
	
	else {
		if (document.layers){
			if (document.layers[divName].visibility == "show") {
				document.layers[divName].visibility = "hide";
			}
			else {
				document.layers[divName].visibility = "show";
			}
		}
	else{
		if (document.all(divName).style.visibility == "visible") {
			document.all(divName).style.visibility = "hidden";
		}
		else {
			document.all(divName).style.visibility = "visible";
		}
	}
	}
}