
var Mes;
var Pos = 125, DPos = 35;
function MoveText() {
    Mes = E("message").innerHTML.replace(/<br.*?>/ig, "\n").replace(/<.*?>/g, "").split(/\n/);
    E("message").innerHTML = "";
    for (var i = 0; i < Mes.length; i++) {
        var m = document.createElement("div");
        m.id = "mes" + i;
        m.setAttribute("className", "Message");
        m.setAttribute("class", "Message");
        var mm = Mes[i], t = ['<table class="inmkes"><tr>'];
        for (var j = 0; j < mm.length; j++)
            t.push('<td>' + mm.charAt(j) + '</td>');
        t.push('</tr></table>');
        m.innerHTML = '<table class="inmes">' + t.join('') + '</div>';
        E("toparea").appendChild(m);
        E("mes" + i).style.top = (Pos += DPos) + "px";
    }
    Show.Next = [
        function() { E("topimage").style.bottom = "42px"; Show.Init(E("mes1"), 350); },
        function() { E("topimage").style.bottom = "85px"; Show.Init(E("mes2"), 500); },
        function() { E("topimage").style.bottom = "127px"; Show.Init(E("mes3"), 400); },
        function() { E("topimage").style.bottom = "170px"; }
    ];
    Show.Init(E("mes0"), 400, 1);
}

function Show() {
    var p;
    with (Show) {
        Element.style.width = (Width += WidthStep) + "px";
        if (Width < Max)
            setTimeout(Show, Speed);
        else if (Next[p = Position++])
            Next[p]();
    }
}
Show.Position = 0;
Show.Init = function(e, m, s) {
    Show.Element = e;
    Show.Width = 0;
    if (m != null)
        Show.Max = m;
    if (s != null)
        Show.Speed = s;
    Show();
};
Show.WidthStep = UA.Firefox ? 5 : (UA.MSIE && D.documentMode >= 8) ? 8 : 2;
