 	function getElement(whichLayer) {
		var elem;
		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( whichLayer );
		else if( document.all ) // this is the way old msie versions work
			elem = document.all[whichLayer];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[whichLayer];

		return elem;
	}

	function setDefaultActiveEvent() {
		setActiveEvent((new Date()).getDay());
	}

	function setActiveEvent(selectVal) {
		var navRoot = getElement("accordion");
		var index = 0;
		for (i=0; i<navRoot.childNodes.length; i++) {
			var node = navRoot.childNodes[i];
			if (node.nodeName=="DIV") {

				if(index == selectVal) {
					node.style.width = "245px";
					node.style.overflow = "auto";
					node.style.backgroundColor = "#C5B18C";
				}
				else {
					node.style.width = "24px";
					node.style.overflow = "hidden";
					node.style.backgroundColor = "transparent";
				}

				index++;
			}
		}
	}
