
menu_status = new Array();

function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

function toggleActive(myid)
{
	var navigation_list = document.getElementById('navigation');
   	var getAnchors = navigation_list.getElementsByTagName('a');
	for ( var i = 0, j = getAnchors.length; i < j; ++i )
	{  
	   	if(getAnchors[i].id == myid.id)
	   	{
	   		myid.className = 'active';
	   	}
	   	else
	   	{
	   		getAnchors[i].className = '';
	   	}
	}  	
}