<!--
          function setCookie(name, value, expires, path, domain, secure) {
          var curCookie = name + "=" + escape(value) +
              ((expires) ? "; expires=" + expires.toGMTString() : "") +
              ((path) ? "; path=" + path : "") +
              ((domain) ? "; domain=" + domain : "") +
              ((secure) ? "; secure" : "");
          document.cookie = curCookie;
        }
        function getCookie(name) {
          var dc = document.cookie;
          var prefix = name + "=";
          var begin = dc.indexOf("; " + prefix);
          if (begin == -1) {
            begin = dc.indexOf(prefix);
            if (begin != 0) return null;
          } else
            begin += 2;
          var end = document.cookie.indexOf(";", begin);
          if (end == -1)
            end = dc.length;
          return unescape(dc.substring(begin + prefix.length, end));
        }
        function getScrollY()
        {
              var y = 0;
              if (typeof window.scrollY !== "undefined") return window.scrollY;
              if (typeof document.body.scrollTop !== "undefined") y = document.body.scrollTop;
              if (typeof document.documentElement.scrollTop !== "undefined") {
                 if (document.documentElement.scrollTop > y) y = document.documentElement.scrollTop;
              }
              return y;
        }
        function recordY2cookie()
        {
	    setCookie("scrollY", "", null, "/");
	    setCookie("scrollY", getScrollY(), null, "/");
        }
        function restoreY2cookie()
        {
            var y = getCookie("scrollY");
            if (y && window.scrollTo) window.scrollTo(0, y);
        }
	function startYregistering()
	{
	    restoreY2cookie();
	    recordY2cookie();
//	    window.setInterval(recordY2cookie, 800);
	}
        window.onload  = startYregistering;
//-->