// JavaScript Document
function einblenden(sprache) {
  var jetzt = new Date();
  var tag = jetzt.getDate();
  var monat = jetzt.getMonth()+1;

  if ((monat==3 && (tag>=21 && tag<=24))) {
    document.write('<table width="700" cellpadding="0" cellspacing="0" align="center">');
    document.write('<tr>');
	if (sprache==1) {
      document.write('<td width=\"155\" valigm=\"middle\" align=\"center\"><img src=\"images/chicken.gif\" width=\"150\" height=\"130\" border=\"0\" alt=\"Frohe Ostern\"></td>');
      document.write('<td width=\"428\" valign=\"middle\" align=\"center\" class=\"textrotfett\">Die Freiwillige Feuerwehr Nittenau w&uuml;nscht Ihnen<br>ein Frohes Osterfest!</td>');
      document.write('<td width=\"117\" valign=\"middle\" align=\"center\"><img src=\"images/hase.gif\" width=\"112\" height=\"164\" border=\"0\" alt=\"Frohe Ostern\"></td>');
	} else if (sprache==2) {
      document.write('<td width=\"155\" valigm=\"middle\" align=\"center\"><img src=\"../images/chicken.gif\" width=\"150\" height=\"130\" border=\"0\" alt=\"Happy Easter\"></td>');
      document.write('<td width=\"428\" valign=\"middle\" align=\"center\" class=\"textrotfett\">The Nittenau Fire Department wishes you<br>Happy Easter!</td>');
      document.write('<td width=\"117\" valign=\"middle\" align=\"center\"><img src=\"../images/hase.gif\" width=\"112\" height=\"164\" border=\"0\" alt=\"Happy Easter\"></td>');
	}
	document.write('</tr>');
	document.write('<tr><td colspan=\"3\"><img src=\"http://www.feuerwehr-nittenau.de/images/spacer.gif\" width=\"1\" height=\"30\"></td></tr>');
    document.write('</table>');
  }
}

function apresski(sprache) {
  var jetzt = new Date();
  var tag = jetzt.getDate();
  var monat = jetzt.getMonth()+1;
  
  if ((monat==12 && tag<=31)||(monat==1 && tag<=5)) {
	  document.write('<table width=\"250\" cellpadding=\"5\" cellspacing=\"0\" align=\"center\" class=\"rot\"><tr>');
    if (sprache==1) {
	  document.write('<td align=\"center\"><a class=\"white\" href=\"apresski.htm\">Apres Ski Party am 05.01.2008</a></td>');
	} else if (sprache==2) {
	  document.write('<td align=\"center\"><a class=\"white\" href=\"apresski.htm\">Apres Ski Party on 01/05/2008</a></td>');
	}	  
	document.write('</tr></table><br><br>');
  }
}

function apresskitext(sprache,absatz) {
  var jetzt = new Date();
  var tag = jetzt.getDate();
  var monat = jetzt.getMonth()+1;
    
  if ((monat==12 && tag<=31)||(monat==1 && tag<=5)) {
    if (absatz==1) {
	  if (sprache==1) {
	    document.write('<p>Am <b>Samstag, den 05.01.2008</b> veranstaltet die Feuerwehr Nittenau wieder ihre Apres Ski Party.</p><p>Ort des schon zur Tradition gewordenen Events ist wie immer die <b>Angerinsel in Nittenau</b>.</p><p>Es geht um <b>19.00 Uhr</b> los, dann wird mit Getr&auml;nken, Brotzeit und fetzigen Rythmen gefeiert und die H&uuml;tte zum Wackeln gebracht.</p></p>');
	  } else if (sprache==2) {
	    document.write('<p>On <b>saturday, 01/05/2008</b> the Nittenau Volunteer Fire Department once more organizes its Apres Ski Party.</p><p>Location of the already traditional event will be the <b>Angerinsel in Nittenau</b>.</p><p>Start is at <b>07:00 p m</b>, then we will celebrate with drinks, food and hot music.</p>');
	  }
	} else if (absatz==2) {
	  if (sprache==1) {
	    document.write('<p>Die gesamte Bev&ouml;lkerung ist herzlich eingeladen!</p><p>Auch bei dieser Apres Ski Party erh&auml;lt jeder, der mit Ski oder Skisachen kommt, ein Freigetr&auml;nk.</p><p>Hier k&ouml;nnen Sie das Plakat als PDF downloaden:<br><b><a href="download/ApresSkiParty2008.pdf" target="_blank">Plakat Apres Ski Party 2008 &raquo;</a></b></p>');
	  } else if (sprache==2) {
	    document.write('<p>Everyone is invited!</p><p>Like in the years before, you will get a drink for free if you appear with skiing equipment.</p>');
	  }
	} else if (absatz==3) {
	  if (sprache==1) {
	    document.write('<div class="textrotfett" align="center">Auf Ihr Kommen freut sich die Freiwillige Feuerwehr Nittenau!</div>');
	  } else if (sprache==2) {
	    document.write('<div class="textrotfett" align="center">The Nittenau Fire Department is looking forward to your visit!</div>');
	  }
	}
  } else if (monat==1 && tag>5) {
    if (absatz==1) {
	  if (sprache==1) {
	    document.write('<p>Am Samstag, den 05.01.2008 veranstaltete die Feuerwehr Nittenau wieder ihre Apres Ski Party auf der Angerinsel in Nittenau.</p><p>Mit Getr&auml;nken, Brotzeit und fetzigen Rythmen wurde gefeiert und die H&uuml;tte zum Wackeln gebracht.</p>');
	  } else if (sprache==2) {
	    document.write('<p>On saturday, 01/05/2008 the Nittenau Volunteer Fire Department once more organized its Apres Ski Party at the Angerinsel in Nittenau.</p><p>The crowd celebrated with drinks, food and hot music.</p>');
	  }
	} else if (absatz==2) {
	  if (sprache==1) {
	    document.write('<p>Fotos dieses Events werden bald hier zu sehen sein.</p>');
	  } else if (sprache==2) {
	    document.write('<p>Photos of the event will be shown here soon</p>');
	  }
	} else if (absatz==3) {
	  if (sprache==1) {
	    document.write('<div class="textrotfett" align="center">Die Freiwillige Feuerwehr Nittenau bedankt sich bei allen Besuchern!</div>');
	  } else if (sprache==2) {
	    document.write('<div class="textrotfett" align="center">The Nittenau Fire Department thanks all the visitors!</div>');
	  }
	}
  }
}

function einsaetze(sprache,nummer) {
  var jetzt = new Date();
  var tag = jetzt.getDate();
  var monat = jetzt.getMonth()+1;
  var jahr = jetzt.getFullYear();
  var jahrlast = jahr - 1;
  
  if (nummer==1) {
    if (sprache==1) {
	  document.write("Auf diesen Seiten zeigen wir einige der typischen Eins&auml;tze, die eine Feuerwehr heutzutage bew&auml;ltigen mu&szlig;.<br>Sie k&ouml;nnen eine tabellarische &Uuml;bersicht &uuml;ber die Eins&auml;tze der Jahre <a href=\"eins" + jahrlast + ".htm\">" + jahrlast + "</a> und <a href=\"eins" + jahr + ".htm\">" + jahr + "</a> abrufen, sich genauere Informationen &uuml;ber einen ausgew&auml;hlten <a href=\"eins_akt.htm\">aktuellen</a> oder andere spektakul&auml;re Eins&auml;tze mit Fotos anzeigen lassen.");
	} else if (sprache==2) {
	  document.write("On these pages we show some of the typical alarms a fire department has to handle nowadays.<br>You can choose a list of the alarms in <a href=\"eins" + jahrlast + ".htm\">" + jahrlast + "</a> and <a href=\"eins" + jahr + ".htm\">" + jahr + "</a>, more information on a <a href=\"eins_akt.htm\">recent alarm</a> or other spectacular incidents with photos.");
	}
  } else if (nummer==2) {
    if (sprache==1) {
	  document.write("<a href=\"eins" + jahr + ".htm\">Liste der Eins&auml;tze des Jahres " + jahr + "</a><br><br><a href=\"eins" + jahrlast + ".htm\">Liste der Eins&auml;tze des Jahres " + jahrlast + "</a>");
	} else if (sprache==2) {
	  document.write("<a href=\"eins" + jahr + ".htm\">List of alarms in " + jahr + "</a><br><br><a href=\"eins" + jahrlast + ".htm\">List of alarms in " + jahrlast + "</a>");
	}
  } else if (nummer==3) {
    if (sprache==1) {
	  if (jahr==2007) {
	    document.write("<a href=\"eins2006.htm\">Eins&auml;tze 2006</a>");
	  } else if (jahr==2008) {
	    document.write("<a href=\"eins2008.htm\">Eins&auml;tze 2008</a>");
	  }
	} else if (sprache==2) {
	  if (jahr==2007) {
	    document.write("<a href=\"eins2006.htm\">Alarms in 2006</a>");
	  } else if (jahr==2008) {
	    document.write("<a href=\"eins2008.htm\">Alarms in 2008</a>");
	  }
	}
  }
}

function oben(sprache) {
  var jetzt = new Date();
  var jahr = jetzt.getFullYear();

  if (jahr==2007) {
    if (sprache==1) {
	  document.write("<td align=\"right\"><a href=\"http://www.nittenau.de\" target=\"_blank\"><img src=\"images/1000jnittenau.gif\" width=\"75\" height=\"75\" border=\"0\" alt=\"1000 Jahre Nittenau\"></a></td>");
	} else if (sprache==2) {
	  document.write("<td align=\"right\"><a href=\"http://www.nittenau.de\" target=\"_blank\"><img src=\"../images/1000jnittenau.gif\" width=\"75\" height=\"75\" border=\"0\" alt=\"Nittenau 1000th anniversary\"></a></td>");
	}
  }  
}
