// mouseover ------------------------------------------------------------------------------------------------------------
function onMouse() {
    if (!document.getElementById) return
    
    var aPreLoad = new Array();
    var sTempSrc;
    var aImages = document.getElementsByTagName('img');

    for (var i = 0; i < aImages.length; i++) {
        if (aImages[i].className == 'ov') {
            var src = aImages[i].getAttribute('src');
            var ftype = src.substring(src.lastIndexOf('.'), src.length);
            var hsrc = src.replace(ftype, '-over'+ftype);

            aImages[i].setAttribute('hsrc', hsrc);
            
            aPreLoad[i] = new Image();
            aPreLoad[i].src = hsrc;
            
            aImages[i].onmouseover = function() {
                if((this.style.filter)&&(this.style.filter.match(/.\.png\b/))){//(IE5.5-6 && png)
                    this.style.filter = this.style.filter.replace('.png', '-over.png');
                }
                else{
                    sTempSrc = this.getAttribute('src');
                    this.setAttribute('src', this.getAttribute('hsrc'));
                }
            }   
            
            aImages[i].onmouseout = function() {
                if((this.style.filter)&&(this.style.filter.match(/-over\.png\b/))){//(IE5.5-6 && png)
                    this.style.filter = this.style.filter.replace('-over.png', '.png');
                }
                else{
                    if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('-over'+ftype, ftype);
                    this.setAttribute('src', sTempSrc);
                }
            }
        }
    }
}


function loadplural() {
    onMouse();
}
window.onload = loadplural;

