



////////////////////////////////////*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");

            });

    }
        );
});

$(document).ready(function() {
    $(".menuoverstate2").each(function(i) {

        preload_image = new Image();
        preload_image.src = this.src.replace("11.jpg", "12.jpg");

        $(this).hover(
            function() {
                if (this.src.indexOf("_o.jpg") == -1) {
                    this.src = this.src.replace("11.jpg", "12.jpg");
                }

            },

            function() {
                this.src = this.src.replace("12.jpg", "11.jpg");

            });

    }
        );
});

$(document).ready(function() {
    $(".menuoverstate3").each(function(i) {

        preload_image = new Image();
        preload_image.src = this.src.replace("13.jpg", "14.jpg");

        $(this).hover(
            function() {
                if (this.src.indexOf("_o.jpg") == -1) {
                    this.src = this.src.replace("13.jpg", "14.jpg");
                }

            },

            function() {
                this.src = this.src.replace("14.jpg", "13.jpg");

            });

    }
        );
});

$(document).ready(function() {
    $(".menuoverstate4").each(function(i) {

        preload_image = new Image();
        preload_image.src = this.src.replace("15.jpg", "16.jpg");

        $(this).hover(
            function() {
                if (this.src.indexOf("_o.jpg") == -1) {
                    this.src = this.src.replace("15.jpg", "16.jpg");
                }

            },

            function() {
                this.src = this.src.replace("16.jpg", "15.jpg");

            });

    }
        );
});

