var restoreBgColor = null;

function menuEffects()
{
    $('#nav.content li#current').css('borderColor', '#3593E3');
    $('#nav.home li#current').css('backgroundColor', '#FFFFFF');
    
    $('#nav.content li').mouseout
    (
        function()
        {
            if ($(this).attr('id') != 'current')
            {
                $(this).css('borderColor', '#FFFFFF');
            }
        }
    );

    $('#nav.content li').mouseover
    (
        function()
        {
            $(this).css('borderColor', '#3593E3');
        }
    );

    $('#nav.home li').mouseout
    (
        function()
        {
            if ($(this).attr('id') != 'current')
            {
                $(this).css('backgroundColor', restoreBgColor);
                restoreBgColor = null;
            }
        }
    );

    $('#nav.home li').mouseover
    (
        function()
        {
            if ($(this).attr('id') != 'current')
            {
                if (!restoreBgColor)
                {
                    restoreBgColor = $(this).css('backgroundColor');
                }

                $(this).css('backgroundColor', '#FFFFFF');
            }
        }
    );
}

$(function()
{
    setTimeout('menuEffects()', 100);
});