// Set the value of 'production' to a non-zero value for
// live production.  Otherwise, scripts will run for
// 'development' environment.  This effects how file locations
// are built.
var production=0

function build_header()
{
document.write("        <h1>Brush Mountain Vineyards</h1>\n")
}

function build_navbar()
{
document.write("        <ul class=\"nav\">\n")
document.write("          <li>\n")
document.write("            <a href=\"./index.html\">Home</a>\n")
document.write("          </li>\n")
document.write("          <li>\n")
document.write("            <b>About Us</b>\n")
document.write("             <ul>\n")
document.write("               <li>\n")
document.write("                 <a href=\"./bmv_about.html\">History</a>\n")
document.write("               </li>\n")
document.write("               <li>\n")
document.write("                 <a href=\"./bmv_people.html\">People</a>\n")
document.write("               </li>\n")
document.write("               <li>\n")
document.write("                 <a href=\"./bmv_opportunity.html\">Opportunties</a>\n")
document.write("               </li>\n")
document.write("               <li>\n")
document.write("                 <a href=\"./bmv_contact_us.html\">Contact us</a>\n")
document.write("               </li>\n")
document.write("             </ul>\n")
document.write("          </li>\n")
document.write("          <li>\n")
document.write("            <b>The Vineyards</b>\n")
document.write("             <ul>\n")
document.write("               <li>\n")
document.write("                 <a href=\"./bmv_vineyards.html\">Descriptive</a>\n")
document.write("               </li>\n")
document.write("               <li>\n")
document.write("                 <a href=\"./bmv_gallery.html\">Pictures</a>\n")
document.write("               </li>\n")
document.write("             </ul>\n")
document.write("          </li>\n")
document.write("          </li>\n")
document.write("          <li>\n")
document.write("            <a href=\"./bmv_links.html\">Links</a>\n")
document.write("          </li>\n")
document.write("        </ul>\n")

}

function display_copyright()
{
var copy_msg="\<hr\>\<p class=\"footer\">"
copy_msg +="\&copy\; Copyright 2004\-2009 Ripe "
copy_msg +="Harvest Enterprises\, Inc\.  All rights "
copy_msg +="reserved.  The materials contained on "
copy_msg +="this site may not be duplicated, archived "
copy_msg +="or reproduced without the express consent "
copy_msg +="of the owner\."
copy_msg +="\</p>\<hr\>"
document.write(copy_msg)
}

function display_alert(etext)
{
alert(etext)
}

// Function to redirect browser client to an archived
// newsletter based on a selection made from an HTML
// form.

function go(form)
{
// Need to include error checking.  If a 0 is returned here
// user is going to have a problem.
var file_prefix="bmv_newsletter_"
if (!production)
    {
    var location_base="file:///I:/Rhe/WebDevelopment/brushmountain/"
    }
else
    {
    var location_base="../"
    }
var edition_url=location_base+file_prefix+form.edition.value+".html"
location=edition_url
}


