﻿/**
导航菜单点击显示相应的图
**/
<!--
function getObject(objectId) {
 if(document.getElementById && document.getElementById(objectId)) {
	// 获取对 ID 标签属性为指定值的第一个对象的引用。
	return document.getElementById(objectId);
 } else if (document.all && document.all(objectId)) {
	// 返回对象所包含的元素集合的引用。
	return document.all(objectId);
 } else if (document.layers && document.layers[objectId]) {
	// document.layers判断NETSPACE浏览器.document.all判断IE浏览器
	return document.layers[objectId];
 } else {
	return false;
 }
} // getObject
function changeClassName(id)
{
for(var i=1;i<7;i++)
   {
   if(i==id)
     {
		 getObject("menu"+i).src="top"+i+"b.png";
	 }
   else
     {
		 getObject("menu"+i).src=""
	}
}
}
function showlink(n,id){
//var id = getparastr("idname");
//document.write (id);
//document.getElementById(n).style.background=strPic;
for(var i=1;i<n+1;i++)
   {
   if(i==id)
     {
		 getObject("menu"+i).src="images/2011/bt/top"+i+".png";
	 }
   else
     {
		 
	 }
}
}
function getparastr(strname)
  {
   var hrefstr,pos,parastr,para,tempstr;
   hrefstr = window.location.href;
   pos = hrefstr.indexOf("?")
   parastr = hrefstr.substring(pos+1);
   para = parastr.split("&");
   tempstr="";
   for(i=0;i<para.length;i++)
   {
    tempstr = para[i];
    pos = tempstr.indexOf("=");
    if(tempstr.substring(0,pos) == strname)
    {
     return tempstr.substring(pos+1);
     }
   }
   return null;
  }
function ChangeDiv(divId,divName,zDivCount) 
{ 
 for(i=0;i<=zDivCount;i++)
 {
     document.getElementById(divName+i).style.display="none";
	 document.getElementById(divName+i+'_1').className="div11011402"; 
 }
 document.getElementById(divName+divId).style.display="block";
 document.getElementById(divName+divId+'_1').className="div11011401-2";  
} 

