document.write("<center><font size=\"2\" color=\"#FF0000\"><b>");
if (lang == 'dk')
  document.write("Billed Gallerier");
else
if (lang == 'en')
  document.write("Picture Galleries");
else
if (lang == 'de')
  document.write("Bilder Galerien");
if (netscape > 4) {
  document.write("</b></font>");
  document.write("</center>");
  new tree (TREE_ITEMS, TREE_TPL);
  }
else {
  function ntree (a_items) {
    this.a_config   = a_items;
    this.o_root     = this;
    this.a_index    = [];
    this.o_selected = null;
    this.n_depth    = -1;
    this.a_children = [];
    for (var i = 0; i < a_items.length; i++)
      new ntree_item(this, i);
    }
  function ntree_item (o_parent, n_order) {
    this.n_depth  = o_parent.n_depth + 1;
    this.a_config = o_parent.a_config[n_order + (this.n_depth ? 2 : 0)];
    if (!this.a_config) return;
    //************************************************************************
    galleri = (this.a_config+'').split(',');
    if (galleri[1].substr(0,5) == 'http:')
      document.write("<br><a href=\""+galleri[1]+"\">"+galleri[0]+"</a>");
    else
      document.write("<br>"+galleri[0]);
    //************************************************************************
    this.o_root    = o_parent.o_root;
    this.o_parent  = o_parent;
    this.n_order   = n_order;
    this.b_opened  = !this.n_depth;
    this.n_id = this.o_root.a_index.length;
    this.o_root.a_index[this.n_id] = this;
    o_parent.a_children[n_order] = this;
    this.a_children = [];
    for (var i = 0; i < this.a_config.length - 2; i++)
      new ntree_item(this, i);
    }
  ntree(TREE_ITEMS);
  document.write("</b></font>");
  document.write("</center>");
  }

