function tmt_stopScroll() {
    if (tmt_scrollalo) {
        clearTimeout(tmt_scrollalo);
    }
}

function scrollcyr(cyril, dx, dy, vel) {
//pour netscape 4+
    if (document.layers) {
        turi = document.layers[cyril];
        var cl = turi.clip.left;
        var ct = turi.clip.top;
        var cr = turi.clip.right;
        var cb = turi.clip.bottom;
        var l = turi.left;
        var t = turi.top;
        if (cl + dx < 0) {
            dx = -cl;
        } else {
            if (ct + dy < 0) {
                dy = -ct;
            }
        }
        turi.clip.left = cl + dx;
        turi.clip.top = ct + dy;
        turi.clip.right = cr + dx;
        turi.clip.bottom = cb + dy;
        turi.top = t - dy;
        turi.left = l - dx;
    } 
	
//pour netscape 6

    else if (document.getElementById){
			turi = document.getElementById(cyril).style;
			 if (turi.clip) {
			    var clipv = turi.clip.split("rect(")[1].split(")")[0].split(" ");
                var ct = parseInt(clipv[0]);
                var cr = parseInt(clipv[1]);
                var cb = parseInt(clipv[2]);
                var cl = parseInt(clipv[3]);
        		var l = parseInt(turi.left);
        		var t = parseInt(turi.top);
				
            }

            if (cl + dx < 0) {
                dx = -cl;
            } else {
                if (cr + dx > turi.width) {
                    dx = turi.width - cr;
                }
            }
            if (ct + dy < 0) {
                dy = -ct;
            } else {
                if (cb + dy > turi.height) {
                    dy = turi.height - cb;
                }
            }
            ncl = cl + dx +"px";
            nct = ct + dy +"px";
            ncr = cr + dx +"px";
            ncb = cb + dy +"px";
            turi.top = t - dy;
            turi.left = l - dx;
            eval("turi.clip = 'rect(' + nct + ' ' +  ncr + ' ' + ncb + ' ' + ncl +')'");
			
	}
//pour ie4+ jusqu'à 5 
	else if (document.all)  {

       
            turi = eval("document.all." + cyril + ".style");
            if (turi.clip) {
                var clipv = turi.clip.split("rect(")[1].split(")")[0].split("px");
                var ct = Number(clipv[0]);
                var cr = Number(clipv[1]);
                var cb = Number(clipv[2]);
                var cl = Number(clipv[3]);
                var l = turi.pixelLeft;
                var t = turi.pixelTop;
				
            }
            if (cl + dx < 0) {
                dx = -cl;
            } else {
                if (cr + dx > turi.pixelWidth) {
                    dx = turi.pixelWidth - cr;
                }
            }
            if (ct + dy < 0) {
                dy = -ct;
            } else {
                if (cb + dy > turi.pixelHeight) {
                    dy = turi.pixelHeight - cb;
                }
            }
            ncl = cl + dx;
            nct = ct + dy;
            ncr = cr + dx;
            ncb = cb + dy;
            turi.pixelTop = t - dy;
            turi.pixelLeft = l - dx;
            eval("turi.clip = 'rect(' + nct + ' ' +  ncr + ' ' + ncb + ' ' + ncl +')'");
       
    }

//fin du script
    tmt_scrollalo = setTimeout("scrollcyr('" + cyril + "'," + dx + "," + dy + "," + vel + ")", vel);
}



//--> ------ fin script pour le scroll -------------
