/***************************************************
**                                                **
** Title: Image Protection JavaScript Library     **
** Date: July 26, 2000                            **
** Authors: the web and Kofi Garbrah **
** Purpose: Causes an "alert box" to Pop-Up with  **
**          a copyright message whenever a user   **
**          "right clicks" on an image.           **
**                                                **
****************************************************/


var copyright_message = 'This image or photo is copyright of the Heritage Community Foundation';

if (navigator.appName == "Netscape") {
	document.captureEvents(Event.MOUSEDOWN);
}

function imageProtect(copyright_message, mousebutton)
{
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		if (mousebutton >= 2)
		{
			alert(copyright_message); 
			return false;
		}
	}
	else if (navigator.appName == "Netscape")
	{
		if (mousebutton >= 2)
		{
			alert(copyright_message); 
			return false;
		}
	}
	else return true;
}

function run_protection() 
{
	if (run_protection.arguments.length > 0)
	{ 
		copyright_message = run_protection.arguments[0];
	}

	if (navigator.appName == 'Netscape')
	{
		alert(copyright_message);
	}
	else 
	{
		imageProtect(copyright_message,event.button);
	}
	return false;
}

<!-- // JavaScript code for randomized Heritage Trails, summaries and links -->
// The Array Function
function get_random_trail(language)
{
	if (language == "English")
	{
		document.write(en_trails[rand(en_trails.length)]);
	}
	else
	{
		document.write(fr_trails[rand(fr_trails.length)]);
	}	
}
function makeArray(len) 
{
	for (var i = 0; i < len; i++) this[i] = null;
	this.length = len;
}
// This is where the array of text/images/sounds is created.
var en_trails = new makeArray(53);
en_trails[0] = "<strong>Amber Valley and Black Settlement.</strong> Hear about the first black settlement in Alberta and Jefferson Davis Edwards, one of its most important members. Then discover how Amber Valley got its name.<br /><a href='settlement/81_Amber_Valley.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_081.ram'>Listen</a>";
en_trails[1] = "<strong>Community Halls.</strong> Learn about Alberta\'s first rural Community Halls, which had their heyday between 1914 and 1945. <br /><a href='settlement/128_Community_Halls.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_128.ram'>Listen</a>";
en_trails[2] = "<strong>Kepler Creek.</strong> Find out about the adventurous man that gave Kepler Creek its name.<br /><a href='settlement/236_Kepler_Creek.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_236.ram'>Listen</a>";
en_trails[3] = "<strong>Parlby Lake.</strong> Hear about the brothers who gave Parlby Lake its name.<br /><a href='settlement/241_Parlby_Lake.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_241.ram'>Listen</a>";
en_trails[4] = "<strong>Joe Weiss: Mountaineer.</strong> Joe Weiss found his niche in Jasper National Park as a trapper, mountaineer, photographer and, evenually, namesake of Mount Weiss.<br /><a href='settlement/256_Joe_Weiss.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_256.ram'>Listen</a>";
en_trails[5] = "<strong>Cardston.</strong> Learn about the history of some of the first Mormon settlers in Alberta, who settled in what is now Cardston.<br /><a href='settlement/262_Cardston.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_262.ram'>Listen</a>";
en_trails[6] = "<strong>Towns: Grande Prairie.</strong> Grande Prairie City was marketed heavily for settlement in the early part of the twentieth century, but its advantages as a community were always clear.<br /><a href='settlement/282_Grande_Prairie.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_282.ram'>Listen</a>";
en_trails[7] = "<strong>Peace River.</strong> The northern Peace River Crossing remained a unique settlement for many reasons, even after the railways arrived in 1916.<br /><a href='settlement/287_Peace_River.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_287.ram'>Listen</a>";
en_trails[8] = "<strong>Grouard.</strong> Grouard had valuable resources and was once called \'the Edmonton of the North.\' So why has Grouard ceased to exist as an incorporated town?<br /><a href='settlement/297_Grouard.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_297.ram'>Listen</a>";
en_trails[9] = "<strong>Scandinavian Place Names: Armena and Bardo.</strong> How did the Alberta towns Armena and Bardo get their names? Hear the story of two of the first Scandinavian settlements in the province.<br /><a href='settlement/321_Scandinavian_Names_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_321.ram'>Listen</a>";
en_trails[10] = "<strong>Scandinavian Place Names, Part Two: Dalum and Nuorison Creek.</strong> Dalum got its name thanks to a group of Danish settlers who settled near present-day Drumheller. Settlers from Finland named Nuorison Creek. Hear more about these first Scandinavian settlers.<br /><a href='settlement/326_Scandinavian_Names_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_326.ram'>Listen</a>";
en_trails[11] = "<strong>Markerville Creamery.</strong> The Markerville Creamery was an initiative set up by Mr. C.P. Marker in 1902. Hear Dorothy Field explain the history of this historic site.<br /><a href='settlement/327_Markerville_Creamery.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_327.ram'>Listen</a>";
en_trails[12] = "<strong>Ethnic Settlement in Alberta: Francophones.</strong> Oblates from France attempted to convert native and M&eacute;tis peoples to the Catholic faith beginning in the mid-1800s. Father Lacombe moved his mission to St. Albert which became a large enclave of francophone culture.<br /><a href='settlement/329_Francophones_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_329.ram'>Listen</a>";
en_trails[13] = "<strong>Ethnic Settlement in Alberta: Francophones.</strong> In the late nineteenth century, francophone culture flourished in St. Albert and Edmonton. But when the railway began to supply the community of south Edmonton with greater commercial success, the surrounding francophone communities suffered.<br /><a href='settlement/330_Francophones_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_330.ram'>Listen</a>";
en_trails[14] = "<strong>Scandinavian Place Names, Part Three: Oyen and Standard.</strong> The south-central part of Alberta has been a favourite of Scandinavian settlers since the early part of the twentieth century. Listen, and learn about the Norwegian Andrew family, and the towns of Oyen and Standard.<br /><a href='settlement/331_Scandinavian_Names_P3.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_331.ram'>Listen</a>";
en_trails[15] = "<strong>Scandinavian Place Names, Part Four: Thorsby and Tindastoll.</strong> Creek Settlers from Sweden and Iceland named the towns of Thorsby and Tindastoll in honour of their Scandinavian heritage. Listen to find out more about these towns and their settlers.<br /><a href='settlement/337_Scandinavian_Names_P4.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_337.ram'>Listen</a>";
en_trails[16] = "<strong>Scandinavian Place Names, Part Five: Valhalla.</strong> Valhalla is the mythical home of Viking gods, but it was also the Alberta home of Scandinavian settlers led by Norwegian pastor H.N. Ronning.<br /><a href='settlement/341_Scandinavian_Names_P5.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_341.ram'>Listen</a>";
en_trails[17] = "<strong>Ethnic Place Names: French, Part One: Demicharge and Cassette Rapids on the Slave River.</strong> Listen to hear of the voyageurs, French fur traders and some of the first Europeans to enter western Canada. The rapids along the Slave River provided one of the most difficult challenges to these brave men.<br /><a href='settlement/346_French_Names_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_346.ram'>Listen</a>";
en_trails[18] = "<strong>French Oblate Names, Part Two: Father Vegreville.</strong> Father Vegreville was an Oblate priest and an expert linguist of native languages. The original francophone community to the east of Edmonton named their town in his honour in 1906, and Vegreville later became the center of Ukrainian settlement.<br /><a href='settlement/353_Oblate_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_353.ram'>Listen</a>";
en_trails[19] = "<strong>German Place Names: Those that Changed After WWI.</strong> Many German towns changed their names to satisfy anti-German sentiment during the first World War. Hear more about the origin of place names in Alberta.<br /><a href='settlement/362_German_Names_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_362.ram'>Listen</a>";
en_trails[20] = "<strong>German Place Names, Part Two: Those That Stayed the Same.</strong> Listen to learn about the history behind communities like Hussar and Josephburg, which kept their German names despite hostility created by the First World War.<br /><a href='settlement/363_German_Names_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_363.ram'>Listen</a>";
en_trails[21] = "<strong>Irish Place Names: Connemara.</strong> Connemara is an Irish word meaning \'seaside.\' Discover how Connemara, Alberta got it\'s name, and what it\'s called today!<br /><a href='settlement/421_Irish_Names_Connemara.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_421.ram'>Listen</a>";
en_trails[22] = "<strong>Irish Place Names: St. Brides.</strong> A group of Irish immigrants moved near the northern frontier, and called their new settlement St. Brides. Listen to learn about the fascinating heritage of this Irish saint.<br /><a href='settlement/422_Irish_Names_St_Brides.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_422.ram'>Listen</a>";
en_trails[23] = "<strong>Greek and Latin Place Names: Part One.</strong> Many Alberta ranges were named by mountaineers with a background in Greek and Roman mythology. Listen to learn how many peaks, like Mt. Andromeda, were named.<br /><a href='settlement/426_Greek_Names.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_426.ram'>Listen</a>";
en_trails[24] = "<strong>Greek and Latin Place Names: Part Two.</strong> Greek and Roman names were given not only to mountains, but to other geological features. Listen to learn more about classical naming in Alberta. <br /><a href='settlement/427_Greek_Names_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_427.ram'>Listen</a>";
en_trails[25] = "<strong>Greek and Roman Places Names: Part Three.</strong> Some surveyors used the ancient Greek alphabet when naming Alberta lakes. Hear more about how these lakes were named, and about Ricinus, a locality near Rocky Mountain House.<br /><a href='settlement/428_Greek_Names_P3.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_428.ram'>Listen</a>";
en_trails[26] = "<strong>The Rutherfords: How They Met.</strong> Hear about the arrival of the Rutherfords in the 1890s, the most prominent couple in Strathcona at the time.<br /><a href='settlement/289_Rutherfords_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_289.ram'>Listen</a>";
en_trails[27] = "<strong>The Rutherfords, Part Two.</strong> When Alexander Cameron Rutherford first came to Strathcona as a young lawyer, he was not at all interested in entering politics. Learn how Rutherford became Alberta's first premier, just three years later!<br /><a href='settlement/290_Rutherfords_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_290.ram'>Listen</a>";
en_trails[28] = "<strong>Stephansson House: Part One.</strong> Stephan Guthmundarson Stephansson was a famous Icelandic poet before he came to Markerville, Alberta. Hear about Stephansson and his little farmhouse near Red Deer.<br /><a href='settlement/354_Stephansson_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_354.ram'>Listen</a>";
en_trails[29] = "<strong>Hanukkah in Alberta.</strong> Hear about Jewish Hanukkah celebrations in Alberta, a festival that helps preserve Jewish heritage in the province.<br /><a href='settlement/44_Hanukkah.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_044.ram'>Listen</a>";
en_trails[30] = "<strong>Buddhist Christmas Tree.</strong> Japanese people in Alberta have their own rituals and celebrations at the end of December. Listen, and be enlightened!<br /><a href='settlement/49_Buddhist_Xmas_Tree.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_049.ram'>Listen</a>";
en_trails[31] = "<strong>Ukrainian Christmas in the 1920s.</strong> Ukrainian settlers in Alberta celebrated Christmas in unique ways. Hear about the agrarian traditions that influence Ukrainian Christmas rituals. <br /><a href='settlement/60_Ukrainian_Xmas_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_060.ram'>Listen</a>";
en_trails[32] = "<strong>Epiphany: Blessing the Water.</strong> The Epiphany was the final Ukrainian holiday of the Christmas season. Listen, and learn about the tradition of blessing water on this day.<br /><a href='settlement/67_Ukrainian_Xmas_P4.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_067.ram'>Listen</a>";
en_trails[33] = "<strong>Cottage Schools.</strong> Cottage schools were constructed to provide a temporary space for schooling, but the cottage school in North Red Deer continued to be used until the 1960s.<br /><a href='settlement/159_Cottage_Schools.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_159.ram'>Listen</a>";
en_trails[34] = "<strong>Dominion Day Celebrations.</strong> Many of the larger Alberta towns were celebrating Dominion Day by the 1880s. Learn about these festivities throughout the years until 1927.<br /><a href='settlement/184_Dominion_Day.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_184.ram'>Listen</a>";
en_trails[35] = "<strong>Cemetery Day in Raymond.</strong> Cemetery Day is celebrated in a certain Alberta town each summer. Hear about the cultural history of this day, and which town continues to celebrate it! <br /><a href='settlement/217_Cemetary_Day.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_217.ram'>Listen</a>";
en_trails[36] = "<strong>Victoria Day.</strong> Victoria Day was a way of celebrating Canada's connection to Britain and its monarch, Queen Victoria. Listen to learn more about Canadian patriotism years ago.<br /><a href='settlement/415_Victoria_Day.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_415.ram'>Listen</a>";
en_trails[37] = "<strong>Bar U Ranch: Part One.</strong> The Bar U Ranch's success in the 1880s owed much to Britain's demand for beef.<br /><a href='rural_life/392_BarU_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_392.ram'>Listen</a>";
en_trails[38] = "<strong>Haying Season: Part One.</strong> Preparing plants for fodder was an important part of the agricultural year. Hear how farmers cut and collected hay.<br /><a href='rural_life/441_Haying_Season_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_441.ram'>Listen</a>";
en_trails[39] = "<strong>Homesteading: Part One.</strong> Before people could settle in newly-bought Rupert's Land, the Canadian government put policies in place that would secure it for various purposes, including homesteading.<br /><a href='rural_life/286_homesteading_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_286.ram'>Listen</a>";
en_trails[40] = "<strong>Reverend Forbes Homestead in Grande Prairie</strong> The hard work and fortitude of the Forbes family allowed them to create a mission house, complete with hospital and church, in the wilderness which is now Grande Prairie.<br /><a href='rural_life/68_Forbes_Homestead_P3.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_068.ram'>Listen</a>";
en_trails[41] = "<strong>Threshing: Part Three </strong> Learn about the engineer, the head of the threshing team.<br /><a href='rural_life/246_Threshing_P3.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_246.ram'>Listen</a>";
en_trails[42] = "<strong>Threshing: Part One </strong> How did Alberta's first settlers deal with the huge cost of farm equipment? Listen as historian Pat Meyers explains how the difficult task of threshing was accomplished. <br /><a href='rural_life/246_Threshing_P3.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_246.ram'>Listen</a>";
en_trails[43] = "<strong>Lawrence Ranch</strong> When Henry Lawrence first came to the Peace River area, the area had not even been opened for settlement. But in a few years, he had both a family and a successful ranching operation.<br /><a href='rural_life/124_Lawrence_Ranch.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_124.ram'>Listen</a>";
en_trails[44] = "<strong>Verandas and Their Demise</strong> Many of the first pioneer homes had verandas, which served as a space for community. Hear about verandas and their eventual disappearance in Alberta.<br /><a href='settlement/98_Verandas.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_098.ram'>Listen</a>";
en_trails[45] = "<strong>Ready Cut Houses</strong> An economical way of getting started in the west was to buy a ready-cut house, from the catalogue!<br /><a href='settlement/93_Ready_Cut_Houses.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_093.ram'>Listen</a>";
en_trails[46] = "<strong>Barr Colony</strong> Hear how the Canadian government launched an aggressive campaign to populate the prairies with British sympathizers.<br /><a href='opportunity/377_Barr_Colony_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_377.ram'>Listen</a>";
en_trails[47] = "<strong>Hutterites, Part One</strong> Listen to learn about the history of the Hutterites: the events that led to their eventual emigration to America.<br /><a href='opportunity/334_Hutterites_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_334.ram'>Listen</a>";
en_trails[48] = "<strong>Mennonites, Part One</strong> Mennonites were among the peoples who emigrated to Alberta because of religious persecution. As pacifists, Mennonites fled north to Canada to avoid fighting in the American civil war.<br /><a href='opportunity/364_Mennonites_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_364.ram'>Listen</a>";
en_trails[49] = "<strong>Mennonites, Part Two</strong> More and more liberal congregations of Mennonites settled throughout Alberta after the original 1889 settlement in High River.<br /><a href='opportunity/364_Mennonites_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_364.ram'>Listen</a>";
en_trails[50] = "<strong>How Alberta Got Its Name</strong> Alberta becomes a province in 1905, a governor general's loving tribute to his wife.<br /><a href='opportunity/1_Alberta.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_001.ram'>Listen</a>";
en_trails[51] = "<strong>Dominion Land Survey</strong> The Dominion Land Survey began in the late 1860s, after Alberta bought Rupert's Land from the Hudson's Bay Company. <br /><a href='opportunity/181_Dominion_Land_P1.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_181.ram'>Listen</a>";
en_trails[52] = "<strong>Dominion Land Survey, Part Two</strong> In 1880, surveyors began sectioning land for homesteading in Alberta. Listen to learn more about how the land was surveyed.<br /><a href='opportunity/182_Dominion_Land_P2.html' target='_blank'>Read</a> or <a href='../audio/HeritageTrails_182.ram'>Listen</a>";

var fr_trails = new makeArray(53);
fr_trails[0] = "<strong>Amber Valley et la colonisation noire.</strong> Écoutez le reportage sur la première colonisation noire et Jefferson Davis Edwards, l’un de ses membres les plus importants. Puis découvrez d’où vient le nom d’Amber Valley.<br />(disponible en anglais seulement)<br /><a href='settlement/81_Amber_Valley.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_081.ram'>&Eacute;couter</a>";
fr_trails[1] = "<strong>Les salles communales.</strong> Écoutez au sujet des premières salles communales rurales albertaines qui ont connu leur heure de gloire entre 1914 et 1945.<br />(disponible en anglais seulement)<br /><a href='settlement/128_Community_Halls.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_128.ram'>&Eacute;couter</a>";
fr_trails[2] = "<strong>Kepler Creek.</strong> Découvrez l’homme qui a donné son nom à Kepler Creek.<br />(disponible en anglais seulement)<br /><a href='settlement/236_Kepler_Creek.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_236.ram'>&Eacute;couter</a>";
fr_trails[3] = "<strong>Parlby Lake.</strong> Écoutez au sujet des frères qui ont donné son nom à Parlby Lake.<br />(disponible en anglais seulement)<br /><a href='settlement/241_Parlby_Lake.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_241.ram'>&Eacute;couter</a>";
fr_trails[4] = "<strong>Joe Weiss: Mountaineer.</strong> Joe Weiss found his niche in Jasper National Park as a trapper, mountaineer, photographer and, evenually, namesake of Mount Weiss.<br />(disponible en anglais seulement)<br /><a href='settlement/256_Joe_Weiss.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_256.ram'>&Eacute;couter</a>";
fr_trails[5] = "<strong>Cardston.</strong> Découvrez l’histoire de quelques uns des premiers colons mormons de L’Alberta qui se sont établis au lieu qui est connu de nos jours comme Cardston.<br />(disponible en anglais seulement)<br /><a href='settlement/262_Cardston.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_262.ram'>&Eacute;couter</a>";
fr_trails[6] = "<strong>Villes: Grande Prairie.</strong> Au début du vingtième siècle, Grande Prairie City jouit d’une valeur marchande évidente en ce qui concerne la colonisation, mais ses avantages en tant que communauté sont aussi très clairs.<br />(disponible en anglais seulement)<br /><a href='settlement/282_Grande_Prairie.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_282.ram'>&Eacute;couter</a>";
fr_trails[7] = "<strong>Rivière la Paix.</strong> Ce passage à gué de la rivière La Paix est resté un lieu de colonisation unique pour plusieurs raisons, même à la suite de l’arrivée du chemin de fer en 1916.<br />(disponible en anglais seulement)<br /><a href='settlement/287_Peace_River.html' target='_blank'>Lire</a> or <a href='../audio/HeritageTrails_287.ram'>&Eacute;couter</a>";
fr_trails[8] = "<strong>Grouard.</strong> Grouard était dotée de ressources précieuses et fut même appelée un jour “L’Edmonton du Nord”. Alors, pourquoi Grouard a-t-elle cessée d’exister en tant que ville constituée?<br />(disponible en anglais seulement)<br /><a href='settlement/297_Grouard.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_297.ram'>&Eacute;couter</a>";
fr_trails[9] = "<strong>Noms des lieux scandinaves, Première partie: Armena et Bardo.</strong> D'où les villes albertaines de Armena et Bardo tiennent leur nom? Écoutez l'histoire de deux des premières colonisations scandinaves de la province.<br />(disponible en anglais seulement)<br /><a href='settlement/321_Scandinavian_Names_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_321.ram'>&Eacute;couter</a>";
fr_trails[10] = "<strong>Noms des lieux scandinaves, Deuxième partie: Dalum et Nuorison Creek.</strong> Dalum doit son nom à un groupe de colons danois qui s’est installé près de ce qui est actuellement Drumheller. Des colons finlandais on baptisé leur ville Nuorison Creek. Écoutez pour en savoir plus au sujet des premiers colons scandinaves.<br />(disponible en anglais seulement)<br /><a href='settlement/326_Scandinavian_Names_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_326.ram'>&Eacute;couter</a>";
fr_trails[11] = "<strong>La crèmerie de Markerville.</strong> La crèmerie de Markerville était une initiative mise en place par Mr. C.P. Marker en 1902. Écoutez Dorothy Field expliquer l’histoire de ce site historique.<br />(disponible en anglais seulement)<br /><a href='settlement/327_Markerville_Creamery.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_327.ram'>&Eacute;couter</a>";
fr_trails[12] = "<strong>La colonisation ethnique en Alberta: Les francophones</strong> - Les Oblats fran&ccedil;ais ont essay&eacute; de convertir les autochtones et les m&eacute;tis &agrave; la foi catholique d&egrave;s le d&eacute;but des ann&eacute;e 1800. Le P&egrave;re Lacombe a install&eacute; sa mission &agrave; St. Albert, qui devenu une large enclave de la culture francophone.<br />(disponible en anglais seulement)<br /><a href='settlement/329_Francophones_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_329.ram'>&Eacute;couter</a>";
fr_trails[13] = "<strong>La colonisation ethnique en Alberta: Deuxième partie: Les francophones</strong> - À la fin du dix-neuvième siècle, la culture francophone florissait à St. Albert et Edmonton. Mais quand la ligne de chemin de fer a commencé à fournir la communauté du sud d'Edmonton avec un succès commercial plus conséquent, les communautés environnantes francophones ont souffert.<br />(disponible en anglais seulement)<br /><a href='settlement/330_Francophones_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_330.ram'>&Eacute;couter</a>";
fr_trails[14] = "<strong>Noms des lieux scandinaves, Troisième partie: Oyen et Standard.</strong> La région Centre Est de l’Alberta est la favorite des colons scandinaves depuis le début du vingtième siècle. Écoutez et apprenez plus à propos de la famille norvégienne Andrew et des villes de Oyen et Standard.<br />(disponible en anglais seulement)<br /><a href='settlement/331_Scandinavian_Names_P3.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_331.ram'>&Eacute;couter</a>";
fr_trails[15] = "<strong>Noms des lieux scandinaves, Quatrième partie: Thorsby and Tindastoll Creek.</strong> Des colons de Suède et de l’Islande ont nommé les villes de Thorsby et Tindastoll en l’honneur de leur patrimoine scandinave. Écoutez et sachez en plus à propos de ces villes et de leurs colons.<br />(disponible en anglais seulement)<br /><a href='settlement/337_Scandinavian_Names_P4.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_337.ram'>&Eacute;couter</a>";
fr_trails[16] = "<strong>Noms des lieux scandinaves, Cinquième partie: Valhalla.</strong> Valhalla est la résidence mythique des dieux vikings, mais c’est aussi le lieu de résidence albertain de colons scandinaves encadrés par le Pasteur norvégien H.N. Ronning.<br />(disponible en anglais seulement)<br /><a href='settlement/341_Scandinavian_Names_P5.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_341.ram'>&Eacute;couter</a>";
fr_trails[17] = "<strong>Nom de lieux ethniques: Fran&ccedil;ais, Premi&egrave;re partie: les rapides de Demicharge et Cassette sur la rivi&egrave;re Slave River</strong> - &Eacute;coutez au sujet des voyageurs, des traiteurs de fourrures fran&ccedil;ais et de quelques-uns des premiers Europ&eacute;ens &agrave; entrer dans l'Ouest canadien. Les rapides le long de la rivi&egrave;re Slave River posaient &agrave; ces hommes braves un d&eacute;fi extr&ecirc;mement difficile.<br />(disponible en anglais seulement)<br /><a href='settlement/346_French_Names_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_346.ram'>&Eacute;couter</a>";
fr_trails[18] = "<strong>Noms d'oblats fran&ccedil;ais: Deuxi&egrave;me partie: P&egrave;re V&eacute;gr&eacute;ville</strong> - Le P&egrave;re V&eacute;gr&eacute;ville &eacute;tait un p&egrave;re oblat et un expert linguistique en mati&egrave;re de langues autochtones. La communaut&eacute; francophone d'origine &agrave; l'est d'Edmonton a nomm&eacute; sa ville en son honneur en 1906, et Vegreville est ensuite devenue le centre de la colonie ukrainienne.<br />(disponible en anglais seulement)<br /><a href='settlement/353_Oblate_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_353.ram'>&Eacute;couter</a>";
fr_trails[19] = "<strong>Noms de lieux allemands: Ceux qui ont changé après la Première Guerre mondiale.</strong> Beaucoup de villes allemandes ont changé leur nom afin de satisfaire un sentiment anti-allemand durant la Première Guerre mondiale. Écoutez pour en savoir plus sur l’origine des noms de lieux en Alberta.<br />(disponible en anglais seulement)<br /><a href='settlement/362_German_Names_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_362.ram'>&Eacute;couter</a>";
fr_trails[20] = "<strong>Noms de lieux allemands, deuxième partie: Ceux qui ont gardé leur nom d’origine.</strong> Écoutez pour en savoir plus sur l’histoire de communautés telles que Hussar et Josephburg, qui ont gardé leur nom allemand en dépit de l’hostilité créée par la Première Guerre mondiale.<br />(disponible en anglais seulement)<br /><a href='settlement/363_German_Names_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_363.ram'>&Eacute;couter</a>";
fr_trails[21] = "<strong>Noms de lieux irlandais: Connemara.</strong> Connemara est un mot irlandais signifiant “Bord de mer”. Découvrez comment Connemara, en Alberta, a eu ce nom et comment elle s’appelle de nos jours!<br />(disponible en anglais seulement)<br /><a href='settlement/421_Irish_Names_Connemara.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_421.ram'>&Eacute;couter</a>";
fr_trails[22] = "<strong>Noms de lieux irlandais: St. Brides.</strong> Un groupe d’immigrants irlandais s’est installé près de la frontière du nord et ils ont nommé leur nouvelle colonie St. Brides. Écoutez pour en savoir plus sur l’héritage fascinant de ce saint irlandais.<br />(disponible en anglais seulement)<br /><a href='settlement/422_Irish_Names_St_Brides.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_422.ram'>&Eacute;couter</a>";
fr_trails[23] = "<strong>Noms de lieux grecs et latins: Premi&egrave;re partie</strong> - Beaucoup de rangs albertains ont &eacute;t&eacute; nomm&eacute;s par des alpinistes ayant des connaissances des mythologies grecque et romaine. &Eacute;coutez pour apprendre comment ont &eacute;t&eacute; nomm&eacute;s de nombreux monts tels que le Mt. Andromeda.<br />(disponible en anglais seulement)<br /><a href='settlement/426_Greek_Names.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_426.ram'>&Eacute;couter</a>";
fr_trails[24] = "<strong>Noms de lieux grecs et latins: Deuxi&egrave;me partie</strong> - Des noms grecs et romains ont &eacute;t&eacute; donn&eacute;es non seulement aux montagnes mais aussi &agrave; des sites g&eacute;ologiques. &Eacute;coutez pour en savoir plus les patronymes classiques en Alberta.<br />(disponible en anglais seulement)<br /><a href='settlement/427_Greek_Names_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_427.ram'>&Eacute;couter</a>";
fr_trails[25] = "<strong>Noms de lieux grecs et latins: Troisi&egrave;me partie</strong> - Certains arpenteurs ont utilis&eacute; L'ancien alphabet grec pour nommer des lacs albertains. &Eacute;coutez pour en savoir plus sur les noms de ces lacs, et sur Ricinus, une localit&eacute; pr&egrave;s de Rocky Mountain House.<br />(disponible en anglais seulement)<br /><a href='settlement/428_Greek_Names_P3.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_428.ram'>&Eacute;couter</a>";
 fr_trails[26] = "<strong>The Rutherfords: How They Met.</strong> Hear about the arrival of the Rutherfords in the 1890s, the most prominent couple in Strathcona at the time.<br />(disponible en anglais seulement)<br /><a href='settlement/289_Rutherfords_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_289.ram'>&Eacute;couter</a>";
 fr_trails[27] = "<strong>The Rutherfords, Part Two.</strong> When Alexander Cameron Rutherford first came to Strathcona as a young lawyer, he was not at all interested in entering politics. Learn how Rutherford became Alberta's first premier, just three years later!<br />(disponible en anglais seulement)<br /><a href='settlement/290_Rutherfords_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_290.ram'>&Eacute;couter</a>";
fr_trails[28] = "<strong>La maison Stephansson: Première partie.</strong> Stephan Guthmundarson Stephansson était un fameux poète islandais avant qu’il s’établisse à Markerville, Alberta. Écoutez le reportage au sujet de Stephansson et de sa petite ferme près de Red Deer.<br />(disponible en anglais seulement)<br /><a href='settlement/354_Stephansson_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_354.ram'>&Eacute;couter</a>";
 fr_trails[29] = "<strong>Hanukkah in Alberta.</strong> Hear about Jewish Hanukkah celebrations in Alberta, a festival that helps preserve Jewish heritage in the province.<br />(disponible en anglais seulement)<br /><a href='settlement/44_Hanukkah.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_044.ram'>&Eacute;couter</a>";
fr_trails[30] = "<strong>Arbre de Noël Bouddhiste.</strong> Les Japonais de l’Alberta ont leur propres rituels et célébrations à la fin du mois de décembre. Écoutez et soyez éclairés!<br />(disponible en anglais seulement)<br /><a href='settlement/49_Buddhist_Xmas_Tree.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_049.ram'>&Eacute;couter</a>";
fr_trails[31] = "<strong>Noël ukrainien dans les années 1920.</strong> Les colons ukrainiens d’Alberta célèbrent Noël de manières uniques. Écoutez au sujet des traditions agraires qui influencent les rituels du Noël ukrainien.<br />(disponible en anglais seulement)<br /><a href='settlement/60_Ukrainian_Xmas_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_060.ram'>&Eacute;couter</a>";
fr_trails[32] = "<strong>L’Epiphanie: Bénidiction de l’eau.</strong> L’Épiphanie était le dernier congé ukrainien de la saison de Noël. Écoutez et apprenez au sujet de la tradition de la bénédiction de l’eau lors de ce jour.<br />(disponible en anglais seulement)<br /><a href='settlement/67_Ukrainian_Xmas_P4.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_067.ram'>&Eacute;couter</a>";
fr_trails[33] = "<strong>Écoles bungalows.</strong> Les écoles bungalows étaient construites pour fournir un espace scolaire temporaire, mais celle située au nord de Red Deer a continué d’être utilisée jusqu’aux années soixante.<br />(disponible en anglais seulement)<br /><a href='settlement/159_Cottage_Schools.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_159.ram'>&Eacute;couter</a>";
fr_trails[34] = "<strong>Célébrations de la fête du Dominion.</strong> Nombre de grandes villes albertaines célébraient la fête du Dominion dans les années 1880. Découvrez ces célébrations à travers le temps jusqu’en 1927.<br />(disponible en anglais seulement)<br /><a href='settlement/184_Dominion_Day.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_184.ram'>&Eacute;couter</a>";
fr_trails[35] = "<strong>La fête du cimetière à Raymond.</strong> La fête du cimetière est célébrée dans une certaine ville albertaine chaque été. Écoutez à propos de l’histoire culturelle de cette journée et de la ville qui continue à la fêter!<br />(disponible en anglais seulement)<br /><a href='settlement/217_Cemetary_Day.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_217.ram'>&Eacute;couter</a>";
fr_trails[36] = "<strong>La fête de Victoria.</strong> La fête de Victoria était l’occasion de célébrer les liens unissant le Canada à la Grande Bretagne et ses monarques. Découvrez en plus au sujet du patriotisme canadien d’antan.<br />(disponible en anglais seulement)<br /><a href='settlement/415_Victoria_Day.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_415.ram'>&Eacute;couter</a>";
fr_trails[37] = "<strong>Le ranch Bar U: Première partie.</strong> Dans les années 1880, le ranch Bar U doit en partie son succès à la demande de la Grande-Bretagne pour le bœuf.<br />(disponible en anglais seulement)<br /><a href='rural_life/392_BarU_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_392.ram'>&Eacute;couter</a>";
fr_trails[38] = "<strong>Le temps des foins: Premi&eacute;re partie.</strong> La pr&eacute;paration des semences pour le fourrage &eacute;tait une partie importante de l’ann&eacute;e agricole. &Eacute;coutez comment les fermiers fauchaient et ramassaient le foin.<br />(disponible en anglais seulement)<br /><a href='rural_life/441_Haying_Season_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_441.ram'>&Eacute;couter</a>";
fr_trails[39] = "<strong>Homesteading, Premi&egrave;re partie: Context politique</strong> - Avant que les colons puissent s'installer dans la terre de Rupert r&eacute;cemment acquise, le gouvernement canadien met en place une politique qui la prot&egrave;gera pour certaines raisons, incluant la propri&eacute;t&eacute; familiale (Homsteading).<br />(disponible en anglais seulement)<br /><a href='rural_life/286_homesteading_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_286.ram'>&Eacute;couter</a>";
fr_trails[40] = "<strong>Le homestead du r&eacute;verend Forbes &agrave; Grande Prairie</strong> - Le dur labeur et courage de la famille Forbes leur a permis de cr&eacute;er un centre de mission complet, incluant un h&ocirc;pital et une &eacute;glise dans la r&eacute;gion sauvage qui est de nos jours Grande Prairie.<br />(disponible en anglais seulement)<br /><a href='rural_life/68_Forbes_Homestead_P3.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_068.ram'>&Eacute;couter</a>";
fr_trails[41] = "<strong>Les battages: m&eacute;tiers</strong> - D&eacute;couvrez l'ing&eacute;nieur, le directeur de l'&eacute;quipe des battages.<br />(disponible en anglais seulement)<br /><a href='rural_life/246_Threshing_P3.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_246.ram'>&Eacute;couter</a>";
fr_trails[42] = "<strong>Les battages, Premi&egrave;re partie</strong> - Comment les premiers colons albertains ont-ils traits avec le prix important de l'&eacute;quipement de ferme? &Eacute;coutez l'historien Pat Meyers expliquer comment la t&acirc;che difficile des battages &eacute;tait accomplie.<br />(disponible en anglais seulement)<br /><a href='rural_life/246_Threshing_P3.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_246.ram'>&Eacute;couter</a>";
fr_trails[43] = "<strong>Le ranch Sheridan Lawrence</strong> - Quand Henry Lawrence vient pour la premi&egrave;re fois dans la r&eacute;gion de rivi&egrave;re La Paix, la r&eacute;gion n'est pas encore ouverte &agrave; la colonisation. Mais quelques ann&eacute;es plus tard, il a &agrave; la fois une famille et une entreprise d'&eacute;levage prosp&egrave;re.<br />(disponible en anglais seulement)<br /><a href='rural_life/124_Lawrence_Ranch.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_124.ram'>&Eacute;couter</a>";
 fr_trails[44] = "<strong>Verandas and Their Demise</strong> Many of the first pioneer homes had verandas, which served as a space for community. Hear about verandas and their eventual disappearance in Alberta.<br />(disponible en anglais seulement)<br /><a href='settlement/98_Verandas.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_098.ram'>&Eacute;couter</a>";
 fr_trails[45] = "<strong>Ready Cut Houses</strong> An economical way of getting started in the west was to buy a Lirey-cut house, from the catalogue!<br />(disponible en anglais seulement)<br /><a href='settlement/93_Lirey_Cut_Houses.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_093.ram'>&Eacute;couter</a>";
 fr_trails[46] = "<strong>Barr Colony</strong> Hear how the Canadian government launched an aggressive campaign to populate the prairies with British sympathizers.<br />(disponible en anglais seulement)<br /><a href='opportunity/377_Barr_Colony_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_377.ram'>&Eacute;couter</a>";
 fr_trails[47] = "<strong>Hutterites, Part One</strong> &Eacute;couter to learn about the history of the Hutterites: the events that led to their eventual emigration to America.<br />(disponible en anglais seulement)<br /><a href='opportunity/334_Hutterites_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_334.ram'>&Eacute;couter</a>";
 fr_trails[48] = "<strong>Mennonites, Part One</strong> Mennonites were among the peoples who emigrated to Alberta because of religious persecution. As pacifists, Mennonites fled north to Canada to avoid fighting in the American civil war.<br />(disponible en anglais seulement)<br /><a href='opportunity/364_Mennonites_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_364.ram'>&Eacute;couter</a>";
 fr_trails[49] = "<strong>Mennonites, Part Two</strong> More and more liberal congregations of Mennonites settled throughout Alberta after the original 1889 settlement in High River.<br />(disponible en anglais seulement)<br /><a href='opportunity/364_Mennonites_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_364.ram'>&Eacute;couter</a>";
 fr_trails[50] = "<strong>How Alberta Got Its Name</strong> Alberta becomes a province in 1905, a governor general's loving tribute to his wife.<br />(disponible en anglais seulement)<br /><a href='opportunity/1_Alberta.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_001.ram'>&Eacute;couter</a>";
 fr_trails[51] = "<strong>Dominion Land Survey</strong> The Dominion Land Survey began in the late 1860s, after Alberta bought Rupert's Land from the Hudson's Bay Company.<br />(disponible en anglais seulement)<br /><a href='opportunity/181_Dominion_Land_P1.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_181.ram'>&Eacute;couter</a>";
 fr_trails[52] = "<strong>Dominion Land Survey, Part Two</strong> In 1880, surveyors began sectioning land for homesteading in Alberta. &Eacute;couter to learn more about how the land was surveyed.<br />(disponible en anglais seulement)<br /><a href='opportunity/182_Dominion_Land_P2.html' target='_blank'>Lire</a> ou <a href='../audio/HeritageTrails_182.ram'>&Eacute;couter</a>";

// The random number generator.
function rand(n) {
seed = (0x015a4e35 * seed) % 0x7fffffff;
return (seed >> 16) % n;
}
var now = new Date( )
var seed = now.getTime( ) % 0xffffffff
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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 SetupPartner(website_description)
{
	document.write("<a href=\"mailto:info@placenamesofalberta.ca?Subject="+website_description+" Web Site\" title=\"Contact Friends by Email\">Contact Friends by Email</a>");
}

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 pop up windows for images.
function ImgPop(zeTitle, zeDescription, zeCopyright, zeSource, level)
{
	popTitle = zeTitle;
	popDescription = zeDescription;
	popCopyright = zeCopyright;
	popSource = zeSource;
	popUrl = "";

    if (popDescription == "description")
        popDescription = "";
    
    width=650;
    height=750;

    //If resolution is 640x480
    if(screen.width < 800)
        height=350;
    //If resolution is 800x600
    else if(screen.width < 1024)
        height=500;

    for(i=1; i<=level; i++)
	{
		popUrl = popUrl + "../";
	}

	popUrl = popUrl + "inc/popup.html";
//	confirm("The Url is " + popUrl);
	openWin(popUrl,width,height);
}

function DisplayImage(level, file_path, image_name, image_type, image_title, image_description, image_copyright, float_position)
{
	var image_url = '';
	var single_quot = "'";
	var image_code = '';
    for(i=0; i<=level; i++)
	{
		image_url += "../";
	}
	image_code += '<a href="javascript:ImgPop(' + single_quot + image_title + single_quot + ', ' + single_quot + image_description + single_quot + ', ' + single_quot + image_copyright + single_quot + ', ' + single_quot + '../' + file_path + image_name + '_det.' + image_type + single_quot + ', ' + level + ');">';
	image_code += '<img src="' + image_url + file_path + image_name + '_thu.' + image_type + '" class="' + float_position + '" alt="' + image_description + '" title="' + image_title + '" /></a>';
	document.write(image_code);
}

function DisplayVideo(file_path, video_name, video_type, video_title, video_description, copyright)
{
	var video_code = '';
	video_code  = '<!--<video><videotitle>-->';
	video_code += '<h3>'+video_title+'</h3>';
	video_code += '<!--</videotitle>-->';
	if ((video_type == 'MP4') || (video_type == 'mp4'))
	{
		video_code += '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ';
		video_code += '	codebase="http://www.apple.com/qtactivex/qtplugin.cab" ';
		video_code += '	width="320" height="256"> ';
		video_code += '	<param name="src" value="' + file_path + video_name + '.mp4" /> ';
		video_code += '	<param name="autoplay" value="true" /> ';
		video_code += '	<param name="controller" value="true" /> ';
		video_code += '	<object data="' + file_path + video_name  + '.mp4" ';
		video_code += '  		type="video/mp4" ';
		video_code += '  		width="320" height="256"> ';
		video_code += '		<param name="autoplay" value="true" /> ';
		video_code += '		<param name="controller" value="true" /> ';
		video_code += '	</object> ';
		video_code += '</object> ';
		video_code += '<!-- <a href="' + file_path + video_name + '.mp4"></a> -->';
	} else if ((video_type == 'WVX') || (video_type == 'wvx'))
	{
		video_code +=  '<object data="' + file_path + video_name + '.wvx" type="video/x-ms-wvx"';
		video_code +=  '	width="320" height="256">';
		video_code +=  '	<param name="src" value="' + file_path + video_name + '.wvx">';
		video_code +=  '</object>';
	}
	else
	{
		alert('The video type <' + video_type + '> has not been setup.');
	}
	video_code += '<!-- <a href="'+file_path+video_name+'.'+video_type+'"></a> -->';
	video_code += '<!--<videodesc>-->';
	video_code += '<p>'+video_description+'</p>';
	video_code += '<p>'+copyright+'</p>';
	video_code += '<!--</videodesc>-->';
	video_code += '<!--</video>-->';
	document.write(video_code);
}

function DisplayAudio(file_path, audio_name, audio_type, audio_title, audio_description, copyright)
{
	var audio_code = '';
	audio_code  = '<!--<audio><audiotitle>-->';
	audio_code += '<h3>'+audio_title+'</h3>';
	audio_code += '<!--</audiotitle>-->';
	if (window.ActiveXObject)
	{
		audio_code += '<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="260" height="45" align="middle">';
		audio_code += '<param name="src" value='+ file_path+audio_name+'.'+audio_type +' />';
		audio_code += '<param name= "autoplay" value= "true" />';
		//the embed is in here because of old browser functionality
		audio_code += '<embed src='+ file_path+audio_name+'.'+audio_type +' autoplay="true" width="260" height= "45" align= "middle" bgcolor="E7EADF" pluginspage="http://www.apple.com/quicktime/download/">';
		audio_code += '</embed>';
		audio_code += '</object>';
	}
	else
	{
		document.write('<object type="audio/x-mpeg" data='+ file_path+audio_name+'.'+audio_type +' width="260" height="45">\n');
        document.write('<param name="autoplay" value="true" />\n');
        document.write('<param name="controller" value="true" />\n');
        document.write('</object>\n');
	}

	audio_code += '<!-- <a href="'+file_path+audio_name+'.'+audio_type+'"></a> -->';
	audio_code += '<!--<audiodesc>-->';
	audio_code += '<p>'+audio_description+'</p>';
	audio_code += '<p>Accession Number: '+audio_name+'</p>';
	audio_code += '<p>'+copyright+'</p>';
	audio_code += '<!--</audiodesc>-->';
	audio_code += '<!--</audio>-->';
	document.write(audio_code);
}

// The following code uses the AJAX technology
var xmlHttp
var hostaddress="http://fserve/pasttopresent/";
var select_counter;
var image_counter=0;
var A_accession_number = [];
var A_position = [];
var A_width = [];
var A_level = [];
var A_language = [];
/*
function DisplayContent(url)
{
	confirm(hostaddress+url);
	aWindow=window.open(hostaddress+url,"PopUp",resizable=yes,scrollbars=yes,left=100,top=60");
    aWindow.focus();
    if(aWindow.opener == null)
    {
        aWindow.opener = window;
        aWindow.opener.name = "opener";
    }
}
*/
function showGroupCategory(group_category_id)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	url+="/administration/getgroupcategory.php"
	url+="?group_category_id="+group_category_id
	url+="&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedGroup 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChangedGroup() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtcategory").innerHTML=xmlHttp.responseText 
	} 
}

function showSubCategory(category_id, table_name)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="/administration/getsubcategory.php"
	url+="?category_id="+category_id
	url+="&table_name="+table_name
	url+="&sid="+Math.random()	
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtsubcategory").innerHTML=xmlHttp.responseText 
	} 
}

function SetupImage(accession_number, position, level, image_width, language)
{
	A_accession_number[image_counter]=accession_number;
	A_position[image_counter]=position;
	A_level[image_counter]=level;
	A_width[image_counter]=image_width;
	A_language[image_counter]=language;
//	confirm(A_accession_number[image_counter]+" language is "+A_language[image_counter]);
	image_counter++;
}

function ProcessImages()
{
	if (image_counter > 0)
	{
		image_counter=0;
		DisplayImages();
	}
}

function DisplayImages()
{
	accession_number=A_accession_number[image_counter];	
	position=A_position[image_counter];	
	level=A_level[image_counter];	
	image_width=A_width[image_counter];	
	language=A_language[image_counter];
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="administration/getimageinfo.php";
	url+="?accession_number="+accession_number;
	url+="&image_position="+position;
	url+="&image_level="+level;
	url+="&image_width="+image_width;
	url+="&language="+language;
	url+="&sid="+Math.random();
//	confirm(url);
	xmlHttp.onreadystatechange=foundedImageInfo; 
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function foundedImageInfo() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		info=xmlHttp.responseText;
//		confirm(info);
		field_name = A_accession_number[image_counter];
		document.getElementById(field_name).innerHTML=xmlHttp.responseText;
		if (image_counter < A_accession_number.length-1)
		{
			image_counter++;
			DisplayImages();
		}
	}
}

function SetupVideo(accession_number)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="administration/getvideoinfo.php";
	url+="?accession_number="+accession_number;
	url+="&sid="+Math.random();
	xmlHttp.onreadystatechange=foundedVideoInfo; 
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function foundedVideoInfo() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("VideoInfo").innerHTML=xmlHttp.responseText;
	}
}

function SetupAudio(accession_number)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="administration/getaudioinfo.php";
	url+="?accession_number="+accession_number;
	url+="&sid="+Math.random();
	xmlHttp.onreadystatechange=foundedAudioInfo; 
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function foundedAudioInfo() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("AudioInfo").innerHTML=xmlHttp.responseText;
	}
}

function SetupContactEmail(subject)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="administration/getcontactemail.php";
	url+="?subject="+subject;
	url+="&sid="+Math.random();
	xmlHttp.onreadystatechange=foundedContactEmail; 
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function foundedContactEmail() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("ContactEmail").innerHTML=xmlHttp.responseText;
	}
}

function SetupPartnerEmail(subject)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="administration/getpartneremail.php";
	url+="?subject="+subject;
	url+="&sid="+Math.random();
	xmlHttp.onreadystatechange=foundedPartnerEmail; 
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function foundedPartnerEmail() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("PartnerEmail").innerHTML=xmlHttp.responseText;
	}
}

function LoadPageContent(Content_Filename)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url=hostaddress;
	url+="administration/getpagecontent.php";
	url+="?content_filename="+Content_Filename;
	url+="&sid="+Math.random();
//	confirm(url);
	xmlHttp.onreadystatechange=foundedPageInfo; 
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function foundedPageInfo() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		info=xmlHttp.responseText;
		document.getElementById("PageContent").innerHTML=xmlHttp.responseText;
		found_scripts=info.split('</script>');
		for (i=0; i<found_scripts.length-1; i++)
		{
			start_location=found_scripts[i].search(/javascript:/);			
			check_script = found_scripts[i].substr(start_location+11);
			script_name = check_script.split('(');
			if (script_name[0] == "SetupImage")
			{
				// We need to parse out the parameters needed to call the SetupImage function
				check_script = check_script.substr(script_name[0].length+1,check_script.length-(script_name[0].length));
				// Each of the parameters will be separated by commas
				check_script = check_script.replace(');',',');
				// Find the location of the first comma and get the first parameter
				comma_pos = check_script.indexOf(",");
				first_parameter = check_script.substr(0,comma_pos);
				check_script = check_script.substr(comma_pos+1);
				// Find the location of the second comma and get the second parameter
				comma_pos = check_script.indexOf(",");
				second_parameter = check_script.substr(0,comma_pos);
				check_script = check_script.substr(comma_pos+1);
				// Find the location of the third comma and get the third parameter
				comma_pos = check_script.indexOf(",");
				third_parameter = check_script.substr(0,comma_pos);
				check_script = check_script.substr(comma_pos+1);
				// Find the location of the fourth comma and get the fourth parameter
				comma_pos = check_script.indexOf(",");
				fourth_parameter = check_script.substr(0,comma_pos);
				check_script = check_script.substr(comma_pos+1);
				// Find the location of the fifth comma and get the fifth parameter
				comma_pos = check_script.indexOf(",");
				fifth_parameter = check_script.substr(0,comma_pos);
				// remove all of the quotes(') from the first two parameters
				first_parameter = first_parameter.replace("'","");
				first_parameter = first_parameter.replace("'","");
				second_parameter = second_parameter.replace("'","");
				second_parameter = second_parameter.replace("'","");
				fifth_parameter = fifth_parameter.replace(",","");
				// know that we have all of the parameters we can call the SetupImage function
				SetupImage(first_parameter,second_parameter,third_parameter,fourth_parameter,fifth_parameter);
			}
			else if (script_name[0] == "SetupVideo")
			{
				// We need to parse out the parameter needed to call the SetupVideo function
				check_script = check_script.substr(script_name[0].length+1,check_script.length-(script_name[0].length));
				// remove all of the quotes(')
				first_parameter = check_script.replace("');","");
				first_parameter = first_parameter.replace("'","");
				SetupVideo(first_parameter);
			}
			else if (script_name[0] == "SetupAudio")
			{
				// We need to parse out the parameter needed to call the SetupAudio function
				check_script = check_script.substr(script_name[0].length+1,check_script.length-(script_name[0].length));
				// remove all of the quotes(')
				first_parameter = check_script.replace("');","");
				first_parameter = first_parameter.replace("'","");
				SetupAudio(first_parameter);
			}
			else if (script_name[0] == "SetupContactEmail")
			{
				// We need to parse out the parameter needed to call the SetupContactEmail function
				check_script = check_script.substr(script_name[0].length+1,check_script.length-(script_name[0].length));
				// remove all of the quotes(')
				first_parameter = check_script.replace("');","");
				first_parameter = first_parameter.replace("'","");
				SetupContactEmail(first_parameter);
			}
			else if (script_name[0] == "SetupPartnerEmail")
			{
				// We need to parse out the parameter needed to call the SetupPartnerEmail function
				check_script = check_script.substr(script_name[0].length+1,check_script.length-(script_name[0].length));
				// remove all of the quotes(')
				first_parameter = check_script.replace("');","");
				first_parameter = first_parameter.replace("'","");
				SetupPartnerEmail(first_parameter);
			}
			else if (script_name[0] == "ProcessImages")
			{
				ProcessImages();
			}
		}
	}
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		//Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}
function InsertAudio(AudioNameAndPath)
{
	if (window.ActiveXObject)
	{
		document.write('<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="260" height="45" align="middle">\n');
		document.write('<param name="src" value='+ AudioNameAndPath +' />\n');
		document.write('<param name= "autoplay" value= "false" />\n');
		//the embed is in here because of old browser functionality
		document.write('<embed src='+ AudioNameAndPath +' autoplay="true" width="260" height= "45" align= "middle" bgcolor="E7EADF" pluginspage="http://www.apple.com/quicktime/download/">\n');
		document.write('</embed>\n');
		document.write('</object>\n');
	}
	else
	{
		document.write('<object type="audio/x-mpeg" data='+ AudioNameAndPath +' width="260" height="45">\n');
        document.write('<param name="autoplay" value="false" />\n');
        document.write('<param name="controller" value="true" />\n');
        document.write('</object>\n');
	}
}
