$(window).load(function(){
	
	$(".map-item").addClass("hide-store");
	$(".show").removeClass("hide-store");
	
	// load store name on page load
	var loadStore = $(".show").find("span").text();
	if(loadStore != ""){$("#map-store-name").text(loadStore);}
	
	
	
	$("#service1").mouseenter(function(){
		$("#map-store-name").text($(this).text());
		$(".service1").removeClass("hide-store");
	});
	
	$("#service1").mouseleave(function(){
		$(".service1").addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
	});
	
	$("#service2").mouseenter(function(){
		$("#map-store-name").text($(this).text());
		$(".service2").removeClass("hide-store");
	});

	$("#service2").mouseleave(function(){
		$(".service2").addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
	});
	
	$("#service3").mouseenter(function(){
		$("#map-store-name").text($(this).text());
		$(".service3").removeClass("hide-store");
	});

	$("#service3").mouseleave(function(){
		$(".service3").addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
	});
	
	$("#service4").mouseenter(function(){
		$("#map-store-name").text($(this).text());
		$(".service4").removeClass("hide-store");
	});

	$("#service4").mouseleave(function(){
		$(".service4").addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
	});
	
	$("#service5").mouseenter(function(){
		$("#map-store-name").text($(this).text());
		$(".service5").removeClass("hide-store");
	});

	$("#service5").mouseleave(function(){
		$(".service5").addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
	});
	
	$("#service6").mouseenter(function(){
		$("#map-store-name").text($(this).text());
		$(".service6").removeClass("hide-store");
	});

	$("#service6").mouseleave(function(){
		$(".service6").addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
	});
		
	
	
	
	
	$(".map-item").mouseenter(function(){
		$(this).removeClass("hide-store");
		var store = $(this).find("span").text();
		$("#map-store-name").text(store);
	});
	
	$(".map-item").mouseleave(function(){
		$(this).addClass("hide-store");
		$("#map-store-name").text($(".show").find("span").text());
		$(".show").removeClass("hide-store");

	});
	 	
});
