<!-- //
// Toggle Content on and off
// Usage: have a div wrapping your hidden content...
//   <div id="domstuff" class="stuff" style="display:none">lalala</div>
// Now use a form or <a> to toggle it...
//   <a href="#" onclick="toggle('stuff');return false;" onkeypress="toggle('stuff');return false;">[click here]</a>
// or
//   <form action="subnav" style="margin: 6px 0 5px 0;">
//   <input type="button" class="togbutt" value="More info" onclick="toggle('stuff');return false;" onkeypress="toggle('stuff');return false;" />
//   </form>

var closeTimer;

function toggle( targetId ){
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target.style.display) {
			if (target.style.display == "none"){
				target.style.display = "";
			} else {
				target.closeMe = true;
				closeTimer = setTimeout("toggle_off_action('" + target.id + "')", 200);
			}
		} else if (target.style.visibility) {
			if (target.style.visibility == "visible") {
				target.closeMe = true;
				closeTimer = setTimeout("toggle_off_action('" + target.id + "')", 200);
			} else {
				target.style.visibility = "visible";
			}
		}
	}
}

function toggle_off ( targetId) {
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target) {
			target.closeMe = true;
			closeTimer = window.setTimeout("toggle_off_action('" + target.id + "')", 200);
		}
	}
}

function toggle_on ( targetId ) {
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target) {
			target.closeMe = false;
			if (target.style.display) {
				target.style.display = "";
			} else if (target.style.visibility) {
				target.style.visibility = "visible";
			}
		}
	}
}

function toggle_off_action ( targetId ) {
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target) {
			if (target.closeMe) {
				if (target.style.display) {
					target.style.display = "none";
				} else if (target.style.visibility) {
					target.style.visibility = "hidden";
				}
			} else {
				window.clearTimeout(closeTimer);
			}
		}
	}
}

// -->