	hs.graphicsDir = 'inc/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.wrapperClassName = 'dark borderless floating-caption';
	hs.fadeInOut = true;
	hs.dimmingOpacity = .75;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: .6,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});




var total_divs=0;
var className='prigodna';
$(document).ready(function()
{
$("."+className).attr("id", function (arr) {
total_divs++;
return "fade" + (arr+1);
})
fadeEngine(0);
});





function fadeEngine(x) {

var y=x;

if(x==total_divs) y=1; else y++;

$("#fade"+x).css("display","none");

$("#fade"+y).fadeIn("slow");

setTimeout('fadeEngine('+y+')',10000);

}

function upit1()
    {
    $("#up1").css("display", "none");
    $("#up2").fadeIn("slow");
    }
function upit2()
    {
    $("#up2").css("display", "none");
    $("#up1").fadeIn("slow");
    }    
    


