var alte_id = 'leer';
var timeout_id = 0;
var timeout_hide = 'leer';
function show_mitarbeiterfoto(id)
{
  if (timeout_id)
  {
  	window.clearTimeout (timeout_id);
	hide_mitarbeiterfoto_timeout(timeout_hide);
  }
  id2 = id + '_name';
  id3 = id + '_tel';
  document.getElementById(id).style.display = 'inline';
  document.getElementById(id2).style.color = '#22337b';
  document.getElementById(id3).style.color = '#22337b';
  document.getElementById('mitarbeiter').style.display = 'none';
}

function hide_mitarbeiterfoto_timeout(id)
{
  timeout_id = 0;
  id2 = id + '_name';
  id3 = id + '_tel';
  document.getElementById(id).style.display = 'none';
  document.getElementById(id2).style.color = '#888888';
  document.getElementById(id3).style.color = '#888888';  
  document.getElementById('mitarbeiter').style.display = 'inline';   
}

function hide_mitarbeiterfoto(id)
{
  if (timeout_id)
  {
  	window.clearTimeout (timeout_id);
	hide_mitarbeiterfoto_timeout(timeout_hide);
  }
  timeout_hide = id;
  timeout_id = window.setTimeout ('hide_mitarbeiterfoto_timeout("'+id+'")',500);
}

function show_mitarbeiterfoto_noimage(id)
{
  id2 = id + '_name';
  id3 = id + '_tel';
  document.getElementById(id2).style.color = '#22337b';
  document.getElementById(id3).style.color = '#22337b';   
  document.getElementById('mitarbeiter').style.display = 'none';  
}

function hide_mitarbeiterfoto_noimage(id)
{
  id2 = id + '_name';
  id3 = id + '_tel';
  document.getElementById(id2).style.color = '#888888';
  document.getElementById(id3).style.color = '#888888'; 
  document.getElementById('mitarbeiter').style.display = 'inline'; 
}

function show_galeriebild(id){
  if(alte_id != id && alte_id != 'leer'){
	document.getElementById(alte_id).style.display = 'none';
  }
  document.getElementById(id).style.display = 'inline'; 
  alte_id = id;
}

function switch_anfahrt(name)
{
	e = document.getElementById('anfahrt');
	if (name == 0)
	{
		if (e.src.indexOf ('in') > 0) name = 'out';
		else name = 'in';
	}
	e.src = 'img/anfahrt_zoom' + name + '.jpg';
}
