﻿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 $(){
return document.getElementById($.arguments[0])
}

function show(d,img){
	tempImg=$("Imag");
	tempBox=$(d);
	tempImg.style.width="";
	tempBox.style.top=Math.max((document.body.clientHeight==document.body.offsetHeight?document.documentElement.scrollTop:document.body.scrollTop)+0,0)+"px";
    tempBox.style.display="";
	tempImg.onload=function(){
		if(tempImg.width>1000)tempImg.style.width="1000px";
		tempBox.style.top=Math.max((document.body.clientHeight==document.body.offsetHeight?document.documentElement.scrollTop:document.body.scrollTop)+Math.max(((document.body.clientHeight==document.body.offsetHeight?document.documentElement.clientHeight:document.body.clientHeight)-tempImg.height-4)/2,0),0)+"px";
		tempImg.onload=null;
	}
	tempImg.src=img;
	if(show.arguments[2]){$("picTxt").innerHTML=show.arguments[2];}else{$("picTxt").innerHTML=""}
}

var tempBox;
var tempImg;
document.write("<div id='Layer999' style=\"overflow:visible;position:absolute;display:none;width:100%;height:1px;text-align:center;padding:0;margin:0;z-index:99;left:0px;top:0px\"><table cellpadding=0 cellspacing=0 border=2 style='text-align:center;margin:0 auto;border:3px solid #333;' bordercolor=#FFCC33><tr><td style='cursor:hand;background:#fff;'><img id=Imag src='/images/loading.gif' onclick=\"this.src='/images/loading.gif';$('Layer999').style.display='none'\" alt='单击关闭'></td></tr><tr style='background:#ff0;'><td><span id='picTxt' style='color:#00f'></span></td></tr></table></div>");


var dfr,dfrover,thsobj,thsobjover;
if(typeof(dPu)=="undefined")var dPu=document.location.pathname.replace(/(.*\/){0,}([^\.]+.*)/ig,"$2");
if(dPu==""||dPu=="/")dPu="default.html";
var addUlId={};
function startList(dg) {
	if (document.getElementById) {
		var navRoot = document.getElementById("nav");
		var n=0;
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
			n++;
			var nA=node.getElementsByTagName('a');
		    if(typeof(addUlId[i])=="undefined"){
				var nLi0=node.getElementsByTagName('li')[0];
				if(node.offsetLeft-navRoot.offsetLeft+nLi0.offsetWidth>navRoot.offsetWidth)
					nLi0.style.left=-node.offsetLeft-nLi0.offsetWidth+navRoot.offsetLeft+navRoot.offsetWidth+"px";
				}
			node.className=node.className.replace(/ over/ig, "");
			if((dg==0||dg==3)&&node.parentNode==navRoot){
				node.onmouseover=function() {
					thsobjover=this;
					clearTimeout(dfr);
				        dfrover=setTimeout(
						"thsobjover.className=thsobjover.className.replace(/ over/ig,'');thsobjover.className+=' over';startList(1);thsobjover.className+=' over';"
						,50);
				}
				node.onmouseout=function() {
					thsobj=this;
					clearTimeout(dfrover);
					dfr=setTimeout(
					"thsobj.className=thsobj.className.replace(' over','');startList(2);"
					,20000);
				}
			}	
			if(dg==1||dg==3) continue;
			    for(j=0;j<nA.length;j++){
			        if(nA[j].href.replace(/(.*\/){0,}([^\.]+.*)/ig,"$2")==dPu){
				        node.className+=" over";
				        if(j>0)nA[j].style.color="#006";
				        nA[j].onclick=function(){this.blur();return false}
				        dg=3;break;
				    }
			    }
			}
//if(i==navRoot.childNodes.length-1)node.className+=" over";
		}
	}
}

document.write("<style>.flashBox{display:none;}</style>");
function addActiveObject(objName){
  var tmpObj;
  tmpObj = $(objName);
	if(Browser.isIE){
  tmpObj.innerHTML=tmpObj.innerHTML;}
  tmpObj.style.display ="block";
}

function arkCube(o,t){
	var o=o.split(".");
	var s=document.getElementsByTagName(o[0]);
	for (var i=s.length-1;i>=0;i--){
	if (eval("s[i].className.search(/\\b"+o[1]+"\\b/) == -1")) continue;
	var d=document.createElement("span");
	d.className="tL";
	d.innerHTML="<span class='tR'> </span>";
    s[i].insertBefore(d,s[i].firstChild);
	if(t==2)continue;
	var d=document.createElement("span");
	d.className="bL";
	d.innerHTML="7";
	d.innerHTML="<span class='bR'> </span>";
	s[i].appendChild(d);
	}
}


if(typeof(HTMLElement)!="undefined" && !window.opera) 
{ 
    HTMLElement.prototype.__defineGetter__("outerHTML",function() 
    { 
        var a=this.attributes, str="<"+this.tagName, i=0;for(;i<a.length;i++) 
        if(a[i].specified) 
            str+=" "+a[i].name+'="'+a[i].value+'"'; 
        if(!this.canHaveChildren) 
            return str+" />"; 
        return str+">"+this.innerHTML+"</"+this.tagName+">"; 
    }); 
    HTMLElement.prototype.__defineSetter__("outerHTML",function(s) 
    { 
        var r = this.ownerDocument.createRange(); 
        r.setStartBefore(this); 
        var df = r.createContextualFragment(s); 
        this.parentNode.replaceChild(df, this); 
        return s; 
    }); 
    HTMLElement.prototype.__defineGetter__("canHaveChildren",function() 
    { 
        return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(this.tagName.toLowerCase()); 
    }); 
} 



window.onload=function(){
//	$("arkGB").href="javascript:void(0);"
//	$("arkGB").onclick=$("arkTongji").getElementsByTagName('a')[0].onclick;
	}






