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();
var mywidth=20;
arSubNav[0] = new Array("td1",40,100);
arSubNav[1] = new Array("td2",10,10);
arSubNav[2] = new Array("td3",40,100);
arSubNav[3] = new Array("td4",75,109,"Current Job Openings","js/clientnxtpage.php"); 
arSubNav[4] = new  Array("td5",550,195,"Submit Resume","submitresume.html","Contact Us","contactus.html"); 
arSubNav[5] = new  Array("td6",550,195," Why Prostaffing", "whyprostaffing.html","Our Professionals","Ourprofessionals.html");

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=\"40%\">";

if (j==3){ mywidth=340; }
if (j==4) {mywidth=505;}
if (j==5) {mywidth=110;}

subnav +="<td  height=\"1\" bgcolor=\"545579\"><img src=\"images/spacer.gif\" width=\"" + mywidth +"\" height=\"1\"></td>";
subnav += "<tr>";
subnav +="<td width=\"25%\" height=\"8\" bgcolor=\"FFFFFF\"><img src=\"images/spacer.gif\" width=\"" + mywidth +"\" height=\"8\"></td>";
subnav += "<tr>";
for (i=3; i < arSubNav[j].length-1; i=i+2){
subnav +="<td width=\"100%\" height=\"5\" bgcolor=\"ffffff\"><img src=\"images/spacer.gif\" width=\"1\" height=\"5\"></td>";
subnav +="<td width=\"100%\" height=\"2\" bgcolor=\"f8f8f8\"><img src=\"images/spacer.gif\" width=\"1\" height=\"2\"></td>";
subnav += "<td  width=\"100%\" height=\"20\" align=\"center\" bgcolor=\"" + bgc + "\" class=\"+ subnavblueon + \" 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/spacer.gif\" width=\"10\" height=\"1\"><img src=\"images/tiny_blarrow.gif\">&nbsp;&nbsp;" + arSubNav[j][i] + "</a></div></td>";
subnav +="<td width=\"100%\" height=\"5\" bgcolor=\"FFFFFF\"><img src=\"images/spacer.gif\" width=\"1\" height=\"5\"></td>";
}

subnav +="<td width=\"100%\" height=\"0\" bgcolor=\"FFFFFF\"><img src=\"images/spacer.gif\" width=\"0\" height=\"0\"></td>";
subnav += "</tr>";

subnav += "</table>";
subnav += "</div>";

}
document.write(subnav);
}
}
