<!--
var swfMenu = 'false';
var swfQuality = 'auto';

function BuildFlash(path, w, h, bckgColor, vars, name, live) {
    var str = '';
    var wmode = 'transparent';
    if ((path != '') && (path != undefined))  {
        str = '<object type="application/x-shockwave-flash" data="'+ path +'" width="'+ w +'" height="'+ h +'" id="'+ name +'">' +
        '<param name="movie" value="'+ path +'"/>' +
        '<param name="quality" value="' + swfQuality + '"/>' +
        '<param name="bgcolor" value="'+ bckgColor +'"/>' +
        '<param name="wmode" value="'+ wmode +'"/>' +
        '<param name="menu" value="' + swfMenu + '"/>' +
        '<param name="flashvars" value="' + vars + '"/>' +
        '<param name="allowScriptAccess" value="sameDomain" />' +
        '</object>';
    }
    document.write(str);
}

function BuildFlashOld(path, w, h, bkg, vars, name, quality, live, winmode) {
var str;
if (path!='') str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"  WIDTH="'+ w +'" HEIGHT="'+ h +'" id="'+ name +'" ALIGN="">' + '<param name="movie" value="'+ path +'"><param name="quality" value="'+ quality +'"><param name="bgcolor" value="'+ bkg +'"><param name="wmode" value="'+ winmode +'"><param name="menu" value="false">' + '<param name="flashvars" value="' + vars + '">' + '<EMBED src="'+ path +'" FlashVars="' + vars + '" quality="'+ quality +'" bgcolor="'+ bkg +'" WMODE="'+ winmode +'" WIDTH="'+ w +'" HEIGHT="'+ h +'" NAME="'+ name +'" swLiveConnect='+ live +' ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' + '</object>' ;
  return str;
}
function escapeURI(str) {
  str = str.replace(/=/g, '%3D'); 
  str = str.replace(/&/g, '%26');
  str = str.replace(/"/g, '%22');
  return str;
}
function test() {
  alert('test');
}
function getQuerryStringByName(name){
  url = new String(window.location);
  var xx=String(document.location.search);
  str_tmp = url.split("?");
  
  if( str_tmp.length < 2 ) return "";
  querry = str_tmp[1];
  
  if (xx.match(/%20\w+=/)) // haszcz
  { 
    element = querry.split(escape("&"));
  }
  else // bez haszcza
  {
    element = querry.split("&");
  }  
  i=0;
  while(i<element.length){
      e = element[i];
      _item =  e.split("=");
      if(_item[0] == name){
        return _item[1];
      }
      i++;
  }
  return "";
}


var posx = 0;
var posy = 0;
var newObj;
function tooltip(txt,e) {
 createDiv();
 mousexy(e);
 o=document.getElementById('tip');
 o.style.left=posx+'px';
 o.style.top=posy+'px';
 o.innerHTML=txt;
 o.style.display='block'; 
}
function mousexy(e)
{
 if (!e) var e = window.event;
 if (e.pageX || e.pageY)
 {
  posx = e.pageX;
  posy = e.pageY;
 }
 else if (e.clientX || e.clientY)
 {
  posx = e.clientX + document.body.scrollLeft;
  posy = e.clientY + document.body.scrollTop;
 }
 posx += 15; posy += 5;
}
function createDiv(){
 if (!document.getElementById('tip')){
  newObj = document.createElement("div");
  newObj.setAttribute('id','tip');
  document.body.appendChild(newObj);
 }
}
function hideTooltip() {
 document.getElementById('tip').style.display='none';
 document.getElementById('tip').innerHTML='';
}

var actNewsID = '';



function popup(url, width, height){
 ScrWidth = 640; ScrHeight = 480;
 if (window.screen) {ScrWidth = window.screen.width; ScrHeight = window.screen.height}
 PosX = Math.round((ScrWidth - width)/2);
 PosY = Math.round((ScrHeight - height)/2);
 Window = window.open(url, 'Powiekszenie', 'left='+PosX+',top'+PosY+',width='+width+',height='+height);
 Window.focus();
}

function popup2(url, width, height){
 ScrWidth = 640; ScrHeight = 480;
 if (window.screen) {ScrWidth = window.screen.width; ScrHeight = window.screen.height}
 PosX = Math.round((ScrWidth - width)/2);
 PosY = Math.round(((ScrHeight - height)/2));
 Window = window.open(url, 'Powiekszenie', 'left='+PosX+',top='+PosY+',width='+width+',height='+height);
 Window.focus();
}


function okno(nazwa,szer,wys)
 {
 window.open(nazwa,'','toolbar=no,scrollbars=yes,resizable=no,status=no,location=no,directories=no,width='+eval(szer)+',height='+eval(wys)+',menubar=no')
 }

var pWin = null;
function popUpZT(src,x,y) {
    if (src == '') return;
    var str = '<ht'+'ml><he'+'ad><title>K2</title></he'+'ad><bo'+'dy bgcolor="#FFFFFF" topmargin="0" leftmargin="0"><a href="javascript:self.close()"><img src='+src+' border="0"></a><br><br><center><a href="javascript:self.close()" style="font: bold 10px Tahoma; color: #666666; text-decoration: underline;">zamknij</a></center></bo'+'dy></ht'+'ml>';
 if (!pWin || pWin.closed) {
  pWin = window.open('','pWin','dependent=yes,resizable=no,scrollbars=no,statusbar=no,toolbar=no,width='+eval(x)+',height='+eval(y)+',menubar=no,left=0,top=0')
 }
 pWin.document.open();
 pWin.document.write(str);
 pWin.document.close();
 pWin.focus();
}

function gemius_parameters() {
 var dt=new Date();
 var url=new String();
 var d=document;
 url+='&tz='+dt.getTimezoneOffset();
 if (d.URL) url+='&href='+escape(d.URL.substring(0,299));
 var t=typeof Error;
 if(t!='undefined') {
  eval("try { if (top && top.document && top.document.referrer) { url+='&ref='+escape(top.document.referrer.substring(0,299))} else if(d.referrer) { url+='&ref='+escape(d.referrer.substring(0,299))} } catch(exception) { }")
 } else if(d.referrer) {
  url+='&ref='+escape(d.referrer.substring(0,299));
 }
 if (screen) {
  var s=screen;
  if (s.width) url+='&screen='+s.width+'x'+s.height;
  if (s.colorDepth) url+='&col='+s.colorDepth;
 }
 return url;
}
function Gemius(gemius_identifier) {
    if (gemius_identifier == "") return;
    if (document.location.protocol == 'https:') {
    var gemius_url=new String('https://pro.hit.gemius.pl/_'+(new Date()).getTime()+'/redot.gif?l=11&id=');
    } else {
    var gemius_url=new String('http://pro.hit.gemius.pl/_'+(new Date()).getTime()+'/redot.gif?l=11&id=');
    }
    gemius_url+=gemius_identifier;
    gemius_url+=gemius_parameters();
    gemius_image = new Image(1,1);
    gemius_image.src = gemius_url;
}

function goEvent(){
 l = window.location.href.substr().split('?');
     if (l[1]=='kartka') popup2("/kartka_swiat05.html", 640, 480);
}
//-->