﻿jQuery(document).ready(function($) {
	var postfix = '_on';
	$('img.ov').not('[src*="'+ postfix +'."]').each(function() {
		var img = $(this);
		var src = img.attr('src');
		var src_ov = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		$('<img>').attr('src', src_ov);
		img.hover(
			function() {
				img.attr('src', src_ov);
			},
			function() {
				img.attr('src', src);
			}
		);
	});
});


$(function(){

$(".areamap li a").mouseover (
function(){ $(this).after("<span class='mapover'>クリック!</span>");}
)	

$(".areamap li a").mouseout (
function(){ $("span.mapover").remove();}
)	
});

