/*---------------------------------------------------------*/
 /*---------------------------------------------------------*/
 //   Function:      adds javascript events to elements that simulate CSS actions that some older browsers do not support.
 //			  		 loadLocationMaps, mapLocationOn and mapLocationOff are all inter-related.
 //   Inputs:        none
 //   Returns:       n/a
 //   Author:        James Offer
 //   Usage example: use in onload on body - will automatically add javascript events to all required elements

function loadLocationMaps() {
	if (document.all) {
	// we only require this for a non CSS2 compatible browser such as IE6
		var mapList = document.getElementsByTagName("li");
		for (i=0;i<mapList.length;i++) {
			if (mapList[i].parentNode.className=="ukMap") {
				if (mapList[i].childNodes[0].className) {
					mapList[i].childNodes[0].onmouseover=mapLocationOnReverse;
				} else {
					mapList[i].childNodes[0].onmouseover=mapLocationOn;
				}
				mapList[i].childNodes[0].onmouseout=mapLocationOff;	
				mapList[i].childNodes[0].style.zIndex=0;
				mapList[i].childNodes[0].style.zIndex=mapList[i].childNodes[0].style.zIndex;
				mapList[i].childNodes[0].childNodes[0].onmouseout=mapLocationOff;
				mapList[i].childNodes[0].childNodes[0].style.zIndex=0;
				mapList[i].childNodes[0].childNodes[0].style.zIndex=mapList[i].childNodes[0].childNodes[0].style.zIndex;
			}
		}
	}
}

function mapLocationOnReverse() {
	this.className="mapLocationOnReverse";
	this.style.zIndex="4";
}

function mapLocationOn() {
	this.className="mapLocationOn";
	this.style.zIndex="3";
}

function mapLocationOff() {
	this.className="mapLocationOff";
	this.style.zIndex="2";
}


 /*---------------------------------------------------------*/
 /*---------------------------------------------------------*/