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=620;
	height=620;

	//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("../../dynapop.htm",width,height);

	else if(level==3)
		openWin("../audiopop.htm",width,height);

	else if(level==4)
		openWin("../../audiopop.htm",width,height);

}


function Open_Audio(szSource)
{
	width=620;
	height=620;

	//If resolution is 640x480
	if(screen.width < 800)
		height=350;
	//If resolution is 800x600
	else if(screen.width < 1024)
		height=500;

	openWin(szSource,width,height);
}


//function that swaps pictures
function Switch(imgName,imgObjName)
{
  if (document.images)
  {
   document.images[imgName].src = eval(imgObjName + ".src");
  }
}


//Function for Pop Ups
function open_jaycopter(szDescription,szCopyright)
{
	popDescription = szDescription;
	popCopyright = szCopyright;

	width=880;
	height=670;

	//If resolution is 640x480
	if(screen.width < 800)
	{
		width =600;
		height=450;
	}
	//If resolution is 800x600
	else if(screen.width < 1024)
	{
		width=770;
		height=580;
	}

	openWin("../inventions/jaycopter/jaycopter.htm",width,height);

}

function MM_openTimeLineWindow() { //v2.0
  window.open('../timeline.html','TimeLine','scrollbars=yes,resizable=yes,width=600,height=450');
}

function MM_openTimeLineWindow_lv2() { //v2.0
  window.open('../../timeline.html','TimeLine','scrollbars=yes,resizable=yes,width=600,height=450');
}

function MM_openTimeLineWindow_lv0() { //v2.0
  window.open('timeline.html','TimeLine','scrollbars=yes,resizable=yes,width=600,height=450');
}

//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 open Pioneer Toolbox window
function openToolbox(URL, Width, Height)
{

aWindow=window.open(URL,"PopUp","width="+Width+",height="+Height+",resizable=no,scrollbars=no,left=100,top=60");

    aWindow.resizeTo(Width, Height);

    aWindow.focus();
    if(aWindow.opener == null)
    {
        aWindow.opener = window;
        aWindow.opener.name = "opener";
    }

}

//footnote pop up (note that there are two versions of popup_foot (see below)
function popup_foot(footdef, txt)
{

var input;

input="<HTML><head><title>"+footdef+"</title></head><body bgcolor = #929963>"+
		"<p align=>"+txt+"<\/p>"+
		
		"<p align='center'><font face='Arial' size='3pt'><a href='javascript:self.close()'><img src=../images/close.jpg><\/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();

}

//for innovation folders
function popup_foot2(footdef, txt)
{
		
var input;

input="<HTML><head><title>"+footdef+"</title></head><body bgcolor = #929963>"+
		"<p align=>"+txt+"<\/p>"+
		
		"<p align='center'><font face='Arial' size='3pt'><a href='javascript:self.close()'>"+
		"<img src=../../images/close.jpg><\/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();

}



//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] = 'Image copyright the Alberta Research Council';
aClickMessages[3] = 'Image copyright the Canadian Intellectual Property Office';
aClickMessages[4] = 'Image copyright the City of Red Deer';
aClickMessages[5] = 'Image copyright the Applied History Research Group and the Western Irrigation District';
aClickMessages[6] = 'Image copyright the Sir Alexander Galt Museum';
aClickMessages[7] = 'Image copyright the Government of Alberta';
aClickMessages[8] = 'Image copyright the Canadian Intellectual Property Office';
aClickMessages[9] = 'Image copyright Ted Jacobs';
aClickMessages[10] = 'Image copyright Jewish Historical Society of Southern Alberta';
aClickMessages[11] = 'Image copyright \"The Albertan\"';
aClickMessages[12] = 'Image copyright Calgary Heritage Advisory Board';
aClickMessages[13] = 'Image copyright Alberta Agriculture, Food and Rural Development';
aClickMessages[14] = 'Image copyright the University of Alberta';
aClickMessages[15] = 'Image copyright the City of Edmonton Archives';
aClickMessages[16] = 'Image copyright PEGG';
aClickMessages[17] = 'Image copyright the Provincial Archives of Alberta (A8617)';
aClickMessages[18] = 'Image reproduced with the permission of the Minister of Public Works and Government Services Canada, 2002 and Courtesy of Natural Resources Canada, Geological Survey of Canada, photo # F92S0051';
aClickMessages[19] = 'This audiofile is copyright to the CKUA';
aClickMessages[20] = 'Image copyright the Alberta Aviation Museum';
aClickMessages[21] = 'Image copyright Canadian Aviation Hall of Fame';
aClickMessages[22] = 'Image copyright the Edmonton Journal';
aClickMessages[23] = 'Image copyright the Edmontonian';
aClickMessages[24] = 'Image copyright the BCL Landview Systems Inc';
aClickMessages[25] = 'Image copyright the Government of Canada';
aClickMessages[26] = 'Image copyright the Heritage Community Foundation, courtesy the Fort McMurray Heritage Park';
aClickMessages[27] = 'Image copyright the Sidney C. Ells, as found in Bituminous Sands of Northern Alberta, Occurence and Economic Possibilities';
aClickMessages[28] = 'Image copyright Sidney C. Ells, as found in his book, Bituminous Sands of Northern Alberta';
aClickMessages[29] = 'Image copyright Katch Kan Limited';
aClickMessages[30] = 'Image copyright computerworld.com';
aClickMessages[31] = 'Image copyright Lethbridge Herald';
aClickMessages[32] = 'Image copyright Margaret Dickson';
aClickMessages[33] = 'Image copyright the Alberta Heritage Foundation for Medical Research';
aClickMessages[34] = 'Image copyright SagaTech Electronics Inc.';
aClickMessages[35] = 'Image copyright Alberta Innovation';
aClickMessages[36] = 'Image copyright Pfizer Inc.';
aClickMessages[37] = 'Image copyright the University of Alberta';
aClickMessages[38] = 'Image copyright the Rosebud Historical Society';
aClickMessages[39] = 'Image copyright Monarch History and Book Club';
aClickMessages[40] = 'Image copyright NASA';
aClickMessages[41] = 'Image copyright Sun Microsystems';
aClickMessages[42] = 'Image copyright SMART Technologies Inc.';
aClickMessages[43] = 'Image copyright J. Blanchard/O\'Reilly Network';
aClickMessages[44] = 'Image copyright Simon Fraser University Library Editorial Cartoons Collection';
aClickMessages[45] = 'Image copyright the Public Record Office, The National Archives (U.K.)';
aClickMessages[46] = 'Image copyright the Manning Innovation Awards';
aClickMessages[47] = 'Image copyright the Alberta E-Business Leadership Awards';
aClickMessages[48] = 'Image copyright the US National Oceanic and Atmospheric Administration';
aClickMessages[49] = 'Vol. XV,, No. 20, Page 315#. Reproduced from the National Library of Canada\'s website Images Canada';
aClickMessages[50] = 'Image copyright Canadian Illustrated News, Vol. II,, No. 10, Page 145#. Reproduced from the National Library of Canada\'s website Images Canada';
aClickMessages[51] = 'Image copyright Canadian Illustrated News, Vol. X,, No. 10, Page 149#. Reproduced from the National Library of Canada\'s website Images Canada';
aClickMessages[52] = 'Image copyright BioMS Medical Corp.';
aClickMessages[53] = 'Image copyright F. Hoffman La Roche Ltd.';
aClickMessages[54] = 'Image copyright L & R Wang Enterprises Ltd.';
aClickMessages[55] = 'Image copyright Oncolytics Biotech Inc.';
aClickMessages[56] = 'Image copyright Mark S. Peppler, D.Phil';
aClickMessages[57] = 'Image copyright the University of Lethbridge';
aClickMessages[58] = 'Image copyright the Canada Science and Technology Museum';
aClickMessages[59] = 'Image copyright the California Institute of Techology';
aClickMessages[60] = 'Reproduced with the permission of the Minister of Public Works and Government Services Canada, 2002 and Courtesy of Natural Resources Canada, Geological Survey of Canada, photo # B94S0054.';
aClickMessages[61] = 'Image copyright the National Archives and Records Administration';
aClickMessages[62] = 'Image copyright www.PDImages.com';
aClickMessages[63] = 'Image copyright Foremost Industries Inc.';
aClickMessages[64] = 'Image copyright the National Aeronautics and Space Administration (NASA)';
aClickMessages[65] = 'Image copyright SMART Technologies Inc.';
aClickMessages[66] = 'Image copyright the Australian Antarctic Division';
aClickMessages[67] = 'Image copyright of Foremost Industries';
aClickMessages[68] = 'Image copyright Canadian Institute of Mining, Metallurgy and Petroleum';
aClickMessages[69] = 'Image copyright Dynatec Corporation';
aClickMessages[70] = 'Image copyright of the Metals Branch of the American Institute of Mining, Metallurgical and Petroleum Engineers';
aClickMessages[71] = 'Image copyright Minerals, Metals and Materials Society';
aClickMessages[72] = 'Image copyright Haul-All Equipment Systems';
aClickMessages[73] = 'Image copyright Canada Post Corporation, 1996. Reproduced with Permission';
aClickMessages[74] = 'Image copyright Canoe, a division of Netgraphe';
aClickMessages[75] = 'Image copyright Olson Curling Manufacturing & Supplies Ltd.';
aClickMessages[76] = 'Image copyright University of Alberta Press';
aClickMessages[77] = 'Image copyright Medalta Potteries';
aClickMessages[78] = 'Image copyright Cell-Loc Inc.';
aClickMessages[79] = 'Image copyright University of Calgary';
aClickMessages[80] = 'Image copyright Oncolytics Biotech Inc.';
aClickMessages[81] = 'Image copyright University of Lethbridge';
aClickMessages[82] = 'Image copyright the Centre for Affordable Water and Sanitation Technology';
aClickMessages[83] = 'Image copyright Alberta Chamber of Commerce';
aClickMessages[84] = 'Image copyright BW Technologies';
aClickMessages[85] = 'Image copyright Intellectual Property Institute of Canada';
aClickMessages[86] = 'Image copyright De Echte Kern b.v. Naarden';
aClickMessages[87] = 'Image copyright Library of Parliament';
aClickMessages[88] = 'Image copyright Statistics Canada';
aClickMessages[89] = 'Image copyright Organisation for Economic Co-operation and Development';
aClickMessages[90] = 'Image copyright National Research Council Institute for Aerospace Research (NRC-IAR)';
aClickMessages[91] = 'Image copyright Canadian Foundation for Innovation (CIF)';
aClickMessages[92] = 'Image copyright Canadian Institutes of Health Research (CIHR)';
aClickMessages[93] = 'Image copyright Alberta Heritage Foundation for Medical Research (AHFMR)';
aClickMessages[94] = 'Image copyright Alberta Society of Engineering and Technology (ASET)';
aClickMessages[95] = 'Image copyright CATAAlliance';
aClickMessages[96] = 'Image copyright the Alberta Informatics Circle of Research Excellence (iCORE)';
aClickMessages[97] = 'Reproduced with the permission of the Minister of Public Works and Government Services Canada, 2002 and Courtesy of Natural Resources Canada, Geological Survey of Canada, photo # F93S0358';
aClickMessages[98] = 'Image copyright the Alberta Legislative Assembly';
aClickMessages[99] = 'Image copyright Alberta Innovation and Science';
aClickMessages[100] = 'Image copyright Genome Canada';
aClickMessages[101] = 'Image copyright Alberta Energy Research Institute';
aClickMessages[102] = 'Image copyright University of Alberta, Environmental Research and Studies Centre';
aClickMessages[103] = 'Image copyright the SFU Library Editorial Cartoons Collection';
aClickMessages[104] = 'Image copyright the Canadian Association of Petroleum Producers';
aClickMessages[105] = 'Image copyright Canada Science and Technology Museum';
aClickMessages[106] = 'Image copyright SemBioSys Genetics Inc.';
aClickMessages[107] = 'Image copyright Alberta Innovation';
aClickMessages[108] = 'Image copyright the Centre for Affordable Water and Sanitation Technology ';
aClickMessages[109] = 'Image copyright Len Jubinville';
aClickMessages[110] = 'Reproduced with the permission of the Minister of Public Works and Government Services Canada, 2002 and Courtesy of Natural Resources Canada, Geological Survey of Canada';
aClickMessages[111] = 'Image copyright the Royal Tyrrell Museum';
aClickMessages[112] = 'Image copyright Oncolytics Biotech Inc.';
aClickMessages[113] = 'Image copyright Catherine C. Cole and the Red Deer and District Museum';
aClickMessages[114] = 'Image copyright the Waisman Dedication Symposium';
aClickMessages[114] = 'Image copyright the Centre for Affordable Water and Sanitation Technology';
aClickMessages[115] = 'Image copyright Glen Armstrong';
aClickMessages[116] = 'Image copyright Visual Information Technology';
aClickMessages[117] = 'Image copyright National Business Publications and Karl A. Clark';
aClickMessages[118] = 'Photo by and courtesy of Chad Shier. Copyright the Royal Tyrrell Museum';
aClickMessages[119] = 'Image copyright the Provincial Archives';
aClickMessages[120] = 'Image copyright of Olson Curling Manufacturing & Supplies Ltd.';
aClickMessages[121] = 'Image copyright of Morris Flewwelling';
aClickMessages[122] = 'Reprinted from The Art Bin Magazine';
aClickMessages[123] = 'Image copyright Canadian Images';
aClickMessages[124] = 'Image copyright UNFCCC';
aClickMessages[125] = 'Reproduced with the permission of the Minister of Public Works and Government Services Canada, 2002 and Courtesy of Natural Resources Canada, Geological Survey of Canada, photo # 105701.';
aClickMessages[126] = 'Image copyright Bayer AG';
aClickMessages[127] = 'Image copyright Calgary Science Centre';
aClickMessages[128] = 'Image copyright Odyssium - Edmonton Space and Science Centre';
aClickMessages[129] = 'Image copyright Science Outreach - Athabasca';
aClickMessages[130] = 'Image copyright WebMD Corporation';
aClickMessages[131] = 'Image copyright the Copyright Board of Canada';
aClickMessages[132] = 'Image copyright Stemp & Company';
aClickMessages[133] = 'Image copyright Canadian Illustrated News, Vol. VI,, No. 26, Page 413#. Reproduced from the National Library of Canada\'s website Images Canada';
aClickMessages[134] = 'Image copyright The Society of Composers, Authors and Music Publishers of Canada (SOCAN)';
aClickMessages[135] = 'Image copyright Olds College Centre for Innovation';
aClickMessages[136] = 'Image copyright Research Services Office, U of A';
aClickMessages[137] = 'Image copyright Byrd & Block Communications Inc.';
aClickMessages[138] = 'Image copyright Canada Institute for Scientific and Technical Information (CISTI)';
aClickMessages[139] = 'Image copyright Industry Canada';
aClickMessages[140] = 'Image copyright Inno-Centre Alberta';
aClickMessages[141] = 'Image copyright Syncrude Canada Ltd.';
aClickMessages[142] = 'Image copyright Dupont';
aClickMessages[143] = 'Image copyright the Canadian Information and Privacy Office';
aClickMessages[144] = 'Image copyright the CN Photo Collection';
aClickMessages[145] = 'Image copyright the Lethbridge Regional Science Festival';
aClickMessages[146] = 'Image copyright David Latta';
aClickMessages[147] = 'Image copyright Farmer\'s Advocate and Home Journal, Winnipeg';
aClickMessages[148] = 'Image copyright Farm and Ranch Review';
aClickMessages[149] = 'Image copyright Gambit Products Ltd.';
aClickMessages[150] = 'Image copyright Family Practice Newspaper, Vol. 5, No. 20 August 2, 1993';
aClickMessages[151] = 'Image copyright 2001, 2002 Porcupine Stone Productions';
aClickMessages[152] = 'Image copyright Rosebud Historical Society';
aClickMessages[153] = 'Image copyright Nova Scotia Museum of Natural History';
aClickMessages[154] = 'Image copyright Marilyn Thompson';
aClickMessages[155] = 'Image copyright Parks Canada';
aClickMessages[156] = 'Image copyright Laurie Tandrup';
aClickMessages[157] = 'Image copyright ATCO Group';
aClickMessages[158] = 'Image copyright ATCO Structures';
aClickMessages[159] = 'Image copyright Dynastream Innovations';
aClickMessages[160] = 'Image copyright Telephone Historic Centre';
aClickMessages[161] = '';
aClickMessages[162] = 'Image copyright BioWare Corp.';
aClickMessages[163] = 'Image copyright Big Rock Brewery';
aClickMessages[164] = 'Image copyright Kinnikinnick Foods Inc.';
aClickMessages[165] = 'Image copyright New Era Nutrition';
aClickMessages[166] = 'Image copyright The Lacombe Research Centre';

