function slideSwitch() {
	
    var active = $('#slideshow IMG.active');
    if ( active.length == 0 ) active = jQuery('#slideshow IMG:last');
    var next =  active.next().length ? active.next()
        : jQuery('#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');
        });
}
jQuery(function() {
    setInterval( "slideSwitch()", 5000 );
	$("#imageGallery li:nth-child(3n)").addClass("third");
	$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
});
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function PopupCenter(pageURL, title,w,h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}

//-->