%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: dag.txt,v 5.4 2007/01/19 01:53:16 ddr Exp $ -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20121003 templ=templm -->
  <title>%nn;
    %if;(evar.slices = "on")
      [*display by slices/slice width/overlap/total width]0%nn;
    %else;%head_title;%end;
  </title>
  <meta name="robots" content="none"%/>
  <meta name="format-detection" content="telephone=no"%/>
  <meta http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png"%/>
  %include.css;
  %base_header;
</head>

%define;url(z1,z2)
  %foreach;env_binding;
    %if;(env.key="z1")z1=z2;%else;%env.key;=%env.val;;%end;
  %end;
  z1=z2;
%end;

<body%body_prop; id="dag">
%message_to_wizard;

%if;not cancel_links;
  <div class="menu2">
    %if;(bvar.no_image_for_visitor != "yes" or friend or wizard)
      %if;(evar.image="on")
        <a style="text-decoration:line-through;"
           href="%prefix_base;%apply;url("image","")"
           title="- [image/images]1">img</a>
      %else;
        <a href="%prefix_base;%apply;url("image","on")"
           title="+ [image/images]1">img</a>
      %end;
    %end;
    <a style="text-decoration:line-through;" href="%prefix_base;%apply;url("cgl","on")"
       title="[cancel GeneWeb links]">@</a>
    %if;has_referer;
      <a href="%referer;" title="[back]">&lt;&lt;</a>
    %end;
      <a href="%prefix;" title="[visualize/show/hide/summary]3">^^</a>
  </div>
%end;
%if;(evar.slices = "on")
  <h1>%nn;
    [*display by slices/slice width/overlap/total width]0%nn;
  </h1>
  <form method="GET" action="%action;">
  <p>
  %hidden;
  %foreach;env_binding;
    %if;(env.key != "slices")
      <input type="hidden" name="%env.key;" value="%env.val.decoded;"%/>
    %end;
  %end;
  </p>
  <table>
  <tr align="%left;">
    <td align="%right;">
      <label>
      [*don't group the common branches together]
      <input type="checkbox" name="nogroup" value="on"%/>
      </label>
    </td>
  </tr>
  <tr align="%left;">
    <td align="%right;">
      <label>
      [*display by slices/slice width/overlap/total width]1
      <input name="dpos" size="5" value="78"%/>
      </label>
    </td>
  </tr>
  <tr align="%left;">
    <td align="%right;">
      <label>
      [*display by slices/slice width/overlap/total width]2
      <input name="overlap" size="5" value="10"%/>
      </label>
    </td>
  </tr>
  <tr align="%left;">
    <td align="%right;">
      <label>
      [*display by slices/slice width/overlap/total width]3
      (%dag.min_wid;-%dag.max_wid;)
      <input name="width" size="5" value="%nn;
        %if;(dag.max_wid <= 78)%dag.max_wid;
        %elseif;(dag.min_wid >= 78)%dag.min_wid;
        %else;78%end;"%/>
      </label>
    </td>
  </tr>
  </table>
  <p><input type="submit" value="Ok"%/></p>
  </form>
%else;
  %if;(evar.notab != "on" and not cancel_links)
    <div style="text-align:%right;">
     <br%/>
     <a href="%prefix;%foreach;env_binding;%env.key;=%env.val;;%end;%nn;
       notab=on;slices=on" accesskey="/" title="[*display by slices/slice width/overlap/total width]0">
       <tt>//</tt>
     </a>
    </div>
  %end;
  %if;(evar.notab = "on" or evar.pos2 != "")
    %let;dpos;%if;(evar.dpos != "")%evar.dpos;%else;78%end;%in;
    %let;pos1;%if;(evar.pos1 != "")%evar.pos1;%else;0%end;%in;
    %let;pos2;%if;(evar.pos2 != "")%evar.pos2;%else;%dpos;%end;%in;
    %let;overlap;%if;(evar.overlap != "")%evar.overlap;%else;10%end;%in;
    %if;(pos1 != 0 or pos2 < dag.ncol)
      <div style="text-align:right">
        <br%/>
        %if;(pos1 = 0)&nbsp;%nn;
        %else;
          <a href="%prefix_base;
            %foreach;env_binding;
              %if;(env.key != "pos1" and env.key != "pos2")
                %env.key=%env.val;;%nn;
              %end;
            %end;
            pos1=%expr;(pos1 + overlap - dpos)
            ;pos2=%expr(pos1 + overlap)">&lt;&lt;</a>%nn;
        %end;%nl
        %if;(pos2 >= dag.ncol)&nbsp;%nn;
        %else;
          <a href="%prefix_base;
            %foreach;env_binding;
              %if;(env.key != "pos1" and env.key != "pos2")
                %env.key=%env.val;;%nn;
              %end;
            %end;
            pos1=%expr;(pos2 - overlap)
            ;pos2=%expr(pos2 - overlap + dpos)">&gt;&gt;</a>%nn;
        %end;%nl;
      </div>
    %end;
    <pre>
    %foreach;dag_line;
      %foreach;dag_line_pre;
        %foreach;dag_cell_pre;
          %dag_cell_pre;%nn;
        %end;%nl;
      %end;
    %end;
    </pre>
  %else;
    <table border="%border;" width="100%%"><tr><td align="center">
    <table border="%border;" cellspacing="0" cellpadding="0">
    %foreach;dag_line;
      <tr align="left">
      %foreach;dag_cell;
        <td %if;(dag_cell.colspan > 1)colspan="%dag_cell.colspan;" %end;align="%dag_cell.align;">%nn;
        %if;dag_cell.is_nothing;&nbsp;%nn;
        %elseif;dag_cell.is_bar;
          %if;(dag_cell.bar_link != "" and evar.cgl != "on")
            <a style="text-decoration:none;" href="%dag_cell.bar_link;">|</a>%nn;
          %else;|%end;
        %elseif;(dag_cell.item != "")%dag_cell.item;
        %elseif;(dag_cell.text != "")%dag_cell.text;
        %else;
          %if;dag_cell.is_hr_left;
            <hr class="%left;"%/>%nn;
          %elseif;dag_cell.is_hr_right;
            <hr class="%right;"%/>%nn;
          %else;
            <hr class="full"%/>%nn;
          %end;
        %end;
        </td>
      %end;
      </tr>
    %end;
    </table>
    </td></tr></table>
  %end;
  %if;(link_next != "")
    <p>
    <a href="%link_next;;image=%evar.image;;bd=%evar.bd;" accesskey=">">&gt;&gt;</a>%nl;
    </p>
  %end;
%end;
  %base_trailer;
  %copyright;
</body>
</html>
