// JavaScript Document
function switch1(div) {
if (document.getElementById('one')) {
	var option=['one','two','three','four', 'five'];
	for(var i=0; i<option.length; i++) { 
		obj=document.getElementById(option[i]);
		obj.style.display=(option[i]==div)? "block" : "none"; 
		}
	}
}

window.onload=function () {
switch1('one');
backColor1('numOne');
backColor2('numOne');
}



function backColor2(cat) {
	document.getElementById(cat).style.backgroundImage="url(images/nav_on.gif)";
	document.getElementById(cat).style.color="#ffffff";
}

function backColor1(dog) {
	var allNums=['numOne', 'numTwo', 'numThree', 'numFour', 'numFive'];
	for (i=0; i<allNums.length; i++) {
		if (allNums[i]!=dog) {
		document.getElementById(allNums[i]).style.backgroundImage="url(images/nav_off.gif)";
		document.getElementById(allNums[i]).style.color="#ffffff";
		}
		else {
		document.getElementById(dog).style.backgroundImage="url(images/nav_on.gif)";
		document.getElementById(dog).style.color="#ffffff";
		}
	}
}

//.style.backgroundImage = 'url(http://cache.directorym.com/webdeveloper/_ImagesGeneral/blank.gif)';


