function toggle ( targetId ) {
  if (targetId == "rightcontent") { // if this is a request for toggling UB
    if (document.getElementById) {
      target = document.getElementById( targetId );
      if (target.style.display == "none") { // if UB is already off (we are turning it on)
        target.style.display = "";
        center = document.getElementById( 'centercontent' );
        banner = document.getElementById( 'banner2' );
        other = document.getElementById( 'leftcontent' );
        if (other.style.display == "") { // if other item is on
          center.style.marginRight = "402px";
          banner.style.marginRight = "402px";
          other.style.right = "200px";
        } else if (other.style.display == "none") { // if other item is off
          center.style.marginRight = "202px";
          banner.style.marginRight = "202px";
          other.style.right = "200px";
        }
      } else { // if UB is on (we are turning it off)
        target.style.display = "none";
        center = document.getElementById( 'centercontent' );
        banner = document.getElementById( 'banner2' );
        other = document.getElementById( 'leftcontent' );
        if (other.style.display == "") {// if other item is on
          center.style.marginRight = "202px";
          banner.style.marginRight = "202px";
          other.style.right = "0px";
        } else if (other.style.display == "none"){
          center.style.marginRight = "0px";
          banner.style.marginRight = "0px";
        }
      }
    }
  } else if ( targetId == "leftcontent" ) { // if we are toggling UM
    if (document.getElementById) {
      target = document.getElementById( targetId );
      if (target.style.display == "none") { // if UM is off (we are turning it on)
        target.style.display = "";
        center = document.getElementById( 'centercontent' );
        banner = document.getElementById( 'banner2' );
        other = document.getElementById( 'rightcontent' );
        if (other.style.display == "") { // if other is on
          center.style.marginRight = "402px";
          banner.style.marginRight = "402px";
          target.style.right = "200px";
        } else { // if other is off
          center.style.marginRight = "202px";
          banner.style.marginRight = "202px";
          target.style.right = "0px";
        }
      } else { // if UM is on (we are turning it off)
        target.style.display = "none";
        center = document.getElementById( 'centercontent' );
        banner = document.getElementById( 'banner2' );
        other = document.getElementById( 'rightcontent' );
        if (other.style.display == "none") { // if other is off
          center.style.marginRight = "0px";
          banner.style.marginRight = "0px";
        } else { // if other is on
          center.style.marginRight = "202px";
          banner.style.marginRight = "202px";
        }
      }
    }
  }
}
