// Nav Switch JS file for http://2007.gogrove.com

//function to show or hide the 'apartment button' subnavigation based on where the user is in the site.
//this function corresponds to the onMouseOver element on the apartment navigation button.
function ShowAptNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('aptsubNav').style.display='';
		document.getElementById('subNav').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['aptsubNav'].style.display='';
		document.all['subNav'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['aptsubNav'].style.display='';
		document.layers['subNav'].style.display='';
	}
}

//this function hides the 'apartment button' subnavigation when not active
//this allows the standard subnavigation to become visible again
function HideAptNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('aptsubNav').style.display='none';
		document.getElementById('subNav').style.display='block';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['aptsubNav'].style.display='none';
		document.all['subNav'].style.display='block';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['aptsubNav'].style.display='none';
		document.layers['subNav'].style.display='block';
	}
}

//this function shows the home page (city) navigation when the GROVE button is rolled over
function ShowHomeNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('navContainer').style.display='';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['navContainer'].style.display='';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['navContainer'].style.display='';
	}
}

//this function hides the home page (city) navigation when the navigation is rolled off of
function HideHomeNav() {
	if (document.getElementById) {
	// this is the way the standards work
		document.getElementById('navContainer').style.display='none';
	} else if (document.all) {
	// this is the way old msie versions work
		document.all['navContainer'].style.display='none';
	} else if (document.layers) {
	// this is the way nn4 works
		document.layers['navContainer'].style.display='none';
	}
}

////this function shows the home page (city) navigation when the GROVE button is rolled over
//function ShowHomeNav() {
//	if (document.getElementById) {
//	// this is the way the standards work
//		document.getElementById('navContainernew').style.display='';
//	} else if (document.all) {
//	// this is the way old msie versions work
//		document.all['navContainernew'].style.display='';
//	} else if (document.layers) {
//	// this is the way nn4 works
//		document.layers['navContainernew'].style.display='';
//	}
//}
//
////this function hides the home page (city) navigation when the navigation is rolled off of
//function HideHomeNav() {
//	if (document.getElementById) {
//	// this is the way the standards work
//		document.getElementById('navContainernew').style.display='none';
//	} else if (document.all) {
//	// this is the way old msie versions work
//		document.all['navContainernew'].style.display='none';
//	} else if (document.layers) {
//	// this is the way nn4 works
//		document.layers['navContainernew'].style.display='none';
//	}
//}
