$(document).ready(function() {

	$('.map-point').hover(
		function () {
			$(this).css({'z-index':'10'});
			$('.icon',$(this)).addClass('hover').css({'z-index':'10'});
			$('.business-hover-point',$(this)).show().css({'z-index':'10'});
			$('.business-hover-info',$(this)).show().css({'z-index':'10'});
	},
		function () {
			$(this).css({'z-index':'1'});
			$('.icon',$(this)).removeClass('hover').css({'z-index':'1'});
			$('.business-hover-point',$(this)).hide().css({'z-index':'1'});
			$('.business-hover-info',$(this)).hide().css({'z-index':'1'});
			
	});

	$('.directory-list a').hover(
		function() {
			var bizName = '#' + this.className;
		  	$(bizName + '.map-point .icon').addClass('hover');
			$(bizName + '.map-point').css({'z-index':'10'});
			$(bizName + ' .business-hover-point').show();
			$(bizName + ' .business-hover-info').show();
	},
		function () {
			var bizName = '#' + this.className;
			$(bizName + '.map-point .icon').removeClass('hover');
			$(bizName + '.map-point').css({'z-index':'1'});
			$(bizName + ' .business-hover-point').hide();
			$(bizName + ' .business-hover-info').hide();
			
	});
	
	$('.nameonly').click(function() { return false; });

 });
