// 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, '_r'+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', '_r.png');
				}
				else{
					sTempSrc = this.getAttribute('src');
					this.setAttribute('src', this.getAttribute('hsrc'));
				}
			}	
			
			aImages[i].onmouseout = function() {
				if((this.style.filter)&&(this.style.filter.match(/_r\.png\b/))){//(IE5.5-6 && png)
					this.style.filter = this.style.filter.replace('_r.png', '.png');
				}
				else{
					if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_r'+ftype, ftype);
					this.setAttribute('src', sTempSrc);
				}
			}
		}
	}
}


function loadplural() {
	onMouse();
	setNaviActive();
	setLNaviActive();
}
window.onload = loadplural;

