// JavaScript Document



function slideSwitch() {
   var $active = $('.slideshow DIV.active');

    if ( $active.length == 0 ) $active = $('.slideshow DIV:last').fadeOut('slow');

    var $next =  $active.next().length ? $active.next()
        : $('.slideshow DIV:first').fadeIn('slow');

    $next.fadeIn('slow').addClass('active').removeClass('notactive');

    $active.fadeOut('slow').addClass('notactive').removeClass('active');
	
	
}

if(petsCount < 1){

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

}

