function showLayer(){
obj=document.getElementById('indexlinks');
if(obj.style.visibility=="hidden"){obj.style.visibility=''}
else{obj.style.visibility='hidden'}
}

function banner(){
document.writeln("	<div style=\"height:240px;position:absolute;width:670px;\">");
document.writeln("	<object classid=\"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000\" id=\"obj1\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" border=\"0\" width=\"670\" height=\"240\">");
document.writeln("		<param name=\"movie\" value=\"JSE/BLSbanner.swf\">");
document.writeln("		<param name=\"quality\" value=\"High\">");
document.writeln("		<param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"transparent\">");
document.writeln("		<embed src=\"JSE/BLSbanner.swf\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" name=\"obj1\" width=\"670\" height=\"240\" quality=\"High\" menu=\"false\"></object>");
document.writeln("	</div>");
}

function showBtmLayer(Stype){
if(Stype=="A"){
	document.getElementById('LayerA').style.display='block';
	document.getElementById('LayerB').style.display='none';
	}
else{
	document.getElementById('LayerA').style.display='none';
	document.getElementById('LayerB').style.display='block';
	}	
}

function getNewsData(){
var nHTML="";
if(typeof(NewsData)!="undefined"){
	for(i=0;i<NewsData.length;i++){
		nHTML+='<br>·<a target="_blank" href="http://dwzy.xbmu.edu.cn/xw/ReadNews.asp?NewsID='+NewsData[i][0]+'" title="'+NewsData[i][1]+"\n"+NewsData[i][2]+'">'+NewsData[i][1].substring(0,23)+'</a>';
		}
	}
else nHTML="<br><br>新闻数据加载失败，可能是数据链接出错！";
document.getElementById("xnews").innerHTML=nHTML;
}