function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_ro'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = initRollovers;

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.01
  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 && d.getElementById) x=d.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];}
}

function doZoom(str1,str2){
	document.getElementById("wraper").style.fontSize=str1+"%";
	switch (str2){
	case "1":
		document.getElementById("font1").innerHTML='<img src="/img/common/hd_small_on.gif" alt="小" width="15" height="15" border="0" /><br />';
		document.getElementById("font2").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f2\',\'\',\'/img/common/hd_middle_on.gif\',0)" onclick="doZoom(\'100\',\'2\');"><img src="/img/common/hd_middle.gif" name="f2" alt="中" width="17" height="17" border="0" /></a><br />';
		document.getElementById("font3").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f3\',\'\',\'/img/common/hd_big_on.gif\',0)" onclick="doZoom(\'115\',\'3\');"><img src="/img/common/hd_big.gif" name="f3" alt="大" width="18" height="18" border="0" /></a><br />';
	break;
	case "2":
		document.getElementById("font1").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f1\',\'\',\'/img/common/hd_small_on.gif\',0)" onclick="doZoom(\'90\',\'1\');"><img src="/img/common/hd_small.gif" name="f1" alt="小" width="15" height="15" border="0" /></a><br />';
		document.getElementById("font2").innerHTML='<img src="/img/common/hd_middle_on.gif" alt="中" width="17" height="17" border="0" /><br />';
		document.getElementById("font3").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f3\',\'\',\'/img/common/hd_big_on.gif\',0)" onclick="doZoom(\'115\',\'3\');"><img src="/img/common/hd_big.gif" name="f3" alt="大" width="18" height="18" border="0" /></a><br />';
	break;
	case "3":
		document.getElementById("font1").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f1\',\'\',\'/img/common/hd_small_on.gif\',0)" onclick="doZoom(\'90\',\'1\');"><img src="/img/common/hd_small.gif" name="f1" alt="小" width="15" height="15" border="0" /></a><br />';
		document.getElementById("font2").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f2\',\'\',\'/img/common/hd_middle_on.gif\',0)" onclick="doZoom(\'100\',\'2\');"><img src="/img/common/hd_middle.gif" name="f2" alt="中" width="17" height="17" border="0" /></a><br />';
		document.getElementById("font3").innerHTML='<img src="/img/common/hd_big_on.gif" alt="大" width="18" height="18" border="0" /><br />';
	break;
	default:
		document.getElementById("font1").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f1\',\'\',\'/img/common/hd_small_on.gif\',0)" onclick="doZoom(\'90\',\'1\');"><img src="/img/common/hd_small.gif" name="f1" alt="小" width="15" height="15" border="0" /></a><br />';
		document.getElementById("font2").innerHTML='<img src="/img/common/hd_middle_on.gif" alt="中" width="17" height="17" border="0" /><br />';
		document.getElementById("font3").innerHTML='<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'f3\',\'\',\'/img/common/hd_big_on.gif\',0)" onclick="doZoom(\'115\',\'3\');"><img src="/img/common/hd_big.gif" name="f3" alt="大" width="18" height="18" border="0" /></a><br />';
	break;
	}
}
function header(){
	
	//var hostname = "http://"+location.hostname+"/";
	var localurl = location.href;
	var last=localurl.replace("http://","");
	var col=new Array();  
	var col=last.split("/")
	
	switch (col[1]){
		case "product":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01_on.jpg" alt="商品・サービス" width="144" height="44" border="0" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "support":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02_on.jpg" alt="お問い合わせ・サポート" width="141" height="44" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "csr":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05_on.jpg" alt="環境・社会活動（CSR）" width="141" height="44" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "company":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03_on.jpg" alt="企業情報" width="141" height="44" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "ir":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04_on.jpg" alt="投資家の皆様へ" width="141" height="44" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "koukoku":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04_on.jpg" alt="投資家の皆様へ" width="141" height="44" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "saiyo":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06_on.jpg" alt="採用情報" width="142" height="44" border="0" /></a><br /></li></ul></div></div>');
		break;
		case "software-copyright":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01_on.jpg" alt="商品・サービス" width="144" height="44" border="0" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		default:
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/product/index.html"><img src="/img/common/menu01.jpg" alt="商品・サービス" width="144" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/support/index.html"><img src="/img/common/menu02.jpg" alt="お問い合わせ・サポート" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/company/index.html"><img src="/img/common/menu03.jpg" alt="企業情報" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/ir/index.html"><img src="/img/common/menu04.jpg" alt="投資家の皆様へ" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/csr/index.html"><img src="/img/common/menu05.jpg" alt="環境・社会活動（CSR）" width="141" height="44" class="imgover" /></a><br /></li><li><a href="/saiyo/index.html"><img src="/img/common/menu06.jpg" alt="採用情報" width="142" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
	}
}

function eheader(){
	
	//var hostname = "http://"+location.hostname+"/";
	var localurl = location.href;
	var last=localurl.replace("http://","");
	var col=new Array();  
	var col=last.split("/")
	
	switch (col[2]){
		case "company":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/english/company/index.html"><img src="/img/english/m01_on.jpg" alt="CORPORATE INFO" width="290" height="44" border="0" /></a><br /></li><li><a href="/english/ir/index.html"><img src="/img/english/m02.jpg" alt="INVESTOR RELATIONS" width="280" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/english/product/index.html"><img src="/img/english/m03.jpg" alt="PRODUCT LINE UP" width="280" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "ir":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/english/company/index.html"><img src="/img/english/m01.jpg" alt="CORPORATE INFO" width="290" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/english/ir/index.html"><img src="/img/english/m02_on.jpg" alt="INVESTOR RELATIONS" width="280" height="44" border="0" /></a><br /></li><li><a href="/english/product/index.html"><img src="/img/english/m03.jpg" alt="PRODUCT LINE UP" width="280" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
		case "product":
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/english/company/index.html"><img src="/img/english/m01.jpg" alt="CORPORATE INFO" width="290" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/english/ir/index.html"><img src="/img/english/m02.jpg" alt="INVESTOR RELATIONS" width="280" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/english/product/index.html"><img src="/img/english/m03_on.jpg" alt="PRODUCT LINE UP" width="280" height="44" border="0" /></a><br /></li></ul></div></div>');
		break;

		default:
			document.write('<div id="navi"><div class="menus"><ul><li><a href="/english/company/index.html"><img src="/img/english/m01.jpg" alt="CORPORATE INFO" width="290" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/english/ir/index.html"><img src="/img/english/m02.jpg" alt="INVESTOR RELATIONS" width="280" height="44" border="0" class="imgover" /></a><br /></li><li><a href="/english/product/index.html"><img src="/img/english/m03.jpg" alt="PRODUCT LINE UP" width="280" height="44" border="0" class="imgover" /></a><br /></li></ul></div></div>');
		break;
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function newWin(str){
window.open (str, "newwindow", "height=700, width=696, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no")
}

