$j(document).ready(function() {
	var l = $j('ul.five').length;
	$j('ul.five:first').show();
	
	$j('#scroll_down').click(function() {
		var i = $j('ul.five').index($j('ul.five:visible')) + 1;
		
		if (i < l) {
			$j('#scroll_down').addClass('down').removeClass('downO');
			
			$j('div#calcscroll').addClass('overflow');
			$j('ul.five:visible').animate({ top: '-=250px' }, 'slow','',function() {
				$j(this).hide();
			}).next('ul').css('top','250px').show().animate({ top: '0px' }, 'slow', '', function() {
				$j('div#calcscroll').removeClass('overflow');
			});
		};
		
		i++;
		if (i >= l) {
			$j('#scroll_down').removeClass('down').addClass('downO');
		}
		
		$j('#scroll_up').addClass('up').removeClass('upO');
		
	});
	
	$j('#scroll_up').click(function() {
		var cur = $j('ul.five:visible');
		var i = $j('ul.five').index(cur);
		
		if (i > 0) {
			$j('#scroll_up').addClass('up').removeClass('upO');
			
			$j('div#calcscroll').addClass('overflow');
			$j('ul.five:visible').animate({ top: '+=250px' }, 'slow','',function() {
				$j(this).hide();
			}).prev('ul').css('top','-250px').show().animate({ top: '0px' }, 'slow', '', function() {
				$j('div#calcscroll').removeClass('overflow');
			});
		};
		
		i--;
		if (i <= 0) {
			$j('#scroll_up').removeClass('up').addClass('upO');
		}
		
		$j('#scroll_down').addClass('down').removeClass('downO');
		
	});
	
	


	//Create your sharelet with desired properties and set button element to false
	//var object = SHARETHIS.addEntry({
	//title:'share',
	//summary: 'Sharing is good for the soul.'},
	//{button:false});
	//Tie customized button to ShareThis button functionality.
	//var element = document.getElementById("sharethis");
	//object.attachButton(element);
})
