<!--
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] = "intro";
links[1] = "news";
links[2] = "#";
links[3] = "#";
links[4] = "case";
links[5] = "feedback";
links[6] = "contact";

var name = new Array();
name[0] = "Image5";
name[1] = "Image6";
name[2] = "Image7";
name[3] = "Image8";

var pic = new Array();
pic[0] = " images/index/mune_1.jpg";
pic[1] = " images/index/mune_2.jpg";
pic[2] = " images/index/mune_3.jpg";
pic[3] = " images/index/mune_4.jpg";
pic[4] = " images/index/mune_5.jpg";
pic[5] = " images/index/mune_6.jpg";
pic[6] = " images/index/mune_8.jpg";

var pic1 = new Array()
pic1[0] = " ../images/7_27/up2.jpg";
pic1[1] = " ../images/7_27/up3.jpg";
pic1[2] = " ../images/7_27/up4.jpg";
pic1[3] = " ../images/7_27/up5.jpg";
/*----------------------------------------------------------------------------------------------[0]--END*/

     document.write("<table width='420' 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><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><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>");
	//-->


