jQuery(document).ready(function() {

    jQuery('a.one_liner').each(function() {
    if (jQuery(this).text() == 'Books' || jQuery(this).text() == 'Essentials'
        || jQuery(this).text() == 'Offers' || jQuery(this).text() == 'Sale-disabled') {
            jQuery(this).parent().parent().addClass('sale_line');
        }
    });

    jQuery('#headerMenuNav li').not('.sale_line').mouseenter(function() {
        var fx = new Fx.Styles($(this), { duration: 200, wait: false });
        fx.start({
            'background-color': '#CCCCCC', 'color': '#000000'
        });
    });

    jQuery('#headerMenuNav li').not('.sale_line').mouseleave(function() {
        var fx = new Fx.Styles($(this), { duration: 200, wait: false });
        fx.start({
            'background-color': '#FFFFFF', 'color': '#333333'
        });
    });

    jQuery('#headerMenuNavBottom a').mouseenter(function() {
        var fx = new Fx.Styles($(this), { duration: 200, wait: false });
        fx.start({
            'background-color': '#000000', 'color': '#CCCCCC'
        });
    });

    jQuery('#headerMenuNavBottom a').mouseleave(function() {
        var fx = new Fx.Styles($(this), { duration: 200, wait: false });
        fx.start({
            'background-color': '#FFFFFF', 'color': '#666666'
        });
    });

    if (jQuery('#rightLinksList li').length > 3) {
        jQuery('#headerMenuRightRight').addClass('up');
    }

    /*
    var list = jQuery('#headerMenuNavBottom li a');
    list.each(function(element) {
    var fx = new Fx.Styles(element, { duration: 200, wait: false });
    element.addEvent('mouseenter', function() {
    fx.start({
    'background-color': '#000000', 'color': '#CCCCCC'
    });
    });
    element.addEvent('mouseleave', function() {
    fx.start({
    'background-color': '#FFFFFF', 'color': '#666666'
    });
    });
    });

    var list = jQuery('.homepage-featured-item a');
    list.each(function(element) {
    var fx = new Fx.Styles(element, { duration: 200, wait: false });
    element.addEvent('mouseenter', function() {
    fx.start({
    'background-color': '#999999'
    });
    });
    element.addEvent('mouseleave', function() {
    fx.start({
    'background-color': '#CCCCCC'
    });
    });
    });

    var list = jQuery('.homepage-featured-item-row2 a');
    list.each(function(element) {
    var fx = new Fx.Styles(element, { duration: 200, wait: false });
    element.addEvent('mouseenter', function() {
    fx.start({
    'background-color': '#999999'
    });
    });
    element.addEvent('mouseleave', function() {
    fx.start({
    'background-color': '#CCCCCC'
    });
    });
    });

    var list = jQuery('.homepage-featured-item-double-stack p');
    list.each(function(element) {
    var fx = new Fx.Styles(element, { duration: 200, wait: false });
    element.addEvent('mouseenter', function() {
    fx.start({
    'background-color': '#999999'
    });
    });
    element.addEvent('mouseleave', function() {
    fx.start({
    'background-color': '#CCCCCC'
    });
    });
    });
    */
});
