
function showTab(tabName) {	
	if (document.getElementById('tab_definition')) document.getElementById('tab_definition').className = 'tab';
	if (document.getElementById('tab_entstehung')) document.getElementById('tab_entstehung').className = 'tab';
	if (document.getElementById('tab_prophylaxe')) document.getElementById('tab_prophylaxe').className = 'tab';
	if (document.getElementById('tab_symptome')) document.getElementById('tab_symptome').className = 'tab';
	if (document.getElementById('tab_diagnostik')) document.getElementById('tab_diagnostik').className = 'tab';
	if (document.getElementById('tab_therapie')) document.getElementById('tab_therapie').className = 'tab';

	if (document.getElementById('tabSubRow_definition')) hide(document.getElementById('tabSubRow_definition'));
	if (document.getElementById('tabSubRow_entstehung')) hide(document.getElementById('tabSubRow_entstehung'));
	if (document.getElementById('tabSubRow_prophylaxe')) hide(document.getElementById('tabSubRow_prophylaxe'));
	if (document.getElementById('tabSubRow_symptome')) hide(document.getElementById('tabSubRow_symptome'));
	if (document.getElementById('tabSubRow_diagnostik')) hide(document.getElementById('tabSubRow_diagnostik'));
	if (document.getElementById('tabSubRow_therapie')) hide(document.getElementById('tabSubRow_therapie'));
	
	if (document.getElementById('tab_' + tabName)) document.getElementById('tab_' + tabName).className = 'tab_active';

        if (document.getElementById('tabSubRow_' + tabName)) {
          show(document.getElementById('tabSubRow_' + tabName));
          showSubTab(tabName,1);
        }

}


function showUnterpunkt(tabName,no,subno) { 
    for (var t=1;t<=5;t++) {
      for (var st=1;st<=8;st++) {
	if (document.getElementById('div_definition_'+t+'_'+st)) hide(document.getElementById('div_definition_'+t+'_'+st));
	if (document.getElementById('link_definition_'+t+'_'+st)) document.getElementById('link_definition_'+t+'_'+st).className = 'tab_link';
	if (document.getElementById('div_entstehung_'+t+'_'+st)) hide(document.getElementById('div_entstehung_'+t+'_'+st));
	if (document.getElementById('link_entstehung_'+t+'_'+st)) document.getElementById('link_entstehung_'+t+'_'+st).className = 'tab_link';
	if (document.getElementById('div_prophylaxe_'+t+'_'+st)) hide(document.getElementById('div_prophylaxe_'+t+'_'+st));
	if (document.getElementById('link_prophylaxe_'+t+'_'+st)) document.getElementById('link_prophylaxe_'+t+'_'+st).className = 'tab_link';
	if (document.getElementById('div_symptome_'+t+'_'+st)) hide(document.getElementById('div_symptome_'+t+'_'+st));
	if (document.getElementById('link_symptome_'+t+'_'+st)) document.getElementById('link_symptome_'+t+'_'+st).className = 'tab_link';
	if (document.getElementById('div_diagnostik_'+t+'_'+st)) hide(document.getElementById('div_diagnostik_'+t+'_'+st));
	if (document.getElementById('link_diagnostik_'+t+'_'+st)) document.getElementById('link_diagnostik_'+t+'_'+st).className = 'tab_link';
	if (document.getElementById('div_therapie_'+t+'_'+st)) hide(document.getElementById('div_therapie_'+t+'_'+st));
	if (document.getElementById('link_therapie_'+t+'_'+st)) document.getElementById('link_therapie_'+t+'_'+st).className = 'tab_link';
      }
    }
    if (document.getElementById('div_' + tabName+'_'+no+'_'+subno)) show(document.getElementById('div_' + tabName+'_'+no+'_'+subno));
    if (document.getElementById('link_therapie_'+no+'_'+subno)) document.getElementById('link_therapie_'+no+'_'+subno).className = "tab_link_active";
    if (document.getElementById('link_' + tabName+'_'+no+'_'+subno)) document.getElementById('link_' + tabName+'_'+no+'_'+subno).className = "tab_link_active";
}

function showSubTab(tabName,no) { 
    for (var t=1;t<=5;t++) {
	if (document.getElementById('div_definition_'+t)) hide(document.getElementById('div_definition_'+t));
	if (document.getElementById('link_definition_'+t)) document.getElementById('link_definition_'+t).className = 'tab_link';
	if (document.getElementById('div_entstehung_'+t)) hide(document.getElementById('div_entstehung_'+t));
	if (document.getElementById('link_entstehung_'+t)) document.getElementById('link_entstehung_'+t).className = 'tab_link';
	if (document.getElementById('div_prophylaxe_'+t)) hide(document.getElementById('div_prophylaxe_'+t));
	if (document.getElementById('link_prophylaxe_'+t)) document.getElementById('link_prophylaxe_'+t).className = 'tab_link';
	if (document.getElementById('div_symptome_'+t)) hide(document.getElementById('div_symptome_'+t));
	if (document.getElementById('link_symptome_'+t)) document.getElementById('link_symptome_'+t).className = 'tab_link';
	if (document.getElementById('div_diagnostik_'+t)) hide(document.getElementById('div_diagnostik_'+t));
	if (document.getElementById('link_diagnostik_'+t)) document.getElementById('link_diagnostik_'+t).className = 'tab_link';
	if (document.getElementById('div_therapie_'+t)) hide(document.getElementById('div_therapie_'+t));
	if (document.getElementById('link_therapie_'+t)) document.getElementById('link_therapie_'+t).className = 'tab_link';

        for (var st=1;st<=8;st++) {
  	  if (document.getElementById('div_definition_'+t+'_'+st)) hide(document.getElementById('div_definition_'+t+'_'+st));
	  if (document.getElementById('link_definition_'+t+'_'+st)) document.getElementById('link_definition_'+t+'_'+st).className = 'tab_link';
	  if (document.getElementById('div_entstehung_'+t+'_'+st)) hide(document.getElementById('div_entstehung_'+t+'_'+st));
	  if (document.getElementById('link_entstehung_'+t+'_'+st)) document.getElementById('link_entstehung_'+t+'_'+st).className = 'tab_link';
	  if (document.getElementById('div_prophylaxe_'+t+'_'+st)) hide(document.getElementById('div_prophylaxe_'+t+'_'+st));
	  if (document.getElementById('link_prophylaxe_'+t+'_'+st)) document.getElementById('link_prophylaxe_'+t+'_'+st).className = 'tab_link';
	  if (document.getElementById('div_symptome_'+t+'_'+st)) hide(document.getElementById('div_symptome_'+t+'_'+st));
	  if (document.getElementById('link_symptome_'+t+'_'+st)) document.getElementById('link_symptome_'+t+'_'+st).className = 'tab_link';
	  if (document.getElementById('div_diagnostik_'+t+'_'+st)) hide(document.getElementById('div_diagnostik_'+t+'_'+st));
	  if (document.getElementById('link_diagnostik_'+t+'_'+st)) document.getElementById('link_diagnostik_'+t+'_'+st).className = 'tab_link';
	  if (document.getElementById('div_therapie_'+t+'_'+st)) hide(document.getElementById('div_therapie_'+t+'_'+st));
	  if (document.getElementById('link_therapie_'+t+'_'+st)) document.getElementById('link_therapie_'+t+'_'+st).className = 'tab_link';
        }
    }
    if (document.getElementById('div_' + tabName+'_'+no)) show(document.getElementById('div_' + tabName+'_'+no));
    if (document.getElementById('link_therapie_'+no)) document.getElementById('link_therapie_'+no).className = "tab_link_active";
    if (document.getElementById('link_' + tabName+'_'+no)) document.getElementById('link_' + tabName+'_'+no).className = "tab_link_active"; 

    if (document.getElementById('div_' + tabName+'_'+no+'_1')) show(document.getElementById('div_' + tabName+'_'+no+'_1'));
    if (document.getElementById('link_therapie_'+no+'_1')) document.getElementById('link_therapie_'+no+'_1').className = "tab_link_active";
    if (document.getElementById('link_' + tabName+'_'+no+'_1')) document.getElementById('link_' + tabName+'_'+no+'_1').className = "tab_link_active"; 
}



