
$(function(){var win=$(window),stack=$('#%id%'),spacer=$('.spacer_%id%'),positionClass='%id=secPosition%',sideClass='%id=horizPosition%',sectionWrapperId='#'+stack.closest('.shear-wrapper').attr('id'),sectionContent=stack.closest('.content-wrapper');stack.unwrap();stack.addClass('section-absolute').addClass(positionClass).addClass(sideClass).addClass('%id=customClass%').appendTo(sectionWrapperId);if(positionClass=='section-bottom'){spacer.appendTo(sectionContent);}else{spacer.prependTo(sectionContent);}%[if %("%id=autoPad%"=="true")%]%var resizeSpacer=function(){var targetHeight=stack.outerHeight();spacer.css('height',targetHeight);}
win.on("resize",resizeSpacer);resizeSpacer();%[endif]%$(window).load(function(){$('.section-fix',stack).removeClass('pre-load');%[if %("%id=autoPad%"=="true")%]%resizeSpacer();%[endif]%});});
