<!--
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
}

/*------------------------------------------------------------------------------------------[0]--END*/

/*START--[0]-------------------------------------------------------------------------定义判断类型*/

var lastfoldername=lastfoldername(stringA)

/*------------------------------------------------------------------------------------------[0]--END*/

/*START--[0]------------------------------------------------------links[x] = 这儿输入连接页面--*/

//可添加更多数组
var links = new Array();
links[0] = "../index";
links[1] = "../company";
links[2] = "../news";
links[3] = "../kehu";
links[4] = "../service";
links[5] = "../jingying";
links[6] = "../join";
links[7] = "../contant";

var name = new Array();
name[0] = "Image1";
name[1] = "Image2";
name[2] = "Image3";
name[3] = "Image4";
name[4] = "Image5";
name[5] = "Image6";
name[6] = "Image7";
name[7] = "Image8";

var pic = new Array();
pic[0] = "../../images/buttom/index/menu_01.gif";
pic[1] = "../../images/buttom/index/menu_02.gif";
pic[2] = "../../images/buttom/index/menu_03.gif";
pic[3] = "../../images/buttom/index/menu_04.gif";
pic[4] = "../../images/buttom/index/menu_05.gif";
pic[5] = "../../images/buttom/index/menu_06.gif";
pic[6] = "../../images/buttom/index/menu_07.gif";
pic[7] = "../../images/buttom/index/menu_08.gif";

var pic1 = new Array()
pic1[0] = "../../images/buttom/index/menu_01.gif";
pic1[1] = "../../images/buttom/index/menu_02.gif";
pic1[2] = "../../images/buttom/index/menu_03.gif";
pic1[3] = "../../images/buttom/index/menu_04.gif";
pic1[4] = "../../images/buttom/index/menu_05.gif";
pic1[5] = "../../images/buttom/index/menu_06.gif";
pic1[6] = "../../images/buttom/index/menu_07.gif";
pic1[7] = "../../images/buttom/index/menu_08.gif";
/*----------------------------------------------------------------------------------------------[0]--END*/

     document.write("<table border='0'cellspacing='0' cellpadding='0'>");
     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 == lastfoldername){
	
// 判断后内容
    document.write("<td align='left'><a href='"+links[i]+"'  id=menu"+[i+1]+"><img src='"+pic1[i]+"' id=button"+[1+i]+" name=button"+[1+i]+" border='0'></a></td>");
	}
	else{
	document.write("<td align='left'><a href='"+links[i]+"'  id=menu"+[i+1]+"><img src='"+pic[i]+"' id=button"+[1+i]+" name=button"+[1+i]+" border='0'></a></td>");
	}
}
document.write("</tr>");
document.write("</table>");
	//-->