var finalworks_rollover = function(){
function init()
{
finalworks_rollover_start();
}
return{
init:init
}
}();
function finalworks_rollover_start()
{
$(document).ready
(
function()
{
var korePatern = new RegExp( /.*_off\.[^.]+/ );
var myPatern = new RegExp( /_off|_on/ );
$('img').each(function()
{
var konomoji=$(this).attr("src");
if(konomoji.match(korePatern))
{
addAction($(this));
}
})
function addAction(_this)
{
_this.hover(
function(){
onMyMouseOver(this);
},
function()
{
onMyMouseOut(this);
}
)
}
function onMyMouseOver(_this)
{
if($(_this).css("myProp")!="stillThumbnail")
{
tmp=$(_this).attr("src");
$(_this).attr("src",tmp.replace( myPatern, '_on' ));
}
}
function onMyMouseOut(_this)
{
if($(_this).css("myProp")!="stillThumbnail")
{
tmp=$(_this).attr("src");
$(_this).attr("src",tmp.replace( myPatern, '_off' ));
}
}
}
);
};
