// JavaScript Document

szerokosc = 730;
wysokosc = 103;

function ustaw()
{
	//alert(document.body.scrollWidth);
	element = document.getElementById('menu1');
	obj = document.getElementById('naglowek');
	element.style.left = obj.offsetLeft + 'px';
	element.style.top = obj.offsetTop + 'px';
	//element.style.left = ((document.body.scrollWidth) - szerokosc)/2;
	//element.style.top = 14;
	element.style.visibility = 'visible';
}

function init()
{
	ustaw();
	window.onresize = ustaw;
}

function okno(url, szer, wys, full, pos_x, pos_y, center, resizable, scroll, status)
{
	if (full)
	{
		wys=screen.availheight;
		szer=screen.availwidth;
	}
	
	if (center)
	{
		pos_y = (screen.availheight - wys)/2;
		pos_x = (screen.availwidth - szer)/2;
	}
	hWnd = window.open(url,'','toolbar=no,scrollbars='+scroll+',resizable='+resizable+',status='+status+',location=no,directories=no,width='+szer+',height='+wys+',menubar=no,screenY=0,screenX=0,top='+pos_y+',left='+pos_x+',hotkeys=no')
	if ((document.window != null) && (!hWnd.opener))
		hWnd.opener = document.window;

}
