jQuery(function(){
	 //画像用
    jQuery("img.rollover").mouseover(function(){
        jQuery(this).attr("src",jQuery(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"))
    }).mouseout(function(){
        jQuery(this).attr("src",jQuery(this).attr("src").replace(/^(.+)_ov(\.[a-z]+)$/, "$1$2"));
    }).each(function(){
        jQuery("<img>").attr("src",jQuery(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"))
    })
	
	//input用
	jQuery("input.rollover").mouseover(function(){
        jQuery(this).attr("src",jQuery(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"))
    }).mouseout(function(){
        jQuery(this).attr("src",jQuery(this).attr("src").replace(/^(.+)_ov(\.[a-z]+)$/, "$1$2"));
    }).each(function(){
        jQuery("<input>").attr("src",jQuery(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"))
    })
	
	//ナースLP登録ボタン用
	jQuery("input#registration-button").mouseover(function(){
        jQuery(this).css("background-position","0 -59px")
    }).mouseout(function(){
        jQuery(this).css("background-position","0 0");
    })
	
	//クリッカブルマップ用
	var area_id;
	jQuery("area.rollover").mouseover(function(){
        area_id =jQuery(this).parent().attr("id");
		jQuery("#img_"+area_id).attr("src",jQuery("#img_"+area_id).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1-ov$2"));
    }).mouseout(function(){
        area_id =jQuery(this).parent().attr("id");
		jQuery("#img_"+area_id).attr("src",jQuery("#img_"+area_id).attr("src").replace(/^(.+)-ov(\.[a-z]+)$/, "$1$2"));
    }).each(function(){
        jQuery("<img>").attr("src",jQuery(".imgMap").attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_ov$2"))
    })
	
})

