function JQReadyFunction() {
    var isMouseOver = false;
    $('table#main_menu').mouseover(function() { isMouseOver = true; });
    $('table#main_menu').mouseout(function() { isMouseOver = false; });
    $('table#main_menu').hover(function() {
        setTimeout(function() {
            if (isMouseOver) {
                $('table#main_menu tr.irow').animate({opacity: 'show'}, 'slow');
            }
        }, 600);
    }, function() {
        $('table#main_menu tr.irow').animate({opacity: 'hide'}, 'fast');
    });

    $('table#main_menu tr .col1').hover(function() {
        $('table#main_menu tr td.col1').css('background-color', '#cef');
    }, function() {
        $('table#main_menu tr td.col1').css('background-color', '#bde');
    });
    $('table#main_menu tr .col2').hover(function() {
        $('table#main_menu tr td.col2').css('background-color', '#cef');
    }, function() {
        $('table#main_menu tr td.col2').css('background-color', '#bde');
    });
    $('table#main_menu tr .col3').hover(function() {
        $('table#main_menu tr td.col3').css('background-color', '#cef');
    }, function() {
        $('table#main_menu tr td.col3').css('background-color', '#bde');
    });
    $('table#main_menu tr .col4').hover(function() {
        $('table#main_menu tr td.col4').css('background-color', '#cef');
    }, function() {
        $('table#main_menu tr td.col4').css('background-color', '#bde');
    });
    $('table#main_menu tr .col5').hover(function() {
        $('table#main_menu tr td.col5').css('background-color', '#cef');
    }, function() {
        $('table#main_menu tr td.col5').css('background-color', '#bde');
    });
    $('table#main_menu tr .col6').hover(function() {
        $('table#main_menu tr td.col6').css('background-color', '#cef');
    }, function() {
        $('table#main_menu tr td.col6').css('background-color', '#bde');
    });
}
