/*
	toggleLinkClass
	
	@param string linkId The ID of link
	@param string itemId The ID of the item to have class changed
	@param string activeClass The class to be placed on the link when it's active
*/
function toggleLinkClass(linkId, itemId, activeClass) {
	if(document.getElementById(linkId) && document.getElementById(itemId)) {
		var anchor = document.getElementById(linkId);
		var object = document.getElementById(itemId);
		anchor.onclick = function() {
			if(object.className.search(activeClass) > 0) {
				object.className = object.className.replace(activeClass, '')
			}
			else {
				object.className += ' ' + activeClass;
			}
			return false;
		};
	}
};