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() {
    setTimeout(function() {
        var win2 = window.open("http://forms.aweber.com/form/52/1443733952.html",'window_null_'+(Math.floor(Math.random()*20000)),"height=529,width=225,status=0,menubar=0,location=0,resizable=1,titlebar=0,scrollbars=1top=" + (screen.height/2 - (529/2)) + ",left=" + (screen.width/2  - (225/2)));
        win2.focus();

        var unique_track = new Image();
        unique_track.src = "http://forms.aweber.com/form/displays.htm?id=jCwszOzMzJysTA==";
    }, 5000);
}

if ((awf_Form_.isPreview || !awf_Form_.getCookie('awpopup_1443733952')) && typeof hide_awf_Form=='undefined') {
    awf_Form_.currDate = new Date();
    awf_Form_.currDate.setTime(awf_Form_.currDate.getTime() + 432000000);
    awf_Form_.setCookie('awpopup_1443733952', '1', awf_Form_.currDate, '/', document.domain, 0);
    awf_Form_.showFormPopup();
}

