function getScroll(){
	if (self.pageYOffset) {
		scrollTop = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		scrollTop = document.documentElement.scrollTop;
	} else if (document.body) {
		scrollTop = document.body.scrollTop;
	}	
	return (scrollTop);
};


function winW() {
   if (window.innerWidth)
      return window.innerWidth;
   else if
   (document.documentElement &&
   document.documentElement.clientWidth)
      return document.documentElement.clientWidth;
   else if
   (document.body && document.body.clientWidth)
      return document.body.clientWidth;
   else
      return null;      
}


function getToLightbox(sender, args) {
	$("#podminky").fadeIn("normal");
	$("#podminky").css("left", (winW()/2)-250);
	$("#podminky").css("top", (getScroll()+60));
	return false;
}
	
function closeLightBox(sender, args) {
	$("#podminky").fadeOut("normal");
}

