
function RenderHeaderHtml(sectionTitle)
{
	document.write("<table class=\"HeaderContainer\">");
	document.write("\t<tr>");
	document.write("\t\t<td class=\"HeaderLogoContainer\">");
	document.write("\t\t\t<div class=\"HeaderLogoContainer\">");
	document.write("\t\t\t\t<img src=\"images/logo.gif\" width=\"426\" height=\"30\" alt=\"International Plastics\" border=\"0\" />");
	document.write("\t\t\t</div>");
	document.write("\t\t</td>");
	document.write("\t\t<td class=\"HeaderSectionTitle\">");
	document.write("\t\t\t<div>");
	document.write("\t\t\t\t<img src=\"images/header" + sectionTitle + ".gif\" width=\"300\" height=\"76\" alt=\"\" border=\"0\" />");
	document.write("\t\t\t</div>");
	document.write("\t\t</td>");
	document.write("\t</tr>");
	document.write("</table>");
}

function RenderLeftNavigationHtml(activeItem)
{
	itemNameArray = new Array("Home", "Design &amp; Development", "Medical Molding", "Molding", "Moldmaking", "Assembly", "Technology", "Services", "Markets", "Media Gallery", "Contact Us");
	itemLinkArray = new Array("index", "designDevelopment", "medicalMolding", "molding", "moldmaking", "assembly", "technology", "services", "markets", "images", "contactUs");

	document.write("<table class=\"LeftNavigationContainer\">");
	
	for (i = 0; i < itemNameArray.length; i++)
	{
		document.write("\t<tr>");
		document.write("\t\t<td class=\"LeftNavigationItem\">");
		
		if (itemNameArray[i] == activeItem)
		{
			document.write("<a href=\"" + itemLinkArray[i] + ".html\" class=\"LeftNavigationActiveItem\">" + itemNameArray[i] + "</a>");
		}
		else
		{
			document.write("<a href=\"" + itemLinkArray[i] + ".html\" class=\"LeftNavigationItem\">" + itemNameArray[i] + "</a>");
		}
		
		document.write("\t\t</td>");		
		document.write("\t</tr>");
		document.write("\t<tr>");
		document.write("\t\t<td class=\"LeftNavigationSpacer\"></td>");
		document.write("\t</tr>");
	}	
	
	document.write("</table>");
}

function RenderLeftFooterHtml()
{
	document.write("<table class=\"Footer\">");
	document.write("\t<tr>");
	document.write("\t\t<td>");
	document.write("<span class=\"Footer\">");
	document.write("Copyright 2007, International Plastics LLc");
	document.write("<br />4965 N. Campbell Dr.");
	document.write("<br />Menomonee Falls, WI 53051");
	document.write("<br /><br />Tel. 888-MOLDING");
	document.write("<br /><a href=\"mailto:sales@internationalplasticsllc.com\">sales@internationalplasticsllc.com</a>");
	document.write("</span>");
	document.write("\t\t</td>");		
	document.write("\t</tr>");
	document.write("</table>");
}

function RenderRightSubNavigationHtml(section, activeItem)
{
	switch(section)
	{
		case "mediagallery":
		{
			itemNameArray = new Array("Images", "Video", "Literature");
			itemLinkArray = new Array("images", "video", "literature");
			
			break;
		}
		
		case "molding":
		{
			itemNameArray = new Array("Markets");
			itemLinkArray = new Array("markets");
			
			break;
		}
		
		case "technology":
		{
			break;
		}
	}

	document.write("<table class=\"SubNavigationContainer\">");
	
	for (i = 0; i < itemNameArray.length; i++)
	{
		document.write("\t<tr>");
		document.write("\t\t<td class=\"SubNavigationItem\">");
		
		if (itemLinkArray[i] == activeItem)
		{
			document.write("<a href=\"" + itemLinkArray[i] + ".html\" class=\"SubNavigationActiveItem\">" + itemNameArray[i] + "</a>");
		}
		else
		{
			document.write("<a href=\"" + itemLinkArray[i] + ".html\" class=\"SubNavigationItem\">" + itemNameArray[i] + "</a>");
		}
		
		document.write("\t\t</td>");		
		document.write("\t</tr>");
		document.write("\t<tr>");
		document.write("\t\t<td class=\"SubNavigationSpacer\"></td>");
		document.write("\t</tr>");
	}
	
	document.write("</table>");
}

function RenderRightImageContainerHtml(section)
{
	switch(section)
	{
		case "home":
		{
			imageArray = new Array(
				"medicalTrayThree.jpg",
				"medicalBagging.jpg",
				"medicalPackaging.jpg",
				"wirelessMedicalElectrode.jpg",
				"surgicalClips.jpg",
				"dentalSurgical.jpg",
				"medicalTrayOne.jpg",
				"medicalTrayThree.jpg",
				"homeRightSmall1.jpg",
				"homeRightSmall2.jpg",
				"homeRightSmall3.jpg",
				"homeRightSmall4.jpg",
				"homeRightSmall5.jpg",
				"homeRightSmall6.jpg", 
				"homeRightSmall7.jpg", 
				"homeRightSmall8.jpg");
				
			linkArray  = new Array(
				"medicalTrayThree.jpg",
				"medicalBagging.jpg",
				"medicalPackaging.jpg",
				"wirelessMedicalElectrode.jpg",
				"surgicalClips.jpg",
				"dentalSurgical.jpg",
				"medicalTrayOne.jpg",
				"medicalTrayThree.jpg",
				"homeRightBig1.jpg",
				"homeRightBig2.jpg",
				"homeRightBig3.jpg",
				"homeRightBig4.jpg",
				"homeRightBig5.jpg",
				"homeRightBig6.jpg",
				"homeRightBig7.jpg", 
				"homeRightBig8.jpg");
	
			break;
		}
		
		case "medicalmolding":
		{
			imageArray = new Array(
				"medicalTrayThree.jpg",
				"medicalBagging.jpg",
				"medicalPackaging.jpg",
				"wirelessMedicalElectrode.jpg",
				"surgicalClips.jpg",
				"dentalSurgical.jpg",
				"medicalTrayOne.jpg",
				"medicalTrayThree.jpg",
				"beefFat.gif");
				
			linkArray  = new Array(
				"medicalTrayThree.jpg",
				"medicalBagging.jpg",
				"medicalPackaging.jpg",
				"wirelessMedicalElectrode.jpg",
				"surgicalClips.jpg",
				"dentalSurgical.jpg",
				"medicalTrayOne.jpg",
				"medicalTrayThree.jpg",
				"beefFat.gif");
	
			break;
		}
		
		case "molding":
		{
			imageArray = new Array(
				"homeRightSmall1.jpg",
				"homeRightSmall2.jpg",
				"homeRightSmall3.jpg",
				"homeRightSmall4.jpg",
				"homeRightSmall5.jpg",
				"homeRightSmall6.jpg", 
				"homeRightSmall7.jpg", 
				"homeRightSmall8.jpg");
				
			linkArray  = new Array(
				"homeRightBig1.jpg",
				"homeRightBig2.jpg",
				"homeRightBig3.jpg",
				"homeRightBig4.jpg",
				"homeRightBig5.jpg",
				"homeRightBig6.jpg",
				"homeRightBig7.jpg", 
				"homeRightBig8.jpg");
		}
		
		case "moldmaking":
		{
			imageArray = new Array(
				section + "RightSmall1.jpg", 
				section + "RightSmall2.jpg",
				section + "RightSmall3.jpg");
				
			linkArray  = new Array(
				section + "RightBig1.jpg", 
				section + "RightBig2.jpg",
				section + "RightBig3.jpg");
		
			break;
		}
		
		case "assembly":
		{
			imageArray = new Array(
				"medicalTrayThree.jpg",
				"medicalBagging.jpg",
				"medicalPackaging.jpg",
				"wirelessMedicalElectrode.jpg",
				"surgicalClips.jpg",
				"dentalSurgical.jpg",
				"medicalTrayOne.jpg",
				"medicalTrayThree.jpg");
				
			linkArray  = new Array(
				"medicalTrayThree.jpg",
				"medicalBagging.jpg",
				"medicalPackaging.jpg",
				"wirelessMedicalElectrode.jpg",
				"surgicalClips.jpg",
				"dentalSurgical.jpg",
				"medicalTrayOne.jpg",
				"medicalTrayThree.jpg");
	
			break;
		}
		
		case "technology":
		{
			imageArray = new Array(
				"techClip7TN.jpg",
				"techClip7aTN.jpg", 
				"techClip7a2TN.jpg",
				"techClip1bTN.jpg",
				"marginMarker2WayTrayTN.jpg");
				
			linkArray  = new Array(
				"techClip7.gif",
				"techClip7a.gif", 
				"techClip7a2.jpg",
				"techClip1b.jpg",
				"marginMarker2WayTray.gif");
		
			break;
		}
		
		case "services":
		{
			imageArray = new Array(
				"homeRightSmall1.jpg",
				"homeRightSmall2.jpg",
				"homeRightSmall3.jpg",
				"homeRightSmall4.jpg",
				"homeRightSmall5.jpg",
				"homeRightSmall6.jpg", 
				"homeRightSmall7.jpg", 
				"homeRightSmall8.jpg");
				
			linkArray  = new Array(
				"homeRightBig1.jpg",
				"homeRightBig2.jpg",
				"homeRightBig3.jpg",
				"homeRightBig4.jpg",
				"homeRightBig5.jpg",
				"homeRightBig6.jpg",
				"homeRightBig7.jpg", 
				"homeRightBig8.jpg");
		
			break;
		}
		
		case "contactus":
		{
			imageArray = new Array(
				section + "RightSmall1.jpg");
				
			linkArray  = new Array(
				section + "RightBig1.jpg");
		
			break;
		}
	}
	
	document.write("<div class=\"RightImageContainer\">");
	
	if (document.images)
	{
		randomNumber = Math.floor(Math.random() * imageArray.length);
	}
	
	document.write("<a href=\"images/" + linkArray[randomNumber] + "\" target=\"_blank\">");
	document.write("<img src=\"images/" + imageArray[randomNumber] + "\" width=\"400\" height=\"300\" alt=\"\" border=\"0\" class=\"RightImageContainer\" />");
	document.write("</a>");
	
	document.write("</div>");
}
