var Mark=Mark||{};Mark.init=a;Mark.printStyle=W;Mark.parse=Y;Mark.trace=X;Mark.getSpan=Z;Mark.getRndStr=S;function a(){var A=this;A.domain=location.host;A.noNode=A.noNode||[];A.noText=A.noText||[];A.version="200911261714";A.hasStyle=false;A.className=null;A.root=document.body||document.documentElement;A.stringCount=A.stringCount||150;A.markText=A.markText||[];A.markHref=A.markHref||"";A.isTrace=A.isTrace||true;A.isParse=A.isParse||true;A.isClick=A.isClick||false;A.rndLength=A.rndLength||2;A.color=A.color||"#CCCCCC";A.total=A.total||-1;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"]);if(A.markText.length==0){switch(A.domain){case "bbs.chengtu.com":case "forum.chengtu.com":case "zui.chengtu.com":A.markText = ["http://bbs.ChengTu.com","最成都论坛"];A.markHref = "http://bbs.chengtu.com?mark";break;case "www.028time.com":case "forum.028time.com":case "bbs.028time.com":A.markText=["http://www.028Time.com","Chengdu Time, the Panda city!"];A.markHref="http://www.028Time.com?mark";break;default:A.markText=["http://www.ChengTu.com","最成都"];A.markHref="http://www.chengtu.com?mark";}}if(!A.hasStyle){A.printStyle();}A.trace(A.root);}function W(){var A=this;var P="mark"+(new Date()).getTime();A.className=P;var H='\
		<style type="text/css">\
			.'+P+'{OVERFLOW: hidden; WIDTH: 0px; POSITION: absolute; HEIGHT: 0px;}\
			@media Print{\
				.'+P+'{DISPLAY: none;}\
			}\
		</style>\
	';document.write(H);A.hasStyle=true;}function Y(F){var A=this;if(A.isParse){if(!F){F=A.root;A.isTrace=true;}else{A.isTrace=false;};A.trace(F);}}function X(F){var A=this;if(F.nodeType==1){var O=F.childNodes;if(O){for(var i=0,m=O.length;i<m;i++){var B=O[i];_fSetNode(B);}}}else{_fSetNode(F);};function _fSetNode(B){if(A.total>0&&A.count>A.total){return;}if(B.nodeType==3&&!CC.isInArray(A.noText,F.nodeName.toLowerCase(),false)){if(B.parentNode.className==A.className){return;}if(B.nodeValue.length>A.stringCount){var I=A.getSpan();if(I){if(A.isClick){I.notClick=true;}CC.insertElement(B,I,"afterEnd");A.count ++;if(A.total>0&&A.count>A.total){return;}}}}else if(A.isTrace&&B.nodeType==1&&!CC.isInArray(A.noNode,B.nodeName.toLowerCase(),false)){A.trace(B);}}}function Z(){var A=this;var I=document.createElement("SPAN");I.className=A.className;I.style.color=A.color;if(A.getRndStr(1)){A.markText.reverse();}var H=A.markText.join(" ");if(A.markHref){H='<a href="'+A.markHref+'" target="_blank" style="color:'+A.color+'">'+H+'</a>';}H="[ "+H+" ]";I.innerHTML=H;return I;}function S(n){var A=this;var J="";for(var i=0;i<n;i++){J+=String.fromCharCode(33+CC.getRnd(254-33));}return J;}Array.prototype.add=function(L){for(var i=0,m=L.length;i<m;i++){CC.isInArray(this,L[i],true);}};var CC=CC||{};CC.insertElement=T;CC.isInArray=R;CC.getRnd=V;function T(C,D,K){try{if(arguments.length==2){var K=D;var D=C;var C=this;}var G=C.parentNode;var Q=G.childNodes.length;var M=-1;for(var i=0;i<Q;i++){if(G.childNodes[i]==C){M=i;}}if(K=="beforeEnd"){C.appendChild(D);}else if(K=="afterEnd"){if(M==Q-1){G.appendChild(D);}else{G.insertBefore(D,G.childNodes[M+1]);}}else if(K=="beforeBegin"){G.insertBefore(D,G.childNodes[M]);}else if(K=="afterBegin"){if(C.childNodes.length==0){C.appendChild(D);}else{C.insertBefore(D,C.childNodes[0]);}}}catch(exp){}}function R(L,J,U){var N=false;for(var i=0,m=L.length;i<m;i++){if(L[i]==J){N=true;break;}}if(!N&&U){L[L.length]=J;}return N;}function V(n){if(n<1){return 0;}else{return Math.round((n-1)*Math.random());}};try{if(location.pathname.indexOf("dispbbs.asp")>-1||location.pathname.indexOf(".shtml")>-1){Mark.init();}}catch(exp){}