function NavBar() {
}

NavBar.prototype.hideAll = function() 
{
  log('here in hideAll activeSlideShow is ' +activeSlideShow);
  
  if (activeSlideShow != undefined)
  {
	cleanupSlideShow();
  }
  
  Element.hide('interactiveTab');
  $('interactiveNav').removeClassName('current');
  Element.hide('mapTab');
  $('mapNav').removeClassName('current');
  Element.hide('viewerTab');
  $('viewerNav').removeClassName('current');
}

NavBar.prototype.interactive = function() {
	this.hideAll();
	Element.show('interactiveTab');
//	$('interactivePersonList').innerHTML = $('mapPersonList').innerHTML;
//	$('mapPersonList').innerHTML = "";
	$('interactiveNav').addClassName('current');
//	reloadCurrentPicture();
}

NavBar.prototype.map = function() 
{
	this.hideAll();
	//	$('mapPersonList').innerHTML = $('interactivePersonList').innerHTML;
//	$('interactivePersonList').innerHTML = "";
	Element.show('mapTab');
	$('mapNav').addClassName('current');
	configureMap();
	addMarkersToMap();
	populateMapPictureList();
}

NavBar.prototype.viewer = function() {
  this.hideAll();
  Element.show('viewerTab');
  $('viewerNav').addClassName('current');
}