function SetupContact(website_description)
{
	document.write("<a href=\"mailto:info@heritagecommunityfdn.org?Subject="+website_description+" Web Site\" title=\"Contact us by Email\">Contact us by Email</a>");
}

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function reloadMenu()
{
		javascript:{if(parent.frames[0]&&parent.frames['bottom_banner'].Go)parent.frames['bottom_banner'].Go()}
}

//function that swaps pictures
function Switch(imgName,imgObjName)
{
  if (document.images)
  {
   document.images[imgName].src = eval(imgObjName + ".src");
  }
}

//function that keeps in frames
//passpage = document.URL;
//if (top.location == self.location)
//top.location.href="master.htm?" + passpage


//Function to open new windows
function openWin(URL, Width, Height)
{

aWindow=window.open(URL,"PopUp","width="+Width+",height="+Height+",resizable=yes,scrollbars=yes,left=100,top=60");

    aWindow.resizeTo(Width, Height);

    aWindow.focus();
    if(aWindow.opener == null)
    {
        aWindow.opener = window;
        aWindow.opener.name = "opener";
    }

}

//Function for Dynamic Pop Ups
function DynaPop(szlevel,szImgSource,szDescription,nCopyrightNum)
{

	popSource = szImgSource;
	popDescription = szDescription;
	popCopyright = nCopyrightNum;
	level = szlevel;

	if (popDescription == "description")
		popDescription = "";

	width=583;
	height=600;

	<!--//If resolution is 640x480-->
	if(screen.width < 800)
		height=350;
	<!--If resolution is 800x600-->
	else if(screen.width < 1024)
		height=500;

	if(level==0)
		openWin("dynapop.htm",width,height);

	else if(level==1)
		openWin("../dynapop.htm",width,height);

}

function dynaglosspop(szlevel,szterm)
{
      glossaryterm =  szterm;
      level = szlevel;

      width=575;
	  height=370;

		<!--//If resolution is 640x480-->
	  if(screen.width < 800)
		height=350;
	<!--If resolution is 800x600-->
	  else if(screen.width < 1024)
		height=375;

      if(level==0)
		openWin("glossary_pop.php?term=" + glossaryterm,width,height);

	  else if(level==1)
		openWin("../glossary_pop.php?term=" + glossaryterm,width,height);


}

<!--
//Create French and English Links
frLink = window.location.href.replace('/eng/','/fr/');
frLink = '<map name="FPMap1"><area href="' + frLink + '" coords="77, 9, 127, 23" shape="rect"></map>';

engLink = window.location.href.replace('/fr/','/eng/');
engLink = '<map name="FPMap1"><area href="' + engLink + '" coords="20, 9, 70, 23" shape="rect"></map>';

//function that swaps pictures
function Switch(id,name)
{
if (document.images){
    if (document.images[id]){document.images[id].src=eval(name+".src");
    } else {
      if (document.layers){
        for (i=0; i < document.layers.length; i++) {
          if (document.layers[i].document.images[id]) {
          document.layers[i].document.images[id].src=eval(name+".src");
          break;
          }
        }
      }
    }
  }
}

//Function to open new windows
function openWin(URL, Width, Height)
{

aWindow=window.open(URL,"PopUp","width="+Width+",height="+Height+",resizable=yes,scrollbars=yes,left=100,top=60");

	aWindow.resizeTo(Width, Height);

	aWindow.focus();
	if(aWindow.opener == null)
	{
		aWindow.opener = window;
		aWindow.opener.name = "opener";
	}

}


//This is so NetSCape 4 doesn't sketch out when resized
function WM_netscapeCssFix()
{
    // This part was inspired by Matthew_Baird@wayfarer.com
    // It gets around another unfortunate bug whereby Netscape
    // fires a resize event when the scrollbars pop up. This
    // checks to make sure that the window's available size
    // has actually changed.

    if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth ||             document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight)
        {
        document.location = document.location;
        }
}

function WM_netscapeCssFixCheckIn()
{
    // This function checks to make sure the version of Netscape
    // in use contains the bug; if so, it records the window's
    // width and height and sets all resize events to be handled
    // by the WM_netscapeCssFix() function.

    if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4))
        {
        if (typeof document.WM == 'undefined')
            {
            document.WM = new Object;
            }

        if (typeof document.WM.WM_scaleFont == 'undefined')
            {
            document.WM.WM_netscapeCssFix = new Object;
            document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
            document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
            }

        window.onresize = WM_netscapeCssFix;
        }
}

WM_netscapeCssFixCheckIn()

function openFootnote(footnote)
{
	var PopUpString =
         "width=350,height=150,left=100,top=100,scrollbars=yes";

	winFootnote = window.open('footnotes.html', "Footnote", PopUpString);

	if(winFootnote.opener == null)
	{
		winFootnote.opener = window;
		winFootnote.opener.name = "opener";
	}
	winFootnote.opener.footnote=footnote;
	winFootnote.location.reload();
	winFootnote.focus();
}