//-----------------------------------------------------------------------------
// Script for all web pages for header, left navigation, and footer scripts
//-----------------------------------------------------------------------------

function pageHeader(pageType)
{
	//-------------------------------------------	
	// The following code creates the header
	//-------------------------------------------	
	document.write("<table width=100% border=0 cellspacing=0 cellpadding=0 background=../../images/nav/nav_bar.gif>");
	document.write("	<tr height=132>");
	document.write("		<td width=204 valign=top><img src=../../images/HoranLogo-red.jpg height=129></td>");
	document.write("		<td width=10 valign=bottom>");
	document.write("			<table border=0 cellpadding=0 cellspacing=0>");
	document.write("				<tr>");
	document.write("					<td>&nbsp;</td>");
	document.write("				</tr>");
	document.write("			</table>");
	document.write("		</td>");
	
	if (pageType == "Home")
	{	document.write("	<td width=40 valign=bottom><a href=../../index.htm><img name=btn_home border=0 src=../../images/nav/nav_home.jpg height=44></a></td>");
	}
	else
	{	document.write("  	<td width=40 valign=bottom><a href=../../index.htm><img name=btn_home border=0 src=../../images/nav/nav_home.jpg height=44></a></td>");
	}
	
	if (pageType == "Commercial")
	{	document.write("		<td width=115 valign=bottom><a href=index.htm><img name=btn_commercial border=0 src=../../images/nav/nav_commercial.jpg height=44></a></td>");
	}
	else
	{
		if (pageType == "Home")
		{	document.write("		<td width=115 valign=bottom><a href=../../Commercial/index.htm><img name=btn_commercial border=0 src=../../images/nav/nav_commercial.jpg height=44></a></td>");
		}
		else
		{	document.write("		<td width=115 valign=bottom><a href=../../Commercial/index.htm><img name=btn_commercial border=0 src=../../images/nav/nav_commercial.jpg height=44></a></td>");
		}
	}
	
	if (pageType == "Residential")
	{	document.write("		<td width=115 valign=bottom><a href=../../Residential/index.html><img name=btn_residential border=0 src=../../images/nav/nav_residential.jpg height=44></a></td>");
	}
	else
	{
		if (pageType == "Home")
		{	document.write("		<td width=115 valign=bottom><a href=../../Residential/index.html><img name=btn_residential border=0 src=../../images/nav/nav_residential.jpg height=44></a></td>");
		}
		else
		{	document.write("		<td width=115 valign=bottom><a href=../../Residential/index.html><img name=btn_residential border=0 src=../../images/nav/nav_residential.jpg height=44></a></td>");
		}
	}
	
	if (pageType == "Services")
	{	document.write("		<td width=115 valign=bottom><a href=../../Services/index.html><img name=btn_services border=0 src=../../images/nav/nav_services.jpg height=44></a></td>");
	}
	else
	{
		if (pageType == "Home")
		{	document.write("		<td width=115 valign=bottom><a href=../../Services/index.html><img name=btn_services border=0 src=../../images/nav/nav_services.jpg height=44></a></td>");
		}
		else
		{	document.write("		<td width=115 valign=bottom><a href=../../Services/index.html><img name=btn_services border=0 src=../../images/nav/nav_services.jpg height=44></a></td>");
		}
	}
	
	if (pageType == "Home")
	{	document.write("		<td width=83 valign=bottom><a href=../../Projects.html><img name=btn_projects border=0 src=../../images/nav/nav_projects.jpg height=44></a></td>");
	}
	else
	{	document.write("		<td width=83 valign=bottom><a href=../../Projects.html><img name=btn_projects border=0 src=../../images/nav/nav_projects.jpg height=44></a></td>");
	}
	
	if (pageType == "AboutUs")
	{	document.write("		<td width=115 valign=bottom><a href=../../CompanyHistory.html><img name=btn_aboutus border=0 src=../../images/nav/nav_aboutus.jpg height=44></a></td>");
	}
	else
	{
		if (pageType == "Home")
		{	document.write("		<td width=115 valign=bottom><a href=../../Employees/CompanyHistory.html><img name=btn_aboutus border=0 src=../../images/nav/nav_aboutus.jpg height=44></a></td>");
		}
		else
		{	document.write("		<td width=115 valign=bottom><a href=../../Employees/CompanyHistory.html><img name=btn_aboutus border=0 src=../../images/nav/nav_aboutus.jpg height=44></a></td>");
		}
	}
	
	if (pageType == "Home")
	{	document.write("		<td width=224 valign=bottom><a href=../../ContactUs.html><img name=btn_contactus border=0 src=../../images/nav/nav_contactus.jpg height=44></a></td>");
	}
	else
	{	document.write("		<td width=224 valign=bottom><a href=../../ContactUs.html><img name=btn_contactus border=0 src=../../images/nav/nav_contactus.jpg height=44></a></td>");
	}
	
	document.write("	</tr>");
	document.write("</table>");
}

function leftNav(pageTitle, pageType, projectTitle)
{
	//-------------------------------------------	
	// The following code creates the leftNav 
	//-------------------------------------------
	
	document.write("<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>");
	document.write("	<TR>");
	document.write("		<TD CLASS=typeHeader>");
	document.write("			<BR>");
		
	if (projectTitle == "HolyFamily")
	{	document.write("&nbsp;&nbsp;<b>Project:</b>&nbsp;&nbsp;<i>Holy Family</i><BR><BR>");
	}
	else if (projectTitle == "YMCA")
	{	document.write("&nbsp;&nbsp;<b>Project:</b>&nbsp;&nbsp;<i>YMCA</i><BR><BR>");
	}
	else if (projectTitle == "StEdParishHall")
	{	document.write("&nbsp;&nbsp;<b>Project:</b>&nbsp;&nbsp;<i> St. Edwards Parish Hall</i><BR><BR>");
	}
	else if (projectTitle == "StEdMtgCntr")
	{	document.write("&nbsp;&nbsp;<b>Project:</b>&nbsp;&nbsp;<i> St. Edwards Meeting Center</i><BR><BR>");
	}
	else
	{	document.write("&nbsp;&nbsp;BAD DATA<BR><BR>");
	}
	
	document.write("		</TD>");
	document.write("	</TR>");
	document.write("	<TR>");
	document.write("		<TD CLASS=navListings>");
	
	if (pageTitle == "Projects")
	{
		//<!-- ------- Project Status --------- -->
		document.write("<a href=index.htm decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageType == "Home")
		{	document.write("<font size=3 color=red>&#9632;&nbsp;Project Home</font>");
		} else
		{	document.write("<font size=3 color=black>&#9632;&nbsp;Project Home</font>");
		}
		document.write("</a>");
		document.write("<BR><BR>");
		
		//<!-- ------- Project Status --------- -->
		if (pageType == "TeamSite")
		{	document.write("<a href=../Album/index.html target=_blank decoration=none>&nbsp;&nbsp;&nbsp;");
		}
		else
		{	document.write("<a href=Album/index.html target=_blank decoration=none>&nbsp;&nbsp;&nbsp;");
		}
		if (pageType == "Home")
		{	document.write("<font size=3 color=red>&#9632;&nbsp;Project Photo Album</font>");
		} else
		{	document.write("<font size=3 color=black>&#9632;&nbsp;Project Photo Album</font>");
		}
		document.write("</a>");
		document.write("<BR><BR>");
		
		
		if (pageType == "BidPage")
		{
			//<!-- ------- Project Bid Documents --------- -->
			document.write("<a href=BidDocuments.htm decoration=none>&nbsp;&nbsp;&nbsp;");
			if (pageType == "BidDocs")
			{	document.write("<font size=3 color=red>&#9632;&nbsp;Bid Documents</font>");
			} else
			{	document.write("<font size=3 color=black>&#9632;&nbsp;Bid Documents</font>");
			}
			document.write("</a>");
			document.write("<BR><BR>");
		}
		
		//<!-- ------- Project Team Contact Info --------- -->
		/*
		document.write("<a href=TeamContactInfo.htm decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageType == "TeamContactInfo")
		{	document.write("<font size=3 color=red>&#9632;&nbsp;Team Contact Info</font>");
		} else
		{	document.write("<font size=3 color=black>&#9632;&nbsp;Team Contact Info</font>");
		}
		document.write("</a>");
		*/
		document.write("<BR><BR>");
		
		
		//<!-- ------ Emergency Number ---------- -->
		document.write("<BR><BR><BR>");
		document.write("<font class=typeHeader color=black>&nbsp;&nbsp;&nbsp;24 hour Emergency #:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(309) 208-5055<br></font>");
		document.write("<BR><BR><BR><BR>");
	}
	else
	{
		document.write("&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;<br>");
	}

	
	document.write("</TD>");
	document.write("</TR>");
	document.write("</TABLE>");
}

function pageFooter(pageType)
{
	//-------------------------------------------	
	// The following code creates the footer 
	//-------------------------------------------	
	document.write("<table width=100% border=0 cellspacing=0 cellpadding=0>");
	document.write("	<tr>");
	document.write("		<td width=100%>");
	document.write("			<table border=0 cellpadding=5 cellspacing=0 width=100% background=../../images/nav/nav.gif>");
	document.write("				<tr>");
	document.write("					<td align=left valign=bottom>");
	document.write("						<font face='Arial Rounded MT Bold' size=1>");
	document.write("						1720 W. Chanute <br>");
	document.write("						Peoria, IL 61615<br>");
	document.write("						(309) 691-3133");
	document.write("						</font>");
	document.write("					</td>");
	document.write("					<td align=right valign=bottom>");
	document.write("						<font face='Arial Rounded MT Bold' size=1>");
	document.write("						Fax: (309) 691-1841<br>");
	document.write("						<a href=mailto:katie@horanconstruction.com>askus@horanconstruction.com</a>");
	document.write("						</font>");
	document.write("					</td>");
	document.write("				</tr>");
	document.write("			</table>");
	document.write("		</td>");
	document.write("	</tr>");
	//---------------------------------------------------------------------------------------------------------
	//  Commenting out the images on each page - the section below was puts the images on each page
	//---------------------------------------------------------------------------------------------------------
	/*
	document.write("	<tr>");
	document.write("		<td width=100%>");
	document.write("			<br>");
	document.write("			<p align=center>");
	document.write("				<img border=0 src=../images/icon-Jack.jpg width=124 height=71>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
	document.write("				<img border=0 src=../images/icon-BBB.gif width=130 height=64>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
	document.write("				<img border=0 src=../images/icon-PeoriaAreaChamber.gif width=133 height=75>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
	document.write("				<img border=0 src=../images/icon-carpenters_union.jpg width=84 height=75>");
	document.write("			</p>");
	document.write("		</td>");
	document.write("	</tr>");
	*/
	document.write("</table>");	
		
}
