function SetTabEvents() {
	if ((document.getElementById('Tabs')) && (document.getElementById('Tab_Content'))) {
		var ThisLocationToString = document.location.href.toString();
		if (ThisLocationToString.lastIndexOf('#') >= 1) {
			var TabToDisplay = ThisLocationToString.substring(ThisLocationToString.lastIndexOf('#') + 1, ThisLocationToString.length);
			var x = document.getElementById('Tabs').childNodes;
			for (var i=0;i<x.length;i++) {
				if (x[i].name == TabToDisplay) {
					if (x[i].className == 'notselected') {
						x[i].className = 'selected';
					}  else if (x[i].className == 'notselected highlight') {
						x[i].className = 'selected highlight';
					}
					LoadHTMLInDiv(x[i].id,x[i].href, document.getElementById('Tab_Content'), document.getElementById('Tab_Content'));
					var MyPageTrackerURL = x[i].href.toString().replace('http://www.odi.org.uk', '');
					_gaq.push(['_trackPageview', MyPageTrackerURL]);
				} else {
					if (x[i].className == 'selected') {
						x[i].className = 'notselected';
					}  else if (x[i].className == 'selected highlight') {
						x[i].className = 'notselected highlight';
					}
				}
			}
		}
		var w = document.getElementsByTagName('A');
		for (var i=0;i<w.length;i++) {
			if ((w[i].parentNode.id == 'Tabs') && (w[i].name != '') && ((w[i].className == 'notselected') || (w[i].className == 'notselected highlight'))) {
				$(w[i]).removeEvents('click');
				$(w[i]).addEvent('click', function(){
					var TabToDisplay = this.name;
					var ThisLocationToString = document.location.href.toString();
					if (ThisLocationToString.lastIndexOf('#') >= 1) {
						document.location = ThisLocationToString.substring(0, ThisLocationToString.lastIndexOf('#')) + '#' + TabToDisplay;
					} else {
						document.location = document.location + '#' + TabToDisplay;
					}
					SetTabEvents();
					return false;
				});
			} else if ((w[i].parentNode.id == 'Tabs') && (w[i].name != '') && ((w[i].className == 'selected') || (w[i].className == 'selected highlight'))) {
				$(w[i]).removeEvents('click');
				$(w[i]).addEvent('click', function(){
					return false;
				});
			}
		}
	}
}
