   function showPic (whichpic, zoompic) { 
      if (document.getElementById) { 
         document.getElementById('proimg').src = whichpic; 
         document.getElementById('proimg_href').href = zoompic;
         return false; 
      } else { 
          return true; 
      } 
   }
        
   function showById(id) {
      el = document.getElementById(id);
      var display = el.style.display ? '' : 'none';
      el.style.display = display;
   }
        
/**
* Przeladowanie div na stronie
*/
   function PageDivReload(link,div) {
      $(document).ready(function() {
         $('#'+div).load(link);
      });
   }

//nowe okno o okreslonych wymiarach
function popup(plik,sze,wys)
{
 x = Math.round((screen.width/2)-(sze/2));
 y = Math.round((screen.height/2)-(wys/2));
 window.open(plik,'','toolbar=no,scrollbars=yes,resizable=yes,status=yes,menubar=no,location=no,directories=no,width='+eval(sze)+',height='+eval(wys)+',left='+eval(x)+',top='+eval(y)+'')
}

/**
* Przelaczanie stylu div
*/
function styleswitch(id, switch1, switch2) {
   var div = document.getElementById(id);
   if (div==null) {
      return false;
   }
   if (div.className==switch1) {
      div.className=switch2;
   } else {
      div.className=switch1;
   }
}
