var Rotator = function(container, selector, opts) {
	opts = opts || {};
	opts.interval = opts.interval || 5000;
	opts.width = opts.width || 646;
	opts.height = opts.height || 357;
	
	// set style
	container.setStyle({"width":opts.width+"px", "height":opts.height+"px", "position":"relative", "overflow":"hidden"});
	
	// hide all items initially
	container.select(selector).each(function(o,i) {
		o.setStyle({"opacity":0, "position":"absolute", "padding":"0px", "margin":"0px", "backgroundColor":"#000"}).hide();
	});
	
	// define rotation action
	var action = function(){
		var c = container.select(selector)[0];
		c.up().insert(c);
		Effect.Appear(c, { afterFinish:function() { c.previous().setStyle({'opacity':0}); } });
	};
	
	// execute action at required interval
	var interval = setInterval(action, opts.interval);
	
	// perform the first rotation
	action();
}
