//  THE ORIGINAL CODE FOR THE FrameMainNew.htm news ticker WAS FOUND AT
//  http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

function loadDynamic() {
    if (ie || dom) {
//      SHOW MESSAGE 0 AND 1, THEN SET COUNTER TO MESSAGE 2
        document.writeln('<div id="first2"  style="position:absolute;width:'+sScrollerWidth+';left:0px;top:1px;">');
        document.write(aMessages[0]);
        document.writeln('</div>');
        document.writeln('<div id="second2" style="position:absolute;width:'+sScrollerWidth+';left:0px;top:0px;visibility:hidden">');
        document.write(aMessages[(aMessages.length==1) ? 0 : 1]);
        document.writeln('</div>');
        iMessage        = (aMessages.length > 2) ? 2 : 0;
    }

    if (window.addEventListener) {
        window.addEventListener("load", startScroll, false);
    } else if (window.attachEvent) {
        window.attachEvent("onload", startScroll);
    } else if (ie||dom) {
        window.onload   = startScroll;
    }
}

function loadStatic() {
    if (ie || dom) {
        document.write('<a class="side">DEZE MAAND</a><br>');

        if (aMessages.length > 3) {
//          SHOW LAST 3 MESSAGES STATICALLY
            for (iCount = aMessages.length - 3; iCount < aMessages.length; iCount++) {
                document.write(aMessages[iCount] + "<br>");
            }
        } else {
//          SHOW ALL MESSAGES STATICALLY
            for (iCount = 0; iCount < aMessages.length; iCount++) {
                document.write(aMessages[iCount] + "<br>");
            }
        }
    }
}

function move(whichdiv) {
    tdiv                = eval(whichdiv);

    if (parseInt(tdiv.style.top) > 0 && parseInt(tdiv.style.top) <= 5) {
        tdiv.style.top  = 0 + "px";
        setTimeout("move(tdiv)", sScrollerDelay);
        setTimeout("move2(divSecond2)", sScrollerDelay);
        return;
    }

    if (parseInt(tdiv.style.top) >= tdiv.offsetHeight * -1) {
        tdiv.style.top  = parseInt(tdiv.style.top) - 5 + "px";
        setTimeout("move(tdiv)", 50);
    } else {
        tdiv.style.top  = parseInt(sScrollerHeight) + "px";
        tdiv.innerHTML  = aMessages[iMessage];

        if (iMessage == aMessages.length - 1) {
            iMessage    = 0;
        } else {
            iMessage++;
        }
    }
}

function move2(whichdiv) {
    tdiv2               = eval(whichdiv);

    if (parseInt(tdiv2.style.top) > 0 && parseInt(tdiv2.style.top) <= 5) {
        tdiv2.style.top = 0 + "px";
        setTimeout("move2(tdiv2)", sScrollerDelay);
        setTimeout("move(divFirst2)", sScrollerDelay);
        return;
    }

    if (parseInt(tdiv2.style.top) >= tdiv2.offsetHeight * -1) {
        tdiv2.style.top = parseInt(tdiv2.style.top) - 5 + "px";
        setTimeout("move2(divSecond2)", 50);
    } else {
        tdiv2.style.top = parseInt(sScrollerHeight) + "px";
        tdiv2.innerHTML = aMessages[iMessage];

        if (iMessage == aMessages.length - 1) {
            iMessage    = 0;
        } else {
            iMessage++;
        }
    }
}

function startScroll() {
    divFirst2           = ie ? first2  : document.getElementById("first2");
    divSecond2          = ie ? second2 : document.getElementById("second2");
    move(divFirst2);
    divSecond2.style.top         = sScrollerHeight;
    divSecond2.style.visibility  = 'visible';
}