/****************************************
[jquery] jquery.stylishrollover.js
*****************************************
* Copyright (C) 2010 Naoya HIGASHI
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
****************************************/

$(document).ready(function(){
$('[src*="_off."]')
.mouseover(function(){$(this).attr("src",$(this).attr("src").replace(/^(.+)_off(\.[a-z]+)$/,"$1_on$2"));})
.mouseout(function(){$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/,"$1_off$2"));})
.each(function(init){$("<img>").attr("src",$(this).attr("src").replace(/^(.+)_off(\.[a-z]+)$/,"$1_on$2"));})
});

$(document).ready(function(){
$('img[class~="ImgOver"],input[class~="ImgOver"],[class~="ImgOverNav"] img').not('[src*="_on."],[src*="_cr."]')
.mouseover(function(){$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"));})
.mouseout(function(){$(this).attr("src",$(this).attr("src").replace(/^(.+)_on(\.[a-z]+)$/,"$1$2"));})
.each(function(){$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/,"$1_on$2"))})
});

$(document).ready(function(){
$('[src*="_op."],[class~="OpacityOver"],[class~="OpacityOverNav"] img').hover(
function(){$(this).fadeTo(200,0.5);},
function(){$(this).fadeTo(100,1.0);});
});

$(document).ready(function(){
$('[class~="OpacityOverA"],[class~="OpacityOverNavA"] img').hover(
function(){$(this).fadeTo(200,0.6);},
function(){$(this).fadeTo(100,1.0);});
});
