

$(document).ready(function() {
    
    // overstates
    
    $(".menuoverstate").each(function(i) {

        preload_image = new Image();
        preload_image.src = this.src.replace(".png", "_o.png");

        $(this).hover(
            function() {
                if (this.src.indexOf("_o.png") == -1) {
                    this.src = this.src.replace(".png", "_o.png");
                }

            },

            function() {
                this.src = this.src.replace("_o.png", ".png");

            });

    }
        );
    
    //slideshow
    $('#slideshow').cycle({
	fx: 'fade'
    });
    
});

