var lastHoveredRow = null;

function overRow(e)
{
    lastHoveredRow = $(this);
    $(this).addClass("yellow-hover");   
}

function outRow(e)
{
    $(this).removeClass("yellow-hover"); 
    lastHoveredRow = null;
}

function overLink(e)
{
    $('tr.mainContentGridRow').removeClass("yellow-hover"); 
    $(this).addClass("yellow-hover"); 
}

function outLink(e)
{
    $(lastHoveredRow).addClass("yellow-hover");  
    $(this).removeClass("yellow-hover"); 
}

$(document).ready(function(){
    //add focus/blur highlight to text fields
    $('input:text,textarea').bind("focus", function(){
        $(this).addClass("focusedText");
    }).bind("blur", function(){
        $(this).removeClass("focusedText");
    })
    //focus on defaultFocus field if present
    $('input.defaultFocus,textarea.defaultFocus').focus();
});
