﻿var $ = function(element) {
	return (typeof(element) == 'object' ? element : document.getElementById(element));
};
function QueryString( paramName )
{
    var oRegex = new RegExp('[\?&]' + paramName + '=([^&]+)','i') ;
    var oMatch = oRegex.exec(window.location.search) ;
    if (oMatch && oMatch.length>1) return oMatch[1];
    else return null;
}
try {document.execCommand('BackgroundImageCache', false, true);}catch(e){}
var Browser=new Object();
Browser.isMozilla=(typeof document.implementation !='undefined')&&(typeof document.implementation.createDocument !='undefined')&&(typeof HTMLDocument!='undefined');
Browser.isIE=window.ActiveXObject ? true : false;
Browser.isFirefox=(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1);
Browser.isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);

function showMy(){
var arkMyText='<div style="width:320px;height:18px;position:relative;"><div id="arkMyBox" style="position:absolute;top:0;left:0;z-index:99;width:320px;padding:0;height:16px;overflow:hidden;"><div style="padding:0 0 0 16px;"><iframe src="http://e-file.123aoe.com/tools/arkmy.htm?domaininfo=123aoe.com" scrolling="no" allowTransparency = "true" frameborder="0" width="272" height="56"></iframe><span id="arkMyTip" style="vertical-align:top;cursor:pointer;" onmouseup="setMyBox();">▼ </span></div><div style="height:12px;line-height:10px;font:8px Verdana,Arial;text-align:center;border-top:1px solid #333333" onmouseover="setMyBox();">▲ </div></div></div>';
$("arkMy").innerHTML=arkMyText;
if(Browser.isOpera){
var link = $('arkMyBox').parentNode;
link.style.position="";
$('arkMyBox').style.top=link.offsetTop+"px";
$('arkMyBox').style.left=link.offsetLeft+"px";
document.onresize="showMy()";
}
}
var setMyBox=function(){
if($("arkMyTip").innerHTML=="▼ "){
$("arkMyTip").innerHTML="▲ ";
$('arkMyBox').style.height='70px';
$('arkMyBox').style.background='#ecf3e1';
$('arkMyBox').style.border='1px solid #333333';}
else{
$("arkMyTip").innerHTML="▼ ";
$('arkMyBox').style.height='16px';
$('arkMyBox').style.background='';
$('arkMyBox').style.border='none';
}
}

function arkGoKey(key){
open('http://search.arkoo.com/?keyword='+encodeURI(key),'parent','');
}

function reText(){
	if(!Browser.isIE){
		return;
	}
	var dPu="";
	try{
		dPu=$("navChannel").getElementsByTagName('a')[0].pathname.replace(/(.*\/){0,}([^\.]+.*)/ig,"$2");
		}catch(e){}
		if(dPu=="shangrenlishi.html"){
			$("authorInfo").innerHTML=$("authorInfo").innerHTML.replace(/发布/ig,'Publisher').replace(/媒体/ig,'Source').replace(/作者/ig,'Author');
		}
}

var setKooLink=function(){
var kso=$("kooSites").getElementsByTagName("dt");
for(var i=0;i<kso.length;i+=2){
kso[i].getElementsByTagName("a")[0].href=kso[i+1].getElementsByTagName("a")[0].href="javascript:void(arkGoKey('"+kso[i].getElementsByTagName("a")[0].innerHTML+"'))";
}
}

var setKooLink2=function(){
var kso=$("kooSites2").getElementsByTagName("a");
for(var i=0;i<kso.length;i++){
kso[i].href="javascript:void(arkGoKey('"+kso[i].innerHTML+"'))";
}
}

if(typeof(m_path)=='undefined')var m_path="";

var navdata='<ul id="nav">'+
'<li class="lib"><a href="'+m_path+'/" target="_self">首页</a><ul><li><a href="'+m_path+'top.html">热门</A> <A href="http://www.sina.com.cn/">新浪</A> <A href="http://www.163.com/">网易</A> <A href="http://www.qq.com/">QQ</A> <A href="http://cn.yahoo.com/">雅虎中国</A> <A href="http://www.baidu.com/">百度</A> <A href="http://www.google.cn/">Google搜索</A> <a href="http://about.com/">About</a> <a href="http://www.usatoday.com/">USAToday</a> <a href="http://newsnow.co.uk/">NewsNow</a> <a href="http://bbc.co.uk/">BBC</a> <a href="http://www.cnn.com/">CNN</a></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'news.html" target="_self">今日关注</a><ul><li><a>热点聚焦,国内,国际,财经,科技,娱乐,体育,房产,汽车,社会,生活</a></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'wenzhai.html" target="_self">精品文摘</a><ul><li><a href="'+m_path+'wenzhai-xiaoshuo.html">小说</a> <A href="'+m_path+'wenzhai-sanwen.html">散文</A> <A href="'+m_path+'wenzhai-shige.html">诗歌</A> <A href="'+m_path+'wenzhai-qita.html">其它</A></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'rumen.html" target="_self">上网入门</a><ul><li><A href="'+m_path+'rumen-shangwang.html">上网</A> <A href="'+m_path+'rumen-liaotian.html">聊天</A> <A href="'+m_path+'rumen-bangong.html">办公</A> <A href="'+m_path+'rumen-blog.html">博客</A> <A href="'+m_path+'rumen-dazi.html">打字</A> <A href="'+m_path+'rumen-xiazai.html">下载</A> <A href="'+m_path+'rumen-youxi.html">游戏</A> <A href="'+m_path+'rumen-gouwu.html">购物</A> <A href="'+m_path+'rumen-yingjian.html">硬件</A> <A href="'+m_path+'rumen-ruanjian.html">软件</A></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'xiaohua.html" target="_self">笑话长廊</a><ul><li><A href="'+m_path+'xiaohua-qiwenqushi.html">奇闻趣事</A> <A href="'+m_path+'xiaohua-xiaoyuan.html">校园笑话</A> <A href="'+m_path+'xiaohua-dongwu.html">动物笑话</A> <A href="'+m_path+'xiaohua-yiling.html">异灵笑话</A> <A href="'+m_path+'xiaohua-leng.html">冷笑话</A> <A href="'+m_path+'xiaohua-duanxin.html">爆笑短信</A> <A href="'+m_path+'xiaohua-nannv.html">成人笑话</A> <A href="'+m_path+'xiaohua-qita.html">一般笑话</A></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'gushi.html" target="_self">故事大王</a><ul><li><A href="'+m_path+'gushi-shenhua.html">神话故事</A> <A href="'+m_path+'gushi-qinggan.html">情感故事</A> <A href="'+m_path+'gushi-xiaoyuan.html">校园故事</A> <A href="'+m_path+'gushi-minjian.html">民间故事</A> <A href="'+m_path+'gushi-zheli.html">哲理故事</A> <A href="'+m_path+'gushi-tuili.html">推理故事</A> <A href="'+m_path+'gushi-kongbu.html">恐怖故事</A> <A href="'+m_path+'gushi-zhuanti.html">专题故事</A></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'love.html" target="_self">爱情顾问</a><ul><li><a href="'+m_path+'love-gf.html">谁是女友</a> <A href="'+m_path+'love-bf.html">谁是男友</A> <A href="'+m_path+'love-she.html">她是女友</A> <A href="'+m_path+'love-he.html">他是男友</A> <A href="'+m_path+'love-her.html">女人的想法</A> <A href="'+m_path+'love-him.html">男人的想法</A> <A href="'+m_path+'love-folks.html">TA的亲人</A> <A href="'+m_path+'love-lore.html">爱情百科</A></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'zhishi.html" target="_self">百 知 堂</a><ul><li><a href="'+m_path+'zhishi.html">文化 人物 技术 历史 艺术 生活 地理 社会 体育 自然 科学 经济</a> <a href="'+m_path+'zhishi-wisdom.html">名言</a> <a href="'+m_path+'zhishi-zhouyi.html">周易</a></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'qimeng.html" target="_self">启蒙教育</a><ul><li><a href="'+m_path+'qimeng.html">孕期,幼教,青春期,经典教育,潜能开发,社会交际,教育案例,亲子活动</a></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'riji.html" target="_self">日记</a><ul><li><a href="'+m_path+'riji.html">亲子,心情,事件,记忆,计划,思想</a></li></ul></li>'+
'<li class="lib"><a href="'+m_path+'shangye.html" target="_self">商业广告</a><ul><li><a href="'+m_path+'shangye.html">商业广告,分类信息,供求世界,各类商机</a></li></ul></li>'+
'</ul>'+
'<div class="tip">我们共同进步！</div>';
function showMenu(){
	document.getElementById('menuBox').innerHTML=navdata;
	startList(0);
	}
var dfr,dfrover,thsobj,thsobjover;
if(typeof(dPu)=="undefined")var dPu=document.location.pathname.replace(/(.*\/){0,}([^\.]+).*/ig,"$2");
if(dPu=="")dPu="/";
function startList(dg) {
		var navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
			var nA=node.getElementsByTagName('a');
			node.className=node.className.replace(" over", "");
			if((dg==0||dg==3)&&node.parentNode==navRoot){
				node.onmouseover=function() {
					thsobjover=this;
					clearTimeout(dfr);
				    dfrover=setTimeout("startList(1);thsobjover.className+=' over';  ",300);
				}
				node.onmouseout=function() {
					thsobj=this;
					clearTimeout(dfrover);
					dfr=setTimeout("thsobj.className=thsobj.className.replace(' over','');startList(2);",2000);
				}
			}	
			if(dg==1||dg==3) continue;
			    for(j=0;j<nA.length;j++){
			        if(nA[j].pathname.replace(/(.*\/){0,}([^\.]+).*/ig,"$2")==dPu){
				        node.className+=" over";
				        nA[j].className+=" over";
			//	        nA[j].onclick=function(){this.blur();return false}
				        dg=3;break;
				    }
			    }
			}
		}
		if(dg!=3&&dg!=1){
		node = navRoot.childNodes[0];
		nA=node.getElementsByTagName('a');
		node.className+=" over";
		nA[0].className+=" over";
	//	nA[0].onclick=function(){this.blur();return false}
		}
}









var gaJsHost;
var pageTracker;
var intervalLoad;
var findErr=0;
/*后加载------------------------------------------------------------*/
function BeginLoadArk(){
gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

intervalLoad=setInterval(function(){
try{_gat}catch(e){findErr=1;}
if(findErr){
findErr=0;
//alert('参数错误！');
}
else{
pageTracker = _gat._getTracker("UA-9022595-1");
pageTracker._trackPageview();
clearTimeout(intervalLoad);
}
},1000);
}
