flash.js revision 08b16000bc04cebd76e75dcfc2e88231394967f8
$(function(){
$(".flash").each(function(){
var flash = $(this).closest(".flash");
var words = flash.text().split(" ").length;
var delay = words < 20 ? 3 : words/4;
window.setTimeout(function(){
flash.fadeOut();
}, delay * 1000)
});
})