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/62/1835664162.html','winPopUp','resizable=1,scrollbars=1,location=0,width=393,height=631');
       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":"1835664162","form":"<form method=\"post\" action=\"http:\/\/www.aweber.com\/scripts\/addlead.pl\"  >\n<div style=\"display: none;\">\n<input type=\"hidden\" name=\"meta_web_form_id\" value=\"1835664162\" \/>\n<input type=\"hidden\" name=\"meta_split_id\" value=\"\" \/>\n<input type=\"hidden\" name=\"listname\" value=\"icelantic\" \/>\n<input type=\"hidden\" name=\"redirect\" value=\"http:\/\/www.icelanticskis.co.uk\/subscription-needs-confirming\/\" id=\"redirect_c36dbd22054b4d1b5ef6ff6189082e75\" \/>\n\n<input type=\"hidden\" name=\"meta_adtracking\" value=\"New_Form_1835664162\" \/>\n<input type=\"hidden\" name=\"meta_message\" value=\"1\" \/>\n<input type=\"hidden\" name=\"meta_required\" value=\"email\" \/>\n<input type=\"hidden\" name=\"meta_forward_vars\" value=\"\" \/>\n<input type=\"hidden\" name=\"meta_tooltip\" value=\"\" \/>\n<\/div>\n<div id=\"af-form-1835664162\" class=\"af-form\"><div id=\"af-header-1835664162\" class=\"af-header\"><div class=\"bodyText\"><center><div align=\"center\"><img alt=\"\" title=\"\" src=\"http:\/\/www.icelanticskis.co.uk\/images\/sneak-preview.jpg\"><\/div>\r\n<div>&nbsp;<\/div><\/center><\/div><\/div>\n<div id=\"af-body-1835664162\" class=\"af-body af-standards\">\n<div class=\"af-element\">\n<label class=\"previewLabel\" for=\"awf_field-514741\">Name<\/label>\n<div class=\"af-textWrap\">\n<input id=\"awf_field-514741\" type=\"text\" name=\"name\" class=\"text\" value=\"\"  \/>\n<\/div>\n<div class=\"af-clear\"><\/div><\/div>\n<div class=\"af-element\">\n<label class=\"previewLabel\" for=\"awf_field-514742\">Email<\/label>\n<div class=\"af-textWrap\"><input class=\"text\" id=\"awf_field-514742\" type=\"text\" name=\"email\" value=\"\"  \/>\n<\/div><div class=\"af-clear\"><\/div>\n<\/div>\n<div class=\"af-element\">\n<center><\/center><div class=\"af-clear\"><\/div>\n<\/div>\n<div class=\"af-element buttonContainer\">\n<input name=\"submit\" class=\"submit\" type=\"submit\" value=\"Submit\"\/>\n<div class=\"af-clear\"><\/div>\n<\/div>\n<div class=\"af-element privacyPolicy\" style=\"text-align: center\"><p><a href=\"http:\/\/www.aweber.com\/permission.htm\" target=\"_blank\">We respect your email privacy<\/a><\/p>\n<div class=\"af-clear\"><\/div>\n<\/div>\n<\/div>\n<div id=\"af-footer-1835664162\" class=\"af-footer\"><div class=\"bodyText\"><p>&nbsp;<\/p><\/div><\/div>\n<\/div>\n<\/form>\n","styles":"#af-form-1835664162 body,\n#af-form-1835664162 dl, #af-form-1835664162 dt, #af-form-1835664162 dd,\n#af-form-1835664162 h1, #af-form-1835664162 h2, #af-form-1835664162 h3, #af-form-1835664162 h4, #af-form-1835664162 h5, #af-form-1835664162 h6,\n#af-form-1835664162 pre, #af-form-1835664162 code, #af-form-1835664162 form,\n#af-form-1835664162 fieldset, #af-form-1835664162 legend, #af-form-1835664162 textarea, #af-form-1835664162 blockquote,\n#af-form-1835664162 th, #af-form-1835664162 td {float:none; color: inherit; margin:0px; padding:0px; position:static;}\n\n#af-form-1835664162 ul,\n#af-form-1835664162 ol {list-style-image:none; list-style-position:outside; list-style-type:disc; padding-left:40px;}\n\n#af-form-1835664162 div {margin:0px;}\n\n#af-form-1835664162 .bodyText p {margin:1em 0;}\n\n#af-form-1835664162 table {border-collapse:collapse; border-spacing:0;}\n\n#af-form-1835664162 fieldset,\n#af-form-1835664162 img {border:0;}\n\n#af-form-1835664162 button,\n#af-form-1835664162 input,\n#af-form-1835664162 submit,\n#af-form-1835664162 textarea {float:none; margin:0px; position:static;}\n\n#af-form-1835664162 select,\n#af-form-1835664162 label,\n#af-form-1835664162 optgroup,\n#af-form-1835664162 option {float:none; margin:0px; padding:0px; position:static;}\n\n\/*@purpose To enable resizing for IE *\/\n\/*@branch For IE6-Win, IE7-Win *\/\n#af-form-1835664162 input,\n#af-form-1835664162 button,\n#af-form-1835664162 textarea,\n#af-form-1835664162 select {*font-size:100%;}\n\n .af-clear {clear:both;}\n\n.lastNameContainer {margin-top:10px;}\n\n.af-body input.text {float:none;}\n\n.af-element label {display:block; float:left;}\n\n.stacked .af-element label {float:none; display:block;}\n\n.af-form {margin:auto; text-align:left;}\n\n.af-header,\n.af-footer {margin-bottom:0px; margin-top:0px; padding:10px;}\n\n.af-divider {display:block; height:12px; margin-bottom:6px;}\n\n.af-divider-parent {padding-bottom:15px;}\n\n.af-element,\n.af-usaddress {padding: 6px 0;}\n\n.af-element {padding-bottom:5px; padding-top:5px;}\n\n.af-divider-parent {padding-top:0 !important;}\n\n.af-body input.text,\n.af-body textarea {padding:2px!important;}\n\n.af-body .af-textWrap input.text, .af-body .af-textWrap textarea {width:100%;}\n\n\n.af-body .af-textWrap {text-align:left;}\n\n.af-element-checkbox label,\n.af-element-checkbox input.checkbox,\n.af-element-radio label,\n.af-element-radio input.radio {display:inline !important; float:none !important;}\n\n.choiceList-radio-inline .af-element-radio {float:left;}\n\n.af-element-checkbox .choice {display:inline;}\n\n.af-body input.submit,\n.af-body input.image {float:none !important;}\n\n.af-body input.image {border:none !important;}\n\n#af-form .af-body input.submit, \n.af-body.af-standards input.submit {padding:4px 12px;}\n\n.af-usaddress input {margin-bottom:5px;}\n\n.af-element label {float:left; text-align:left;}\n\n.af-form .af-element input.button {float:none !important;}\n\n.af-element input.radio {width:inherit !important;}\n\n.af-element-radio label {display:inline;}\n\n.af-element-radio.inline {display:block !important; float:left; margin-left:0px; margin-right:7px;}\n\n.af-element-radio.block {display:block;}\n\n.lbl-right .af-element label{text-align:right;}\n\n.af-quirksMode .af-element {padding-left: 0px!important; padding-right: 0px!important;}\n#af-form-1835664162  .af-body a {color:#000000; text-decoration:underline; font-style:normal; font-weight:normal; }\n\n#af-form-1835664162  .af-body label.choice {color:#000000; text-decoration:none; font-style:normal; font-weight:normal; font-size:inherit; font-family:inherit; }\n\n#af-form-1835664162  .buttonContainer input.submit {background-image:url(\"http:\/\/forms.aweber.com\/images\/auto\/gradient\/button\/ca0.png\"); background-position:top left; background-repeat:repeat-x; background-color:#ac8a00; border:1px solid #ac8a00; color:#000000; text-decoration:none; font-style:normal; font-weight:normal; font-size:18px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162  .buttonContainer {text-align:right; }\n\n#af-form-1835664162  .af-body label.previewLabel {display:block; float:left; width:25%; text-align:right; color:#000000; text-decoration:none; font-style:normal; font-weight:normal; font-size:14px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162  .af-body .af-textWrap, #af-form-1835664162  .af-body .af-dateWrap, #af-form-1835664162  .af-body .af-selectWrap, #af-form-1835664162  .af-body .af-checkWrap, #af-form-1835664162  .choiceList-radio-inline, #af-form-1835664162  .choiceList-radio-stacked {width:70%; display:block; float:right; }\n\n#af-form-1835664162 .af-element-radio, #af-form-1835664162  input.radio {margin-left:0px; }\n\n#af-form-1835664162 .choiceList-radio-inline .af-element-radio {margin-right:10px; }\n\n#af-form-1835664162  .af-body input.text, #af-form-1835664162  .af-body textarea {background-color:#FFFFFF; border-color:#919191; border-width:1px; border-style:solid; color:#000000; text-decoration:none; font-style:normal; font-weight:normal; font-size:12px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162  .af-body input.text:focus, #af-form-1835664162  .af-body textarea:focus {background-color:#FFFAD6; border-color:#030303; border-width:1px; border-style:solid; }\n\n#af-form-1835664162  .af-footer {padding-bottom:104px; padding-top:1px; padding-right:25px; padding-left:25px; background-repeat:repeat-y; background-position:bottom left; background-image:url(\"http:\/\/forms.aweber.com\/images\/forms\/sticky-note\/canary\/footer.png\"); border-width:1px; border-style-bottom:none; border-style-left:none; border-style-right:none; border-style-top:none; color:#000000; font-size:18px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162  .af-header {padding-bottom:1px; padding-top:40px; padding-right:25px; padding-left:25px; background-repeat:repeat-y; background-position:top left; background-image:url(\"http:\/\/forms.aweber.com\/images\/forms\/sticky-note\/canary\/header.png\"); border-width:1px; border-style-top:none; border-style-left:none; border-style-right:none; border-style-bottom:none; color:#000000; font-size:18px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162  .af-body {padding-bottom:10px; padding-top:10px; background-repeat:repeat-y; background-position:left; background-image:url(\"http:\/\/forms.aweber.com\/images\/forms\/sticky-note\/canary\/body.png\"); color:#000000; font-size:12px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162  .af-body .privacyPolicy {color:#000000; font-size:12px; font-family:Verdana, sans-serif; }\n\n#af-form-1835664162   {background-color:transparent; border-color:transparent; border-width:1px; border-style:none; }\n\n#af-form-1835664162 .af-standards .af-element {padding-right:27px; padding-left:27px; }\n\n#af-form-1835664162 .af-standards .af-divider {margin-right:27px; margin-left:27px; }\n\n#af-form-1835664162 .af-quirksMode {padding-right:27px; padding-left:27px; }\n\n#af-form-1835664162 {width:393px; }\n\n#af-form-1835664162 .af-quirksMode {width:393px;}\n\n#af-form-1835664162.af-quirksMode { overflow-x:hidden; }\n\n#af-form-1835664162 .af-quirksMode .bodyText {padding-top: 2px; padding-bottom: 2px;}\n","height":"631","width":"393","plPath":"forms.aweber.com","delay":"5","popupURL":"http:\/\/forms.aweber.com\/form\/62\/1835664162.html","formType":"lightbox","animation":"fade in"} ); };
    if (typeof awf_Form_.form != 'undefined') {
        var unique_track = new Image();
        unique_track.src = "http://forms.aweber.com/form/displays.htm?id=jBzMrGxsLIxsTA==";
        loadForm();
    } else {
        var unique_track = new Image();
        unique_track.src = "http://forms.aweber.com/form/displays.htm?id=jBzMrGxsLIxsTA==";
        if (typeof awf_Form_.FormQueue == 'undefined') { awf_Form_.FormQueue = []; }
        awf_Form_.FormQueue.push(loadForm);
    }
    
}    
            
if ((awf_Form_.isPreview || !awf_Form_.getCookie('awpopup_1835664162')) && typeof hide_awf_Form=='undefined') {
    awf_Form_.currDate = new Date();
    awf_Form_.currDate.setTime(awf_Form_.currDate.getTime() + 315360000000); 
    awf_Form_.setCookie('awpopup_1835664162', '1', awf_Form_.currDate, '/', document.domain, 0);
    awf_Form_.showForm();
}
    