class StickyNavigation {
	
	constructor() {
		this.currentId = null;
		this.currentTab = null;
		this.tabContainerHeight = 70;
		let self = this;
		$(window).scroll(() => { this.onScroll(); });
	}
	

	
	onScroll() {
		this.checkTabContainerPosition();
    this.findCurrentTabSelector();
	}
	

	checkTabContainerPosition() {
		let offset = $('.about-navbox').offset().top + $('.about-navbox').height() - this.tabContainerHeight;
		if($(window).scrollTop() > offset) {
			$('.about-navboxt').addClass('about-navbox-top');
		} 
		else {
			$('.about-navboxt').removeClass('about-navbox-top');
		}
	}

}

new StickyNavigation();