String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");};String.prototype.stripTags=function(){return this.replace(/<\/?[^>]+>/gi,'');};String.prototype.len=function(){var n=0;for(var i=0;i<this.length;i++){if(this.charCodeAt(i)>255){n+=2;}else{n++;}}return n;};String.prototype.decodeHTML=function(){var s=this;s=s.replace(/&lt;/gi,"<");s=s.replace(/&gt;/gi,">");s=s.replace(/&quot;/gi,"\"");s=s.replace(/&amp;/gi,"&");s=s.replace(/&nbsp;/gi," ");return s;};String.prototype.encodeHTML=function(){var s=this;s=s.replace(/&/gi,"&amp;");s=s.replace(/</gi,"&lt;");s=s.replace(/>/gi,"&gt;");s=s.replace(/\"/gi,"&quot;");s=s.replace(/ /gi,"&nbsp;");return s;};Array.prototype.add=function(K){for(var i=0,M=K.length;i<M;i++){CC.isInArray(this,K[i],true);}};var CC=CC||{};CC.insertElement=AA;CC.isInArray=z;CC.getRnd=HA;function AA(G,C,O){try{if(arguments.length==2){var O=C;var C=G;var G=this;}var I=G.parentNode;var X=I.childNodes.length;var P=-1;for(var i=0;i<X;i++){if(I.childNodes[i]==G){P=i;}}if(O=="beforeEnd"){G.appendChild(C);}else if(O=="afterEnd"){if(P==X-1){I.appendChild(C);}else{I.insertBefore(C,I.childNodes[P+1]);}}else if(O=="beforeBegin"){I.insertBefore(C,I.childNodes[P]);}else if(O=="afterBegin"){if(G.childNodes.length==0){G.appendChild(C);}else{G.insertBefore(C,G.childNodes[0]);}}}catch(exp){}}function z(K,D,BA){var S=false;for(var i=0,M=K.length;i<M;i++){if(K[i]==D){S=true;break;}}if(!S&&BA){K[K.length]=D;}return S;}function HA(Z){if(Z<1){return 0;}else{return Math.round((Z-1)*Math.random());}};var Click=Click||{};Click.init=o;Click.setAd=p;Click.parse=q;Click.trace=IA;Click.getHtml=m;Click.setUrl=EA;Click.setLog=GA;Click.getIframe=l;Click.setTimeout=FA;Click.clearTimeout=v;function o(){var A=this;A.domain=location.host;A.root=document.body||document.documentElement;A.noNode=A.noNode||[];A.noText=A.noText||[];A.color=A.color||["6600ff","ff0000"];A.description=A.description||['<img src="http://www.chengtu.com/images/icon_search.gif" border="0" />','<img src="http://www.chengtu.com/images/icon_view.gif" border="0" />'];A.url=A.url||"";A.key=A.key||[];A.ad=A.ad||{};A.title=A.title||"最成都搜索";A.version="200803051026";A.href=null;A.isAutoOpen=A.isAutoOpen||true;A.timeDiff=A.timeDiff||2;A.timeout=null;A.totalKey=A.totalKey||40;A.perKey=A.perKey||3;A.perObj=A.perObj||{};A.keyCount=A.keyCount||0;A.keyList=A.keyList||[];A.keyDistance=A.keyDistance||2;A.denominator=A.denominator||5;A.molecule=A.molecule||3;A.stringDistance=A.stringDistance||100;A.stringLength=A.stringLength||0;A.stringIndex=A.stringIndex||-1;A.stringCount=A.stringCount||20;A.isLog=A.isLog||false;A.total=A.total||0;A.count=A.count||0;A.noNode.add(["a","applet","base","button","br","frameset","head","meta","iframe","img","input","object","option","script","select","style","textarea","title","h1","h2","h3","h4","h5","h6"]);A.noText.add(["table","tbody","tfoot","thead","tr"]);A.setAd("最成都","http://www.chengtu.com/","访问最成都",true);A.setAd("网站制作","http://www.chengtu.net/","蓉域工作室提供专业网站制作",true);A.setAd("蓉域","http://www.chengtu.net/","访问蓉域工作室",true);A.setAd("chengtu","http://www.chengtu.com/","visit chengtu.com",true);A.setAd("主机","http://www.chengtu.net/","蓉域工作室提供专业主机服务",true);A.setAd("域名","http://www.chengtu.net/","蓉域工作室提供专业域名服务",true);A.setAd("广告","http://www.chengtu.net/service/chengtu/gghz.asp?keyword","在最成都投放广告",true);A.setAd("网站制作","http://www.chengtu.net/","蓉域工作室提供专业网站制作",true);A.setAd("网站建设","http://www.chengtu.net/","蓉域工作室提供专业网站制作",true);A.setAd("建设网站","http://www.chengtu.net/","蓉域工作室提供专业网站制作",true);A.setAd("关键字","http://www.chengtu.net/","购买最成都关键字，推广企业产品",true);A.setAd("虚拟主机","http://www.chengtu.net/","蓉域工作室提供专业主机服务",true);A.setAd("网站","http://www.chengtu.net/","蓉域工作室提供专业网站服务",true);if(A.url.length==0){switch(A.domain){case "bbs.chengtu.com":case "forum.chengtu.com":case "zui.chengtu.com":A.url="http://www.google.cn/custom?sa=%CB%D1%CB%F7&client=pub-4428693739257804&forid=1&ie=GB2312&oe=GB2312&hl=zh-CN&q=";A.key.add(["房产","华西","二手","高楼","宠物","旅游","Q币","电脑","手机"]);break;case "www.chengtu.com":case "www.chengtu.net":case "www.chengtu.cn":A.key.add(["RSS","阅读器","web2.0"]);break;case "car.chengtu.com":case "lift.chengtu.com":A.key.add(["搭车","汽车","车站","机票","火车票"]);break;case "pet.chengtu.com":A.key.add(["宠物","猫","狗"]);break;case "film.chengtu.com":case "movie.chengtu.com":A.key.add(["电影","电影票","明星","下载","海报"]);break;case "news.chengtu.com":A.key.add(["酒店"]);break;case "www.028time.com":case "forum.028time.com":case "bbs.028time.com":A.url="http://www.google.com/custom?sa=Search&client=pub-4428693739257804&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23ffffff%3BVLC%3A11593C%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3AEEEEEE%3BALC%3A11593C%3BLC%3A11593C%3BT%3A000000%3BGFNT%3A006699%3BGIMP%3A006699%3BLH%3A31%3BLW%3A88%3BL%3Ahttp%3A%2F%2Fwww.028time.com%2Fimages%2Flogo.gif%3BS%3Ahttp%3A%2F%2Fwww.028time.com%2F%3BFORID%3A1&hl=en&q=";A.title="Chengdu Time search";A.key.add(["travel","customer","chengdu","sichuan","china","china travel","china travel guide","china travel agency","china travel agent","china travel services","china travel service","china travel information","fiat panda","pandas","panda picture","trend micro","internet security","hong kong","shanghai","beijing","guangzhou","chinese","market"]);A.description=["",""];break;default:}if(A.url.length==0){A.url.length="http://www.google.cn/custom?sa=%CB%D1%CB%F7&client=pub-4428693739257804&forid=1&ie=GB2312&oe=GB2312&hl=zh-CN&q=";}}A.key.sort(r);document.write('<style type="text/css">.seact{BACKGROUND-COLOR:transparent;TEXT-DECORATION:none;}</style>');A.parse();function r(d,Y){if(d.length<Y.length){return 1;}else if(d.length>Y.length){return-1;}else{return 0;}}}function p(B,j,U,DA){var A=this;var V=A.key;A.ad[B]={"url":j,"title":U,"vip":DA};V.add([B]);}function q(){var A=Click;A.clickStart=new Date();A.trace(A.root);}function IA(h){var A=this;if(A.total>0&&A.count>A.total){return;}var Q=h.childNodes;if(Q){for(var i=0,M=Q.length;i<M;i++){var F=Q[i];if(F.nodeType==3&&!CC.isInArray(A.noText,h.nodeName.toLowerCase(),false)){var J=A.getHtml(F.nodeValue.encodeHTML());if(J&&J.length>0){var R=document.createElement("SPAN");R.innerHTML=J;CC.insertElement(F,R,"beforeBegin");F.parentNode.removeChild(F);A.count ++;if(A.total>0&&A.count>A.total){return;}}}else if(F.nodeType==1&&!F.notClick&&!CC.isInArray(A.noNode,F.nodeName.toLowerCase(),false)){A.trace(F);}}}}function m(D){var A=this;if(!D||D.trim().length==0||D.trim().len()<A.stringCount||A.key.length==0){return "";}var u=A.color;var w=A.description;var V=A.key;var hasChange=false;var J="";var f=new RegExp("("+V.join("|")+")","gi");if(D.search(f)==-1){return "";}J=D.replace(f,t);A.stringLength+=D.length;if(D==J){return "";}else{return J;};function t(B,JA,CA){var L=A.perObj[B]||0;var b=A.keyList;var W=CA+A.stringLength;var c=false;var T=false;var i=A.keyCount%A.keyDistance;c=CC.isInArray(b,B,false);if(A.stringIndex==-1){T=true;}else if((W-A.stringIndex)>A.stringDistance){T=true;}if(!T||c||A.keyCount>=A.totalKey||L>=A.perKey||CC.getRnd(A.denominator)>=A.molecule){return B;}else{var U=(A.ad[B]&&A.ad[B].title)?A.ad[B].title:Click.title+'“'+B+'”';b[i]=B;L++;A.perObj[B]=L;A.keyCount++;A.stringIndex=W;var L=(A.ad[B]&&A.ad[B].vip)?1:0;var a=u[L];var k=w[L];return '<a href="'+location.href.encodeHTML()+'" target="_blank" class="seact" style="COLOR:#'+a+';BORDER-BOTTOM:#'+a+' 1px dotted" title="'+U+'" onclick="try{Click.clearTimeout();Click.setUrl(this,\''+B+'\');Click.setLog();}catch(exp){}" onmouseover="Click.setTimeout(this);" onmouseout="Click.clearTimeout();">'+B+k+'</a>'}}}function EA(C,D){var A=Click;if(A.ad[D]){C.href=A.ad[D].url;}else{C.href=A.url+D;}}function GA(e){try{var A=Click;if(A.isLog){A.clickEnd=new Date();var N=window.frames.saFrame||A.getIframe();var id="aHref";var H="id:------";H+=" ver:"+A.version;H+=" click";H+=" diff:"+(A.clickEnd-A.clickStart);try{H+=" name:"+_fGetName();}catch(exp){H+=" name:"+"";}H+=" title:"+(e?e.target:event.srcElement).title;H+=" url:"+escape(location.href.encodeHTML().trim());N.src="http://car.chengtu.com/log/index.asp?id="+id+"&content="+H+"&"+CC.getRnd(1000);}}catch(exp){}}function l(){var N=document.createElement("IFRAME");N.id="clickFrame";N.name="clickFrame";N.style.display="none";document.body.appendChild(N);return window.frames["clickFrame"];}function FA(C){var A=Click;if(!A.href&&A.isAutoOpen&&!C.isClicked){A.href=C;A.timeout=window.setTimeout("Click.href.isClicked=true;Click.href.click();Click.clearTimeout();",A.timeDiff*1000);}}function v(){var A=Click;try{A.href=null;window.clearTimeout(A.timeout);}finally{}}try{if((fGetCookie("username")).length==0||location.pathname.indexOf("dispbbs.asp")>-1){Click.init();}}catch(exp){Click.init();}