
jQuery(document).ready(function() {
jQuery(".menuoverstate").each(function(i) {

        preload_image = new Image();
        preload_image.src = this.src.replace(".gif", "_o.gif");

        jQuery(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");

            });

    }
        );
});