// Nav Switch JS file for Kickstand Studio
// 01.11.08 by Cory Perry - Yourmark.com


//this function hides both subnav lists on initial load of page
function HideSubNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('portNav').style.display='none';
		document.getElementById('infoNav').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['portNav'].style.display='none';
		document.all['infoNav'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['portNav'].style.display='none';
		document.layers['infoNav'].style.display='none';
	}
}

function HideSubNavInfo() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('infoNav').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['infoNav'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['infoNav'].style.display='none';
	}
}

function HideSubNavPort() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('portNav').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['portNav'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['portNav'].style.display='none';
	}
}

//function to show or hide the 'portfolio' subnavigation on rollover.
//this function corresponds to the onMouseOver element on the portfolio navigation link.
function ShowPortNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('portNav').style.display='';
		document.getElementById('infoNav').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['portNav'].style.display='';
		document.all['infoNav'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['portNav'].style.display='';
		document.layers['infoNav'].style.display='none';
	}
}

//function to show or hide the 'info' subnavigation on rollover.
//this function corresponds to the onMouseOver element on the info navigation link.
function ShowInfoNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('infoNav').style.display='';
		document.getElementById('portNav').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['infoNav'].style.display='';
		document.all['portNav'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['infoNav'].style.display='';
		document.layers['portNav'].style.display='none';
	}
}

function ShowInfoNavPort() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('infoNav').style.display='';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['infoNav'].style.display='';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['infoNav'].style.display='';
	}
}

function ShowPortNavInfo() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('portNav').style.display='';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['portNav'].style.display='';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['portNav'].style.display='';
	}
}
