
/***
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

 var imgs = [
        'slidephoto/image2.jpg',
        'slidephoto/image3.jpg',
        'slidephoto/image4.jpg',
        'slidephoto/image1.jpg'];
        var cnt = imgs.length;

        $(function() {
         $('#imageSlide').fadeOut("fast", function() {
           $(this).attr('src','slidephoto/image1.jpg' ).fadeIn(3000);
        });
            setInterval(Slider, 5000);
        });

        function Slider() {
       $('#imageSlide').fadeOut("slow", function() {
           $(this).attr('src', imgs[(imgs.length++) % cnt]).fadeIn("slow");
        });
        }
