$(document).ready(function(){
	
	$('.togglenews').toggle(function(){
		
		//update so you can have multiple items that can be shown/hidden independently of each other
		$(this).parent().next().show('slow');
		
	},function(){
	
		$(this).parent().next().hide('slow');
	
	});
	

	var $sidebar   = $("#poster"),
	     $window    = $(window),
	     offset     = $sidebar.offset(),
	     topPadding = 100;
	
	$window.scroll(function() {
		if ($window.scrollTop() > offset.top) {
			$sidebar.stop().animate({
	                	marginTop: $window.scrollTop() - offset.top + topPadding
	        	});
	        } else {
	            $sidebar.stop().animate({
	                marginTop: 90
	            });
	        }
	});

})
