<!--

function zmien(skad,gdzie) {
  if(navigator.userAgent.substring(0,11) != "Mozilla/2.0") {
    skad = eval(skad + ".src");
    document [gdzie].src = skad;
  }
}

function showWindow(imgDir, imgName) {
  szerokosc = 510;
  wysokosc = 334;
  popup_bk = window.open("/_popup_img.php?d="+imgDir+"&n="+imgName,'Polecam','toolbar=0,location=0,directories=0,scrollbars=0,status=1,menubar=0,resizable=no,width='+szerokosc+',height='+wysokosc);
  return false;
}

function showWindow2(imgDir, imgName) {
  szerokosc = screen.height;
  wysokosc = screen.width;
  popup_bk = window.open("/_popup_img.php?max=1&d="+imgDir+"&n="+imgName,'Polecam','toolbar=0,location=0,directories=0,scrollbars=1,status=1,menubar=0,resizable=no,width='+szerokosc+',height='+wysokosc);
  return false;
}

function showVideoWin(fragment) {
  szerokosc = 600;
  wysokosc = 350;
  popup_video = window.open("/_popup_video.php?fragment="+fragment,'Video','toolbar=0,location=0,directories=0,scrollbars=1,status=1,menubar=0,resizable=no,width='+szerokosc+',height='+wysokosc);
  return false;
}


var y1 = 1;   // change the # on the left to adjuct the Y co-ordinate
var x1 = 420;   // change the # on the left to adjuct the Y co-ordinate
(document.getElementById) ? dom = true : dom = false;

function hideIt() {
  if (dom) {
	document.getElementById("layerpopup").style.visibility='hidden';
  }
  if (document.layers) {
	document.layers["layerpopup"].visibility='hide';
  } 
}

function showIt(bigimage) {
  if (dom) {
	document.getElementById("layerpopup").style.visibility='visible';
	document.getElementById("layerimage").innerHTML = '<img src="/images/'+bigimage+'" border="0">';
  }
  if (document.layers) {
	document.layers["layerpopup"].visibility='show';
	document.layers["layerimage"].innerHTML = '<img src="/images/'+bigimage+'" border="0">';
  }
}

function placeIt() {
  if (dom && !document.all) {
    document.getElementById("layerpopup").style.left = window.pageXOffset + (window.innerWidth - (window.innerWidth-x1))
	document.getElementById("layerpopup").style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))
  }
  if (document.layers) {
    document.layers["layerpopup"].left = window.pageXOffset + (window.innerWidth - (window.innerWidth-x1))
    document.layers["layerpopup"].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))
  }
  if (document.all) {
    document.all["layerpopup"].style.left = document.body.scrollLeft + (document.body.clientWidth - (document.body.clientWidth-x1));
    document.all["layerpopup"].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));
  }
  window.setTimeout("placeIt()", 200); }

// --> 
