$(document).ready(function(){
	$("div.headline").css('top','5px');
	
	$('a.up').click( function() {
		headline_rotate();
	});
	
	$('a.down').click( function() {
		headline_rotate2();
	});
});

var diff = 100;
var up = 0;
var down = $("div.headline").height();

function headline_rotate() {
	up = up + diff;
	if(up < $("div.headline").height())
	{
		$("div.headline").animate({top: up * -1},"slow");
	}
}

function headline_rotate2() {
	$("div.headline").animate({top: 5},"slow");
	up = 0;
}
