
/*overstate*/
$(document).ready(function () {
    $(".menuoverstate").each(function (i) {

        preload_image = new Image();
        preload_image.src = this.src.replace(".jpg", "_o.jpg");

        $(this).hover(
            function () {
                if (this.src.indexOf("_o.jpg") == -1) {
                    this.src = this.src.replace(".jpg", "_o.jpg");
                }

            },

            function () {
                this.src = this.src.replace("_o.jpg", ".jpg");

            });

    }
        );

        //images hover text

        $(".image-wide-text, .image-text").hide();
        $(".image-wide, .products").hover(function () {
            $(this).children(".image-wide-text, .image-text").stop(true, true).slideToggle();
        });

    $(".menuoverstate2").each(function (i) {

        preload_image = new Image();
        preload_image.src = this.src.replace(".gif", "_o.gif");

        $(this).hover(
            function () {
                if (this.src.indexOf("_o.gif") == -1) {
                    this.src = this.src.replace(".gif", "_o.gif");
                }

            },

            function () {
                this.src = this.src.replace("_o.gif", ".gif");

            });

    }
        );


    jQuery("#searchnav").hover(function () {
        jQuery("#searchcontainer").show();
    });

    jQuery('#search').css("display", "block");

    /*overstates*/

    jQuery(".quicklinks img, .gallery img, #gallery-small img").hover(function () {
        jQuery(this).stop().animate({ opacity: 0.5 }, 200);
    },
        function () {
            jQuery(this).stop().animate({ opacity: 1.0 }, 200);
        });

    jQuery("table#pricing tbody tr:odd, table#specs tbody tr:odd, table#offer tbody tr:odd").addClass('odd');

});

