function slideSwitch() {
    var $active = $('#gal DIV.active');
    if ( $active.length == 0 ) $active = $('#gal DIV:last');
    var $next =  $active.next().length ? $active.next(): $('#gal DIV:first');

$active.addClass('last-active');
$('.opis').fadeOut(1000);



setTimeout(function() {

$('.opis').css({'display': 'none'});
    $next.css({'display': 'none'}).addClass('active').fadeIn(1000, function() {
            $active.removeClass('active last-active');
						//setTimeout(function() { }, 100);
						 $('.opis').fadeIn(1000);
		});
				
}, 1000); 

};


$(document).ready(function(){ 
	//setTimeout(function() {	 } ,100);
	$('.opis').fadeIn(1000);
	
	
	setInterval( "slideSwitch()", 6000 );
});
