window.onload = function(){
//现取得地址栏的地址
var current_url = document.location.href;
//遍历所有页面上的链接
var links = document.getElementById("menu").getElementsByTagName("a");

	for(var l_ = 2;l_ < links.length;l_ ++)
	{
		//取得每个连接的信息
		var links_ = links[l_].getAttribute("href");
		if(current_url.indexOf(links_) != -1)
		{
			document.getElementById("menu").getElementsByTagName("li")[l_].className = "current";
		}
	}
}
