function my(lang) {

	var popup;
	blnScrl = 0;
	blnResizable = 0;
	intPadding = 0;        // dla obu krawedzi
	intScreenWidth = screen.availWidth;
	intScreenHeight = screen.availHeight;

	intPopupWidth = 640;//parseInt(intPicWidth) + 10;
	intPopupHeight = 480 + 46;//parseInt(intPicHeight) + 30;
	
	intPopupLeft = Math.round( ( intScreenWidth - intPopupWidth ) / 2 );
	intPopupTop = Math.round( ( intScreenHeight - intPopupHeight ) / 2 );

	strParam = "menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars="+blnScrl+",resizable="+blnResizable+",";
	strParam += "width="+intPopupWidth+",height="+intPopupHeight+",top="+intPopupTop+",left="+intPopupLeft;

	if (lang=="EN")
	{
		popup = window.open('yczarnykot_EN.html','console', strParam);
	}
	
	if (lang=="IT")
	{
		popup = window.open('yczarnykot_IT.html','console', strParam);
	}
	if (lang=="PL")
	{
		popup = window.open('yczarnykot.html','console', strParam);
	}

	popup.resizeTo(intPopupWidth, intPopupHeight);  


	//oldURL = strPicURL;

	//checkWindow(popup);
	popup.czarnykot();

}

