function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
el.className = 'navblueon';
}
}
function SwitchMenu2(obj){
if(document.getElementById){
var el = document.getElementById(obj);
el.className = 'navblue';
}
}
function showSubNav(obj){
var subnav;
var thisobj;
if(document.getElementById){
thisobj = "document.getElementById('" + obj + "Menu')";
}
else if(document.all){
thisobj = "document.all['" + obj + "Menu']";
}
subnav = eval(thisobj);
if (subnav){
subnav.style.visibility = 'visible';	
}
}
function hideSubNav(obj){
var subnav;
var thisobj;
if(document.getElementById){
thisobj = "document.getElementById('" + obj + "Menu')";
}
else if(document.all){
thisobj = "document.all['" + obj + "Menu']";
}
subnav = eval(thisobj);
if (subnav){
subnav.style.visibility = 'hidden';	
}
}
var arSubNav = new Array();
arSubNav[0] = new Array("td1",10,111," ","/"," ","/");
arSubNav[1] = new Array("td2",177,202,"Post Job Opening","/cgi-bin/mychurchjobs.pl?login=Signup&login_type=addJob","Search Resumes Only","/resumes.html","Background Checks","/securesearch.html","Research Salaries","/cgi-bin/search-salaries.pl","Other Resources (Pricing)","/otherresources.html","Blog","/blog","Learn More...","/newusers-churches.html");
arSubNav[2] = new Array("td3",378,202,"Add Your Resume","/cgi-bin/mychurchjobs.pl?login_type=candidate&login=Signup","Search Jobs","/search.html","FREE Newsletter","/newsletter.html","Other Resources","/otherresources.html","Blog","/blog","Learn More...", "/newusers.html");
arSubNav[3] = new Array("td4",580,130," "," ");
arSubNav[4] = new Array("td5",670,110,"My ChurchJobs","/");
function writeSubNav(bgc, rbgc, textcolor, rtextcolor, linecolor, bordercolor){
if ((document.all) || (document.getElementById)){
var j = 0;
var subnav = "";
for (j = 0; j < arSubNav.length; j++){
subnav += "<div id=\"" + arSubNav[j][0] + "Menu\" style=\"z-index:999;position: absolute; filter: Alpha(Opacity=100); cursor: hand; left: " + arSubNav[j][1] + "; width: " + arSubNav[j][2] + ";  visibility: hidden\" onmouseover=\"showSubNav('" + arSubNav[j][0] + "'); SwitchMenu('" + arSubNav[j][0] + "');\" onmouseout=\"hideSubNav('" + arSubNav[j][0] + "'); SwitchMenu2('" + arSubNav[j][0] + "')\">";
subnav += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + arSubNav[j][2] + "\">";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"114b93\" height=\"1\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"cccccc\" height=\"1\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"ebebeb\" height=\"1\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td colspan=\"1\" bgcolor=\"f7f7f7\" height=\"1\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td>";
subnav += "</tr>";
for (i=3; i < arSubNav[j].length-1; i=i+2){
subnav += "<tr>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"22\"></td>";
subnav += "<td width=\"100%\" align=\"left\" bgcolor=\"" + bgc + "\" class=\"\" onClick=\"document.location.href='" + arSubNav[j][i+1] + "'\" onmouseover=\"this.bgColor='" + rbgc + "';this.style.color='" + rtextcolor+ "';\" onmouseout=\"this.bgColor='" + bgc + "';this.style.color='" + textcolor + "'\" style=\"color: " + textcolor + "\" nowrap><div style=\"padding-left:0px;\"><img src=\"/images/indent.gif\" width=\"10\" height=\"1\"><img src=\"/images/triangle.gif\">&nbsp;&nbsp;" + arSubNav[j][i] + "</a></div></td>";
subnav += "<td width=\"1\" bgcolor=\"" + bordercolor + "\"><img src=\"/images/indent.gif\" width=\"1\" height=\"22\"></td>";
subnav += "</tr>";
}
subnav += "<tr>";
subnav += "<td align=\"left\" colspan=\"3\" height=\"6\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td rowspan=\"6\"><img src=\"/images/btleft.gif\" width=\"6\" height=\"6\"></td><td width=\"100%\" height=\"1\" bgcolor=\"f8f8f8\"><img src=\"/images/indent.gif\" width=\"1\" height=\"1\"></td><td rowspan=\"6\"><img src=\"/images/btright.gif\" width=\"6\" height=\"6\"></td></tr><tr><td height=\"1\" bgcolor=\"ffffff\"></td></tr><tr><td height=\"1\" bgcolor=\"f8f8f8\"></td></tr><tr><td height=\"1\" bgcolor=\"ffffff\"></td></tr><tr><td height=\"1\" bgcolor=\"f8f8f8\"></td></tr><tr><td height=\"1\" bgcolor=\"" + bordercolor + "\"></td></tr></table></td>";
subnav += "</tr>";
subnav += "</table>";
subnav += "</div>";
}
document.write(subnav);
}
}
