function createHeader(title) {
	var headHTML = "";
//	headHTML	+= "<link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\" />";
	headHTML	+= "<SPAN STYLE='font-family:ARIAL;font-size:50px;color:red'>\n";
	headHTML	+= "<a TARGET=_top HREF='/'><IMG HEIGHT=50 WIDTH=50 BORDER=0 SRC='/ByB.gif'></a>\n";
	headHTML	+= "Backyard Bouncers\n";
	headHTML	+= "</SPAN>";
	headHTML	+= " <SPAN STYLE='font-size:25px;font-weight:bold'>\n";
	headHTML	+= title + "\n";
	headHTML	+= "</SPAN>\n";
	document.getElementById("header").innerHTML = headHTML;
}

function createFooter() {
	var linkArr	= [
		{
		 label	: "Home",
		 link	: "/index.html"
		},
		{
		 label	: "Rules",
		 link	: "/Rules.html"
		},
		{
		 label	: "Products",
		 link	: "/Products.html"
		},
		{
		 label	: "Drivers<BR>Wanted",
		 link	: "/HelpWanted.html"
		},
		{
		 label	: "FAQ",
		 link	: "/FAQ.html"
		},
		{
		 label	: "Custom<BR>Cakes",
		 link	: "http://www.CakesByShelby.com"
		},
		{
		 label	: "Party<BR>Planning",
		 link	: "http://www.party-a-gogo.com/"
		},
		{
		 label	: "Kid Drop<BR>Zone",
		 link	: "http://www.kiddropzone.com/"
		},
		{
		 label	: "Contact<BR>Us",
		 link	: "/Contact.html"
		}
	];
	var footDiv	= document.getElementById("footer");
	footDiv.innerHTML	= "";
	var footTable	= document.createElement("TABLE");
	footTable.align	= "center";
	footTable.style.fontSize	= "15px";
	footTable.style.textAlign	= "center";
	var sloganRow	= footTable.insertRow(-1);
	sloganRow.insertCell(-1).appendChild(new Image()).src	= "/Pics/bullet-green.gif";
	var sloganCell	= sloganRow.insertCell(-1);
	sloganRow.insertCell(-1).appendChild(new Image()).src = "/Pics/bullet-green.gif";
	var sloganText	= document.createElement("SPAN");
	sloganText.innerHTML	= "Backyard Bouncers - The cure for the active child";
	sloganText.style.fontWeight	= "bold";
	sloganText.style.textAlign	= "center";
	sloganText.style.verticalAlign	= "middle";
	sloganCell.appendChild(sloganText);
	sloganCell.colSpan	= (linkArr.length*2) - 1;
	var linkRow	= footTable.insertRow(-1);
	linkRow.insertCell(-1).appendChild(new Image()).src	= "/Pics/bullet-green.gif";
	for (var lIdx = 0; lIdx < linkArr.length; lIdx++) {
		var link	= linkArr[lIdx];
		var linkText	= document.createElement("A");
		linkText.innerHTML	= link.label;
		linkText.href	= link.link;
		linkRow.insertCell(-1).appendChild(linkText);
		linkRow.insertCell(-1).appendChild(new Image()).src	= "/Pics/bullet-green.gif";
	}
	footDiv.appendChild(footTable);
}

// The following functions are for the comedy-lounge. 
// I need to clean this up and either move this file to www.comedy-lounge.com 
// or have some other way of doing this.
function genHead(title,author,url) {
	var headHTML = "";
//	headHTML	+= "<SPAN STYLE='font-size:50px;color:red'>\n";
//	headHTML	+= "<a TARGET=_top HREF='http://www.comedy-lounge.com'><IMG BORDER=0 SRC='/Pics/BackyardBouncers-Icon50.jpg'></a>\n";
//	headHTML	+= "Backyard Bouncers\n";
//	headHTML	+= "</SPAN>";
	headHTML	+= "<H1 ALIGN=CENTER>" + title + "</H1>\n";
	if (author) {
		headHTML += "<H3 ALIGN=CENTER>by " + author;
		if (url) { headHTML += " [<a HREF=\"" + url + "\">" + url + "</a>]"; }
		headHTML += "</H3>\n";
	}
	document.title	= title;
	document.getElementById("header").innerHTML = headHTML;
}

function genSub(name,email,web,date) {
	var subHTML = "";
	subHTML += "<ADDRESS>";
	subHTML += "<P><B>Submitted By:</B>" + name;
	subHTML += "<BR><B>Email:</B>" + email;
	subHTML += "<BR><B>Webpage:</B>" + web;
	subHTML += "<BR>" + date;
	subHTML += "</P>";
	subHTML += "</ADDRESS>";
	document.getElementById("submitter").innerHTML = subHTML;
}

function genFoot() {
	var footHTML = "";
	footHTML	+= "<TABLE BORDER=1 ALIGN=CENTER>\n";
	footHTML	+= "<TR ALIGN=CENTER>\n";
	footHTML	+= "    <TD><a HREF=\"http://www.comedy-lounge.com\"><FONT COLOR=\"#FF0000\" SIZE=+1>Back To The Comedy Lounge</FONT></a></TD>\n";
	footHTML	+= "</TR>\n";
	footHTML	+= "</TABLE>\n";
	document.getElementById("footer").innerHTML = footHTML;
}

