﻿function dw(str) { document.write(str); }

function openWindow_ext(url, windowName, windowFeatures) {
    window.open(url, windowName, windowFeatures)
}

function Get_Cookie(c_name) {
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=");
        if (c_start != -1) {
            c_start = c_start + c_name.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) c_end = document.cookie.length;
            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}

function getSiteSpectCookie() {
    var sName = "SSSC_LZ";
    var re = new RegExp(sName + "=[^;]+", "gim");
    var sCookie = document.cookie;
    var sOut = "";
    if (sCookie.match(re)) {
        sOut = String(String(sCookie.match(re)).match(/[^\.]+$/gim));
    }
    return sOut;
}
function fNewsLetterValidateEmail(formObj) {
    var val = formObj.elements["sFtrEmail"] ? formObj.elements["sFtrEmail"].value.replace(/^[ ]+|[ ]+$/gi, "") : "";
    var emailRE = /^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/gi;

    if (val.match(emailRE)) {
        alert("Thank you! You are now subscribed to the LegalZoom newsletter.");
        return "";
    }
    else
        return "Invalid email address try again.";
}
function fNewsletterSignup(item) {
    var err = fNewsLetterValidateEmail(item);
    if (err != "") {
        alert(err);
    } else {
        try {
            cmNewsletterSignupTrackStart(item.action);
        } catch (e) { }
    }
    return err == "";
}

function goto(url) {
    var referLink = document.createElement('a');
    referLink.href = url;
    document.body.appendChild(referLink);
    if (referLink.click) {
        referLink.click();
    } else {
        document.location = url;
    }
}
function newsletterSignupClick(sFieldID, sURL) {
    var bOK = true;
    var oField = document.getElementById(sFieldID);
    var sValue = oField.value;
    var sMailURL = sURL;
    var oForm = {};
    oForm.elements = [];
    oForm.elements[sFieldID] = { value: sValue }
    oForm.getURL = function () { return sURL + "?sEmail=" + escape(sValue) + "&m=1"; }  // force back to the original feild ID.
    oForm.submit = function () {
        var url = this.getURL();
        goto(url);
    }
    oForm.action = oForm.getURL();
    bOK = fNewsletterSignup(oForm);
    if (bOK) {
        sMailURL = oForm.getURL();
        $.ajax({
            url: sMailURL,
            context: document.body,
            success: function (data, textStatus, jqXHR) {
                var mData = data.match(/iSignup=[0-9]+/gim);
                var iStatus = mData ? String(mData).replace(/[^0-9]+/gim, "") : -1;
                if (mData && document.getElementById("nla2") && setNewsLetterSignupContent) {
                    setNewsLetterSignupContent(String(mData));
                }
                if (iStatus == 1) {
                    /*
                    try{
                        var oArea = document.getElementById("bottomNewsletter");
                        var oaLinks = oArea.getElementsByTagName("a");
                        oaLinks[0].style.display = "none";
                        document.getElementById("signUpText").innerHTML = "Thank you for subscribing to our newsletter."
                        document.getElementById("sFtrEmail").style.display = "none";
                    }catch(e){}
                    */
                    oField.value = "";
                }
            }
        });
    }
}

// TEMPORARY Glendale Move - 12/10 1PM (PST) 12/11 2PM (PST) 
function GlendaleClosure() {
    var timeDiff = 0; // Glendale Move
    var dtDate = new Date('1/1/' + (new Date()).getUTCFullYear());
    var intOffset = 10000; //set initial offset high so it is adjusted on the first attempt
    var intMonth;
    for (intMonth = 0; intMonth < 12; intMonth++) {
        dtDate.setUTCMonth(dtDate.getUTCMonth() + 1);

        if (intOffset > (dtDate.getTimezoneOffset() * (-1))) {
            intOffset = (dtDate.getTimezoneOffset() * (-1));
        }
    }
    intOffset = intOffset / 60;
    switch (intOffset) {
        case -5: //Eastern
            timeDiff = 3;
            break;
        case -6: //Central
            timeDiff = 2;
            break;
        case -7: //Mountain (Same as default)
        case -8: //Pacific (Same as default)
        default:
            timeDiff = 0;
    }
    var new_date = new Date();
    var d = new_date.getDate();
    var day = (d < 10) ? '0' + d : d;
    var m = new_date.getMonth() + 1;
    var month = (m < 10) ? '0' + m : m;
    var yy = new_date.getYear();
    var year = (yy < 1000) ? yy + 1900 : yy;
    var currentDate = day + "/" + month + "/" + year;
    var new_time = new Date();
    var currentHour = new_time.getHours() + timeDiff;
    if ((currentDate == '10/12/2010' && currentHour > 12) || (currentDate == '11/12/2010' && currentHour < 14)) {
        return true;
    }
    else {
        return false;
    }
}

//Glendale Closure Temp
var GlendaleClosurePhone0888 = "(800) 773-0888";
var GlendaleClosurePhone7490 = "(800) 962-7490";
if (GlendaleClosure()) {
    GlendaleClosurePhone0888 = "";
    GlendaleClosurePhone7490 = "";
}

//Set the header and footer to the original HUGE version by default
var newHeaderFooter = false;
var testVersion = Get_Cookie('LZ_SPGTEST');
if (testVersion == 'HUGEHomePageV2.Exp1' || testVersion == 'HUGEHomePageV2.Exp2') {
    newHeaderFooter = true;
};

var iStandardDisclaimer = 0;
var iAttorneyAccessDisclaimer = 1;

function getDisclaimer( version ){

  if(version == 1) {
        return "<span class='BottomRow_Text'>*Disclaimer: The information provided is for illustrative purposes only and is not a contract. " + 
                "It is intended to provide general information. Only a plan contract can give actual terms, " + 
                "coverage, amounts, conditions, and exclusions. " + 
                "					<br/><br/>" + 
                "                    <a href='/attorney-access/SE-Pricing.html' target='_blank'>Click Here for the Self Employed Plan Details and Exclusions</a><br />" + 
                "                    <a href='/attorney-access/SB-Pricing.html ' target='_blank'>Click Here for the Small Business Plan Details and Exclusions</a></span>";
  } else if(version == 2) {
        return "<div>Disclaimer<br>Please note that LegalZoom is not a law firm, does not act as your attorney and is not a substitute for the advice of an attorney. Rather, it helps you represent yourself in your own legal matters. If you seek representation, are involved in litigation or have complex legal issues that cannot be resolved on your own, we recommend that you hire an attorney.</div>";
  } else {
    return "<span class='BottomRow_Text'>" +
         "&copy; LegalZoom.com, Inc. All rights reserved.<BR>" +
         "Disclaimer: The information provided in this site is not legal advice, but general information on legal issues commonly encountered.  LegalZoom is not a law firm and is not a substitute for an attorney or law firm.  Communications between you and LegalZoom are protected by our <a href=\"javascript:openWindow_ext( '/privacy-policy-popup.html', '_blank', 'height=700,width=650,scrollbars=1,resizable=1' );\">Privacy Policy</a>, but are not protected by the attorney-client privilege or work product doctrine. LegalZoom cannot provide legal advice and can only provide self-help services at your specific direction. Please note that your access to and use of LegalZoom.com is subject to additional <a href=\"javascript:openWindow_ext( '/terms-of-use.html', '_blank', 'height=700,width=650,scrollbars=1,resizable=1' );\">terms and conditions</a>. LegalZoom.com, Inc. is a registered and bonded legal document assistant, #0104, Los Angeles County (exp. 12/13) and is located at 101 N. Brand Blvd., 11th Floor, Glendale, CA 91203." +
         "</span>";
    }
  
}
function writeDisclaimer( version ){
  dw( getDisclaimer( version ) );
}

/*  ------------------------------------------------------------   HEADER routines start */
var header_useDefaultStyle = 0;
var header_useIndexStyle = 1;
var header_useDefaultStyle_noSearch = 2;
var header_useNoPhone = 3;
var header_useDefaultStyle_noForm = 4;
var header_testHeader = 99;
var footer_testFooter = 88;
var footer_testFooterStiles = 89;
var footer_testFooterBSmith = 90;
var footer_testQuestionnaire = 91;
var footer_testFooterJLong = 92;
var footer_testFooterCSchutte = 93;
var footer_testFooterNoReference = 94;
var footer_testFooterVargos = 95;

//**********BEGIN HEADER**********
function getSecureSigninHeader() {
    var retval = '<script type="text/javascript" src="/lib/jquery-1.4.2.min.js"></script>' +
        '<script type="text/javascript" src="/lib/jquery.tools.min.js"></script>' +
        '<script type="text/javascript" src="/lib/jquery.hoverIntent.minified.js"></script>' +
        '<script type="text/javascript" src="/lib/js_megaHover.js"></script>' +
        '<script type="text/javascript" src="/lib/jq_misc.js"></script>' +
        '<link rel="stylesheet" type="text/css" href="/lib/css_legalzoom_hugev2.css" />' +
        '<noscript><style>#personalSub, #businessSub {display:show;}</style></noscript>' +
        '<div id="headerDiv"><a href="/"><img src="/img/LZ_logos/legalzoom_logo_site_upper_left.gif" /></a></div>';        
    document.write(retval);
}

function getPageHeader() {
    var retval = "";

    //Glendale Closure Temp
    var HugeGlendaleClosurePhone0888 = "Speak to a Customer Care Specialist: <span id=\"headerPhoneNumber\">(800) 773-0888</span>";
    var HugeGlendaleClosurePhone7490 = "Speak to a Customer Care Specialist: <span id=\"headerPhoneNumber\">(800) 962-7490</span>";
    var SpanishPhone7726 = "Nuestro Servicio al Cliente est� a la orden: <span id=\"headerPhoneNumber\">(888) 593-7726</span>";

    if (GlendaleClosure()) {
        HugeGlendaleClosurePhone0888 = "";
        HugeGlendaleClosurePhone7490 = "";
    }

    var phone = HugeGlendaleClosurePhone0888;
    if (typeof (iProcess) != "undefined") {
        if ((iProcess == 126) || (iProcess == 127) || (iProcess == 128)) {
            phone = SpanishPhone7726;
        }
        else {
            if (typeof (showHeaderIndex) != "undefined") {
                if (showHeaderIndex) {
                    phone = HugeGlendaleClosurePhone7490;
                }
            }
        }
    }

    retval += '<script type="text/javascript" src="/lib/jquery-1.4.2.min.js"></script>' +
        '<script type="text/javascript" src="/lib/jquery.tools.min.js"></script>' +
        '<script type="text/javascript" src="/lib/jquery.hoverIntent.minified.js"></script>' +
        '<script type="text/javascript" src="/lib/js_megaHover.js"></script>' +
        '<script type="text/javascript" src="/lib/jq_misc.js"></script>' +
        '<link rel="stylesheet" type="text/css" href="/lib/css_legalzoom_hugev2.css" />' +
        '<noscript><style>#personalSub, #businessSub {display:show;}</style></noscript>' +
   '<div id="headerDiv">' +
        '<span id="headerTextDiv">' +
            '<span id="headerContactUs"><a href="/customer-support/customer-support.html">Contact Us</a> <span class="greyPipe">|</span> <a href="/members/my_account.asp" name="Top Check Order Status">Check Order Status</a> <span class="greyPipe">|</span> <a href="/members/my_account.asp" name="Top Log In">My Account</a></span><br />' +
            '' + phone + '' +
        '</span>' +
        '<a href="/"><img src="/img/LZ_logos/legalzoom_logo_site_upper_left.gif" alt="" /></a>' +
        '<span id="navmenu"><!--This is here to prevent errors in IE because of legacy navigation.  Once the site is redesigned, this span should go away.--></span>' +

        '<div id="navigationDiv">' +
            '<ul id="topnav" style="position:absolute;width:770px">' +
               ' <li id="homeLink"> ' +
                    '<a href="/" class="services"><img src="/img/home/homeIcon.png" /></a> ' +
                '</li> ' +
                '<li>' +
                      '<a href="#" class="services" style="width:151px;"><img src="/img/nav/subNavPersonal.png" /></a>' +
                    '<div class="sub" id="personalSub">' +
                        '<div class="navDropArrow"><img src="/img/sprites/hugeSprites.png" style="margin-top: -221px; margin-left:-617px;border:none" /></div>' +
                            '<ul> ' +
                                '<li><a name="TopNav - Last Will and Testament" href="/legal-wills/wills-overview.html">Last Will and Testament</a></li> ' +
                                '<li><a name="TopNav - Living Trust" href="/living-trusts/living-trusts-overview.html">Living Trust</a></li> ' +
                                '<li><a name="TopNav - Living Will" href="/living-wills/living-wills-overview.html">Living Will</a></li> ' +
                                '<li><a name="TopNav - Power of Attorney" href="/power-of-attorney/power-of-attorney-overview.html">Power of Attorney</a></li> ' +
                                '<li><a name="TopNav - Pet Protection" href="/pet-trust-agreement/pet-protection-overview.html">Pet Protection Agreement</a></li> ' +
                                '<li class="navBottomRow"><a name="TopNav - Other Legal Forms" href="/legalforms/home.html">Other Legal Forms</a></li>' +
                            '</ul> ' +
                            '<ul> ' +
                                '<li><a name="TopNav - Divorce" href="/legal-divorce/divorce-overview.html">Divorce</a></li> ' +
                                '<li><a name="TopNav - Bankruptcy" href="/bankruptcy/bankruptcy-overview.html">Bankruptcy</a></li> ' +
                                '<li><a name="TopNav - Name Change" href="/legal-name-change/name-change-overview.html">Name Change</a></li> ' +
                                '<li><a name="TopNav - Real Estate Lease" href="/real-estate-leases/real-estate-leases-overview.html">Real Estate Lease</a></li> ' +
                                '<li><a name="TopNav - Real Estate Deed Transfer" href="/real-estate-deed-transfer/real-estate-deed-transfer-overview.html">Real Estate Deed Transfer</a></li> ' +
                                '<li class="navBottomRow"><a name="TopNav - Prenuptial Agreements" href="/prenuptial/prenuptial-overview.html">Prenuptial Agreements</a></li>' +
                            '</ul> ' +
                        '<div class="navFAQ"><span>FAQ | </span><a style="background-color:#f9f9f9" name="TopNav - How do I choose between Wills and Trusts" href="/wills-estate-planning/summary-compare-wills.html">How do I choose between Wills &amp; Trusts?</a></div>' +
                    '</div>' +
                '</li>' +
                '<li>' +
                      '<a href="#" class="services" style="width:154px;"><img src="/img/nav/subNavBusiness.png" /></a>' +
                    '<div class="sub" id="businessSub">' +
                        '<div class="navDropArrow"><img src="/img/sprites/hugeSprites.png" style="margin-top: -221px; margin-left:-617px;border:none" /></div>' +
                            '<ul>' +
                                '<li><a name="TopNav - LLC" href="/limited-liability-company/limited-liability-company-overview.html">LLC (Limited Liability Company)</a></li>' +
                                '<li><a name="TopNav - Incorporation" href="/legal-incorporation/incorporation-overview.html">Incorporation (S-Corp, C-Corp)</a></li>' +
                                '<li><a name="TopNav - DBA/Business Names" href="/legal-dba/dba-doing-business-as-overview.html">DBA/Business Names</a></li>' +
                                '<li><a name="TopNav - Non-Profit" href="/non-profits/non-profit-corporation-overview.html">Non-Profit</a></li>' +
                                '<li class="navBottomRow"><a name="TopNav - Partnership Agreements" href="/partnership-agreement/partnership-agreement-overview.html">Partnership Agreements</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Partnership Agreements" rel="nofollow" href="http://www.businesslicenses.com/incorporators.php?hash=432-b8c722d256fccc3f68d7d1184bfbcfe2&return=lz_blcp_73008">Business Licenses</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Bylaws & Resolutions" href="/additional-business-services/stand-alone-bylaws-resolutions.html">Bylaws &amp; Resolutions</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Certificate of Good Standing" href="/additional-business-services/certificates-of-good-standing.html">Certificate of Good Standing</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Certified Copies" href="/additional-business-services/certified-copies.html">Certified Copies</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Compliance Calendar" href="/additional-business-services/compliance-calendar-services.html">Compliance Calendar</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Conversion" href="/additional-business-services/conversion-between-llc-corporation.html">Conversion</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Corporate Minutes" href="/additional-business-services/corporate-minutes.html">Corporate Minutes</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Corporate Supplies" href="/additional-business-services/corporate-supplies.html">Corporate Supplies</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Entity Name Availability Check" href="/additional-business-services/entity-name-check.html">Entity Name Availability Check</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - Entity Name Reservation" href="/additional-business-services/entity-name-reservation.html">Entity Name Reservation</a></li>' +
                            '</ul>' +
                            '<ul> ' +
                                '<li><a name="TopNav - Annual Reports" href="/additional-business-services/annual-reports.html">Annual Reports</a></li>' +
                                '<li><a name="TopNav - Corporate Dissolution" href="/additional-business-services/articles-of-dissolution-corporation-llc.html">Corporate Dissolution</a></li>' +
                                '<li><a name="TopNav - Forms and Agreements" href="/legalforms/home.html">Forms and Agreements</a></li> ' +
                                '<li><a name="TopNav - 501(c)(3) Preparation" href="/501c3/501c3-application-overview.html">501(c)(3) Application</a></li>' +
                                '<li><a name="TopNav - Amendment" href="/additional-business-services/articles-of-amendment-corporation-llc.html">Amendment</a></li>' +
                                '<li class="navBottomRow topNavMoreLink"><a href="#">More</a></li>' +
                                '<li class="displayNone"><a name="TopNav - EIN Obtainment" href="/additional-business-services/ein-federal-tax-identification-number.html">EIN Obtainment</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Foreign Qualification" href="/additional-business-services/foreign-qualifications-for-business.html">Foreign Qualification</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Joint Venture Agreement" href="/joint-venture/joint-venture-overview.html">Joint Venture Agreement</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Limited Liability Partnership" href="/limited-liability-partnerships/limited-liability-partnership-overview.html">Limited Liability Partnership</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Limited Partnership" href="/limited-partnerships/limited-partnership-overview.html">Limited Partnership</a></li>            ' +
                                '<li class="displayNone"><a name="TopNav - Operating Agreements" href="/additional-business-services/stand-alone-operating-agreements.html">Operating Agreements</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Registered Agent Services" href="/additional-business-services/registered-agent-services.html">Registered Agent Services</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Seller\'s Permit" href="/additional-business-services/sellers-permit.html">Seller\'s Permit</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - State Tax ID" href="/additional-business-services/state-tax-id.html">State Tax ID</a></li>' +
                            '</ul>' +
                        '<div class="navFAQ"><span>FAQ | </span><p><a style="background-color:#f9f9f9" name="TopNav - How do I choose between Incorporations and LLCs" href="/business-formations/summary-compare-business-formations.html">How do I choose between Corporations &amp; LLCs?</a></p></div>' +
                    '</div>' +
                '</li>' +
                '<li>' +
                      '<a href="#" class="services" style="width:232px;"><img src="/img/nav/subNavTPC.png" /></a>' +
                    '<div class="sub" id="businessSub">' +
                        '<div class="navDropArrow"><img src="/img/sprites/hugeSprites.png" style="margin-top: -221px; margin-left:-617px;border:none" /></div>' +
                            '<ul>' +
                                '<li><a name="TopNav - Trademarks" href="/trademarks/trademarks-overview.html">Trademarks</a></li>' +
                                '<li><a name="TopNav - Copyright" href="/legal-copyrights/copyrights-overview.html">Copyright</a></li>' +
                                '<li class="navBottomRow"><a name="TopNav - Patents" href="/trademarks-patents-copyrights/patent-overview.html">Patents</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Provisional Applicaton for Patent" href="/patents/provisional-patent-application-overview.html">Provisional Application for Patent</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Professional Patent Drawings" href="/patent-drawings/patent-drawings-overview.html">Professional Patent Drawings</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Utility Patent" href="/utility-patents/utility-patents-overview.html">Utility Patent</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Utility Patent Step II" href="/utility-patents/utility-patents-pricing2.html">Utility Patent Step II</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Design Patent" href="/design-patents/design-patents-overview.html">Design Patent</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - Other Legal Forms" href="/legalforms/home.html">Other Legal Forms</a></li>' +
                            '</ul>' +
                            '<ul> ' +
                                '<li><a name="TopNav - Trademark Search" href="/trademark-search/trademark-search-overview.html">Trademark Search</a></li>' +
                                '<li><a name="TopNav - Patent Search" href="/patent-search/patent-search-overview.html">Patent Search</a></li>' +
                                '<li class="navBottomRow topNavMoreLink"><a href="#">More</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Assignment Recordation" href="/trademarks-assignment/trademarks-assignment-overview.html">Trademark Assignment Recordation</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Monitoring" href="/trademark-monitoring/trademark-monitoring-overview.html">Trademark Monitoring</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Section 8 Declaration" href="/trademarks-section8-declaration/trademarks-section8-declaration-overview.html">Trademark Section 8 Declaration</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Section 9 Renewal" href="/trademarks-section9-renewal/trademarks-section9-renewal-overview.html">Trademark Section 9 Renewal</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Statement of Use" href="/trademarks-statement-of-use/trademarks-statement-of-use-overview.html">Trademark Statement of Use</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - Trademark Statement of Use Extension" href="/tm-statement-of-use-extension/trademarks-statement-of-use-extension-overview.html">Trademark Statement of Use Extension</a></li>' +
                            '</ul>' +
                            '<div class="navFAQ"><span>FAQ | </span><p><a style="background-color:#f9f9f9" name="TopNav - How do I choose between Trademarks and Copyrights" href="/trademarks-patents-copyrights/compare-documents.html">How do I choose between Trademarks &amp; Copyrights?</a></p></div> ' +
                        '</div> ' +
                '</li>' +
            '<li style="float:right;"><div id="topSearch">' +
            '<script type="text/javascript" language="javascript">function doSearch() { var searchBox = document.getElementById("q"); if(searchBox) { window.location.href ="/search.aspx?q=" + searchBox.value; }  }</script>' +
                '<span style="cursor:pointer; height:24px; overflow:hidden; width:29px; float:right;">' +
                    '<img id="topNavSearchButton" type="image" src="/img/sprites/hugeSprites.png" style="margin-top: -54px; margin-left:-616px;" border="0" onclick="doSearch()" />' +
                '</span>' +
                '<input type="text" name="q" id="q" size="10" class="TopMenu_Link" style="vertical-align:bottom;float:right;border:none;border-color: transparent;line-height:24px;height:24px;padding-left:10px;vertical-align:middle;font-size:14px;color:#000;">' +
            '</div></li>' +
            '</ul> ' +
        '</div><!--End navigationDiv-->' +
    '</div><!--End headerDiv-->';
    return retval;
//END DEFAULT HEADER
} 



//**********BEGIN TEST HEADER**********
function getTestPageHeader() {
    var retval = "";

    //Glendale Closure Temp
    var HugeGlendaleClosurePhone0888 = "Speak to a Customer Care Specialist: <span id=\"headerPhoneNumber\">(800) 773-0888</span>";
    var HugeGlendaleClosurePhone7490 = "Speak to a Customer Care Specialist: <span id=\"headerPhoneNumber\">(800) 962-7490</span>";
    var SpanishPhone7726 = "Nuestro Servicio al Cliente est� a la orden: <span id=\"headerPhoneNumber\">(888) 593-7726</span>";

    if (GlendaleClosure()) {
        HugeGlendaleClosurePhone0888 = "";
        HugeGlendaleClosurePhone7490 = "";
    }

    var phone = HugeGlendaleClosurePhone0888;
    if (typeof (iProcess) != "undefined") {
        if ((iProcess == 126) || (iProcess == 127) || (iProcess == 128)) {
            phone = SpanishPhone7726;
        }
        else {
            if (typeof (showHeaderIndex) != "undefined") {
                if (showHeaderIndex) {
                    phone = HugeGlendaleClosurePhone7490;
                }
            }
        }
    }

    retval += '<script type="text/javascript" src="/lib/jquery-1.4.2.min.js"></script>' +
        '<script type="text/javascript" src="/lib/jquery.tools.min.js"></script>' +
        '<script type="text/javascript" src="/lib/jquery.hoverIntent.minified.js"></script>' +
        '<script type="text/javascript" src="/lib/js_megaHover.js"></script>' +
        '<script type="text/javascript" src="/lib/jq_misc.js"></script>' +
        '<script type="text/javascript" src="/lib/js_customerService_phoneHours.js"></script>' +
        '<script type="text/javascript" src="/lib/js_utils.js"></script>' +
        '<link rel="stylesheet" type="text/css" href="/lib/css_subPages.css" />' +
        '<noscript><style>#personalSub, #businessSub {display:show;}</style></noscript>' +
    '<div id="headerDiv">' +
        '<span id="headerTextDiv">' +
            '<span id="headerContactUs">' +
                '<a href="/customer-support/customer-support.html">Contact Us</a> ' +
                '<span class="greyPipe">|</span> ' +
                '<a href="/members/my_account.asp" id="home-page-check-order" name="Check%20Order%20Status-_-Top%20Text-_-Membership">Check Order Status</a> ' +
                '<span class="greyPipe">|</span> ' +
                '<a href="/members/my_account.asp" id="home-page-my-account" name="My%20Account-_-Top%20Text-_-Membership">My Account</a>' +
                '<span class="greyPipe">|</span> ' +
                '<a href="#" onclick="javascript:window.open(\'/satisfaction-guarantee.html\',\'guarantee\',\'width=650,height=700\')" id="" name="Satisfaction%20Guarantee-_-Top%20Text">Our Satisfaction Guarantee</a>' +
            '</span><br />' + phone +
        '</span>' +
        '<a href="/" name="TopLogo - Home"><img src="/img/LZ_logos/legalzoom_logo_site_upper_left.gif" alt="" /></a>' +
        '<span id="navmenu"><!--This is here to prevent errors in IE because of legacy navigation.  Once the site is redesigned, this span should go away.--></span>' +
            '<div id="navigationDiv"> ' +
                '<ul id="topnav"> ' +
                    '<li id="homeLink"> ' +
                        '<a name="TopNav - Home" href="/" class="services"><img src="/img/home/homeIcon.png" /></a> ' +
                    '</li> ' +
                    '<li> ' +
                        '<a href="#" class="services" style="width:172px;"><img src="/img/home/navPersonal.png" /></a> ' +
                        '<div class="sub" id="personalSub"> ' +
                            '<div class="navDropArrow"><img src="/img/sprites/homeSprites.png" style="margin-top: -221px; margin-left:-617px;border:none" /></div> ' +
                          '<ul> ' +
                                '<li><a name="TopNav - Last Will and Testament" href="/legal-wills/wills-overview.html">Last Will and Testament</a></li> ' +
                                '<li><a name="TopNav - Living Trust" href="/living-trusts/living-trusts-overview.html">Living Trust</a></li> ' +
                                '<li><a name="TopNav - Living Will" href="/living-wills/living-wills-overview.html">Living Will</a></li> ' +
                                '<li><a name="TopNav - Power of Attorney" href="/power-of-attorney/power-of-attorney-overview.html">Power of Attorney</a></li> ' +
                                '<li><a name="TopNav - Pet Protection" href="/pet-trust-agreement/pet-protection-overview.html">Pet Protection Agreement</a></li> ' +
                                '<li class="navBottomRow"><a name="TopNav - Other Legal Forms" href="/legalforms/home.html">Other Legal Forms</a></li>' +
                            '</ul> ' +
                            '<ul> ' +
                                '<li><a name="TopNav - Divorce" href="/legal-divorce/divorce-overview.html">Divorce</a></li> ' +
                                '<li><a name="TopNav - Bankruptcy" href="/bankruptcy/bankruptcy-overview.html">Bankruptcy</a></li> ' +
                                '<li><a name="TopNav - Name Change" href="/legal-name-change/name-change-overview.html">Name Change</a></li> ' +
                                '<li><a name="TopNav - Real Estate Lease" href="/real-estate-leases/real-estate-leases-overview.html">Real Estate Lease</a></li> ' +
                                '<li><a name="TopNav - Real Estate Deed Transfer" href="/real-estate-deed-transfer/real-estate-deed-transfer-overview.html">Real Estate Deed Transfer</a></li> ' +
                                '<li class="navBottomRow"><a name="TopNav - Prenuptial Agreements" href="/prenuptial/prenuptial-overview.html">Prenuptial Agreements</a></li>' +
                            '</ul> ' +
'                             <div class="navFAQ"><span>FAQ | </span><a style="background-color:#f9f9f9" name="TopNav - How do I choose between Wills and Trusts" href="/wills-estate-planning/summary-compare-wills.html">How do I choose between Wills &amp; Trusts?</a><div style="height:11px;width:8px;overflow:hidden;float:left;margin-top:3px;margin-left:20px;"><img src="/img/sprites/homeSprites.png" style="margin-top: -69px; margin-left:-80px;border:none" /></div></div> ' +
                        '</div> ' +
                    '</li> ' +
                    '<li> ' +
                        '<a href="#" class="services" style="width:174px;"><img src="/img/home/navBusiness.png" /></a> ' +
                        '<div class="sub" id="businessSub"> ' +
                            '<div class="navDropArrow"><img src="/img/sprites/homeSprites.png" style="margin-top: -221px; margin-left:-617px;border:none" /></div> ' +
                            '<ul>' +
                                '<li><a name="TopNav - LLC" href="/limited-liability-company/limited-liability-company-overview.html">LLC (Limited Liability Company)</a></li>' +
                                '<li><a name="TopNav - Incorporation" href="/legal-incorporation/incorporation-overview.html">Incorporation (S-Corp, C-Corp)</a></li>' +
                                '<li><a name="TopNav - DBA/Business Names" href="/legal-dba/dba-doing-business-as-overview.html">DBA/Business Names</a></li>' +
                                '<li><a name="TopNav - Non-Profit" href="/non-profits/non-profit-corporation-overview.html">Non-Profit</a></li>' +
                                '<li class="navBottomRow"><a name="TopNav - Partnership Agreements" href="/partnership-agreement/partnership-agreement-overview.html">Partnership Agreements</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Business Licenses" rel="nofollow" href="http://www.businesslicenses.com/incorporators.php?hash=432-b8c722d256fccc3f68d7d1184bfbcfe2&return=lz_blcp_73008">Business Licenses</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Bylaws & Resolutions" href="/additional-business-services/stand-alone-bylaws-resolutions.html">Bylaws &amp; Resolutions</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Certificate of Good Standing" href="/additional-business-services/certificates-of-good-standing.html">Certificate of Good Standing</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Certified Copies" href="/additional-business-services/certified-copies.html">Certified Copies</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Compliance Calendar" href="/additional-business-services/compliance-calendar-services.html">Compliance Calendar</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Conversion" href="/additional-business-services/conversion-between-llc-corporation.html">Conversion</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Corporate Minutes" href="/additional-business-services/corporate-minutes.html">Corporate Minutes</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Corporate Supplies" href="/additional-business-services/corporate-supplies.html">Corporate Supplies</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Entity Name Availability Check" href="/additional-business-services/entity-name-check.html">Entity Name Availability Check</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - Entity Name Reservation" href="/additional-business-services/entity-name-reservation.html">Entity Name Reservation</a></li>' +
                            '</ul>' +
                            '<ul> ' +
                                '<li><a name="TopNav - Annual Reports" href="/additional-business-services/annual-reports.html">Annual Reports</a></li>' +
                                '<li><a name="TopNav - Corporate Dissolution" href="/additional-business-services/articles-of-dissolution-corporation-llc.html">Corporate Dissolution</a></li>' +
                                '<li><a name="TopNav - Forms and Agreements" href="/legalforms/home.html">Forms and Agreements</a></li> ' +
                                '<li><a name="TopNav - 501(c)(3) Preparation" href="/501c3/501c3-application-overview.html">501(c)(3) Application</a></li>' +
                                '<li><a name="TopNav - Amendment" href="/additional-business-services/articles-of-amendment-corporation-llc.html">Amendment</a></li>' +
                                '<li class="navBottomRow topNavMoreLink"><a href="#">More</a></li>' +
                                '<li class="displayNone"><a name="TopNav - EIN Obtainment" href="/additional-business-services/ein-federal-tax-identification-number.html">EIN Obtainment</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Foreign Qualification" href="/additional-business-services/foreign-qualifications-for-business.html">Foreign Qualification</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Joint Venture Agreement" href="/joint-venture/joint-venture-overview.html">Joint Venture Agreement</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Limited Liability Partnership" href="/limited-liability-partnerships/limited-liability-partnership-overview.html">Limited Liability Partnership</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Limited Partnership" href="/limited-partnerships/limited-partnership-overview.html">Limited Partnership</a></li>            ' +
                                '<li class="displayNone"><a name="TopNav - Operating Agreements" href="/additional-business-services/stand-alone-operating-agreements.html">Operating Agreements</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Registered Agent Services" href="/additional-business-services/registered-agent-services.html">Registered Agent Services</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Seller\'s Permit" href="/additional-business-services/sellers-permit.html">Seller\'s Permit</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - State Tax ID" href="/additional-business-services/state-tax-id.html">State Tax ID</a></li>' +
                            '</ul>' +
                            '<div class="navFAQ"><span>FAQ | </span><p><a style="background-color:#f9f9f9" name="TopNav - How do I choose between Incorporations and LLCs" href="/business-formations/summary-compare-business-formations.html">How do I choose between Corporations &amp; LLCs?</a></p><div style="height:11px;width:8px;overflow:hidden;float:left;margin-top:3px;margin-left:10px;"><img src="/img/sprites/homeSprites.png" style="margin-top: -69px; margin-left:-80px;border:none" /></div></div> ' +
                        '</div> ' +
                    '</li>' +
                    '<li> ' +
                        '<a href="#" class="services" style="width:267px;"><img src="/img/home/navTPC.png" /></a> ' +
                        '<div class="sub" id="tpcSub"> ' +
                            '<div class="navDropArrow"><img src="/img/sprites/homeSprites.png" style="margin-top: -221px; margin-left:-617px;border:none" /></div> ' +
                             '<ul>' +
                                '<li><a name="TopNav - Trademarks" href="/trademarks/trademarks-overview.html">Trademarks</a></li>' +
                                '<li><a name="TopNav - Copyright" href="/legal-copyrights/copyrights-overview.html">Copyright</a></li>' +
                                '<li class="navBottomRow"><a name="TopNav - Patents" href="/trademarks-patents-copyrights/patent-overview.html">Patents</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Provisional Application for Patent" href="/patents/provisional-patent-application-overview.html">Provisional Application for Patent</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Professional Patent Drawings" href="/patent-drawings/patent-drawings-overview.html">Professional Patent Drawings</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Utility Patent" href="/utility-patents/utility-patents-overview.html">Utility Patent</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Utility Patent Step II" href="/utility-patents/utility-patents-pricing2.html">Utility Patent Step II</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Design Patent" href="/design-patents/design-patents-overview.html">Design Patent</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - Other Legal Forms" href="/legalforms/home.html">Other Legal Forms</a></li>' +
                            '</ul>' +
                            '<ul> ' +
                                '<li><a name="TopNav - Trademark Search" href="/trademark-search/trademark-search-overview.html">Trademark Search</a></li>' +
                                '<li><a name="TopNav - Patent Search" href="/patent-search/patent-search-overview.html">Patent Search</a></li>' +
                                '<li class="navBottomRow topNavMoreLink"><a href="#">More</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Assignment Recordation" href="/trademarks-assignment/trademarks-assignment-overview.html">Trademark Assignment Recordation</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Monitoring" href="/trademark-monitoring/trademark-monitoring-overview.html">Trademark Monitoring</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Section 8 Declaration" href="/trademarks-section8-declaration/trademarks-section8-declaration-overview.html">Trademark Section 8 Declaration</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Section 9 Renewal" href="/trademarks-section9-renewal/trademarks-section9-renewal-overview.html">Trademark Section 9 Renewal</a></li>' +
                                '<li class="displayNone"><a name="TopNav - Trademark Statement of Use" href="/trademarks-statement-of-use/trademarks-statement-of-use-overview.html">Trademark Statement of Use</a></li>' +
                                '<li class="displayNone navBottomRowExpanded"><a name="TopNav - Trademark Statement of Use Extension" href="/tm-statement-of-use-extension/trademarks-statement-of-use-extension-overview.html">Trademark Statement of Use Extension</a></li>' +
                            '</ul>' +
                            '<div class="navFAQ"><span>FAQ | </span><p><a style="background-color:#f9f9f9" name="TopNav - How do I choose between Trademarks and Copyrights" href="/trademarks-patents-copyrights/compare-documents.html">How do I choose between Trademarks &amp; Copyrights?</a></p><div style="height:11px;width:8px;overflow:hidden;float:left;margin-top:3px;margin-left:10px;"><img src="/img/sprites/homeSprites.png" style="margin-top: -69px; margin-left:-80px;border:none" /></div></div> ' +
                        '</div> ' +
                    '</li> ' +
                '<li style="float:right;"><div id="topSearch"> ' +
                '<script type="text/javascript" language="javascript">' +
                    'function doSearch() {' +
                        'var searchBox = document.getElementById("q");' +
                        'if (searchBox) { window.location.href = "/search.aspx?q=" + searchBox.value;}' +
                    '}' +
                '</script> ' +
                    '<span style="cursor:pointer; height:24px; overflow:hidden; width:29px; float:right;"> ' +
                        '<img id="topNavSearchButton" type="image" src="/img/sprites/homeSprites.png" style="margin-top: -54px; margin-left:-616px;" border="0" onclick="doSearch()" /> ' +
                    '</span> ' +
                    '<input type="text" name="q" id="q" size="20" class="TopMenu_Link" style="vertical-align:bottom;float:right;border:none;border-color: transparent;line-height:24px;height:24px;padding-left:10px;vertical-align:middle;font-size:14px;color:#000;"> ' +
                '</div></li> ' +
                '</ul> ' +
            '</div><!--End navigationDiv--> ' +
    '</div><!--End headerDiv-->' ;
    return retval;
}

//**********END TEST HEADER**********
var user_status = "";
function writeDotomiTag(){
  try{
    var sCookie = String( document.cookie );
    var reTimeString = /TIMESTRING=[^;]+/gim;
    var mTimeString = sCookie.match( reTimeString );

    user_status = mTimeString? "Existing": "New";
  } catch( e ){}  
  var dtmtag = window.location.protocol + "//a248." + (window.location.protocol == "http:" ? "g" : "e") + ".akamai.net/7/248/14564/20080403/dotomi.download.akamai.com/14564/rules/2217/dtmtag.js";

  document.write('<scr'+'ipt type="text/javascript" src="' + dtmtag + '"></scr'+'ipt>');
}

function writeConvertroTag()
{
    document.write(unescape('%3Cscript src="' + document.location.protocol + '//d1ivexoxmp59q7.cloudfront.net/legalzoom/live.js" type="text/javascript"%3E%3C/script%3E'));
}




function writeHeader(headerStyle) {
    if (headerStyle == 99) {
        dw(getTestPageHeader());
    } else {
        dw(getPageHeader());
    }
    writeDotomiTag();
    writeConvertroTag();
}





/*  ------------------------------------------------------------   HEADER routines end */

/*  ------------------------------------------------------------   Footer routines begin */
function getPageFooter(iDisclaimer, iPart) {
    
    //Date picker for bottom nav
    var d = new Date();
    var month = new Array(12);
    month[0] = "January";
    month[1] = "February";
    month[2] = "March";
    month[3] = "April";
    month[4] = "May";
    month[5] = "June";
    month[6] = "July";
    month[7] = "August";
    month[8] = "September";
    month[9] = "October";
    month[10] = "November";
    month[11] = "December";
    var monthAbbrev = new Array(12);
    monthAbbrev[0] = "jan";
    monthAbbrev[1] = "feb";
    monthAbbrev[2] = "mar";
    monthAbbrev[3] = "apr";
    monthAbbrev[4] = "may";
    monthAbbrev[5] = "jun";
    monthAbbrev[6] = "jul";
    monthAbbrev[7] = "aug";
    monthAbbrev[8] = "sep";
    monthAbbrev[9] = "oct";
    monthAbbrev[10] = "nov";
    monthAbbrev[11] = "dec";

    // disclaimer popup for questionnaire and PL
    var DisclaimerWindowPopup = "";
    try {
        if (location.pathname.toLowerCase().indexOf("/lzweb/") != -1 || location.pathname.toLowerCase().indexOf("/brainnet/") != -1) {
            DisclaimerWindowPopup = "";
        }
    }
    catch (e) {
    }
    

    sHTML = '';
    sHTML += '<style>' +
    'input, p, div, a, img, span {margin:0;padding:0;font-family:arial;outline: none;}' +
    'body {width:800px;margin:0 auto;}' +
    'img {border: 0;}' +
    '#footerDiv{height:179px;max-height:179px;background-color:#3e93eb;padding-right:20px;}' +
	'#footerDiv a {text-decoration:none; color:#fff;}' +
	'#bottomNav {float:left;text-align:left;}' +
		'#bottomNav ul {float:left;font-size:11px;color:#fff;margin:25px;background:none;list-style:none;list-style-type:none;list-style-image:none;padding:0;}' +
		'#bottomNav ul li {margin-bottom:3px;background:none;list-style:none;list-style-type:none;list-style-image:none;padding:0;}' +
		'.footerSepHor{height:100px;width:1px;border-right:1px solid #6a9ee9;float:left;margin-top:30px;}' +
	'#bottomLinks {float:right;margin-top:30px;border-bottom:1px solid #6a9ee9;margin-bottom:15px;}' +
		'#socialMedia {float:left;}' +
			'.facebook, .twitter {height:25px;width:100px;overflow:hidden;display:block}' +
		'#customerSecurity {float:left;margin-left:50px;}' +
			'.verisign, .mcafee {height:60px;width:100px;overflow:hidden;display:block;float:left;}' +
			'.satisfaction {height:60px;width:140px;overflow:hidden;display:block;float:left;}' +
	'#bottomNewsletter{ height:50px;color:#fff;float:right;width:450px;}		' +
		'#signUpText {float:right;margin-right:20px;vertical-align:middle;margin-top:3px;font-size:12px;}' +
		'#sFtrEmail{vertical-align:bottom;float:right;border:none;border-color: transparent;line-height:26px;height:26px;padding-left:10px;vertical-align:middle;}' +
		'#previewLink {clear:both;text-align:right;padding-top:5px;font-size:12px;line-height:12px;}' +
		'#previewLink img {margin-left:10px;vertical-align:middle;}' +
    '#disclaimerDiv{ width:75%;float:left;font-size:11px;color:#333;margin:10px 0px 10px 20px;}' +
    '#disclaimerLinks {float:right;margin-right:20px;font-size:11px;margin-top:25px;line-height:20px;}' +
    '#OverallContainer {background-color:#fff;}' +
    '.white {background-color:#fff;}' +
    '</style>' +
    '<script type="text/javascript" src="/lib/jQuery_footer_background_fix.js"></script>' +

 '<div id="footerDiv">' +
    '<div id="bottomNav">' +
        '<ul class="footerUL">' +
            '<li class="footerLI"><a href="/about-us">About Us</a></li>' +
            '<li><a href="/customer-support/contact-us.html">Contact Us</a></li>' +
            '<li><a href="/careers">Careers</a></li>' +
            '<li><a href="/press">Press</a></li>' +
            '<li><a href="http://legalzoom.directtrack.com/" rel="nofollow">Affiliate</a></li>' +
            '<li><a href="/site-map.html">Sitemap</a></li>' +
        '</ul>' +
        '<div class="footerSepHor"></div>' +
        '<ul>' +
            '<li><a href="/education-center/education-center-index.html">Education Center</li>' +
            '<li><a href="/videos">Video Center</li>' +
            '<li><a href="http://info.legalzoom.com/">Legal Info</li>' +
            '<li><a href="/business-formations/summary-compare-business-formations.html">Incorporation vs. LLC</li>' +
            '<li><a href="/wills-estate-planning/summary-compare-wills.html">Wills vs. Living Trusts</li>' +
            '<li><a href="/trademarks-patents-copyrights/summary-compare-trademark-copyright.html">Trademark vs. Copyright</li>' +
            '<li><a href="http://businessresources.legalzoom.com/">Small Business Resources</li>' +
        '</ul>' +
        '<div class="footerSepHor"></div>' +
    '</div>' +
    '<div id="bottomLinks">' +
        '<div id="socialMedia">' +
            '<a rel="nofollow" href="http://www.twitter.com/LegalZoom/" target="connect" class="twitter"><img src="/img/sprites/homeSprites.png" style="margin-top: -340px; margin-left:-180px;border:none"></a>' +
            '<a rel="nofollow" href="http://www.facebook.com/LegalZoom/" target="connect" class="facebook"><img src="/img/sprites/homeSprites.png" style="margin-top: -370px; margin-left:-179px;border:none"></a>' +
        '</div>' +
        '<div id="customerSecurity">' +
            '<span class="mcafee"><img src="/img/sprites/homeSprites.png" style="margin-top: -347px; margin-left:-395px;border:none;visibility:hidden;"></span>' +
            '<a href="javascript:openWindow_ext(\'https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.LEGALZOOM.COM&lang=en\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\');" rel="nofollow" class="verisign"><img src="/img/sprites/homeSprites.png" style="margin-top: -347px; margin-left:-287px;border:none"></a>' +
            '<a href="javascript:openWindow_ext(\'/satisfaction-guarantee.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\');"><img src="/img/nav/satisfactionGuarantee.png" style="height:"></a>' +
        '</div>' +
    '</div>' +
    '<div id="bottomNewsletter">' +
            '<span style="height:26px; overflow:hidden; width:62px; float:right;">' +
                '<a href="javascript:void(0)" id="newsletterSignupLink" onclick="newsletterSignupClick(\'sFtrEmail\', \'/LZWeb/Handlers/subscribenewsletter.ashx\')"><img src="/img/sprites/hugeSprites.png" style="margin-top: -220px; margin-left:-387px;" border=0 /></a>' +
            '</span>' +
            '<input type="text" name="sFtrEmail" id="sFtrEmail" size="15">' +
            '<p id="signUpText">SIGN-UP FOR OUR NEWSLETTER</p>' +
        '<div id="previewLink">' +
            '<p style="float:right;"><a href="javascript:openWindow_ext(\'http://www.legalzoom.com/newsletters/' + d.getFullYear() + '/' + monthAbbrev[d.getMonth()] + '\',\'_blank\',\'height=700,width=745,scrollbars=1,resizable=1\');">See the ' + month[d.getMonth()] + ' Issue<img src="/img/home/orangeArrowRight.png" border="0" /></a></p>' +
        '</div>' +
    '</div><!--End bottomNav-->' +
 '</div><!--End footerDiv-->' +
 '<div id="disclaimerDiv" style="clear:both;background-color:#fff;text-align:left;">' +
 '&copy; LegalZoom.com, Inc. All rights reserved.<br />Disclaimer: The information provided in this site is not legal advice, but general information on legal issues commonly encountered. LegalZoom is not a law firm and is not a substitute for an attorney or law firm. Communications between you and LegalZoom are protected by our <a href="javascript:openWindow_ext(\'/privacy-policy-popup.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\' );">Privacy Policy</a>, but are not protected by the attorney-client privilege or work product doctrine. LegalZoom cannot provide legal advice and can only provide self-help services at your specific direction. Please note that your access to and use of LegalZoom.com is subject to additional <a href="javascript:openWindow_ext(\'/terms-of-use.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\' );">Terms of Use</a>. LegalZoom.com, Inc. is a registered and bonded legal document assistant, #0104, Los Angeles County (exp. 12/13) and is located at 101 N. Brand Blvd., 11th Floor, Glendale, CA 91203.<br/><br>' +
 '</div>' +
 '<script>if(document.getElementById("disclaimerDiv").parentElement) document.getElementById("disclaimerDiv").parentElement.style.backgroundColor="#fff";</script>' +
 '<div id="disclaimerLinks"><a href="javascript:openWindow_ext(\'/site-map.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\');">View Site Directory</a></div>';
 
    return sHTML;
}

function getUserReference(footerStyle) {
    var sOut = "";
    var saReference = []
    saReference[footer_testFooter] = '<p>The Bryant Family used LegalZoom.com for creating and filing legal documents and have been featured in LegalZoom television commercials.</p>';
    saReference[footer_testFooterStiles] = '<p>Colleen Stiles used LegalZoom.com for creating and filing legal documents and have been featured in LegalZoom television commercials.</p>';
    saReference[footer_testFooterVargos] = '<p>Marcie & Kurt Vargo used LegalZoom.com for creating and filing legal documents and have been featured in LegalZoom television commercials.</p>';
    saReference[footer_testFooterBSmith] = '<p>Billy Smith used LegalZoom.com for creating and filing legal documents and has been featured in LegalZoom television commercials.</p>';
    saReference[footer_testFooterJLong] = '<p>Janet Long used LegalZoom.com for creating and filing legal documents and have been featured in LegalZoom television commercials.</p>';
    saReference[footer_testFooterCSchutte] = '<p>Chris Schutte used LegalZoom.com for creating and filing legal documents and have been featured in LegalZoom television commercials.</p>';
    saReference[footer_testQuestionnaire] = '';
    return saReference[footerStyle] ? saReference[footerStyle] : "";
}

//function getTestPageFooter(iDisclaimer, iPart) {
function getTestPageFooter(footerStyle){
    
    //Date picker for bottom nav
    var d = new Date();
    var month = new Array(12);
    month[0] = "January";
    month[1] = "February";
    month[2] = "March";
    month[3] = "April";
    month[4] = "May";
    month[5] = "June";
    month[6] = "July";
    month[7] = "August";
    month[8] = "September";
    month[9] = "October";
    month[10] = "November";
    month[11] = "December";
    var monthAbbrev = new Array(12);
    monthAbbrev[0] = "jan";
    monthAbbrev[1] = "feb";
    monthAbbrev[2] = "mar";
    monthAbbrev[3] = "apr";
    monthAbbrev[4] = "may";
    monthAbbrev[5] = "jun";
    monthAbbrev[6] = "jul";
    monthAbbrev[7] = "aug";
    monthAbbrev[8] = "sep";
    monthAbbrev[9] = "oct";
    monthAbbrev[10] = "nov";
    monthAbbrev[11] = "dec";

    // disclaimer popup for questionnaire and PL
    var DisclaimerWindowPopup = "";
    var sReference = getUserReference(footerStyle);
    try {
        if (location.pathname.toLowerCase().indexOf("/lzweb/") != -1 || location.pathname.toLowerCase().indexOf("/brainnet/") != -1) {
            DisclaimerWindowPopup = "";
        }
    }
    catch (e) {
    }
    

    sHTML = '';
    sHTML += '<script type="text/javascript" src="/lib/jQuery_footer_background_fix.js"></script>' +

     '<div id="footerDiv">' +
        '<div id="bottomNav">' +
            '<ul>' +
                '<li><a href="/about-us">About Us</a></li>' +
                '<li><a href="/customer-support/contact-us.html">Contact Us</a></li>' +
                '<li><a href="/careers">Careers</a></li>' +
                '<li><a href="/press">Press</a></li>' +
                '<li><a href="http://legalzoom.directtrack.com/" rel="nofollow">Affiliate</a></li>' +
                '<li><a href="/site-map.html">Sitemap</a></li>' +
                '<li><a href="/article-center">Articles</a></li>' +
            '</ul>' +
            '<div class="footerSepHor"></div>' +
            '<ul>' +
                '<li><a href="/education-center/education-center-index.html">Education Center</li>' +
                '<li><a href="/videos">Video Center</li>                ' +
                '<li><a href="http://info.legalzoom.com/">Legal Info</li>' +
                '<li><a href="/business-formations/summary-compare-business-formations.html">Incorporation vs. LLC</li>' +
                '<li><a name="BottomNav - Wills vs. Living Trusts" href="/wills-estate-planning/summary-compare-wills.html">Wills vs. Living Trusts</li>' +
                '<li><a href="/trademarks-patents-copyrights/summary-compare-trademark-copyright.html">Trademark vs. Copyright</li>' +
                '<li><a href="http://businessresources.legalzoom.com/">Small Business Resources</li>' +
            '</ul>' +
            '<div class="footerSepHor"></div>' +
        '</div>' +
        '<div id="bottomLinks">' +
            '<div id="socialMedia">' +
                '<a rel="nofollow" href="http://www.twitter.com/LegalZoom/" target="connect" class="twitter"><img src="/img/sprites/homeSprites.png" style="margin-top: -340px; margin-left:-180px;border:none"></a>' +
                '<a rel="nofollow" href="http://www.facebook.com/LegalZoom/" target="connect" class="facebook"><img src="/img/sprites/homeSprites.png" style="margin-top: -370px; margin-left:-179px;border:none"></a>' +
            '</div>' +
            '<div id="customerSecurity">' +
                '<span class="mcafee"><img src="/img/sprites/homeSprites.png" style="margin-top: -347px; margin-left:-395px;border:none;visibility:hidden;"></span>' +
                '<a rel="nofollow" href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.LEGALZOOM.COM&lang=en" target="_blank" class="verisign"><img src="/img/sprites/homeSprites.png" style="margin-top: -347px; margin-left:-287px;border:none"></a>' +
                '<a rel="nofollow" href="http://www.la.bbb.org/business-reviews/Legal-Services/LegalZoomcom-in-Glendale-CA-13156151" target="_blank" class="bbb"><img src="/img/sprites/homeSprites.png" style="margin-top: -347px; margin-left:-499px;border:none"></a>' +
            '</div>' +
        '</div>' +
        '<div id="canadaLinkDiv">' +
            '<a id="canadaLink" href="javascript:void(0);" onclick="window.open(\'http://www.legalzoom.ca\', \'CanadaWindow\');"><img src="/img/home/canadaSiteLink.png" alt="LegalZoom Canada" /></a>' +
        '</div>' +
        '<div id="bottomNewsletter">' +
            '<span style="height:26px; overflow:hidden; width:62px; float:right;">' +
                '<a href="javascript:void(0)" id="newsletterSignupLink" onclick="newsletterSignupClick(\'sFtrEmail\', \'/LZWeb/Handlers/subscribenewsletter.ashx\')"><img src="/img/sprites/homeSprites.png" style="margin-top: -220px; margin-left:-387px;" border=0 /></a>' +
            '</span>' +
            '<input type="text" name="sFtrEmail" id="sFtrEmail" size="15">' +
            '<p id="signUpText">SIGN UP FOR OUR NEWSLETTER</p>' +
            '<div id="previewLink">' +
            '<p style="float:right;"><a href="javascript:openWindow_ext(\'http://www.legalzoom.com/newsletters/' + d.getFullYear() + '/' + monthAbbrev[d.getMonth()] + '\',\'_blank\',\'height=700,width=745,scrollbars=1,resizable=1\');">See the ' + month[d.getMonth()] + ' Issue<img src="/img/home/orangeArrowRight.png" border="0" /></a></p>' +
        '</div>' +
        '</div>        ' +
        '<!--End bottomNav-->' +
     '</div>' +
     '<div id="disclaimerDiv">' +
        '<p style="margin-bottom:10px;color:#333;font-size:11px;font-weight:bold;">&copy;LegalZoom.com, Inc.  All rights reserved.</p>' +
        sReference +
        (footerStyle == footer_testQuestionnaire ? '' : '<p>Percentage of customers who would recommend LegalZoom is based on surveys conducted October to December 2010 and excludes downloadable form only purchasers.</p>') +
        '<p>Disclaimer: The information provided in this site is not legal advice, but general information on legal issues commonly encountered.  LegalZoom is not a law firm and is not a substitute for an attorney or law firm.  Communications between you and LegalZoom are protected by our <a href="javascript:openWindow_ext( \'/privacy-policy-popup.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\' );" rel="nofollow">Privacy Policy</a>, but are not protected by the attorney-client privilege or work product doctrine. LegalZoom cannot provide legal advice and can only provide self-help services at your specific direction. Please note that your access to and use of LegalZoom.com is subject to additional <a href="javascript:openWindow_ext( \'/terms-of-use.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\' );" rel="nofollow">Terms of Use</a>. LegalZoom.com, Inc. is a registered and bonded legal document assistant, #0104, Los Angeles County (exp. 12/13) and is located at 101 N. Brand Blvd., 11th Floor, Glendale, CA 91203.</p>' +
     '</div>' +
     '<div id="disclaimerLinks" style="font-weight:bold;"><a href="javascript:openWindow_ext(\'/site-map.html\', \'_blank\', \'height=700,width=650,scrollbars=1,resizable=1\');">View Site Directory</a></div>';
    
    return sHTML;
}

function writeFooter(footerStyle) {
    if (footerStyle == footer_testFooter || footerStyle == footer_testFooterStiles || footerStyle == footer_testFooterVargos || footerStyle == footer_testFooterBSmith || footerStyle == footer_testQuestionnaire || footerStyle == footer_testFooterJLong || footerStyle == footer_testFooterCSchutte || footerStyle == footer_testFooterNoReference) {
        dw(getTestPageFooter(footerStyle));
    } else {
        dw(getPageFooter());
    }
}
/*  ------------------------------------------------------------   Footer routines end */

