var bBigSite = window.location.href.indexOf("gate/big5")<0?false:true;
//innerText 在firfox中兼容处理  ---start
function isIE(){ //ie?
   if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1) 
    return true; 
   else 
    return false; 
} 

if(!isIE()){ //firefox innerText define
   HTMLElement.prototype.__defineGetter__(     "innerText", 
    function(){
     var anyString = "";
     var childS = this.childNodes;
     for(var i=0; i<childS.length; i++) {
      if(childS[i].nodeType==1)
       anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText;
      else if(childS[i].nodeType==3)
       anyString += childS[i].nodeValue;
     }
     return anyString;
    } 
   ); 
   HTMLElement.prototype.__defineSetter__(     "innerText", 
    function(sText){ 
     this.textContent=sText; 
    } 
   ); 
}
//innerText 在firfox中兼容处理  ---end
function menuFix() { 
var sfEls = document.getElementById("nav").getElementsByTagName("li"); 
var sfEls1 = document.getElementById("nav1").getElementsByTagName("li"); 
var sfEls2 = document.getElementById("nav2").getElementsByTagName("li"); 
var sfEls3 = document.getElementById("nav3").getElementsByTagName("li"); 
var sfEls4 = document.getElementById("nav4").getElementsByTagName("li"); 

for (var i=0; i<sfEls.length; i++) { 
sfEls[i].onmouseover=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls[i].onMouseDown=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls[i].onMouseUp=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
""); 
} 
} 
for (var i=0; i<sfEls1.length; i++) { 
sfEls1[i].onmouseover=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls1[i].onMouseDown=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls1[i].onMouseUp=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls1[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
""); 
} 
} 
for (var i=0; i<sfEls2.length; i++) { 
sfEls2[i].onmouseover=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls2[i].onMouseDown=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls2[i].onMouseUp=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls2[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
""); 
} 
} 
for (var i=0; i<sfEls3.length; i++) { 
sfEls3[i].onmouseover=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls3[i].onMouseDown=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls3[i].onMouseUp=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls3[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
""); 
} 
} 
for (var i=0; i<sfEls4.length; i++) { 
sfEls4[i].onmouseover=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls4[i].onMouseDown=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls4[i].onMouseUp=function() { 
this.className+=(this.className.length>0? " ": "") + "sfhover"; 
} 
sfEls4[i].onmouseout=function() { 
this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
""); 
} 
} 
} 
function header(){
	document.write("<style type= 'ext/css '> ");
	document.write("ul{list-style:none;}");
	document.write("</style>");

   document.write("<table width=991 border=0 cellpadding=0 cellspacing=0>");
	document.write("<tr><td width=110 height=24><img src='http://www.fmprc.gov.cn/chn/images/gxh01.jpg' width=110 height=24 border=0></td>");
	document.write("<td width=184><img src='http://www.fmprc.gov.cn/chn/images/gxh02.jpg' width=184 height=24 border=0></td>");
	document.write("<td width=226><img src='http://www.fmprc.gov.cn/chn/images/gxh03.jpg' width=226 height=24 border=0></td>");
	document.write("<td width=471 colspan=3 align=center>");
			document.write("<table width=471 border=0 cellpadding=0 cellspacing=0>");
			document.write("<tr><td width=93><img src='http://www.fmprc.gov.cn/chn/images/gxh13.jpg' width=93 height=24 border=0></td>");
			if(bBigSite){
				document.write("<td width=54><a href='ht"+"tp://www.fmprc.gov.cn'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh14_gbk.jpg' width=54 height=24 border=0></a></td>");
			}else{
				document.write("<td width=54><a href='ht"+"tp://big5.fmprc.gov.cn/gate/big5/www.fmprc.gov.cn'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh14.jpg' width=54 height=24 border=0></a></td>");
			}
			document.write("<td width=15><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh15.jpg' width=15 height=24 border=0></td>");
			document.write("<td width=42><a href='ht"+"tp://www.fmprc.gov.cn/eng/default.htm'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh16.jpg' width=42 height=24 border=0></a></td>");
			document.write("<td width=12><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh17.jpg' width=12 height=24 border=0></td>");
			document.write("<td width=45><a href='ht"+"tp://www.fmprc.gov.cn/fra/'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh18.jpg' width=45 height=24 border=0></a></td>");
			document.write("<td width=16><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh19.jpg' width=16 height=24 border=0></td>");
			document.write("<td width=50><a href='ht"+"tp://www.fmprc.gov.cn/rus/default.htm'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh20.jpg' width=50 height=24 border=0></a></td>");
			document.write("<td width=15><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh21.jpg' width=15 height=24 border=0></td>");
			document.write("<td width=41><a href='ht"+"tp://www.fmprc.gov.cn/esp/default.htm'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh22.jpg' width=41 height=24 border=0></a></td>");
			document.write("<td width=17><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh23.jpg' width=17 height=24 border=0></td>");
			document.write("<td width=36><a href='ht"+"tp://www.fmprc.gov.cn/ara/'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh24.jpg' width=36 height=24 border=0></a></td>");
			document.write("<td width=35><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh25.jpg' width=35 height=24 border=0></td>");
			document.write("</tr>");
			document.write("</table>");
	document.write("</td></tr>");
	document.write("<tr><td width=110 height=80><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh04.jpg' width=110 height=80 border=0></td>");
	document.write("<td width=184><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh05.jpg' width=184 height=80 border=0></td>");
	document.write("<td width=226><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh06.jpg' width=226 height=80 border=0></td>");
	document.write("<td width=163><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh07.jpg' width=163 height=80 border=0></td>");
	document.write("<td width=165><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh08.jpg' width=165 height=80 border=0></td>");
	document.write("<td width=143><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh09.jpg' width=143 height=80 border=0></td></tr>");
	document.write("<tr><td width=991 height=25 colspan=6 background='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh27.jpg'>");
			document.write("<!---- 导航 S ---->");
			document.write("<table border=0 cellpadding=0 cellspacing=0 align=left>");
			document.write("<tr>");
			document.write("<td width=30><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/c.gif' width=30 height=1 border=0></td>");
			document.write("<td width=45><a href='http://www.fmprc.gov.cn/chn/gxh/tyb/' class=daohang0><font color=#CE0001>首&nbsp;&nbsp;页</font></a>&nbsp;</td>");
			document.write("<td> <ul id='nav'> ");
			document.write("	<li><a href='http://www.fmprc.gov.cn/chn/pds/wjb/' class=daohang valign=middle><font color=#CE0001>外交部</font></a>");
			document.write("	<UL>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/zyzz/'>主要职责</A> ");
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/wjbz/'>外交部长</A> ");
			document.write("		</LI>");

			document.write("		<LI  style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/zygy/'>主要官员</A> ");
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/zzjg/'>组织机构</A> ");
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/zwjg/'>驻外机构</A> ");
			document.write("		</LI>");
			document.write("		<LI style='width:90'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/zgags/'>驻港、澳公署</A> ");
			document.write("		</LI>");
			document.write("		<LI style='width:90'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/cgwjb/'>参观外交部</A>");
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjb/gbclc/'>干部考录</A>"); 
			document.write("		</LI>");
	document.write("</UL> ");
			document.write("	</li>");
			
			document.write("</td>");
			document.write("<td><ul id='nav1'> ");
			document.write("<li><a href='http://www.fmprc.gov.cn/chn/pds/wjdt/' class=daohang valign=bottom><font color=#CE0001>外交动态</font></a>");
			document.write("   <UL>");
			document.write("		<LI  style='width:78'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/gjldrhd/'>领导人活动</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/wsrc/'>外事日程</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:78'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/wjbxw/'>外交部新闻</A> ");
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/sjxw/'>司局新闻</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:70'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/fyrbt/'>发言人表态</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:60'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/cfhsl/'>吹风会</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/dsrm/'>大使任免</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/zwbd/'>驻外报道</A>"); 
			document.write("		</LI>");
			document.write("		<LI style='width:68'><A ");
			document.write("		href='http://www.fmprc.gov.cn/chn/pds/wjdt/lsdt/'>领事动态</A>"); 
			document.write("		</LI></UL> ");
			document.write("	</li>");
				document.write("</ul>");
			document.write("</td>");
			document.write("<td><ul id='nav2'> ");
				document.write("<li><a href='http://www.fmprc.gov.cn/chn/pds/gjhdq/' class=daohang valign=bottom><font color=#CE0001>国家和组织</font></a>");
				document.write(" <UL>");
				document.write("	<LI  style='width:84'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/gjhdq/gj/'>国家（地区）</A>"); 
				document.write("	</LI>");
				document.write("	<LI  style='width:86'><A ");
				 document.write("  href='http://www.fmprc.gov.cn/chn/pds/gjhdq/gjhdqzz/'>国际和地区组织</A>"); 
					document.write("</LI></UL> ");
				document.write("</li>");
				document.write("</ul>");
			document.write("</td>");
			document.write("<td><ul id='nav3'> ");
			document.write("<li><a href='http://www.fmprc.gov.cn/chn/pds/ziliao/' class=daohang valign=bottom><font color=#CE0001>资&nbsp;&nbsp;料</font></a>");
				document.write("<UL>");
					document.write("<LI style='width:68'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/zyjh/'>重要讲话</A>"); 
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/1179/'>声明公报</A>"); 
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/tytj/'>条约文件</A> ");
					document.write("</LI>");
					document.write("<LI style='width:92'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/wjs/'>中国外交历程</A> ");
					document.write("</LI>");
					document.write("<LI style='width:92'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/wjrw/'>中国外交人物</A> ");
					document.write("</LI>");
					document.write("<LI style='width:92'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/historytoday/'>外交史上的今天</A> ");
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
				   document.write("href='http://www.fmprc.gov.cn/chn/pds/ziliao/lszs/'>领事知识</A> ");
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/lbzs/'>礼宾知识</A> ");
					document.write("</LI>");
					document.write("<LI style='width:106'><A ");
				   document.write("href='http://www.fmprc.gov.cn/chn/pds/ziliao/2193/'>建交国家一览表</A> ");
					document.write("</LI>");
					document.write("<LI style='width:106'><A ");
				   document.write("href='http://www.fmprc.gov.cn/chn/pds/ziliao/wjgmc/'>驻华外交官名册</A> ");
					document.write("</LI>");
					document.write("<LI style='width:48'><A ");
				  document.write(" href='http://www.fmprc.gov.cn/chn/pds/ziliao/zt/'>专&nbsp;&nbsp;题</A> ");
					document.write("</LI></UL>			</li>");
				document.write("</ul>");
			document.write("</td>");
			document.write("<td><ul id='nav4'> ");
			document.write("<li><a href='http://www.fmprc.gov.cn/chn/pds/fw/' class=daohang valign=bottom><font color=#CE0001>服&nbsp;&nbsp;务</font></a>");
				document.write("<UL>");
					document.write("<LI style='width:68'><A ");
					document.write("href='http://www.fmprc.gov.cn/chn/pds/fw/xwmtfw/'>新闻服务</A> ");
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
					document.write("href='http://www.fmprc.gov.cn/chn/pds/fw/lsfw/'>领事服务</A> ");
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
					document.write("href='http://www.fmprc.gov.cn/chn/pds/fw/lbfw/'>礼宾服务</A>");
					document.write("</LI>");
					document.write("<LI style='width:68'><A ");
					document.write("href='http://dag.fmprc.gov.cn/'>档案服务</A>");
					document.write("</LI></UL>");
				document.write("</li>");
				document.write("</ul>");
			document.write("</td>");
			document.write("<td width='90' align='center'><a href='http://www.fmprc.gov.cn/chn/pds/qt/wzdt/' class=daohang0>网站地图</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>");
			document.write("</tr>");
			document.write("</table>");
			document.write("<!---- 导航 E ---->");
	document.write("</td></tr>");
	document.write("</table>");
	document.write("<table width=991 border=0 cellpadding=0 cellspacing=0>");
	document.write("<tr><td width=991 height=11></td></tr>");
	document.write("</table>");
	//document.write("<img src='/chn/images/003.jpg' width=991 />");
	menuFix();
}
//各使领馆检索用
function header1(){
   document.write("<table width=991 border=0 cellpadding=0 cellspacing=0>");
	document.write("<tr>");
	document.write("<td width=991 height=11>");
	document.write("<img src=ht"+"tp://www.fmprc.gov.cn/chn/images/search_top.gif width=991 height=128>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
}
function tailer(){
  document.write("<table width=991 border=0 cellpadding=0 cellspacing=0>");
  document.write("<tr><td width=991 height=74 background='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh30.jpg' align=center>");
  document.write("<table width=735 border=0 cellpadding=0 cellspacing=0>");
  document.write("	<tr><td height=5></td></tr>");
	document.write("	<tr><td width=100% height=20 align=center>中华人民共和国外交部&nbsp;&nbsp;版权所有;</td></tr>");
	document.write("	<tr><td width=100% height=20 align=center>");
	document.write("			<table width=735 border=0 cellpadding=0 cellspacing=0>");
	document.write("			<tr><td width=85 height=20 align=right><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh31.jpg' width=20 height=15 border=0></td>");
	document.write("			<td width=650 align=left style='padding-bottom:2px;'><img src='ht"+"tp://www.fmprc.gov.cn/chn/images/c.gif' width=1 height=2 border=0><br><a href='mailto:webmaster@mfa.gov.cn' target=_blank> &nbsp;联系我们</a>&nbsp;&nbsp;地址：北京市朝阳区朝阳门南大街2号&nbsp;&nbsp;邮编：100701&nbsp;&nbsp;电话：86-10-65961114&nbsp;&nbsp;京ICP备06038296号</td>");
	document.write("			</tr>");
	document.write("			</table>");
	document.write("	</td></tr>");
	document.write("	</table>");
document.write("</td></tr>");
document.write("</table>");
}
function tailer1(){
  document.write("<table width=991 border=0 cellpadding=0 cellspacing=0>");
  document.write("<tr><td width=991 height=74 background='ht"+"tp://www.fmprc.gov.cn/chn/images/gxh30.jpg' align=center>");
  document.write("<table width=735 border=0 cellpadding=0 cellspacing=0>");
  document.write("	<tr><td height=5></td></tr>");
	document.write("	<tr><td width=100% height=20 align=center>Copyright® 2001, Ministry of Foreign Affairs of the People's Republic of China</td></tr>");
	document.write("	<tr><td width=100% height=20 align=center>");
	document.write("			<table width=735 border=0 cellpadding=0 cellspacing=0>");
	document.write("			<tr><td width=85 height=20 align=right>&nbsp;</td>");
	document.write("			<td width=650 align=left style='padding-bottom:2px;'></td>");
	document.write("			</tr>");
	document.write("			</table>");
	document.write("	</td></tr>");
	document.write("	</table>");
document.write("</td></tr>");
document.write("</table>");
}


<!-------
//日期显示
function DateIndex()
{
date1=new Date()
y=date1.getYear()
d=date1.getDate()
m=date1.getMonth()
w=date1.getDay()

switch(w)
{
	case 0:(w='日');break
	case 1:(w='一');break
	case 2:(w='二');break
	case 3:(w='三');break
	case 4:(w='四');break
	case 5:(w='五');break
	case 6:(w='六');break
}
document.write('<font color=#000000 class=day>'+''+y+'年'+(m+1)+'月'+d+'日'+'&nbsp;&nbsp;')
document.write('&nbsp;星期'+w)
document.write('</font>')
}

<!-------
//日期显示
function Dat1()
{
date1=new Date()
y=date1.getYear()
d=date1.getDate()
m=date1.getMonth()
w=date1.getDay()

switch(w)
{
	case 0:(w='日');break
	case 1:(w='一');break
	case 2:(w='二');break
	case 3:(w='三');break
	case 4:(w='四');break
	case 5:(w='五');break
	case 6:(w='六');break
}
document.write('<font color=blue size=2px>'+''+y+'年'+(m+1)+'月'+d+'日'+'')
document.write('&nbsp;星期'+w)
document.write('</font>')
}

//提交表单验证
function checkform(form)
{
if(form.user.value==""||form.password.value=="")
{
alert("用户名和密码均必须填写！")
return
}
else
{
form.submit()
}
}

//首页页头导航



//通用右侧“相关连接”跳转
function change(t)
{
   var t=t;
   var temp1=document.selectform.link1.options[document.selectform.link1.selectedIndex].value;
   var temp2=document.selectform.link2.options[document.selectform.link2.selectedIndex].value;
   var temp3=document.selectform.link3.options[document.selectform.link3.selectedIndex].value;
   var temp4=document.selectform.link4.options[document.selectform.link4.selectedIndex].value;
   var temp5=document.selectform.link5.options[document.selectform.link5.selectedIndex].value;
   var temp6=document.selectform.link6.options[document.selectform.link6.selectedIndex].value;
   //alert("temp="+temp);
   if(t==1)
     location.href=temp1;
   else if(t==2)
     location.href=temp2;
   else if(t==3)
     location.href=temp3;
   else if(t==4)
     location.href=temp4;
   else if(t==5)
     location.href=temp5;
   else if(t==6)
     location.href=temp6;
   
}


//打印函数
function doPrint() {
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strFontSize='【<A href="javascript:doZoom(16)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A>】'
	var strdoPrint="doPrint()";
	var strTmp;
	var strContent;
	
	css="\n<style>"
	+"\n td,.f12{font-size:12.0pt;line-height:150%}"
	+"\n .f24 {font-size:24px;}"
	+"\n .f14 {font-size:14px;}"
	+"\n .title14 {font-size:14px;line-height:130%}"
	+"\n .bt {font-size:16pt}"
	+"\n</style>";
	
	str +=	css;
	str +=	'\n<meta http-equiv="content-type" content="text/html; charset=utf-8">';
	str +=	'\n<title>'+document.title+'</title>';
	str +=  '\n<script language="javascript"> function createPageHTML( s1,s2,s3,s4 ){ } </script>';		
	str +=	"\n<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'>";
	str +=	"\n<center>";
	str +=	"\n<table width=650 border=0 cellpadding=0 cellspacing=0 bgcolor=#EDF0F5><tr><td style='padding:20px'>";
	
	//wsw@2004-4-27 修改处理div的方式
	//var arDivs = document.getElementsByTagName('DIV');
	//for (var t=0; t<arDivs.length; t++)
	//{
	//	var objDiv = arDivs[t];
	//	if(objDiv.style.width == "600")
	//	{
	//		objDiv.removeAttribute('style');
	//		break;
	//	}
	//}
	
	article=document.getElementById('article').innerHTML;
	if(article.indexOf(strAdBegin)!=-1){
		str +=article.substr(0,article.indexOf(strAdBegin));
		strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
	}else{
		strTmp=article
	}
	//strTmp = strTmp.replace(/<div[^>]*>/ig,"");	//过滤掉</DIV>
	
	//wsw@2004-4-26 正则表达式中字符串提取功能([\s\S]*?)需要IE5.5以上版本才能支持
	strTmp = strTmp.replace(/<div[^>]*>([\s\S]*?)<\/div>/ig,"$1");	//过滤</DIV>
	//wsw@2004-4-26 分开处理替换<div>可以在IE5.0实现预览打印
	//strTmp = strTmp.replace(/<div[^>]*>/ig,"");
	//strTmp = strTmp.replace(/<\/div>/ig,"");

	strTmp = strTmp.replace(/width=760/ig,"width=100%");
	strTmp = strTmp.replace(/width=660/ig,"width=100%");
	str += strTmp;
	
	str +=	"</td></tr></table>";
	str += "<br><TABLE cellSpacing=0 cellPadding=0 width=650 border=0 align=center><TBODY><TR><TD height=10><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR><TR><TD align=middle bgColor=#efefef style=font-size:14px>中华人民共和国外交部 2003 版权所有 &reg;</TD></TR>	<TR><TD height=10><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR><TR><TD align=middle style=font-size:14px>地址：北京市朝阳区朝阳门南大街 2 号&nbsp;&nbsp; 邮编：100701&nbsp;&nbsp;电话：86-10-65961114&nbsp;&nbsp;京ICP备06038296号</TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE>";
	str += "</center>";
	str +=	"</body></html>";
	document.write(str);
	document.close();
}

//文章推荐使用的函数
function openSendMail( sDocTitle ) {

	var sUrl = "http://app.fmprc.gov.cn/comments/send_mail.jsp?DocTitle="+sDocTitle+"&URL="+window.location.href;

	nWidth  = 430;
	nHeight = 230;

	var winMsg = open( sUrl,"","left=300,top=250,width="+nWidth+",height="+nHeight+",menubar=no,status=no,titlebar=no,resizable=no,scrollbars=no" );
			
	if( winMsg.opener==null ) {
		winMsg.opener = window;
	}
	winMsg.focus();
}


//推荐给朋友的新函数
function validate_form() {

	var str0,str1,str2,str3,str4,str;

	validity = true; // assume valid

	if (!check_email(document.Form2000.FriendEmail.value)) {
		validity = false;
		alert('您输入的Email无效或者为空！');
	}

	if( validity ) {
		str0="外交部网站推荐新闻";
		str1="您好!";
		str2="您的朋友向您推荐外交部网站新闻:";
		str3="“"+document.title+"”"+"%0D%0A%0D%0A链接网址：";
		str4=this.location;
		str=str0+"%0D%0A"+str1+"%0D%0A"+str2+"%0D%0A"+str3+"%0D%0A"+str4+"%0D%0A";
		//document.Form2000.Context.value=str;
		document.charset='gb2312';
		location.href="mailto:"+document.Form2000.FriendEmail.value+"?Subject=推荐新闻&Body="+str;
	}
	return false;
}

//推荐给朋友的新函数2
function validate_form2() {

	var str0,str1,str2,str3,str4,str;

	validity = true; // assume valid

	if (!check_email(document.Form2003.FriendEmail2.value)) {
		validity = false;
		alert('您输入的Email无效或者为空！');
	}

	if( validity ) {
		str0="外交部网站推荐新闻";
		str1="您好!";
		str2="您的朋友向您推荐外交部网站新闻:";
		str3="“"+document.title+"”"+"\n\n链接网址：";
		str4=this.location;
		str=str0+"\n"+str1+"\n"+str2+"\n"+str3+"\n"+str4+"\n";
		document.Form2003.Context2.value=str;

		document.Form2003.action="mailto:"+document.Form2003.FriendEmail2.value+"?Subject=推荐新闻";
	}
	return validity;
}

//判断用户填写的EMail是否有效函数
function check_email( address ) {
	if( (address=="")||(address.indexOf('@')==-1)||(address.indexOf('.')==-1) )
		return false;

	return true;
}

//打印函数(不带图片)
function doPrint_noImgs() {
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strFontSize='【<A href="javascript:doZoom(16)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A>】'
	var strdoPrint="doPrint()";
	var strTmp;
	var strContent;
	
	css="\n<style>"
	+"\n td,.f12{font-size:12.0pt;line-height:150%}"
	+"\n .f24 {font-size:24px;}"
	+"\n .f14 {font-size:14px;}"
	+"\n .title14 {font-size:14px;line-height:130%}"
	+"\n .bt {font-size:16pt}"
	+"\n</style>";
	
	str +=	css;
	str +=	'\n<meta http-equiv="content-type" content="text/html; charset=utf-8">';
	str +=	'\n<title>'+document.title+'</title>';
	str +=  '\n<script language="javascript"> function createPageHTML( s1,s2,s3,s4 ){ } </script>';	
	str +=	"\n<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'>";
	str +=	"\n<center>";
	str +=	"\n<table width=650 border=0 cellpadding=0 cellspacing=0 bgcolor=#EDF0F5><tr><td style='padding:20px'>";
	
	//wsw@2004-4-27 修改处理div的方式
	//var arDivs = document.getElementsByTagName('DIV');
	//for (var t=0; t<arDivs.length; t++)
	//{
	//	var objDiv = arDivs[t];
	//	if(objDiv.style.width == "600")
	//	{
	//		objDiv.removeAttribute('style');
	//		break;
	//	}
	//}
	
	article=document.getElementById('article').innerHTML;
	if(article.indexOf(strAdBegin)!=-1){
		str +=article.substr(0,article.indexOf(strAdBegin));
		strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
	}else{
		strTmp=article
	}

	//strTmp = strTmp.replace(/<div[^>]*>/ig,"");	//过滤掉</DIV>
	
	//wsw@2004-4-26 正则表达式中字符串提取功能([\s\S]*?)需要IE5.5以上版本才能支持
	strTmp = strTmp.replace(/<div[^>]*>([\s\S]*?)<\/div>/ig,"$1");	//过滤</DIV>
	//wsw@2004-4-26 分开处理替换<div>可以在IE5.0实现预览打印
	//strTmp = strTmp.replace(/<div[^>]*>/ig,"");
	//strTmp = strTmp.replace(/<\/div>/ig,"");
	strTmp = strTmp.replace(/width=760/ig,"width=100%");
	strTmp = strTmp.replace(/width=660/ig,"width=100%");

	str += strTmp;
	
	str +=	"</td></tr></table>";
	str += "<br><TABLE cellSpacing=0 cellPadding=0 width=650 border=0 align=center><TBODY><TR><TD height=10><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR><TR><TD align=middle bgColor=#efefef style=font-size:14px>中华人民共和国外交部 2003 版权所有 &reg;</TD></TR>	<TR><TD height=10><IMG height='1' alt='' src='./7_c.gif' width='1' border='0'></TD></TR><TR><TD align=middle style=font-size:14px>地址：北京市朝阳区朝阳门南大街 2 号&nbsp;&nbsp; 邮编：100701&nbsp;&nbsp;电话：86-10-65961114&nbsp;&nbsp;京ICP备06038296号</TD></TR></TBODY></TABLE></CENTER></TD></TR></TBODY></TABLE>";
	str += "</center>";
	str +=	"</body></html>";
	document.write(str);
	document.close();
	
	var imgs= document.getElementsByTagName("IMG");
	if(imgs.length){
		for(var i=0;i<imgs.length;i++){
			imgs[i].style.display="none";
		}
	} else {
		imgs.style.display="none";
	}
	
}




//---------->
//处理当前位置程序
function formatNavi(strID){
		var result="";
		var re,source;
		var temp =window.location.href;
		source=document.getElementById(strID);
        result = source.innerHTML;
		//alert("source="+source);
		if(source == null){
			//alert("false");
			return;
		}else{
			
			if(temp.indexOf("/fw/")>0||temp.indexOf("/wjb/")>0||temp.indexOf("/wjdt/")>0||temp.indexOf("/gjhdq/")>0||temp.indexOf("/ziliao/")>0){
				
				re = new RegExp(">外交部中文网站<","i");  // 创建正则表达式对象。
				result = result.replace(re,">首页<");
			}
			
			else{
			
			var text = result.split("&nbsp;&gt;&nbsp;");
			text = text.slice(1,text.length);
			result = text.join("&nbsp;&gt;&nbsp;");

			//定义首页

			if(result.indexOf("出国版")>0)
			{
              
              re = new RegExp(">出国版<","i");  // 创建正则表达式对象。
			  result = result.replace(re,">首页<");
              
			}
           if(result.indexOf("通用版")>0)
			{
              
              re = new RegExp(">通用版<","i");  // 创建正则表达式对象。
			  result = result.replace(re,">首页<");
              
			  
			}
			if(result.indexOf("文字版")>0)
			{
              
              re = new RegExp(">文字版<","i");  // 创建正则表达式对象。
			  result = result.replace(re,">首页<");
              
			}
			if(result.indexOf("媒体版")>0)
			{
              
              re = new RegExp(">媒体版<","i");  // 创建正则表达式对象。
			  result = result.replace(re,">首页<");
              
			}
			if(result.indexOf("学生版")>0)
			{
              
              re = new RegExp(">学生版<","i");  // 创建正则表达式对象。
			  result = result.replace(re,">首页<");
              
			}
			if(result.indexOf("资料版")>0)
			{
              
              re = new RegExp(">资料版<","i");  // 创建正则表达式对象。
			  result = result.replace(re,">首页<");
             
			}
		}
		}
		source.innerHTML = result;
	}

function formatNavi1(strID){
		var result="";
		var re,source;
		source=document.getElementById(strID);
		//alert("source="+source);
		if(source == null){
			//alert("false");
			return;
		}else{
			result = source.innerHTML;
			re = new RegExp(">外交部中文网站<","i");  // 创建正则表达式对象。
		    result = result.replace(re,">首页<");

			
		}
		source.innerHTML = result;
	}

//细览分页函数－－start--
/*function createPageHTML(_nPageCount, _nCurrIndex, _sPageName, _sPageExt){
	if(_nPageCount == null || _nPageCount<=1){
		return;
	}
	document.write("分页：");
	var nCurrIndex = _nCurrIndex || 0;
	if(nCurrIndex == 0)
		document.write("<span style='color:#FF0000'>1</span>&nbsp;");
	else
		document.write("<a style='font-size:12px;color:#000000' href=\""+_sPageName+"."+_sPageExt+"\">1</a>&nbsp;");

	for(var i=1; i<_nPageCount; i++){
		if(nCurrIndex == i)
			document.write("<span style='color:#FF0000'>"+(i+1)+"</span>&nbsp;");
		else
			document.write("<a style='font-size:12px;color:#000000' href=\""+_sPageName+"_" + i + "."+_sPageExt+"\">"+(i+1)+"</a>&nbsp;");
	}
}*/
function createPageHTML(_nPageCount, _nCurrIndex, _sPageName, _sPageExt){
	if(_nPageCount == null || _nPageCount<=1){
		return;
	}
	document.write("<style> \n");
	document.write(".pg a,.pg a:link,.pg a:visited,.pg a:action,.pg{font-size:14px} \n");
	document.write("a.o:link,a.o:visited,a.o:active,.vc a.o:visited{margin:0 2px;padding:0px 5px;border:1px solid #ddd;text-decoration:none;background:#fff;font-size:14px;font-family:verdana;height:24px;line-height:24px} \n");
	document.write("a.o:hover{border:1px solid #049;text-decoration:none;font-size:14px;font-family:verdana} \n");
	document.write("a.obg:link,a.obg:visited,a.obg:active{background:#e75f2f;color:#fff;font-size:14px;font-family:verdana} \n");
	document.write("</style> \n");

	document.write("<div class='pg'>");
	
	var nCurrIndex = _nCurrIndex || 0;

	if (nCurrIndex > 0) {
		if (nCurrIndex == 1) {
		    document.write("<a href=\""+_sPageName+"."+_sPageExt+"\">上一页</a>&nbsp;");
		} else {
		    document.write("<a href=\""+_sPageName+"_" + (nCurrIndex-1) + "."+_sPageExt+"\">上一页</a>&nbsp;");
		}
	    
	}

	document.write("第");	

	if(nCurrIndex == 0)
		document.write("<a class='o obg' href=\""+_sPageName+"."+_sPageExt+"\">1</a>");
	else
		document.write("<a class='o' href=\""+_sPageName+"."+_sPageExt+"\">1</a>");

	for(var i=1; i<_nPageCount; i++){
		if(nCurrIndex == i)
			document.write("<a class='o obg' href=\""+_sPageName+"_" + i + "."+_sPageExt+"\">"+(i+1)+"</a>");
		else
			document.write("<a class='o' href=\""+_sPageName+"_" + i + "."+_sPageExt+"\">"+(i+1)+"</a>");
	}
	document.write("页");

	if (nCurrIndex < _nPageCount-1) {
		document.write("&nbsp;<a href=\""+_sPageName+"_" + (nCurrIndex+1) + "."+_sPageExt+"\">下一页</a>");
	}
	document.write("</div>");
}

//细览分页函数－－end--

//lxh@20100212临时添加，为了海地专题在导航下不显示
var hasHD = false;
var hasHd = window.setInterval(function(){
	var oHD = document.getElementById("news");
	if(oHD!=null&&(!hasHD)){
		oHD.parentNode.style.display = "none";
		window.clearInterval(hasHd);
	}
},10);
	
window.onload = function(){
	var oHD = document.getElementById("news");
	if(oHD!=null)oHD.parentNode.style.display = "none";
	//alert(oHD.parentNode.tagName);
	window.clearInterval(hasHd);
}