var CurrentNavigationID = "notSet"
var CurrentContentID = "notSet"

function getObj(name){
  if (document.getElementById)
  {
    return document.getElementById(name);
  }
  else if (document.all)
  {
    return document.all[name];
  }
  else if (document.layers)
  {
    return document.layers[name];
  }
  else return false;
}

function changeNavigation(NavigationID,ContentID) {
//change the current selection back
	if(CurrentNavigationID != 'notSet'){		
		var x = getObj(CurrentNavigationID);
		x.style.backgroundColor = '#3379C8';
		//var y = getObj(CurrentContentID);
		//y.style.visibility = 'hidden';
	}
//highlight the current item and display the info	
	var x = getObj(NavigationID);
	x.style.backgroundColor = '#45C932';
	var y = getObj(ContentID);
	//y.style.visibility = 'visible';
	var w = getObj('CategoryDescription');
	w.innerHTML =  y.innerHTML
//set the current time
	CurrentNavigationID = NavigationID;		 
	CurrentContentID = ContentID;		 
    return true; 
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

