// ******* focus

onload=function(i,l){
	l=document.links
	for(i=0;i<l.length;i++)
	l[i].onfocus=lFocus
}
function lFocus(){if(window.aFocus)this.blur()}
document.onmousedown=function(){
	aFocus=1;setTimeout('aFocus=0',10)
}



var obrazek=null;
//
function pokazObrazek(path,title,sizeX,sizeY) {
	//if(obrazek && !obrazek.closed) obrazek.close();
	obrazek=window.open("_blank","obrazek","width="+sizeX+",height="+(sizeY+21)+",location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no,alwaysRaised=true,left=1,top=1,screenX=1,screenY=1");
	with(obrazek) {
		document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
		document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">');
		document.writeln('<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />');
		document.writeln('<title>'+title+'</title>');
		document.writeln('<link href="css/bcc_popup.css" rel="stylesheet" type="text/css" /></head><body>');
		document.writeln('<img alt="'+title+'" width="'+sizeX+'" height="'+sizeY+'" src="'+path+'" onclick="self.close();" />');
		document.writeln('<div id="zamknij" onclick="self.close();">Zamknij</div>');
		document.writeln('</body></html>');
		document.close();
	}
	obrazek.focus();
	return false;
}


function bookmark(anchor){
	if(window.external)
	{
		window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
		return false;
	}
	return true;
}

function openWindow(theURL,winName,features) { 
	window.open(theURL,winName,features);
}