<!--
// define the array of glossary values

var msg = new Array();
msg[0] = "<p class=\"tooltip\"> Carpet has an open weave to allow the pile of carpet to be filled to within 2mm of the tips of the fibre with kiln dried silica sand. Sand gives the product stability and play characteristics. </p>";
msg[1] = "<p class=\"tooltip\"> Carpet is tufted to a medium density and the pile of the carpet is filled to within 5-8mm of the tips of the fibre with kiln dried silica sand. In normal use, it is not possible to see the sand but the sand adds weight and stability to the product.</p>";
msg[2] = "<p class=\"tooltip\"> Carpet is tufted or knitted very densely. Density and strength of fibre will support players weight. A lubricant must be applied to reduce friction water is the most economical. Water is essential for nylon surfaces to reduce the harshness of the fibre.</p>";
msg[3] = "<p class=\"tooltip\"> A Desso water based carpet manufactured by tufting polypropylene</p>";
msg[4] = "<p class=\"tooltip\"> Manufacturing process used to weave fibre/yarn into a carpet. A piece of yarn is passed down through a backing and brought back up through the backing to form a tuft.</p>";
msg[5] = "<p class=\"tooltip\"> Material most commonly used as a fibre for artificial turf. Polypropylene is both hard wearing and stable but does not offer too much friction leading to burns for the users.</p>";
msg[6] = "<p class=\"tooltip\"> Pile is constructed such that play characteristics will be similar no matter which direction the ball rolls across the surface.</p>";
msg[7] = "<p class=\"tooltip\"> Desso’s world class tennis carpet suitable for outdoor applications.</p>";
msg[8] = "<p class=\"tooltip\"> Length of fibre showing (or height of carpet) above the backing material. Normally 7-15mm pile height for sports requiring fine ball control and light use.</p>";
msg[9] = "<p class=\"tooltip\"> Length of fibre showing (or height of carpet) above the backing material. Normally 15-30mm pile height for sports requiring moderate ball control but heavy use.</p>";
msg[10] = "<p class=\"tooltip\"> Length of fibre showing (or height of carpet) above the backing material. Normally 30-70mm pile height for sports requiring a particular feel to the surface and also heavy use.</p>";
msg[11] = "<p class=\"tooltip\"> Process by which synthetic fibres are added to a natural turf field to improve the wear characteristics surface and allow more games to be played per season.</p>";
msg[12] = "<p class=\"tooltip\"> Construction of natural turf field where growing medium/soil is placed above a drainage layer. Sufficient water for growth is held in the soil yet excess water drains away through the drainage layer. In dry periods, the suspended water can dry out leaving no moisture for grass growth – additional irrigation may be required. Play is possible for longer during wet period due to the enhanced drainage.</p>";
msg[13] = "<p class=\"tooltip\"> A layer of sand is placed above the growing medium to create a well drained playing surface. </p>";
msg[14] = "<p class=\"tooltip\"> A narrow channel is cut into the topsoil and filled with fine granular material (usually sand). Depth of channel should be to underlying pipe drains.</p>";
msg[15] = "<p class=\"tooltip\"> A series of perforated pipes surrounded with gravel installed below the growing zone to effect the dispersal of water from the ground.</p>";
msg[16] = "<p class=\"tooltip\"> Materials manufactured or heavily processed to form a product with suitable properties for the desired installation.</p>";
msg[17] = "<p class=\"tooltip\"> An impervious fine finished surface offering good grip and excellent ball rebound properties. Laid in several layers, some of which can be mainly rubber to offer some cushioning upon the surface. Product is water based and requires the correct ambient conditions to be laid. Best suited to indoor applications although can be used outdoor.</p>";
msg[18] = "<p class=\"tooltip\"> A mixed grading of stone bound with bitumen to produce a hard, firm material upon curing. Material is normally laid in a hot state. Commonly described as tarmac.</p>";
msg[19] = "<p class=\"tooltip\"> Construction upon which the track synthetic surface must be laid. Construction will vary according to the final surface chosen. Base should be firm, stable and provide drainage facilities for the track.</p>";
msg[20] = "<p class=\"tooltip\"> Fine granules of epdm (synthetic rubber) are mixed with a polyurethane binder and the blend of material is applied by spraying</p>";
msg[21] = "<p class=\"tooltip\"> Granules of epdm (synthetic rubber) are spread upon a surface a layer of viscous polyurethane which bonds the granules in place. Excess granules are then brushed off the surface.</p>";
msg[22] = "<p class=\"tooltip\"> A compact stone layer or series of layers to improve the stability of the ground.</p>";
msg[23] = "<p class=\"tooltip\"> Normally 2 bitumen macadam layers but can be concrete for indoor applications.</p>";
msg[24] = "<p class=\"tooltip\"> Timber is the main supporting component for the building. Building can be constructed insitu upon site or pre-formed in sections at a factory for final piecing together upon site.</p>";
msg[25] = "<p class=\"tooltip\"> A series of steel columns and beams are used to create the supporting structure for a building. Very good for buildings that require a large floor space with no supporting columns for the roof.</p>";
msg[26] = "<p class=\"tooltip\"> Multi Use Games Area, or areas used for many sports. Areas are intensively used and particular care should be taken over the choice of surface to ensure performance is maintained and wear is kept to a minimum.</p>";
msg[27] = "<p class=\"tooltip\"> International Amateur Athletic Federation. International governing body for athletics that produces standards for athletics facilities construction and gives details of layouts.</p>";
msg[28] = "<p class=\"tooltip\"> Federation Internationale de Hockey. The governing body for hockey who publish performance standards for the playing surface. Currently 3 standards are detailed – Starter pitches for training and schools Standard international and national competitions for clubsGlobal for major competitions</p>";
msg[29] = "<p class=\"tooltip\"> All England Netball Association. Governing body for England who have produced a performance standard for netball surfaces.</p>";

var Xoffset=-60;    // modify these values to ...
var Yoffset= 20;    // change the popup position.

var old, iex, ns4, ns6;
		
//set Layer object reference value
if (document.all) {

	iex = true;
	var lyr = tooltip.style;

} else if (document.layers) {

	ns4 = true;
	var lyr = document.tooltip2;

} else if (document.getElementById) { 

	ns6 = true;
	var lyr = document.getElementById("tooltip").style;
 
} else {

	old=true;

}

//set event handler
if(!old){
	
    if (ns6) {
		document.addEventListener('mousemove',get_mouse, false);
	} else {	
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove=get_mouse;	
	}

}


function showtip(who, what, msg) {
	
	Xoffset=-60;    // modify these values to ...
	Yoffset= 20;    // change the popup position.

	var bak = "lightyellow";

	var content;
	var x, y;
	
	if(old){
	
		return;
	
	} else {
		
		if (iex) {
				
			//Reset the width
			lyr.width="";
			
			//Set the content inside the layer
			document.all("tooltip").innerHTML=msg;
			
			if (document.all("tooltip").clientWidth > 400) {
				lyr.width="400px";
			}
					
			//Set Position prior to showing
			setPos(event.x+document.body.scrollLeft, event.y+document.body.scrollTop);
			lyr.visibility = "visible";

		} else if (ns4) {
		
			lyr.document.write(msg);
			lyr.document.close();

			if (lyr.clip.width > 400) {
				content = '<layer clip="400" width="400" name="innLayer" bgColor="lightYellow" style="border:1px solid white;"><font face="arial" size="2">'+msg+'</font></layer>';
			} else {
				content = '<layer name="innLayer" bgColor="lightYellow" style="border:1px solid white;"><font face="arial" size="2">'+msg+'</font></layer>';
			}			

			lyr.document.write(content);
			lyr.document.close();
			lyr.left=-450;

			lyr.visibility="show";

		} else if (ns6) {
	
			lyr.width = "";

			var div = document.getElementById("tooltip");
			div.innerHTML = msg;
			
			
			if (div.offsetWidth > 400) {
				lyr.width = 400;
			}
			
			lyr.left=-450;
			lyr.visibility="visible";
		
		}		
		
	}

}


function get_mouse(e){
  
	var x ,y;

	if (iex) {
	
		x = event.x+document.body.scrollLeft;
		y = event.y+document.body.scrollTop;

		if (lyr.visibility == "visible") {
			setPos(x, y);
		}
		
	} else if (ns4) {
	
		x = e.pageX;
	  	y = e.pageY;

		if (lyr.visibility == "show") {
			setPos(x, y);
		}	
		
	} else if (ns6) {  
	
		x = e.pageX;
		y = e.pageY;
	
		if (lyr.visibility == "visible") {
			setPos(x, y);
		}	
	
	}

}


function setPos(x, y) {
	
	var layTop=y+Yoffset;
	var layLeft=x+Xoffset;
	var layWidth;
	var layHeight;	

	var winHeight;
	var winWidth;


	if (iex) {
	
		winWidth = document.body.offsetWidth;
		winHeight = document.body.scrollTop+document.body.offsetHeight;				

		layWidth = document.all("tooltip").clientWidth;
		layHeight = document.all("tooltip").clientHeight;
		
	} else if (ns4) {
	
		winWidth = window.innerWidth;
		winHeight = window.pageYOffset+window.innerHeight;				

		layWidth = lyr.document.layers['innLayer'].clip.width;
		layHeight = lyr.document.layers['innLayer'].clip.height;

	} else if (ns6) {
	
		winWidth = window.innerWidth;
		winHeight = window.pageYOffset+window.innerHeight;				
		
		var div = document.getElementById("tooltip");

		layWidth = div.offsetWidth;
		layHeight = div.offsetHeight;
		
	}

	if (winWidth - layLeft < layWidth) {
		Xoffset = Xoffset + ((winWidth - layLeft) - (layWidth+40));
	} else if (layLeft < 0) {
		Xoffset = -60;
	}

	if (winHeight - layTop < layHeight) {
		Yoffset = Yoffset + (-1)*(layHeight+30);
	} else if (layTop < 0) {
		Yoffset = 20;
	}

	lyr.left=x+Xoffset;
	lyr.top=y+Yoffset;


}

function hidetip(){

	if (!old ) {

		// restore original position.
		lyr.visibility="hidden";
		Xoffset = -60;
		Yoffset = 20;

	}
	
}

//-->

