
Here=window.location.pathname;

slashArray = Here.match(/\//g);
slashNum = slashArray.length;

if (slashNum==1){root="";}
if (slashNum==2){root="../";}
if (slashNum==3){root="../../";}
if (slashNum==4){root="../../../";}
if (slashNum==5){root="../../../../";}
if (slashNum==6){root="../../../../../";}
if (slashNum==7){root="../../../../../../";}
if (slashNum==8){root="../../../../../../../";}



//-------------------------------------------------------------------------------------------
if(navigator.userAgent.indexOf('Mac') != -1) {
	document.write('<LINK REL="stylesheet" TYPE="text/Css" HREF="http://www.fields.biz/css/mac.css" TITLE="Css for MAC">');
	document.close();
}
else {
	document.write('<LINK REL="stylesheet" TYPE="text/Css" HREF="http://www.fields.biz/css/win.css" TITLE="Css for WIN">');
	document.close();
}

h1ov = new Image();h1ov.src= root + 'images/head_profile_over.gif';
h1of = new Image();h1of.src= root + 'images/head_profile_off.gif';
h2ov = new Image();h2ov.src= root + 'images/head_ir_over.gif';
h2of = new Image();h2of.src= root + 'images/head_ir_off.gif';
h3ov = new Image();h3ov.src= root + 'images/head_comp_over.gif';
h3of = new Image();h3of.src= root + 'images/head_comp_off.gif';
h4ov = new Image();h4ov.src= root + 'images/head_products_over.gif';
h4of = new Image();h4of.src= root + 'images/head_products_off.gif';


//----------------------------------------------------
IRhead =
'<IMG src="' + root +'images/blank.gif" width="150" height="3">'+
'<a href="' + root + 'ir/j/index.html">' +
'<IMG src="' + root +'images/head_ir.gif" width="150" height="24" border=0></a> <BR>';

function write_IRhead(n){

if (n=='en'){
IRhead =
'<IMG src="' + root +'images/blank.gif" width="150" height="3">'+
'<a href="' + root + 'ir/en/index.html">' +
'<IMG src="' + root +'images/head_ir.gif" width="150" height="24" border=0></a> <BR>';

document.write(IRhead);document.close();
}

}

//---------------------------------------------------


function link_stocks(n) { //v2.0
  window.open(
"http://quote.yahoo.co.jp/q?s=2767&d=t","",
"toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1");
}

function link_stocks_en(n) { //v2.0
  window.open(
"http://quote.bloomberg.com/apps/quote?ticker=2767:JP","",
"toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1");
}

function link_acrobat(n) { //v2.0
  window.open(
"http://www.adobe.co.jp/products/acrobat/readstep.html","",
"toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1");
}

function pressopen_j(file) { //v2.0
theURL= root + 'ir/j/press/' + file;

  window.open(
theURL,"",
"toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1");

}

function pressopen_en(file) { //v2.0
theURL= root + 'ir/en/press/' + file;

  window.open(
theURL,"",
"toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1");

}

function libopen_j(file) { //v2.0
theURL= root + 'ir/j/library/' + file;
  window.open(
theURL,"",
"toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1");

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function write_FOOTER(n){

P1='<A href="' + root + 'etc/link_a.html" class="link2b">リンク</A>';
P2='<A href="' + root + 'etc/sitemap.html" class="link2b">サイトマップ</A>';
P3='<A href="' + root + 'etc/rule.html" class="link2b">ご利用条件</A>';
P4='<A href="' + root + 'etc/contact.html" class="link2b">お問い合わせ</A>';
if (n=="en"){
P1='<A href="' + root + 'etc/link_a.html" class="link2b">Link</A>';
P2='<A href="' + root + 'etc/sitemap.html" class="link2b">SiteMap</A>';
P3='<A href="' + root + 'etc/rule.html" class="link2b">Leagal disclaimers</A>';
P4='<A href="' + root + 'etc/contact.html" class="link2b">Contact</A>';
}



output="";


output+=	'<TABLE width="750" border="0" cellspacing="0" cellpadding="0" height="20">';
output+=	'<TR bgcolor="#EBEBEB"> <TD><TABLE border="0" cellspacing="0" cellpadding="0"><TR>'; 
output+=	'<TD><IMG src="' + root + 'images/blank.gif" width="15" height="5"></TD>';
output+=	'<TD><A href="' + root + 'index.html" class="link2b">HOME</A></TD>';
output+=	'</TR></TABLE></TD><TD align="right">'; 
output+=	'<TABLE border="0" cellspacing="0" cellpadding="0"><TR>';

output+=	'<TD>' + P1 +'</TD>';
output+=	'<TD><IMG src="' + root + 'images/blank.gif" width="20" height="5"></TD>';
output+=	'<TD>' + P2 +'</TD>';
output+=	'<TD><IMG src="' + root + 'images/blank.gif" width="20" height="5"></TD>';
output+=	'<TD>' + P3 +'</TD>';
output+=	'<TD><IMG src="' + root + 'images/blank.gif" width="20" height="5"></TD>';
output+=	'<TD>' + P4 +'</TD>';
output+=	'<TD><IMG src="' + root + 'images/blank.gif" width="15" height="5"></TD>';

output+=	'</TR></TABLE></TD></TR></TABLE>';

document.write(output);
}