function InsertTopMenu()
{
	var s = "<table cellpadding=0 cellspacing=0 border=0 style=\"height:20px; width:300px;>";
	s += "		<tr style=\"height:10px;\">";
	s += "			<td><img src=\"images/spacer.gif\" height=\"10\" width=\"1\"></td></tr>";
	s += "		<tr style=\"height:10px;\" valign=\"top\">";
	s += "			<td style=\"width:14px;\"></td>";
	s += "			<td class=\"mymenu\" style=\"width:45px; border-bottom:solid 1pt darkgray;\">VISIT:</td>";
	s += "			<td class=\"mymenu1\" style=\"width:145px; border-bottom:solid 1pt darkgray;\">";
	s += "				<a href=\"http://www.winter-environmental.com/\" target=\"_blank\">WINTER ENVIRONMENTAL</a></td>";
	s += "			<td class=\"mymenu1\" style=\"width:96px; border-right:solid 1pt darkgray; border-bottom:solid 1pt darkgray;\">";
	s += "				<a href=\"http://www.TrewinHomes.com/\" target=\"_blank\">TREWIN HOMES</a></td></tr>";
	s += "</table>";

	document.write(s);
}



function InsertMainMenu(num)
{
	var l2 = "";

	if (num == 55)
	{
		num = 5;
		l2 = "../../";
	}
	else if (num == 66)
	{
		num = 6;
		l2 = "../";
	}
	else if (num == 666)
	{
		num = 6;
		l2 = "../../";
	}
	
	
	var s = "<table cellpadding=0 cellspacing=0 border=0 style=\"height:22px;\">";
	s += "		<tr style=\"height:2px;\">";
	s += "			<td></td></tr>";
	s += "		<tr valign=\"bottom\" style=\"height:16px;\">";
	s += "			<td style=\"width:1px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "about.html\">COMPANY OVERVIEW</a></td>";
	s += "			<td style=\"width:12px; border-right:solid 1pt #cccccc;\">&nbsp;</td>";
	s += "			<td style=\"width:12px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "projects-government.html\">PROJECTS</a></td>";
	s += "			<td style=\"width:12px; border-right:solid 1pt #cccccc;\">&nbsp;</td>";
	s += "			<td style=\"width:12px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "news.html\">NEWS/RECOGNITION</a></td>";
	s += "			<td style=\"width:12px; border-right:solid 1pt #cccccc;\">&nbsp;</td>";
	s += "			<td style=\"width:12px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "services.html\">SERVICES</a></td>";
	s += "			<td style=\"width:12px; border-right:solid 1pt #cccccc;\">&nbsp;</td>";
	s += "			<td style=\"width:12px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "career.html\">CAREER OPPORTUNITIES</a></td>";
	s += "			<td style=\"width:12px; border-right:solid 1pt #cccccc;\">&nbsp;</td>";
	s += "			<td style=\"width:12px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "sub-curbids.html\">SUBCONTRACTORS</a></td>";
	s += "			<td style=\"width:12px; border-right:solid 1pt #cccccc;\">&nbsp;</td>";
	s += "			<td style=\"width:12px;\">&nbsp;</td>";
	s += "			<td align=left class=\"mymenu\"><a href=\"" + l2 + "contact.html\">CONTACT</a></td></tr>";
	if (num < 0)
	{
		//don't underline any menu option
		s += "	<tr style=\"height:4px;\">";
		s += "		<td colspan=\"22\"></td></tr>";
	}
	else
	{
		s += "	<tr style=\"height:4px;\">";
		s += "		<td colspan=\"" + (1 + 3 * num) + "\"></td>";
		s += "		<td style=\"height:4px; background-color:#af2222;\"></td>";
		s += "		<td colspan=\"" + (22 - 3 * num) + "\"></td></tr>";
	}
	s += "</table>";

	document.write(s);
}



function InsertOverviewSideMenu(nCur)
{
	var s = "";
	//list of options
	var a = [ ["ABOUT US", "about.html" ] , 
		["LEADERSHIP", "leadership.html" ] ,
		["CULTURE", "culture.html" ] , 
		["SAFETY", "safety.html" ] , 
		["GIVING BACK", "giving-back.html" ] , 
		["RECOGNITION", "recognition.html" ] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=right class=\"mymenuwhite\">";
		s += "							<A href=\"" + a[i][1] + "\">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertCareerSideMenu(nCur)
{
	var s = "";
	//list of options
	var a = [ ["WHY WINTER", "career.html" ] , 
		["CAREERS", "careers.html" ] , 
		["BENEFITS", "benefits.html" ] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=right class=\"mymenuwhite\">";
		s += "							<A href=\"" + a[i][1] + "\">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertProjectsSideMenu(nCur)
{
	var s = "";
	//list of options
	var a = [ ["PROJECTS", "projects-government.html" ] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=right class=\"mymenuwhite\">";
		s += "							<A href=\"" + a[i][1] + "\">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertNewsSideMenu(nCur)
{
	var s = "";
	//list of options
	var a = [ ["NEWS", "news.html" ] , 
		["RECOGNITION", "recognition2.html"] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=right class=\"mymenuwhite\">";
		s += "							<A href=\"" + a[i][1] + "\">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertServicesSideMenu(nCur)
{
	var s = "";
	//list of options
	var a = [ ["SERVICES", "services.html" ] , 
		["SPECIAL<br />PROJECTS<br />GROUP", "special-projects.html"] , 
		["RENOVATION", "renovation.html"] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=\"right\" class=\"mymenuwhite\">";
		s += "							<A href=\"" + a[i][1] + "\">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertSubsSideMenu(nCur, nLevel)
{
	var s = "";
	var l2 = "";
	if (nLevel != null)
	{
		if (nLevel == 2)
		{
			l2 = "../../";
		}
	}
	//list of options
	var a = [ ["CURRENT BIDS", "sub-curbids.html" ] , 
		["ONGOING<br />PROJECTS", "sub-ongoing.html"], 
		["SUBCONTRACTOR<br />DOCUMENTS", "sub-documents.html"], 
		["SAFETY<br />PARTNER", "sub-SafetyPartner.html"] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=right class=\"mymenuwhite\">";
		s += "							<A href=\"" + l2 + a[i][1] + "\">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertContactsSideMenu(nCur)
{
	var s = "";
	var l2 = "";
	if (nCur == 22)
	{
		nCur = 2;
		l2 = "../";
	}
	else if (nCur == 44)
	{
		nCur = 4;
		l2 = "../../";
	}
	//list of options
	var a = [ ["CONTACT US", "contact.html" ] , 
		["LOCATIONS", "locations.html"], 
		["CLIENT LOGIN", "Winter_PM/default.asp"], 
		["WINTER EMPLOYEES", "WinterAppCenter/01Main/Login.aspx"], 
		["FILE UPLOAD", "WinterAppCenter/90FileExchange/FileDrop.aspx"] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=113 border=0>";
	s += "					<tr height=55>";
	s += "						<td width=112>&nbsp;</td>";
	s += "						<td width=1>&nbsp;</td></tr>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=10>";
		s += "						<td align=\"right\" class=\"mymenuwhite\">";
		s += "							<A href=\"" + l2 + a[i][1] + "\"" + (a[i][0] == "WINTER EMPLOYEES" ? " target=\"_blank\"" : "") + ">";
		s += (nCur == i ? "<font color=white>" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
		s += "					<tr height=8><td></td></tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertProjectsMenu(nCur)
{
	var s = "";
	//list of options
	var a = [ ["GOVERNMENT", "projects-government.html" ] , 
		["HEALTHCARE", "projects-healthcare.html" ] , 
		["HIGHER EDUCATION", "projects-highered.html" ] ,  
		["HISTORIC", "projects-historic.html" ] ,  
		["HOSPITALITY", "projects-hospitality.html" ] ,  
		["K-12 EDUCATION", "projects-k12.html" ] ,  
		["MULTI-FAMILY", "projects-multifamily.html" ] ,  
		["OFFICE", "projects-office.html" ] ,  
		["RELIGIOUS", "projects-religious.html" ] ,  
		["RENOVATION", "projects-renovation.html" ] ,  
		["RESTAURANT", "projects-restaurant.html" ] ,  
		["RETAIL", "projects-retail.html" ] ,  
		["SPORTS/RECREATION", "projects-sports.html" ] ,  
		["SPECIAL PROJECTS GROUP", "projects-special.html" ] ]; 

	s = "				<table cellpadding=0 cellspacing=0 width=175 border=0>";
	for (var i = 0; i < a.length; i++)
	{
		s += "					<tr height=13>";
		s += "						<td align=left class=\"mymenuproj\">";
		s += "							<A href=\"" + a[i][1] + "\">";
		s += (nCur == i ? "<font color=\"#454545\">" : "") + a[i][0] + (nCur == i ? "</font>" : "") + "</a>";
		s += "						</td>";
		s += "					</tr>";
	}
	s += "				</table>";
	
	document.write(s);
}



function InsertRecognitionMenu()
{
	var s = "";
	//list of options
	var a = [ "NORTH GEORGIA COLLEGE AND STATE UNIVERSITY" , 
		"CLAYTON COUNTY RECREATION CENTER" , 
		"GILMER COUNTY COURTHOUSE" ,  
		"WIREGRASS LIFESTYLE CENTER" ,  
		"SPELMAN COLLEGE" ,  
		"GEORGIA STATE CAPITOL" ,  
		"MARRIOTT COURTYARD CHATTANOOGA" ,  
		"ATLANTA PUBLIC SCHOOLS" ,  
		"GEORGIA INSTITUTE OF TECHNOLOGY" ,  
		"MOUNT VERNON UPPER SCHOOL" ,  
		"CUMBERLAND MALL" ]; 

	s = "<table cellpadding=0 cellspacing=0 border=0>";
	for (var i = 0; i < a.length; i++)
	{
		s += "<tr height=\"20\">";
		s += "	<td align=\"right\" class=\"mymenuproj\">";
		s += "		<a id=\"anc" + i + "\" href=\"Javascript:ShowReference(" + i + ")\" ";
		s += "onmouseover=\"this.style.color='#454545'\" onmouseout=\"this.style.color=(nCurIndex==" + i + "?'#454545':'white')\">" + a[i] + "</a>";
		//s += (i == 0 ? "<font color=\"#454545\">" : "") + a[i] + (i == 0 ? "</font>" : "") + "</a>";
		s += "	</td>";
		s += "</tr>";
	}
	s += "</table>";
	
	document.write(s);

	ShowReference(0);
}



function HighlightMe(num, nCur)
{
	for (var i = 0; i < 5; i++)
	{
		if (i == num)
		{
			document.getElementById("tbcName" + i).className = "stddark";
			document.getElementById("tbcTitle" + i).className = "smalldark";
		}
		else if (i != nCur)
		{
			document.getElementById("tbcName" + i).className = "stdwhite";
			document.getElementById("tbcTitle" + i).className = "smallwhite";
		}
	}
}


function RemoveHighlight(num, nCur)
{
	if (num != nCur)
	{
		document.getElementById("tbcName" + num).className = "stdwhite";
		document.getElementById("tbcTitle" + num).className = "smallwhite";
	}
}



function ShowReference(nIndex)
{
	var elem;
	nCurIndex = nIndex;
	for (var i = 0; i < 11; i++)
	{
		elem = document.getElementById("tbr" + i);
		if (elem != null)
		{
			elem.style.display = i == nIndex ? "inline" : "none";
		}
		elem = document.getElementById("anc" + i);
		if (elem != null)
		{
			elem.style.color = i == nIndex ? "#454545": "white";
		}
	}
}
