﻿function HighlightMessage() {
    $(function() {
        $(".messageBoxError").animate({ backgroundColor: "#D10D0E", color: "#FFFFFF" }, 1500);
        $(".messageBoxSuccess").animate({ backgroundColor: "#D4FDBF" }, 2000);
    });
}

function ShowWorkingScreen() {
    $("#working").css("display", "block")
        .width($(window).width())
        .height($(window).height())
        .fadeTo(0, 0.6);
}

function HideWorkingScreen() {
    $("#working").css("display", "block").width(0).height(0).fadeTo(0, 0);
}

function HighlightSuccessfulAdd() {
    // Redo any buttons - Ajax requests will jack them up
    $(".button").hover(function() {
        $(this).animate({ color: "#365CC1", backgroundColor: "#DDD5C7" }, "fast");
    }, function() {
        $(this).animate({ color: "#000000", backgroundColor: "#EFE8DB" }, "fast");
    });
    // animate the background
    $(".SuccessBox").animate({ backgroundColor: "#D4FDBF" }, 1500);
}