var hex = '0123456789abcdef';
function randomColor() {
	var color = ['#'];
	for (i = 0; i < 6; i++) {
		color.push(hex.charAt(Math.round(Math.random() * 15)));
	}
	return color.join('');
}

function type(el, max_font_size, min_font_size) {
	max_font_size = max_font_size || 400;
	min_font_size = min_font_size || 0;
	new Effect.Morph(el, {
		style: {
			'font-size': Math.max(Math.random() * max_font_size, min_font_size) + 'px',
			'color': randomColor()
		},
		afterFinish: function() {
			type(el, max_font_size, min_font_size);
		},
		duration: (Math.random() * .8) + .2
	})
}


