  function zoomPhoto(url) {
    var Bg = new FSite2.Layer('layer', true, 'fsimage');
    var Bg2 = new FSite2.Layer('layer2');
    Bg2.fullScreen();
    img=document.createElement('img');
    img.src=url;
    img.onclick=function () {
     Bg.remove();
     Bg2.remove();
    }
    img.style.border='1px solid #000';
    img.style.margin='5px';
    img.style.cursor='pointer';
    Bg.object.appendChild(img);
    img.onload=function() {
      Bg.show();
    }
  }


window.SwitcherStatus = false;

function GalleryDescSwitch(button) {
  if((Gallery = document.getElementById("photos_")) && (Desc = document.getElementById("dane_opis"))) {
    if(window.SwitcherStatus) {
      Gallery.style.display = "none";
      Desc.style.display = "";
      window.SwitcherStatus = false;
      button.style.backgroundPosition = "0px 0px";
    } else {
      Desc.style.display = "none";
      Gallery.style.display = "";
      window.SwitcherStatus = true;
      button.style.backgroundPosition = "0px -23px";
    }
  }
  button.blur();
}

window.SelectedSSMenu = "";

function ShowSSMenu(id) {
  if(El = document.getElementById(id)) {
    if(window.SelectedSSMenu != id) {
      if(El_ = document.getElementById(window.SelectedSSMenu)) {
        El_.style.display = "none";
      }
    }
    El.style.display = "";
    window.SelectedSSMenu = id;
  }
}

function HideSSMenu(id) {
  if(El = document.getElementById(id)) {
    El.style.display = "none";
  }
}

window.onload = function() {

}

