function headerStyle() {
		if($('.main-header').length){
			var windowpos = $(window).scrollTop();
			var siteHeader = $('.main-header');
			var sticky_header = $('.main-header .sticky-header');
			var scrollLink = $('.scroll-to-top');
			if (windowpos > 200) {
				siteHeader.addClass('fixed-header');
				sticky_header.addClass("animated slideInDown");
				scrollLink.fadeIn(300);
			} else {
				siteHeader.removeClass('fixed-header');
				sticky_header.removeClass("animated slideInDown");
				scrollLink.fadeOut(300);
			}
		}
	}
//Update Header Style and Scroll to Top
Update Header Style and Scroll to Top
Update Header Style and Scroll to Top
function headerStyle() {
		if($('.main-header').length){
			var windowpos = $(window).scrollTop();
			var siteHeader = $('.main-header');
			var sticky_header = $('.main-header .sticky-header');
			var scrollLink = $('.scroll-to-top');
			if (windowpos > 200) {
				siteHeader.addClass('fixed-header');
				sticky_header.addClass("animated slideInDown");
				scrollLink.fadeIn(300);
			} else {
				siteHeader.removeClass('fixed-header');
				sticky_header.removeClass("animated slideInDown");
				scrollLink.fadeOut(300);
			}
		}
	}
function headerStyle ( ) { if ( $ ( '.main-header' ) . length ) { var windowpos = $ ( window ) . scrollTop ( ) ; var siteHeader = $ ( '.main-header' ) ; var sticky_header = $ ( '.main-header .sticky-header' ) ; var scrollLink = $ ( '.scroll-to-top' ) ; if ( windowpos > 200 ) { siteHeader . addClass ( 'fixed-header' ) ; sticky_header . addClass ( "animated slideInDown" ) ; scrollLink . fadeIn ( 300 ) ; } else { siteHeader . removeClass ( 'fixed-header' ) ; sticky_header . removeClass ( "animated slideInDown" ) ; scrollLink . fadeOut ( 300 ) ; } } }
Update Header Style and Scroll to Top
Update Header Style and Scroll to Top