
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Verdana, sans-serif";
HM_PG_FontSize = 7;
HM_PG_FontBold = 1;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#FFFFFF";
HM_PG_FontColorOver = "#FFFFFF";
HM_PG_BGColor = "#FFFFFF";
HM_PG_BGColorOver = "#FFFFFF";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "black";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#FFFFFF";
HM_PG_ImageSrc = "/layout/troj.gif";
HM_PG_ImageSrcLeft = "/layout/trojl.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =1;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

//HM_a_TreesToBuild = [1,2];



function lay_reDo(){window.location.reload()}
function lay_resize(){setTimeout("document.onresize=lay_reDo()",500)}
//setTimeout(document.onresize=lay_reDo(),500);
function bkoresp(){
window.name="myparent";
open('/adresy/swia.xml','okienko','width=631, height=325, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}
function bkorespe(){
window.name="myparent";
open('/english/adresy/swia.xml','okienko','width=631, height=325, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

function popup_pko(){

window.name="myparent";

window.open('/pupup/popup.xml','po_p_in','width=217,height=172,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');

}

function popup_konkurs(){

window.name="myparent";
window.open('/konkurs/pytania.xml','po_p_up_konkurs','width=300,height=372,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
//window.location.reload();
}


function popup_konkursepko(){

window.name="index";

	window.open('/pupup/konkurs.xml','po_p_up','width=217,height=272,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');

}


function popup_pko01(){
window.name="myparent";

var licz = Math.random();

var data = new Date();
	var sekundy = data.getSeconds();
	var dziel = sekundy / 2;
	var doll = Math.floor(dziel);
	var roznica = sekundy - (doll * 2);

if (licz < 0.50)
{

if (roznica == 0)
	{
	window.open('/pupup/chat.xml','po_p_up','width=217,height=272,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
	else
	{
	window.open('/pupup/popup02.xml','po_p_up','width=217,height=272,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}

	
}
else 
{

	

	if (roznica == 0)
	{
	window.open('/pupup/popup.xml','po_p_up','width=217,height=272,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}
	else
	{
	window.open('/pupup/popup01.xml','po_p_up','width=217,height=272,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	}


}
}


function pokaz(id)
{
	str = new String();
	str=document.URL;
if ((str.indexOf("?"))>-1)
	{
	if (document.URL.indexOf('id=')>0)
		{
			if (str.indexOf("&",str.indexOf("id=")+1)>-1)
				{
				str=str.substring(0,str.indexOf("id="))+str.substring(str.indexOf("&",str.indexOf("id=")+1)+1)+"&";
				}
			else str=str.substring(0,str.indexOf("id="));

			str+="id="+id;
		} else str+="&id="+id;
	}
else
	{
	str=str+'?id='+id;
	}
	document.location=str;
}
function drukuj()
{
	str = new String();
	str=document.URL;
if ((str.indexOf("?"))>-1)
	{
	if (document.URL.indexOf('id=')>0)
		{
			if (str.indexOf("&",str.indexOf("id=")+1)>-1)
				{
				str=str.substring(0,str.indexOf("id="))+str.substring(str.indexOf("&",str.indexOf("id=")+1)+1)+"&";
				}
			else str=str.substring(0,str.indexOf("id="));

			str+="id=0";
		} else str+="&id=0";
	}
else
	{
	str=str+'?id=0';
	}
	document.location=str;
}

function wyslijdo(plik)
{
if(window.open(plik + '?url=' + document.URL,'_blank','width=631,height=320,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'));
}

function polec(polecajacy)
{
if(window.open('polec.xml','_blank','width=631,height=320,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'));
}
