function write_head(title, stylePath, label, imageNum, totalImages)
{
document.write("<html>")
document.write("<head>")

if( label != "" ) {
document.write("	<title>" + label + " | " + title + " | Image " + imageNum + " of " + totalImages + "</title>")
} else {
document.write("	<title>" + title + "</title>")
}
document.write("	<link href=\"" + stylePath + "\" rel=\"stylesheet\" />")
document.write("	<meta http-equiv=\"imagetoolbar\" content=\"no\" />")
document.write("</head>")
}

function write_header(rootPath, pageId, pageTitle)
{
document.write("<body ID=\"" + pageId + "\" background=\"" + rootPath + "images/background.jpg\">")

document.write("<table class=\"layout\">")
document.write("<tr>")
document.write("<td class=\"content\">")

document.write("<table class=\"headerLayout\">")
document.write("<tr>")
document.write("	<td>")
document.write("      <div class=\"left\">")
document.write("		<table class=\"navAndLogoLayout\">")
document.write("		<tr>")
document.write("			<td class=\"pawPrint\">")
document.write("				<img oncontextmenu=\"return false\" src=\"" + rootPath + "images/paws.gif\">")
document.write("			</td>")
document.write("			<td>")
document.write("				<div class=\"companyName\"><a href=\"" + rootPath + "index.html\">Paws the Moment</a></div>")
document.write("            <div class=\"companyType\">Photography</div>")
document.write("			</td>")
document.write("		</tr>")
document.write("		<tr>")
document.write("			<td colspan=2 class=\"navLayout\">")
document.write("            <div class=\"right\">")
document.write("				<table>")
document.write("				<tr>")
document.write("					<td id=\"firstNav\">")
document.write("						<a href=\"" + rootPath + "index.html\">")
document.write("						Home</a>")
document.write("					</td>")
document.write("					<td>")
document.write("						<a href=\"" + rootPath + "main/PhotosForSale.html\">")
document.write("						Photos</a>")
document.write("					</td>")
document.write("					<td>")
document.write("						<a href=\"" + rootPath + "main/Events.html\">")
document.write("						Events</a>")
document.write("					</td>")
document.write("					<td>")
document.write("						<a href=\"" + rootPath + "main/ContactUs.html\">")
document.write("						Contact Us</a>")
document.write("					</td>")
document.write("				</tr>")
document.write("				</table>")
document.write("            </div>")
document.write("			</td>")
document.write("		</tr>")
document.write("		</table>")
document.write("      </div>")
document.write("	</td>")
document.write("	<td class=\"pageTitle\">")
document.write("		<div class=\"title\"> &nbsp;" + pageTitle + "</div>")
document.write("	</td>")
document.write("</tr>")
document.write("<tr>")
document.write("   <td colspan=\"2\">")
document.write("      <hr />")      
document.write("   </td>")
document.write("</tr>")
}

function write_breadCrumbing(currentLocation)
{
document.write("<tr class=\"breadCrumbRow\">")
document.write("	<td colspan=\"2\">")
document.write("		<div class=\"breadCrumbLinks\">" + currentLocation + "</div>")
document.write("	</td>")
document.write("</tr>")
document.write("</table>")
document.write("<div class=\"centered\">")
document.write("<br />")
document.write("<br />")
document.write("<br />")
document.write("<br />")
}