/**
 * Darstellung i-Button Info-Box
 */
function eteleonInfoLayer( )
{
	// Wieviel ms soll der Timeout laufen
	this.disappeardelay = 0;
	
	this.instance_name;
	this.delayhide;
	this.lastid;
	
	this.showLayer = function( id )
	{
		if ( this.lastid && id != this.lastid ) {
			this.hideLayer( this.lastid );
			this.lastid = id;			
		}
		
		this.clearHideLayer();
		e = document.getElementById( id );
		e.style.display = '';
	}
	
	this.hideLayer = function( id )
	{
		e = document.getElementById( id );
		e.style.display = 'none';
	}
	
	this.delayHideLayer = function( id )
	{
		this.delayhide = setTimeout(this.instance_name+".hideLayer('"+id+"')", this.disappeardelay)
	}	
	
	this.clearHideLayer = function()
	{
		if (typeof this.delayhide!="undefined")
			clearTimeout(this.delayhide)
	}	
}


function hideAllElementsAndShowOne( element_type, element_prefix, show_element ) 
{
	$(element_type + "[@id^=" + element_prefix + "]").each( function()
	{ 
		$('#' + this.id).hide();
	});
	
	if (show_element)
		$('#' + element_prefix + show_element).show();
}