function get_random(ceiling)
{
    var ranNum= Math.floor(Math.random()*ceiling);
    return ranNum;
}

function getFact()
{
	var arraySize = 18;
    var facts=new Array(arraySize);
		facts[0]="Over 60% of wetlands in Alberta's settled regions have been lost to date.";
		facts[1]="Wetlands make up approximately 18% of Alberta's landbase.";
		facts[2]="Wetlands make up approximately 14% of Canada's landbase, representing about 1/4 of the world's wetland area.";
		facts[3]="Worldwide, peatlands store approximately 500 Gt of carbon, which is about 75% of the total amount of carbon currently present in the atmosphere.";
		facts[4]="Currently, 601 different fungi have been collected from peatlands globally, aiding in plant growth and nutrient cycling.";
		facts[5]="Some of the peat in peatlands formed at the end of the last ice and is over 9,000 years old.  This peat consists mainly of moss remains.";
		facts[6]="Wetlands and their surrounding uplands are habitat for about 600 species of plants, animals and insects in Canada.";
		facts[7]="The pH, a measure of acidity, in bogs ranges from 3-4, which is similar to the pH in human stomachs and 1,000-10,000 more acidic than tap water.";
		facts[8]="Peat moss, particularly Sphagnum peat moss from bogs, dressing is more absorbent than cotton and has been used during the World Wars as wound dressing, owing in part to its antibiotic properties.";
		facts[9]="Peat moss, which is primarily harvested from bogs, has been used as an absorbent in feminine hygiene products.";
		facts[10]="Wetlands help to reduce the risk and severity of flooding by storing excess water and slowing water flow, especially after the spring snow and ice melt and after heavy rain storms.";
		facts[11]="Wetlands have provided food, building materials and medicines for First Nation peoples for millennia.";
		facts[12]="Most of the world's coastal and inland fisheries depend on wetlands as sources of food, shelter and habitat.";
		facts[13]="Wetlands are nature's kidneys and remove excess nutrients, metals, hydrocarbons and toxins from water, thereby improving water quality.";
		facts[14]="Peatlands are home to many carnivorous plants, including pitcher plants, sundew, bladderworts and butterworts.";
		facts[15]="Many edible plants and mushrooms grow in wetlands, including cranberries, cloudberries, cattails, wild rice, and the gypsy mushroom.";
		facts[16]="Peatlands form via terrestrialization, or the gradual infilling of lakes and depressions with sediment and peat, and paludification, the expansion of a peatland over the surrounding landscape.";
		facts[17]="Some permafrost in Alberta's northern peatlands has been melting since the 1950s in response to climate change.";
   var whichFact=get_random(arraySize);
  
	document.write('<div style="margin:0 0 0 28px;"><img src="images/btn_top.gif" alt="">');
	document.write('<div style="margin-left:1px;border-left: 1px solid #4489ab; border-right: 1px solid #4489ab; width:205px; ">');
	document.write('<h1 style="text-align:center;margin-top:0px; padding-top: 12px;">Did you know...?</h1><p style="margin-bottom:0px; color:#005783; padding: 0px 8px 12px 8px">');
	document.write(facts[whichFact]);
	document.write('</p></div><img src="images/btn_bottom.gif" alt=""></img></div>');
  }
