$(function(){
	// Sets background position to a fixed position if window gets too small
	function positionBackground(){
		if ( $(window).width() < $('#contentContainer').width() ) {
			$('body').css('backgroundPosition', '-1010px top');
		} else {
			$('body').css('backgroundPosition', 'center top');
		}
	}
 
	$(window)
		.scroll(positionBackground)
		.resize(positionBackground);
		
	if ( $(window).width() < $('#contentContainer').width() ) {
		$('body').css('backgroundPosition', '-1010px top');
	}
});

$(document).ready(function(){
	$('.newsListHome').jScrollPane({scrollbarWidth:4});
});
