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 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(level,szImgSource,szDescription,szCopyright)
{
	popSource = szImgSource;
	popDescription = szDescription;
	popCopyright = szCopyright;

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

	width=660;
	height=680;

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

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

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

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

	else if(level==3)
		openWin("../audiopop.htm",width,height);

	else if(level==4)
		openWin("../../audiopop.htm",width,height);

}

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

//Function to pop up window for footnotes.  
function openFootnote(footnote) 
{
	var PopUpString =
         "width=350,height=150,left=100,top=100,scrollbars=yes";
	
	winFootnote = window.open('../footnote.html', "Footnote", PopUpString);
	
	if(winFootnote.opener == null)
	{
		winFootnote.opener = window;
		winFootnote.opener.name = "opener";
	}
	winFootnote.opener.footnote=footnote;
	winFootnote.location.reload();
	winFootnote.focus();
}
  
//Function to display copyright.
nCurrentMessage=0;
var overImage=0;
aClickMessages = new Array();
aClickMessages[0] = 'Image copyright the Heritage Community Foundation';
aClickMessages[1] = 'Image copyright the Glenbow Museum, Art Gallery, Library and Archives';
aClickMessages[2] = 'Photo courtesy of The Peace River Centennial Museum';
aClickMessages[3] = 'Photo courtesy of Native Cultural Arts Museum, Grouard';
aClickMessages[4] = 'Photo courtesy of the Provincial Museum of Alberta';
aClickMessages[5] = 'Map courtesy of Indian and Northern Affairs Canada, Alberta Region';
aClickMessages[6] = 'Photo courtesy of Alberta Community Development';


