

function subNavOff(thisNum)
{	
var oldSubNav = selectedSubNav;
if (thisNum != oldSubNav)
	{
	document.getElementById('SubNav' + thisNum).style.borderColor='white';
	}
}
 /*------------------------------------------------------------------------------------*/
function subNavOn(thisNum)
{	
document.getElementById('SubNav'+ thisNum).style.borderColor='#441671';
}
 /*------------------------------------------------------------------------------------*/
function subNavChange(newSubNav)
{	
	var Nav = selectedNav;
	var oldSubNav = selectedSubNav;
	
	if (Nav == 7 || Nav == 8)
		{
		selectedSubNav = 1;
		frames['portcontent'].location.href = portfoliopages[Nav][newSubNav];
		clientSideInclude('wrapper2', imgpages[Nav][newSubNav]);
		}
	else
		{
		if (document.getElementById('SubNav'+ oldSubNav) != null) {
			document.getElementById('SubNav'+ oldSubNav).style.borderColor='white';
			document.getElementById('SubNav'+ oldSubNav).style.value='subnavimg';
		}
		document.getElementById('SubNav'+ newSubNav).style.borderColor='#441671';
		document.getElementById('SubNav'+ newSubNav).style.value='subnavimgon';
		selectedSubNav = newSubNav;
		frames['portcontent'].location.href = portfoliopages[Nav][newSubNav];
		if(imgpages[Nav][newSubNav] != ""){
			clientSideInclude('wrapper2', imgpages[Nav][newSubNav]);
		}
		}
}
/*------------------------------------------------------------------------------------*/
