	// Nav Bar
	/*
	sfHover = function() {
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		var n = sfEls.length;
		for (var i=0; n>i; i++) {
			if (sfEls[i].className=='menu-inactive-li') {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	*/
	function show_reaction() {
		document.getElementById('reaction').style.display = 'block';
		document.getElementById('reaction_button').style.display = 'none';
	}
	function jump_archive() {
		var jumpto = './'+document.getElementById('a_category').value;
		if (document.getElementById('a_query').value) jumpto += '?a_query='+document.getElementById('a_query').value;
		location = jumpto;
	}
	var itemindex = 0;
	function selectmenu(item) {
		if (itemindex > 0) {
			document.getElementById('menu'+itemindex).style.background = 'transparent';
			document.getElementById('submenu'+itemindex).style.visibility = 'hidden';
		}
		document.getElementById('menu'+item).style.background = "url('images/bg_menu_active.png')";
		document.getElementById('menuhref'+item).style.color = "#614A34";
		
		
		if (item!=1) document.getElementById('menuhref1').style.color = "#E8E4CF";
		if (item!=2) document.getElementById('menuhref2').style.color = "#E8E4CF";
		if (item!=3) document.getElementById('menuhref3').style.color = "#E8E4CF";
		if (item!=4) document.getElementById('menuhref4').style.color = "#E8E4CF";
		if (item!=5) document.getElementById('menuhref5').style.color = "#E8E4CF";
		if (item!=6) document.getElementById('menuhref6').style.color = "#E8E4CF";
		
		document.getElementById('submenu'+item).style.visibility = 'visible';  
		itemindex = item;
	}
	
	
	  function Toggle(x) {
     var block = document.getElementById(x);
       if (block == null) return;
    			
       if (block.style.display == 'none') 
         block.style.display = '';
       else
         block.style.display = 'none';
   }







