// 02.09.2010 Hans-Joachim Pech

var DATUM = "";
var XHTML = 0;
var CSS = 0;

var HTML  = 0;
var A= 0;
var RAHMEN = "";
var auswahl = "", textwahl = "", wahl="", sml=0; 
var LEER = "";
var dat, wahl1, wahl2;
var X=0;
var Y=1;
var mn=new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
var hldom="hermannslauf"+"."+"de";
var mydom="hjpech"+"."+"de";
var myvor="post-2010";

auswahl = new Zufall (
  "... von Detmold nach Bielefeld.",
  "... über die Höhen des Teutoburger Waldes.",
  "... 31,1 km durch den Teutoburger Wald.",
  "... letztes mal wieder über 7.000 Teilnehmer.",
  "... vom Hermannsdenkmal zur Sparrenburg.",
  "... die Sparrenburg ist das Ziel.",
  "... der Start erfolgt direkt am Hermannsdenkmal.",
  "... jedes Jahr am letzten Sonntag im April.",
  "... mit dem Bus hinfahren und zurück laufen.", 
  "... jedes Jahr im Frühling.",
  "... die Laufveranstaltung in Bielefeld.",
  "... nächster Hermannslauf am 25. April 2010.");

function Zufall(a,b,c,d,e,f,g,h,i,j,k,l) {
  this[0] = a; this[1] = b; this[2] = c; this[3] = d;
  this[4] = e; this[5] = f; this[6] = g; this[7] = h;
  this[8] = i; this[9] = j; this[10] = k; this[11] = l;
};

function Hinweise(list) {
  var today = new Date();
  textwahl = (today.getSeconds()+ A ) % 12 ; A=A+130;
  
  wahl1 = (today.getSeconds()+ A ) % 12 ; A=A+130;
  wahl2 = (today.getSeconds()+ A ) % 12 ; A=A+130;
  return list[textwahl];
};

function eigenFrame() {
 if(top != self)
 {var host=parent.location.hostname;
  if (host != "") 
     {var eigene = top.location.href.indexOf("hermannslauf.de");
     if (eigene == -1) {top.location=parent.self.location; }
}}};

function komplettSeite () {

if(top.frames.length==0){
 document.write ('<div style="padding-left:55px;">Diese Seite ist Teil eines Framesets. '+
 'Damit das Menue erscheint, wenn man mit dem Curser nach links geht, bitte die komplette Seite aufrufen: '+
 '<a href="http://www.hermannslauf.de/hermannslauf/seiten/index.php?Ziel='+
  window.location.href+'">komplette Seite</a></div>');
}};

function LastDate(){ 
var d, m, t, jj, j;

d=new Date(document.lastModified);

if(DATUM){if(DATUM == "ohne"){d=new Date()}};

m=mn[d.getMonth()] 
t=d.getDate() 
jj=d.getYear()
j=(jj>=2000)?jj:((jj<=20)?jj+2000:jj+1900);
dat=(t+". "+m+" "+j);
};

// -------------------------------------- 27.02.2008

function XXWerbeBlock() {
document.write('<div class="randOben" style="background-color:red; height:86px; padding:6px; text-align:center;">'+
 '<a name="Sponsor" href="../../verein/" id="sponsor" target="_blank" onmouseover="show(W)" onmouseout="show(LEER)" title="Etwas farbenfroher als das TSVE-Logo.">'+
 '<img name="werbung" src="../x/nix.gif" width="500" height="80" alt="" style="border:2px solid green; background-color:#ffffff;" /></a></div>');
};

 if(top != self){
    if(top.hlmenue) {
 document.write('<div id="pfeil" style="position:absolute; top:0; left:0; cursor:pointer;" '+
 		' alt="Pfeil nach rechts" onclick="zeigeHLMenue();"></div> ');
}};


function IE4KopfZeile() {

var y1=86; var y2 = 124;  var xx = 23; if(B_IE6){y1=87; y2 = 125;};

document.write('<div id="ecke" hspace="0" align="left" style="position:absolute; top:'+y1+'px; left:0px; margin-top:7px; height:44px; width:47px;"></div>'+
 '<div id="hgo" align="right" style="height:26px; min-width:570px; margin:0; width:100%;">');

if(!parent.archivrand){document.write(
 '<div style="width:554px; float:right; margin-top:1px; margin-right:8px; margin-left:48px; height:20px;">'+
 '<div class="top1"><a hr'+'ef=" '+ZURUECK+' " onmouseover="return show(WOHER+HER)" onmouseout="return show(LEER)" title="'+WOHER+'&#013;&#10; '+HER+'">zurück</a></div>'+
 '<div class="top"><a href="../../index.php" target="_top" onmouseover="return show(H)"'+RAHMEN+'>Home</a></div>'+
 '<div class="top"><a href="../11/hl11aus.shtml" onmouseover="return show(H)">Ausschreibung</a></div>'+
 '<div class="top"><a href="../11/hl11anme.shtml" onmouseover="return show(H)">Anmeldung</a></div>'+
 '<div class="top"><a href="../11/hl11info.htm" onmouseover="return show(H)">Aktuell</a></div>'+
 '<div class="top"><a href="javascript:zeigeHLMenue();" onmouseover="zeigeMenue(1000); return show(H)" onfocus="this.blur()" title="Menue ändern" >Menue</a></div>'+
 '<div class="top"><a hr'+'ef=" '+VORWAERTS+' " onmouseover="return show(WOHIN+HIN)" onmouseout="return show(LEER)" title="'+WOHIN+'&#013;&#10; '+HIN+'">vorwärts</a></div>'+
 '<div class="top" style="padding-left:2px;">&#160;</div>');};

 document.write('</div>');

document.write('</div>'+
 '<div id="verdeckt" style="position:absolute; top:'+y2+
 'px; left:'+ xx +'px; line-height:14px; background-color:' +document.bgColor+ '">'+
 '<img src="../x/nix.gif" height="14" width="30" border="1" alt="" /></div>');
};


function XXLaufZeile(Y) {
document.write('<div class="laufzeile" style="margin-top:'+Y+'px;"><br /><div class="hla">Hermannslauf</div><div '+
 'class="hlb">Hermanns<span class="hlr">lauf</span><span class="hld">&#160;&#174;</span></div>');
document.write('<div class="hl3"><img src="../x/hlstrich.gif" width="310" height="3" vspace="4" alt="Strich" /><br />');
document.write('<marquee bgcolor="#C0C0C0" scrollamount="6" style="font-size:16px;">'+
 Hinweise(auswahl)+'</marquee></div></div>');
};


function YYLaufZeile(Y) {
 document.write('<div style="height:92px; min-width:316px; margin:10px 20px 7px 35px ;">'+
  '<div style="display:block; width:310px; height:80px; padding:10px 0 0 35px; margin:0 auto;">');
 XXLaufZeile(-2)
 document.write('</div></div>');
};


function XXMenueZeile() {
document.write('<div id="hl5b" style="display:box; width:308px; height:60px; text-align:center;');
if (modusNeu >=2){document.write('padding-top:2px;');};

document.write('">');

if(!parent.archivrand){document.write(
 '|<a hr'+'ef="'+ZURUECK+'" onmouseover="return show(WOHER+HER)" onmouseout="return show(LEER)" title="'+WOHER+'&#013;&#10; '+HER+'">zurück</a>| '+
 '|<a href="../../index.htm" target="_top" onmouseover="return show(H)" '+RAHMEN+'>Home </a>| '+
 '|<a href="../a/menueges.htm" onmouseover="return show(H)">Inhalt</a>| '+
 '|<a href="../a/impress.htm" onmouseover="return show(H)">Impressum</a>| '+
 '|<a hr'+'ef="'+VORWAERTS+'" onmouseover="return show(WOHIN+HIN)" onmouseout="return show(LEER)" title="'+WOHIN+'&#013;&#10; '+HIN+'">vorwärts</a>|<br />'+
 '|<a href="../11/hl11aus.shtml" onmouseover="return show(H)">Ausschreibung</a>| '+
 '|<a href="../11/hl11anme.shtml" onmouseover="return show(H)">Anmeldungen</a>|<br />'+
 '|<a href="../a/hlmail.shtml" onmouseover="return show(H)">Mail an hermannslauf.de</a>|<br />'+
 '|<a href="../11/hl11info.htm" onmouseover="return show(H)">Aktuell</a>| ');};
 
document.write('</div>');
};


function IE4FussZeile() {
document.write('<div style="margin-left:55px; margin-right:5px; clear:all;" onmouseover="mitLinie(2);">'+
 '<div style="display:block; width:312px; height:276px; margin:0 auto;" id="ht" ><img src="../x/nix.gif" width="1" height="20" alt="" />'+
 '<center><img src="../x/nix.gif" width="4" height="4" alt="" /><br />'+
 '<img src="../x/hlsymbol.gif" border="0" alt="HL-Symbol" /></center>');
XXLaufZeile(-10);
  XXMenueZeile();
document.write('</div></div>'); // Ende Seiteninhalt
};

var TITEL = ""; var ART=0; var LINEAL=0;


function Kopfzeile(ART) { 

XXWerbeBlock();
IE4KopfZeile();

komplettSeite();
YYLaufZeile(18);

XXMenueLinks();

if(ART){Schrift(ART,1);};
if(ART==2 || ART==3){LINEAL=1;};
};


function XXEndeZeile() {LastDate();

document.write('<div class="dlvk"><div style="padding-top:44px; color:#666666;">');

 if(XHTML){document.write('<img src="../x/x/valid-4.png" usemap="#valide" style="float:left; margin-top:-2px;" /><map id="valide" name="valide">'+
 '<area shape="rect" coords="1,1,78,16" href="http://validator.w3.org/check/referer" target="_blank" alt="Valid&#160; XHTML 1.0 Transitional" title="Valid&#160; XHTML 1.0 Transitional" />'+
 '<area shape="rect" coords="84,1,162,16" href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" alt="CSS 2.1 valide!" title="CSS 2.1 valide!" />'+
 '<area shape="rect" coords="168,1,246,16"href="http://www.totalvalidator.com/validator/Revalidate?revalidate=true&amp;dtd=dtds/1.0/xhtml1-transitional.dtd" target="_blank" alt="Totally Valid XHTML 1.0" title="Totally Valid XHTML 1.0" />'+
 '<area shape="rect" coords="251,1,283,16" href="http://users.skynet.be/mgueury/mozilla/" target="_blank" alt="Validated by HTML Validator" title="Validated by HTML Validator" /></map>');};

document.write('<div style="float:right; display:block; height:14px; margin:1px 5px 0 0;"><a hr'+'ef="mailto:'+myvor+'&#64;'+mydom+'"><img src="/hl2000/x/x/mpo.png" class="adre" alt="" /><' + '/a><' + '/div>'+
 '<div style="float:right; text-align:right;">Letzte Aktualisierung am '+STAND+' - &#169; 2001-2010 <a href="/hl2000/p/hjpech.htm" style="color:#666666;" target="_blank">Hans-Joachim Pech<' + '/a> -&#160;<' + '/div>');

 if(top != self){
 if(top.hlmenue) {
 wMenue();
 if(fb[0]=='0%'){f.setAttribute("cols", "27, *");};
 if(top.hlmenue==3){f.setAttribute("cols", "200, *");};

 var zeigemenue=1;
if(top.farbe)
  {document.bgColor = top.farbe; document.getElementById('verdeckt').style.backgroundColor = top.farbe;}else{document.bgColor="#ffffcc";};

 if(top.hlmenue){
    if(top.gezeigt==0)
       {Menue();
     window.setTimeout("zeigemenue=0",2000);};
     top.gezeigt = 1;}}
}};

function Fusszeile(SML,ART) {
 if(SML==5){
document.write ('<div id="clickme" style="position:absolute; top:'+flypoint[wahl1]+'px; left:'+flypoint[wahl2]+'px;" '+
 '<div id="fly" style="float:right; margin-right:3px;"><a hr'+'ef="'+VORWAERTS+'"><img src="../x/nix.gif" width="36" height="28" '+
 ' alt="Butterfly" onmouseover="show(WOHIN+HIN);" onmouseout="show(LEER);" /></a></div></div>');};

IE4FussZeile();
XXEndeZeile();
 if(ART){setSchrift(ART,2);};

 var breite=0;
 if(ART<=2){
if(document.documentElement.offsetWidth)
  {breite=(document.body.offsetWidth)?document.body.offsetWidth:document.window.innerWidth;};

 document.writeln("<div id='hLinie' style='visibility:hidden; top:100px;'>&#160;</div>");
 document.getElementById('hLinie').style.left=(document.body.scrollLeft+80)+"px";
 document.getElementById('hLinie').style.width=(breite -180)+"px";
 }

};

// 02.09.2010 Hans-Joachim Pech