<!-- Begin
Stamp = new Date();
today = new Date();
var Month;
var holidaytest;
var holidaygreeting;
<!-- Valentine's Day //-->
if (((Stamp.getMonth()+1) == 2) && (Stamp.getDate() == 14)){
holidaytest = "yes";
holidaygreeting = "... und einen sch&ouml;nen Valentinstag!";
}
<!--Easter //-->
<!--Check Moon Cycles-->
var currentDate = new Date();
var x = currentDate;
currentDate.setTime(currentDate.getTime() + (currentDate.getTimezoneOffset()*60000));
var blueMoonDate = new Date(96, 1, 3, 16, 15, 0);
var lunarPeriod = 29*(24*3600*1000) + 12*(3600*1000) + 44.05*(60*1000);
var moonPhaseTime = (currentDate.getTime() - blueMoonDate.getTime()) % lunarPeriod;
var time = Math.round((lunarPeriod-moonPhaseTime)/(24*3600*1000));
<!--Is it in March?-->
if ((Stamp.getMonth()+1) == 3) {
if ((Stamp.getDate() > 21) && (20 < time < 30)){
if ((Stamp.getDay() == 5) || (Stamp.getDay() == 6) || (Stamp.getDay() == 0)){
holidaytest = "yes";
holidaygreeting = "... und frohe Ostern!";
}
}
}
<!--Is it in April?-->
if ((Stamp.getMonth()+1) == 4) {
if (Stamp.getDate() < 26){
if (20 < time < 30){
if ((Stamp.getDay() == 5) || (Stamp.getDay() == 6) || (Stamp.getDay() == 0)){
holidaytest = "yes";
holidaygreeting = "... und frohe Ostern!";
}
}
}
}
<!-- Halloween //-->
if (((Stamp.getMonth()+1) == 10) && (Stamp.getDate() == 31)){
holidaytest = "yes";
holidaygreeting = "... und happy Halloween!";
}

<!-- Advent //-->
if (((Stamp.getMonth()+1) == 12) && (1 <= Stamp.getDate())){
holidaytest = "no";

}
if (((Stamp.getMonth()+1) == 12) && (Stamp.getDate() < 24)){
holidaytest = "yes";
holidaygreeting = "... und einen schönen Advent!";
}
<!-- Weihnachten //-->
if (((Stamp.getMonth()+1) == 12) && (Stamp.getDate() == 24)){
holidaytest = "yes";
holidaygreeting = "... und frohe Weihnachten!";
}

if (((Stamp.getMonth()+1) == 12) && (Stamp.getDate() > 24)){
holidaytest = "yes";
holidaygreeting = "... und frohe Weihnachten!";
}
if (((Stamp.getMonth()+1) == 12) && (Stamp.getDate() > 26)){
holidaytest = "no";
holidaygreeting = "";
}
<!-- Silvester //-->
if (((Stamp.getMonth()+1) == 12) && (Stamp.getDate() > 28)){
holidaytest = "yes";
holidaygreeting = "... und einen guten Rutsch!";
}


<!-- Januar //-->
if (((Stamp.getMonth()+1) == 1) && (1 <= Stamp.getDate())){
holidaytest = "no";

}
if (((Stamp.getMonth()+1) == 1) && (Stamp.getDate() < 08)){
holidaytest = "yes";
holidaygreeting = "... und ein glückliches Neues Jahr!";
}


if((today.getHours() >=0) && (today.getHours() <=11)){
if (holidaytest == "yes"){
document.write(holidaygreeting);
}
else{
document.write("... und einen guten Morgen!");
}
}
if((today.getHours() >=12) && (today.getHours() <=18)){
if (holidaytest == "yes"){
document.write(holidaygreeting);
}
else{
document.write("... und einen guten Tag!");
}
}
if((today.getHours() >=19) && (today.getHours() <=23)){
if (holidaytest == "yes"){
document.write(holidaygreeting);
}
else{
document.write("... und einen guten Abend!");
}
}
// End -->
