jQuery(document).ready(function($){
	function centerTheMountain() {
		var viewportWidth = $(window).width();
		var imageWidth = 1698;
		if (imageWidth < viewportWidth) {
			var widthDiff = viewportWidth-imageWidth;
			var xOffSet = Math.round(widthDiff/2);
			$("#slide-container").css("background-position",xOffSet+"px 0px");
		} else if (imageWidth > viewportWidth) {
			var widthDiff = imageWidth-viewportWidth;
			var xOffSet = Math.round(widthDiff/2);
			$("#slide-container").css("background-position","-"+xOffSet+"px 0px");
		}
		// hide the horizontal scroll bar
		if (viewportWidth >= 1000) {
			$("body").css("overflow-x", "hidden");
		}
	}

	window.onresize = function() {
		centerTheMountain();
	};


	centerTheMountain();
});
