﻿<!--
var loc=stringA=location.href.toLowerCase()
var strhref=""
var strlocation="/";
var len=strlocation.length;
var pos=stringA.indexOf(strlocation)

function lastfilename(stringA){

if (pos>=0){
	stringA=stringA.substring(pos+len,stringA.length);
	while (stringA.indexOf("/")>=0){
		pos=stringA.indexOf("/")
		stringA=stringA.substring(pos+1,stringA.length);
	}
}
return stringA
}	


function lastfoldername(stringA){
if (pos>=0){
	var pos1,pos2
	pos1 = stringA.lastIndexOf("/")//得到所在目录位置end
	stringA=stringA.substring(pos+len,pos1);
	pos2 = stringA.lastIndexOf("/")//得到所在目录位置start
	stringA=stringA.substring(pos2+1,pos1)
	}
return stringA
}
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 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;
}



/*------------------------------------------------------------------------------------------[0]--END*/




/*START--[0]-------------------------------------------------------------------------定义判断类型*/

var lastfoldername=lastfoldername(stringA)

var lastfilename=lastfilename(stringA)

/*------------------------------------------------------------------------------------------[0]--END*/



/*START--[0]------------------------------------------------------links[x] = 这儿输入连接页面--*/



//可添加更多数组

var links = new Array();
links[0] = "http://www.ejarn.jp/index.asp";
links[1] = "http://www.ejarn.jp/news_all.asp";
links[2] = "http://www.ejarn.jp/market_index.asp";
links[3] = "http://www.ejarn.jp/product_index.asp";
links[4] = "http://www.ejarn.jp/company_index.asp";
links[5] = "http://www.ejarn.jp/Type_news_inside.asp?id=12529&classid=4";
//links[6] = "http://www.ejarn.jp/search_index.asp";
//links[7] = "contact_index.asp";


var names = new Array();
names[0] = "Home ";
names[1] = "All News";
names[2] = "Market";
names[3] = "Product";
names[4] = "Company Watch";
names[5] = "Newsletter";
//names[6] = "Search";
//names[7] = "Contact";
                                                       

/*----------------------------------------------------------------------------------------------[0]--END*/

     document.write("<table width='600' border='0' cellspacing='0' cellpadding='0' height='18'>");
     document.write("<tr>") ;
for (var i=0; i<links.length; i++) {

// 判断验证
	temp = links[i].replace(/(.+\/)/,"")
//	document.write(temp) 
//	document.write(anyfoldername) 
//	document.write(lastfilename)
	if (temp!=lastfilename)
	{
// 判断后内容
	   document.write("<td align='left' class='link12'><a id=menu"+[i+1]+" href=\""+links[i]+"\">"+names[i]+"</a></td>");
	   document.write("<td width='25'>&nbsp;</td>");
		}
	else{
   
	   document.write("<td align='left' class='link11' height='18'><a href="+links[i]+">"+names[i]+"</a></td>");
	   document.write("<td width='25'>&nbsp;</td>");
	}
}

document.write("</tr>");
document.write("</table>");
//-->
