﻿
	$(document).ready(function() {
	
		$(".dot").click(function() {
			
			var id = $(this).attr('id');
			
			$(".jobs-by-location").removeClass('active');
			$("."+id).addClass('active');
		
		});
		
		$('.dot').tipsy({title: 'id', gravity: 's'});
		
		
		var current_selected_region = '';
		$('area').hover(function() {
		    $('#regional-outlines img').hide();
		    var region = $(this).attr('region');
		    $('#'+region+'-outline').show();
		    $('#'+current_selected_region+'-outline').show();
		},
		function() {
		    $('#regional-outlines img').hide();
		    $('#'+current_selected_region+'-outline').show();
		}
		);
		
		/*
		$('area').click(function() {
		    $('#regional-outlines img').hide();
		    $('.jobs-by-location').hide();
		    var region = $(this).attr('region');
		    $('#'+region+'-outline').show();
		    $('.'+region).show();
		    current_selected_region = region;
		});
		*/
	});
	

