function slideHeadergrafix() {
    var $active = $('#headerPictures img.active');
    if( $active.length == 0 ) $active = $('#headerPictures img:last');

    var $next = $active.next().length ? $active.next() : $('#headerPictures img:first');
    
	$active.addClass('last_active');

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

$(function() {
    setInterval("slideHeadergrafix()", 7500);
});

