$(document).ready(function(){
		$("a[rel^='prettyPhoto']").prettyPhoto({ theme: 'dark_rounded' , default_width: 760, default_height: 433 });
	});
	
function slideSwitch() {
	var $active = $('div.slideshow a.active');
	
	if ( $active.length == 0 ) $active = $('div.slideshow a:last');
	
	var $next =  $active.next().length ? $active.next() : $('div.slideshow a: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 );
});
