(function($) {
	'use strict';

	$(document).on('click', '.nav-tab-wrapper .nav-tab[href^="#seovault-local-"]', function(event) {
		event.preventDefault();
		var $link = $(this);
		var target = $link.attr('href');
		var $wrapper = $link.closest('.nav-tab-wrapper');

		$wrapper.find('.nav-tab').removeClass('nav-tab-active');
		$link.addClass('nav-tab-active');
		$('.seovault-local-tab').hide();
		$(target).show();
	});
}(jQuery));
