$(document).ready(init);
function init() {
    $('.navt td').hover(function() {
        ClearNavClass(this);
        $(this).addClass('headerColor');
    }, function() {
        ClearNavClass(this);
        $(this).addClass('bgColor');
    });

    $('.navt td').click(function() {
        window.location.href = $(this).find('a').attr('href');
    })
}
function ClearNavClass(that) {
    $(that).removeClass('bgColor');
    $(that).removeClass('headerColor');
}