function slideSwitch() {
    var $active = $('.gallery_images3 a.active');
    if ($active.length == 0) $active = $('.gallery_images3 a:last');
    var $next = $active.next().length ? $active.next()
        : $('.gallery_images3 a:first');
    $active.addClass('last-active');
    $next.addClass('active');
    $active.removeClass('active last-active');
       
    var image = escape($next.attr("rel"));
    var title = $next.attr("title");
    var image1 = $('<img />').attr('src', image);
 
    $("#image3").html('<img src="' + image + '"  width="430" height="324px" />');

}

$(function() {
    //preload images
    $(".gallery_images3 a").each(
		function(intIndex) {
		    jQuery("<img>").attr("src", $(this).attr("rel"));
		}
	);
	
    var $first = $('.gallery_images3 a:first');
    $first.addClass('active');
    slideSwitch();
    stop_interval = setInterval("slideSwitch()", 10000);
    
});






