$(document).ready(function(){
	$(function() {
        $('.thumb a').lightBox();
    });
});

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

 var $next =  $active.next().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 );
      });
      $("#slideshow2 div").easySlider({
				prevId: 'left-nav',
				prevText: '',
				nextId: 'right-nav',
				nextText: '',
				auto: true, 
				continuous: true
			});
	$(function(){
  	    $('a.new-window').click(function(){
  	        window.open(this.href);
  	        return false;
  	    });
  	});
});

