/* Highlights whichever section user is in on navigation bar while visiting Adicio pages for nwautos */

var pathname = window.location.pathname;
if (pathname.match("/dealer/")) {
	$(document).ready(function() {
		$("#nav_find_dealer a").addClass('nav_findadealer_on');
	});
}
if (pathname.match("/research/") || pathname.match("/researchCenter/")) {
	$(document).ready(function() {
		$("#nav_research a").addClass('nav_research_on');
	});
}
//if (pathname.match("/search/") || pathname.match("/browse/") || pathname.match("/configurator/")) {
if (pathname.match("/search/") || pathname.match("/browse/")) {
	$(document).ready(function() {
		$("#nav_find_vehicle a").addClass('nav_findavehicle_on');
	});
}
if (pathname.match("/ads/")) {
	$(document).ready(function() {
		$("#nav_sell_vehicle a").addClass('nav_sellavehicle_on');
	});
}
/**/