	function slideSwitch() {
    var $active = $('#slideshow DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow DIV:last');

    
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow DIV:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

 $(function() {
$(".image").click(function() {
var image = $(this).attr("rel");$('#image').hide();$('#image').fadeIn('slow');$('#image').html('<img src="' + image + '"/>');
return false;
	});
$(".image2").click(function() {var image = $(this).attr("rel");$('#image2').hide();$('#image2').fadeIn('slow');$('#image2').html('<img src="' + image + '"/>');
return false;
	});
	$(".image3").click(function() {var image = $(this).attr("rel");$('#image3').hide();$('#image3').fadeIn('slow');$('#image3').html('<img src="' + image + '"/>');
return false;
	});
	$(".image4").click(function() {var image = $(this).attr("rel");$('#image4').hide();$('#image4').fadeIn('slow');$('#image4').html('<img src="' + image + '"/>');
return false;
	});
});
