//-----------------------------------------------------------------------------
// 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>");
	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>");
	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>");
	document.write("		<td width=115 valign=bottom><a href=Residential/index2.html><img name=btn_residential border=0 src=images/nav/nav_residential.jpg height=44></a></td>");
	document.write("		<td width=115 valign=bottom><a href=Services/index2.html><img name=btn_services border=0 src=images/nav/nav_services.jpg height=44></a></td>");
	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>");
	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>");
	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)
{
	//-------------------------------------------	
	// The following code creates the leftNav 
	//-------------------------------------------
	
	document.write("<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=150 BORDER=0>");
	document.write("	<TR>");
	document.write("		<TD CLASS=typeHeader>");
	document.write("			<BR>");
		
	if (pageType == "Commercial")
	{	document.write("&nbsp;&nbsp;COMMERCIAL<BR>");
	}
	else if (pageType == "Residential")
	{	document.write("&nbsp;&nbsp;RESIDENTIAL<BR>");
	}
	else if (pageType == "Subcontractor")
	{	document.write("&nbsp;&nbsp;SUBCONTRACTOR<BR>");
	}
	else if (pageType == "Customer")
	{	document.write("&nbsp;&nbsp;CUSTOMER<BR>");
	}
	else if (pageType == "Admin")
	{	document.write("&nbsp;&nbsp;ADMIN SITE<BR>");
	}
	
	document.write("		</TD>");
	document.write("	</TR>");
	document.write("	<TR>");
	document.write("		<TD CLASS=navListings>");
	
	if (pageType == "Commercial")
	{
		<!-- ------- Design / Build --------- -->
		document.write("<a href=DesignBuild.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "DesignBuild")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Design/Build&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Build For Lease --------- -->
		document.write("<a href=BuildForLease.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "BuildForLease")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Build For Lease&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Projects --------- -->
		document.write("<a href=Projects.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "Projects")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Projects&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- References --------- -->
		document.write("<a href=References.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "References")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;References&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- For Sale/Lease --------- -->
		document.write("<a href=ForSaleLease.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "ForSaleLease")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;For Sale/Lease&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Estimating --------- -->
		document.write("<a href=Estimating.asp decoration=none>");
		if (pageTitle == "Estimating" || pageTitle == "GetEstimate" || pageTitle == "NewSubs" || pageTitle == "BidSchedule")
		{	document.write("&nbsp;&nbsp;&nbsp;<font size=3 color=red>&#9632;</font>");
			document.write("&nbsp;Estimating&nbsp;");
			document.write("</a>");
			
			if (pageTitle == "GetEstimate")
			{
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=GetEstimate.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2 color=red>-Get an estimate</font>");
				document.write("</a>");
				
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=NewSubs.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2>-New Subcontractors<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& Vendors</font>");
				document.write("</a>");
			}
			else if (pageTitle == "NewSubs")
			{
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=GetEstimate.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2>-Get an estimate</font>");
				document.write("</a>");
				
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=NewSubs.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2 color=red>-New Subcontractors<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& Vendors</font>");
				document.write("</a>");
			}
			else if (pageTitle == "BidSchedule")
			{
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=GetEstimate.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2>-Get an estimate</font>");
				document.write("</a>");
				
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=NewSubs.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2>-New Subcontractors<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& Vendors</font>");
				document.write("</a>");		
			}
			else
			{
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=GetEstimate.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2>-Get an estimate</font>");
				document.write("</a>");
				
				document.write("<BR>&nbsp;&nbsp;&nbsp;");
				document.write("<a href=NewSubs.asp decoration=none>");
				document.write("&nbsp;&nbsp;<font size=2>-New Subcontractors<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& Vendors</font>");
				document.write("</a>");
			}
		} 
		else
		{	document.write("&nbsp;&nbsp;&nbsp;<font size=3 color=red>&#9632;</font>");
			document.write("&nbsp;Estimating&nbsp;");
			document.write("</a>");
		}
		document.write("<BR>");
		
		<!-- ------- For Sale/Lease --------- -->
		document.write("<a href=SignIn.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "SignIn")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Sign-In&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		document.write("<BR><BR><BR><BR><BR>");
		
		<!-- ------- Tell Us About Your Project --------- -->
		document.write("		</TD>");
		document.write("		</TR>");
		document.write("		<TR>");
		document.write("		<TD CLASS=navListingsRed>");
		<!-- ------- Tell Us About Your Project --------- -->
		document.write("			<font size=1>");
		document.write("			<a href=YourProject.asp decoration=none>");
		document.write("			&nbsp;&nbsp;<i><b>Tell Us About Your Project</b></i>&nbsp;");
		document.write("			</a></font>");
		document.write("			<BR>");	
		document.write("		</TD>");
		document.write("		</TR>");
		document.write("		<TR>");
		document.write("		<TD>");
		document.write("			&nbsp;<BR><BR>&nbsp;<BR><BR>&nbsp;");
	}	
	else if (pageType == "Residential")
	{
		<!-- ------- Single Family --------- -->
		document.write("<a href=SingleFamily2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "SingleFamily")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Single Family&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Duplex/Condo --------- -->
		document.write("<a href=DuplexCondo2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "DuplexCondo")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Duplex/Condo&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Special Incentive --------- -->
		document.write("<a href=SpecialIncentive2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "SpecialIncentive")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Special Incentive&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Projects --------- -->
		document.write("<a href=Projects2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "Projects")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Projects&nbsp;");
		document.write("</a>");
		document.write("<BR>");
	
		<!-- ------- References --------- -->
		document.write("<a href=References2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "References")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;References&nbsp;");
		document.write("</a>");
		document.write("<BR>");
	
		<!-- ------- For Sale/Lease --------- -->
		document.write("<a href=ForSaleLease2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "ForSaleLease")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;For Sale/Lease&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- I Want This --------- -->
		document.write("<a href=IWantThis2.html decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "IWantThis")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;I Want This!&nbsp;");
		document.write("</a>");
		document.write("<BR>");
	}
	else if (pageType == "Admin")
	{
		<!-- ------- Projects --------- -->
		document.write("<a href=Admin/Projects.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "Projects")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Projects&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Bid List --------- -->
		document.write("<a href=Admin/BidList.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "BidList")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Bid List&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Send Bid Notification --------- -->
		document.write("<a href=Admin/SendBidNotification.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "SendBidNotification")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Send Bid Notification&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Available Property --------- -->
		document.write("<a href=Admin/AvailableProperty.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "AvailableProperty")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Available Property&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- View Interests --------- -->
		document.write("<a href=Admin/ViewInterests.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "ViewInterests")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;View Interests&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Subcontractors --------- -->
		document.write("<a href=Admin/Subcontractors.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "Subcontractors")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Subcontractors&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Change Password --------- -->
		document.write("<a href=Admin/ChangePassword.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "ChangePassword")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Change Password&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Add User --------- -->
		document.write("<a href=Admin/AddUser.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "AddUser")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Add User&nbsp;");
		document.write("</a>");
		document.write("<BR>");
	}	
	else if (pageType == "Subcontractor")
	{
		<!-- ------- Upcoming Bids --------- -->
		document.write("<a href=UpcomingBids.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "UpcomingBids")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Upcoming Bids&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Inquire About A Bid --------- -->
		document.write("<a href=Subcontractors/BidInquiry.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "BidInquiry")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Inquire About A Bid&nbsp;");
		document.write("</a>");
		document.write("<BR>");
	
		<!-- ------- Update Information --------- -->
		document.write("<a href=Subcontractors/UpdateInfo.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "UpdateInfo")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Update Info&nbsp;");
		document.write("</a>");
		document.write("<BR>");
		
		<!-- ------- Change Password--------- -->
		document.write("<a href=Subcontractors/ChangePassword.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "ChangePassword")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Change Password&nbsp;");
		document.write("</a>");
		document.write("<BR>");	
	}
	else if (pageType == "Customer")
	{
		<!-- ------- Project Status --------- -->
		document.write("<a href=ProjectStatus.asp decoration=none>&nbsp;&nbsp;&nbsp;");
		if (pageTitle == "ProjectStatus")
		{	document.write("<font size=3 color=red>&#9632;</font>");
		} else
		{	document.write("<font size=3 color=red>&#9632;</font>");
		}
		document.write("&nbsp;Project Status&nbsp;");
		document.write("</a>");
		document.write("<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>");
	if (pageType == "Home")
	{
		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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
		document.write("				<img border=0 src=../images/icon-Inc5000.gif height=75>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
		document.write("				<img border=0 src=../images/icon-TopBusLogo.gif height=75>");
		document.write("			</p>");
		document.write("		</td>");
		document.write("	</tr>");
	}
	document.write("</table>");
		
}
