/* /scripts/thisSolutionPages.js */
/*--------------------------------------------------------------------------
[lonson龙贞自动化 网站] 高亮显示本页 解决方案及产品页 js脚本

Site:    http://www.lonson-auto.com
Version: 1.0
Date:    2007/11/28
Author:  assassinice
Email:   assassinice@126.com

注释关键字列表：  
	TODO   表示某些需要在以后进行修改、修复或复查的样式
	BUG    表示代码或特定浏览器遇到的问题
	KLUDGE 表示不完善的权宜之计
	TRICKY 表示特别复杂的代码段
---------------------------------------------------------------------------*/

function thisPages() {
	// 检验是否支持getElementById()属性及所需节点是否存在
	if(!document.getElementById) return false;
	if(!document.getElementById("navBox")) return false;

	notLinksUls();
	/*
	var navBox = document.getElementById("navBox");
	var h4s = navBox.getElementsByTagName("h4");
	var links = navBox.getElementsByTagName("a");
	for(var i=0; i<links.length; i++) {
		if(window.location.href.indexOf(links[i].getAttribute("href")) != -1) {
			links[i].parentNode.parentNode.style.display = "block";
			links[i].parentNode.parentNode.parentNode.getElementsByTagName("a")[0].className = "now";
		}
	}
	*/
	if(window.location.href.indexOf("001002") != -1)
	{
		document.getElementById("solutionBox").style.display = "block";
		document.getElementById("v1").className = "now"
	}
	if(window.location.href.indexOf("001003") != -1)
	{
		document.getElementById("myProduct").style.display = "block";
		document.getElementById("v2").className = "now"
	}
	if(window.location.href.indexOf("001004") != -1)
	{
		document.getElementById("actingProduct").style.display = "block";
		document.getElementById("v3").className = "now"
	}
	return null;
}

addLoadEvent(thisPages);