jQuery(document).ready(function($){
	$('div.text').each(function(i){
		var t = $(this), c = t.clone();
		t.after(c.hide().css({'height':'auto','overflow':'visible','max-width':'inherit'}));
		var g = t.height()<c.height();
		c.remove();
		if (!g) return;
		var sd = function(){var p = $(this).parent().prev('div.text');p.animate({'scrollTop': parseInt(p.scrollTop())+100});}, su = function(){var p = $(this).parent().prev('div.text');p.animate({'scrollTop': parseInt(p.scrollTop())-100});},
				n = $('<div class="text-nav" />').append($('<a class="back">&laquo; up</a>').click(su)).append($('<a class="more">down &raquo;</a>').click(sd));
		t.after(n).css({'height': parseInt(t.height())-parseInt(n.outerHeight())});
	});
});


