var _cl_options={ustr:'821849481.777897119', domain:'cbe.convertlab.com', tid:'948871748',hosting:'web',autoTrack: false }; var _cl_tracker={track:function(){},push:function(){},ready:function(){}};window.clab_tracker=_cl_tracker;(function(d,B,H,J,p,x){var r="";function w(L){if(r=="debug"){alert(L)}else{if(typeof console!="undefined"){console.log(L)}}}w("start to load tracking script");try{function e(L,N){for(var M=0;M1?f[1]:document.location.host;var t=null;var j={};var h=null;if(document.referrer){h=z(document.referrer)}function v(N,Q,O){var L=O?"; expires="+new Date(new Date().getTime()+(O*24*60*60*1000)).toUTCString():"";var P="/";if(document.location.host.indexOf("host")==0&&document.location.host.indexOf("convert")>0&&document.location.pathname){var M=document.location.pathname.split("/");if(M.length>3){P="/"+M[1]+"/"+M[2]}else{if(M.length>2){P="/"+M[1]}}K=document.location.host}document.cookie=N+"="+Q+"; path="+P+"; domain="+K+L;w(N+"="+Q+"; path="+P+"; domain="+K+L)}function C(N){var M=N+"=";var L=document.cookie.split(";");for(var O=0;O>>0}function u(N,M){var L=location.search.match(new RegExp("[?&]"+N+"=([^&]+)","i"));if(L==null||L.length<1){return M||""}return L[1]}function l(L){var N=document.getElementsByTagName("meta");for(var M in N){if(N[M].name==L){return N[M].content}}return""}function F(L,T,Y,U,N){w("before send");var M=L||"view_page";var V=document.createElement("img");U=U||{};if(h){var Z=h.getHost();U.refDomain=Z;if(Z=="cn.bing.com"){U.term=decodeURIComponent(h.QueryParams.q)}else{if(Z=="www.baidu.com"){U.term=decodeURIComponent(h.QueryParams.wd)}}}U.targetName=T||document.title;U.targetId=Y||a(U.targetName);if(J){U.hosting=J}var S="";if(U){for(var X in U){var W=encodeURIComponent(U[X]);S+="&"+X+"="+W}}var O="utma="+I+"&utmb="+G+"&token="+d+"&tenantId="+B+"&event="+M+S;if(window.localStorage){localStorage.cachedParams=O}var Q="a."+Y;V.setAttribute("id",Q);V.setAttribute("style","width: 0px;height: 0px; display:none");V.setAttribute("src","//"+H+"/cbe/__utm?"+O);document.body.appendChild(V);w("append");var P=function(){if(window.localStorage){localStorage.removeItem("cachedParams")}w("after send remove local cache");if(N){N.apply()}};if("onload" in V){V.onload=P}if("onerror" in V){V.onerror=P}var R=0;while(Q&&!document.getElementById(Q)){R++}if(!("onload" in V)){P.apply()}}function y(){e(document.getElementsByTagName("a"),function(L){if(!L.getAttribute("data-cl-id")){L.setAttribute("data-cl-id",a(L.innerText||L.textContent||L.href))}});e(document.getElementsByTagName("button"),function(L){if(!L.getAttribute("data-cl-id")){L.setAttribute("data-cl-id",a(L.innerText||L.textContent))}});e(document.getElementsByTagName("input"),function(L){if(L.getAttribute("type")=="submit"&&!L.getAttribute("data-cl-id")){L.setAttribute("data-cl-id",a(L.src))}})}w("setting cookies");var c=parseInt(new Date().getTime()/1000);var I=C("c__utma");var G=C("c__utmb");var E=C("c__utmc");if(I==""){I=d+"."+B+"."+c+"."+c+".1";v("c__utma",I,800);G=d+"."+c+"."+c+".1";v("c__utmb",G,0.02);v("c__utmc",d)}else{if(G==""||E==""){var m=I.split(".");I=m[0]+"."+m[1]+"."+B+"."+m[4]+"."+c+"."+(parseInt(m[5])+1);v("c__utma",I,800);G=d+"."+c+"."+c+".1";v("c__utmb",G,0.02);v("c__utmc",d)}else{if(G!=""){var m=G.split(".");G=d+"."+m[2]+"."+c+"."+(parseInt(m[4])+1);v("c__utmb",G,0.02)}}}w("cookie finished");function A(M){if(M.getAttribute("data-cl-attached")=="false"){var L=document.createElement("input");L.setAttribute("type","hidden");L.setAttribute("name","cl_context");L.setAttribute("value","utma="+I+"&utmb="+G);M.appendChild(L);M.setAttribute("data-cl-attached","true")}}function q(){e(document.forms,A)}var k=function(N){var L=N.srcElement||N.target;while(L&&!L.getAttribute("data-cl-id")&&L.tagName!="BODY"){L=L.parentElement||L.parentNode}var O=L.getAttribute("data-cl-id");if(O&&L.tagName!="FORM"){var N=L.getAttribute("data-cl-event")||"click";var M=L.getAttribute("data-cl-name")||L.innerText||L.textContent||L.alt||L.src||"";if(L.getAttribute("data-cl-tag")){j.tag=L.getAttribute("data-cl-tag")}F(N,M,O,j,function(){})}};if("ontouchstart" in document){document.ontouchstart=k}else{document.onclick=k}var b=function(){if(window.localStorage&&localStorage.cachedParams){w("send cached params for previous page");var M=document.createElement("img");M.setAttribute("style","width: 0px;height: 0px; display:none");M.setAttribute("src","//"+H+"/cbe/__utm?"+localStorage.cachedParams);document.body.appendChild(M)}var N=(document.title.indexOf("http:")==0||document.title.indexOf("weixin:")==0)?"":document.title;t=a(document.location.pathname+N);var L=l("cl_content_tag");if(L){j.tag=L}j.pageId=t;j.targetName=N;j.targetId=t;j.screenWidth=window.screen.width;j.screenHeight=window.screen.height;y();q()};var D=p?p(document).ready:function(L){setTimeout(L,2000)};w("preparing page");setTimeout(function(){y();q()},3000);var o=[];var n=false;D(function(){w("page loaded");y();q();if(x){F("open_page",j.targetName,j.pageId,j)}if(z(document.location.href).QueryParams.cl_mark=="html"){w("loading mark script");var L=document.createElement("script");L.setAttribute("src","http://collector.chinacloudapp.cn/bundle.js");document.body.appendChild(L)}n=true;e(o,function(M){if(M&&typeof M=="function"){M.apply(window._cl_tracker)}})});w("page vars init");b();window._cl_tracker={pageProps:j,track:function(R,Q,M,O,L){if(typeof Q=="object"){O=Q;L=M;Q=null;M=null}var P=j;for(var N in (O||{})){P[N]=O[N]}F(R,Q||P.targetName||j.targetName,M||P.targetId||j.pageId,P,L||function(){})},attach:function(){y();q()},push:function(M){for(var L in M){if(L=="url"&&!M[L].indexOf("h")==0){j[L]=document.location.origin+M[L]}else{j[L]=M[L]}}},init:b,ready:function(L){if(n){L.apply(window._cl_tracker)}else{o.push(L)}}};window.clab_tracker=window._cl_tracker;w("tracking script loaded")}catch(g){w(g.message)}function z(M){var L={};L.a=document.createElement("a");L.a.href=M;L.QueryParams=new Array();q_seg=L.a.search.substring(1).split("&");for(i=0;i