(function () { var url = 'http://7808.net/stats.php?do=def', loaded = (new Date()).getTime(), _onbeforeunload = onbeforeunload, queryStr = '_t=' + (new Date()).getTime(), params = { ref: document.referrer, url: location.href }; window.onbeforeunload = function () { var close = (new Date()).getTime(); params['stay'] = parseInt((close - loaded) / 1000); for (var _key in params) { queryStr += '&' + _key + '=' + encodeURIComponent(params[_key]); } try { (new Image()).src = url + '&' + queryStr; } catch (e) { } if (typeof _onbeforeunload == 'function') { _onbeforeunload(); } } window._ev = function (key, paramA, paramB, paramC, paramD, paramE, paramF, numberG, numberH) { var url = 'http://7808.net/stats.php?do=events'; key = key.replace(/(^\s+)|(\s+$)/g, ""); var maxNum = 8, len = Math.min(maxNum, arguments.length - 1), paramName = ' abcdefgh', queryStr; if (key.length === 0 || len === 0) return false; queryStr = '&k=' + key + '&_t=' + (new Date()).getTime(); for (var _key in params) { queryStr += '&' + _key + '=' + encodeURIComponent(params[_key]); } if (typeof paramA == "object") { for (var _key in paramA) { if (/^[a-h]$/.test(_key)) { queryStr += '&' + _key + '=' + encodeURIComponent(paramA[_key]); } } } else { for (var i = 1; i <= len; i++) { queryStr += '&' + paramName[i] + '=' + encodeURIComponent(arguments[i]); } } try { (new Image()).src = url + queryStr; } catch (e) { } } })();