// JavaScript Document


var mvctmo = 0;
function MVC_settimeout() {
  clearTimeout(mvctmo);
  mvctmo = setTimeout("MVC_timeout()", 5000);
}

function MVC_timeout() {
  MM_swapImage('nplanning','','/images/navPlanning.gif',
	'ngetinvolved','','/images/navGetInvolved2.gif',
	'ncalendar','','/images/navCalendar2.gif',
	'nforums','','/images/navForums2.gif',
//	'nworkrooms','','/images/navWorkrooms.gif',
	1);
  MM_showHideLayers('n2planning','','hide',
	'n2getinvolved','','hide',
	'n2workrooms','','hide')
  MVC_resetnav();
}

function MVC_resetnav() {
  if (window.location.pathname.substr(0, 9) == "/planning") {
	MM_swapImage('nplanning', '', '/images/nav-Planning.gif');
	MM_showHideLayers('n2planning', '', 'show');
	if (window.location.pathname == "/planning/general.html") {
		MM_swapImage('n2general', '', '/images/nav2-General2.gif');
	}
	if (window.location.pathname == "/planning/housing.html") {
		MM_swapImage('n2housing', '', '/images/nav2-Housing2.gif');
	}
	if (window.location.pathname == "/planning/water.html") {
		MM_swapImage('n2water', '', '/images/nav2-Water2.gif');
	}
	if (window.location.pathname == "/planning/transportation.html") {
		MM_swapImage('n2trans', '', '/images/nav2-Transportation.gif');
	}
	if (window.location.pathname == "/planning/windenergy.html") {
		MM_swapImage('n2wind', '', '/images/nav2-Wind.gif');
	}
  }
  if (window.location.pathname.substr(0, 12) == "/getinvolved") {
	MM_swapImage('ngetinvolved', '', '/images/nav-GetInvolved2.gif');
	MM_showHideLayers('n2getinvolved', '', 'show');
	if (window.location.pathname == "/getinvolved/steering.html") {
		MM_swapImage('n2steering', '', '/images/nav2-Steering.gif');
	}
  }
  if (window.location.pathname == "/calendar.html") {
	MM_swapImage('ncalendar', '', '/images/nav-Calendar2.gif');
  }
  if (window.location.pathname.substr(0, 6) == "/forum") {
	MM_swapImage('nforums', '', '/images/nav-Forums2.gif');
  }
  if (window.location.pathname.substr(0, 10) == "/workrooms") {
	MM_swapImage('nworkrooms', '', '/images/nav-Workrooms.gif');
	MM_showHideLayers('n2workrooms', '', 'show');
	if (window.location.pathname == "/planning/current.html") {
		MM_swapImage('currentplan', '', '../images/plan2current.gif');
	}
	if (window.location.pathname == "/planning/comprehensive.html") {
		MM_swapImage('comprehensive', '', '../images/plan2comprehensive.gif');
	}
	if (window.location.pathname == "/planning/economic.html") {
		MM_swapImage('economic', '', '../images/plan2economic.gif');
	}
	if (window.location.pathname == "/planning/gis.html") {
		MM_swapImage('gis', '', '../images/plan2gis.gif');
	}
	if (window.location.pathname == "/planning/management.html") {
		MM_swapImage('management', '', '../images/plan2management.gif');
	}
	if (window.location.pathname == "/planning/openspace.html") {
		MM_swapImage('openspace', '', '../images/plan2openspace.gif');
	}
	if (window.location.pathname == "/planning/ponds.html") {
		MM_swapImage('ponds', '', '../images/plan2ponds.gif');
	}
	if (window.location.pathname == "/planning/transportation.html") {
		MM_swapImage('transportation', '', '../images/plan2transportation.gif');
	}
	if (window.location.pathname == "/planning/water.html") {
		MM_swapImage('water', '', '../images/plan2water.gif');
	}
  }
}

