// Tracking object used to make requests to zag.js. To refresh tracking, // just call TrackingObject.drawTracking(); var TrackingObject = { resolution : screen.availWidth + "x" + screen.availHeight, domain: "", status: null, nodeId: "", drawTracking : function() { // Remove all children of the tracking node. var trackingNode = _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(this.nodeId); while (trackingNode.firstChild) { trackingNode.removeChild(trackingNode.firstChild); } var output; // output = this.domain +'?Log=1'; // Changed by Horace to support New NPP or Old tag generation. if ( _proxy_jslib_handle(this, 'domain', '', 0, 0) != null && _proxy_jslib_handle(this, 'domain', '', 0, 0) != '') { output = _proxy_jslib_handle(this, 'domain', '', 0, 0) +'?Log=1'; } else { output = 'http://' + _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'host', '', 0, 0) +'/js/stats/zag.js?Log=1'; } output += '&URL=' + ( _proxy_jslib_handle(document, 'location', '', 0, 0)); output += '&screenres='+this.resolution; output += '&referrer='+ _proxy_jslib_handle(document, 'referrer', '', 0, 0); output += '&cachedefeat=' + (new (Date)()).getTime() + '-' + Math.floor(Math.random()*1000001); output += '&httpStatusCode='+this.status; // Create a script node. var node = document.createElement("script"); _proxy_jslib_assign('', node, 'src', '=', ( output)); _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("zagHolder").appendChild(node); }, setDomain : function(domain) { _proxy_jslib_assign('', this, 'domain', '=', ( _proxy_jslib_handle(null, 'domain', domain, 0, 0))); }, setStatus : function(status) { this.status = status; }, setNodeId : function(nodeId) { this.nodeId = nodeId; } }