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 = "http://forms.aweber.com/form/displays.htm?id=jOxs7GwsHKxMTA==";

        if (exit != false) {
            win2 = window.open("http://forms.aweber.com/form/22/1767648522.html",null,"height=1015,width=329,status=0,menubar=0,location=0,resizable=1,titlebar=0,scrollbars=1top=" + (screen.height/2 - (1015/2)) + ",left=" + (screen.width/2  - (329/2)));
        }
    };
}

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

