function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}



<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


//ポップアップウインドウ

function popWin()
{
   var p=popWin.arguments;//　引数の配列オブジェクトをｐに代入
   var n=p.length;//　引数の数を取得
   if(n==1){window.open(p[0]);}
   if(n==3){window.open(p[0],"","width="+p[1]+",height="+p[2]);}
   if(n==5){window.open(p[0],"","width="+p[1]+",height="+p[2]+",left="+p[3]+",top="+p[4]);}
   if(n==6){window.open(p[0],"","width="+p[1]+",height="+p[2]+",left="+p[3]+",top="+p[4]+","+p[5]);}
}
