function slideSwitch() {
    var active = jQuery('#slideshow img.active');
	
	active.fadeOut(1000);

    if ( active.length == 0 ) active = jQuery('#slideshow img:last');

    // use this to pull the images in the order they appear in the markup
    var next =  active.next().length ? active.next()
        : jQuery('#slideshow img:first');

    // uncomment the 3 lines below to pull the images in random order


    active.addClass('last-active');

    /*next.addClass('active').show("slide", { direction: "top" }, 1000, function() {
            active.removeClass('active last-active');
        });*/
	
	
		
	next.addClass('active')
        .fadeIn(1000, function() {
            active.removeClass('active last-active');
        });

        
    
        
}

function startSlideShow()
	{
		var active = jQuery('#slideshow img.active');
	
		active.fadeIn(1000);
		
		setTimeout("startInterval()", 5000);
	}
	
function startInterval()
	{
		setInterval( "slideSwitch()", 5000 );
	}

jQuery(function() {
	setTimeout("startSlideShow()", 7000);
});
