$(document).ready(function() {
 
        //Calculate the height of <header>
        //Use outerHeight() instead of height() if have padding
        var aboveHeight = $('#header-wrap').height();
 
	//when scroll
        $(window).scroll(function(){
 
	        //if scrolled down more than the header’s height
                if ($(window).scrollTop() > aboveHeight){
 
	        // if yes, add “fixed” class to the <nav>
	        // add padding top to the #content
          //      (value is same as the height of the nav)
                $('#navigation-wrap').addClass('fixed');
								$('#main').addClass('fixed');
 
                } else {
 
	        // when scroll up or less than aboveHeight,
          //      remove the “fixed” class, and the padding-top
                $('#navigation-wrap').removeClass('fixed');
								$('#main').removeClass('fixed');
                }
        });
});

$(document).ready(function() {
 
        //Calculate the height of <header>
        //Use outerHeight() instead of height() if have padding
        var aboveHeight = $('#header-wrap').height();
 
	//when scroll
        $(window).scroll(function(){
 
	        //if scrolled down more than the header’s height
                if ($(window).scrollTop() > aboveHeight){
 
	        // if yes, add “fixed” class to the <nav>
	        // add padding top to the #content
          //      (value is same as the height of the nav)
                $('.page-child .twoCol.left').addClass('fixed');
 
                } else {
 
	        // when scroll up or less than aboveHeight,
          //      remove the “fixed” class, and the padding-top
                $('.page-child .twoCol.left').removeClass('fixed');
                }
        });
});
