                // the following script can be freely reused just
                // keep these comments
                // (c) 1999 Jennifer Warner Design
                
var theClient = false;
var badUnix = false;
var version = parseInt(navigator.appVersion.substring(0,1));
   
// called only if browser is Netscape (table bg problems with their UNIX builds prior to v4)
function badUnixTest() 
{
	if ((navigator.appVersion.indexOf("X11") != -1) && 
		(version < 4)) 
	{
		badUnix = true;
	}
}

if (navigator.appName == "Microsoft Internet Explorer") 
{
	var     isIE4 = false;
	var isIE3 = false;

	if (version == 3) {
		isIE3 = true;
	}
	else if (version >= 4) {
		isIE3 = true;
		isIE4 = true;
	}
	if (isIE3 | isIE4) {
		theClient = true;
	}
}

if (navigator.appName == "Netscape") 
{
	var     isNS4 = false;
	var     isNS3 = false;
        
	badUnixTest();

	if (version == 3) {
		isNS3 = true;
	}
	else if (version >= 4) {
		isNS3 = true;
		isNS4 = true;
	}
	if (isNS3 | isNS4) {
		theClient = true;
	}
}

var rollSprite = new Array();

function initRollover(dir)
{
if (theClient) 
{
	rollSprite[0] = new Image;
	rollSprite[0].src = dir+"navangelwalls.jpg";
	rollSprite[1] = new Image;
	rollSprite[1].src = dir+"navangelwallsglo.jpg";

	rollSprite[2] = new Image;
	rollSprite[2].src = dir+"navcpkids.jpg";
	rollSprite[3] = new Image;
	rollSprite[3].src = dir+"navcpkidsglo.jpg";

	rollSprite[4] = new Image;
	rollSprite[4].src = dir+"navbv.jpg";
	rollSprite[5] = new Image;
	rollSprite[5].src = dir+"navbvglo.jpg";

	rollSprite[6] = new Image;
	rollSprite[6].src = dir+"navform.jpg";
	rollSprite[7] = new Image;
	rollSprite[7].src = dir+"navformglo.jpg";

	rollSprite[8] = new Image;
	rollSprite[8].src = dir+"navmall.jpg";
	rollSprite[9] = new Image;
	rollSprite[9].src = dir+"navmallglo.jpg";
}
}

function hiLite(which, mouseOver)
{
	if (!theClient)
		return false;
	if (which == 0) 
	{
		document.img0.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Walls" : "";
		return true;
	} 
	else if (which == 1) 
	{
		document.img1.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Col. Potter Kid's Wall, for all the kids that crossed over while in foster care" : ""; 
	} 
	else if (which == 2) 
	{
		document.img2.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "How to say good-bye and cope with the loss" : "";
	} 
	else if (which == 3) 
	{
		document.img3.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Submit a Memorial" : ""; 
	} 
	else if (which == 4) 
	{
		document.img4.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Visit our Memorial Mall to find items to remember your pet by" : "";
	}
	return true;
}


function navigation()
{
	document.write('<A href="index.html"><IMG height="108" alt="Col. Potter Buf Memorial Park" src="images/frontpagehome.jpg" width="143" border="0" NOSAVE></A>');
	document.write('<br>');
	document.write('<br>');
	document.write('<A onmouseover="if (hiLite(0, 1)) return true;" onmouseout="if (hiLite(0, 0)) return true;" href="pwall_theo.htm">');
	document.write('<IMG height="26" src="images/navangelwalls.jpg" width="143" border="0" name="img0" NOSAVE></A>');

	document.write('<A onmouseover="if (hiLite(1, 1)) return true;" onmouseout="if (hiLite(1, 0)) return true;" href="cpkidswall_main.htm">');
	document.write('<IMG height="26" alt="Col. Potter Kid\'s Wall, for all the kids that crossed over while in foster care" src="images/navcpkids.jpg" width="143" border="0" name="img1" NOSAVE></A>');

	document.write('<A onmouseover="if (hiLite(2, 1)) return true;" onmouseout="if (hiLite(2, 0)) return true;" href="bvpoems.htm">');
	document.write('<IMG height="26" alt="How to say good-bye and cope with the loss" src="images/navbv.jpg" width="143" border="0" name="img2" NOSAVE></A>');

	document.write('<A onmouseover="if (hiLite(3, 1)) return true;" onmouseout="if (hiLite(3, 0)) return true;" target="_newMemorial" href="forms/frm_memorial.htm">');
	document.write('<IMG height="26" alt="Submit a Memorial" src="images/navform.jpg" width="143" border="0" name="img3" NOSAVE></A>');

	document.write('<A onmouseover="if (hiLite(4, 1)) return true;" onmouseout="if (hiLite(4, 0)) return true;" href="memorial_mall.htm">');
	document.write('<IMG height="26" alt="Visit our Memorial Mall to find items to remember your pet by" src="images/navmall.jpg" width="143" border="0" name="img4" NOSAVE></A>');
}

