$(function(){			
	$('select').selectmenu({
		style:'dropdown',
		maxHeight: 350
	});
	
	var the_path = window.location.pathname;
	var the_query = window.location.search;
	var path_parts = the_path.split("/");
	
	//Highlight the About Us tab if on the find an about us page
	if(path_parts[1] == "about-us") {
		$('#menu-item-59').addClass('current-menu-item').addClass('current_page_item');
	}
	
	//Highlight the Services tab if on the find a services page
	if(path_parts[1] == "services") {
		$('#menu-item-2367').addClass('current-menu-item').addClass('current_page_item');
	}
	
	//Highlight the locations tab if on a locations page
	if(path_parts[1] == "facilities-and-locations") {
		$('#menu-item-62').addClass('current-menu-item').addClass('current_page_item');
	}
	
	//Highlight the Community Resources tab if on a community resources page
	if(path_parts[1] == "community-resources") {
		$('#menu-item-60').addClass('current-menu-item').addClass('current_page_item');
	}
	
	//Highlight the Patients & Families tab if on a patients and families page
	if(path_parts[1] == "patients-families") {
		$('#menu-item-63').addClass('current-menu-item').addClass('current_page_item');
	}
	
	//Highlight the Find a Provider tab if on the find a providers page
	if(path_parts[1] == "find-a-provider") {
		$('#menu-item-139').addClass('current-menu-item').addClass('current_page_item');
	}
	
	if(path_parts[1] == "providers") {
		$('#menu-item-139').addClass('current-menu-item').addClass('current_page_item');
	}

	if(the_query.indexOf('post_type=providers') != -1) {
		$('#menu-item-139').addClass('current-menu-item').addClass('current_page_item');
	}

	if(the_query.indexOf('s=provider') != -1) {
		$('#menu-item-139').addClass('current-menu-item').addClass('current_page_item');
	}
	
});	
