kefu233Utils = { getCookie: function (name) { var cookieValue = ""; var search = name + "="; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) { end = document.cookie.length } cookieValue = document.cookie.substring(offset, end) } } return cookieValue }, getSubCookie: function (name, subname) { var allcookie = this.getCookie(name); var cookieValue = ""; var search = subname + "="; if (allcookie.length > 0) { offset = allcookie.indexOf(search); if (offset != -1) { offset += search.length; end = allcookie.indexOf("&", offset); if (end == -1) { end = allcookie.length } cookieValue = allcookie.substring(offset, end) } } return cookieValue }, user: function () { var uname = this.getSubCookie("wxuserinforset", "username"), uid = this.getSubCookie("wxuserinforset", "userID"); if (uname != null && uname != "") { return { "uid": uid, "uname": unescape(uname) } } else { return "" } }, param: function () { var user = this.user(); if (typeof user == "object") { NTKF_PARAM.uid = user.uid; NTKF_PARAM.uname = user.uname } else { NTKF_PARAM.uid = ""; NTKF_PARAM.uname = "" } }, paramstr: function () { var user = this.user(); if (typeof user == "object") { return "&uid=" + user.uid + "&uname=" + user.uname } return "" }, hostname: function () { return window.location.hostname; }(), scriptReady: function (a, b) { var c = "object" == typeof a ? a : window.document.getElementById(a); c.readyState ? c.onreadystatechange = function () { (c.attachEvent ? "complete" === c.readyState : "loading" !== c.readyState) && (c.onreadystatechange = null, b && b()); } : c.onload = function () { b && b(); }; }, getScript: function (a, b, c) { var d, e = window.document.createElement("script"); if (e.type = "text/javascript", e.charset = "utf-8", e.defer = "defer", e.async = "async", e.src = a, b) for (d in b) e[d] = b[d]; window.document.getElementsByTagName("head")[0].appendChild(e), c && this.scriptReady(e, c); }, dm: function () { var path = window.location.pathname, hostname = window.location.hostname; if (path == '') return ''; var arr = path.split("/"); if (hostname == 'www.233.com') { return arr.length > 2 ? "chengkao" == arr[1] && "xwyy" == arr[2] ? "xwyy" : arr[1] : arr[1]; } if (hostname == 'wx.233.com') { return arr[1]; } if (hostname == 'm.233.com') { return arr[1]; } return arr[1]; }(), filename: function () { if ("string" == typeof _siteDoMain) { return _siteDoMain; } if ("undefined" != typeof _siteKsClassId) { return 'ks/' + _siteKsClassId; } if ("undefined" != typeof _siteWxClassId) { return 'wx/' + _siteWxClassId; } return this.dm; }, kfid: 'kf_9278_1464743622579', isid: false, kefu: function (callBack) { if (this.isid) { callBack && callBack(); return; } var self = this, filename = self.filename(), dms = '#jzs1#cfe#jzs2#jianli#shgzz#jjcy#zq#ccbp#qh#teacher#tegang#jszp#zaojia#aq#cpa#zhongji#chuji#jjs#hr#yaoshi#xlzx#tjs#cet4#cet6#pets#chengkao#xwyy#ncre#kjsc#ncre2#site#zjjjs#cfe2#cjjjs#jjxs#gongzhao#ck#cryy#teacherms#', wxs = '#wx/335#wx/505#wx/339#wx/338#wx/423#wx/503#wx/369#wx/368#wx/372#wx/404#wx/518#wx/480#wx/330#wx/350#wx/363#wx/365#wx/412#wx/360#wx/381#wx/384#wx/422#wx/361#wx/389#wx/470#wx/388#wx/401#wx/393#wx/414#wx/509#wx/414#wx/360#wx/517#wx/360#wx/531', kss = '#ks/192#ks/1143#ks/187#ks/168#ks/623#ks/1004#ks/9#ks/381#ks/532#ks/121#ks/1184#ks/771#ks/24#ks/198#ks/48#ks/30#ks/28#ks/321#ks/50#ks/217#ks/611#ks/635#ks/124#ks/139#ks/213#ks/306#ks/1130#ks/1131#ks/1159#ks/82#ks/321#ks/1221#ks/420#'; if (dms.indexOf('#' + filename + '#') != -1 || wxs.indexOf('#' + filename + '#') != -1 || kss.indexOf('#' + filename + '#') != -1) { if ("object" == typeof _siteConfig && _siteConfig.hasOwnProperty('kfId')) { self.isid = true, self.kfid = _siteConfig.kfId, callBack && callBack(); } else { self.getScript('//www.233.com/js/config/' + filename + '.htm?v=2017011804', {}, function () { if ("object" == typeof _siteConfig && _siteConfig.hasOwnProperty('kfId')) { self.isid = true, self.kfid = _siteConfig.kfId, callBack && callBack(); } else { self.isid = true, callBack && callBack(); } }); } } else { self.isid = true, callBack && callBack(); } } }; if ((/AppleWebKit.*Mobile/i.test(navigator.userAgent) || /Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) || /MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent)) && !/iPad/i.test(navigator.userAgent) && location.hash != "#m") { NTKF_PARAM = { siteid: "kf_9278", settingid: "kf_9278_1464743622579", uid: "", uname: "", isvip: "0", userlevel: "1", erpparam: "" }, kefu233 = { presale: function () { kefu233Utils.param(), kefu233Utils.kefu(function () { NTKF.im_openInPageChat(kefu233Utils.kfid); }); typeof zhuge != "undefined" && zhuge.track("报名咨询"); }, aftersale: function () { kefu233Utils.param(), NTKF.im_openInPageChat("kf_9278_1464680771480"); typeof zhuge != "undefined" && zhuge.track("售后咨询"); }, group: function () { kefu233Utils.param(), NTKF.im_openInPageChat("kf_9278_1531963707284"); typeof zhuge != "undefined" && zhuge.track("团购咨询"); } }, ! function (a, b, c) { var d = { scriptReady: function (a, b) { var c = "object" == typeof a ? a : window.document.getElementById(a); c.readyState ? c.onreadystatechange = function () { (c.attachEvent ? "complete" === c.readyState : "loading" !== c.readyState) && (c.onreadystatechange = null, b && b()) } : c.onload = function () { b && b() } }, getScript: function (a, b, c) { var d, e = window.document.createElement("script"); if (e.type = "text/javascript", e.charset = "utf-8", e.defer = "defer", e.async = "async", e.src = a, b) { for (d in b) { e[d] = b[d] } } window.document.getElementsByTagName("head")[0].appendChild(e), c && this.scriptReady(e, c) } }; d.getScript(a, b, c) }("//dl.ntalker.com/js/xn6/ntkfstat.js?siteid=kf_9278") } else { kefu233 = { presale: function () { kefu233Utils.kefu(function () { window.open("http://downt.ntalker.com/t2d/chat.php?siteid=kf_9278&settingid=" + kefu233Utils.kfid + "&baseuri=http%3A%2F%2Fdl.ntalker.com%2Fjs%2Fxn6%2F" + kefu233Utils.paramstr(), "_blank", "height=660,width=625,fullscreen=3,top=" + (screen.availHeight - 660) / 2 + ",left=" + (screen.availWidth - 625) / 2 + ",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no,fullscreen=no") }); typeof zhuge != "undefined" && zhuge.track("报名咨询"); }, aftersale: function () { window.open("http://downt.ntalker.com/t2d/chat.php?siteid=kf_9278&settingid=kf_9278_1464680771480&baseuri=http%3A%2F%2Fdl.ntalker.com%2Fjs%2Fxn6%2F" + kefu233Utils.paramstr(), "_blank", "height=660,width=625,fullscreen=3,top=" + (screen.availHeight - 660) / 2 + ",left=" + (screen.availWidth - 625) / 2 + ",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no,fullscreen=no") typeof zhuge != "undefined" && zhuge.track("售后咨询"); }, group: function () { window.open("http://downt.ntalker.com/t2d/chat.php?siteid=kf_9278&settingid=kf_9278_1531963707284&baseuri=http%3A%2F%2Fdl.ntalker.com%2Fjs%2Fxn6%2F" + kefu233Utils.paramstr(), "_blank", "height=660,width=625,fullscreen=3,top=" + (screen.availHeight - 660) / 2 + ",left=" + (screen.availWidth - 625) / 2 + ",status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no,fullscreen=no") typeof zhuge != "undefined" && zhuge.track("团购咨询"); } } }; /*kefu233={presale:function(){window.open("//www.53kf.com/company.php?arg=examda123&style=1&kflist=off&kf=&zdkf_type=2&language=zh-cn&charset=gbk&lytype=0&referer={hz6d_referer}&keyword=http%3A//wx.233.com/account/home/&tfrom=1&tpl=crystal_blue","_blank","height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no,location=no,titlebar=no")},aftersale:function(){window.open("//www.53kf.com/company.php?arg=examda123&style=1&kflist=off&kf=&zdkf_type=2&language=zh-cn&charset=gbk&lytype=0&referer={hz6d_referer}&keyword=http%3A//wx.233.com/account/home/&tfrom=1&tpl=crystal_blue","_blank","height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no,location=no,titlebar=no")}};*/