/*
2010/01/15
エネルギー検定専用
他は利用不可
*/
/*
$(function(){
    $("img.imgover").mouseover(function(){
    	if(!$(this).attr("src").match("_03"))
    	{
        $(this).attr("src",($(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_03$2")));
        }
    }).mouseout(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_03(\.[a-z]+)$/, "$1$2"));
    })
})

$(function(){
    $("img.imgover2").mouseover(function(){
    	if(!$(this).attr("src").match("_r"))
    	{
        $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_r$2"));
        }
    }).mouseout(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_r(\.[a-z]+)$/, "$1$2"));
    })
})

*/
var imgNameOrg = "";
$(function(){
    $("img.imgover").mouseover(function(){
    	imgNameOrg = $(this).attr("src");
    	if(!$(this).attr("src").match("_03"))
    	{
			$(this).attr("src",($(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_03$2")).replace(/_01|_02|_04/, ""));
        }
    }).mouseout(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_03(\.[a-z]+)$/, imgNameOrg));
    })
})

$(function(){
    $("img.imgover2").live("mouseover", function(){
    	if(!$(this).attr("src").match("_r"))
    	{
        $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_r$2"));
        }
    }).live("mouseout", function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_r(\.[a-z]+)$/, "$1$2"));
    })
})

$(function(){
    $("input.imgover2").live("mouseover", function(){
    	if(!$(this).attr("src").match("_r"))
    	{
        $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_r$2"));
        }
    }).live("mouseout", function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_r(\.[a-z]+)$/, "$1$2"));
    })
})

