/* Alert Hiding */
$( function() {
	$('.hide').click( function( event ) {
		event.preventDefault();
		
		$(this).parent().parent().hide("blind", {}, "slow");
	});
});

$( function() {
	$.timer(1000, function(timer) {
		var frame = $('div#rotation div.frame:last-child');
		
		frame.fadeOut(1000, function() {
			frame.prependTo('div#rotation');
			frame.show();
		});
		
		timer.reset(5000);
	});
});