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 New(year,month,day)
{
　　　var Today=new Date();
　　　var New=new Date(year,month-1,day);

　　　day=Math.ceil((Today.getTime()-New.getTime())/86400000);

　　　if( day<=3 )　　　　/*期間*/
　　　　　document.write("　<span class='new_day'>NEW</span>");
　　　else
　　　　　document.write("");
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function formWindow(url, windowName)
{
    if (navigator.appVersion.indexOf("MSIE 7") > 0)
        window.open(url, windowName, 'scrollbars=yes');
    else
        window.open(url, windowName, 'location=1,status=1,scrollbars=1,toolbar=0,menubar=1');
}