function slideshowSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    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}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

$(document).ready(function() {	
	
	if(jQuery().tooltip){	
		$("#eventsList a").tooltip({ 
			track: true, 
			delay: 0, 
			showURL: false, 
			showBody: " - ", 
			extraClass: "pretty", 
			fixPNG: true, 
			opacity: 1, 
			left: 0, 
			bodyHandler: function() { 
				return $(this).parent().children(".tooltip").html();		
			}
		});
	}
	
	/*
	if(jQuery().vTicker){
		$('.newsTicker1').vTicker({
			speed: 1000,
			pause: 3000,
			showItems: 1
		});
	}
	*/
	
	var intervalSlideshow = setInterval( "slideshowSwitch()", 7000 );
	
});	