/* Pocet opakovani rotaci */
loop=30;

/* Schovani boxu na zacatku */
Element.hide('index_banner_2');
Element.hide('index_banner_3');
Element.hide('index_banner_4');
Element.hide('index_banner_5');
/*
Element.hide('index_text_2');
Element.hide('index_text_3');
*/

/* Rotace textu */
/*
i=0;
while(i<loop){
	new Effect.Fade('index_text_1', { queue: { position: 'end', scope: 'textscope' }, delay: 11 });
	new Effect.Appear('index_text_2', { queue: { position: 'end', scope: 'textscope' } });
	
	new Effect.Fade('index_text_2', { queue: { position: 'end', scope: 'textscope' }, delay: 7 });
	new Effect.Appear('index_text_3', { queue: { position: 'end', scope: 'textscope' } });
	
	new Effect.Fade('index_text_3', { queue: { position: 'end', scope: 'textscope' }, delay: 15 });
	new Effect.Appear('index_text_1', { queue: { position: 'end', scope: 'textscope' } });
	
	i+=1;
}
*/

/* Rotace banneru */
i=0;
while(i<loop){
	new Effect.Fade('index_banner_1', { queue: { position: 'end', scope: 'bannerscope' }, delay: 8 });
	new Effect.Appear('index_banner_2', { queue: { position: 'end', scope: 'bannerscope' } });
	
	new Effect.Fade('index_banner_2', { queue: { position: 'end', scope: 'bannerscope' }, delay: 8 });
	new Effect.Appear('index_banner_3', { queue: { position: 'end', scope: 'bannerscope' } });
	
	new Effect.Fade('index_banner_3', { queue: { position: 'end', scope: 'bannerscope' }, delay: 8 });
	new Effect.Appear('index_banner_4', { queue: { position: 'end', scope: 'bannerscope' } });
	
	new Effect.Fade('index_banner_4', { queue: { position: 'end', scope: 'bannerscope' }, delay: 8 });
	new Effect.Appear('index_banner_5', { queue: { position: 'end', scope: 'bannerscope' } });
	
	new Effect.Fade('index_banner_5', { queue: { position: 'end', scope: 'bannerscope' }, delay: 8 });
	new Effect.Appear('index_banner_1', { queue: { position: 'end', scope: 'bannerscope' } });
	
	i+=1;
}