var split_id = 339133392;
if (typeof window.awf_Form_=='undefined') window.awf_Form_ = new Object();
awf_Form_.isPreview = false;
awf_Form_.setCookie = function(name, value, expires, path, domain, secure) {
    var curCookie = name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
    document.cookie = curCookie;
}

awf_Form_.getCookie = function(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else
        begin += 2;
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
        end = dc.length;
    return unescape(dc.substring(begin + prefix.length, end));
}
awf_Form_.showFormPopup = function() {
    var exit = true;
    window.onunload = function() {

        var unique_track = new Image();
        unique_track.src = "https://forms.aweber.com/form/displays.htm?id=7ExMrKzMHKws&split_id=" + split_id;

        if (exit != false) {
            win2 = window.open("https://forms.aweber.com/form/54/339133392-722553854.html",null,"height=312,width=378,status=0,menubar=0,location=0,resizable=1,titlebar=0,scrollbars=1top=" + (screen.height/2 - (312/2)) + ",left=" + (screen.width/2  - (378/2)));
            awf_Form_.setExpirationCookie();
        }
    };
}

awf_Form_.setExpirationCookie = function() {
    awf_Form_.expDate = new Date();
    awf_Form_.expDate.setTime(awf_Form_.expDate.getTime() + 2592000000);
    awf_Form_.setCookie('awpopup_722553854', '1', awf_Form_.expDate, '/', document.domain, 0);
}

if ((awf_Form_.isPreview || !awf_Form_.getCookie('awpopup_722553854')) && typeof hide_awf_Form=='undefined') {
    awf_Form_.showFormPopup();
}