/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/paged_menu.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
tabmenu = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}

/*
tabmenu_news = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}

tabmenu_obituaries = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}

tabmenu_multimedia = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}

tabmenu_articles = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}

tabmenu_otherlinks = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}

tabmenu_multimedianews = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;
	for (var i=0; i<getEls.length; i++) {
		getEls[i].onclick=function() {
			for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("active", "normal");
			}
			this.className+=" active";
		}
	}
}
*/