//头文件导航部分
var oldWLoad = window.onload;
window.onload = function()
{
	if(typeof oldWLoad == 'function')
		oldWLoad();
	var localurl = location.href;
	if(localurl == 'http://www.dns.com.cn')
		{document.getElementById('dh1').className="dh_di2";	}
	if(localurl .indexOf('/domain/') != -1)
		{document.getElementById('dh2').className="dh_di2";	}   
	if(localurl .indexOf('/bizsms_xxmz/') != -1)
		{document.getElementById('dh3').className="dh_di2";}   
	if(localurl .indexOf('/mail/') != -1)
		{document.getElementById('dh4').className="dh_di2";	}   
	if(localurl .indexOf('/host/') != -1)
		{document.getElementById('dh5').className="dh_di2";	}   
	if(localurl .indexOf('/bizsms_hdpt/') != -1)
		{document.getElementById('dh6').className="dh_di2";	}
	if(localurl .indexOf('Help/price') != -1)
		{document.getElementById('dh7').className="dh_di2";	}   
	if(localurl .indexOf('Help/help') != -1)
		{document.getElementById('dh8').className="dh_di2";	}  
	if(localurl .indexOf('Help/sitemap') != -1)
		{document.getElementById('dh9').className="dh_di2";	}
}


//tab菜单功能
function showDiv(obj,num,len)
{
 for(var id = 1;id<=len;id++)
 {
  var setID=obj+id;
  var setnavID=obj+"nav"+id;
  if(id==num){
	document.getElementById(setID).style.display="block";
	document.getElementById(setnavID).className="active";
  }else{
	document.getElementById(setID).style.display="none";
	document.getElementById(setnavID).className="";
  }
 }  
}

