<!--
//*** 01_scr2.js
var DeltaY = 60;
var HysY   = 20;
function ScrWin() {
	//zruseno !!	 
	return;	 

    //window.status = 'Top_0: '+Top_0+'   offsetHeight: '+document.body.offsetHeight+' clientHeight: '+document.body.clientHeight+'  scrollTop: '+document.body.scrollTop+'  scrollHeight: '+document.body.scrollHeight+'  event.offsetY: '+event.offsetY+'  event.clientY: '+event.clientY;
    //window.status = document.elementFromPoint(event.x,event.y);
    //return;
    MouseTagName = document.elementFromPoint(event.x, event.y).tagName;
    if (BrT == 2) {
        if ((event.clientY >= (document.body.clientHeight - DeltaY)) && (event.clientY <= (document.body.clientHeight - HysY)) && (MouseTagName != "BODY")) {
            if (Moving == 1) return;
            Scroll_Y(1);
        } else if (((event.clientY <= DeltaY) && (event.clientY >= HysY)) && (MouseTagName != "BODY")) { 
            if (Moving == 1) return;
            Scroll_Y(-1);
        } else {
            Scroll_Y(0);
        }
    } else if (BrT == 3) {
        //if (window.pageY >= (window.innerHeight - DeltaY)) {
        //    if (Moving == 1) return;
        //    Scroll_Y(1);
        //} else if (window.pageY <= DeltaY) { 
        //    if (Moving == 1) return;
        //    Scroll_Y(-1);
        //} else {
        //    Scroll_Y(0);
        //}
    }
}

//*** 02_scr2.js
var TimScroll    = 100;
var ID_TimScroll = null;
var Moving    = 0;
var Direction = 0;
var dY = dY0  = 4;
var K         = 1.2;
var Top_0     = null;
function Scroll_Y(Direction) {
    if (Moving == 0) Moving = 1;
    if ((Direction == 0) || (document.body.scrollTop == Top_0)) {
        window.clearTimeout(ID_TimScroll);
        Moving = 0;
        dY     = dY0;
        Top_0  = null;
    } else {
        Top_0 = document.body.scrollTop;
        dY = dY * K;
        window.scrollBy(0,dY*Direction);
        ID_TimScroll = setTimeout("Scroll_Y("+Direction+");", TimScroll);
    }
}
//-->

