<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<META HTTP-EQUIV="expires" CONTENT="Sat, 11 Sep 1976 08:00:00 GMT">
        <title>Messaggio</title>
<script language="JavaScript">
var altezza = 60;
var larghezza = 0;
var delay = 150;
var speed=3
var vecchio = "0";
var stopScroll = false;
var stopScrollCliente = false;

function init()
{
        scrollit();
        // verificaScroll();
}

function resetta()
{
        var vecchio = "0";
        stopScroll = false;
        init();
}

function verificaScroll()
{
        if (parseInt(vecchio) == parseInt(document.getElementById("corpo").style.top))
                {
                        stopScroll = true;
                        setTimeout("resetta();",delay*2);
                }
        else
                {
                        vecchio = document.getElementById("corpo").style.top;
                        setTimeout("verificaScroll();",delay*2);
                }
}

function scrollit()
{
        if (!stopScroll)
                {
                        if (document.layers)
                                {
                                        if (parseInt(document.corpo.top) >= ((altezza)*(-1)))
                                                {
                                                        document.corpo.top -= speed;
                                                        setTimeout("scrollit();",delay);
                                                }
                                        else
                                                {
                                                        document.corpo.top = altezza;
                                                        scrollit();
                                                }
                                }
                        else
                                {
                                        if (parseInt(document.getElementById("corpo").style.top) >= ((altezza)*(-1)))
                                                {
                                                        if (document.all)
                                                                document.getElementById("corpo").style.top = (parseInt(document.getElementById("corpo").style.top)-speed) + "px";
                                                        else
                                                                document.getElementById("corpo").style.top = (parseInt(document.getElementById("corpo").style.top)-speed) + "pt";
                                                        setTimeout("scrollit();",delay);
                                                }
                                        else
                                                {
                                                        if (document.all)
                                                                document.getElementById("corpo").style.top = altezza + "px";
                                                        else
                                                                document.getElementById("corpo").style.top = altezza + "pt";
                                                        scrollit();
                                                }
                                }
                }
}

function controlloScroll()
{
        stopScroll = !stopScroll;
        if (!stopScroll)
                {
                        init();
                }
                
}
</script>
</head>
<body onload="init();" bgcolor="#FFFFFF">
<div id="corpo" style="margin:3;position:absolute;top:80px;font-family:Arial;font-size:11px;color:#333333;" onclick="controlloScroll();">
Non si riscontrano problemi sulla rete.
</div>

</body>
</html>