// JavaScript Document
var currentGraphic = 0;
var graphics = $A(document.getElementsByClassName('GraphicImage',$('Graphic')));
function rotateGraphics(){
	var newCurrentGraphic = currentGraphic + 1;
	if (newCurrentGraphic >= graphics.length) newCurrentGraphic = 0;
	graphics[currentGraphic].style.display = 'none';
	currentGraphic = newCurrentGraphic;
	Effect.Appear(graphics[currentGraphic], {duration:1});
	setTimeout(rotateGraphics, 5000);
}
Event.observe(window, 'load', function() {
	setTimeout(rotateGraphics, 5000);
});
