// JavaScript Document
var GlossaryTitle = new Array();
var GlossaryDescription = new Array();

GlossaryTitle[0]       = "Alum - aluminium sulphate";
GlossaryDescription[0] = "A chemical used to assist in water purification. It helps the contaminants in raw water to flocculate, or collect into clumps."

GlossaryTitle[1]       = "BOD - biochemical oxygen demand";
GlossaryDescription[1] = "The amount of oxygen used when organic matter undergoes decomposition by microorganisms. Testing for BOD is done to assess the amount of organic matter in water."

GlossaryTitle[2] 		= "Bund (Bunding)";
GlossaryDescription[2] 	= "Barrier used to contain spills. It is often a low concrete barrier, like a low wall or a speed hump, which surrounds storage containers for dangerous substances.";

GlossaryTitle[3] 		= "Catchment";
GlossaryDescription[3] 	= "An area that flows into one river system";

GlossaryTitle[4] 		= "Catchment - protected";
GlossaryDescription[4] 	= "A catchment that is fenced off to protect the water supply from contamination";

GlossaryTitle[5] 		= "Catchment - open";
GlossaryDescription[5] 	= "A catchment that is un-protected";

GlossaryTitle[6] 		= "Chloramination";
GlossaryDescription[6] 	= "the treatment of water, with chlorine and ammonia (chloramines) in order to kill disease-causing organisms.";

GlossaryTitle[7] 		= "Chlorination";
GlossaryDescription[7] 	= "Treating water with sodium hypochlorite or chlorine gas to kill disease-causing organisms. If ammonia is added at the same time, the process is called 'chloramination'. See also 'chlorine', 'chlorine demand' and 'chlorine residual'. ";

GlossaryTitle[8] 		= "Chlorine";
GlossaryDescription[8] 	= "A naturally occurring, poisonous greenish-yellow non-metallic gas used to purify water, for bleaching and in the manufacture of many organic chemicals. It occurs naturally as a component of salt in sea water.";

GlossaryTitle[9] 		= "Chlorine demand";
GlossaryDescription[9] 	= "The materials in the water which use up chlorine, such as bacteria, algae, sediment, plant materials and waste products. The chlorine demand must be satisfied before a chlorine residual is available to disinfect the water.";

GlossaryTitle[10] 		= "Chlorine residual";
GlossaryDescription[10] = "The amount of chlorine left over if dosage exceeds demand. Sometimes called 'total chlorine residual'. See also 'free chlorine residual' and 'chlorine demand'. ";

GlossaryTitle[11] 		= "Contamination   ";
GlossaryDescription[11] = "Unwanted substances getting into either stormwater or sources of drinking water";

GlossaryTitle[12] 		= "Delineating tape (bunting)  ";
GlossaryDescription[12] = "Plastic tape that can be put around an area to cordon it off from the public  ";

GlossaryTitle[13] 		= "Electrical conductivity";
GlossaryDescription[13] = "a measure of salinity, the more saline water is, the higher its ability to conduct electricity.";

GlossaryTitle[14] 		= "EPA  ";
GlossaryDescription[14] = "Environmental Protection Authority or Agency. These are state or territory level government bodies whose primary concerns are care of the environment. See the Central Water Intranet site for links to the EPA website in your state or territory.   ";

GlossaryTitle[15] 		= " E-coli - Escherichia coli  ";
GlossaryDescription[15] = " One of the main species of bacteria that live in the lower intestines of warm-blooded animals. This bacteria is necessary for the proper digestion of food. Its presence in water is a common indicator of fecal contamination - the presence of poo.   ";

GlossaryTitle[16] 		= "Faeces";
GlossaryDescription[16] = "Solid waste produced by animals (this includes humans).";

GlossaryTitle[17] 		= "Flocculation    ";
GlossaryDescription[17] = "The process whereby suspended solids in water clump together, making them easier to remove from the water.";

GlossaryTitle[18] 		= "Free chlorine residual    ";
GlossaryDescription[18] = "The amount of chlorine remaining in a water purification system after the chlorine demand has been satisfied. Used as a monitoring measurement by system operators.";

GlossaryTitle[19] 		= "Gibault";
GlossaryDescription[19] = "(Pronounced 'gibbo'.) A type of screw clamp fitting used to join pipes and fittings";

GlossaryTitle[20] 		= "Groundwater";
GlossaryDescription[20] = "Starts as rainwater and enters the ground and is stored in permeable rock. It is extracted for use from bores and springs.";

GlossaryTitle[21] 		= " Head : metres head";
GlossaryDescription[21] = "a measure of the water supply in comparison to its supply point. ";

GlossaryTitle[22] 		= "Headworks ";
GlossaryDescription[22] = "Water authority infrastructure at the beginning of a catchment. ";

GlossaryTitle[23] 		= " Hypochlorite";
GlossaryDescription[23] = "Sodium hypochlorite: a chemical used to disinfect water or spills. ";

GlossaryTitle[24] 		= " Infrastructure";
GlossaryDescription[24] = "This includes buildings, equipment, power and communications ";

GlossaryTitle[25] 		= "Jar testing ";
GlossaryDescription[25] = "When water characteristics fall outside the acceptable parameters, jar tests are undertaken. These tests model the situation in the water source and allow operators to try different methods to achieve acceptable levels. For example, in situations of very high turbidity, the normal dosing agents of alum and polymer may not lead to adequate flocculation. A range of different flocculating agents may be tried in jar tests to find the best chemical or mix of chemicals to achieve the desired results.";

GlossaryTitle[26]  		= "Kilolitre (abbreviation kL or kl)    ";
GlossaryDescription[26] = "One thousand litres.   ";

GlossaryTitle[27] 		= "Megalitre (abbreviation ML)   ";
GlossaryDescription[27] = "One million litres. Compare with millilitre.  ";

GlossaryTitle[28] 		= "Millilitre (abbreviation mL)   ";
GlossaryDescription[28] = "One thousandth of a litre. Compare with megalitre.    ";

GlossaryTitle[29] 		= "MSDS   ";
GlossaryDescription[29] = "Material Safety Data Sheet, supplied with any chemical ";

GlossaryTitle[30] 		= "NTU";
GlossaryDescription[30] = "Nephelometric turbidity unit, a measure of the clarity of water.";

GlossaryTitle[31] 		= "Pathogens ";
GlossaryDescription[31] = "Micro-organisms that cause disease in animals and plants. ";

GlossaryTitle[32] 		= "pH - potential of Hydrogen   ";
GlossaryDescription[32] = "The pH of water is a scientific measurement that describes how acidic or alkaline (basic) the water is. A pH of 7 is neutral.    ";

GlossaryTitle[33] 		= "Polymer ";
GlossaryDescription[33] = "a flocculent  ";

GlossaryTitle[34] 		= "Polyelectrolyte  ";
GlossaryDescription[34] = "a flocculent ";

GlossaryTitle[35] 		= "PPE  ";
GlossaryDescription[35] = "Personal Protective Equipment.  ";

GlossaryTitle[36] 		= "Public concern ";
GlossaryDescription[36] = "Where there could be an effect to the public   ";

GlossaryTitle[37] 		= "Public health ";
GlossaryDescription[37] = "The general health of the population  ";

GlossaryTitle[38] 		= "PVC";
GlossaryDescription[38] = "Poly Vinyl Chloride. Usually referred to in conjunction with PVC pipes ";

GlossaryTitle[39] 		= "Question types  ";
GlossaryDescription[39] = "There are three main types of questions: closed, open and clarifying. Closed questions can be answered with a 'yes' or a 'no'. Open questions can elicit opinions, feelings, knowledge and reactions. Clarifying questions allow the listener to directly check their understanding of what is being said to them'";

GlossaryTitle[40] 		= "Rod jetter";
GlossaryDescription[40] = "High pressure water pipe/rod inserted into a pipe to attempt to clear blockages. ";

GlossaryTitle[41] 		= " Root cutter  ";
GlossaryDescription[41] = "A machine with a rotating cutter head that can be fed down a pipe, to cut through blockages  ";

GlossaryTitle[42] 		= "SCADA";
GlossaryDescription[42] = "Supervisory Control and Data Acquisition: a computerised system to monitor and control infrastructure.";

GlossaryTitle[43]		="Sensitive receiving environment";
GlossaryDescription[43] = "Part of the environment that could be affected by an action of the relevant Water Authority  ";

GlossaryTitle[44] 		= "Spill trailer";
GlossaryDescription[44] = "An emergency response trailer that contains an array of equipment such as bunding, pump, sand bags, disinfectant.";

GlossaryTitle[45] 		= "SS - suspended solids    ";
GlossaryDescription[45] = "Solids that are either suspended in water or float on the surface. They can mostly be removed by filtering.";

GlossaryTitle[46] 		= "Storm water   ";
GlossaryDescription[46] = "Rain water that flows off hard surfaces in cities and towns.  ";

GlossaryTitle[47] 		= " System choke  ";
GlossaryDescription[47] = "A system choke is a blockage that prevents normal flow of water or sewage. The majority of chokes in treatment plants occur at reclamation plants.";

GlossaryTitle[48] 		= "Telemetry ";
GlossaryDescription[48] = "A radio communications system that allows recording of data at a remote site to be sent to another site e.g. head office.";

GlossaryTitle[49] 		= "Turbidity   ";
GlossaryDescription[49] = "The amount of solid particles that are suspended in water and that cause light rays shining through the water to scatter. Turbidity makes the water cloudy or even opaque in extreme cases. Turbidity is measured in nephelometric turbidity units (NTU).";

GlossaryTitle[50]		= "Vitreous";
GlossaryDescription[50] = "Kiln Fired clay pipes, hard but brittle.";

function mouseX(evt) {
  if (evt.pageX) return evt.pageX; 
  else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft); 
  else return null;
}

function mouseY(evt) {
  if (evt.pageY) return evt.pageY; 
  else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); 
  else return null;
}

function glossaryItem(gloss_index){
	document.getElementById("glossaryTitle").innerHTML = GlossaryTitle[gloss_index] 
	document.getElementById("glossaryDescription").innerHTML = GlossaryDescription[gloss_index]
}

function showGlossary(evt,gi,wd) {
	oi = 'glossaryHolder';
	
	if (gi) glossaryItem(gi);
	ds = 1 ? document.getElementById(oi).style:document.getElementById(oi); 
	dm = 0 ? document.getElementById(oi).style:document.getElementById(oi); 
	st = ds.visibility; 
	if (dm.offsetWidth) ew = dm.offsetWidth; 
	else if (dm.clip.width) ew = dm.clip.width; 
	if (st == "visible") {
	  ds.visibility = "hidden"; 
	} else {
	
	  tv = mouseY(evt) + 20; 
	  lv = mouseX(evt); 	
	
	  if (wd){
		if (lv > (wd-300)) lv=lv-200;  
	  }
	  	    
	  lv += 'px';
	  tv += 'px';

	  ds.left = lv; 
	  ds.top = tv; 
	  ds.visibility = "visible";
	}
}
