
    var myTimeOut = 0;
    var TimeOutValue = 0;

    // getElementById egyszerűsítve
    function $div(id) { return document.getElementById(id); }

    // láthatóvá tesz egy divet
    function showDiv(_id) {
      $div(_id).style.display = 'block';
    }

    // elrejt egy divet
    function hideDiv(_id) {
      $div(_id).style.display = 'none';
    }

    if (navigator.appName.indexOf("Internet Explorer") > -1) { isIE = true; } else { isIE = false; }
	
	      function showpopup() {
          var myWidth = 0, myHeight = 0, top = 0, left = 0;
					
					if( typeof( window.innerWidth ) == 'number' ) {
						//Non-IE
						myWidth = window.innerWidth;
						myHeight = window.innerHeight;
					} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
						//IE 6+ in 'standards compliant mode'
						myWidth = document.documentElement.clientWidth;
						myHeight = document.documentElement.clientHeight;
					} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
						//IE 4 compatible
						myWidth = document.body.clientWidth;
						myHeight = document.body.clientHeight;
					}
					
					top = document.body.scrollTop + 100;
					
					$("popup3").style.left = Math.round((myWidth-816)/2) + 'px';
          $("popup3").style.top = '-400px';
          $("popup3").style.display = 'block';
          movingpopup3(-400, top);
        }
				
        function movingpopup3(currtop, maxtop) {
          if (currtop >= maxtop) return;
              currtop += 20;
                  $("popup3").style.top = currtop + 'px';
                  setTimeout("movingpopup3("+currtop+", "+maxtop+")", 1);
        }
	
