(function() {
    var m = document.uniqueID && document.compatMode && !window.XMLHttpRequest && document.execCommand;
    try {
        if (!!m) m("BackgroundImageCache", false, true)
    } catch(oh) {};
})();

$(function() {
    $('.menu_pane ul li a').bind('mouseenter', function() {
        $(this).animate({backgroundColor: '#d4c400'}, 500);
    }).bind('mouseleave', function() {
        $(this).stop(1).animate({backgroundColor: '#101952'}, 300, function() {
            $(this).css({backgroundColor: 'transparent'});
        });
    });

    $('ul.events li a').each(function() {
        $.data(this, 'bgcolor', $(this).css('backgroundColor'));
    }).bind('mouseenter', function() {
        $(this).queue(function() {
            $(this).animate({backgroundColor: '#ffee44'}, 100);
            $(this).animate({backgroundColor: '#a08f0b'}, 500);
            $(this).dequeue();
        });
    }).bind('mouseleave', function() {
        $(this).queue(function() {
            $(this).animate({backgroundColor: $.data(this, 'bgcolor')}, 300);
            $(this).dequeue();
        });
    });
});