function slideSwitch(){
 var $active = $('#slideshow img.active');
 var $next = $active.next('img');

 var $next =  $active.next('img').length ? $active.next(): $('#slideshow img:first');

 $active.addClass('last-active');

 $next.css({opacity: 0.0})
      .addClass('active')
      .animate({opacity: 1.0}, 1000, function(){
		  $active.removeClass('active last-active');
		});
}

$(document).ready(function() {
	$(function(){
	  	setInterval( "slideSwitch()", 5000 );
      });
	$(function(){
  	    $('a.new-window').click(function(){
  	        window.open(this.href);
  	        return false;
  	    });
  	});
});
