﻿// JavaScript Document
//屏蔽JS错误
function killErrors(){ 
	return true;
	} 
	window.onerror=killErrors;

//加入收藏
function SetShcang(){
	javascript:window.external.AddFavorite(window.location.href, document.title);
	}

//改变字体大小
function SetFont(n)
{
event.returnValue=false
document.getElementById("p_content").runtimeStyle.fontSize=n;
}

//字典切换
var zd ="1";
var zds="6";
function Setzd(no){
var cat=no.toString(10);
document.getElementById('zd'+zd).style.color='';
document.getElementById('zd'+cat).style.color='#bc2931';
zd = cat;
document.getElementById("zdfocus").className='zdfocus'+no+'';
document.getElementById("submit").value=document.getElementById('zd'+no).innerHTML ;
if (no==1){document.zdform.action='http://tool.httpcn.com/zi/So.asp';}
if (no==2){document.zdform.action='http://tool.httpcn.com/KangXi/So.asp';}
if (no==3){document.zdform.action='http://tool.httpcn.com/ShuoWen/So.asp';}
if (no==4){document.zdform.action='http://tool.httpcn.com/ShuFa/So.asp';}
if (no==5){document.zdform.action='http://tool.httpcn.com/CiDian/so.asp';}
if (no==6){document.zdform.action='http://tool.httpcn.com/ShiCi/so.asp';}
}

//自动 COPY代码开始
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
	}
function JM_cc(ob){
	var obj=MM_findObj(ob); if (obj) { 
	obj.select();js=obj.createTextRange();js.execCommand("Copy");}
	alert("地址复制成功，您现在可以粘贴到QQ/MSN/论坛等任何地方！");
	}
function SetCopy(){
	document.write('<input name="page_url" value="'+window.location.href+'" size="50" type="hidden">【<a href="#" onClick=JM_cc("page_url"),event.returnValue=false>复制地址</a>】');
	}

//用户浏览统计
function Setcount(t,code){
	if(t=="ChinesetoEnglish"){document.write('<scr'+'ipt src="/Count/CntoEn.asp?id='+code+'"></scr'+'ipt>')}  //汉英
	if(t=="EnglishtoChinese"){document.write('<scr'+'ipt src="/Count/EntoCn.asp?id='+code+'"></scr'+'ipt>')}  //英汉
	if(t=="ChinesetoKorea"){document.write('<scr'+'ipt src="/Count/CntoKr.asp?id='+code+'"></scr'+'ipt>')}    //中韩
	if(t=="ChinesetoKoreazi"){document.write('<scr'+'ipt src="/Count/CntoKrzi.asp?id='+code+'"></scr'+'ipt>')}//中韩
	if(t=="KoreatoChinese"){document.write('<scr'+'ipt src="/Count/KrtoCn.asp?id='+code+'"></scr'+'ipt>')}    //韩中
	if(t=="ChinesetoJapanese"){document.write('<scr'+'ipt src="/Count/CntoJp.asp?id='+code+'"></scr'+'ipt>')} //汉日
	if(t=="JapanesetoChinese"){document.write('<scr'+'ipt src="/Count/JptoCn.asp?id='+code+'"></scr'+'ipt>')} //日汉
	if(t=="ChinesetoRussian"){document.write('<scr'+'ipt src="/Count/CntoRu.asp?id='+code+'"></scr'+'ipt>')}  //汉俄
	if(t=="ChinesetoGerman"){document.write('<scr'+'ipt src="/Count/CntoDe.asp?id='+code+'"></scr'+'ipt>')}   //汉德
	if(t=="GermantoChinese"){document.write('<scr'+'ipt src="/Count/DetoCn.asp?id='+code+'"></scr'+'ipt>')}   //德汉
	}


//鼠标事件（表格背景）
function mOvr(src) { 
	if (!src.contains(event.fromElement)) { src.bgColor = "#F7CA86"; }
	}
function mOut(src) {
	if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = "F3EEE9"; }
	}

//so nav ad
function Soad(){
	document.write('　<span class="a14soad"><a href="http://tool.httpcn.com/Jx/" target="_blank">手机号码吉凶</a>　<a href="http://life.httpcn.com/dream.asp" target="_blank">周公解梦</a>　<a href="http://life.httpcn.com/sm/?gourl=vip_name_sub.asp" target="_blank">姓名测试</a>　<a href="http://tool.httpcn.com/hl.shtml" target="_blank">黄历</a>　<a href="http://www.okbmf.com" target="_blank">本命佛</a></span>');
	}

//zhaozhao more
function Setzhaozhao(tmp1)	{
document.write('<a href="http://www.zhaozhao.com/go.html?no=13&key='+tmp1+'" target="_blank" style="color:#0D3F98;font-size:14px">更多[<font color=red>'+tmp1+'</font>]的相关内容</a>');
}

//tran ad
function SetTranad1(){document.write('');}
function SetTranad2(){document.write('');}

//news ad嵌入文件
function Setnewstj(){
	wd='';
	wd=wd+'<div style="margin-top:10px"><img src="/images/reading.gif" /></div>';
	wd=wd+'<div class="newstj">';
	wd=wd+'<div style="padding:5px 0px 0px 10px"><img src="/images/ad_8.gif" /></div>';
	wd=wd+'</div>';
	document.write(wd);
	}

//站内Flash广告简写函数
function SetAdswf(width,height,url){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="Opaque">');
	//透明document.write('<param name="wmode" value="transparent">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
	document.write('</object>');
}

//读音
function Setduyinplay(url)	{
//document.getElementById('mpbox').innerHTML = "<object id=\"mplay\" type=\"application/x-mplayer2\" width=\"1\" height=\"1\"><param name=\"FileName\" value=\""+a+"\"><param name=\"AutoStart\" value=\"1\"><param name=\"Volume\" value=\"0\"><embed id=\"mplay\" type=\"application/x-mplayer2\" src=\""+a+"\" width=1 height=1 autostart=true loop=false volume=0></embed></object>";
wd='<object id="mplay" type="application/x-mplayer2" width="1" height="1">';
wd=wd+'<param name="FileName" value="'+url+'">';
wd=wd+'<param name="AutoStart" value="1">';
wd=wd+'<param name="Volume" value="0">';
wd=wd+'<embed id="mplay" type="application/x-mplayer2" src="'+url+'" width=1 height=1 autostart=true loop=false volume=0></embed>';
wd=wd+'</object>';
document.getElementById('duyinbox').innerHTML=wd;
}
function Setduyin(url){
document.write('<a href="#" onFocus="this.blur()" onclick="Setduyinplay(\''+url+'\');return false;" class="duyinpic"><img src="/images/ico_duyin.gif" border="0" alt="在线读音" /></a><span id="duyinbox"></span><span id="duyinbox"></span>')
}

//Flash 读音
function SetSwfduyin(url) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="22" height="22">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="movie" value="/js/duyin.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="flashVars" value="lj='+url+'" />');
document.write('<embed flashvars="lj='+url+'" src="/js/duyin.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="22" height="22"></embed>');
document.write('</object>');
}


//Flash focus
function httpcnFocus(){
	//网络中国开发部
var SwfSrc="/js/HttpcnFlash.swf"
var PicWidth=270 //图片宽度
var PicHeight=150 //图片高度
var TextHeight=22 //文字说明高度
var MovieHeight=PicHeight+TextHeight //swf影片高度
var Target="_blank" //链接打开方式
var BordersWidth=0 //边框宽度
var RoundCorner=0 //边框圆角半径
var BordersColor="ffffff" //边框颜色
var BordersAlpha=100 //边框颜色透明度
var bgcolor="ffffff" //SWF背景色

var TextBgColor='0066CC' //文字背景
var TextFont="Arial" //字体(不支持中文)
var TextSize=12 //文字大小
var TextBold=1 //1=加粗;0=不加粗
var TextColor="ffffff" //说明文字颜色
var TextHoverColor="000000" //鼠标移入时说明文字的颜色
var TextLeftMargin=10 //说明文字左右两侧与边框的间距
var TextAlign="center" //说明文字的水平对齐方式

var NumBgColor="ff0000" //图片序号的背景色
var NumColor="ffffff" //图片序号的文字颜色
var NumActiveColor="0066CC" //当前显示的图片序号的背景色
var NumBorderColor="ffffff" //图片序号分割线的颜色

var Effects="0|1|2|3|4|5|6|7|8|9|10|11" //图片切换方式:如下
// 从左上方进入 从右上方进入 从右下方进入 从左下方进入
// 从正左侧进入 从正右侧进入 从正上方进入 从正下方进入
// 水平的百叶窗 垂直的百叶窗 动态百叶窗一 动态百叶窗二

var PicUrls="/images/flash_01.jpg|/images/flash_02.jpg"
var UrlValue="/soft|/Kr"
var TextValue="下载在线翻译工具|现下时尚韩语"

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width='+PicWidth+' height='+ MovieHeight +'>');
document.write('<param name="movie" value='+SwfSrc+' />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#'+bgcolor+'" />');
document.write('<param name="scale" value="noscale" />');
document.write('<param name="salign" value="LT" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="flashvars" value="Author=Aslan&HomePage=http://www.httpcn.com/&PicWidth='+PicWidth+'&PicHeight='+PicHeight+'&MovieHeight='+MovieHeight+'&TextHeight='+TextHeight+'&TextBgColor='+TextBgColor+'&PicUrls='+PicUrls+'&UrlValue='+UrlValue+'&TextValue='+TextValue+'&Target='+Target+'&BordersWidth='+BordersWidth+'&RoundCorner='+RoundCorner+'&BordersColor='+BordersColor+'&BordersAlpha='+BordersAlpha+'&TextFont='+TextFont+'&TextSize='+TextSize+'&TextBold='+TextBold+'&TextColor='+TextColor+'&TextHoverColor='+TextHoverColor+'&TextLeftMargin='+TextLeftMargin+'&TextAlign='+TextAlign+'&NumBgColor='+NumBgColor+'&NumColor='+NumColor+'&NumActiveColor='+NumActiveColor+'&NumBorderColor='+NumBorderColor+'&Effects='+Effects+'" />');
document.write('<embed src='+SwfSrc+' quality="high" flashvars="Author=Aslan&HomePage=http://www.httpcn.com/&PicWidth='+PicWidth+'&PicHeight='+PicHeight+'&MovieHeight='+MovieHeight+'&TextHeight='+TextHeight+'&TextBgColor='+TextBgColor+'&PicUrls='+PicUrls+'&UrlValue='+UrlValue+'&TextValue='+TextValue+'&Target='+Target+'&BordersWidth='+BordersWidth+'&RoundCorner='+RoundCorner+'&BordersColor='+BordersColor+'&BordersAlpha='+BordersAlpha+'&TextFont='+TextFont+'&TextSize='+TextSize+'&TextBold='+TextBold+'&TextColor='+TextColor+'&TextHoverColor='+TextHoverColor+'&TextLeftMargin='+TextLeftMargin+'&TextAlign='+TextAlign+'&NumBgColor='+NumBgColor+'&NumColor='+NumColor+'&NumActiveColor='+NumActiveColor+'&NumBorderColor='+NumBorderColor+'&Effects='+Effects+'" bgcolor="#'+bgcolor+'" width='+PicWidth+' height='+MovieHeight+' scale="noscale" salign="LT" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>');
document.write('</object>');
}

//tran right
function Settranright(){
	wd='';
	wd=wd+'<div style="margin:0px 0px 10px 0px"><iframe src="/Include/TranRight.htm" width="270" height="830" frameborder="0" scrolling="no"></iframe></div>';
	document.write(wd);
	}
	
//news right
function Setnewsright(){
	wd='';
	wd=wd+'<div style="margin:0px 0px 10px 0px"><iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" width="340" height="205" src="/Include/NewsRight_04.htm"></iframe></div>';
	wd=wd+'<div style="margin:0px 0px 10px 0px"><iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" width="340" height="1220" src="/Include/NewsRight_02.htm"></iframe></div>';
	wd=wd+'<div style="margin:0px 0px 10px 0px"><img src="/images/ad_bmf_gif.gif" /></div>';
	wd=wd+'<div style="margin:0px 0px 10px 0px"><iframe frameborder="0" marginheight="0" marginwidth="0" scrolling="no" width="340" height="345" src="/Include/NewsRight_03.htm"></iframe></div>';
	wd=wd+'<div style="margin:0px 0px 10px 0px"><img src="/images/ad_7.gif" /></div>';
	document.write(wd);
	}


//ZiDian
function SetZidian(){
	wd='';
	wd=wd+'<div class="zidian">';
	wd=wd+'<form name="zdform" class="zdform" action="http://tool.httpcn.com/zi/so.asp" post="get" target="_blank">';
	wd=wd+'<ul class="zdlist">';
	wd=wd+'<li onclick="Setzd(1)" id="zd1" style="color:#bc2931">新华字典</li>';
	wd=wd+'<li onclick="Setzd(2)" id="zd2">康熙字典</li>';
	wd=wd+'<li onclick="Setzd(3)" id="zd3">说文解字</li>';
	wd=wd+'<li onclick="Setzd(4)" id="zd4">书法字典</li>';
	wd=wd+'<li onclick="Setzd(5)" id="zd5">中文词典</li>';
	wd=wd+'<li onclick="Setzd(6)" id="zd6" class="end">诗词大全</li>';
	wd=wd+'</ul>';
	wd=wd+'<div class="clear"></div>';
	wd=wd+'<div id="zdfocus" class="zdfocus1"></div>';
	wd=wd+'<input type="text" name="wd" style="width:405px;border:1px #cccccc solid;height:20px;margin-top:5px;font-size:16px;color:#bc2931" /> ';
	wd=wd+'<input type="submit" id="submit" value="新华字典" style="font-size:14px;width:80px;background:url(/images/bg_buttom80.gif) no-repeat;height:25px;border:0px;" />';
	wd=wd+'<div class="zdtj">精彩推荐：<a href="http://www.okbmf.com/" target="_blank">十二生肖本命佛</a>　<a href="http://www.okbmf.com/pixiu.asp" target="_blank">招财貔貅</a>　<a href="http://www.okbmf.com/Fengshui.asp" target="_blank">家居风水</a>　<a href="http://www.okbmf.com/Shoulian.asp" target="_blank">开光手链</a>　<a href="http://www.okbmf.com/Chegua.asp" target="_blank">开光车挂</a></div>';
	wd=wd+'<hr class="hrline" />';
	wd=wd+'<ul class="zdad">';
	wd=wd+'<li><a href="http://www.okbmf.com/" target="_blank">本命佛保您一生平安</a></li>';
	wd=wd+'<li><a href="http://www.52jxt.com/" target="_blank">专家坐阵起名改名测名</a></li>';
	wd=wd+'<li><a href="http://life.httpcn.com/dream.asp" target="_blank">周公解梦解析你每日梦境</a></li>';
	wd=wd+'<li><a href="http://www.52jxt.com/" target="_blank">宝宝起名、成人改名</a></li>';
	wd=wd+'<li><a href="http://www.okbmf.com/benmingfo/" target="_blank">知道保佑你的菩萨是谁吗</a></li>';
	wd=wd+'<li><a href="http://www.okbmf.com/" target="_blank">送亲人爱人朋友本命佛</a></li>';
	wd=wd+'<li><a href="http://www.okbmf.com/Fengshui.asp" target="_blank">家居风水辟邪招财化煞</a></li>';
	wd=wd+'<li><a href="http://www.okbmf.com/yupei.asp" target="_blank">A货吉祥玉器货到付款</a></li>';
	wd=wd+'<li><a href="http://life.httpcn.com/sm/?gourl=vip_ss_sub.asp" target="_blank">超级神算测您终身运势</a></li>';
	wd=wd+'</ul>';
	wd=wd+'</form>';
	wd=wd+'</div>';
	document.write(wd);
	}


//web down
function SetBottom(){

//复制加链接
document.body.oncopy=function() 
{ 
event.returnValue=false; 
var l=document.selection.createRange().text; 
var y="\r\n[ 结果来源于: "+location.href+" ]"; 
window.clipboardData.setData('Text', l+y); 
}

	wd='<div class="bnav"></div>';
	wd=wd + '<div class="bottom">';
	wd=wd + '<p><a href="http://www.httpcn.com/corp/" target="_blank">网站简介</a>　-　<a href="http://www.httpcn.com/corp/contact.shtml" target="_blank">联系方法</a>　-　<a href="http://www.httpcn.com/corp/item.shtml" target="_blank">服务条款</a>　-　<a href="http://www.httpcn.com/corp/copyright.shtml" target="_blank">知识产权</a>　-　<a href="http://www.httpcn.com/corp/cooperation.shtml" target="_blank">合作机会</a></p>';
	wd=wd + '<p>Copyright   2001 - 2009 Httpcn Inc, All rights reserved.</p>';
	wd=wd + '</div>';
	document.write(wd);
	}

//流量统计
function Settongji(){
	wd='<div style="display:none">';
	wd=wd+'<script type="text/javascript" src="http://js.tongji.linezing.com/827095/tongji.js"></script><noscript><a href="http://www.linezing.com"><img src="http://img.tongji.linezing.com/827095/tongji.php"/></a></noscript>';
	//wd=wd+'<script language="javascript" src="http://utk.baidu.com/usv/uc.sv?pe=SNpZ67xMUB7UcVcuCo0fx3vuV~w=&sn=160&an=69714&rn=625"></script>';
	//wd=wd+'<script language="javascript" src="http://www.httpcn.com/about/newopen/newopen.js"></script>';
	document.write(wd);
	}

//控制导航切换显示内容函数
function SetDiv(div,no){
	SetDiv_1(div,no);
}

function SetDiv_1(div,no){
	switch(no){
		case 1:
		document.getElementById(div+"1").style.display="block";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		break;
		case 2:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="block";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		break;
		case 3:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="block";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="none";
		break;
		case 4:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="block";
		document.getElementById(div+"5").style.display="none";
		break;
		case 5:
		document.getElementById(div+"1").style.display="none";
		document.getElementById(div+"2").style.display="none";
		document.getElementById(div+"3").style.display="none";
		document.getElementById(div+"4").style.display="none";
		document.getElementById(div+"5").style.display="block";
		break;
	}
}


var path1="Sg0NoecXVVBsQeWBZ7hb_1rhKD4jEN2ElsZbrxpDzkcM-";
var path2="SYls3jUpdI3Kiunmx,8iCz82Yiq2gSL93sZbrxpDzkcM-"; 
//var wl_url="http://translate3.httpcn.net/"+path1+"/texttranslate";
var wl_url="http://translate.httpcn.com/"+path1+"/texttranslate";
var wl_url2="http://translate.httpcn.com/"+path2+"/translation";
var wl_url_1="http://translate2.httpcn.net/cgi-bin/text.cgi";
var wl_url_2="http://translate1.httpcn.com/cgi-bin/Text.cgi";
var wl_url_3="http://204.15.165.130/"+path1+"/texttranslate";