// Common, useful jQuery extensions here
jQuery.fn.exists = function(){return jQuery(this).length>0;} // Usage: if($(".element").exists()) { /* do something */ }

$(document).ready(function() {
	// jQuery code here
	
	$('img[usemap]').maphilight();
	
	$("map area").click(function() {
		var $area = $(this);
		var areastring = $area.attr("href");
		$("#distributor-locator select option[value=" + areastring + "]").attr("selected", "selected");
		if($area.is('.hispanic')) {
			$(".info-hispanic").slideDown();
		} else {
			$(".info-hispanic").slideUp();
		}
		if($area.is('.newpage')) {
			return true;
		} else {
			return false;
		}
	});
	
});