// zeby nie bylo konfliktu z prototype dla lighboxa
JQ=$;

JQ(document).ready(function() {
   JQ('.image-container').cycle({
		fx: 'none', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout:  10000 
	});
});

/*
function switchBanner(fromIndex, toIndex) {
	myIndex = toIndex;
	document.getElementById('img-current').src = myImages[myIndex].url;

	JQ('div.image-container').fadeIn(300);
	
	//JQ('div.image-container').show();

} // eof switchToBanner()

function rotateBanner() {
	JQ('div.image-container').hide( 
		function(anElement) {
			var newIndex = null;
			if (myIndex < myImages.length - 1) {
				newIndex = myIndex + 1;
			} else {
				newIndex = 0;
			} // eof if()
			switchBanner(myIndex, newIndex);
			myIndex = newIndex;
		}
	);
} // eof rotateBanner()

var myInterval = null
JQ(document).ready(function () {
    myInterval = window.setInterval("rotateBanner()", 10000);
});
*/