                // 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";

	rollSprite[10] = new Image;
	rollSprite[10].src = dir+"navtheo.jpg";
	rollSprite[11] = new Image;
	rollSprite[11].src = dir+"navtheoglo.jpg";

	rollSprite[12] = new Image;
	rollSprite[12].src = dir+"navteddybear.jpg";
	rollSprite[13] = new Image;
	rollSprite[13].src = dir+"navteddybearglo.jpg";

	rollSprite[14] = new Image;
	rollSprite[14].src = dir+"navmatthew.jpg";
	rollSprite[15] = new Image;
	rollSprite[15].src = dir+"navmatthewglo.jpg";

	rollSprite[16] = new Image;
	rollSprite[16].src = dir+"navangelindex.jpg";
	rollSprite[17] = new Image;
	rollSprite[17].src = dir+"navangelindexglo.jpg";

	rollSprite[18] = new Image;
	rollSprite[18].src = dir+"navdavis.jpg";
	rollSprite[19] = new Image;
	rollSprite[19].src = dir+"navdavisglo.jpg";

	rollSprite[20] = new Image;
	rollSprite[20].src = dir+"navgunnar.jpg";
	rollSprite[21] = new Image;
	rollSprite[21].src = dir+"navgunnarglo.jpg";
	
	rollSprite[22] = new Image;
	rollSprite[22].src = dir+"nav_jason.jpg";
	rollSprite[23] = new Image;
	rollSprite[23].src = dir+"nav_jason_glo.jpg";
	
	rollSprite[24] = new Image;
	rollSprite[24].src = dir+"nav_keepr.jpg";
	rollSprite[25] = new Image;
	rollSprite[25].src = dir+"nav_keepr_glo.jpg";

	
}
}

function hiLite(which, mouseOver)
{
	if (!theClient)
		return false;
	if (which == 00) 
	{
		document.img0.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Walls" : "";
		return true;
	} 
	else if (which == 01) 
	{
		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 == 02) 
	{
		document.img2.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "How to say good-bye and cope with the loss" : "";
	} 
	else if (which == 03) 
	{
		document.img3.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Submit a Memorial" : ""; 
	} 
	else if (which == 04) 
	{
		document.img4.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Visit our Memorial Mall to find items to remember your pet by" : "";
	}
	else if (which == 05) 
	{
		document.img5.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Theo's Wall" : ""; 
	} 
	else if (which == 06) 
	{
		document.img6.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Teddy Bear's Wall" : "";
	} 
	else if (which == 07) 
	{
		document.img7.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Matthew's Wall" : ""; 
	} 
                 else if (which == 08) 
	{
		document.img8.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "A listing of all memorials on our site" : ""; 
	} 
		else if (which == 09) 
	{
		document.img9.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Davis' Wall" : ""; 
	} 
		else if (which == 10) 
	{
		document.img10.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Gunnar's Wall" : ""; 
	} 
		else if (which == 11) 
	{
		document.img11.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Angel Jason's Wall" : ""; 
	} 
			else if (which == 12) 
	{
		document.img12.src = rollSprite[2 * which + mouseOver].src;
		window.status = mouseOver ? "Keeper of the Clans Page" : ""; 
	} 
	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(5, 1)) return true;" onmouseout="if (hiLite(5, 0)) return true;" href="pwall_theo.htm">');
	document.write('<IMG height="26" alt="Angel Theo\'s Wall" src="images/navtheo.jpg" width="143" border="0" name="img5" NOSAVE></A>');

	document.write('<A onmouseover="if (hiLite(6, 1)) return true;" onmouseout="if (hiLite(6, 0)) return true;" href="pwall_teddybear.htm">');
	document.write('<IMG height="26" alt="Angel Teddy Bear\'s Wall" src="images/navteddybear.jpg" width="143" border="0" name="img6" NOSAVE></A>');

 	document.write('<A onmouseover="if (hiLite(7, 1)) return true;" onmouseout="if (hiLite(7, 0)) return true;" href="pwall_matthew.htm">');
 	document.write('<IMG height="26" alt="Angel Matthew\'s Wall" src="images/navmatthew.jpg" width="143" border="0" name="img7" NOSAVE></A>');

 	document.write('<A onmouseover="if (hiLite(9, 1)) return true;" onmouseout="if (hiLite(9, 0)) return true;" href="pwall_davis.htm">');
 	document.write('<IMG height="26" alt="Angel Davis\' Wall" src="images/navdavis.jpg" width="143" border="0" name="img9" NOSAVE></A>');

 	document.write('<A onmouseover="if (hiLite(10, 1)) return true;" onmouseout="if (hiLite(10, 0)) return true;" href="pwall_gunnar.htm">');
 	document.write('<IMG height="26" alt="Angel Gunnar\'s Wall" src="images/navgunnar.jpg" width="143" border="0" name="img10" NOSAVE></A>');

 	document.write('<A onmouseover="if (hiLite(11, 1)) return true;" onmouseout="if (hiLite(11, 0)) return true;" href="pwall_jason.htm">');
 	document.write('<IMG height="26" alt="Angel Jason\'s Wall" src="images/nav_jason.jpg" width="143" border="0" name="img11" 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>');

	document.write('<A onmouseover="if (hiLite(8, 1)) return true;" onmouseout="if (hiLite(8, 0)) return true;" href="angel_index.htm">');
	document.write('<IMG height="26" alt="This index lists all memorials on the site" src="images/navangelindex.jpg" width="143" border="0" name="img8" NOSAVE></A>');
	
	
 	document.write('<A onmouseover="if (hiLite(12, 1)) return true;" onmouseout="if (hiLite(12, 0)) return true;" href="keeper_wall.htm">');
 	document.write('<IMG height="26" alt="Keeper of the Cairns Wall honors CP Members who have passed while active in our rescue" src="images/nav_keepr.jpg" width="143" border="0" name="img12" NOSAVE></A>');

}

var helpwin = null;
function InfoWindow(strURL, width, height)
{
	if (!helpwin || helpwin.closed)
	{
		helpwin = window.open(strURL, 'infopopup'+width+height,'width='+width+',height='+height+',dependent=yes,location=no,menubars=no,toolbars=no,resizable=yes,scrollbars=no');
	}
	else
	{
		helpwin.close();
		helpwin = window.open(strURL, 'infopopup'+width+height,'width='+width+',height='+height+',dependent=yes,location=no,menubars=no,toolbars=no,resizable=yes,scrollbars=no');
	}
	helpwin.focus();
}
