var menu_aktywne=0;

function ShowHideMenu(kogo)
{	var tt = document.getElementById(kogo);
	if(tt.style.display=='')
	{	tt.style.display='none';
	}
	else
	{	if(menu_aktywne)
		{	var tta = document.getElementById(menu_aktywne);
		    tta.style.display='none';
		}
		tt.style.display='';
		menu_aktywne=kogo;
	}
}

function __ShowPopupRoz(url,width,height) 
{	var okienko = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no,statusbar=no' );
}
function __ShowPopup(url) 
{	var okienko = window.open(url,"displayWindow",'width=300,height=300,resizable=1,scrollbars=no,menubar=no,statusbar=no' );
}
function Animuj(co)
{	var tt = document.getElementById(co);
	tt.src='gfx/bullet_ani.gif';
	
}
function DeAnimuj(co)
{	var tt = document.getElementById(co);
	tt.src='gfx/bullet.gif';
}
//dane dla menu
var menu_aktywne;
var TimerID;
function ZamknijMenu(co)
{	var div = document.getElementById('div_'+co);
	if(div)
		div.style.visibility='hidden';
	menu_aktywne=0;
}
function ShowMenu(co)
{	if(TimerID)
		clearTimeout(TimerID);
	if(menu_aktywne)
		menu_aktywne.style.visibility='hidden';	
	var div = document.getElementById('div_'+co);
	if(div)
		div.style.visibility='visible';
	menu_aktywne=div;
	TimerID=setTimeout("ZamknijMenu('"+co+"')",5000);
}
function RefreshMenu(co)
{	if(TimerID)
		clearTimeout(TimerID);
	var div = document.getElementById('div_'+co);
	menu_aktywne=document.getElementById('div_'+co);
}
function KillMenu(co)
{	if(TimerID)
		clearTimeout(TimerID);
	TimerID=setTimeout("ZamknijMenu('"+co+"')",500);
	var div = document.getElementById('div_'+co);
	menu_aktywne=document.getElementById('div_'+co);
}
