/* SVN $Id: main.js 96 2009-05-08 14:09:24Z jeroen $ */
/* SVN $URL: file:///T:/SOURCE_SVN/Start_Website/httpdocs/js/main.js $ */

/*############################################################################*/
/*# Initialize */

function Main_Initialize()
{
  var oForm = WHITE_GetElementFlex('search');
  if ('object' == typeof oForm)
  {
    WHITE_InitFieldExplanation('searchfield', '[zoekterm]');
    WHITE_AddEvent(oForm, 'submit', WHITE_FormRemoveEplanationsEvent);
  }
}

if ('function' == typeof WHITE_AddBodyLoadFunction)
{
  WHITE_AddBodyLoadFunction(Main_Initialize);
}

/*# /Initialize */
/*############################################################################*/

function showHideTeamPerson(teamperson)
{
	var aTeamPersons = aTeamPersons = WHITE_GetElementsByClass('employeeholder','employees_sub');
	var oTeamPerson = WHITE_GetElementFlex('employees_sub'+teamperson);
	
	for (var iTP=0; iTP<aTeamPersons.length; iTP++)
	{
		var oTeamPersontmp = WHITE_GetElementFlex(aTeamPersons[iTP].id);
		oTeamPersontmp.style.display = 'none';
	}
	
	if (oTeamPerson)
	{
		oTeamPerson.style.display = 'block';
	}
}