function animacja(){
	
$($p1).animate({left: "700px",top: "250px", opacity: 0.9},1000,"linear",function(){
	
	$(this).css({
		'top':'10px',
		'left':'20px',
		'opacity':$o
	});
	
});
}

function slideSwitch() {

var $active = $('#slideshow IMG.active');

if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

// use this to pull the images in the order they appear in the markup
var $next =  $active.next().length ? $active.next()
    : $('#slideshow IMG:first');

$active.addClass('last-active');

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

function slideSwitch2() {


	var $active = $('#slideshow2 IMG.active');

	if ( $active.length == 0 ) $active = $('#slideshow2 IMG:last');

	// use this to pull the images in the order they appear in the markup
	var $next =  $active.next().length ? $active.next()
	    : $('#slideshow2 IMG:first');

	$active.addClass('last-active');

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

}
