
<!--
//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 SetupContact(website_description, counter)
{
	if (counter == 1)
	{
		document.write("<a href=\"mailto:info@heritagecommunityfdn.org?Subject="+website_description+" Web Site\" title=\"Contact us by Email\">Contact us by Email</a>");
	}
	else if (counter == 2) // French
	{
		document.write("<a href=\"mailto:info@heritagecommunityfdn.org?Subject="+website_description+" Web Site\" title=\"Nous Rejoindre\">Nous Rejoindre</a>");
	}
}

//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 openAdventures(URL)
{

aWindow=window.open(URL,"Adventures","width=600,height=450,left=100,top=60");
	
	aWindow.resizeTo(600, 440);
	
	aWindow.focus();
	if(aWindow.opener == null)
	{
		aWindow.opener = window;
		aWindow.opener.name = "opener";
	}
}

//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 to open new windows
function openEdukit(URL, Width, Height)
{

//winEdukit=window.open(URL,"Edukit","width="+Width+",height="+Height+",resizable=yes,scrollbars=yes,left=100,top=60");
aWindow=window.open(URL,"Edukit","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(level,szImgSource,szDescription,nCopyrightNum)
{
	popSource = szImgSource;
	popDescription = szDescription;
	popCopyright = nCopyrightNum;

	if (popDescription == "description")
		popDescription = "";
	
	width=575;
	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)

	else if(level==2)
		openWin("../../../eng/dynapop.htm",width,height)

	else if(level==3)
		openWin("../../../fr/dynapop.htm",width,height)
}

//Function for Flash Regions Movie
function openRegion(URL)
{
	nHeight = 450;

	if(screen.width<800)
		nHeight = 350;

	URL="../../flash/eng/regions/" + URL;

	regions=window.open(URL,"Regions","width=610,height="+nHeight+",resizable=yes,scrollbars=yes,left=30,top=30");

	regions.focus();
}

//Function for Flash Regions Movie
function openSitemapRegion(URL)
{
	nHeight = 450;

	if(screen.width<800)
		nHeight = 350;

	URL="../flash/eng/regions/" + URL;

	regions=window.open(URL,"Regions","width=610,height="+nHeight+",resizable=yes,scrollbars=yes,left=30,top=30");

	regions.focus();
}

function openSitemapRegion_fr(URL)
{
	nHeight = 450;

	if(screen.width<800)
		nHeight = 350;

	URL="../flash/fr/regions/" + URL;

	regions=window.open(URL,"Regions","width=610,height="+nHeight+",resizable=yes,scrollbars=yes,left=30,top=30");

	regions.focus();
}


function openRegion_fr(URL)
{
	nHeight = 450;

	if(screen.width<800)
		nHeight = 350;

	URL="../../flash/fr/regions/" + URL;

	regions=window.open(URL,"Regions","width=610,height="+nHeight+",resizable=yes,scrollbars=yes,left=30,top=30");

	regions.focus();
}

//Women Bio Pop Ups
function openBio(varURL,menu)
{
	nHeight = 450;

	if(screen.width<800)
		nHeight = 350;

	women=window.open(varURL,"Women","width=600,height="+nHeight+",resizable=no,scrollbars=yes,left=30,top=30");

	if(women.opener == null)
	{
		women.opener = window;
	}

	//women.opener.url = varURL;
	//women.opener.menu = menu;
	//women.location.reload();
	women.focus();
}

//Women Memoir Pop Ups
function openMem(varURL,menu)
{
	nHeight = 450;

	if(screen.width<800)
		nHeight = 350;

	memoir=window.open(varURL,"Memoir","width=600,height="+nHeight+",resizable=no,scrollbars=yes,left=100,top=60");

	if(memoir.opener == null)
	{
		memoir.opener = window;
	}

	//women.opener.url = varURL;
	//women.opener.menu = menu;
	//women.location.reload();
	memoir.focus();
}
//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();
}

