// This javascript module requires the dab_common.js module

var aboutTabList = new Array();
aboutTabList[aboutTabList.length] = "aboutTab::CompanyInfo";
aboutTabList[aboutTabList.length] = "aboutTab::Photographers";

function enableAboutTab (tabId, resetHash)
{
  for ( var i=0; i < aboutTabList.length; i++ )
  {
	switchTabs( tabId, aboutTabList[i] );
  }
  if (resetHash)
  {
  	setHash( tabId );
  }
}


function setHash (tabId)
{
	var hash = tabId.substr(tabId.lastIndexOf(":")+1);
	if (typeof hash != "undefined" && hash != "")
	{
		if (hash == "CompanyInfo")
		{
			location.hash = "";
		}
		else
		{
			location.hash = hash;
		}
	}
}


function selectInitialTab()
{
	var hash = location.hash;
	if (typeof hash != "undefined" && hash != "")
	{
		if (hash == "#Photographers" || hash == "#DaveBouvier" || hash == "#PaulSivley")
		{
			enableAboutTab( "aboutTab::Photographers", false );
		}
	}
}
