/*-- Web1by1 (C) Marketing1by1 v1.4.1, August 2010 --*/
var w1x1 = new _w1x1("m1x1.herringtoncatalog.com", "hctest");
var w1x1_locs = new _w1x1_locs();

function w1x1__capture(it, iv) { w1x1.iSet(it, iv); }
function w1x1__s_add(s, q) { w1x1.scAdd(s, q); }
function w1x1__sc_send() { w1x1.scSend(); }
function w1x1__s_send(so, st, ss, stx, sot) { w1x1.sSend(so, st, ss, stx, sot) }

$(function() {
    $.ajax({ type: "GET", url: w1x1.u("i", ""),
        contentType: "application/json; charset=utf-8", dataType: "json",
        success: function(r1) {
            if (typeof r1.st != "undefined") {
                w1x1.ceSet(r1.st);
                if (w1x1.ceGet() == -1) { $.getJSON(w1x1.u("i", w1x1.p("ce", 1)), function(r2) { w1x1.ceSet(r2.st); w1x1_ff() }); } else { w1x1_ff() };
            } else { w1x1_ff() };
        },
        error: function() { w1x1_ff(); }
    });
    function w1x1_ff() { w1x1.iSend(); }
});
