var Rotate = new function() {
	this.fadeOut = function() {
		var div = $CFX('rotate');
		div.opacity.fade(100, 0, 500);
	}
	this.fadeIn = function() {
		var div = $CFX('rotate');
		div.opacity.fade(0, 100, 500);
	}
	this.load = function() {
		Rotate.fadeOut();
		setTimeout(function() {
			new Ajax.Updater('rotate', '/rotate.php', {
				method: 'get',
				onComplete: function(trans) {
					setTimeout(function() {
						Rotate.fadeIn();
						setTimeout(Rotate.load, 5500);
					}, 500);
				}
			});
		}, 500);
	}
}
Event.observe(window, 'load', function(e) {
	Rotate.load();
});
