function init_news() {
	$('div.autoflow').each(function() {
		var t = $(this);
		var up = t.next();
		var ship = t.find('div').eq(0);
    if (!document.all) ship.css('position','relative');
		var down = t.prev();
		
		var height = t.height();
		var total_height = ship.height();
		
		up.click(function() {
			var top = parseInt(ship.css('top'));
      if (isNaN(top)) top=0;
			if (height-top>=total_height) return false;
			ship.animate({'top': (top-height)+'px'},500);
		});
		down.click(function() {
			var top = parseInt(ship.css('top'));
			if (top>-10) return false;
			ship.animate({'top': (top+height)+'px'},500);
		});
	});
}


function compratir(obj) {
	$(obj).next().slideDown().find('span.close').click(function() { $(this).parent().hide(); });
}