/**
 * \file vogelzivi.js
 * \brief Contains vogelzivi wegpage common JavaScript functionality.
 * \author Maurice Bleuel, bleuelmedia
 */

function showInfoText(element_id)
{
	//Check if target element exists
	try { obj = $('#'+element_id); do_show = true; }
	catch(err) { do_show = false; }
	
	//Fade other elements out
	$('div[ref=linkInfo]').each(function(i, div)
	{
		if (div.id != element_id)
			$(div).fadeOut('fast');
	});
	
	//Fade the element in
	if (do_show == true)
		$(obj).fadeIn('slow');
}

$(function()
{
	//Fade-in header text elements, if they exist...
	try
	{
		$('#headerText').fadeIn(5000);
	} catch(err) { }
	
	try
	{
		setTimeout('$(\'#headerText2\').fadeIn(2500)', 2500);
	} catch(err) { }
});
