document.write("<script type='text/javascript' src='http://pingjs.qq.com/ping.js'></script>");
function changemenu(obj){
	var tname = obj.id.split("_");
	var tnameo=eval(tname[0]);
	for (var i=0;i<tnameo.length;i++){
		document.getElementById(tname[0]+tnameo[i][0]).className="";
		document.getElementById(tname[0]+tnameo[i][1]).style.display="none";
		if(document.getElementById(tname[0]+tnameo[i][0])==obj){
			var num=i;
		}		
	}
	obj.className="now";
	document.getElementById(tname[0]+tnameo[num][1]).style.display="";	
}
function shmenu(bt,objname){
	var obj=document.getElementById(objname);
	if (obj.style.display==""){
		obj.style.display="none";
		bt.className=bt.id+"off";
	}else{
		obj.style.display="";
		bt.className=bt.id+"on";
	}
}
var isIE=!!document.all;
function shcopyright(){
 	//document.domain="qq.com";//封掉该语句，firefox能够成功登录
	fillbottom();
	var oleft  = document.getElementById("leftpart");
	var oright = document.getElementById("rightpart");
	
	if(oleft!=null&&oright!=null){
	    if (oleft.clientHeight>oright.clientHeight){
		        var maxheight=oleft.clientHeight;
	    }else{
		        var maxheight=oright.clientHeight;
	    }
	   if (!isIE){
		      oright.style.height=oleft.style.height=(maxheight+2)+"px";
	   }else{
		      oright.style.height=oleft.style.height=maxheight+2;
	   }
	}
	try{
	   if(typeof(pgvMain) == 'function') 
    	   pgvMain();
	}catch(e){}
}

function fillbottom(){
 	var oCpRight = document.getElementById("copyRightLink");
	if(oCpRight!=null){
	var bottomdiv="<div class='menu'><a href='http://www.tencent.com/' tabindex='-1' target='new'>关于腾讯</a> | <a href='http://www.tencent.com/index_e.shtml' tabindex='-1' target='new'>AboutTencent</a> | <a href='http://www.qq.com/contract.shtml' tabindex='-1' target='new'>服务条款</a> | <a href='http://www.tencent.com/adver/' tabindex='-1' target='new'>广告服务</a> | <a href='http://hr.tencent.com' tabindex='-1' target='new'>腾讯招聘</a> | <a href='http://service.qq.com/' tabindex='-1' target='new'>客服中心</a> | <a href='http://www.qq.com/map/' tabindex='-1' target='new'>网站导航</a></div>\
  <strong class='num'>Copyright &copy; 1998 - 2008 TENCENT Inc. <a href='http://www.tencent.com.hk/law/mo_law_e.shtml?/law/copyright_e.htm' tabindex='-1' target='new' class='clink'>All Rights Reserved</a></strong><br />\
   腾讯公司 <a href='http://www.tencent.com/law/mo_law.shtml?/law/copyright.htm' tabindex='-1' target='new' class='clink'>版权所有</a>";
  oCpRight.innerHTML = bottomdiv;
  }//if
}
//window.onload = shcopyright;
