// JavaScript Document

function topNum(){
	if(document.getElementById("top_noFlash")){
		document.getElementById("top_noFlash").setAttribute("active",0);
for(i=1;i<=5;i++){
	document.getElementById("top_num_0"+i).onmouseover=function(){
		
		<!-- デフォルト状態のリセット -->
		if(document.getElementById("top_noFlash").getAttribute("active")==0){
			document.getElementById("top_noFlash_content").style.background='url("images/top_num_content_bg.jpg")';
			for(i=1;i<=5;i++){
				var deImg=document.getElementById("top_num_0"+i);
				for(k=0;k<=1;k++){
					(deImg.childNodes)[k].setAttribute("src",(deImg.childNodes)[k].getAttribute("src").replace("_de","_off"));
				}
			}
		}
		
		<!-- ロールオーバーアクション -->
		for(i=1;i<=5;i++){
			if(i==document.getElementById("top_noFlash").getAttribute("active")){
				document.getElementById("segment0"+i).style.display="none";
				for(k=0;k<=1;k++){
			var active=document.getElementById("top_num_0"+i).childNodes[k];
			active.setAttribute("src",active.getAttribute("src").replace("_ac","_off"));
		}
			}
		}
		var active_num=(this.getAttribute("id")).charAt(9);
		document.getElementById("top_noFlash").setAttribute("active",(this.getAttribute("id")).charAt(9));
		for(k=0;k<=1;k++){
			this.childNodes[k].setAttribute("src",this.childNodes[k].getAttribute("src").replace("_off","_ac"));
		}
		document.getElementById("segment0"+active_num).style.display="block";
	}
}
}
}


if(window.addEventListener) {
	window.addEventListener("load", topNum, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", topNum);
}



