// prints the meta elements
function printMetaElements(keywords)
{
    document.write("<meta name=\"description\" content=\"Hicksville, Ohio\">");
    document.write("<meta name=\"keywords\" content=\"hicksville, ohio, council, minutes, " + keywords + ">");
}

// prints the link elements
function printLinkElements()
{
    document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"hix.css\">");
    document.write("<link rel=\"shortcut icon\" href=\"http://www.metalink.net/~hix/cards.ico\">");
}

// prints the navigation menu
function printMenu(year, archives, selected)
{
    document.write("<table align=\"center\">");
    document.write("<tr>");
        document.write("<td>");
            document.write("<form name=\"jump\">");
            document.write("<p align=\"left\">");
                document.write("<select name=\"menu\" onChange=\"location=document.jump.menu.options[document.jump.menu.selectedIndex].value;\" style=\"font-family: verdana\">");
                    if(selected == "minutes")
                    {
                        document.write("<option value=\"minutes.html\" style=\"color:999999\" selected>Village Council Minutes</option>");
                    }
                    else
                    {
                        document.write("<option value=\"forms.html\">Tax Forms</option>");
                    }
                    
                    if(selected == "ordinance")
                    {
                        document.write("<option value=\"ordinance.html\" style=\"color:999999\" selected>Village Income Tax Ordinance 2004-35</option>");
                    }
                    else
                    {
                        document.write("<option value=\"ordinance.html\">Village Income Tax Ordinance 2004-35</option>");
                    }
                    
                    if(selected == "rules")
                    {
                        document.write("<option value=\"rulesandreg.html\" style=\"color:999999\" selected>Rules and Regulations</option>");
                    }
                    else
                    {
                        document.write("<option value=\"rulesandreg.html\">Rules and Regulations</option>");
                    }
                    
                    if(selected == "forms")
                    {
			document.write("<option value=\"forms.html\" style=\"color:999999\" selected>Tax Forms</option>");
                    }
                    else
                    {
                        document.write("<option value=\"minutes.html\">Village Council Minutes</option>");
                    }
                    
                    if(selected == "calendar")
                    {
                        document.write("<option value=\"calendar.html\" style=\"color:999999\" selected>Community Calendar</option>");
                    }
                    else
                    {
                        document.write("<option value=\"calendar.html\">Community Calendar</option>");
                    }
                    
                    if(selected == "pictures")
                    {
                        document.write("<option value=\"pictures.html\" style=\"color:999999\" selected>Administrative and Elected Officials</option>");
                    }
                    else
                    {
                        document.write("<option value=\"pictures.html\">Administrative and Elected Officials</option>");
                    }
                    
                    if(selected == "water")
                    {
                        document.write("<option value=\"water10.html\" style=\"color:999999\" selected>Water Quality Report</option>");
                    }
                    else
                    {
                        document.write("<option value=\"water10.html\">Water Quality Report</option>");
                    }

		    if(selected == "storm")
                    {
                        document.write("<option value=\"storm.html\" style=\"color:999999\" selected>Stormwater Management Rules and Regulations</option>");
                    }
                    else
                    {
                        document.write("<option value=\"storm.html\">Stormwater Management Rules and Regulations</option>");
                    }
                    
                    if(selected == "links")
                    {
                        document.write("<option value=\"links.html\" style=\"color:999999\" selected>Additional Links</option>");
                    }
                    else
                    {
                        document.write("<option value=\"links.html\">Additional Links</option>");
                    }
                    
                    document.write("<option value=\"http://www.amlegal.com/hicksville_oh\">Villiage Ordinances</option>");
                    
                    if(selected == "aboutus")
                    {
                        document.write("<option value=\"aboutus.html\" style=\"color:999999\" selected>About Us</option>");
                    }
                    else
                    {
                        document.write("<option value=\"aboutus.html\">About Us</option>");
                    }

                    document.write("<option value=\"index.html\">The Village of Hicksville Website</option>");
                    
                document.write("</select>");
            document.write("</p>");
            document.write("</form>");
        document.write("</td>");
        document.write("<td>");
            if(archives == true)
            {
                document.write("<form name=\"archives\">");
                    document.write("<select name=\"menu\" onChange=\"location=document.archives.menu.options[document.archives.menu.selectedIndex].value;\" style=\"font-family: verdana\">");

                        if(year == "")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\">Choose a year</option>");
                        }
                        else
                        {
                            document.write("<option selected value=\"#\">Choose a year</option>");
                        }

                        if(year == "2008")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2008 (Current)");
                        }
                        else
                        {
                            document.write("<option VALUE=\"minutes.html\"> 2008 (Current)");
                        }

                        if(year == "2007")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2007 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive07.html\"> 2007 Archives");
                        }
                        
                        if(year == "2006")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2006 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive06.html\"> 2006 Archives");
                        }
                        
                        if(year == "2005")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2005 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive05.html\"> 2005 Archives");
                        }
                        
                        if(year == "2004")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2004 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive04.html\"> 2004 Archives");
                        }
                        
                        if(year == "2003")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2003 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive03.html\"> 2003 Archives");
                        }
                        
                        if(year == "2002")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2002 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive02.html\"> 2002 Archives");
                        }
                        
                        if(year == "2001")
                        {
                            document.write("<option selected value=\"#\" style=\"color: #999999\"> 2001 Archives");
                        }
                        else
                        {
                            document.write("<option VALUE=\"archive01.html\"> 2001 Archives");
                        }
                    document.write("</select>");
                document.write("</form>");
            }
        document.write("</td>");
    document.write("</tr>");
    document.write("</table>");
}

// prints the top of the page
function printTop(year, noLine, archives, selected)
{
    document.write("<table align=\"center\"class=\"mainPage\" id=\"AutoNumber1\";>");
        document.write("<tr>");
            document.write("<td width=\"100%\" height=\"93px\" align=\"center\">");
                document.write("<br />");
                document.write("<a href=\"http://www.defnet.com/~hix\">");
                    document.write("<img border=\"0\" src=\"village4.jpg\" width=\"506px\" height=\"95px\";>");
                document.write("</a>");
            document.write("</td>");
        document.write("</tr>");
        
        document.write("<tr>");
            document.write("<td width=\"100%\" height=\"1px\">");
                printMenu(year, archives, selected);
            document.write("</td>");
        document.write("</tr>");
        if(noLine == "")
        {
            document.write("<tr>");
                document.write("<td width=\"100%\" height=\"316px\">");
                    document.write("<table align=\"center\" border=\"0\" cellpadding=\"5\" cellspacing=\"7\" width=\"824px\" style=\"border-collapse: collapse; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1\" bordercolor=\"#111111\">");
                    document.write("<tr>");
        }
                    document.write("<td vAlign=\"top\" align=\"left\" width=\"\" style=\"text-decoration: none; font-size: 16px; font-family: Verdana; color: #000000\">");
}

// prints the bottom of the page
function printBottom()
{
                    document.write("</td>");
                document.write("</tr>");
                document.write("</table>");
            document.write("</td>");
        document.write("</tr>");
    document.write("</table>");
}