//ロールオーバー（jquery依存）
/*
$(document).ready(function(){
    if (document.getElementsByTagName) {
        var images = $("img");
        for (var i=0; i < images.length; i++) {
            if (images[i].getAttribute("src").match("_off.")) {
                images[i].onmouseover = function() {
                    $(this).animate({opacity:0.6}, {queue : true, duration : "fast", easing : "linear", complete : function () {$(this).attr("src", this.getAttribute("src").replace("_off.", "_on."))}});
                    $(this).animate({opacity:1}, "normal");
                }
                images[i].onmouseout = function() {
                    $(this).animate({opacity:0.6}, {queue : true, duration : "fast", easing : "linear", complete : function () {$(this).attr("src", this.getAttribute("src").replace("_on.", "_off."))}});
                    $(this).animate({opacity:1}, "fast");
                }
            }
        }
    }
});
*/
//ロールオーバーここまで

//ロールオーバー（jquery依存）
$(document).ready(function(){
   
    var aArr   = $("a");
    var imgArr = $("img");
   
    for (var i = 0; i < imgArr.length; i++) {
        if (imgArr[i].getAttribute("src").match("_off.")) {
            imgArr[i].onmouseover = function() {
                //$(this).animate({opacity:0.6}, {queue : true, duration : "fast", easing : "linear", complete : function () {$(this).attr("src", this.getAttribute("src").replace("_off.", "_on."))}});
                $(this).attr("src", this.getAttribute("src").replace("_off.", "_on."));
                //$(this).animate({opacity:1}, "normal");
            }
            imgArr[i].onmouseout = function() {
                //$(this).animate({opacity:0.6}, {queue : true, duration : "fast", easing : "linear", complete : function () {$(this).attr("src", this.getAttribute("src").replace("_on.", "_off."))}});
                $(this).attr("src", this.getAttribute("src").replace("_on.", "_off."));
            }
        }
    }
   
    var IE='\v'=='v';
    if (IE) {
        var classAttr = "className";
    } else {
        var classAttr = "class";
    }
    for (var j = 0; j < aArr.length; j++) {
        if (aArr[j].getAttribute(classAttr)) {
            if (aArr[j].getAttribute(classAttr).match("myOpacity")) {
                aArr[j].onmouseover = function() {
                    $(this).animate({opacity:0.2}, "fast", function(){$(this).animate({opacity:1}, "slow")});
                }
                aArr[j].onmouseout = function() {
                    $(this).animate({opacity:0.4}, "fast", function(){$(this).animate({opacity:1}, "fast")});
                }
            }
        }
    }
});
//ロールオーバーここまで