function rotation_init() {
	$$('div.rotater').each(function(e) { setup_children(e) })
	new PeriodicalExecuter(rotate_elements, 5)
}
function setup_children(rotater) {
	$A(rotater.childNodes).each(function(e) {
		if (e.nodeName != '#text') {
			e.style.position = 'relative'
			e.style.top = '0px'
		} else {
			Element.remove(e)
		}
	})
}
function rotate_elements() {
	$$('div.rotater').each(function(e) { 
		var children = $A(e.childNodes)
		var reset = false
		if (children.last().style.top.replace('px', '') == (0- ((children.length - 1) * e.getHeight()))) {
			children.first().style.top = e.getHeight() + 'px'
		}
		children.each(function(c) {
			new Effect.MoveBy(c, (0 - e.getHeight()), 0)
		})
		if (children.first().style.top == '0px') {
			children.each(function(c) {
				c.style.top = '0px'
			})
		}
	})
}
rot_original_load = window.onload
window.onload = function() {
	if (rot_original_load != null) rot_original_load()
	rotation_init()
}

