﻿
// jQuery.noConflict();

function profilesingleimageani() {
    var $alt = $('.tx_ppexpertenprofile_single_image .obersteebene');
    var $neu = $alt.next().length ? $alt.next() : $('.tx_ppexpertenprofile_single_image .image:first');
    $alt.addClass('mittlereebene');
	$alt.removeClass('obersteebene');
  //  $neu.css({opacity: 0.0});
    $neu.show();
    $neu.addClass('obersteebene');

   // $neu.animate({opacity: 1.0}, 2000, function() {
   //         $alt.removeClass('mittlereebene');
   // });
       $alt.removeClass('mittlereebene');
    $alt.hide();
}

jQuery(document).ready(function() {
    $('.tx_ppexpertenprofile_single_image .image:nth-child(1)').addClass('obersteebene');
    $('.tx_ppexpertenprofile_single_image .obersteebene').show();
	if ($(".tx_ppexpertenprofile_single_image .image").length > 1) {
    	setInterval( "profilesingleimageani()", 4000 );
    }
});


