function smartOver() {
smartRollover('container');
}

function smartRollover(idName) {
if(document.getElementsByTagName) {
var images = document.getElementById(idName).getElementsByTagName("img");
for(var i=0; i < images.length; i++) {


if(images[i].getAttribute("src") != null) {
	if(images[i].getAttribute("src").match(/_n\./))
		{
			fileName = new Array(images[i].getAttribute("src").replace("_n.", "_r."));
			preImages = new Array();
			for (j=0; j<fileName.length; j++)
			{
				preImages[j] = new Image();
				preImages[j].src = fileName[j]; //「_r」の画像をプリロード
			}
			
			images[i].onmouseover = function() {
				this.setAttribute("src", this.getAttribute("src").replace("_n.", "_r.")); //マウスオーバーで_off→_on
			}
			images[i].onmouseout = function() {
				this.setAttribute("src", this.getAttribute("src").replace("_r.", "_n.")); //マウスが離れたら_on→_off
			}
		}
	}
}
}
}
if(window.addEventListener) {
window.addEventListener("load", smartOver, false); //実行
}
else if(window.attachEvent) {
window.attachEvent("onload", smartOver);
}
else{
window.onload = smartOver;
}





    /* ブラウザ判別 */
    var ie=document.all ? 1 : 0;
    var ns6=document.getElementById&&!document.all ? 1 : 0;
    var opera=window.opera ? 1 : 0;

    /* 子メニューの表示・非表示切替 */
    function openchild(childObj, parentObj) {
        var parent="";
        var child="";
        var sw="/img/js/arrowinbox_on.gif"; /* 子メニューが開いてる時のアイコン */
        var hd="/img/js/arrowinbox.gif"; /* 子メニューが閉じている時のアイコン */
        if (ie || ns6 || opera) {
            child=ns6 ? document.getElementById(childObj).style : document.all(childObj).style;
            parent=ns6 ? document.getElementById(parentObj).style : document.all(parentObj).style;
            if (child.display=="none") {
                child.display="block";
                child.backgroundColor="white";
                parent.backgroundColor="orange";
                parent.color="white";
            } else {
                child.display="none";
                parent.backgroundColor="#eeeeee";
                parent.color="black";
            }
        }
    }











