  function fix() {
    if (self.innerHeight)
      document.body.style.height=self.innerHeight-185-20;
  }

	over = '';
	function pokaz_menu(element) {
		object = document.getElementById("menu_" + element);
		if (object) {
			if (over)
				schowaj_menu(over);
			object.style.top = (getPosY('mainmenu') + 30) + "px"
 			object.style.left = getPosX(element) + "px";
			object.style.visibility = "visible";
			over = element;
		}
	}
	function schowaj_menu(element) {
		if (over != element) {
			object = document.getElementById("menu_" + element);
			if (object) {
				object.style.visibility = "hidden";
			}
		} else
			setTimeout("schowaj_menu('" + element + "')", 25);
	}

function show_banner() {
	with (document.getElementById("banner")) {
		style.left = getPosX("content");
		style.top = getPosY("content");
		style.width = document.getElementById("content").offsetWidth; //content.width;
		style.height = document.getElementById("content").offsetHeight;  //content.height;
		document.getElementById("banner").innerHTML = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="100%" HEIGHT="100%" id="flash" ALIGN=""> <PARAM NAME=movie VALUE=images/lato2_podstrona.swf><PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src=images/lato2_podstrona.swf quality=high bgcolor=#000000  WIDTH="100%" HEIGHT="100%" NAME="flash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';
		style.visibility = "visible";
	}
	setTimeout("hide_banner()", 2500);
}

function hide_banner() {
  document.getElementById("content").style.visibility = "visible";
	with (document.getElementById("banner")) {
		style.left = -1000;
		style.visibility = "hidden";
	}
}

// Pobranie obiektu o identyfikatorze id

function getObj(id) {
  if (document.getElementById)
    return document.getElementById(id);
  if (document.all)
    return document.all[id];
  return document.layers[id];
}

// Odczytanie pozycji x obiektu o identyfikatorze id

function getPosX(id) {
  var curleft = 0;
  obj = getObj(id);
  if(obj) {
    if( document.getElementById || document.all ) {
      while( obj.offsetParent ) {
        curleft += obj.offsetLeft;
        obj = obj.offsetParent;
      }
    } else
      if( document.layers )
        curleft += obj.x;
  }
  return curleft;
}

// Odczytanie pozycji y obiektu o identyfikatorze id

function getPosY( id ) {
  var curtop = 0;
  obj = getObj( id );
  if( obj ) {
    if( document.getElementById || document.all ) {
      while( obj.offsetParent ) {
        curtop += obj.offsetTop;
        obj = obj.offsetParent;
      }
    } else
      if( document.layers )
        curtop += obj.y;
  }
  return curtop;
}

