$(function() {
        // Start the slideshow
        function makeImage(url, clickurl) {
                return $("<img/>").
                        attr("src", url).
                        click(function() {
                                if (clickurl)
                                        document.location.href=clickurl;
                        });
        }
        $(".flash").
                html(makeImage("/common/images/slideshow/image1.png")).
                append(makeImage("/common/images/slideshow/image2.png")).
                append(makeImage("/common/images/slideshow/image3.png")).
                cycle({ fx: 'fade', speed: 750, timeout: 2500});
});
