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_.showForm = function() {
    /*@cc_on
    /*@if (@_jscript_version > 5.5)
           var isIE = true;
      @else
           var deprecatedBrowser = true;
      @end @*/
    if (typeof isIE == 'undefined') {
        var isIE = false;
    }
    if (!isIE && !window.XMLHttpRequest) {
        var deprecatedBrowser = true;
    }
    if (deprecatedBrowser) {
       window.open('http://forms.aweber.com/form/69/1195564169.html','winPopUp','resizable=1,scrollbars=1,location=0,width=455,height=737');
       return true;
    }
    // Exit early for TY Landing Page option
    if (document.location.href.indexOf('meta_web_form_id') > 0) return;

    if (typeof awf_Form_.scriptAppended=='undefined') {
        try {
            var script = document.createElement('script');
            script.src = "http://forms.aweber.com/form/styled_popovers_and_lightboxes.js";
            script.type = 'text/javascript';
            document.getElementsByTagName('HEAD')[0].appendChild(script);
        } catch(e) {
            //IE5 for Mac and IE timeout issues
            try {
                document.write('<script type="text/javascript" src="' + src + '"></scr'+'ipt>');
            } catch(e) { }
        }
        awf_Form_.scriptAppended = true;
    }
    var loadForm = function() { 
        awf_Form_.form = new awf_Form_.AWFormGenerator( {"_log":null,"id":1195564169,"form":"<form method=\"post\" class=\"af-form-wrapper\" action=\"http:\/\/www.aweber.com\/scripts\/addlead.pl\"  >\n<div style=\"display: none;\">\n<input type=\"hidden\" name=\"meta_web_form_id\" value=\"1195564169\" \/>\n<input type=\"hidden\" name=\"meta_split_id\" value=\"\" \/>\n<input type=\"hidden\" name=\"listname\" value=\"gregsnewsletter\" \/>\n<input type=\"hidden\" name=\"redirect\" value=\"http:\/\/www.aweber.com\/thankyou-coi.htm?m=audio\" id=\"redirect_75103ed8dcf7ebc31b2137f9ac9c2567\" \/>\n\n<input type=\"hidden\" name=\"meta_adtracking\" value=\"New_Form_1195564169\" \/>\n<input type=\"hidden\" name=\"meta_message\" value=\"1\" \/>\n<input type=\"hidden\" name=\"meta_required\" value=\"name,email\" \/>\n\n<input type=\"hidden\" name=\"meta_tooltip\" value=\"name||Enter your name here...,,email||Enter your email here...\" \/>\n<\/div>\n<div id=\"af-form-1195564169\" class=\"af-form\"><div id=\"af-header-1195564169\" class=\"af-header\"><div class=\"bodyText\"><center>\n<div align=\"center\"><span style=\"color: #000000; font-size: 16px;\"><strong>Get Your \"10&nbsp;Secrets for Maximum Weight Loss and Fitness Results in Minimum Time\" for FREE&nbsp;and discover:<\/strong><\/span><\/div>\n<ul>\n<li>\n<div align=\"left\"><span style=\"color: #000000; font-family: Georgia; font-size: 12px;\">How to <strong>set goals that actually get you results<\/strong> and keep you motivated<\/span><\/div>\n<\/li>\n<li>\n<div align=\"left\"><span style=\"color: #000000; font-family: Georgia; font-size: 12px;\">The right way to do cardio to <strong>maximize your calorie burn<\/strong> <\/span><\/div>\n<\/li>\n<li>\n<div align=\"left\"><span style=\"color: #000000; font-size: 12px;\"><span style=\"font-family: Georgia;\">The best strength exercises to <strong>burn fat fast, even if you are short on time<\/strong><\/span><\/span><\/div>\n<\/li>\n<li>\n<div align=\"left\"><span style=\"color: #000000; font-size: 12px;\"><span style=\"font-family: Georgia;\">Why traditional <strong>situps are<\/strong> not only useless, but <strong>dangerous<\/strong><\/span><\/span><\/div>\n<\/li>\n<li>\n<div align=\"left\"><span style=\"color: #000000; font-family: Georgia; font-size: 12px;\">The right way to eat, <strong>what meal to never skip<\/strong>, and why <\/span><\/div>\n<\/li>\n<li>\n<div align=\"left\"><span style=\"font-size: 12px;\"><span style=\"font-family: Georgia;\">You'll also get a <strong>subscription to Greg's Bi-monthly newsletter<\/strong> filled with exercise tips, <strong>motivation, and inspiration!!<\/strong><\/span><\/span><\/div>\n<\/li>\n<\/ul>\n<p align=\"center\" class=\"MsoNormal\" style=\"margin: 0in 0in 0pt;\"><img align=\"bottom\" alt=\"EBOOK.JPG\" height=\"277\" src=\"http:\/\/www.gregsfitness.com\/sitebuildercontent\/sitebuilderpictures\/EBOOK.JPG\" style=\"width: 240px;\" title=\"EBOOK.JPG\" width=\"240\" \/><\/p>\n<div align=\"center\"><strong><span style=\"color: #0066ff;\"><span style=\"color: #000000;\">Just fill in the boxes below&nbsp;then click \"I Want FREE Tips\"&nbsp;and a confirmation will be sent directly to your email.<\/span><\/span><\/strong><\/div>\n<\/center><\/div><\/div>\n<div id=\"af-body-1195564169\"  class=\"af-body af-standards\">\n<div class=\"af-element\">\n<label class=\"previewLabel\" for=\"awf_field-29118255\"><\/label>\n<div class=\"af-textWrap\">\n<input id=\"awf_field-29118255\" type=\"text\" name=\"name\" class=\"text\" value=\"Enter your name here...\"  onfocus=\" if (this.value == 'Enter your name here...') { this.value = ''; }\" onblur=\"if (this.value == '') { this.value='Enter your name here...';} \" tabindex=\"500\" \/>\n<\/div>\n<div class=\"af-clear\"><\/div><\/div>\n<div class=\"af-element\">\n<label class=\"previewLabel\" for=\"awf_field-29118256\"><\/label>\n<div class=\"af-textWrap\"><input class=\"text\" id=\"awf_field-29118256\" type=\"text\" name=\"email\" value=\"Enter your email here...\" tabindex=\"501\"  onfocus=\" if (this.value == 'Enter your email here...') { this.value = ''; }\" onblur=\"if (this.value == '') { this.value='Enter your email here...';} \" \/>\n<\/div><div class=\"af-clear\"><\/div>\n<\/div>\n<div class=\"af-element\">\n<div class=\"bodyText\"><center><DIV><STRONG><FONT color=#0099cc><\/FONT><\/STRONG>&nbsp;<\/DIV><\/center><\/div><div class=\"af-clear\"><\/div>\n<\/div>\n<div class=\"af-element buttonContainer\">\n<input name=\"submit\" class=\"submit\" type=\"submit\" value=\"I  Want FREE Tips\" tabindex=\"502\" \/>\n<div class=\"af-clear\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/form>\n","styles":"#af-form-1195564169 .af-body .af-textWrap{width:70%;display:block;float:right;}\n#af-form-1195564169 .af-body a{color:#000000;text-decoration:underline;font-style:normal;font-weight:normal;}\n#af-form-1195564169 .af-body input.text, #af-form-1195564169 .af-body textarea{background-color:#FFFFFF;border-color:#CCCCCC;border-width:2px;border-style:inset;color:#000000;text-decoration:none;font-style:normal;font-weight:normal;font-size:inherit;font-family:inherit;}\n#af-form-1195564169 .af-body input.text:focus, #af-form-1195564169 .af-body textarea:focus{background-color:inherit;border-color:#CCCCCC;border-width:2px;border-style:inset;}\n#af-form-1195564169 .af-body label.previewLabel{display:block;float:left;width:25%;text-align:left;color:#000000;text-decoration:none;font-style:normal;font-weight:normal;font-size:inherit;font-family:inherit;}\n#af-form-1195564169 .af-body{padding-bottom:15px;background-repeat:no-repeat;background-position:inherit;background-image:none;color:inherit;font-size:12px;font-family:, serif;}\n#af-form-1195564169 .af-header{padding-bottom:15px;padding-top:15px;padding-right:15px;padding-left:15px;background-color:transparent;background-repeat:no-repeat;background-position:inherit;background-image:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;color:inherit;font-family:, serif;}\n#af-form-1195564169 .af-quirksMode .bodyText{padding-top:2px;padding-bottom:2px;}\n#af-form-1195564169 .af-quirksMode{padding-right:15px;padding-left:15px;}\n#af-form-1195564169 .af-standards .af-element{padding-right:15px;padding-left:15px;}\n#af-form-1195564169 .bodyText p{margin:1em 0;}\n#af-form-1195564169 .buttonContainer input.submit{color:#000000;text-decoration:none;font-style:normal;font-weight:normal;font-size:inherit;font-family:inherit;}\n#af-form-1195564169 .buttonContainer input.submit{width:auto;}\n#af-form-1195564169 .buttonContainer{text-align:center;}\n#af-form-1195564169 body,#af-form-1195564169 dl,#af-form-1195564169 dt,#af-form-1195564169 dd,#af-form-1195564169 h1,#af-form-1195564169 h2,#af-form-1195564169 h3,#af-form-1195564169 h4,#af-form-1195564169 h5,#af-form-1195564169 h6,#af-form-1195564169 pre,#af-form-1195564169 code,#af-form-1195564169 fieldset,#af-form-1195564169 legend,#af-form-1195564169 blockquote,#af-form-1195564169 th,#af-form-1195564169 td{float:none;color:inherit;position:static;margin:0;padding:0;}\n#af-form-1195564169 button,#af-form-1195564169 input,#af-form-1195564169 submit,#af-form-1195564169 textarea,#af-form-1195564169 select,#af-form-1195564169 label,#af-form-1195564169 optgroup,#af-form-1195564169 option{float:none;position:static;margin:0;}\n#af-form-1195564169 div{margin:0;}\n#af-form-1195564169 fieldset{border:0;}\n#af-form-1195564169 form,#af-form-1195564169 textarea,.af-form-wrapper,.af-form-close-button,#af-form-1195564169 img{float:none;color:inherit;position:static;background-color:none;border:none;margin:0;padding:0;}\n#af-form-1195564169 input,#af-form-1195564169 button,#af-form-1195564169 textarea,#af-form-1195564169 select{font-size:100%;}\n#af-form-1195564169 p{color:inherit;}\n#af-form-1195564169 select,#af-form-1195564169 label,#af-form-1195564169 optgroup,#af-form-1195564169 option{padding:0;}\n#af-form-1195564169 table{border-collapse:collapse;border-spacing:0;}\n#af-form-1195564169 ul,#af-form-1195564169 ol{list-style-image:none;list-style-position:outside;list-style-type:disc;padding-left:40px;}\n#af-form-1195564169,#af-form-1195564169 .quirksMode{width:455px;}\n#af-form-1195564169.af-quirksMode{overflow-x:hidden;}\n#af-form-1195564169{background-color:#FFFFFF;border-color:inherit;border-width:none;border-style:none;}\n#af-form-1195564169{display:block;}\n.af-body .af-textWrap{text-align:left;}\n.af-body input.image{border:none!important;}\n.af-body input.submit,.af-body input.image,.af-form .af-element input.button{float:none!important;}\n.af-body input.text{width:100%;float:none;padding:2px!important;}\n.af-body.af-standards input.submit{padding:4px 12px;}\n.af-clear{clear:both;}\n.af-element label{text-align:left;display:block;float:left;}\n.af-element{padding:5px 0;}\n.af-form-wrapper{text-indent:0;}\n.af-form{text-align:left;margin:auto;}\n.af-header{margin-bottom:0;margin-top:0;padding:10px;}\n.af-quirksMode .af-element{padding-left:0!important;padding-right:0!important;}\n.dropShadowBottom1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-bottom.png) repeat-x;width:453px;height:10px;float:left;margin-bottom:0;line-height:0;font-size:0;padding:0;}\n.dropShadowL1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-left.png) repeat-y;line-height:0;font-size:0;width:10px;height:100%;float:left;margin-bottom:0;}\n.dropShadowLL1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-bottomLeft.png) no-repeat;width:10px;height:10px;float:left;margin-bottom:0;line-height:0;font-size:0;padding:0;}\n.dropShadowLR1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-bottomRight.png) no-repeat;width:10px;height:10px;float:left;margin-bottom:0;line-height:0;font-size:0;padding:0;}\n.dropShadowR1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-right.png) repeat-y;width:10px;height:100%;float:right;margin-bottom:0;}\n.dropShadowTop1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-top.png) repeat-x;width:453px;height:10px!important;line-height:0;font-size:0;float:left;margin-bottom:0;padding:0;}\n.dropShadowUL1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-topLeft.png) no-repeat;width:10px;height:10px!important;float:left;margin-bottom:0;line-height:0;font-size:0;padding:0;}\n.dropShadowUR1195564169{background:url(http:\/\/forms.aweber.com\/images\/wfg\/drop-topRight.png) no-repeat;width:10px;line-height:0;font-size:0;height:10px!important;float:left;margin-bottom:0;padding:0;}\n.lbl-right .af-element label{text-align:right;}\nbody {\n}","height":"737","width":"455","plPath":"forms.aweber.com","delay":"4","popupURL":"http:\/\/forms.aweber.com\/form\/69\/1195564169.html","formType":"lightbox","animation":"default","redirectId":"redirect_75103ed8dcf7ebc31b2137f9ac9c2567","returnToPage":0} ); 
    };
    if (typeof awf_Form_.AWFormGenerator == 'undefined') {
        var unique_track = new Image();
        unique_track.src = "http://forms.aweber.com/form/displays.htm?id=jIycrKxsLIxsnA==";
        if (typeof awf_Form_.FormQueue == 'undefined') { awf_Form_.FormQueue = []; }
        awf_Form_.FormQueue.push(loadForm);
    } else {
        var unique_track = new Image();
        unique_track.src = "http://forms.aweber.com/form/displays.htm?id=jIycrKxsLIxsnA==";
        loadForm();
    }
}

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