/*
  Toggle all sections on or off
*/
function toggleAll(section) {
  if (section == 'yh') {
    var sections = ['yh_sh',
                    'yh_gb',
                    'yh_md',
                    'yh_sa',
                    'yh_el'];
  }
  else if (section == 'hp') {
    var sections = ['hp_ph',
                    'hp_nu',
                    'hp_pl',
                    'hp_pr',
                    'hp_or',
                    'hp_tl'];  
  }
  else if (section == 'hs') {
    var sections = ['hs_ab',
                    'hs_sp'];  
  }
  
  for (current in sections) {
    toggle(sections[current]+'_trigger', sections[current]);
  }
  var fullHeightTable = document.getElementsByTagName('table')[8];
  fullHeightTable.style.height = 'auto';
}

/*
  Toggle for sections in public health site map.
*/ 
function toggle(triggerId, sectionId) {
  var trigger = document.getElementById(triggerId).parentNode.parentNode;
  trigger.style.listStyleImage = (trigger.style.listStyleImage == 'url(/hlth_templates_2007/images/arrow_yellow_sm.gif)' ? 'url(/hlth_templates_2007/images/arrow_yellow_sm_down.gif)' : 'url(/hlth_templates_2007/images/arrow_yellow_sm.gif)' );
	var section = document.getElementById(sectionId);
	section.style.display = (section.style.display != 'none' ? 'none' : 'block' );
}