window.alert = function() {
	text = arguments[0].replace(/\n/, "<br />");
	
	name = 'alert'+($('.alert').size()+1);
	count = $('.alert').size()+1;
	$('body').append('<div class="alert" id="'+name+'">'+text+'</div>');
	box = $('#'+name);
	
	box.css('top',((count-1)*50)+'px');
	box.fadeTo(0.95,'slow').delay(3000).fadeOut('slow',function(){$(this).remove()});
	box.click(function(){
		$(this).stop().fadeOut('fast',function(){$(this).remove()});
	});
};
