// misst die zum Laden der Seite benötigte Zeit inkl. Anzeige des Seitentitels
loadtimex = new Date()
function loadtimeMX(title)
{
  loadtimey = new Date()
  diff = loadtimey.getTime() - loadtimex.getTime()
  newstatus = "Ladezeit: " + diff/1000 + " sec. [" + title + "]";
  window.defaultStatus = newstatus;
}

// misst die zum Laden der Seite benötigte Zeit
function loadtime()
{
  loadtimey = new Date()
  diff = loadtimey.getTime() - loadtimex.getTime()
  newstatus = "Ladezeit: " + diff/1000 + " sec.";
  window.defaultStatus = newstatus;
}

// schreibt die Fusszeile fuer die FF Buckenhof-Seiten
function writeFooter(pathDepth)
{
  document.write('<table border="0" align="center">');
  document.write('<tr>');
  document.write('<td class="navi" align="center">[');
  if(location.pathname!="/home_main.html")
    document.write('<a href="' + pathDepth + 'home_main.html" target="mainbody">Startseite</a>');
  else
    document.write('Startseite');
  document.write(']&nbsp; [');
  if(location.pathname!="/aktuell/index.html")
    document.write('<a href="' + pathDepth + 'aktuell/index.html" target="mainbody">Aktualisierungen</a>');
  else
    document.write('Aktualisierungen');
  document.write(']&nbsp; [');
  if(location.pathname!="/kalender/index.html")
    document.write('<a href="' + pathDepth + 'kalender/index.html" target="mainbody">Terminkalender</a>');
  else
    document.write('Terminkalender');
  document.write(']&nbsp; [');
  if(location.pathname!="/fahrzeuge/index.html")
    document.write('<a href="' + pathDepth + 'fahrzeuge/index.html" target="mainbody">Fahrzeugshow</a>');
  else
    document.write('Fahrzeugshow');
  document.write(']&nbsp; [');
  if(location.pathname!="/veranst/index.html")
    document.write('<a href="' + pathDepth + 'veranst/index.html" target="mainbody">Veranstaltungen</a>');
  else
    document.write('Veranstaltungen');
  document.write(']&nbsp; [');
  if(location.pathname!="/jugend/index.html")
    document.write('<a href="' + pathDepth + 'jugend/index.html" target="mainbody">Jugend</a>');
  else
    document.write('Jugend');
  document.write(']&nbsp; [');
  if(location.pathname!="/einsaetze/2010/einsaetze2010.html")
    document.write('<a href="' + pathDepth + 'einsaetze/2010/einsaetze2010.html" target="mainbody">Einsätze</a>');
  else
    document.write('Einsätze');
  document.write(']&nbsp; <nobr>[');
  if(location.pathname!="/landkreis/index.html")
    document.write('<a href="' + pathDepth + 'landkreis/index.html" target="mainbody">JF Landkreis</a>');
  else
    document.write('JF Landkreis');
  document.write(']</nobr>&nbsp; [');
  if(location.pathname!="/brand_main.html")
    document.write('<a href="' + pathDepth + 'brand_main.html" target="mainbody">Brandschutztipps</a>');
  else
    document.write('Brandschutztipps');
  document.write(']&nbsp; [');
  if(location.pathname!="/specials/index.html")
    document.write('<a href="' + pathDepth + 'specials/index.html" target="mainbody">Specials</a>');
  else
    document.write('Specials');
  document.write(']&nbsp; [');
  if(location.pathname!="/kontakt/index.html")
    document.write('<a href="' + pathDepth + 'kontakt/index.html" target="mainbody">Kontakt</a>');
  else
    document.write('Kontakt');
  document.write(']&nbsp; [');
  if(location.pathname!="/guestbook/index.html")
    document.write('<a href="' + pathDepth + 'guestbook/index.html" target="mainbody">Gästebuch</a>');
  else
    document.write('Gästebuch');
  document.write(']&nbsp; [');
  if(location.pathname!="/kontakt/impressum.html")
    document.write('<a href="' + pathDepth + 'kontakt/impressum.html">Impressum</a>');
  else
    document.write('Impressum');
  document.write(']</td>');
  document.write('</tr>');
  document.write('</table>');
}

// prüft, ob richtiges Frameset geladen ist
function checkFrameset()
{
  if(!parent.nav_left)
    location.href="index.html?" + location.pathname;
}
