function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
var subWins = new Array ();
function MM_openBrWindow (uri, winName, w) {
	if (subWins[winName] && !subWins[winName].closed) {
		subWins[winName].close ();
	}
	subWins[winName] = window.open (uri, winName, w);
	subWins[winName].focus ();
}

function MM_reloadPage(init) {//reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
 if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
 obj.visibility=v; }
}

// openWin
function openWin(wUrl,wName,wWidth,wHeight,wResize,wCenter,wScroll){
	if ( document.all || document.layers || document.getElementById ){
		scWidthCenter = screen.availWidth / 2;
		scHeightCenter = screen.availHeight / 2;
	}
	else {
		wCenter = 0;	
	}	
	if ( wCenter == 1 ){
		wOption = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=" + wResize + ",width=" + wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	}
	else {
		wOption = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=" + wResize + ",width=" + wWidth + ",height=" + wHeight;
	}
	window.open(wUrl,wName,wOption);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



/* 新製品情報拡大表示 */
function getScreenAvailWIDTH(){
    if(!!window.screen)
      return screen.availWidth
    else
      return null
}
function getScreenAvailHEIGHT(){
    if(!!window.screen)
      return screen.availHeight
    else
      return null
}
function prospop(url,iw,ih){
	w = iw+94;
	h = ih+71;

	if(!getScreenAvailWIDTH()||!getScreenAvailWIDTH()) return

//--ブラウザ座標設定
var x = parseInt(( getScreenAvailWIDTH()  - w )/2,10)
var y = parseInt(( getScreenAvailHEIGHT() - h )/2,10)

var para =""
+" left="        +x +",top="         +y
+",screenX="     +x +",screenY="     +y
+",toolbar="     +0 +",location="    +0
+",directories=" +0 +",status="      +0
+",menubar="     +0 +",scrollbars="  +0
+",innerWidth="  +w +",innerHeight=" +h
+",width="       +w +",height="      +h
+",resizable="   +1 

var htm =''
+'<?xml version="1.0" encoding="iso-8859-1"?>'+'\n'
+'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+'\n'
+'<html xmlns="http://www.w3.org/1999/xhtml">'+'\n'
+'<head>'+'\n'
+'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />'+'\n'
+'<title>Zoom image</title>'+'\n'
+'<SCRIPT language="JavaScript">'+'\n'
+'<!--'+'\n'
+'function CloseWin(){'+'\n'
+'    window.close();'+'\n'
+'}'+'\n'
+'// -->'+'\n'
+'</SCRIPT>'+'\n'
+'</head>'+'\n'
+'<body style="background-color:#FFF;">'+'\n'
+'<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top:20px;">'+'\n'
+'<tr>'+'\n'
+'<td align="center"><img src="'+url+'" width="'+iw+'" height="'+ih+'"></td>'+'\n'
+'</tr>'+'\n'
+'<tr>'+'\n'
+'<td align="center"><a href="javascript:CloseWin()"><img src="../images/btn_close.gif" alt="close" border="0" style="margin-top:10px" /></a></td>'+'\n'
+'</tr>'+'\n'
+'</table>'+'\n'
+'</body>'+'\n'
+'</html>';

openWin[url]=window.open('','',para);
openWin[url].document.write(htm)
openWin[url].document.close()
openWin[url].moveTo(x,y)
openWin[url].focus();

}

function fontChange(size){
	var id = document.getElementById('maincontents');
	var elements = document.getElementById('');
	
	if( size == 'large' ){
		id.style.fontSize = '140%';
		elements.style.fontSize = '120%';
	} else if ( size == 'middle' ){
		id.style.fontSize = '120%';
		elements.style.fontSize = '110%';
	} else if ( size == 'small' ){
		id.style.fontSize = '100%';
		elements.style.fontSize = '100%';
	} else {
		id.style.fontSize = '12px';
	}
}


function balloon(Num,onMouse){
	var id = document.getElementById('balloon'+Num);
	if( onMouse == 'on' ){
		id.style.display = "block";
	} else {
		id.style.display = "none";
	}
}

function openWin(obj){
	var w = window.open(obj,'3m','width='+window.screen.width+',height='+window.screen.height+',scrollbars=no,resizable=yes');
}

function winClose(){
	window.opener = window;
	var win = window.open( location.href, "_self" );
	win.close();
}
