/***** A K T U E L L E   M E L D U N G E N *****/

function select_aktuell (container_id, item_number)
{
 for (var offset=0; offset<document.getElementById(container_id).getElementsByTagName("div").length; offset++)
 {
   if (document.getElementById(container_id).getElementsByTagName("div")[offset].className=="detail")
   {
     if (offset==item_number*2-1) 
      {document.getElementById(container_id).getElementsByTagName("div")[offset].style.display="block";}
     else
      {document.getElementById(container_id).getElementsByTagName("div")[offset].style.display="none";}
   }
 }
}


/***** M E D I A B O X   V O R S C H A U *****/

var aktuell_marginalmediabox=0;
var loopInterval = 7000;
var mediabox_index = new Array();

sliderLoop = window.setTimeout("auto_marginalmediabox ()", loopInterval);

function select_marginalmediabox (element)
{
  document.getElementById("marginalmediabox_auswahl").getElementsByTagName("img")[aktuell_marginalmediabox].src = mediabox_index[aktuell_marginalmediabox]["teaser_pic_color"].src;
  document.getElementById("marginalmediabox_auswahl").getElementsByTagName("img")[element].src = mediabox_index[element]["teaser_pic_sw"].src;

  aktuell_marginalmediabox = element;
  window.clearTimeout(sliderLoop);
  sliderLoop = window.setTimeout("auto_marginalmediabox ()", loopInterval);

  document.getElementById("marginalmediabox_link").getElementsByTagName("img")[0].src = mediabox_index[element]["topteaser_pic"].src;
  document.getElementById("marginalmediabox_link").getElementsByTagName("h1")[0].firstChild.firstChild.data = mediabox_index[element]["headline"];
  document.getElementById("marginalmediabox_link").getElementsByTagName("p")[0].firstChild.firstChild.data = mediabox_index[element]["teaser"];

  document.getElementById("marginalmediabox_link").getElementsByTagName("a")[0].href = mediabox_index[element]["url"];
  document.getElementById("marginalmediabox_link").getElementsByTagName("a")[1].href = mediabox_index[element]["url"];
  document.getElementById("marginalmediabox_link").getElementsByTagName("a")[2].href = mediabox_index[element]["url"];
}

function auto_marginalmediabox ()
{
  if (mediabox_index.length>0) {
    neu_marginalmediabox = aktuell_marginalmediabox+1;
    if ((neu_marginalmediabox>4) || (neu_marginalmediabox==mediabox_index.length)) neu_marginalmediabox=0;

    select_marginalmediabox (neu_marginalmediabox)

    window.clearTimeout(sliderLoop);
    sliderLoop = window.setTimeout("auto_marginalmediabox ()", loopInterval);
  }
}


/***** N E W S F E E D S   A J A X   I N   M A R G I N A L S P A L T E*****/

function publicize_feed_data (div_object_name, xml_doc)
{
  div_object=document.getElementById(div_object_name);
  
  /* Anzahl der Feeds prüfen
      - ein Feed als Liste einpflegen
      - mehrere Feeds als Auswahlbox einpflegen */

  if (xml_doc.getElementsByTagName('channel').length > 1)
  {
    var xml_channels=xml_doc.getElementsByTagName('channel');

    // Vorhandene Inhalte im Container löschen
    div_object.removeChild(div_object.firstChild);

    // Auswahlbox erzeugen
    div_object.setAttribute("class","tab_container");
    div_object.className="tab_container";

    // Auswahlrider erzeugen
    for(zaehler=0;zaehler<xml_channels.length;zaehler++)
    {
      if (xml_channels[zaehler].getElementsByTagName('title')[0].firstChild!=null) { xml_headline=xml_channels[zaehler].getElementsByTagName('title')[0].firstChild.data; } else { xml_headline=""; }

      content_headline_class=document.createAttribute("class");
      if(zaehler==0) { content_headline_class.nodeValue="currentitem"; } else { content_headline_class.nodeValue="item"; }

      content_headline_mouse=document.createAttribute("onmouseover");
      content_headline_mouse.nodeValue="select_tab('"+div_object_name+"',"+(zaehler+1)+")";

      content_headline=document.createElement("div");
      content_headline.setAttributeNode(content_headline_class);
      content_headline.setAttributeNode(content_headline_mouse);

      var onmouseover_handler="select_tab('"+div_object_name+"',"+(zaehler+1)+")";
      content_headline.onmouseover= new Function ("handler",onmouseover_handler);

      content_headline.innerHTML=xml_headline;

      div_object.appendChild(content_headline);
    }

    // Auswahlkontent erzeugen
    for(zaehler=0;zaehler<xml_channels.length;zaehler++)
    {
      // Kontent-Container erzeugen
      content_container=document.createElement("div");
      content_container.setAttribute("class","tab_content");
      content_container.className="tab_content";
      if(zaehler==0) { content_container.setAttribute("style","display:block"); } else { content_container.setAttribute("style","display:none"); }
      if(zaehler==0) { content_container.style.display="block"; } else { content_container.style.display="none"; }

      // XML-Channel auslesen
      var xml_channel=xml_doc.getElementsByTagName('channel')[zaehler];

      // Erklärungsabsatz erzeugen
      var content_p=document.createElement("p");
      content_p.innerHTML=xml_channel.getElementsByTagName('description')[0].firstChild.data;

      // Listenelement erzeugen
      var content_ul=document.createElement("ul");

      // Einträge anlegen und einfügen
      if (xml_channel.getElementsByTagName('item').length>0) 
      { 
        xml_items=xml_channel.getElementsByTagName('item');

        for(item_zaehler=0;item_zaehler<xml_items.length;item_zaehler++)
        {
          var content_li=document.createElement("li");

          if (xml_items[item_zaehler].getElementsByTagName('link_url')[0].firstChild!=null) { xml_item_url=xml_items[item_zaehler].getElementsByTagName('link_url')[0].firstChild.data; } else { xml_item_url=""; }
          var content_item_link_href=document.createAttribute("href"); content_item_link_href.nodeValue=xml_item_url;

          if (xml_items[item_zaehler].getElementsByTagName('link_description')[0].firstChild!=null) { xml_item_description=xml_items[item_zaehler].getElementsByTagName('link_description')[0].firstChild.data; } else { xml_item_description=""; }
          var content_item_link_title=document.createAttribute("title"); content_item_link_title.nodeValue=xml_item_description;

          var content_item_link=document.createElement("a");
          content_item_link.setAttributeNode(content_item_link_href);
          content_item_link.setAttributeNode(content_item_link_title);

          if (xml_items[item_zaehler].getElementsByTagName('link_title')[0].firstChild!=null) { xml_item_title=xml_items[item_zaehler].getElementsByTagName('link_title')[0].firstChild.data; } else { xml_item_title=""; }
          var content_item_text=document.createTextNode(xml_items[item_zaehler].getElementsByTagName('link_title')[0].firstChild.data);
          content_item_link.appendChild(content_item_text);

          content_li.appendChild(content_item_link);
          content_ul.appendChild(content_li);
        }
      } else {
        var content_li=document.createElement("li");
        content_li.innerText="Zur Zeit keine Informationen vorhanden.";
        content_ul.appendChild(content_li);
      }

      content_container.appendChild(content_p);
      content_container.appendChild(content_ul);

      div_object.appendChild(content_container);
    }

    external_links();

  } else {
    var xml_channel=xml_doc.getElementsByTagName('channel')[0];

    // Erklärungsabsatz erzeugen
    var content_p=document.createElement("p");
    content_p.innerHTML=xml_channel.getElementsByTagName('description')[0].firstChild.data;

    // Listenelement erzeugen
    var content_ul=document.createElement("ul");

    // Einträge anlegen und einfügen
    if (xml_channel.getElementsByTagName('item').length>0) { xml_items=xml_channel.getElementsByTagName('item'); } else { return (false); }

    for(zaehler=0;zaehler<xml_items.length;zaehler++)
    {
      var content_li=document.createElement("li");

      if (xml_items[zaehler].getElementsByTagName('link_url')[0].firstChild!=null) { xml_item_url=xml_items[zaehler].getElementsByTagName('link_url')[0].firstChild.data; } else { xml_item_url=""; }
      var content_item_link_href=document.createAttribute("href"); content_item_link_href.nodeValue=xml_item_url;

      if (xml_items[zaehler].getElementsByTagName('link_description')[0].firstChild!=null) { xml_item_description=xml_items[zaehler].getElementsByTagName('link_description')[0].firstChild.data; } else { xml_item_description=""; }
      var content_item_link_title=document.createAttribute("title"); content_item_link_title.nodeValue=xml_item_description;

      var content_item_link=document.createElement("a");
      content_item_link.setAttributeNode(content_item_link_href);
      content_item_link.setAttributeNode(content_item_link_title);

      if (xml_items[zaehler].getElementsByTagName('link_title')[0].firstChild!=null) { xml_item_title=xml_items[zaehler].getElementsByTagName('link_title')[0].firstChild.data; } else { xml_item_title=""; }
      var content_item_text=document.createTextNode(xml_items[zaehler].getElementsByTagName('link_title')[0].firstChild.data);
      content_item_link.appendChild(content_item_text);

      content_li.appendChild(content_item_link);
      content_ul.appendChild(content_li);
    }

    // Vorhandene Inhalte im Container löschen
    div_object.removeChild(div_object.firstChild);

    // Neuen Inhalt einfügen
    div_object.appendChild(content_p);
    div_object.appendChild(content_ul);
    external_links();

  }

}


/***** D R V   L A N G S T R E C K E   A J A X *****/

function publicize_rolv_data (xml_doc)
{
  div_menu_object=document.getElementById("rolv_menu");
  div_ergebnis_object=document.getElementById("rolv_ergebnissanzeige");


  // Menüeinträge neu anlegen
  temp=div_menu_object.childNodes.length;
  for (zaehler=0; zaehler<temp; zaehler++) {
    div_menu_object.removeChild(div_menu_object.firstChild);
  }

  if (xml_doc.getElementsByTagName('channel').length>0) { xml_channels=xml_doc.getElementsByTagName('channel'); } else { return (false); }

  for (zaehler=0; zaehler<xml_channels.length; zaehler++) {
    var menu_li=document.createElement("li");
    var menu_li_link=document.createElement("a");

    var menu_li_link_href=document.createAttribute("href"); menu_li_link_href.nodeValue="#ls_rennen"+zaehler;
    if (xml_channels[zaehler].getElementsByTagName('description')[0].firstChild!=null) { xml_channel_description=xml_channels[zaehler].getElementsByTagName('description')[0].firstChild.data; } else { xml_channel_description=""; }
    var menu_li_link_description=document.createAttribute("title"); menu_li_link_description.nodeValue=xml_channel_description;
    menu_li_link.setAttributeNode(menu_li_link_href);
    menu_li_link.setAttributeNode(menu_li_link_description);

    if (xml_channels[zaehler].getElementsByTagName('title')[0].firstChild!=null) { xml_channel_title=xml_channels[zaehler].getElementsByTagName('title')[0].firstChild.data; } else { xml_channel_title=""; }
    var menu_li_text=document.createTextNode(xml_channel_title);
    menu_li_link.appendChild(menu_li_text);

    menu_li.appendChild(menu_li_link);
    div_menu_object.appendChild(menu_li);
  }

  // Ergebnistabellen neu anlegen
  temp=div_ergebnis_object.childNodes.length;
  for (zaehler=0; zaehler<temp; zaehler++) {
    div_ergebnis_object.removeChild(div_ergebnis_object.firstChild);
  }

  for(zaehler=0;zaehler<xml_channels.length;zaehler++)
  {
    // Platzierungsvariable wird hochgezählt für jede Tabelle
    platzierung=1;
    var old_zeit = "";
    var old_platzierung = 1;

    result_container=document.createElement("div");
    result_container_class=document.createAttribute("class"); result_container_class.nodeValue="object_rolvresult";
    result_container.setAttributeNode(result_container_class);

    // Überschrift mit Anker einfügen
    result_container_headline=document.createElement("h1");

    result_container_headline_anker=document.createElement("a");
    var result_container_headline_anker_name=document.createAttribute("name"); result_container_headline_anker_name.nodeValue="ls_rennen"+zaehler;
    result_container_headline_anker.setAttributeNode(result_container_headline_anker_name);
    if (xml_channels[zaehler].getElementsByTagName('title')[0].firstChild!=null) { xml_channel_title=xml_channels[zaehler].getElementsByTagName('title')[0].firstChild.data; } else { xml_channel_title=""; }
    var result_container_headline_text=document.createTextNode(xml_channel_title);
    result_container_headline_anker.appendChild(result_container_headline_text)
    result_container_headline.appendChild(result_container_headline_anker)

    result_container.appendChild(result_container_headline);

    // Tabellenkopf erzeugen
    result_container_tabelle=document.createElement("table");

    result_container_tabelle_kopf=document.createElement ("thead");
    result_container_tabelle_kopf_tr=document.createElement ("tr");

    result_container_tabelle_kopf_td1=document.createElement ("td");
    // createAttribut mit stlye geht nicht für IE bis 7, deshalb Alternativfunktion
    //result_container_tabelle_kopf_td1_style=document.createAttribute("style"); result_container_tabelle_kopf_td1_style.nodeValue="width:3em;";
    //result_container_tabelle_kopf_td1.setAttributeNode(result_container_tabelle_kopf_td1_style);
    result_container_tabelle_kopf_td1.style.width="3em";
    result_container_tabelle_kopf_td1_text=document.createTextNode("Platz");
    result_container_tabelle_kopf_td1.appendChild(result_container_tabelle_kopf_td1_text)
    result_container_tabelle_kopf_tr.appendChild (result_container_tabelle_kopf_td1);

    result_container_tabelle_kopf_td2=document.createElement ("td");
    // createAttribut mit stlye geht nicht für IE bis 7, deshalb Alternativfunktion
    //result_container_tabelle_kopf_td2_style=document.createAttribute("style"); result_container_tabelle_kopf_td2_style.nodeValue="width:3em;";
    //result_container_tabelle_kopf_td2.setAttributeNode(result_container_tabelle_kopf_td2_style);
    result_container_tabelle_kopf_td2.style.width="3em";
    result_container_tabelle_kopf_td2_abbr=document.createElement ("abbr");
    result_container_tabelle_kopf_td2_abbr_title=document.createAttribute("title"); result_container_tabelle_kopf_td2_abbr_title.nodeValue="Startnummer";
    result_container_tabelle_kopf_td2_abbr.setAttributeNode(result_container_tabelle_kopf_td2_abbr_title);
    result_container_tabelle_kopf_td2_text=document.createTextNode("Nr.");
    result_container_tabelle_kopf_td2_abbr.appendChild(result_container_tabelle_kopf_td2_text)
    result_container_tabelle_kopf_td2.appendChild(result_container_tabelle_kopf_td2_abbr)
    result_container_tabelle_kopf_tr.appendChild (result_container_tabelle_kopf_td2);

    result_container_tabelle_kopf_td3=document.createElement ("td");
    // createAttribut mit stlye geht nicht für IE bis 7, deshalb Alternativfunktion
    //result_container_tabelle_kopf_td3_style=document.createAttribute("style"); result_container_tabelle_kopf_td3_style.nodeValue="width:5em;";
    //result_container_tabelle_kopf_td3.setAttributeNode(result_container_tabelle_kopf_td3_style);
    result_container_tabelle_kopf_td3.style.width="5em";
    result_container_tabelle_kopf_td3_abbr=document.createElement ("abbr");
    result_container_tabelle_kopf_td3_abbr_title=document.createAttribute("title"); result_container_tabelle_kopf_td3_abbr_title.nodeValue="Zeit im Ziel";
    result_container_tabelle_kopf_td3_abbr.setAttributeNode(result_container_tabelle_kopf_td3_abbr_title);
    result_container_tabelle_kopf_td3_text=document.createTextNode("Zeit");
    result_container_tabelle_kopf_td3_abbr.appendChild(result_container_tabelle_kopf_td3_text)
    result_container_tabelle_kopf_td3.appendChild(result_container_tabelle_kopf_td3_abbr)
    result_container_tabelle_kopf_tr.appendChild (result_container_tabelle_kopf_td3);

    result_container_tabelle_kopf_td4=document.createElement ("td");
    result_container_tabelle_kopf_tr.appendChild (result_container_tabelle_kopf_td4);

    result_container_tabelle_kopf.appendChild (result_container_tabelle_kopf_tr);
    result_container_tabelle.appendChild(result_container_tabelle_kopf);

    // Tabellenkörper erzeugen
    result_container_tabelle_body=document.createElement ("tbody");

    // Tabelleneinträge erzeugen
    if (xml_channels[zaehler].getElementsByTagName('item').length>0) { xml_items=xml_channels[zaehler].getElementsByTagName('item'); } else { return (false); }

    for(zaehler_item=0;zaehler_item<xml_items.length; zaehler_item++) {

      // Status des Bootes ermitteln 0=nicht gestartet, 1=unterwegs, 2=ausgeschieden, 3=Ziel
      if (xml_items[zaehler_item].getElementsByTagName('status')[0].firstChild!=null) { xml_item_status=xml_items[zaehler_item].getElementsByTagName('status')[0].firstChild.data; } else { xml_item_status=""; }
      if (xml_item_status.search(/\bZiel\b/) != -1) {
        item_status_flag=3; }
      else if (xml_item_status.search(/\bunterwegs\b/) != -1) {
        item_status_flag=1; }
      else if (xml_item_status.search(/\bgekentert\b/) != -1) {
        item_status_flag=2; }
      else if (xml_item_status.search(/\baufgegeben\b/) != -1) {
        item_status_flag=2; }
      else if (xml_item_status.search(/\bdisqualifiziert\b/) != -1) {
        item_status_flag=2; }
      else if (xml_item_status.search(/\bangetreten\b/) != -1) {
        item_status_flag=2; }
      else  {
        item_status_flag=0; }
      
      result_container_tabelle_body_tr=document.createElement ("tr");    

      result_container_tabelle_body_td1=document.createElement ("td");
      if (item_status_flag==0) { 
        result_container_tabelle_body_td1_class=document.createAttribute("class"); result_container_tabelle_body_td1_class.nodeValue="start";
        result_container_tabelle_body_td1.setAttributeNode(result_container_tabelle_body_td1_class);
      }
      else if (item_status_flag==1) {
        result_container_tabelle_body_td1_class=document.createAttribute("class"); result_container_tabelle_body_td1_class.nodeValue="unterwegs";
        result_container_tabelle_body_td1.setAttributeNode(result_container_tabelle_body_td1_class);
      }
      else if (item_status_flag==2) {
        result_container_tabelle_body_td1_class=document.createAttribute("class"); result_container_tabelle_body_td1_class.nodeValue="disqualifiziert";
        result_container_tabelle_body_td1.setAttributeNode(result_container_tabelle_body_td1_class);
      }
      if (item_status_flag==3) { 
        if (old_zeit.search(xml_items[zaehler_item].getElementsByTagName('zeit')[0].firstChild.data) != -1)
        {
          platzierung_string=old_platzierung;
          platzierung++;
        } else {
          platzierung_string=platzierung;
          old_platzierung=platzierung; 
          old_zeit=xml_items[zaehler_item].getElementsByTagName('zeit')[0].firstChild.data;
          platzierung++; 
        }
      } else { platzierung_string=""; }
      result_container_tabelle_body_td1_text=document.createTextNode(platzierung_string);
      result_container_tabelle_body_td1.appendChild(result_container_tabelle_body_td1_text)
      result_container_tabelle_body_tr.appendChild (result_container_tabelle_body_td1);

      result_container_tabelle_body_td2=document.createElement ("td");
      if (item_status_flag==0) { 
        result_container_tabelle_body_td2_class=document.createAttribute("class"); result_container_tabelle_body_td2_class.nodeValue="start";
        result_container_tabelle_body_td2.setAttributeNode(result_container_tabelle_body_td2_class);
      }
      else if (item_status_flag==1) {
        result_container_tabelle_body_td2_class=document.createAttribute("class"); result_container_tabelle_body_td2_class.nodeValue="unterwegs";
        result_container_tabelle_body_td2.setAttributeNode(result_container_tabelle_body_td2_class);
      }
      else if (item_status_flag==2) {
        result_container_tabelle_body_td2_class=document.createAttribute("class"); result_container_tabelle_body_td2_class.nodeValue="disqualifiziert";
        result_container_tabelle_body_td2.setAttributeNode(result_container_tabelle_body_td2_class);
      }
      if (xml_items[zaehler_item].getElementsByTagName('startnummer')[0].firstChild!=null) { xml_item_startnummer=xml_items[zaehler_item].getElementsByTagName('startnummer')[0].firstChild.data; } else { xml_item_startnummer=""; }
      result_container_tabelle_body_td2_text=document.createTextNode(xml_item_startnummer);
      result_container_tabelle_body_td2.appendChild(result_container_tabelle_body_td2_text)
      result_container_tabelle_body_tr.appendChild (result_container_tabelle_body_td2);

      result_container_tabelle_body_td3=document.createElement ("td");
      if (item_status_flag==0) { 
        result_container_tabelle_body_td3_class=document.createAttribute("class"); result_container_tabelle_body_td3_class.nodeValue="start";
        result_container_tabelle_body_td3.setAttributeNode(result_container_tabelle_body_td3_class);
      }
      else if (item_status_flag==1) {
        result_container_tabelle_body_td3_class=document.createAttribute("class"); result_container_tabelle_body_td3_class.nodeValue="unterwegs";
        result_container_tabelle_body_td3.setAttributeNode(result_container_tabelle_body_td3_class);
      }
      else if (item_status_flag==2) {
        result_container_tabelle_body_td3_class=document.createAttribute("class"); result_container_tabelle_body_td3_class.nodeValue="disqualifiziert";
        result_container_tabelle_body_td3.setAttributeNode(result_container_tabelle_body_td3_class);
      }
      if ((item_status_flag==3) && (xml_items[zaehler_item].getElementsByTagName('zeit')[0].firstChild!=null)) { xml_item_zeit=xml_items[zaehler_item].getElementsByTagName('zeit')[0].firstChild.data; } else { xml_item_zeit=""; }
      result_container_tabelle_body_td3_text=document.createTextNode(xml_item_zeit);
      result_container_tabelle_body_td3.appendChild(result_container_tabelle_body_td3_text)
      result_container_tabelle_body_tr.appendChild (result_container_tabelle_body_td3);

      result_container_tabelle_body_td4=document.createElement ("td");
      if (item_status_flag==0) { 
        result_container_tabelle_body_td4_class=document.createAttribute("class"); result_container_tabelle_body_td4_class.nodeValue="start";
        result_container_tabelle_body_td4.setAttributeNode(result_container_tabelle_body_td4_class);
      }
      else if (item_status_flag==1) {
        result_container_tabelle_body_td4_class=document.createAttribute("class"); result_container_tabelle_body_td4_class.nodeValue="unterwegs";
        result_container_tabelle_body_td4.setAttributeNode(result_container_tabelle_body_td4_class);
      }
      else if (item_status_flag==2) {
        result_container_tabelle_body_td4_class=document.createAttribute("class"); result_container_tabelle_body_td4_class.nodeValue="disqualifiziert";
        result_container_tabelle_body_td4.setAttributeNode(result_container_tabelle_body_td4_class);
      }
      // createAttribut mit stlye geht nicht für IE bis 7, deshalb Alternativfunktion
      //result_container_tabelle_body_td4_style=document.createAttribute("style"); result_container_tabelle_body_td4_style.nodeValue="text-align:left;";
      //result_container_tabelle_body_td4.setAttributeNode(result_container_tabelle_body_td4_style);
      result_container_tabelle_body_td4.style.textAlign="left";

      if (item_status_flag==1) { mannschaft_string = "<span class=\"gruen\">" + xml_item_status + "</span><br/>"; }
      else if (item_status_flag==2) { mannschaft_string = "<span class=\"rot\">" + xml_item_status + "</span><br/>"; }
      else { mannschaft_string = ""; }

      if (xml_items[zaehler_item].getElementsByTagName('schlag_name')[0].firstChild!=null) { xml_item_schlag_name=xml_items[zaehler_item].getElementsByTagName('schlag_name')[0].firstChild.data; } else { xml_item_schlag_name=""; }
      if (xml_items[zaehler_item].getElementsByTagName('schlag_verein')[0].firstChild!=null) { xml_item_schlag_verein=xml_items[zaehler_item].getElementsByTagName('schlag_verein')[0].firstChild.data; } else { xml_item_schlag_verein=""; }
      if (xml_items[zaehler_item].getElementsByTagName('schlag_kader')[0].firstChild!=null) { xml_item_schlag_kader=xml_items[zaehler_item].getElementsByTagName('schlag_kader')[0].firstChild.data; } else { xml_item_schlag_kader=""; }
      if (xml_items[zaehler_item].getElementsByTagName('schlag_jahrgang')[0].firstChild!=null) { xml_item_schlag_jahrgang=xml_items[zaehler_item].getElementsByTagName('schlag_jahrgang')[0].firstChild.data; } else { xml_item_schlag_jahrgang=""; }
      if (xml_items[zaehler_item].getElementsByTagName('bug_name')[0].firstChild!=null) { xml_item_bug_name=xml_items[zaehler_item].getElementsByTagName('bug_name')[0].firstChild.data; } else { xml_item_bug_name=""; }
      if (xml_items[zaehler_item].getElementsByTagName('bug_verein')[0].firstChild!=null) { xml_item_bug_verein=xml_items[zaehler_item].getElementsByTagName('bug_verein')[0].firstChild.data; } else { xml_item_bug_verein=""; }
      if (xml_items[zaehler_item].getElementsByTagName('bug_kader')[0].firstChild!=null) { xml_item_bug_kader=xml_items[zaehler_item].getElementsByTagName('bug_kader')[0].firstChild.data; } else { xml_item_bug_kader=""; }
      if (xml_items[zaehler_item].getElementsByTagName('bug_jahrgang')[0].firstChild!=null) { xml_item_bug_jahrgang=xml_items[zaehler_item].getElementsByTagName('bug_jahrgang')[0].firstChild.data; } else { xml_item_bug_jahrgang=""; }

      mannschaft_string = mannschaft_string + "<b>" + xml_item_schlag_name + "</b><br/><span class=\"grau\">(" + xml_item_schlag_verein + ", Jahrgang: " + xml_item_schlag_jahrgang + ", Kader: " + xml_item_schlag_kader + ")</span>";
      if (xml_item_bug_name.length > 0) { mannschaft_string = mannschaft_string + "<br/><b>" + xml_item_bug_name + "</b><br/><span class=\"grau\">(" + xml_item_bug_verein + ", Jahrgang: " + xml_item_bug_jahrgang + ", Kader: " + xml_item_bug_kader + ")</span>"; }
      result_container_tabelle_body_td4.innerHTML=mannschaft_string;

      result_container_tabelle_body_tr.appendChild (result_container_tabelle_body_td4);
      result_container_tabelle_body.appendChild(result_container_tabelle_body_tr);
    }

    result_container_tabelle.appendChild(result_container_tabelle_body);

    // Tablle einfügen
    result_container.appendChild(result_container_tabelle);

    div_ergebnis_object.appendChild(result_container);
  }

}