
   function zobraz(id) {
      

      /*
      document.getElementById(id).style.display = "inline";
      
      document.getElementById(id).style.height = document.body.scrollHeight;  //nastavime vysku, dle dokumentu
      document.getElementById(id).style.width = document.body.clientWidth;
      
      document.getElementById(id+"-spacer").style.height = (document.body.scrollTop + (document.body.clientHeight / 2) - 200);
      */
      	$('#overlay').css({
				backgroundColor:	"#000",
				opacity:			0.8,
				width:				$(document).width(),
				height:				$(document).height()
			}).fadeIn();
			
      $("#"+id).width($(document).width()).height($(document).height()).fadeIn();
      $("#"+id+"-spacer").height(document.body.scrollTop + (($(window).height() - $("#"+id+"-text").height()) / 2));
      
      return false;
   }
   
   function skryt(id) {
      $("#"+id).fadeOut();
      			$('#overlay').fadeOut();//function() { $('#overlay').remove(); });
			// Show some elements to avoid conflict with overlay in IE. These elements appear above the overlay.
			$('embed, object, select').css({ 'visibility' : 'visible' });
      //document.getElementById(id).style.display='none';
      return false;
   }

