// write standard page top - start

function writeTop()
{

// write logo first thing because loading the button images may take a while
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td bgcolor="black" align="center"><img src="' + pathPrefix + 'Images/Logo Martureo.Org.jpg"></td></tr></table>');

// button definitions - start  
if (document.images) {

// Home (Normal / Hover / Click / Dim)
homeNormal = new Image();
homeNormal.src = pathPrefix + "images/Button Home (Normal).jpg";
homeHover = new Image();
homeHover.src = pathPrefix + "images/Button Home (Hover).jpg";
homeClick = new Image();
homeClick.src = pathPrefix + "images/Button Home (Click).jpg";
homeDim = new Image();
homeDim.src = pathPrefix + "images/Button Home (Dim).jpg";

// Digging Deeper (Normal / Hover / Click / Dim)
deeperNormal = new Image();
deeperNormal.src = pathPrefix + "images/Button Digging Deeper (Normal).jpg";
deeperHover = new Image();
deeperHover.src = pathPrefix + "images/Button Digging Deeper (Hover).jpg";
deeperClick = new Image();
deeperClick.src = pathPrefix + "images/Button Digging Deeper (Click).jpg";
deeperDim = new Image();
deeperDim.src = pathPrefix + "images/Button Digging Deeper (Dim).jpg";

// About Martureo (Normal / Hover / Click / Dim)
martureoNormal = new Image();
martureoNormal.src = pathPrefix + "images/Button About Us (Normal).jpg";
martureoHover = new Image();
martureoHover.src = pathPrefix + "images/Button About Us (Hover).jpg";
martureoClick = new Image();
martureoClick.src = pathPrefix + "images/Button About Us (Click).jpg";
martureoDim = new Image();
martureoDim.src = pathPrefix + "images/Button About Us (Dim).jpg";

// About Website (Normal / Hover / Click / Dim)
websiteNormal = new Image();
websiteNormal.src = pathPrefix + "images/Button About Website (Normal).jpg";
websiteHover = new Image();
websiteHover.src = pathPrefix + "images/Button About Website (Hover).jpg";
websiteClick = new Image();
websiteClick.src = pathPrefix + "images/Button About Website (Click).jpg";
websiteDim = new Image();
websiteDim.src = pathPrefix + "images/Button About Website (Dim).jpg";

// Contact Martureo (Normal / Hover / Click / Dim)
contactNormal = new Image();
contactNormal.src = pathPrefix + "images/Button Contact Us (Normal).jpg";
contactHover = new Image();
contactHover.src = pathPrefix + "images/Button Contact Us (Hover).jpg";
contactClick = new Image();
contactClick.src = pathPrefix + "images/Button Contact Us (Click).jpg";
contactDim = new Image();
contactDim.src = pathPrefix + "images/Button Contact Us (Dim).jpg";

}
// button definitions - end

boxContent=new Array();
boxContent[1]='<a href="' + pathPrefix + 'index.html" target="_top" onMouseDown="imgClick(\'home\')" onMouseUp="imgHover(\'home\')" onMouseOver="imgHover(\'home\')" onMouseOut="imgNormal(\'home\')"><img src="' + pathPrefix + 'images/Button Home (Normal).jpg" border="0" name="home"></a>';
boxContent[2]='<a href="' + pathPrefix + 'deeper/deeperindex.html" target="_top" onMouseDown="imgClick(\'deeper\')" onMouseUp="imgHover(\'deeper\')" onMouseOver="imgHover(\'deeper\')" onMouseOut="imgNormal(\'deeper\')"><img src="' + pathPrefix + 'images/Button Digging Deeper (Normal).jpg" border="0" name="deeper"></a>';
boxContent[3]='<a href="' + pathPrefix + 'other/aboutmartureo.html" target="_top" onMouseDown="imgClick(\'martureo\')" onMouseUp="imgHover(\'martureo\')" onMouseOver="imgHover(\'martureo\')" onMouseOut="imgNormal(\'martureo\')"><img src="' + pathPrefix + 'images/Button About Us (Normal).jpg" border="0" name="martureo"></a>';
boxContent[4]='<a href="' + pathPrefix + 'other/aboutwebsite.html" target="_top" onMouseDown="imgClick(\'website\')" onMouseUp="imgHover(\'website\')" onMouseOver="imgHover(\'website\')" onMouseOut="imgNormal(\'website\')"><img src="' + pathPrefix + 'images/Button About Website (Normal).jpg" border="0" name="website"></a>';
boxContent[5]='<a href="' + pathPrefix + 'other/contact.html" target="_top" onMouseDown="imgClick(\'contact\')" onMouseUp="imgHover(\'contact\')" onMouseOver="imgHover(\'contact\')" onMouseOut="imgNormal(\'contact\')"><img src="' + pathPrefix + 'images/Button Contact Us (Normal).jpg" border="0" name="contact"></a>';

if (callerId=='home'){
	boxContent[1]='<img src="' + pathPrefix + 'images/Button Home (Dim).jpg" border="0" name="home">';
	}

if (callerId=='deeper'){
	boxContent[2]='<img src="' + pathPrefix + 'images/Button Digging Deeper (Dim).jpg" border="0" name="deeper">';
	}

if (callerId=='aboutmartureo'){
	boxContent[3]='<img src="' + pathPrefix + 'images/Button About Us (Dim).jpg" border="0" name="martureo">';
	}

if (callerId=='aboutwebsite'){
	boxContent[4]='<img src="' + pathPrefix + 'images/Button About Website (Dim).jpg" border="0" name="website">';
	}

if (callerId=='contact'){
	boxContent[5]='<img src="' + pathPrefix + 'images/Button Contact Us (Dim).jpg" border="0" name="contact">';
	}

callerId=="";

document.write('<table width="100%" border="0" cellspacing="0" cellpadding="2">');
document.write('<tr>');

i=1;
while (i<=5)
{
document.write('<td id="tdmiddle" align="center" bgcolor="black" width="20%"><p>'+ boxContent[i] +'</p></td>');
i++;
}

document.write('</tr></table>');
}
// write standard page top - end

// write standard page bottom - start
function writeBottom()
{
document.write('<br><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td bgcolor="black" align="center" colspan="5"><img src="' + pathPrefix + 'Images/Logo Pointing The Way.jpg"></td></tr></table>');
}
// write standard page bottom - end


// button flipper functions - start

function imgNormal(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "Normal.src");
}
}

function imgHover(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "Hover.src");
}
}

function imgClick(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "Click.src");
}
}

// button flipper functions - end
