function renderNode(isSel,nameSpan,spacerSpan,node) {
		var isMainCat = false;
		var ordLen = node.userObject.ordernr.length;
		var catStyle;

			isMainCat = true;
			catStyle = "cat1";

        var spacerW = 15*spacerSpan;    
		var spacerHtml = "";  		
		var h;
		var click = "onclick='window.document.location.href=\"http://www.urlaubhotels.info/php/"+searchFriendlyUrl(node.userObject.name,node.userObject.ukatnr) +"\"'";
		if (isMainCat) {
			if (isSel)
				h ="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td class='"+catStyle+"' "+click+"><img src='../pics/pfeil.gif' width='7' height='8' alt='Urlaub Ferien Südtirol'>&nbsp; "+node.userObject.name+"</td></tr></table>";
			else	
				h ="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td class='"+catStyle+"' "+click+" onmouseover='this.className=\""+catStyle+"-hov\"' onmouseout='this.className=\""+catStyle+"\"'><img src='../pics/pfeil.gif' width='7' height='8' alt='Urlaub Ferien Südtirol'>&nbsp; "+node.userObject.name+"</td></tr></table>";
		}
		else if (!isSel)
			h ="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width='"+spacerW+"'>"+spacerHtml+"</td><td class='"+catStyle+"' "+click+"onmouseover='this.className=\""+catStyle+"-hov\"' onmouseout='this.className=\""+catStyle+"\"'><img src='../pics/pfeil.gif' width='7' height='8' alt='Urlaub Ferien Südtirol'>&nbsp; "+node.userObject.name+"</td></tr></table>";
        else
			h ="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width='"+spacerW+"'>"+spacerHtml+"</td><td class='"+catStyle+"' "+click+"><img src='../pics/pfeil.gif' width='7' height='8' alt='Urlaub Ferien Südtirol'>&nbsp; "+node.userObject.name+"</td></tr></table>";
		
		return h;
	}
	
	function endRenderNode(node) {
		if (node.userObject.ordernr.length == 5) {
			return "";
		}
		return ""; 
	}

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='" + 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);
}

function showsearch() {
window.document.write("<form action=\"/php/search.php\" method=\"get\" name=\"formsearch\" id=\"formsearch\" style=\"margin-top:10px; margin-left: 780px; margin-bottom: 0px; padding: 0px;\"><input name=\"search\" type=\"text\" class=\"text2\" value=\"Suche\" size=\"19\" maxlength=\"40\" onclick=\"window.document.formsearch.search.value=''\" /><a href=\"javascript:window.document.formsearch.submit()\"><img src=\"../pics/fernglas.gif\" alt=\"Suche starten\" width=\"15\" height=\"13\" hspace=\"2\" border=\"0\" align=\"absmiddle\" /></a></form>");
}