window.onload=function()
{
	if (document.getElementById("promoters_list") != null)
	{
	var promoters=document.getElementById("promoters_list").getElementsByTagName("li").length;
	var promoter=document.getElementById("promoters_list").getElementsByTagName("li");
	promoter[0].style.background="#DBF8F4";
	for (i=0;i<promoters;i++)
	{
		promoter[i].onmouseover=function()
		{
			
			promoter[0].style.background="none";
			this.style.background="#DBF8F4";
		}
		promoter[i].onmouseout=function()
		{
			this.style.background="#F7FFF2";
		}
	}
	}
	
	if (document.getElementById("scenario_list") != null)
	{
	var scenario_len=document.getElementById("scenario_list").getElementsByTagName("li").length;
	var scenario=document.getElementById("scenario_list").getElementsByTagName("li");
	scenario[0].style.background="#DBF8F4";
	for (i=0;i<scenario_len;i++)
	{
		scenario[i].onmouseover=function()
		{
			
			scenario[0].style.background="none";
			this.style.background="#DBF8F4";
		}
		scenario[i].onmouseout=function()
		{
			this.style.background="#E9E9E9";
		}
	}
	}
	
	if (document.getElementById("scenario_lists") != null)
	{
	var scenario_lens=document.getElementById("scenario_lists").getElementsByTagName("li").length;
	var scenarios=document.getElementById("scenario_lists").getElementsByTagName("li");
	scenarios[0].style.background="#DBF8F4";
	for (i=0;i<scenario_lens;i++)
	{
		scenarios[i].onmouseover=function()
		{
			
			scenarios[0].style.background="none";
			this.style.background="#DBF8F4";
		}
		scenarios[i].onmouseout=function()
		{
			this.style.background="#E9E9E9";
		}
	}
	}
	
	}
	/*var   url   =   window.location.pathname;   
var   pos     =     url.lastIndexOf("/",url.length);    
url   =   url.substr(pos+1,url.length-pos);
alert (url);
	if (url == 'anli.asp')
	{
		document.getElementById("gc").className="press";
	}
	if (url == 'aboutus.asp')
	{
		document.getElementById("gk").className="press";
	}
	if (url == 'jianguan.asp')
	{
		document.getElementById("jl").className="press";
	}
	if (url == 'news.asp')
	{
		document.getElementById("gs").className="press";
	}
	if (url == 'info.asp')
	{
		document.getElementById("zx").className="press";
	}
	if (url == 'jianshang.asp')
	{
		document.getElementById("sj").className="press";
	}
	if (url == 'zhaopin.asp')
	{
		document.getElementById("jm").className="press";
	}*/
function pro(no)
{
	for (i=1;i<=3;i++)
	{
		if (no == "pro_title"+i)
		{
			document.getElementById("pro_title"+i).className="press";
			document.getElementById("pro_title"+i).style.color="#000";
			document.getElementById("pro_con"+i).style.display="block";
		}
		else
		{
			document.getElementById("pro_title"+i).className="";
			document.getElementById("pro_con"+i).style.display="none";
		}
	}
}
function pros(no)
{
	for (i=1;i<=3;i++)
	{
		if (no == "pro_titles"+i)
		{
			document.getElementById("pro_titles"+i).className="press";
			document.getElementById("pro_titles"+i).style.color="#000";
			document.getElementById("pro_cons"+i).style.display="block";
		}
		else
		{
			document.getElementById("pro_titles"+i).className="";
			document.getElementById("pro_cons"+i).style.display="none";
		}
	}
}


 