function MM_reloadPage(init)
{
	//przeladowanie okienka dla NN
	if (init==true) with (navigator)
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4))
		{
			document.MM_pgW=innerWidth;
			document.MM_pgH=innerHeight;
			onresize=MM_reloadPage;
		}
	}
  	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function smallwindow1(urldest)
{
	leftpos=screen.width-300;
	window.open(urldest,'playwindow','width=300,height=430,left='+leftpos+',top=100');
	blur();
}

function smallwindow2(urldest)
{
	leftpos=screen.width-320;
	window.open(urldest,'playwindow','width=320,height=290,left='+leftpos+',top=100');
}

function popup_window(urldest,sizex,sizey)
{
	leftpos=screen.width-sizex;
	window.open(urldest,'playwindow','width='+sizex+',height='+sizey+',left='+leftpos+',top=100');
}


function popup_window_sms(urldest,sizex,sizey)
{
	leftpos=screen.width-sizex;
	window.open(urldest,'playwindow','width='+sizex+',height='+sizey+',left='+leftpos+',top=100');
}


function window_popup_open()
{
window.open("popup/index.html", "",
"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,directories=no,location=no,width=800,height=600")
}


function window_popup_open2()
{
window.open("popup/recommend_friend.php", "",
"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,directories=no,location=no,width=320,height=600")
}


function bigwindow(urldest)
{
	window.open(urldest,'playwindow','width=800,height=500,scrollbars=yes,left=0,top=0');
}

function resize_window(sizex,sizey)
{
	window.resizeTo(sizex,sizey);
}

function move_window(posx,posy)
{
	window.moveTo(posx,posy);
}

function addBookmark()
{
	if (window.external)
	{
		external.AddFavorite(location.href);
	}
	else
	{
		alert("Twoja przeglądarka nie obsługuje tej funkcji.\nMusisz samodzielnie dodać nas do ulubionych.");
	}
}
