
if (("" + document.location).indexOf('?') > 0 ) {
  delstr = ("" + document.location).split('?');
  deltxt = delstr[0];
  }
else {
  deltxt = ("" + document.location);
  }
delstr = deltxt.split('/');
doc = delstr[delstr.length-1].toLowerCase()

if (doc == 'galleri.pl') {
  lang = 'dk';
  prepath = '/';
  }
else
if (delstr[delstr.length-2].toLowerCase() == 'de'
||  delstr[delstr.length-2].toLowerCase() == 'en') {
  lang = delstr[delstr.length-2].toLowerCase();
  prepath = '../';
  }
else {
  lang = 'dk';
  prepath = './';
  }

/*
  Feel free to use your custom icons for the tree. Make sure they are all of the same size.
  User icons collections are welcome, we'll publish them giving all regards.
*/

var TREE_TPL = {
  'target'  : 'hovedramme',  // name of the frame links will be opened in
                             // other possible values are: _blank, _parent, _search, _self and _top

  'icon_e'  : prepath + 'treeicons/empty.gif', // empty image
  'icon_l'  : prepath + 'treeicons/line.gif',  // vertical line

  'icon_32' : prepath + 'treeicons/base.gif',   // root leaf icon normal
  'icon_36' : prepath + 'treeicons/base.gif',   // root leaf icon selected
  
  'icon_48' : prepath + 'treeicons/base.gif',   // root icon normal
  'icon_52' : prepath + 'treeicons/base.gif',   // root icon selected
  'icon_56' : prepath + 'treeicons/base.gif',   // root icon opened
  'icon_60' : prepath + 'treeicons/base.gif',   // root icon selected
  
  'icon_16' : prepath + 'treeicons/folder.gif', // node icon normal
  'icon_20' : prepath + 'treeicons/folderopen.gif', // node icon selected
  'icon_24' : prepath + 'treeicons/folderopen.gif', // node icon opened
  'icon_28' : prepath + 'treeicons/folderopen.gif', // node icon selected opened

  'icon_0'  : prepath + 'treeicons/page.gif', // leaf icon normal
  'icon_4'  : prepath + 'treeicons/page.gif', // leaf icon selected
  
  'icon_2'  : prepath + 'treeicons/joinbottom.gif', // junction for leaf
  'icon_3'  : prepath + 'treeicons/join.gif',       // junction for last leaf
  'icon_18' : prepath + 'treeicons/plusbottom.gif', // junction for closed node
  'icon_19' : prepath + 'treeicons/plus.gif',       // junctioin for last closed node
  'icon_26' : prepath + 'treeicons/minusbottom.gif',// junction for opened node
  'icon_27' : prepath + 'treeicons/minus.gif'       // junctioin for last opended node
};


