function toggleLayer ( elemID )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( elemID );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[elemID];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[elemID];
  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 toggleDivOL( elemID )
{
	var elem = document.getElementById( elemID );
	if( elem.style.position != 'absolute' )
	{
		elem.style.position = 'absolute';
		elem.style.left = '-4000px';
	}
	else
	{
		elem.style.position = 'relative';
		elem.style.left = '0px';
	}
}
