





var check;

function readCookie(name) {
    var cookiesString = '';
    cookiesString += 'sid=a1f5393b-70c3-4eaf-98d6-d82c8550060a;';
cookiesString += 'vid=198a2088-9826-4897-b301-3bd5e049e520;';
cookiesString += 'BIGipServerVisit_http_pool=2841946304.36895.0000;';
cookiesString += 'nxj_visitor_guid=20390694884b9b5e08507a08.12771298;';

    var nameEQ = name + "=";
    var ca = cookiesString.split(';');
    for(var i=0;i < (ca.length-1);i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}

function _rtntst() {
	return check;
}

function _rtnProt() {
	var prot = location.protocol;
	return prot;
}

function _nxjdst() {
    if (_nxjtzoff(0)!= _nxjtzoff(6)) {
        return 1;
    }

    return 0;
}

function _nxjtzoff(m){
    var d1 = new Date(2000, m, 1, 0, 0, 0, 0);
    var t = d1.toGMTString();
    var d3 = new Date(t.substring(0,t.lastIndexOf(" ") - 1));
    return d1 - d3;
}

function _nxjeuc(s){
    if (typeof(encodeURIComponent)=='function') {
        return encodeURIComponent(s);
    } else {
        return escape(s);
    }
}

function _nxjrand() {
    return Math.round(Math.random() * 2147483647);
}

function _nxjvoid() {
    return;
}

function _nxjstrde(a, u, c, d, o, s, t, fd, ct) {

	var de = "|";
	var rtn = a + de + u + de + c + de + d + de + o + de + s + de + t + de + fd + de + ct;
	return rtn;
}

function nxjvisit() { 
    var crid = _nxjrand();
    var sr = '';
    var nxjo = '';
    var nxjm = '';
    var url = '';
    var ref = '';
    var je = 'u';
    var ns = '1';
    var nxju = '';
    var nxjetyp = '';
    var nxjetag = '';
    var nxjcsid = '';
    if (typeof _nxjoptions != "undefined" && _nxjoptions != null) {
        for (var k in _nxjoptions) {
            if (typeof(_nxjoptions[k]) != 'string') {
                continue;
            }

            if (k == 'nxjeid' ) {
                _nxjeid = _nxjoptions[k];
            } else {
                nxjo += '&' + k + '=' + _nxjeuc(_nxjoptions[k]);
            }

            if (k == 'media') {
                media = _nxjoptions[k];
            }

            if (k == 'event') {
                event = _nxjoptions[k];
            }
        }

        _nxjoptions = null;
    }

    if ((typeof _nxjeid == "undefined")||(_nxjeid.length == 0)) {
        return;
    }

    if (typeof _nxju != "undefined" && _nxju != null) {
        nxju = "&nxju=" + _nxju;
    }

    if (typeof _nxjetyp != "undefined" && _nxjetyp != null) {
        nxjetyp = "&etp=" + _nxjetyp;
    } else {
        nxjetyp = "&etp=page";
    }

    if (typeof _nxjetag != "undefined" && _nxjetag != null) {
        nxjetag = "&etg=" + _nxjetag;
    }

    var ce = (navigator.cookieEnabled) ? "1" : "0";
    if (typeof navigator.javaEnabled != 'undefined') {
        je = (navigator.javaEnabled()) ? "1" : "0";
    }    

    if (typeof _nxjcsid != "undefined" && _nxjcsid != null && _nxjcsid != "0") {
        nxjcsid = "&csid=" + _nxjcsid;
    } else if (ce == "1") {
        _nxjcsid = readCookie(_nxjeid);
    } 

    if (typeof _nxjmeta != "undefined" && _nxjmeta != null) {
        nxjm = '&nxjm=' + _nxjeuc(_nxjmeta);
        _nxjmeta = null;
    }

    if (self.screen) {
        sr = screen.width + "x" + screen.height + "x" + screen.colorDepth;
    }
    var d = new Date();
    var dst = _nxjdst();
    var prot = location.protocol;
	
    var dc = '198a2088-9826-4897-b301-3bd5e049e520'; 
    var surl = prot + '//visit.nextjump.com/pixel';
    if (window.location && window.location.href) {
     	url = _nxjeuc(window.location.href);
    }
	
    if (window.document && window.document.referrer) {
        ref = _nxjeuc(window.document.referrer);
    }

    if (self == top) {
        ns = '0';
    }
    var img = new Image(1,1);
    img.alt = "";
    img.src = 
          surl + '?' +                 
          'crid=' + crid +        
          '&ns=' + ns +           
          '&url=' + url +         
          
          '&ce=' + ce +           
          '&je=' + je +           
          '&sr=' + sr +           
          '&vid=' + dc +           
          '&dst=' + dst +         
          '&et=' + d.getTime() +  
          '&tzo=' + d.getTimezoneOffset() + 
          '&nxjsid=' + _nxjeid +       
          nxjetyp +       
          nxjetag +       
          nxjcsid +       
          nxju +                  
          nxjo +                  
          nxjm;                   
	check = img.src;
	img.onload = function() {_nxjvoid();}
}

nxjvisit();
