// if (document.all.clicksound==null){ //uncomment this line if you plan on having multiple navbars on one web page
//used for storing the sound position in the web page
document.write('<bgsound id="oversound">');
document.write('<bgsound id="clicksound">');


if (document.images) {
    //Button Image definitions go here		!!!!!
    //***************   START IMAGE DEFINITION    **********************//
    //** swenson IMAGE START **//
    swenson0_over = new Image(143, 25);
    swenson0_over.src = "images/navbar/swenson0_over.gif";
    swenson0_off = new Image(143, 25);
    swenson0_off.src = "images/navbar/swenson0.gif";

    swenson1_over = new Image(143, 23);
    swenson1_over.src = "images/navbar/swenson1_over.gif";
    swenson1_off = new Image(143, 23);
    swenson1_off.src = "images/navbar/swenson1.gif";

    swenson2_over = new Image(143, 23);
    swenson2_over.src = "images/navbar/swenson2_over.gif";
    swenson2_off = new Image(143, 23);
    swenson2_off.src = "images/navbar/swenson2.gif";

    swenson3_over = new Image(143, 23);
    swenson3_over.src = "images/navbar/swenson3_over.gif";
    swenson3_off = new Image(143, 23);
    swenson3_off.src = "images/navbar/swenson3.gif";

    swenson4_over = new Image(143, 23);
    swenson4_over.src = "images/navbar/swenson4_over.gif";
    swenson4_off = new Image(143, 23);
    swenson4_off.src = "images/navbar/swenson4.gif";

    swenson5_over = new Image(143, 23);
    swenson5_over.src = "images/navbar/swenson5_over.gif";
    swenson5_off = new Image(143, 23);
    swenson5_off.src = "images/navbar/swenson5.gif";

    swenson6_over = new Image(143, 26);
    swenson6_over.src = "images/navbar/swenson6_over.gif";
    swenson6_off = new Image(143, 26);
    swenson6_off.src = "images/navbar/swenson6.gif";

    //** swenson IMAGE END **//



    //***************   END IMAGE DEFINITION    **********************//
}  //CLOSING FOR IMAGE DEFINITION AREA


//***************   START MENU DEFINITION    **********************//
//** swenson MENU START **//
//** swenson MENU END **//


//***************   END MENU DEFINITION    **********************//
//}     //uncomment this line if you plan on having multiple navbars on one web page


//********************* DO NOT MODIFY ANYTHING BELOW THIS LINE!!!!  *************************************//
function DL_GetElementLeft(eElement) { var nLeftPos = eElement.offsetLeft; var eParElement = eElement.offsetParent; while (eParElement != null) { nLeftPos += eParElement.offsetLeft; eParElement = eParElement.offsetParent; } return nLeftPos; } function DL_GetElementTop(eElement) { var nTopPos = eElement.offsetTop; var eParElement = eElement.offsetParent; while (eParElement != null) { nTopPos += eParElement.offsetTop; eParElement = eParElement.offsetParent; } return nTopPos; } function activeoverimage(NavBar_Subitem) { var JN_nav; var JN_Complete; NavBar_imageOn(NavBar_Subitem); if (document.getElementById) { JN_Complete = "document.getElementById('" + NavBar_Subitem + "Menu')"; } else if (document.all) { JN_Complete = "document.all['" + NavBar_Subitem + "Menu']"; } JN_Nav = eval(JN_Complete); if (JN_Nav) { if (JN_Nav.menupos == 1) { document.getElementById(NavBar_Subitem + 'Menu').style.pixelLeft = DL_GetElementLeft(document.getElementById(NavBar_Subitem)); document.getElementById(NavBar_Subitem + 'Menu').style.pixelTop = DL_GetElementTop(document.getElementById(NavBar_Subitem)) + document.getElementById(NavBar_Subitem).offsetHeight; } else { document.getElementById(NavBar_Subitem + 'Menu').style.pixelLeft = DL_GetElementLeft(document.getElementById(NavBar_Subitem)) + document.getElementById(NavBar_Subitem).offsetWidth; document.getElementById(NavBar_Subitem + 'Menu').style.pixelTop = DL_GetElementTop(document.getElementById(NavBar_Subitem)); } JN_Nav.style.visibility = 'visible'; } } function inactiveimage(NavBar_Subitem) { var JN_Nav; var JN_Complete; NavBar_imageOff(NavBar_Subitem); if (document.getElementById) { JN_Complete = "document.getElementById('" + NavBar_Subitem + "Menu')"; } else if (document.all) { JN_Complete = "document.all['" + NavBar_Subitem + "Menu']"; } JN_Nav = eval(JN_Complete); if (JN_Nav) { JN_Nav.style.visibility = 'hidden'; } } function NavBar_imageOn(iname) { if (document.images) { document[iname].src = eval(iname + "_over.src"); } } function NavBar_imageOff(iname) { if (document.images) { document[iname].src = eval(iname + "_off.src"); } } function Generate_Menu(NavBar_Menu, JN_backcolor, JN_overcolor, JN_textcolor, JN_overtextcolor, JN_linecolor) { if ((document.all) || (document.getElementById)) { var NavBar_Subitem = ""; for (j = 0; j < NavBar_Menu.length; j++) { NavBar_Subitem += "<div id=\"" + NavBar_Menu[j][0] + "Menu\" menupos=\"" + NavBar_Menu[j][1] + "\" style=\"z-index:999; position: absolute; left: 0;  width: " + NavBar_Menu[j][2] + ";  visibility: hidden\" onmouseover=\"activeoverimage('" + NavBar_Menu[j][0] + "');\" onmouseout=\"inactiveimage('" + NavBar_Menu[j][0] + "');\">"; NavBar_Subitem += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + NavBar_Menu[j][2] + "\">"; NavBar_Subitem += "<tr>"; NavBar_Subitem += "<td colspan=\"2\" bgcolor=\"" + JN_linecolor + "\" height=\"1\"><img src=\"pixel.gif\" width=\"1\" height=\"1\"></td>"; NavBar_Subitem += "</tr>"; for (i = 3; i < NavBar_Menu[j].length - 1; i = i + 2) { NavBar_Subitem += "<tr>"; NavBar_Subitem += "<td width=\"1\" bgcolor=\"" + JN_linecolor + "\"><img src=\"pixel.gif\" width=\"1\" height=\"22\"></td>"; if (document.isRemoteHosted == 'local') { NavBar_Subitem += "<td width=\"108\" bgcolor=\"" + JN_backcolor + "\" class=\"NavbarMenu\" onClick=\"document.location.href='" + NavBar_Menu[j][i + 1] + "'\" onmouseover=\"this.bgColor='" + JN_overcolor + "';this.style.color='" + JN_overtextcolor + "';\" onmouseout=\"this.bgColor='" + JN_backcolor + "';this.style.color='" + JN_textcolor + "'\" style=\"color: " + JN_textcolor + "\"><div style=\"padding-left:12px;\">" + NavBar_Menu[j][i] + "</a></div></td>"; } else if (!(IsRelativeURL(NavBar_Menu[j][i + 1]))) { NavBar_Subitem += "<td width=\"108\" bgcolor=\"" + JN_backcolor + "\" class=\"NavbarMenu\" onClick=\"document.location.href='" + NavBar_Menu[j][i + 1] + "'\" onmouseover=\"this.bgColor='" + JN_overcolor + "';this.style.color='" + JN_overtextcolor + "';\" onmouseout=\"this.bgColor='" + JN_backcolor + "';this.style.color='" + JN_textcolor + "'\" style=\"color: " + JN_textcolor + "\"><div style=\"padding-left:12px;\">" + NavBar_Menu[j][i] + "</a></div></td>"; } else { NavBar_Subitem += "<td width=\"108\" bgcolor=\"" + JN_backcolor + "\" class=\"NavbarMenu\" onClick=\"document.location.href='" + NavBar_Menu[j][i + 1] + "'\" onmouseover=\"this.bgColor='" + JN_overcolor + "';this.style.color='" + JN_overtextcolor + "';\" onmouseout=\"this.bgColor='" + JN_backcolor + "';this.style.color='" + JN_textcolor + "'\" style=\"color: " + JN_textcolor + "\"><div style=\"padding-left:12px;\">" + NavBar_Menu[j][i] + "</a></div></td>"; } NavBar_Subitem += "<td width=\"1\" bgcolor=\"" + JN_linecolor + "\"><img src=\"pixel.gif\" width=\"1\" height=\"22\"></td>"; NavBar_Subitem += "</tr>"; NavBar_Subitem += "<tr>"; NavBar_Subitem += "<td colspan=\"3\" bgcolor=\"" + JN_linecolor + "\" height=\"1\"><img src=\"pixel.gif\" width=\"1\" height=\"1\"></td>"; NavBar_Subitem += "</tr>"; } NavBar_Subitem += "</table>"; NavBar_Subitem += "</div>"; } document.write(NavBar_Subitem); } } function IsRelativeURL(url) { if (url.indexOf('http://') == 0) { return false; } else if (url.indexOf('https://') == 0) { return false; } else if (url.indexOf('ftp://') == 0) { return false; } else if (url.indexOf('mailto://') == 0) { return false; } else { return true; } } function playMouseOver(WaveName) { if (document.all) { document.all.oversound.src = WaveName; } } function playMouseClick(WaveName) { if (document.all) { document.all.clicksound.src = WaveName; } }

