﻿/*

该文件用在每个页面都包括下面的[图片新闻][新品推介][新闻中心]3个小栏目的方案中，作为首页的头文件。


*/

document.write("<table cellpadding='0' cellspacing='0' border='0' width='778'>")
document.write("	<tr>")
document.write("		<td width='20' rowspan='4'></td>")
document.write("		<td width='219' rowspan='4'><a href='../main.aspx'><img src='../images/DFMLogo.gif' border='0' width='219' height='40'></a></td>")
document.write("		<td width='20' rowspan='4'></td>")
document.write("		<td width='519' height='5'></td>")
document.write("	</tr>")
document.write("	<tr>")
document.write("		<td height='23' bgcolor='#EE1A30'></td>")
document.write("	</tr>")
document.write("	<tr>")
document.write("		<td height='4'></td>")
document.write("	</tr>")
document.write("	<tr>")
document.write("		<td height='8' bgcolor='#BCBEC0'></td>")
document.write("	</tr>")
document.write("</table>")
document.write("<table cellpadding='0' cellspacing='0' border='0' width='778'>")
document.write("	<tr>")
document.write("		<td width='259' height='25'></td>")
document.write("		<td width='519' height='25'>")
document.write("			<table cellpadding='0' cellspacing='0' border='0' width='100%'>")
document.write("				<tr height='15'>")
document.write("					<td width='20'></td>")
document.write("					<td width='79'><a href='../info/introduce.aspx'><img id='companyChannel' border='0' src='../images/dfmChannel_companyDefault.gif' ")
document.write("								onMouseOver=this.src=toConvertHeadImg('images/dfmChannel_companySelected.gif');companyMenu.style.visibility='visible';")
document.write("								onMouseOut=this.src=toConvertHeadImg('images/dfmChannel_companyDefault.gif');companyMenu.style.visibility='hidden';></a></td>")
document.write("					<td width='1' bgcolor='#313031'></td>")
document.write("					<td width='79'><a href='../product/CarsList.aspx?infoclass=ZHC'><img id='productChannel' border='0' src='../images/dfmChannel_productDefault.gif' ")
document.write("								onMouseOver=this.src=toConvertHeadImg('images/dfmChannel_productSelected.gif');productMenu.style.visibility='visible';")
document.write("								onMouseOut=this.src=toConvertHeadImg('images/dfmChannel_productDefault.gif');productMenu.style.visibility='hidden';></a></td>")
document.write("					<td width='1' bgcolor='#313031'></td>")
document.write("					<td width='79'><a href='../news/newsIndex.aspx'><img id='newsChannel' border='0' src='../images/dfmChannel_newsDefault.gif' ")
document.write("								onMouseOver=this.src=toConvertHeadImg('images/dfmChannel_newsSelected.gif');newsMenu.style.visibility='visible';")
document.write("								onMouseOut=this.src=toConvertHeadImg('images/dfmChannel_newsDefault.gif');newsMenu.style.visibility='hidden';></a></td>")
document.write("					<td width='1' bgcolor='#313031'></td>")
document.write("					<td width='79'><a href='../sales/dealerTrucks.aspx'><img id='salesChannel' border='0' src='../images/dfmChannel_salesDefault.gif' ")
document.write("								onMouseOver=this.src=toConvertHeadImg('images/dfmChannel_salesSelected.gif');salesMenu.style.visibility='visible';")
document.write("								onMouseOut=this.src=toConvertHeadImg('images/dfmChannel_salesDefault.gif');salesMenu.style.visibility='hidden';></a></td>")
document.write("					<td width='1' bgcolor='#313031'></td>")
document.write("					<td width='79'><a href='../dfmczg/career.aspx?type=1'><img id='jobChannel' border='0' src='../images/dfmChannel_jobSelected2.gif' ")
document.write("								onMouseOver=this.src=toConvertHeadImg('images/dfmChannel_jobSelected1.gif');jobMenu.style.visibility='visible';")
document.write("								onMouseOut=this.src=toConvertHeadImg('images/dfmChannel_jobSelected2.gif');jobMenu.style.visibility='hidden';></a></td>")
document.write("					<td width='1' bgcolor='#313031'></td>")
document.write("					<td width='58' align='center' style='font-size:10pt'>")
document.write(" <a id=\"StranLink\" class=\"link_02\" >繁 體</a>");
document.write("					</td>")
document.write("					<td width='41' style='font-size:9pt'><a href='../index_en.aspx' target='_blank'>ENG</td>")
document.write("					</td>")
document.write("				</tr>")
document.write("			</table>")
document.write("		</td>")
document.write("	</tr>")
document.write("</table>")


//菜单开始
//[公司]
document.write("<div style='position:absolute;width:0px;height:0px;overflow:visible;'>")
document.write("<div id='companyMenu' style='LEFT: 279px;top:-5px; POSITION: relative;visibility:hidden'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table5' bgcolor='#a7a9ac' width='90' ")
document.write("	onMouseOver=companyChannel.src='../images/dfmChannel_companySelected.gif';companyMenu.style.visibility='visible'; ")
document.write("	onMouseOut=companyChannel.src='../images/dfmChannel_companyDefault.gif';companyMenu.style.visibility='hidden';>")
document.write("		<tr height='5' bgcolor='#FFFFFF'>")
document.write("			<td colspan='2'></td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td id='Item10' width='90%' style='cursor:hand' class='menuItem' ")
document.write("				onMouseOver=this.style.background='#313031';this.style.color='#ffffff';Item11.style.background='#313031';menuAngle1.src='../images/dfmMenuAngle1.gif';companySubMenu.style.visibility='visible'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';Item11.style.background='#a7a9ac';menuAngle1.src='../images/dfmMenuAngle0.gif';companySubMenu.style.visibility='hidden'; ")
document.write("				onClick=window.location='../info/introduce.aspx';>&nbsp;公司介绍</td>")
document.write("			<td id='Item11' width='10%' style='cursor:hand' class='menuItem' ")
document.write("				onMouseOver=this.style.background='#313031';Item10.style.color='#ffffff';Item10.style.background='#313031';menuAngle1.src='../images/dfmMenuAngle1.gif';companySubMenu.style.visibility='visible';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';Item10.style.color='#313031';Item10.style.background='#a7a9ac';menuAngle1.src='../images/dfmMenuAngle0.gif';companySubMenu.style.visibility='hidden';><img id='menuAngle1' src='../images/dfmMenuAngle0.gif'></td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/managerAddress.aspx';>&nbsp;董事长致辞</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/organization.aspx';>&nbsp;组织机构</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../dfmczg/Zzjs.html';>&nbsp;党的建设</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/DFSHZRNB.html';>&nbsp;社会责任</td>")
document.write("		</tr>")
//tianchao 2010.08.19 start
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/techintro1.htm';>&nbsp;研究与开发</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../dfmc_zg/ssgs.html';>&nbsp;上市公司</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../dfmczg/enterpriseEvents.aspx';>&nbsp;大 事 记</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/Zhuanti.html';>&nbsp;专&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题</td>")
document.write("		</tr>")
//tianchao end
document.write("	</table>")
document.write("</div>")
document.write("</div>")

//[公司---公司介绍---************************************------子菜单]
document.write("<div style='position:absolute;width:0px;height:0px;overflow:visible;'>")
document.write("<div id='companySubMenu' style='LEFT: 359px;top:0px; POSITION: relative;visibility:hidden'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table5' bgcolor='#a7a9ac' width='81'")
document.write("		onMouseOver=companyChannel.src='../images/dfmChannel_companySelected.gif';companyMenu.style.visibility='visible';Item10.style.color='#ffffff';Item10.style.background='#313031';Item11.style.background='#313031';menuAngle1.src='../images/dfmMenuAngle1.gif';companySubMenu.style.visibility='visible'; ")
document.write("		onMouseOut=companyChannel.src='../images/dfmChannel_companyDefault.gif';companyMenu.style.visibility='hidden';Item10.style.background='#a7a9ac';Item10.style.color='#313031';Item11.style.background='#a7a9ac';menuAngle1.src='../images/dfmMenuAngle0.gif';companySubMenu.style.visibility='hidden';>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/introduce.aspx';>&nbsp;公司概况</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/enterpriseTruth.aspx';>&nbsp;企业文化</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/leaders.aspx';>&nbsp;领导团队</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/developments.aspx';>&nbsp;发展历程</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../info/manageOutstands.aspx';>&nbsp;经营业绩</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
document.write("</div>")

//[产品]
document.write("<div style='position:absolute;width:0px;height:0px;overflow:visible;'>")
document.write("<div id='productMenu' style='LEFT: 357px;top:-5px; POSITION: relative;visibility:hidden'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table5' bgcolor='#a7a9ac' width='81' ")
document.write("		onMouseOver=productChannel.src='../images/dfmChannel_productSelected.gif';productMenu.style.visibility='visible'; ")
document.write("				onMouseOut=productChannel.src='../images/dfmChannel_productDefault.gif';productMenu.style.visibility='hidden';>")
document.write("		<tr height='5' bgcolor='#FFFFFF'>")
document.write("			<td colspan='2'></td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' id='Item4' width='90%' style='cursor:hand' class='menuItem' ")
document.write("				onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../product/CarsList.aspx?infoclass=ZHC'>&nbsp;商用车</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' id='Item0' width='90%' style='cursor:hand' class='menuItem' ")
document.write("				onMouseOver=this.style.background='#313031';this.style.color='#ffffff';")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../product/CarsList.aspx?infoclass=C02'>&nbsp;乘用车</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td colspan='2' style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff'; ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031'; ")
document.write("				onClick=window.location='../product/videoAds.aspx';>&nbsp;视频广告</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
document.write("</div>")

//[新闻]
document.write("<div style='position:absolute;width:0px;height:0px;overflow:visible;'>")
document.write("<div id='newsMenu' style='LEFT: 437px;top:-5px; POSITION: relative;visibility:hidden'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table5' bgcolor='#a7a9ac' width='81' ")
document.write("		onMouseOver=newsChannel.src='../images/dfmChannel_newsSelected.gif';newsMenu.style.visibility='visible';  ")
document.write("				onMouseOut=newsChannel.src='../images/dfmChannel_newsDefault.gif';newsMenu.style.visibility='hidden';>")
document.write("		<tr height='5' bgcolor='#FFFFFF'>")
document.write("			<td></td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../news/newsListAll.aspx?type=1'>&nbsp;公司新闻</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../news/newsListAll.aspx?type=2'>&nbsp;图片新闻</td>")
document.write("		</tr>")
//2009-7-2 by chenlip--------------------------------------------------------------------
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/newsListAll0906.aspx?type=6'>&nbsp;行业资讯</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/newsListAll0906.aspx?type=7'>&nbsp;媒体聚焦</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/newsListAll0906.aspx?type=8'>&nbsp;企业告示</td>")
document.write("		</tr>")
//2009-7-2 by chenlip end--------------------------------------------------------------------
document.write("	</table>")
document.write("</div>")
document.write("</div>")

//[营销]
document.write("<div style='position:absolute;width:0px;height:0px;overflow:visible;'>")
document.write("<div id='salesMenu' style='LEFT: 518px;top:-5px; POSITION: relative;visibility:hidden'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table5' bgcolor='#a7a9ac' width='81' ")
document.write("		onMouseOver=salesChannel.src='../images/dfmChannel_salesSelected.gif';salesMenu.style.visibility='visible';  ")
document.write("				onMouseOut=salesChannel.src='../images/dfmChannel_salesDefault.gif';salesMenu.style.visibility='hidden';>")
document.write("		<tr height='5' bgcolor='#FFFFFF'>")
document.write("			<td></td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../sales/dealerTrucks.aspx'>&nbsp;商用车</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../sales/dealerCars.aspx'>&nbsp;乘用车</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmc_zg/khjl.html'>&nbsp;客户交流</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
document.write("</div>")

//[招聘]
document.write("<div style='position:absolute;width:0px;height:0px;overflow:visible;'>")
document.write("<div id='jobMenu' style='LEFT: 598px;top:-5px; POSITION: relative;visibility:hidden'>")
document.write("	<table border='0' cellpadding='0' cellspacing='0' ID='Table5' bgcolor='#a7a9ac' width='160' ")
document.write("		onMouseOver=jobChannel.src='../images/dfmChannel_jobSelected1.gif';jobMenu.style.visibility='visible';  ")
document.write("				onMouseOut=jobChannel.src='../images/dfmChannel_jobSelected2.gif';jobMenu.style.visibility='hidden';>")
document.write("		<tr height='5' bgcolor='#FFFFFF'>")
document.write("			<td></td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/career.aspx?type=1'>&nbsp;集团招募</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/rcdw.aspx'>&nbsp;人才队伍</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/zmzy.aspx'>&nbsp;子(分)公司招募信息导引</td>")
document.write("		</tr>")
document.write("		<tr height='20'>")
document.write("			<td style='cursor:hand' class='menuItem' onMouseOver=this.style.background='#313031';this.style.color='#ffffff';  ")
document.write("				onMouseOut=this.style.background='#a7a9ac';this.style.color='#313031';")
document.write("				onClick=window.location='../dfmczg/CultivateSys.htm'>&nbsp;教育培训</td>")
document.write("		</tr>")
document.write("	</table>")
document.write("</div>")
document.write("</div>")


//http://www.ahcit.com/lanmuyd.asp?id=3022
//简体字库算法:
function JTPYStr(){
	return '皑蔼碍爱翱袄奥坝罢摆败颁办绊帮绑镑谤剥饱宝报鲍辈贝钡狈备惫绷笔毕毙闭边编贬变辩辫鳖瘪濒滨宾摈饼拨钵铂驳卜补参蚕残惭惨灿苍舱仓沧厕侧册测层诧搀掺蝉馋谗缠铲产阐颤场尝长偿肠厂畅钞车彻尘陈衬撑称惩诚骋痴迟驰耻齿炽冲虫宠畴踌筹绸丑橱厨锄雏础储触处传疮闯创锤纯绰辞词赐聪葱囱从丛凑窜错达带贷担单郸掸胆惮诞弹当挡党荡档捣岛祷导盗灯邓敌涤递缔点垫电淀钓调迭谍叠钉顶锭订东动栋冻斗犊独读赌镀锻断缎兑队对吨顿钝夺鹅额讹恶饿儿尔饵贰发罚阀珐矾钒烦范贩饭访纺飞废费纷坟奋愤粪丰枫锋风疯冯缝讽凤肤辐抚辅赋复负讣妇缚该钙盖干赶秆赣冈刚钢纲岗皋镐搁鸽阁铬个给龚宫巩贡钩沟构购够蛊顾剐关观馆惯贯广规硅归龟闺轨诡柜贵刽辊滚锅国过骇韩汉阂鹤贺横轰鸿红后壶护沪户哗华画划话怀坏欢环还缓换唤痪焕涣黄谎挥辉毁贿秽会烩汇讳诲绘荤浑伙获货祸击机积饥讥鸡绩缉极辑级挤几蓟剂济计记际继纪夹荚颊贾钾价驾歼监坚笺间艰缄茧检碱硷拣捡简俭减荐槛鉴践贱见键舰剑饯渐溅涧浆蒋桨奖讲酱胶浇骄娇搅铰矫侥脚饺缴绞轿较秸阶节茎惊经颈静镜径痉竞净纠厩旧驹举据锯惧剧鹃绢杰洁结诫届紧锦仅谨进晋烬尽劲荆觉决诀绝钧军骏开凯颗壳课垦恳抠库裤夸块侩宽矿旷况亏岿窥馈溃扩阔蜡腊莱来赖蓝栏拦篮阑兰澜谰揽览懒缆烂滥捞劳涝乐镭垒类泪篱离里鲤礼丽厉励砾历沥隶俩联莲连镰怜涟帘敛脸链恋炼练粮凉两辆谅疗辽镣猎临邻鳞凛赁龄铃凌灵岭领馏刘龙聋咙笼垄拢陇楼娄搂篓芦卢颅庐炉掳卤虏鲁赂禄录陆驴吕铝侣屡缕虑滤绿峦挛孪滦乱抡轮伦仑沦纶论萝罗逻锣箩骡骆络妈玛码蚂马骂吗买麦卖迈脉瞒馒蛮满谩猫锚铆贸么霉没镁门闷们锰梦谜弥觅绵缅庙灭悯闽鸣铭谬谋亩钠纳难挠脑恼闹馁腻撵捻酿鸟聂啮镊镍柠狞宁拧泞钮纽脓浓农疟诺欧鸥殴呕沤盘庞国爱赔喷鹏骗飘频贫苹凭评泼颇扑铺朴谱脐齐骑岂启气弃讫牵扦钎铅迁签谦钱钳潜浅谴堑枪呛墙蔷强抢锹桥乔侨翘窍窃钦亲轻氢倾顷请庆琼穷趋区躯驱龋颧权劝却鹊让饶扰绕热韧认纫荣绒软锐闰润洒萨鳃赛伞丧骚扫涩杀纱筛晒闪陕赡缮伤赏烧绍赊摄慑设绅审婶肾渗声绳胜圣师狮湿诗尸时蚀实识驶势释饰视试寿兽枢输书赎属术树竖数帅双谁税顺说硕烁丝饲耸怂颂讼诵擞苏诉肃虽绥岁孙损笋缩琐锁獭挞抬摊贪瘫滩坛谭谈叹汤烫涛绦腾誊锑题体屉条贴铁厅听烃铜统头图涂团颓蜕脱鸵驮驼椭洼袜弯湾顽万网韦违围为潍维苇伟伪纬谓卫温闻纹稳问瓮挝蜗涡窝呜钨乌诬无芜吴坞雾务误锡牺袭习铣戏细虾辖峡侠狭厦锨鲜纤咸贤衔闲显险现献县馅羡宪线厢镶乡详响项萧销晓啸蝎协挟携胁谐写泻谢锌衅兴汹锈绣虚嘘须许绪续轩悬选癣绚学勋询寻驯训讯逊压鸦鸭哑亚讶阉烟盐严颜阎艳厌砚彦谚验鸯杨扬疡阳痒养样瑶摇尧遥窑谣药爷页业叶医铱颐遗仪彝蚁艺亿忆义诣议谊译异绎荫阴银饮樱婴鹰应缨莹萤营荧蝇颖哟拥佣痈踊咏涌优忧邮铀犹游诱舆鱼渔娱与屿语吁御狱誉预驭鸳渊辕园员圆缘远愿约跃钥岳粤悦阅云郧匀陨运蕴酝晕韵杂灾载攒暂赞赃脏凿枣灶责择则泽贼赠扎札轧铡闸诈斋债毡盏斩辗崭栈战绽张涨帐账胀赵蛰辙锗这贞针侦诊镇阵挣睁狰帧郑证织职执纸挚掷帜质钟终种肿众诌轴皱昼骤猪诸诛烛瞩嘱贮铸筑驻专砖转赚桩庄装妆壮状锥赘坠缀谆浊兹资渍踪综总纵邹诅组钻致钟么为只凶准启板里雳余链泄';
}
//繁体字库的算法
function FTPYStr(){
	return '皚藹礙愛翺襖奧壩罷擺敗頒辦絆幫綁鎊謗剝飽寶報鮑輩貝鋇狽備憊繃筆畢斃閉邊編貶變辯辮鼈癟瀕濱賓擯餅撥缽鉑駁蔔補參蠶殘慚慘燦蒼艙倉滄廁側冊測層詫攙摻蟬饞讒纏鏟産闡顫場嘗長償腸廠暢鈔車徹塵陳襯撐稱懲誠騁癡遲馳恥齒熾沖蟲寵疇躊籌綢醜櫥廚鋤雛礎儲觸處傳瘡闖創錘純綽辭詞賜聰蔥囪從叢湊竄錯達帶貸擔單鄲撣膽憚誕彈當擋黨蕩檔搗島禱導盜燈鄧敵滌遞締點墊電澱釣調叠諜疊釘頂錠訂東動棟凍鬥犢獨讀賭鍍鍛斷緞兌隊對噸頓鈍奪鵝額訛惡餓兒爾餌貳發罰閥琺礬釩煩範販飯訪紡飛廢費紛墳奮憤糞豐楓鋒風瘋馮縫諷鳳膚輻撫輔賦複負訃婦縛該鈣蓋幹趕稈贛岡剛鋼綱崗臯鎬擱鴿閣鉻個給龔宮鞏貢鈎溝構購夠蠱顧剮關觀館慣貫廣規矽歸龜閨軌詭櫃貴劊輥滾鍋國過駭韓漢閡鶴賀橫轟鴻紅後壺護滬戶嘩華畫劃話懷壞歡環還緩換喚瘓煥渙黃謊揮輝毀賄穢會燴彙諱誨繪葷渾夥獲貨禍擊機積饑譏雞績緝極輯級擠幾薊劑濟計記際繼紀夾莢頰賈鉀價駕殲監堅箋間艱緘繭檢堿鹼揀撿簡儉減薦檻鑒踐賤見鍵艦劍餞漸濺澗漿蔣槳獎講醬膠澆驕嬌攪鉸矯僥腳餃繳絞轎較稭階節莖驚經頸靜鏡徑痙競淨糾廄舊駒舉據鋸懼劇鵑絹傑潔結誡屆緊錦僅謹進晉燼盡勁荊覺決訣絕鈞軍駿開凱顆殼課墾懇摳庫褲誇塊儈寬礦曠況虧巋窺饋潰擴闊蠟臘萊來賴藍欄攔籃闌蘭瀾讕攬覽懶纜爛濫撈勞澇樂鐳壘類淚籬離裏鯉禮麗厲勵礫曆瀝隸倆聯蓮連鐮憐漣簾斂臉鏈戀煉練糧涼兩輛諒療遼鐐獵臨鄰鱗凜賃齡鈴淩靈嶺領餾劉龍聾嚨籠壟攏隴樓婁摟簍蘆盧顱廬爐擄鹵虜魯賂祿錄陸驢呂鋁侶屢縷慮濾綠巒攣孿灤亂掄輪倫侖淪綸論蘿羅邏鑼籮騾駱絡媽瑪碼螞馬罵嗎買麥賣邁脈瞞饅蠻滿謾貓錨鉚貿麽黴沒鎂門悶們錳夢謎彌覓綿緬廟滅憫閩鳴銘謬謀畝鈉納難撓腦惱鬧餒膩攆撚釀鳥聶齧鑷鎳檸獰甯擰濘鈕紐膿濃農瘧諾歐鷗毆嘔漚盤龐國愛賠噴鵬騙飄頻貧蘋憑評潑頗撲鋪樸譜臍齊騎豈啓氣棄訖牽扡釺鉛遷簽謙錢鉗潛淺譴塹槍嗆牆薔強搶鍬橋喬僑翹竅竊欽親輕氫傾頃請慶瓊窮趨區軀驅齲顴權勸卻鵲讓饒擾繞熱韌認紉榮絨軟銳閏潤灑薩鰓賽傘喪騷掃澀殺紗篩曬閃陝贍繕傷賞燒紹賒攝懾設紳審嬸腎滲聲繩勝聖師獅濕詩屍時蝕實識駛勢釋飾視試壽獸樞輸書贖屬術樹豎數帥雙誰稅順說碩爍絲飼聳慫頌訟誦擻蘇訴肅雖綏歲孫損筍縮瑣鎖獺撻擡攤貪癱灘壇譚談歎湯燙濤縧騰謄銻題體屜條貼鐵廳聽烴銅統頭圖塗團頹蛻脫鴕馱駝橢窪襪彎灣頑萬網韋違圍爲濰維葦偉僞緯謂衛溫聞紋穩問甕撾蝸渦窩嗚鎢烏誣無蕪吳塢霧務誤錫犧襲習銑戲細蝦轄峽俠狹廈鍁鮮纖鹹賢銜閑顯險現獻縣餡羨憲線廂鑲鄉詳響項蕭銷曉嘯蠍協挾攜脅諧寫瀉謝鋅釁興洶鏽繡虛噓須許緒續軒懸選癬絢學勳詢尋馴訓訊遜壓鴉鴨啞亞訝閹煙鹽嚴顔閻豔厭硯彥諺驗鴦楊揚瘍陽癢養樣瑤搖堯遙窯謠藥爺頁業葉醫銥頤遺儀彜蟻藝億憶義詣議誼譯異繹蔭陰銀飲櫻嬰鷹應纓瑩螢營熒蠅穎喲擁傭癰踴詠湧優憂郵鈾猶遊誘輿魚漁娛與嶼語籲禦獄譽預馭鴛淵轅園員圓緣遠願約躍鑰嶽粵悅閱雲鄖勻隕運蘊醞暈韻雜災載攢暫贊贓髒鑿棗竈責擇則澤賊贈紮劄軋鍘閘詐齋債氈盞斬輾嶄棧戰綻張漲帳賬脹趙蟄轍鍺這貞針偵診鎮陣掙睜猙幀鄭證織職執紙摯擲幟質鍾終種腫衆謅軸皺晝驟豬諸誅燭矚囑貯鑄築駐專磚轉賺樁莊裝妝壯狀錐贅墜綴諄濁茲資漬蹤綜總縱鄒詛組鑽緻鐘麼為隻兇準啟闆裡靂餘鍊洩';
}
//定义简体、繁体字段
var ZT = 1

//简体转换为繁体的算法:
function Traditionalized(cc){
	var str='',ss=JTPYStr(),tt=FTPYStr();
		for (var i=0;i<cc.length;i++){
			if (cc.charCodeAt(i)>10000&&ss.indexOf(cc.charAt(i))!=-1) str+=tt.charAt(ss.indexOf(cc.charAt(i)));
				else str+=cc.charAt(i);
			}
	return str;
}

//繁体转换为简体
function Simplized(cc){
	var str='',ss=JTPYStr(),tt=FTPYStr();
		for(var i=0;i<cc.length;i++){
			if (cc.charCodeAt(i)>10000&&tt.indexOf(cc.charAt(i))!=-1)str+=ss.charAt(tt.indexOf(cc.charAt(i)));
				else str+=cc.charAt(i);
			}
	return str; 
}

//变量设置初始化
//输出繁简转换按钮

var Default_innerhtml = "					<a id='StranLink'><img id='englishChannel' border='0' src='images/dfmChannel_englishDefault.gif'> </a>";
var FT_innerhtml = "					<a id='StranLink'><img id='englishChannel' border='0' src='images/dfmChannel_englishSelected.gif'> </a>";

//document.write("					<a id='StranLink'><img id='englishChannel' border='0' src='images/dfmChannel_englishDefault.gif' ")
//document.write("								onMouseOver=this.src='images/dfmChannel_englishSelected.gif';")
//document.write("								onMouseOut=this.src='images/dfmChannel_englishDefault.gif';></a>")
//document.write(" <a id=\"StranLink\" class=\"link_02\">繁體</a>");
//document.write(" <a id=\"StranLink\" class=\"link_02\">繁體</a>");
	var Default_isFT = 0; //默认是否繁体,0-简体,1-繁体
	var StranIt_Delay = 50; //翻译延时毫秒(设这个的目的是让网页先流畅的显现出来)
	var StranLink_Obj=document.getElementById("StranLink");
	
		if (StranLink_Obj){
			var JF_cn="ft"+self.location.hostname.toString().replace(/\./g,"")
			var BodyIsFt=getCookie(JF_cn);
			//alert(JF_cn);
			//alert("取"+BodyIsFt);
				if(BodyIsFt!="1")BodyIsFt=Default_isFT
			with(StranLink_Obj){
				if(typeof(document.all)!="object") //非IE浏览器
					{href="javascript:StranBody()"}
				else {
						href="#";
						onclick= new Function("StranBody();return false")
					}
				title=StranText("点击以繁体中文方式浏览",1,1)
				innerHTML=StranText(innerHTML,1,1)
			}
		if(BodyIsFt=="1"){setTimeout("StranBody()",StranIt_Delay)}
	}

//核心转换程序
//1.转换文本:
function StranText(txt, toFT, chgTxt) {
	    if (txt == "简 体" || txt == "繁 體") {
	        toConvertImg(txt);
	    }
	    if (txt == "" || txt == null) return ""
	    toFT = toFT == null ? BodyIsFt : toFT
	    if (chgTxt) txt = txt.replace((toFT ? "简" : "繁"), (toFT ? "繁" : "简"))
	    if (toFT) { return Traditionalized(txt) }
	    else { return Simplized(txt) }
	}

	//转换简体、繁体图片
	
	function toConvertImg(lang) {
	    //读取XML
	    var xmldoc = ss();
	    xmldoc.load("../../xml/XMLFile.xml");
	    var lang = lang;
	    var oNodes = xmldoc.selectNodes("//scores/img");
	    //遍历IMG对象，循环，如该对象的SRC等于XML配置值ENSRC
	    var arr = document.body.getElementsByTagName("img");
	    //遍历节点
	    for (var i = 0; i < oNodes.length; i++) {
	        var strch;
	        var strtra;
	        strch = "http://www.dfmc.com.cn/" + oNodes[i].getAttribute("churl");
	        strtra = "http://www.dfmc.com.cn/" + oNodes[i].getAttribute("traurl");
	        //遍历IMG的src属性
	        //表头
	        if (arr.length > 7) {
	            for (var j = 0; j < arr.length; j++) {
	                if (lang == "简 体") {
	                    if (strtra == arr[j].src) {
	                        arr[j].src = strch;
	                        ZT = 1;
                            addCookie("ZT",ZT)
	                        break;
	                    }
	                }

	                else if (lang == "繁 體") {
	                    if (strch == arr[j].src) {
	                        arr[j].src = strtra;
	                        ZT = 2;
                            addCookie("ZT",ZT)
                            break;
	                    }
	                }
	            }

	        }

	    }
	}

	//转换网站头图片（onMouse）
	function toConvertHeadImg(strsrc1) {
	    var xmldoc = ss()
	    xmldoc.load("../../xml/HeadFile.xml")
	    var oNodes = xmldoc.selectNodes("//scores/img")
	    //遍历节点
	    for (var i = 0; i < oNodes.length; i++) {
	        var strch
	        var strtra
	        var host = "../"
	        var strsrc = host + strsrc1
	        strch = host + oNodes[i].getAttribute("churl")
	        strtra = host + oNodes[i].getAttribute("traurl")
	        //遍历IMG的src属性
	        if (ZT == 1) {
	            if (strtra == strsrc) {
	                strsrc = ""
                    return strch
	                break
	            } else {
	                return strsrc;
	            }
	        }
	        else if (ZT == 2) {
	            if (strch == strsrc) {
	                strsrc = ""
                    return strtra
                    break
	            } else {
                    strsrc = ""
	            }
	        }
	    }
	}
    //读取XML
	function ss() {
	    var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
	    xmldoc.async = false;
	    return xmldoc;
    }

//2.转换对象,使用递归,逐层剥到文本:

function StranBody(fobj)
{
	if(typeof(fobj)=="object"){var obj=fobj.childNodes}
	else 
	{
		var tmptxt=StranLink_Obj.innerHTML.toString()
		if(tmptxt.indexOf("简")<0)                                //字是“繁”时，转换成繁体
		{
			BodyIsFt=1
			StranLink_Obj.innerHTML=StranText(tmptxt,0,1)
			StranLink.title=StranText(StranLink.title,0,1)
		}
		else
		{
			BodyIsFt=0
			StranLink_Obj.innerHTML=StranText(tmptxt,1,1)
			StranLink.title=StranText(StranLink.title,1,1)
		}
		setCookie(JF_cn,BodyIsFt,7,"/");
       	top.document.title=StranText(top.document.title);//转换标题
		var obj=document.body.childNodes
	}
	for(var i=0;i<obj.length;i++)
	{
		var OO=obj.item(i)
		if("||BR|HR|TEXTAREA|".indexOf("|"+OO.tagName+"|")>0||OO==StranLink_Obj)continue;
		if(OO.title!=""&&OO.title!=null)OO.title=StranText(OO.title);
		if(OO.readyState==4){if(OO.status==50){eval(OO.responseText);}}
		if(OO.alt!=""&&OO.alt!=null)OO.alt=StranText(OO.alt);
		if(OO.tagName=="INPUT"&&OO.value!=""&&OO.type!="text"&&OO.type!="hidden")OO.value=StranText(OO.value);
		//if(OO.tarName=="AREA"&&OO.title!="")OO.title=StranText(OO.title);
		if(OO.nodeType==3){OO.data=StranText(OO.data)}
		if(OO.tagName=="IFRAME" && OO.name=="content"){OO=OO.document.frames["content"].document;StranBody(OO);}
		else StranBody(OO)
	}
	//flashIFrame("ifm2");
}

function flashIFrame(framid)
{
	if("ifm2" == framid)
	{
		var obj_iframe = document.getElementByid(framid);
		obj_iframe.location.reload();
	}
}

/*
var idno=0;
function StranBody(fobj){
if (typeof(fobj)=="object"){var obj=fobj.childNodes}
	else{
       var tmptxt=StranLink_Obj.innerHTML.toString()
		   if(tmptxt.indexOf("简")<0){
               BodyIsFt=1;
               StranLink_Obj.innerHTML=StranText(tmptxt,0,1);
               StranLink.title=StranText(StranLink.title,0,1);
		}else{
			BodyIsFt=0;
			StranLink_Obj.innerHTML=StranText(tmptxt,1,1);
			StranLink.title=StranText(StranLink.title,1,1);
			}
		setCookie(JF_cn,BodyIsFt,7,"/");
       	top.document.title=StranText(top.document.title);//转换标题
		var obj=document.body.childNodes;
	}
	for(var i=0;i<obj.length;i++){
		   var OO=obj.item(i);
		if("||BR|HR|TEXTAREA|".indexOf("|"+OO.tagName+"|")>0||OO==StranLink_Obj) continue;//处理行内框架页面
			if(OO.tagName=="IFRAME") {
				if(OO.id==null || OO.id=="") {
					OO.id="idno"+idno;
					idno++;}
			 var SOO=eval(String(OO.id)+".document.body");
			 var IFOO=eval(String(OO.id));		//行内框架页面函数劫持
			 var _alert = IFOO.alert;
			 var _confirm = IFOO.confirm; 
			 var _prompt = IFOO.prompt;
			 IFOO.BodyIsFt=top.BodyIsFt;
			 IFOO.StranText=top.StranText;
			 IFOO.Traditionalized=top.Traditionalized;
			 IFOO.Simplized=top.Simplized;
			 IFOO.JTPYStr=top.JTPYStr;
			 IFOO.FTPYStr=top.FTPYStr;
			 IFOO.alert = function(s) { _alert(StranText(s,BodyIsFt));}; 
			 IFOO.confirm = function(s) { _confirm (StranText(s,BodyIsFt));};
			 IFOO.prompt = function(s,i) { _prompt(StranText(s,BodyIsFt),StranText(i,BodyIsFt));};
			 StranBody(SOO);
			 }
		   if(OO.title!=""&&OO.title!=null)OO.title=StranText(OO.title);
		   if(OO.alt!=""&&OO.alt!=null)OO.alt=StranText(OO.alt);
		   if(OO.tagName=="INPUT"&&OO.value!=""&&OO.type!="text"&&OO.type!="hidden")OO.value=StranText(OO.value);
		   if(OO.nodeType==3){OO.data=StranText(OO.data);}
		   else StranBody(OO);
	}  
}
*/

//利用Cookie在静态页面中传递所设置的值
//cookies设置
function setCookie(name,value) {
	//alert(value);
	var argv = setCookie.arguments;
	var argc = setCookie.arguments.length;
	var expires = (argc > 2) ? argv[2]: null;
		if(expires!=null){
			var LargeExpDate = new Date ();
			LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*3600*24));
			}
	
		//document.cookie = name + "=" + escape (value)+((expires == null) ? "" : ("; expires=" +LargeExpDate.toGMTString()));
		
		document.cookie = name + "=" + escape (value)+((expires == null) ? "" : ("; expires=" +LargeExpDate.toGMTString())) + "; path=" + "/";

}


//cookies读取
function getCookie(Name) {
	var search = Name + "="
	//alert(document.cookie);
		if(document.cookie.length > 0){
		offset = document.cookie.indexOf(search)
			if(offset != -1){
			offset += search.length
			end = document.cookie.indexOf(";",offset)
				if(end == -1) end = document.cookie.length
				return unescape(document.cookie.substring(offset,end))

			}
			else return "" 
		}
}
//用cookies传递“简体”“繁体”
function addCookie(objName,objValue){//添加cookie
    var str = objName + "=" + escape(objValue);
    var objHours = 24
     var date = new Date();
     var ms = objHours*3600*1000;
     date.setTime(date.getTime() + ms);
     str += "; expires=" + date.toGMTString() + "; path=" + "/";
    document.cookie = str;
}
