
//<!--header images-->
document.write("<tr><td>" +
        "<table cellspacing='0' cellpadding='10' align='center' border='0' >" + 
        "<tr><td bgcolor='#ffffff' style='height: 40px'></td>" +
                "<td align='right' rowspan='3' style='width: 218px'><!-- the graphics use color='5F8BC1' -->" +
                "<img src='FaithLutheran_files/sepia church.jpg' alt='icon' /></td></tr>" +
        "<tr><td><img alt='' src='FaithLutheran_files/hdr_02.jpg' width='440'/><!-- the graphics use color='5F8BC1' font='Marlett Semi-Bold' 30pix --></td></tr>" +
        "<tr><td bgcolor='#ffffff' style='height: 12px'><img alt='' src='FaithLutheran_files/keepinmind.gif' width='440'/><!-- the graphics use color='5F8BC1' font='Monotype Corsiva Italic 25 px' --></td></tr>");


//<!-- menu -->
//document.write(pagename + "</br>");
var default_menu_td_class = '"topnav"';
var default_monbkgcolor = '"#889eba"';
var default_moffbkgcolor = '"#6f8198"';

var selected_menu_td_class = '"navsel"';
var selected_monbkgcolor = '"#aacdf7"';
var selected_moffbkgcolor = '"#99b8de"';

var menu_td_class = new Array(default_menu_td_class, default_menu_td_class, default_menu_td_class, default_menu_td_class, default_menu_td_class);
var monbkgcolor = new Array(default_monbkgcolor, default_monbkgcolor, default_monbkgcolor, default_monbkgcolor, default_monbkgcolor);
var moffbkgcolor = new Array(default_moffbkgcolor, default_moffbkgcolor, default_moffbkgcolor, default_moffbkgcolor, default_moffbkgcolor);

//verify pagename is in range
if (pagename > 4 || pagename < 0)
{pagename = 0;}

menu_td_class[pagename] = selected_menu_td_class;
monbkgcolor[pagename] = selected_monbkgcolor;
moffbkgcolor[pagename] = selected_moffbkgcolor;

document.write("</table>" + 
    "<tr><td>" +
            "<table width='717' border='0' cellpadding='0' cellspacing='0'><tr class='topnav'>" + //  <!-- Main Menu -->
            "<td id='home1' style='line-height:26px; height: 100%;' class=" + menu_td_class[0] + "><a href='default.htm' onmouseover='home1.style.background=" + monbkgcolor[0] + "; this.style.color=\"white\"' onmouseout='home1.style.background=" + moffbkgcolor[0] + "; this.style.color=\"white\"'>HOME</a></td>" +
            "<td id='calendar' style='line-height:26px; height: 100%;' class=" + menu_td_class[1] + "><a href='calendar.htm' onmouseover='calendar.style.background=" + monbkgcolor[1] + "; this.style.color=\"white\"' onmouseout='calendar.style.background=" + moffbkgcolor[1] + "; this.style.color=\"white\"'>CALENDAR</a></td>" +
            "<td id='newsletter' style='line-height:26px; height: 100%;' class=" + menu_td_class[2] + "><a href='events.htm' onmouseover='newsletter.style.background=" + monbkgcolor[2] + "; this.style.color=\"white\"' onmouseout='newsletter.style.background=" + moffbkgcolor[2] + "; this.style.color=\"white\"'>NEWSLETTER</a></td>" +
            "<td id='stewardship' style='line-height:26px; height: 100%;' class=" + menu_td_class[3] + "><a href='stewardship.htm' onmouseover='stewardship.style.background=" + monbkgcolor[3] + "; this.style.color=\"white\"' onmouseout='stewardship.style.background=" + moffbkgcolor[3] + "; this.style.color=\"white\"'>STEWARDSHIP & GIVING</a></td>" +
            "<td id='contacts' style='line-height:26px; height: 100%;' class=" + menu_td_class[4] + "><a href='contacts.htm' onmouseover='contacts.style.background=" + monbkgcolor[4] + "; this.style.color=\"white\"' onmouseout='contacts.style.background=" + moffbkgcolor[4] + "; this.style.color=\"white\"'>CONTACTS</a></td>" +
//"<!-- <td id='employment' style='line-height:26px; height: 100%;' class="+ menu_td_class[0] +"><a href='employment.htm' onmouseover='employment.style.background=" + monbkgcolor[0] +"; this.style.color='white'' onmouseout='employment.style.background=" + moffbkgcolor[0] + "; this.style.color='white''>EMPLOYMENT OPPORTUNITIES</a></td> -->" +
//"<!-- <td id='shopping' style='line-height:26px; height: 100%;' class="+ menu_td_class[0] +"><a href='shopping.htm' onmouseover='shopping.style.background=" + monbkgcolor[0] +"; this.style.color='white'' onmouseout='shopping.style.background=" + moffbkgcolor[0] + "; this.style.color='white''>SHOPPING FOR THE ENDOWMENT FUND</a></td> -->" +
            "</tr></table>" +
    "</td></tr>");
