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=jExMnMzMjGysHA==";

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

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