var moveY = -200;
var timerID;
var topmargin = 0; // top margin
function showTopMessageBox() {
    clearTimeout(timerID);
    timerID = setTimeout("showTopMessageBox()",25);
    if (moveY < -10) {
        moveY = moveY*0.93;
        document.all.topMessageBox.style.pixelTop = moveY+ topmargin;
    } else {
        clearTimeout(timerID);
        timerID = setInterval('hideTopMessageBox()',10000); // 10000 = 10sec
    }
}
function hideTopMessageBox() {
    clearTimeout(timerID);
    timerID = setTimeout("hideTopMessageBox()",25);
    if (moveY > -200) {
        moveY = moveY-10;
        document.all.topMessageBox.style.pixelTop = moveY;
    } else{
        clearInterval(timerID);
        checkIndividualChat(); 
    } 
}
function putTopMessageBox(text){
    document.all.topMessageBox.innerHTML = text;
}
//timerID = setInterval('showTopMessageBox()',1000);