window.lxb=window.lxb||{};lxb.instance=lxb.instance||0;lxb.instance++;(function(){var a={};lxb.add=lxb.add||function(b,d){var c=a[b];if(!c){c=a[b]={};d.call(null,c)}};lxb.use=lxb.use||function(b){if(typeof b=="string"){if(!a[b]){throw"no module: "+b}else{return a[b]}}else{b.call(null,a)}}})();lxb.add("util",function(e){var c=null;e.init=function(m){c=m};e.css=function(n,m,o){if(!n){return}if(o!==undefined){n.style[m]=o}else{try{if(window.getComputedStyle){return window.getComputedStyle(n)[m]}else{if(n.currentStyle){return n.currentStyle[m]}}}catch(p){}}};e.isStandard=function(){return c.styleType==1};e.isCustom=function(){return c.styleType==2};e.isHorizon=function(){if(c.styleType==1){return c.style<1000}return c.windowLayout==1};e.isVertical=function(){if(c.styleType==1){return c.style>1000}return c.windowLayout==2};e.isLeft=function(){return c.position>0};e.isRight=function(){return c.position<0};e.displayGroup=function(){return c.ifGroup&&(c.windowLayout==2)};e.display400=function(){return c.float_window==1||c.float_window==3};e.displayCallback=function(){return c.float_window==2||c.float_window==3};e.displayLink=function(){return c.inviteInfo.linkStatus==1};e.isVisible=function(m){return m.style.visibility=="visible"};e.isPin=function(){return c.scode==1};e.position=function(){var m=Math.abs(c.position);m=(m==1?0:m);return m};var a=null;var b=null;e.visitorLog=function(s,m){var o=512;var p=lxb.use("config");if(!p.lxbvt){return}var n=p.Port+"vt/lxb.gif";var t=(document.title||"").substr(0,o);var v=(document.referrer||"").substr(0,o);var w=(document.URL||"").substr(0,o);var x=p.bdcbid;var r=[];r.push(encodeURIComponent(s||""));r.push(encodeURIComponent(t||""));r.push(encodeURIComponent(v||""));r.push(encodeURIComponent(w||""));r.push(+f());var u=g(r.join(","));var q=function(){if(!a){a=document.createElement("div");a.style.display="none"}a.innerHTML='
';if(document.body){document.body.appendChild(a);b=a.getElementsByTagName("form")[0];b.submit()}};if(!document.body){window.onload=q}else{q()}};var k=e.getDomain=function(m){m=m.replace(/^https?:\/\//,"").split("/");return m[0].replace(/:.*$/,"")};var d=function(o){o=o.replace(/\r\n/g,"\n");var m="";for(var q=0;q127)&&(p<2048)){m+=String.fromCharCode((p>>6)|192);m+=String.fromCharCode((p&63)|128)}else{m+=String.fromCharCode((p>>12)|224);m+=String.fromCharCode(((p>>6)&63)|128);m+=String.fromCharCode((p&63)|128)}}}return m};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var g=e.base64=function(o){var m="";var v,t,r,u,s,q,p;var n=0;o=d(o);while(n>2;s=((v&3)<<4)|(t>>4);q=((t&15)<<2)|(r>>6);p=r&63;if(isNaN(t)){q=p=64}else{if(isNaN(r)){p=64}}m=m+i.charAt(u)+i.charAt(s)+i.charAt(q)+i.charAt(p)}return m};var j=function(o,p,q,m){var r=o+"="+p;if(q){r+="; path="+q}if(m){var n=new Date();n.setTime(n.getTime()+m*24*3600*1000);r+="; expires="+n.toGMTString()}document.cookie=r};var h=function(n){var o=new RegExp("(^| )"+n+"=([^;]*)(;|\x24)");var m=o.exec(document.cookie);if(m){return m[2]||null}return null};var l=-1;var f=e.isLoadPage=function(){if(l!==-1){return l}var m=k(window.location.href);var n=k(document.referrer);if(document.referrer){if(m===n){l=false;return l}l=true;return l}else{if(h("isLoadPage")==="loaded"){l=false;return l}j("isLoadPage","loaded","/");l=true;return l}};e.checkFloat=function(){var q=lxb.use("base");var n=lxb.use("util");var p=q.g("LXB_CONTAINER");var o=q.q("lxb-container",p)[0];if(!!p&&!!o){p.style.cssText+="display: block!important";var m=(n.css(p,"display")==="block"?1:0)&&(n.css(o,"display")==="block"?1:0);q.create("img",{src:lxb.use("config").Root+"/count.gif?t=o&s="+m})}};e.loadBPA=function(){var p=lxb.use("base");var n=p.create("script",{type:"text/javascript",charset:"utf-8"});var m=0;n.onload=n.onreadystatechange=function(){if(m){return}var q=n.readyState;if("undefined"==typeof q||q=="loaded"||q=="complete"){m=1;try{bpaMonitor}finally{n.onload=n.onreadystatechange=null;p.removeScriptTag(n)}}};n.src="http://bpa.baidu.com/bpa/bpa.js";var o=document.getElementsByTagName("head")[0];o.appendChild(n)};e.bpaLog=function(){try{bpaMonitor.sendData()}catch(m){return}};e.getBPAId=function(){try{return bpaMonitor.getID()}catch(m){return""}}});lxb.add("base",function(d){var c=/msie (\d+\.\d+)/i.test(navigator.userAgent)?(document.documentMode||+RegExp["\x241"]):undefined;d.ie=c;d.g=function(e){return document.getElementById(e)};var m={};if(c<8){m["class"]="className";m.maxlength="maxLength"}else{m.className="class";m.maxLength="maxlength"}d.create=function(r,q){var t=document.createElement(r);var e;if(q){for(var s in q){if(q.hasOwnProperty(s)){e=m[s]||s;t.setAttribute(e,q[s])}}}return t};d.jsonToQuery=function(e){var r=[];for(var q in e){if(e.hasOwnProperty(q)){r.push(q+"="+encodeURIComponent(e[q]))}}return r.join("&")};d.extend=function(r,q){for(var e in q){if(q.hasOwnProperty(e)){r[e]=q[e]}}return r};d.encodeHTML=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")};var g=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");d.trim=function(e){return e.replace(g,"")};d.filter=function(e){e=e.replace(/\s+/,"");if(/^http:\/\/|^https:\/\//i.test(e)){return e}else{e=e.replace(/^[^:]+:/gi,"")}return e};d.queryToJSON=function(s){var q={};s=s.split("&");for(var e=0,r;r=s[e];e++){r=r.split("=");if(r[0]){q[r[0]]=r[1]}}return q};d.setCookie=function(r,s,t,e){var u=r+"="+s;if(t){u+="; path="+t}if(e){var q=new Date();q.setTime(q.getTime()+e*24*3600*1000);u+="; expires="+q.toGMTString()}document.cookie=u};d.getCookie=function(q){var r=new RegExp("(^| )"+q+"=([^;]*)(;|\x24)");var e=r.exec(document.cookie);if(e){return e[2]||null}else{return null}};var p=[];var l;var k=false;function n(){if(!k){k=true;for(var q=0,e=p.length;q=0){s=e.clientHeight*(100-parseInt(s,10))/100-r.offsetHeight}else{if(s=="auto"){s=t}else{if(s){s=e.clientHeight-r.offsetHeight-parseInt(s,10)}}}}if(s){if(typeof s=="string"&&s.indexOf("%")>=0){s=e.clientHeight*parseInt(s,10)/100}else{s=parseInt(s,10)}q.top=s}else{q.top=t}}if(q.top!==t){r.style.top=e.scrollTop+q.top+"px"}}d.setFixed=function(e){if(a.length<=0){window.attachEvent("onscroll",j);window.attachEvent("onresize",j)}e.style.position="absolute";a.push({ele:e});i(a[a.length-1])};d.addClass=function(q,e){var s=q.className;if(!q){return}var r=new RegExp(e);if(!r.test(q.className)){s=q.className+" "+e}q.className=s.replace(/\s+/," ").replace(/^\s|\s$/,"")};d.removeClass=function(q,e){var s=q.className;if(!q){return}var r=new RegExp(e);if(r.test(q.className)){s=q.className.replace(r,"")}q.className=s.replace(/\s+/," ").replace(/^\s|\s$/,"")};d.q=function(t,s){var q=[],e,r,v,u;if(!(t=t.replace(/\s+/,""))){return q}if("undefined"==typeof s){s=document}if(s.getElementsByClassName){v=s.getElementsByClassName(t);e=v.length;for(r=0;r\u5b8c\u5168\u514d\u8d39\uff0c\u8bf7\u653e\u5fc3\u63a5\u542c\uff01",CB_INPUT_TIP_HOLDER:"\u8bf7\u8f93\u5165\u60a8\u7684\u7535\u8bdd\u53f7\u7801",INVITE_INPUT_TIP_HOLDER:"\u8F93\u5165\u53F7\u7801\u540E\u70B9\u51FB\u4E0B\u5217\u6309\u94AE\uFF0C\u514D\u8D39\u56DE\u7535",CB_SUCCESS_TIP_1:"\u7a0d\u540e\u60a8\u5c06\u63a5\u5230",CB_SUCCESS_TIP_2:"\u7684\u7535\u8bdd\uff0c
\u8be5\u901a\u8bdd\u5bf9\u60a8\u5b8c\u5168\u514d\u8d39\uff0c
\u8bf7\u653e\u5fc3\u63a5\u542c\uff01",ERROR_CB_PHONE:"\u8bf7\u60a8\u8f93\u5165\u6b63\u786e\u7684\u53f7\u7801\uff0c\u624b\u673a\u53f7\u7801\u8bf7\u76f4\u63a5\u8f93\u5165\uff0c\u5ea7\u673a\u8bf7\u52a0\u533a\u53f7",ERROR_CB_FAIL:"\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5",LOADING_CB_TIP:"\u62e8\u53f7\u4e2d\uff0c\u8bf7\u7a0d\u5019",CB_SUCCESS_TIP_TXT_0:"\u7a0d\u540e\u60a8\u5c06\u63a5\u5230\u6211\u4eec\u7684\u6765\u7535",CB_SUCCESS_TIP_TXT_1:"\u6b63\u5728\u547c\u53eb\u60a8\u7684\u7535\u8bdd",CB_SUCCESS_TIP_TXT_2:"\u8bf7\u51c6\u5907\u63a5\u542c",CB_INFO_TIP_CLOSE:"\u2573",CB_PIN_INTRO:"\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801",CB_PIN_OK:"\u786e\u5b9a",CB_PIN_CANCLE:"\u53d6\u6d88",CB_PIN_NULL:"\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a",CB_PIN_WRONG:"\u9a8c\u8bc1\u7801\u9519\u8bef",REFRESH:"\u5237\u65b0",CB_PIN:"\u9a8c\u8bc1\u7801"};a.ClassName={MAIN:"lxb-container",TL_PHONE:"lxb-tl-phone",TL_PHONE_EM:"lxb-tl-phone-em",CB_ICON:"lxb-cb-icon",CB_INPUT:"lxb-cb-input",CB_INPUT_BTN:"lxb-cb-input-btn",CB_INPUT_TIP:"lxb-cb-input-tip",CB_INPUT_TIP_CURSOR:"lxb-cb-input-tip-cursor",CB_SUCCESS_TIP:"lxb-cb-success-tip",CB_LOADING_TIP:"lxb-cb-loading-tip",CB_INFO_TIP:"lxb-cb-info-tip",INVITE_LINK_CON:"lxb-invite-link-con",INVITE_LINK_TEXT:"lxb-invite-link-txt",INVITE_LINK_BTN:"lxb-invite-link-btn",Position:{HOR:["lxb-pos-left","lxb-pos-right"],VER:["lxb-pos-top","lxb-pos-middle","lxb-pos-bottom"]},PositionFix:{HOR:["-left","-right"],VER:["-top","-middle","-bottom"]}};a.ID={MAIN:"LXB_CONTAINER",SHOW:"LXB_CONTAINER_SHOW",IMG_PREV:"LXB_IMG_PREV_",COOKIE_DBCLKID:"LXB_DBCLICKID",COOKIE_REFER:"LXB_REFER"};a.TPL={CB_INPUT_TIP_1:''+a.Lang.CB_INPUT_TIP_1+''+a.Lang.CB_INPUT_TIP_2+''+a.Lang.CB_INPUT_TIP_3+'',CB_SUCCESS_TIP_1:'',CB_SUCCESS_TIP_2:"",CB_LOADING_TIP:''+a.Lang.LOADING_CB_TIP+"",CB_INFO_TIP_MAIN:''+a.Lang.CB_INFO_TIP_CLOSE+"",CB_SUCCESS_TIP_IMG:'',CB_SUCCESS_TIP_PHONE:'',CB_SUCCESS_TIP_PHONE_END:"",CB_SUCCESS_TIP_TXT:''+a.Lang.CB_SUCCESS_TIP_TXT_1+''+a.Lang.CB_SUCCESS_TIP_TXT_2+"",CB_SUCCESS_TIP_TXT_1:''+a.Lang.CB_SUCCESS_TIP_TXT_0+''+a.Lang.CB_SUCCESS_TIP_TXT_2+"",CB_ERROR_TIP_S:'',CB_ERROR_TIP_E:"",CB_PIN:''+a.Lang.CB_PIN_INTRO+''+a.Lang.CB_INFO_TIP_CLOSE+'
'+a.Lang.REFRESH+''+a.Lang.CB_PIN_OK+''+a.Lang.CB_PIN_CANCLE+""}});lxb.add("net",function(a){var d=lxb.use("base");function e(f,g){return function(h){g.call(null,h);setTimeout(function(){var i=lxb.use("base").g(f);i.parentNode.removeChild(i)},0)}}function b(g,i){var h=document.getElementsByTagName("head")[0];var f=d.create("script",{type:"text/javascript",src:g,id:i||"",charset:"utf-8"});h.appendChild(f)}function c(f){var h=document.getElementsByTagName("head")[0];var g=d.create("link",{rel:"stylesheet",href:f,type:"text/css",charset:"utf-8"});h.appendChild(g)}a.send=function(f,h,j){var g="_lxb_jsonp_"+new Date().getTime().toString(36)+"_";var i=["t="+(new Date().getTime())];i.push("callback="+g);window[g]=e(g,j);h=h||"";if(typeof h!=="string"){h=d.jsonToQuery(h)}h+=(h?"&":"")+i.join("&");f+=(f.indexOf("?")>=0?"&":"?")+h;b(f,g)};a.loadCSS=c;a.log=function(f,g){if(window.console&&console.log){console.log("["+f+"]"+g)}}});lxb.add("log",function(a){var e=lxb.use("config").Root+"/log.gif";var f=lxb.use("base").jsonToQuery;var c=null;var d="0123456789ABCDEF";function b(){var j=[];for(var h=0;h<32;h++){j[h]=d.substr(Math.floor(Math.random()*16),1)}j[12]="4";j[16]=d.substr((j[16]&3)|8,1);var k=j.join("").toLowerCase();k=k.toLowerCase();k=k.replace(/^(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})$/,"$1-$2-$3-$4-$5");return k}function g(i){var h=document.createElement("img");h.src=i}a.sendLog=function(j,h){!c&&(c=b());j.uuid=c;var i=(h||e)+"?"+f(j);g(i)}});lxb.add("tip",function(d){var h=lxb.use("base").ie;var g=lxb.use("util").position;var f={};var k=preHeight=preTop=preLeft=preTipHeight=0;var l={};var b=function(o,n){for(var m in o){if((o.hasOwnProperty&&o.hasOwnProperty(m))||(!o.hasOwnProperty)){if(!(m in ["event"])){n[m]=o[m]}}}};var j=function(){l={arrow:null,close:null,con:null,tipEle:null,value:10}};var a=function(){if(document.compatMode=="BackCompat"){return{width:document.body.clientWidth,height:document.body.clientHeight}}else{return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}};var i=function(m){return{width:m.offsetWidth,height:m.offsetHeight,top:m.offsetTop,left:m.offsetLeft}};var e=function(m){return{width:m.offsetWidth,height:m.offsetHeight,top:m.offsetTop,left:m.offsetLeft}};var c=function(){f.body=a();f.con=i(l.con);f.tip=e(l.tipEle)};d.init=function(m){j();b(m,l)};d.show=function(){l.tipEle.style.display="";c();if(preTipHeight!=f.tip.height||k!=f.con.width||preHeight!=f.con.height||preTop!=f.con.top||preLeft!=f.con.left){d.resetLoc();k=f.con.width;preHeight=f.con.height;preTop=f.con.top;preLeft=f.con.left;preTipHeight=f.tip.height}};d.resetLoc=function(){var m=(f.con.height<=f.tip.height)?true:false;var n=(h<=6||(h&&document.compatMode!="CSS1Compat"))?true:false;if(n){f.con.top=f.body.height*g()/100}if(f.tip.width>f.con.left){if(f.tip.height>f.con.top){l.arrow.className="arrow-left-t";l.arrow.style.top="6px";l.tipEle.style.top=m?"22px":"10px"}else{l.arrow.className="arrow-left-b";l.tipEle.style.top=m?(f.con.height-f.tip.height-10)+"px":"0px"}l.tipEle.style.left=(f.con.left+f.con.width+7+l.value)+"px"}else{if(f.tip.height>f.con.top){l.arrow.className="arrow-right-t";l.arrow.style.top="6px";l.tipEle.style.top=m?"22px":"10px"}else{l.arrow.className="arrow-right-b";l.tipEle.style.top=m?(f.con.height-f.tip.height-10)+"px":"0px"}if(document.compatMode=="BackCompat"&&h){l.arrow.style.left="302px"}l.tipEle.style.left=(-f.tip.width-7-10)+"px"}};d.hide=function(){l.tipEle&&(l.tipEle.style.display="none")}});lxb.add("business.replacer",function(b){function e(j,h,l){var g;for(var f=0,k;k=h[f];f++){g=j.nodeValue.replace(k,l);if(g!=j.nodeValue){j.nodeValue=g}}}function a(h){var g=[];if(typeof h=="string"){h=[h]}for(var f=0,j;j=h[f];f++){if(j.indexOf("@REG:")==0){g.push(new RegExp(j.substring(5),"g"))}else{g.push(j)}}return g}function d(h){var f=[];if(h.nodeType==3){f.push(h)}else{if(h.nodeType==1&&(h.className||h.className==="")&&h.className.indexOf&&h.className.indexOf("lxb-")<0){for(var g=h.firstChild;g!=null;g=g.nextSibling){f=f.concat(d(g))}}}return f}function c(j,k){var f=d(document.body||document.getElementsByTagName("body")[0]);var j=a(j);for(var g=0,h;h=f[g];g++){e(h,j,k)}}b.run=function(j,f,g,k){var i=lxb.use("base");var h=lxb.use("config").Lang;var l=i.formatTel(f,k)+(g?h.TRAN+g:"");if(!j||j.length<=0||!l){return}i.ready(function(){c(j,l)})}});lxb.add("business.container",function(e){var c=lxb.use("base");var h=lxb.use("config").ClassName;var i=lxb.use("config").ID;var g=lxb.use("util");var a=function(){};var f={};var k={};var j=0;function l(){var n=k.main;var o=k.mask;var m=n.style.height||(n.currentStyle?n.currentStyle.height:"");if(!m||m=="auto"){setTimeout(l,300)}else{o.style.height=m;o.style.width=n.style.width||(n.currentStyle?n.currentStyle.width:"100%");n.style.zoom=1}}function b(){var r=lxb.use("log");var x=h.MAIN;var t=c.create("ins",{id:i.MAIN});var q=k.main=c.create("ins");t.appendChild(q);q.style.visibility="hidden";if(f.floatColor){q.style.backgroundColor=f.floatColor}if(f.imagePath){q.style.backgroundImage='url("'+f.imagePath+'")'}var y=h.MAIN+"-"+f.style+"-"+f.type;var m=0;var u=0;if(f.position>0){m=1}var v="";if(g.isHorizon()){v="lxb-vertical"}else{if(g.isVertical()){v="lxb-horizen"}}u=Math.abs(f.position);var w=h.Position.HOR[m];y+=" "+y+h.PositionFix.HOR[m];q.className=x+" "+y+" "+w+" "+v;if(u<=45){q.className+=" "+h.Position.VER[0]}else{q.className+=" "+h.Position.VER[1]}var p=k.btnHide=c.create("ins",{className:h.MAIN+"-btn-hide"});q.appendChild(p);p=k.btnShow=c.create("ins");x=h.MAIN+"-btn-show";x+=" "+h.MAIN+"-btn-show-"+f.style;x+=" "+w;x+=" "+h.MAIN+"-btn-show-"+f.style+h.PositionFix.HOR[m];p.className=x;var o=c.create("ins",{id:i.SHOW});o.appendChild(p);p.style.display="none";btnBg=k.btnShowBg=c.create("ins",{className:h.MAIN+"-btn-show-bg"});if(!(g.isStandard()&&g.isHorizon())){if(f.floatColor){p.style.backgroundColor=f.floatColor}if(f.imagePath){p.style.backgroundImage='url("'+f.imagePath+'")'}}p.appendChild(btnBg);var s=function(A){var z=g.css(q,"zIndex");if(z>0){r.sendLog({fType:1,name:"css",t:(new Date()).getTime()});A.call(null)}else{setTimeout(function(){s(A)},30)}};var n=c.viewportSize();s(function(){j=parseInt(g.css(q,"height"));if(g.isVertical()){if(g.displayGroup()){j=190+25*f.groupDetail.length}else{if(g.isCustom()){j=220}}}if(g.isCustom()&&g.isHorizon()){j=90}q.style.height=j+"px";u=(u==1?0:u);k.btnShow.style.top=q.style.top=(u/100*(n.height-j))+"px";q.style.visibility="visible";a({main:k.main,btnShow:k.btnShow,height:j});if(c.ie<=6||(c.ie==7&&document.compatMode!="CSS1Compat")){c.setFixed(p);p.style.display="none";c.setFixed(q)}});c.ready(function(){if(c.ie&&c.ie<=6){k.mask=c.create("iframe",{frameBorder:0,className:h.MAIN+"-mask"});q.appendChild(k.mask);p.appendChild(k.btnShowMask=c.create("iframe",{frameBorder:0,className:h.MAIN+"-mask"}))}document.body.appendChild(o);document.body.appendChild(t);var z=setInterval(function(){if(document.readyState==="complete"){clearInterval(z);g.checkFloat()}},0);if(!c.ie){return}if(c.ie<=6){l();k.btnShowMask.contentWindow.document.open();k.btnShowMask.contentWindow.document.write('');k.btnShowMask.contentWindow.document.close()}})}function d(){k.main.onkeypress=k.main.onkeydown=k.main.onkeyup=k.main.onmousedown=k.main.onmouseup=k.main.onclick=function(n){n=n||window.event;if(n.stopPropagation){n.stopPropagation()}else{n.cancelBubble=true}};k.btnHide.onclick=function(){k.main.style.display="none";k.btnShow.style.display=""};function m(){k.btnShow.style.display="none";k.main.style.display=""}if(k.btnShowMask){k.btnShowMask.contentWindow.document.onclick=m}k.btnShow.onclick=m}e.init=function(m,n){a=n;c.extend(f,m);b();d()}});lxb.add("business.custom",function(a){var b=lxb.use("config").ClassName;a.init=function(d){var c=d.main;var f=d.btnShow;var e=b.MAIN+"-custom";e+=" "+b.MAIN+"-custom-"+d.type+"-"+(d.windowLayout==1?"h":"v");e+=" "+b.MAIN+"-custom-"+(d.windowLayout==1?"h":"v")+(Math.abs(d.position)==50?b.PositionFix.VER[1]:"");c.className+=" "+e}});lxb.add("business.tel",function(a){var e=lxb.use("base");var f=lxb.use("config").ClassName;var d=lxb.use("config").Lang;var b={};function c(){var h=e.create("ins",{className:f.TL_PHONE});var i=e.formatTel(e.encodeHTML(b.phone),b.format);if(b.mode==1&&b.ext){i+=' '+d.TRAN+""+e.encodeHTML(b.ext)}h.innerHTML=i;var g=h.getElementsByTagName("em")[0];if(b.telFontcolor){h.style.color=b.telFontcolor}if(b.telFontfamily!==undefined&&b.styleType!=1){switch(b.telFontfamily-0){case 0:h.style.fontFamily="\u5b8b\u4f53";if(g){g.style.fontFamily="\u5b8b\u4f53"}break;case 1:h.style.fontFamily="\u9ed1\u4f53";if(g){g.style.fontFamily="\u9ed1\u4f53"}break;case 2:h.style.fontFamily="\u5fae\u8f6f\u96c5\u9ed1";if(g){g.style.fontFamily="\u5fae\u8f6f\u96c5\u9ed1"}break;default:h.style.fontFamily="\u5b8b\u4f53";if(g){g.style.fontFamily="\u5b8b\u4f53"}}}if(b.telFontsize){h.style.fontSize=b.telFontsize+"px";if(g){g.style.fontSize=b.telFontsize+"px"}}if(b.telFontcolor){h.style.color=b.telFontcolor;if(g){g.style.color=b.telFontcolor}}b.main.appendChild(h)}a.init=function(g){e.extend(b,g);c()}});lxb.add("business.pin",function(g){var c=lxb.use("base");var d=lxb.use("config").TPL;var k=lxb.use("config").Lang;var j=lxb.use("config").ClassName;var a=lxb.use("config").Port;var h={};var n={};var l=a+"cb/scode?t=";function b(){var q=n.main=c.create("ins",{className:j.MAIN+"-pin-con"});n.main.innerHTML=d.CB_PIN;var p=c.q("lxbPinItem",n.main);n.btnClose=p[0];n.input=p[1];n.pinImg=p[2];n.change=p[3];n.tip=p[4];n.btnOk=p[5];n.btnCancle=p[6];var r=c.viewportSize();var o=parseInt(h.main.style.top,10)+124;if(o>=r.height){n.main.style.top=-(o-r.height)+"px"}h.main.appendChild(n.main);n.main.style.display="none"}function f(){n.btnOk.onclick=function(){var o=n.input.value;if(!m(o)){return}e(o)};n.btnClose.onclick=n.btnCancle.onclick=function(){i()};n.input.onkeyup=function(p){p=p||window.event;if(p.keyCode==13){var o=n.input.value;if(!m(o)){return}e(o)}};n.change.onclick=function(){n.pinImg.src=l+new Date().getTime()}}function m(o){o=c.trim(o);if(o==""){n.tip.innerHTML=k.CB_PIN_NULL;return false}if(o.length!=4){n.tip.innerHTML=k.CB_PIN_WRONG;return false}return true}function e(p){var q=lxb.use("net");var r=lxb.use("business.callback");var o=a+"cb/callcode";q.send(o,{scode:p},function(s){if(!!s.status){n.tip.innerHTML=s.statusInfo||k.CB_PIN_WRONG;return}else{i();r.submit(h.value,h.groupId)}})}function i(){n.input.value="";n.tip.innerHTML="";n.main.style.display="none"}g.show=function(p,o){h.value=p;h.groupId=o;n.main.style.display="";n.pinImg.src=l+new Date().getTime()};g.init=function(o){c.extend(h,o);b();f()}});lxb.add("business.callback",function(r){var i=lxb.use("base");var h=lxb.use("config").Lang;var d=lxb.use("config").TPL;var f=lxb.use("config").ClassName;var o=lxb.use("config").SiteId;var b=lxb.use("util");var g={};var k={};var l="";function s(){l=h.CB_INPUT_TIP_HOLDER;if(b.displayGroup()){l=h.INVITE_INPUT_TIP_HOLDER}var u=k.input=i.create("input",{type:"text",name:"phone",className:f.CB_INPUT,maxlength:12,value:l});var z=k.cbCon=i.create("ins",{className:"lxb-callback-container"});k.cbCon.appendChild(u);var w=k.btn=i.create("ins",{className:f.CB_INPUT_BTN});w.innerHTML=i.encodeHTML(g.btnFontContent||"");if(!(b.isStandard()&&b.isHorizon())){w.style.color=g.btnfontColor;w.style.backgroundColor=g.btnColor}k.cbCon.appendChild(w);if(b.displayGroup()){w.style.display="none";var y=k.groupContainer=i.create("ins",{className:"lxb-group-container"});k.cbCon.appendChild(y);for(var v=0;v1){return}var g=lxb.use("config");var n=lxb.use("net");var c=lxb.use("base");var a=g.Root+"/_l.js";var o=m();if(!o){o=c.getCookie(g.ID.COOKIE_DBCLKID)}else{c.setCookie(g.ID.COOKIE_DBCLKID,o)}var r=g.bdcbid;var q=f();if(!q||p(q)==p(location.hostname)){q=c.getCookie(g.ID.COOKIE_REFER)}else{var b=q+"; path=/";if(location.hostname.indexOf("baidu.com")<0){b+="; domain=."+p(location.hostname)}c.setCookie(g.ID.COOKIE_REFER,b)}var h={siteid:g.SiteId,bdclickid:o||"",bdcbid:r||"",refer_domain:q||"",ishttp:(location.href.indexOf("https://")===0?0:1)};n.send(a,h,d);k.visitorLog(1,g.SiteId)})();