	
	var default_bg_color="#f4e0c6";
	var default_color="#ff6a11";
	
	var highlight_bg_color="#ff6a11";
	var highlight_color="#f4e0c6";
	
	var expanded_menu_header_bg_color="#f5c88d";
	 
    function on_menu(menu_id) 
    {
	   var selected_menu=document.getElementById("menu_"+menu_id); 
	   var selected_menu_text=document.getElementById("menu_text_"+menu_id); 
       selected_menu.style.backgroundColor=highlight_bg_color;
	   selected_menu_text.style.color=highlight_color;
	}
	
	function off_menu(menu_id)
	{
	   var selected_menu=document.getElementById("menu_"+menu_id); 
	   var selected_menu_text=document.getElementById("menu_text_"+menu_id); 
       selected_menu.style.backgroundColor=default_bg_color;
	   selected_menu_text.style.color=default_color;
	}
	
	function on_menu_header (menu_id) 
    {
	   var childlist=document.getElementById("childlist_"+menu_id);
	   if (childlist.style.display=="none" || childlist.style.display=="")
	   {
	      var selected_menu=document.getElementById("menu_header_"+menu_id); 
          selected_menu.style.backgroundColor=highlight_bg_color;
	      selected_menu.style.color=highlight_color;
       }		  
	}
	
	function off_menu_header (menu_id)
	{
	   var childlist=document.getElementById("childlist_"+menu_id);
	   if (childlist.style.display=="none" || childlist.style.display=="")
	   {
	      var selected_menu=document.getElementById("menu_header_"+menu_id); 
          selected_menu.style.backgroundColor=default_bg_color;
	      selected_menu.style.color=default_color;
	   }	  
	}
	
    function toggle_list(list_id)
	{
	   var childlist=document.getElementById("childlist_"+list_id);
	   var toggle_img=document.getElementById("toggle_img_"+list_id);
	   var src=toggle_img.getAttribute("src");
	   var menu_header=document.getElementById("menu_header_"+list_id);
	   
	   if (childlist.style.display=="none" || childlist.style.display=="")
	   {
	      childlist.style.display="block";
		  
  		  var index=src.indexOf("plus.gif");
  		  if (index!=-1)
  		  {
    	     var new_src=src.substring(0,index)+"minus.gif";
             toggle_img.setAttribute("src", new_src);
          }
		  menu_header.style.backgroundColor=expanded_menu_header_bg_color;  
	   }
	   else
	   {
	   	  childlist.style.display="none";	  
          
  		  var index=src.indexOf("minus.gif");
  		  if (index!=-1)
  		  {
    	     var new_src=src.substring(0,index)+"plus.gif";
             toggle_img.setAttribute("src", new_src);
          }
		  menu_header.style.backgroundColor=default_bg_color;
	   }
    }	   
	   

