﻿var kw = [['Alternative energy','Energy sources of natural or industrial origin (biogas, flare gas, etc).'],
['Biodiversity','Refers to the variety and variability of living organisms and ecosystems.'],
['Biological Oxygen Demand, Five Day','Amount of dissolved oxygen consumed in five days by biological processes breaking down organic matter.'],
['BOD5','Amount of dissolved oxygen consumed in five days by biological processes breaking down organic matter.'],
['Biomass Vegetable and organic animal waste.'],
['Carbon Pollution Reduction Scheme','A ‘cap and trade’ system developed by the Australian Government, to limit greenhouse gas emissions. Entities covered by the scheme will be required to obtain a permit for every tonne of greenhouse gas that they emit and, consequently, every year they will need to surrender a permit for every tonne of produced emissions.'],
['CPRS','A ‘cap and trade’ system developed by the Australian Government, to limit greenhouse gas emissions. Entities covered by the scheme will be required to obtain a permit for every tonne of greenhouse gas that they emit and, consequently, every year they will need to surrender a permit for every tonne of produced emissions.'],
['Cogeneration','Process that consists of simultaneously producing thermal energy and electrical energy from a single fuel.'],
['Composting','Biological process used to treat organic waste (green waste, fermentable fraction of municipal waste, sludge from urban treatment plants, etc.), by degrading them in an accelerated manner.'],
['Direct emissions','Emissions produced from sources within the boundary of an organisation and as a result of that organisation’s activities.'],
['Environmental Management System','System that an organisation can use to implement its environmental policy and achieve associated objectives such as controlling environmental impacts and meeting regulatory requirements.'],
['EMS','System that an organisation can use to implement its environmental policy and achieve associated objectives such as controlling environmental impacts and meeting regulatory requirements.'],
['Global Reporting Initiative','A multi-stakeholder initiative that has developed a global framework for companies to report on their social, economic and environmental performance.'],
['GRI','A multi-stakeholder initiative that has developed a global framework for companies to report on their social, economic and environmental performance.'],
['Greenhouse gas','Gas absorbing some solar rays and responsible for climate change (including CO2, CH4, NOx, water vapour).'],
['GHG','Gas absorbing some solar rays and responsible for climate change (including CO2, CH4, NOx, water vapour).'],
['HVAC chiller','Heating, ventilation and air-conditioning (HVAC) chillers are refrigeration systems that provide cooling using fluids as refrigerants.'],
['Indirect emissions','Emissions generated in the wider economy as a consequence of an organisation’s activities, but which are physically produced by the activities of another organisation. The most important category of indirect emissions are those resulting from the consumption of electricity.'],
['Landfill Sites','that replace tips, enabling storage and treatment of waste and energy recovery from biogas.'],
['Leachate','When stored and under the combined effect of rainwater and natural decomposition, waste produces a liquid fraction called leachate. With a high organic and trace element content, leachate cannot be discharged directly into the natural environment and must be carefully collected and treated.'],
['Megalitres','This is a unit of measure for water. One megalitre equals 1 million litres. An Olympic-sized swimming pool holds approximately 2.5 megalitres.'],
['National Greenhouse Reporting and Energy Act 2007','This Act, passed in September 2007, established a mandatory reporting system for corporate greenhouse gas emissions and energy production and consumption. The first reporting period under the Act commenced on 1 July 2008.'],
['Renewable energy','Energy produced from natural elements (sun, wind, water, earth): solar and wind energy, hydroelectricity, geothermal, biomass, tidal, biogas from landfills, etc.'],
['Reuse','Reuse of treated wastewater (that has been treated in a treatment plant and that can be released into the natural environment).'],
['Reverse osmosis','Process for separation of water and dissolved salts by means of semi-permeable membranes under the action of pressure (54 to 80 bars for the treatment of sea water).'],
['tonne of carbon dioxide equivalent','Unit of measurement to compare the emissions from various greenhouse gases.'],
['tCO2-e','Unit of measurement to compare the emissions from various greenhouse gases.'],
['United Water','A wholly-owned subsidiary of Veolia Water Australia which provides water and wastewater services to almost 1.5 million people.'],
['Veolia Water Network Services','A division of Veolia Water & SADE, it designs, constructs and maintains water and wastewater networks and related facilities.'],
['Veolia Water Solutions & Technologies','The technological arm of Veolia Water worldwide, this division provides design and build capabilities for water and wastewater treatment plants.'],
['Waste-to-energy facilities','Facilities that recover energy from waste to produce electricity or steam for supplying a heating network, an industrial site, or the electricity grid.']]

function start()
{
	var bdy = document.getElementById('glossary_content').innerHTML;
	for (var i = kw.length - 1; i >= 0; i--) {
		var re = new RegExp("(\\b" + kw[i][0] + "\\b)(?!([^<]+)?>)", 'ig');
		bdy = bdy.replace(re,'<span title="'+kw[i][1]+'" class="hl">$1<\/span>');
		var re1 = new RegExp('(<[^>]*?)<span class="hl">('+kw[i][0]+')<\/span>(.*?>)','ig');
		bdy = bdy.replace(re1,'$1$2$3');
		var re2 = new RegExp('(<script.*?>)<span class="hl">('+kw[i][0]+')<\/span>(<\/script>)','ig');
		bdy = bdy.replace(re2,'$1$2$3');
		var re3 = new RegExp('(<textarea.*?>)<span class="hl">('+kw[i][0]+')<\/span>(<\/textarea>)','ig');
		bdy = bdy.replace(re3,'$1$2$3');
	}
	document.getElementById('glossary_content').innerHTML = bdy;
}
window.onload = start;

