function wielkosc(size){
	$("#content_left").css({'font-size' : size+'px'});
}

$(document).ready(function(){
    slideShow();
});

function slideShow(){
    $('#slideshow li').css({ opacity: 0.0 });
    $('#slideshow li:first').css({ opacity: 1.0 });
	setInterval('gallery()', 2500);
}

function gallery(){
    var current = ($('#slideshow li.show').length == 1 ? $('#slideshow li.show') : $('#slideshow li:first'));
	//alert(current);
	//current.addClass('show');
    var next = (current.next().length == 1 ? current.next() : $('#slideshow li:first'));
    current.removeClass('show');
	next.addClass('show');
    current.animate({
        opacity: 0.0
    }, 1000, null, function(){
        current.css({
            display: 'none'
        });
    });
	next.css({
        display: 'inline'
    });
    next.animate({
        opacity: 1.0
    }, 1000);
}
