<?

class Split
{ 
  // class variables
  var $menu;
  var $content;
  var $menupct;
  var $res;

  // Constructor (menupct = size of menu in %)
  function Split($menu, $content, $menupct) 
    {
      $this->res = "";
      $this->content = $content;
      $this->menu = $menu;
      $this->menupct = $menupct;
    }

  // Compute res
  function getResult()
    {
      $this->res = "<table width=100%><tr><td valign=top width=\"" .
	$this->menupct . "\">" . $this->menu . "</td><td valign=top>" .
	$this->content . "</td></tr></table>";
    }
}

?>
