function show(layer_id) {
	if(layer_id=='layer-zp'){
		document.getElementById(layer_id).style.display="block";
		document.getElementById('btn-zp').src='/zh-cn/images/button-zp-hover.gif';}
	else if(layer_id=='layer-qz'){
		document.getElementById(layer_id).style.display="block";
		document.getElementById('btn-qz').src='/zh-cn/images/button-qz-hover.gif';
	}else{
		document.getElementById(layer_id).style.visibility="visible";
	}
}
function hidden(layer_id){
	if(layer_id=='layer-zp'){
		document.getElementById(layer_id).style.display="none";
		document.getElementById('btn-zp').src='/zh-cn/images/button-zp.gif';
	}else if(layer_id=='layer-qz'){
		document.getElementById(layer_id).style.display="none";
		document.getElementById('btn-qz').src='/zh-cn/images/button-qz.gif';
	}else{
		document.getElementById(layer_id).style.visibility="hidden";
	}
}

function openWin(url, widthPercent, heightPercent, otherPara) {
	var wp = .7;
	var hp = .8;
	if (typeof(widthPercent)!='undefined'  && widthPercent!='')  wp = widthPercent;
	if (typeof(heightPercent)!='undefined' && heightPercent!='') hp = heightPercent;

	var width  = screen.width*wp;
	var height = screen.height*hp;
	var str = "toolbar,location,directories,status,scrollbars,menubar,resizable,copyhistory,height="+height+",";
	str += ",width=" + width;
	var xc = (1-wp)/2 * screen.width;
	var yc = (1-hp)/2 * screen.height - 20;
	str += ",left=" + xc;
	str += ",top=" + yc;

	if (typeof(otherPara)!='undefined' && otherPara!='') str += "," + otherPara;

	window.open(url, 'xwin', str);
}

function doShowNews(id) {
    openWin('/zh-cn/info/readinfo?id='+id, 0.9, 0.75);
}
function doShowCate(id){
	openWin('/zh-cn/info/infolist?category='+id,0.9,0.75);
}
function doShowTeacher(id){
	openWin('/zh-cn/cognition/readinfo?id='+id,0.9,0.75);
}