
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");

            });

    }
        );


    jQuery(".menufadeoverstate").each(function() {

        jQuery(this).hover(
            function() {
                var children = jQuery(this).children();

                var first = children;
                var last = children.next();

                first.fadeOut(500);
                last.fadeIn(500);
            },

            function() {
                var children = jQuery(this).children();

                var first = children;
                var last = children.next();

                first.fadeIn(300);
                last.fadeOut(300);
            });

    }
        );

});

jQuery(document).ready(function() {


    jQuery(".hover-area").each(function() {
        jQuery(this).hover(
            function() {
                jQuery(this).children(".move-homepage").show();
                
            },

            function() {
                jQuery(this).children(".move-homepage").hide();
            });

    });



    jQuery(".menuoverstate").each(function(i) {

        preload_image = new Image();
        preload_image.src = this.src.replace(".jpg", "_o.jpg");

        jQuery(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");

            });

    }
        );
});
