// This function will expand DIVs for more info (MUST USE PLUS_SIGN.GIF IMAGE ALSO)
function toggleLayer( whichLayer )
{
  var elem, icon, vis;
  if( document.getElementById ) {// this is the way the standards work
    elem = document.getElementById( whichLayer );
	icon = document.getElementById( whichLayer + '_icon') ; 
	}
//  else if( document.all ) {// this is the way old msie versions work
//     elem = document.all[whichLayer];
//	  icon = document.all[whichLayer + '_icon'] ; 
//	}
  else if( document.layers ) {// this is the way nn4 works
    elem = document.layers[whichLayer];
	}
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function changeSections() {
	var text = document.getElementById('expand_link');
//	var image = document.getElementById('expand_link_icon');
	var x = document.getElementsByTagName('div');
	var z = document.getElementsByTagName('a');
//	var y = document.getElementsByTagName('img');

	for (var i=0;i<x.length;i++) {
		if (x[i].className == 'expandable_content')
			if (text.innerHTML == 'Expand All Sections') {
				x[i].style.display = 'block';
			} else {
				x[i].style.display = 'none';
			}
//		x[i].style.display = (x[i].style.display=='block')?'none':'block';
	}

	for (var i=0;i<z.length;i++) {
		
		if (z[i].className == 'expandable_header') {
			z[i].className = 'expandable_header expandable_header_open';
		} else if (z[i].className == 'expandable_header expandable_header_open') {
			z[i].className = 'expandable_header';
		}
	}

	text.innerHTML = (text.innerHTML=='Expand All Sections')?'Collapse All Sections':'Expand All Sections';
}