// JavaScript Document


$(document).ready(function(){

 $('.top').click(function(){
		$('html, body').animate({scrollTop:0}, 2000);
		return false;
	});
	
	// Help k Loginu
		if ($('div.bgrOverAll').height() != null) {
			//alert(winH());
	  	$('div.bgrOverAll').css("height",winH());
	  	$('div.bgrOverAll .FlashOver').css("margin-top",(winH()/2-160));
	  	$('div.bgrOverAll .FlashOver img').click(function () { 
      	$('div.bgrOverAll').hide(); 
    	});
	  	 
			}

// měření výšky
function winH() {
   if (window.innerHeight)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerHeight;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientHeight;
   else if
   (document.body && document.body.clientHeight)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientHeight;
   else
      return null;
}

});


