function hide(item) {
  var shown = document.getElementById('hide-' + item); // sets the item to be shown/hidden
  var tohide = document.getElementById('stat-' + item); // sets the place where the text will be changed
  if(shown.style.display == 'none') {
    shown.style.display = 'block';
	tohide.style.styleFloat = 'right';
	tohide.style.cssFloat = 'right';
	tohide.style.textAlign = 'right';
    tohide.innerHTML = '...hide';
    }
  else {
    shown.style.display = 'none';
	tohide.style.stylefloat = 'left';
	tohide.style.cssFloat = 'left';
	tohide.style.textAlign = 'left';
    tohide.innerHTML = '...show';
    }	  
  }
