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 DynaPop(level,szImgSource,szDescription)
{
	popSource = szImgSource;
	popDescription = szDescription;

	if (popDescription == "description")
		popDescription = "";
	
	width=750;
	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);	

}



function popup_glossary(glossarydef, txt)
{
		
var input;

input="<HTML><head><title>"+footdef+"</title><link href="http://www.library.ualberta.ca/css/hcfwrap.css" rel="stylesheet" type="text/css">
</head><body bgcolor = #111111>"+
		"<p align=>"+txt+"<\/p>"+
		
		"<p align='center'><font face='Arial' size='3pt'><a href='javascript:self.close()'>"+
		"[close]<\/a><\/font><\/p><\/BODY><\/HTML>"


var dynWin = window.open("","",",width=350,height=200,resizable=yes,scrollbars=yes");
		dynWin.document.write(input);
		
		dynWin.document.close();

		dynWin.focus();

}

