Panel.prototype = {
	dividlist: null,
	
	show: function( id )
	{
		for( var i = 0; i < this.dividlist.length; i++ )
		{
			var div = document.getElementById( this.dividlist[ i ] );
			if( div )
			{
				if( this.dividlist[ i ] == id )
				{
					Style.setAttribute( div, "display", "" );
				} else {
					Style.setAttribute( div, "display", "none" );
				}
			}
		}
	}
}

function Panel( id )
{
	this.dividlist = [];
	var container = document.getElementById( id );
	if( ! container ) alert( "Érvénytelen id: " + id );
	for( var i = 0; i < container.childNodes.length; i++ )
	{
		if( container.childNodes[i].id )
			this.dividlist.push( container.childNodes[i].id );
	}
}
	
