
/*
Event.observe(window, 'load', function() {

//	setInterval( 'startSlideShow( )', duration * 1000 );
	
} );

*/

function startSlideShow( sliceId, imagesCount )
{
	var fadeImage = $( 'imageSlideShow' + sliceId + iterators[sliceId] );
	Effect.Fade( fadeImage, { duration: 1 } );

	if( iterators[sliceId] < imagesCount - 1 )
		iterators[sliceId]++;
	else
		iterators[sliceId] = 0;
		
	var appearImage = $( 'imageSlideShow' + sliceId + iterators[sliceId] );
	Effect.Appear( appearImage, {duration: 1} );
}


function popupImage( url, width, height )
{
	popup = open( url, "imagePopup", "width=" + width + ", height=" + height + ", left=20, top=20, scrollbars=yes, resizable=yes, dependent=yes" );
	popup.focus();
}
