spr_dt = new Array(
"Wenn etwas schiefgehen kann, wird es auch schiefgehen.",
"Alles geht auf einmal schief.",
"Es geht auch schief, wenn es eigentlich nicht schiefgehen kann.",
"Freue Dich, wenn es Dir gut geht. Der Zustand wird vorbeigehen.",
"Sobald Du über etwas Positives redest, wird es verschwinden.<BR>Sobald Du über etwas Schlimmes redest, wird es eintreten.",
"Egal auf welcher Seite Du stehst - diese Seite wird verlieren.",
"Alles was zusammengesetzt wurde fällt früher oder später auseinander.",
"Ein aus der Hand fallendes Werkzeug fällt immer so, daß es den größten Schaden anrichtet.",
"Ein Butterbrot fällt immer auf die bestrichene Seite.",
"Das wichtigste Teil wird immer mit der Verpackung weggeschmissen.",
"Tippst Du zwei Tasten gleichzeitig, wird der Buchstabe erscheinen, den Du nicht willst.",
"Der einzige Link einer Linkliste, der Dich interessiert, geht nicht.",
"Der Download scheitert immer bei 98 Prozent.",
"Du wirst in der Suchmaschine alles finden.<BR>Nur nicht das was Du suchst.",
"Die Telefonrechnung ist immer höher als erwartet.",
"Ein Computer ist dazu da, Dir die Arbeit zu erleichtern, die Du ohne ihn nicht hättest.",
"Wenn Du nicht weißt, was Du tust - mach' es elegant.",
"Wer lächelt, wenn etwas schiefgeht, weiß einen, den er dafür verantwortlich machen kann.",
"Die Leute interessiert es nicht, was es kostet, sondern wieviel sie sparen.",
"Anstrengung * Zeit = konstant",
"Eine Grenze, wie schlimm es noch werden kann, gibt es nicht.",
"Tust Du jemandem einen Gefallen, bist Du ab sofort auf Dauer dafür verantwortlich.",
"Nichts ist so einfach, daß man es nicht falsch machen kann.",
"Glaube nicht an Wunder - verlaß Dich auf sie.",
"Eine Abkürzung ist die längste Entfernung zwischen zwei Punkten.",
"Nichts endet jemals so wie geplant.",
"Zeit ißt Geld.",
"Wenn Du denkst, daß es nicht mehr schlimmer werden kann, wird es schlimmer werden.",
"Wenn etwas schlimm gewesen ist, wird es nochmal passieren.",
"Alle großen Entdeckungen wurden durch Irrtümer gemacht.",
"Egal, was Du im Index suchst: genau dieses Stichwort wird fehlen.",
"Zucker ist das, was dem Kaffe einen schlechten Geschmack verleiht wenn man vergißt, ihn reinzutun.",
"Alle Dinge werden unter Druck schlimmer.",
"Wenn Dir egal ist, wo Du bist, verläufst Du Dich nicht.",
"Du findest nur das, was Du nicht suchst.",
"Das Auto zu waschen um es regnen zu lassen funktioniert nicht.",
"Das Telefon klingelt genau dann, wenn Du gerade in der Badewanne sitzt.",
"Lächle ... morgen wird es schlimmer.",
"Jede Lösung bringt ein neues Problem."
);

spr_en = new Array(
"If anything can go wrong, it will.",
"When a body is immersed in water, the telephone rings",
"At any event, the people whose seats are furthest from the aisle arrive last.",
"When you try to prove to someone that a machine won't work, it will.",
"Nothing is as easy as it looks.",
"Everything takes longer than you think.",
"Left to themselves, things tend to go from bad to worse.",
"Smile ... tomorrow will be worse.",
"Every solution breeds new problems.",
"Mater will be damaged in direct proportion to its value.",
"Everything goes wrong all at once.",
"There is always an easier way to do it.<BR>But you will not see it.",
"When things are going well, something will go wrong.",
"If an experiment works, something has gone wrong.",
"Everything put together falls apart sooner ot later.",
"In crises that force people to choose among alternative courses of action, most people will choose the worst possible.",
"Things will get worse before they get better.<BR>Who said things would get better.",
"Nothing ever goes away.",
"Things get worse under pressure.",
"Everyone has a scheme that will not work.",
"Negative expectations yield negative results.<BR>Positive expectations yield negative results.",
"You will never find an article until you replaced it.",
"Other people's tools work only in other people's houses.",
"No matter which way you ride, it's uphill and against the wind.",
"Toothache tends to start on Saturday night.",
"The other line moves faster.",
"You always find something the last place you look.",
"An object will fall so as to do the most damage.",
"The change of the bread falling with the buttered side down is directly proportional to the cost of the carpet.",
"Any tool, when dropped, will roll into the least accessible corner of the workshop.",
"It works better if you plug it in.",
"You can't fall off the floor.",
"All great discoveries are made by mistakes.<BR>The greater the funding, the longer it takes to make the mistake.",
"No experiment is reproducible",
"In any human enterprise, work seeks the lowest hierarchal level.",
"Washing your car to make it rain does't work."
);

function MurphysGesetze()
{
  var s = escape(document.URL.toLowerCase);
  var t = 0;
  var sp = 0;
  for (i=0;i<s.length;i++) t += s.charCodeAt(i)*i*i;
  if (murphy_day == 1)
  {
    jetzt = new Date();
    if (murphy_lang == "en")
      sp = spr_en[jetzt.getDate()]
    else
      sp = spr_dt[jetzt.getDate()];
  }
  else
    if (murphy_lang == "en")
      sp = spr_en[Math.floor(Math.random()*spr_en.length)]
    else
      sp = spr_dt[Math.floor(Math.random()*spr_dt.length)];

  if (murphy_id == t)
  {
   document.write('<BR><CENTER><TABLE cellpadding="0" cellspacing="0" border="1" width="80%" bgcolor="#FFFFFF" bordercolorlight="" bordercolordark="#000000"><TR><TD align="center"><TABLE width="100%"><TR><TD width="99%" align="center"><FONT size="3" face="VERDANA,ARIAL,HELVETICA" color="#000000">');
   if (murphy_lang == "en")
     document.write('<B>Murphy\'s Law:</B><BR>"'+sp+'"');
   else
     document.write('<B>Murphys Gesetz:</B><BR>"'+sp+'"');
   document.write('</FONT></TD><TD align="center" width="1%"><A HREF="http://www.arnep.de/murphy/index.html"><FONT color="#000000" face="VERDANA,ARIAL,HELVETICA" SIZE="1" STYLE="text-decoration: none; font-size:10"><B STYLE="text-decoration: none; font-size:10">I<BR>N<BR>F<BR>O</B></FONT></A></TD></TR></TABLE></TD></TR></TABLE></CENTER>');
  }
}
