function showsearch() {
window.document.write("<form action=\"search.php\" method=\"get\" name=\"formsearch\" style=\"margin-top:0px; padding:0px\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height:29px; font-size: 11px;\"><tr><td align=\"right\" valign=\"middle\"><input name=\"search\" type=\"text\" style=\"font-size:11px; line-height: 1.0; border: 1px solid #3D5B3D; padding-top:1px; padding-left:1px;\" value=\"Suche\" size=\"15\" maxlength=\"40\" onClick=\"window.document.formsearch.search.value=''\"></td><td align=\"left\" valign=\"middle\" styl=\"width: 24px;\"><a href=\"javascript:window.document.formsearch.submit()\"><img src=\"../pics/fernglas.gif\" alt=\"Suche starten\" width=\"15\" height=\"13\" hspace=\"4\" border=\"0\" /></a></td></tr></table></form>");
}

function shownkontakt() {
window.document.write ("<a href='kontakt.php' onClick=\"return hs.htmlExpand(this, { contentId: 'kontakt', objectType: 'iframe', objectWidth: 500, objectHeight: 500} )\" class='white'>Kontakt / eMail</a><div class='highslide-html-content' id='kontakt' style='width: 500px;'><div class='highslide-move' style='border: 0; height: 15px; cursor: default'> <a href='#' onClick=\"return hs.close(this)\" class='control'>Schlie&szlig;en</a></div><div class='highslide-body'></div></div>");
}

function shownkontakt() {
window.document.write ("<a href='kontakt.php' onClick=\"return hs.htmlExpand(this, { contentId: 'kontakt', objectType: 'iframe', objectWidth: 500, objectHeight: 500} )\" class='white'>Kontakt / eMail</a><div class='highslide-html-content' id='kontakt' style='width: 500px;'><div class='highslide-move' style='border: 0; height: 15px; cursor: default'> <a href='#' onClick=\"return hs.close(this)\" class='control'>Schlie&szlig;en</a></div><div class='highslide-body'></div></div>");
}

function hsempfehlen(url)
{
var adresse ='http://www.hersche.at/php/empfehlung.php?url='+url;
var empfehlungsfenster = "<a href=" + adresse + " onClick=\"return hs.htmlExpand(this, { contentId: 'empfehlen', objectType: 'iframe', objectWidth: 490, objectHeight: 370} )\" class=\"white\">Weiterempfehlen</a> <div class=\"highslide-html-content\" id=\"empfehlen\" style=\"width: 500px\"><div class=\"highslide-move\" style=\"border: 0; height: 18px; padding: 2px; cursor: default\"><a href=\"#\" onClick=\"return hs.close(this)\" class=\"control\">Schlie&szlig;en (X)</a></div><div class=\"highslide-body\"></div></div>"
window.document.writeln(empfehlungsfenster);
}

function writeParents2(val,tree,link,style,sep) {
   if (!tree) tree = catTree;
   var curNode;
   curNode = catTree.getNode(val,"ukatnr");
   if (!curNode) {
      if (WARN_CATEGORY_NOT_FOUND) {
         //alert("Node "+val+" not found!");
         return;
      }
      else {
         window.document.write(DEFAULT_PARENT_NAME);
      }
   }

// alert(curNode.userObject.name);
   var catString = "";
   if (!style) style = "cat-link";  
   if (!sep) sep = " / ";
   while (curNode.parent) {
      if (!curNode.userObject) continue;
      var tmp = catString;
      if (link)
         catString="<a href='http://www.hersche.at/php/" + replaceForUrl(curNode.userObject.name) + "," + curNode.userObject.ukatnr + ".html' class='"+style+"'>"+curNode.userObject.name+"</a>";
      else
         catString=curNode.userObject.name;
      if (tmp) catString = catString+sep+tmp;
         curNode = curNode.parent;
   }
   window.document.write(catString);
}
