// locations.view.js

// display title of map section
$(document).ready(function() {
	var map_source = $('#map img').attr('src');
	
	$('#map map').hover(function() {
		
		//show title
		$('#map .title').show(0);
		
	}, function() {
		
		// hide title
		$('#map .title').hide(0);
		
		// reset map image
		$('#map img').attr('src', map_source);
	});
	
	$('#map map area').mouseover(function() {
		
		// set title
		$('#map .title').text($(this).attr('title'));
		
		// set hover image
		$('#map img').attr('src', $(this).attr('rel'));
	});
});

// zebra stripping of the lists
$(document).ready(function() {
	$('.plugin_medics_list dl:even').addClass('item_odd');
});

// zebra stripping of single times
$(document).ready(function() {
	$('.plugin_medics_single dl.times dd:even').addClass('odd');
});

// filter form submission
$(document).ready(function() {
	$('.plugin_medics_list select').change(function() {
		$(this).parent().submit();
	});
});