var settings = {
    messages : 'messages'
};

function init(e)
{
    // check if the messages element exists and is visible,
    // and if so, apply the highlight effect to it
    var messages = $(settings.messages);

    if (messages && messages.visible()) {
        new Effect.Highlight(messages, {
            delay:0.1,
            duration:1,
            fps:20,
            transition:Effect.Transitions.linear,
            startcolor:'#444444',
            endcolor:'#111111'
        });
    }
}

Event.observe(window, 'load', init);

