
(function(_Z,_l,_g,_Y,_r,_v,_x,_z,_o,_P,_k,_4,_p,_$,_q,_X,_R,_E,_C,_7,_j,_t,_8,_w,_U,_b,_D,_9,_B,_K,_f,_i,_O,_n,_V,_u,_L,_3,_s,_A,_2,_e,_6,_N,_c,_H,_d,_h,_Q,_I,_G,_m){(function(L,E,I){if(typeof(L[E])==_8)L[E]={NS:I,author:_z,version:_X};return I;})(window,_e,function(){ 
	var C,N,L,E,I; 
	C=arguments,N=C[0],L=C.callee; 
	if(!N)return L; 
	E=typeof(N); 
	if(E==_P){ 
		N=lJSF[N]={}; 
	} else if(E!=_K && E!=_9){ 
		return L; 
	} 
	E=(C.length-1)/2; 
	for(I=1;I<=E;I++)N[C[I]]=C[I+E]; 
	return L; 
})(lJSF,_n,_q,_f,_r,_H,_6,  
(function(L,E,I){ 
	I={userAgent:L,appName:E,isW3C:(document.getElementById?true:false)}; 
	I.isOP=L.indexOf(_i)!= -1; 
	I.isIE= !I.isOP && (L.indexOf(_A)!=-1) && (L.indexOf(_o)==-1); 
	I.isIE6=I.isIE && (L.indexOf(_t)!=-1); 
	I.isNS6= (E==_l) && I.isW3C; 
	I.isGecko = L.indexOf(_L)!= -1; 
	I.isFF = I.isNS6 && L.indexOf(_m)!= -1; 
	I.isGC = I.isGecko && L.indexOf(_s)!= -1; 
	I.isSF = !I.isGC && I.isGecko && L.indexOf(_x)!= -1; 
	return I; 
})(navigator.userAgent.toLowerCase(),navigator.appName), 
{ 
	has:function(id){ 
		return document.getElementById(id)?true:false; 
	}, 
	id: function(o){ 
		o=typeof(o)==_P?document.getElementById(o): o; 
		try {return o;} finally {o=null;} 
	} 
}, 
{ 
	size	: function(el){ 
		return {width:el.offsetWidth,height:el.offsetHeight}; 
	} 
},  
{ 
	line: function(x,b,c,d){ return c*x/d + b;} 
}, 
{}, 
{})(lJSF.DOM,_G,_R,_E, 
(function(L,E){ 
	return function(t,a,s,p,w){   
		var e = document.createElement(t); 
		if(!(p=L(p)))p=document.body;    
			w===0?p.insertBefore(e,p.firstChild):p.appendChild(e);    
		E(e,a); 
		E(e.style,s); 
		try{return e;} finally {e=null;} 
	}; 
})(lJSF.DOM.id,function(e,o){ 
	if(o && typeof(o)==_K){ 
		for(var x in o)e[x]=o[x]; 
	} 
}), 
(function($){  
	return function (L,E,I){ 
		if(E){ 
			var t=typeof(E); 
			if(t==_P){ 
				if(typeof(I)!=_8){ 
					if((L=$(L)))L[E]=I; 
				} else { 
					if(!(L=$(L)))return null; 
					return L[E]; 
				} 
			} else if(t==_K){ 
				if((L=$(L))){ 
					for(x in E)L[x]=E[x]; 
				} 
			} 
		} 
		return arguments.callee; 
	}; 
})(lJSF.DOM.id), 
(function($){ 
	return function(L,E,I){ 
		if(E){ 
			var t=typeof(E),x; 
			if(t==_P){ 
				if(typeof(I)!=_8){ 
					if((L=$(L)))L.style[E]=I; 
				} else { 
					if(!(L=$(L)))return null; 
					return L.style[E]; 
				} 
			} else if(t==_K){ 
				if((L=$(L))){ 
					L=L.style; 
					for(x in E)L[x]=E[x];  
				} 
			} 
		} 
		return arguments.callee; 
	}; 
})(lJSF.DOM.id))(lJSF.POS,_c,_j,_V, 
function(W){ 
	W= W?W:self; 
	var w=0,h=0; 
	if(W.innerHeight){ 
		w=W.innerWidth; 
		h=W.innerHeight; 
	} else if(W.document.documentElement && W.document.documentElement.clientWidth){ 
		w=W.document.documentElement.clientWidth; 
		h=W.document.documentElement.clientHeight; 
	} else if(W.document.body.clientHeight){ 
		w=W.document.body.clientWidth; 
		h=W.document.body.clientHeight; 
	} 
	return {width:w,height:h}; 
}, 
function(W){  
	W=W||self; 
	var sX,sY,pW,pH,wW,wH; 
	if(W.innerHeight && W.scrollMaxY){ 
		sX=W.document.body.scrollWidth; 
		sY=W.innerHeight + W.scrollMaxY; 
	} else if(W.document.body.scrollHeight > W.document.body.offsetHeight){ 
		sX=W.document.body.scrollWidth; 
		sY=W.document.body.scrollHeight; 
	} else { 
		sX=W.document.body.offsetWidth; 
		sY=W.document.body.offsetHeight;  
	} 
	if(W.innerHeight){ 
		wW=W.innerWidth; 
		wH=W.innerHeight; 
	} else if(W.document.documentElement && W.document.documentElement.clientHeight){ 
		wW=W.document.documentElement.clientWidth; 
		wH=W.document.documentElement.clientHeight; 
	} else if(W.document.body){ 
		wW=W.document.body.clientWidth; 
		wH=W.document.body.clientHeight; 
	} 
	pH=sY < wH ? wH : sY; 
	pW=sX < wW ? wW : sX; 
	return {width:pW,height:pH}; 
}, 
function(W){ 
	W= W?W:self; 
	var x=0,y=0,r={}; 
	if(W.document.documentElement){  
		x=W.document.body.scrollLeft + W.document.documentElement.scrollLeft; 
		y=W.document.body.scrollTop + W.document.documentElement.scrollTop; 
	} else if(W.pageXOffset){  
		x=W.pageXOffset; 
		y=W.pageYOffset; 
	} else if(W.document.body.scrollLeft >= 0){ 
		x=W.document.body.scrollLeft; 
		y=W.document.body.scrollTop; 
	} 
	return {top:y,left:x}; 
})(lJSF.Tween,_g, 
function (t, b, c, d) { 
	return -c *(t/=d)*(t-2) + b; 
})(lJSF.Class,_Q, 
function(freq,onframe,onstart,onstop){ 
	this.onframe = onframe || function(){}; 
	this.onstart = onstart || function(){}; 
	this.onstop = onstop || function(){}; 
	this.freq = freq || 36; 
})(lJSF.Class.Timer.prototype,_4,_Y,_p,  
function(time,onframe,onstart,onstop){ 
	if(this._timer)return; 
	time = time || 7200;  
	var ME = this;  
	var evt = { 
		startTime : new Date(),  
		times : 0,  
		fps : this.freq,  
		total:this.freq * time, 
		duration : time * 1000  
	}; 
	onframe=typeof(onframe)==_9?onframe:this.onframe; 
	onstart=typeof(onstart)==_9?onstart:this.onstart; 
	onstart(evt); 
	this._timer = setInterval( 
		function(){ 
			++evt.times; 
			evt.currentTime = new Date();  
			evt.timeLine = evt.currentTime - evt.startTime;  
			evt.process = (evt.timeLine / evt.duration); 
			if(evt.process > 1.0000) evt.process = 1.0000;  
			evt.frame = Math.round(evt.total * evt.process);  
			evt.process = evt.process.toFixed(7);  
			if(evt.process >= 1){ 
				evt.process=1.00; 
				onframe(evt); 
				if(typeof(onstop)==_9){ 
					ME.stop(function(){ 
						onstop(evt); 
					}); 
				} else { 
					ME.stop(); 
				} 
			} else { 
				onframe(evt); 
			} 
		},Math.round(1000/this.freq) 
	); 
}, 
function(onstop){ 
    if(this._timer){ 
        clearInterval(this._timer); 
        delete this._timer; 
    } 
	if(typeof(onstop)==_9){ 
		onstop(); 
	} else { 
		this.onstop(); 
	} 
}, 
function(dur){ 
    if(this._timer)this.stop(); 
    this.start(dur); 
})(lJSF.APP,_v, 
{ 
	$	: lJSF.DOM.id, 
	HASH:{} 
})(lJSF.APP.fixedBox,_$,_7,_O, 
(function(L,E,I,Timer){ 
	var bv=L.BV,ce=E.create,$=E.id,isIE=bv.isIE,H=I.HASH; 
	return function(Id,style,config,content){ 
		if(style && typeof(style)==_K){ 
			H[Id]={isbusy:false,closed:true}; 
			var h=H[Id]; 
			config=config?config:{}; 
			(function(H,C,A,F){ 
				var i=0,l=A.length,k; 
				for(; i<l;i++) { 
					k=A[i]; 
					if(typeof(C[k])==_9){ 
						H[k]=C[k]; 
					} else { 
						H[k]=F; 
					} 
				} 
			})(h,config,[_k,_C,_2,_u],new Function(_d)); 
			h.Timer=new Timer(20,function(evt){ 
				h.onframe(Id,h,evt); 
			},function(){ 
				h.isbusy=true; 
				h.onstart(Id,h); 
			},function(){ 
				h.isbusy=false; 
				h.onend(Id,h); 
		}); 
			if(isIE){ 
				var sc=L.POS.scroll,cs=L.POS.client,pg=L.POS.page; 
				var ch,ht,bot=0,tp=0,fixed,resize; 
				if(_N in style){ 
					tp=parseInt(style.top); 
					h.fixed=fixed=function(){ 
						$(Id).style.top=(sc().top+tp)+_Z; 
					}; 
				} else if(_b in style){ 
					bot=parseInt(style.bottom); 
					ch=cs().height; 
					window.onresize=function(){ 
						ch=cs().height; 
						fixed(); 
					}; 
					h.fixed=fixed=function(){ 
						$(Id).style.top=(sc().top+(ch-bot-parseInt($(Id).style.height)))+_Z; 
					}; 
				} 
				style.position=_w; 
				delete style[_b]; 
				window.onscroll=fixed; 
			} else { 
				style.position=_B; 
				h.fixed=function(){}; 
			} 
			ce(_I,{id:Id,innerHTML:_3+Id+_D},style); 
			if(typeof(content)==_P)I.content(Id,content); 
			h.fixed(); 
		} 
		return I; 
	}; 
})(lJSF,lJSF.DOM,lJSF.APP.fixedBox,lJSF.Class.Timer), 
(function(L,E,I){ 
	var bv=L.BV,ce=E.create; 
	return function(Id,content){ 
		E.attribute(Id+_h,{innerHTML:content.split(_U).join(Id)}); 
		return I; 
	}; 
})(lJSF,lJSF.DOM,lJSF.APP.fixedBox), 
(function(L,E,I){ 
	var bv=L.BV,ce=E.create,H=I.HASH; 
	return function(Id){ 
		if(Id in H){ 
			var h=H[Id]; 
			if(h.isbusy)return I; 
			h.isbusy=true; 
			if(h.closed){ 
				h.onframe=h.onopen; 
			} else { 
				h.onframe=h.onclose; 
			} 
			h.closed=!h.closed; 
			h.Timer.start(0.5); 
		} 
		return I; 
	}; 
})(lJSF,lJSF.DOM,lJSF.APP.fixedBox));})("px","Netscape","easeOut","stop","Tween","fixedBox","safari","CNLEI","omniweb","string","onopen","start","restart","build","DOM","2.0.1.09071311","attribute","style","onclose","content","page","msie 6","undefined","absolute","{_BOX_ID_}","bottom",'_inner">loading...</div>',"function","fixed","object","POS","opera","exchange","BV","scroll","onend","gecko",'<div id="',"chrome","msie","onstart","lJSF","APP","top","client","Class","","_inner","Timer","div","create","firefox");

host = window.location.href;
url  = document.domain;
var keyword='';
if(c_w_cbd==undefined){
   var c_w_cbd="#99b7ff";
}
if(c_w_cbg==undefined){
   var c_w_cbg="#edf7ff";
}
if(c_w_cbk==undefined){
   var c_w_cbk="#FFFF33";
}

if(web_id==undefined){
   var web_id =c_w_id;
}
if(c_w_line==undefined){
   var c_w_line =1;
}
/*
if(c_w_line==1){
   var wvid="sin"+web_id;
   var referer= gc_cnzz(wvid);
}else{
   var referer=document.referrer;
}*/
var referer=document.referrer;

var keyword=getQueryString("wd",referer);
if(keyword==''){
   var keyword=getQueryString("q",referer);
}
if(keyword==''){
   var keyword=getQueryString("word",referer);
}
if(keyword==''){
   var keyword=getQueryString("query",referer);
}
if(keyword==''){
   var keyword=getQueryString("search",referer);
}
if(keyword==''){
   var keyword=getQueryString("keyword",referer);
}
if(keyword==''){
   var keyword=getQueryString("kw",referer);
}
if(keyword==''){
   var keyword=getQueryString("w",referer);
}
if(keyword==''){
   var keyword=getQueryString("p",referer);
}

if(keyword!=''){
	document.write('<style type="text/css">\
	#CNZZ_AD_BOX a img {border:none;}\
		div.CNZZ_AD_BUTTONS {position:absolute;top:15px;right:15px;}\
		div.CNZZ_AD_BUTTONS img {cursor:pointer;}\
		</style>\
	');
	lJSF.NS(window,"_CNZZ_AD_",lJSF.APP.fixedBox);
	(function(lDOM,lPOS,lTw){
		var BoxId="CNZZ_AD_BOTTOM_";
		var RootUrl="http://search.cnzz.com/api/";
		var RootImgUrl="http://icon.cnzz.com/api/";
		var contenId="CNZZ_AD_content_box";
		var maxWth=278;//
		var minHth=100;//
		var maxHth=432;//
		var bdWth=10;//
		var offHth=minHth-maxWth;
		var content=[];
		content.push('<div id="CnZZ_Ad_Popwin" style="border:1px solid '+c_w_cbd+';padding:3px;background:'+c_w_cbg+';"><div style="padding:2px 2px 0 2px;width:'+(maxWth-12)+'px"><iframe src="'+RootUrl+'g.php?siteid='+web_id+'&url='+url+'&keyword='+keyword+'&bg='+c_w_cbg.slice(1)+'&bk='+c_w_cbk.slice(1)+'&href='+escape(host)+'" frameborder="0" scrolling="no" id="'+contenId+'" style="height:'+(maxHth-bdWth)+'px;width:'+(maxWth-bdWth)+'px;"></iframe></div>');
		content.push('<div class="CNZZ_AD_BUTTONS" id="{_BOX_ID_}_c_buttons" style="position:absolute;top:6px;left:0px;width:14px;text-align:left;z-index:9999" onclick="close_CNZZ_adw()"><img src="'+RootImgUrl+'close.gif" height=16 width=16 border=0></div><div class="CNZZ_AD_BUTTONS" id="{_BOX_ID_}_buttons" style="width:14px;position:absolute;top:6px;right:5px;"> ');
		content.push('<img style="border:0;cursor:pointer" id="{_BOX_ID_}_handle" src="'+RootImgUrl+'btn_up.gif" onmousemove="_CNZZ_AD_.exchange(\''+BoxId+'\')" />');
	content.push('</div></div>');
		content=content.join("").split('{_BOX_ID_}').join(BoxId);
		function init(){


			_CNZZ_AD_.build(BoxId,{
				left:"10px",	
				bottom:"0px",
				width:"278px",
				height:"100px",
				zIndex:9999,
				overflow:"hidden",
				background:"transparent"
			},{
				onopen:function(id,h,evt){
					lDOM.style(id,{
						height:Math.round(lTw(evt.frame,60,312,10))+'px'
					});
					h.fixed();
				},
				onclose:function(id,h,evt){
					lDOM.style(id,{
						height:Math.round(lTw(evt.frame,372,-312,10))+'px'
					});
					h.fixed();

				},
				onstart:function(id,h){
					if(!h.closed){
						lDOM.attribute("CNZZ_AD_content_box",{className:""});
					}
				},
				onend:function(id,h){
					if(h.closed){
						lDOM.attribute("CNZZ_AD_content_box",{className:"closed"});
						lDOM.attribute(id+"_handle",{src:RootImgUrl+"btn_up.gif",title:""});
					} else {
						
						lDOM.attribute(id+"_handle",{src:RootImgUrl+"btn_down.gif",title:""});
					}
				}
			},content);
		}
		if(!lJSF.BV.isIE){
			init();
		} else {
			if (document.readyState=="complete"){
				init();
			} else {
				document.onreadystatechange=function(){
					 if(document.readyState=="complete")init();
				}
			}
		}
	})(lJSF.DOM,lJSF.POS,lJSF.Tween.easeOut);

}
function close_CNZZ_adw(){
	document.getElementById("CnZZ_Ad_Popwin").style.display="none"
}

function gc_cnzz(n){
        var arg=n+"=";
        var alen=arg.length;
        var clen=document.cookie.length;
        var i=0;
        while(i<clen){
        var j=i+alen;
        if(document.cookie.substring(i,j)==arg) return gv_cnzz(j);
        i=document.cookie.indexOf(" ",i)+1;
        if(i==0)        break;
        }
        return -1;
}

function gv_cnzz(of){
        var es = document.cookie.indexOf(";",of);
        if(es==-1) es=document.cookie.length;
        return unescape(document.cookie.substring(of,es));
}
function getQueryString(name,urls) 
{
   var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
   //if (reg.test(urls)) return unescape(RegExp.$2.replace(/\+/g, " ")); 
   if (reg.test(urls)) return RegExp.$2.replace(/\+/g, " "); 
   return ""; 
 }

