<!-- --><script>
$(function(){
	$(".notice, .warning, .message").
		append("<span class=\"sub\">(click to hide)</span>").
		click(function(){
			$(this).fadeOut("fast")
		})
		.css("cursor", "pointer")
})

function slideSwitch() {
    var $active = $('#content-pictures img.active');
	var $next = $active.next();
	
	if ($active.length == 0) {
		$active = $('#content-pictures img:last');
	}

	if ($('#content-pictures img').length > 1) {
    	var $next = $active.next().length ? $active.next(): $('#content-pictures img:first');
    
    	$active.addClass('last-active');

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

$('a[rel="external"]').click( function() {
    window.open( $(this).attr('href') );
    return false;
});

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

<!-- --></script>
