$(function () {

	$("img").each(function () {
	
		var src = $(this).attr("src");
	
		if (src.indexOf("static") !== -1) {
		
			$(this).hover(function () {
				$(this).attr("src", $(this).attr("src").replace("static.png", "hover.png"));
			},
			function () {
				$(this).attr("src", $(this).attr("src").replace("hover.png", "static.png"));
			});		
		}	
	});
	
	$(".politopia-map-image").unbind().hover(function () {
		
		$(".politopia-map-image").each(function () {
			$(this).attr("src", $(this).attr("src").replace("static.png", "hover.png"));
		});
	},
	function () {
		$(".politopia-map-image").each(function () {
			$(this).attr("src", $(this).attr("src").replace("hover.png", "static.png"));
		});
	});
});
