// JavaScript Document
NS6=(document.getElementById&&!document.all); IE=(document.all);
function ustalobjekt(obj) { if (NS6) return document.getElementById(obj); else if (IE) return document.all[obj] }

function zerujwys(){ if(NS6){ ustalobjekt('strony').style.height=100; }}

function glowna(){ustalobjekt('strony').style.height=0; }
function specyfikacja(){ zerujwys()}
function menu(){zerujwys()  }
function imprezy(){ zerujwys() }
function dojazd(){ zerujwys() }

// 

 URL = 'glowna.html';
  var dec = (typeof decodeURIComponent == 'function') ? decodeURIComponent : decode;
  function resize_strony() {
    var strony = document.getElementById('strony');
    if(window.frames['strony'] && window.frames['strony'].document) {
      window.frames['strony'].window.scroll(0,0);
      var body = window.frames['strony'].document.body;
      if(body) {
        strony.style.height = (body.scrollHeight || body.offsetHeight) + 'px';
      }
    }
  }
  src_checked = false;
  function check_src() {
    if(src_checked) return;
    src_checked = true;
    var strony = document.getElementById('strony');
    var urlPos = location.search.indexOf("iframeUrl=");
    if(urlPos > -1) {
      var src = dec(location.search.substring(urlPos+10));
    } 
	else {
      var src = URL;
    }
    if(src != strony.src) strony.src = src;
  }

