$(document).ready(function(){
});


// navigation function that scrolls the page to requested Div
function pagemove(target){
	
	$(".current-page").removeClass("current-page");
		
	$.scrollTo(target, 1200, {
		easing:'easeInOutExpo',
		onAfter: function(){
			autoscrolling = false;
			location.hash = target; //Updates the location url hash
			$(target).addClass("current-page");
			}
	});
};


    
$(window).cresize(function(){
	
	var wHeight = $(window).height();
	
	$(".page-div").each(function(index){
		
		var thisheight = $(this).height();

		if(wHeight > thisheight){
			
			$(this).height(wHeight);
		}
	});

	var currentTop = $("html").scrollTop();
	
	$("body, html").scrollTop(currentTop);
	
});


    
    

