
/*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");

            });

    }
        );

    $(".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");

            });

    }
        );
        
        
   /*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');
    
});

