var u = document.URL.split('/');
var v = u[u.length - 1];
var x = '';
var z = '
';
var y;
var a = new Array();
function menuitem(text,url,group,ms) {
this.text = text;
this.url = url;
this.group = group;
this.ms = ms;
a[a.length] = text + '|' + url + '|' + group + '|' + ms;
if (x.length == 0 && v == url) {
x = group;
}
}
/* MENU BELOW BETWEEN COMMENT LINES */
/* y = new menuitem('link text','link url','menu group','main or sub'); */
/*---------------------------------------------------------------------*/
y = new menuitem(' Home','index.htm','home','main');
y = new menuitem(' About Us','about.htm','about','main');
y = new menuitem(' Our People','about_people.htm','about','sub');
y = new menuitem(' Office Locations','serviceareas.htm','areas','main');
y = new menuitem(' Services','services.htm','services','main');
y = new menuitem(' Electrical','services_electrical.htm','services','sub');
y = new menuitem(' Mechanical','services_mechanical.htm','services','sub');
y = new menuitem(' Design','services_design.htm','services','sub');
y = new menuitem(' Lighting','services_lighting.htm','services','sub');
y = new menuitem(' TEGG','tegg.htm','services','sub');
y = new menuitem(' CurrentSAFE','currentsafe.htm','services','sub');
y = new menuitem(' TEGG','tegg.htm','tegg','main');
y = new menuitem(' Residential /
CurrentSAFE','http://www.teamhumphrey.com/currentsafe','currentsafe','main');
y = new menuitem(' Renewable Energy','http://www.teamhumphrey.com/renewableenergy','renewable','main');
y = new menuitem(' Portfolio','portfolio.htm','portfolio','main');
y = new menuitem(' Safety/Training','safety.htm','safety','main');
y = new menuitem(' News','news.htm','news','main');
y = new menuitem(' Community Service','news_community.htm','news','sub');
y = new menuitem(' References','references.htm','references','main');
y = new menuitem(' Architectural','references_architectural.htm','references','sub');
y = new menuitem(' Engineering','references_engineering.htm','references','sub');
y = new menuitem(' General Contractor','references_gc.htm','references','sub');
y = new menuitem(' Owner','references_owner.htm','references','sub');
y = new menuitem(' Trade','references_trade.htm','references','sub');
y = new menuitem(' Mechanical','references_mechanical.htm','references','sub');
y = new menuitem(' Endorsements','endorsements.htm','endorsements','main');
y = new menuitem(' Publications','publications.htm','publications','main');
y = new menuitem(' Careers','careers.htm','careers','main');
y = new menuitem(' Contact Us','contact.htm','contact','main');
/*---------------------------------------------------------------------*/
if (x.length == 0) {
x = a[0].split('|')[2];
}
var g = 1;
function setbg() {
if (g == 0) {
z += 'background="images\/button_bg.jpg"';
} else {
z += 'bgcolor="#2F0797"';
}
}
for (b = 0 ; b < a.length; b++) {
if (a[b].split('|')[3] == 'main') {
if (b != 0) {
z += ' <\/td><\/tr>';
}
if (g == 0) {
g = 1;
} else {
g = 0;
}
z += ' |
 ' + a[b].split('|')[0] + '<\/td><\/tr>';
} else if (a[b].split('|')[2] == x) {
z += ' |
| \ \;\ \;\ \;\ \;\ \;' + a[b].split('|')[0] + '<\/td><\/tr>';
}
}
z += ' |
<\/td><\/tr>';
z += ' |
<\/td><\/tr> |
';
document.open;
document.write(z);
document.close;