/**
*   @version $Id$
*/

/**--------------------------------------------------------------------
*	ponizej kod dla menu rozwijanego
*---------------------------------------------------------------------*/

	var chosenMenu = -1;
	var menuTimeout = 0;

	/**
	*	Opis: funkcja zarzadza wyswietlaniem gornego menu
	*/
	function showMenu( aNr, aCount, aType, isEx )
	{
		clearTimeout( menuTimeout );
		num = 0;
		while( num < aCount )
		{
			if( isEx == 0 )
			{
				document.getElementById( "menuDivTop"+num+"" ).style.display = "none";
				document.getElementById( "visTab"+num+"" ).style.color = "#000000";
			}
			else
			{
				document.getElementById( "visTabX"+num+"" ).style.color = "#000000";
			}
			document.getElementById( "visTab"+num+"" ).style.background = "none";
			num++;
		}
		if( aType == 1 )
		{
			if( isEx == 0 )
			{
				document.getElementById( "menuDivTop"+aNr+"" ).style.display = "block";
				document.getElementById( "visTab"+aNr+"" ).style.backgroundImage.src = 'images/default/bg_menu_x_a.gif';
				document.getElementById( "visTab"+aNr+"" ).style.color = "#e60000";
			}
			else
			{
				document.getElementById( "visTab"+aNr+"" ).style.backgroundColor = "#ff6300";
				document.getElementById( "visTabX"+aNr+"" ).style.color = "#ffffff";
			}
		}
		else if( ( aType == 0 ) && ( chosenMenu >= 0 ) )
		{
			if( isEx == 0 )
			{
				document.getElementById( "menuDivTop"+chosenMenu+"" ).style.display = "block";
				document.getElementById( "visTab"+chosenMenu+"" ).style.backgroundColor = "#f5f5f5";
				document.getElementById( "visTab"+chosenMenu+"" ).style.color = "#e60000";
			}
			else
			{
				document.getElementById( "visTab"+chosenMenu+"" ).style.backgroundColor = "#ff6300";
				document.getElementById( "visTabX"+chosenMenu+"" ).style.color = "#ffffff";
			}
		}
	}

	/**
	*	Opis: funkcja zarzadza wyswietlaniem gornego menu
	*/
	function hideMenu( aNr, aCount, aType, isEx )
	{
		menuTimeout = setTimeout( "showMenu( "+aNr+", "+aCount+", "+aType+", "+isEx+" )", 200 );
	}

/**-------------------------------------------------------------------*/

