var $sectionNum = 12; // number of total sections in the document
var $sectionLatest = 12; // section to scroll to after entering website
var $sectionMinWidth = 955; // minimum width of a section
// 
function resizeSection () {
	var $winSize = $(window).width();
	$("body").css("width",$sectionNum*$winSize);
	$("body").css("min-width",$sectionNum*$sectionMinWidth);
	$("div.section").css("width",$winSize);
	$("div.section").css("min-width",$sectionMinWidth);
}
// On resize browser frame, trigger resize function and update section width
$(window).resize(function() {
	resizeSection();
});
// Slide to latest section
jQuery(document).ready(function() {
	// On load browser frame, trigger resize function and update section width
	resizeSection();
	var parm = "section"+$sectionLatest;
	if (parm != "") {
		var ob = $("#" + parm);
		$('html, body').stop().animate({
			scrollLeft: $(ob).offset().left
		}, 1500, 'easeInOutExpo');
	}
});
// make scroll wheel scroll horizontal
jQuery(function($) {
		$('html, body').mousewheel(function(event, delta) {
			this.scrollLeft -= (delta * 50); // increase number to make scroll bigger
			event.preventDefault();
		})
});
