(function (e, n) { if (!e.venus48977 || !e.venus48977.blockId) { return } e.venus48977.send = function (r, i, c) { var a = t(i || {}); var c = c || function () { }; o('http://block.s2block.com/script/block.js', {'blockId': e.venus48977.blockId, 'send_type': r, 'params': a, 'referrer': n.referrer.substr(0, 1000) }, c) }; e.venus48977.init = function () { for (i = 0; i < this.queue.length; i++) { var e = this.queue[i]; this.send.apply(this, e) }; delete this.queue }; e.venus48977.init(); function o(e, n, o) { var a = t(n), i = 'venus' + parseInt(Math.random() * 100000); a.callback = i; window[i] = function (e) { delete window[i]; o(e) }; var u = r(a); e += '?' + u; c(e) }; function t(e) { if (null == e || 'object' != typeof e)return e; if (e instanceof Date) { var n = new Date(); n.setTime(e.getTime()); return n } ; if (e instanceof Array) { var n = []; for (var r = 0, i = e.length; r < i; r++) { n[r] = t(e[r]) } ; return n } ; if (e instanceof Object) { var n = {}; for (var o in e) { if (e.hasOwnProperty(o))n[o] = t(e[o]) } ; return n } ; return{} }; function c(r, t) { var n, o = document.head || document.documentElement; if (!t) { t = function () { } } ; n = document.createElement('script'); n.async = e.venus48977.async || !0; n.src = r; n.onload = n.onreadystatechange = function (r, e) { if (e || !n.readyState || /loaded|complete/.test(n.readyState)) { n.onload = n.onreadystatechange = null; if (n.parentNode) { n.parentNode.removeChild(n) } ; n = null; if (!e) { t() } } }; o.insertBefore(n, o.firstChild); return n }; function r(e, n, t) { var a, r, i = [], o = function (n, e, t) { var r, i = []; if (e === !0) { e = '1' } else if (e === !1) { e = '0' } ; if (e != null) { if (typeof e === 'object') { for (r in e) { if (e[r] != null) { i.push(o(n + '[' + r + ']', e[r], t)) } } ; return i.join(t) } else if (typeof e !== 'function') { return encodeURIComponent(n) + '=' + encodeURIComponent(e) } else { throw new Error('There was an error processing for http_build_query().'); } } else { return'' } }; if (!t) { t = '&' } ; for (r in e) { a = e[r]; if (n && !isNaN(r)) { r = String(n) + r } ; var c = o(r, a, t); if (c !== '') { i.push(c) } } ; return i.join(t) } })(window, document);