var version = Number(navigator.appVersion.substr(0,1));

var mitmenue = 0;
var testdruck=0;
var HinweisFenster=0;

menueModus=top.frames.length>0?0:5;

var hairColor="red"; 
var ZEIGER = 0;
var PRESSE = 0;
var RAHMEN = "";
var LEER = "";
var B_NS = 0, B_NS4 = 0, B_NS6 = 0;
var B_IE, B_IE4, B_IE5, B_IE6, B_IE7, B_IE8=0;

var hHair='';
var test=0;
var nachX=0;
var nachY=0;
var BLAETTERN;
var Linie="";
var mitLineal=1;
var breite=0;

var wahlj=0;
var wahls=0;
var schrift="";
var header="";
var schriftnr = 1;
var groesse = new Array(0,11,15,18,22,30);
var gross   = new Array(0,21,23,25,27,30);

var NIX = new Image(); 
 NIX.src = "../x/nix.gif";

var STRICH = new Image();
 STRICH.src = "../x/rahmen.gif";
 
var flypoint = new Array(50,100,150,200,250,300,350,400,450,500,550,600);
var mydomar = new Array(104,99,101,112,106,104);
var hldomar = new Array(102,117,97,108,115,110,110,97,119,114,101,104);


var L = LEER = " www.hermannslauf.de";
var H = " www.hermannslauf.de";
var S = " Eine weitere Seite von www.hermannslauf.de";
var A = " www.anmeldung.hermannslauf.de";
var W = " Wir unterstützen den Hermannslauf.";
var WOHIN = " Vorwärts blättern zur Hermannslauf-Seite: ";
var WOHER = " Zurück blättern zur Hermannslauf-Seite: ";


function show(text) {

  if (document.tsve) {WOHIN = "Vorwärts blättern zur TSVE-Seite: ";
   WOHER = "Zurück blättern zur TSVE-Seite: ";};
 
var welcher = (text == (WOHIN+HIN))?"bottom":"top"; 

  if (DOM && document.getElementById("fly"))
      {document.getElementById("fly").style.backgroundPosition = "0 "+welcher;};

  if (DOM && document.getElementById("fly2"))
      {document.getElementById("fly2").style.backgroundPosition = "0 "+welcher;};

window.status=text;
return true;
};

if(top != self){
if (top.hlmenue==1) {mitmenue = 1;} else {mitmenue = 0;}};

var ff1 = 0, ff2=0, ie4 = 0, ns4 = 0, nn4 = 0;
var MS0 = 0, MS1 = 0;
var RAND;
var TEST = "";
var ElementList;

   ff1 = ( navigator.userAgent.indexOf  ( "Firefox" ) >= 0 );
           var version = Number(navigator.appVersion.substr(0,1));
  if(version == 5){
   ff2 = ( navigator.userAgent.indexOf  ( "Firefox" ) >= 0 );};


function Adresse() {

document.write('<div style="color:#666666;"><a href="mailto:mail&#64'+ hldom +'">&#160;E-Mail an&#160; '+ hldom +'&#160;</a><br />')
document.write('<a href="../a/impress.htm" target="rechts">&#160;Impressum&#160;</a><br /><br />')
document.write('&#160; &copy; 2001-2010&#160;<br />&#160; Hans-Joachim Pech&#160;<br />')
document.write('&#160;<a href="mailto:email&#64'+ mydom +'">&#160;email&#64' + mydom + '&#160;</a></div>')
};

/* DHTML-Bibliothek */

var DHTML = false, DOM = false, MSIE4 = false, NS4 = false, OP = false, MSIE5 = false;

if (document.getElementById) {
  DHTML = true;
  DOM = true;
  if(document.all && !OP) {MSIE5 = true;};
} else {
  if (document.all) {
    DHTML = true;
    MSIE4 = true;
  } else {
    if (document.layers) {
      DHTML = true;
      NS4 = true;
    }
  }
}

 var modusNeu = 0, modusAlt = 0; 
if(typeof document.compatMode != 'undefined' && document.compatMode == 'CSS1Compat')
  {modusNeu = 1; if (!MSIE5 && !OP) {modusNeu = 2;}; if (OP) {modusNeu = 3;} if(ff2){modusNeu = 5;}};
if(typeof document.compatMode != 'undefined' && document.compatMode != 'CSS1Compat')
  {modusAlt = 1; if (!MSIE5 && !OP) {modusAlt = 2;}; if (OP) {modusAlt = 3;}};
 
if (NS4) {
document.write('<script src="/hl2000/x/ns4stil.js" type="text/javascript"></script>');
};


function getElement (Mode, Identifier, ElementNumber) {
  var Element;
  if (DOM) {
    if (Mode.toLowerCase() == "id") {
      if (typeof document.getElementById(Identifier) == "object") {
        Element = document.getElementById(Identifier);
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "name") {
      var ElementList = document.getElementsByName(Identifier);
      if (typeof ElementList == "object" || (OP && typeof ElementList == "function")) {
        Element = ElementList[ElementNumber];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "tagname") {
      ElementList = document.getElementsByTagName(Identifier);
      if (typeof ElementList == "object" || (OP && typeof ElementList == "function")) {
        Element = ElementList[ElementNumber];
      } else {
        Element = false;
      }
      return Element;
    }
    return null;
  }
  if (MSIE4) {
    if (Mode.toLowerCase() == "id") {
      if (typeof document.all[Identifier] == "object") {
        Element = document.all[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "tagname") {
      if (typeof document.all.tags(Identifier) == "object") {
        Element = document.all.tags(Identifier)[ElementNumber];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "name") {
      if (typeof document[Identifier] == "object") {
        Element = document[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  if (NS4) {
    if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") {
      if (typeof document[Identifier] == "object") {
        Element = document[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    if (Mode.toLowerCase() == "index") {
      if (typeof document.layers[Identifier] == "object") {
        Element = document.layers[Identifier];
      } else {
        Element = false;
      }
      return Element;
    }
    return false;
  }
  return false;
}

function getContent (Mode, Identifier, ElementNumber) {
  var Content;
  var Element = getElement(Mode, Identifier, ElementNumber);
  if (!Element) {
    return false;
  }
  if (DOM && Element.firstChild) {
    if (Element.firstChild.nodeType == 3) {
      Content = Element.firstChild.nodeValue;
    } else {
      Content = "";
    }
    return Content;
  }
  if (MSIE4) {
    Content = Element.innerText;
    return Content;
  }
  return false;
}

function getAttribute (Mode, Identifier, ElementNumber, AttributeName) {
  var Attribute;
  var Element = getElement(Mode, Identifier, ElementNumber);
  if (!Element) {
    return false;
  }
  if (DOM || MSIE4) {
    Attribute = Element.getAttribute(AttributeName);
    return Attribute;
  }
  if (NS4) {
    if (typeof Element[ElementNumber] == "object") {
      Attribute = Element[ElementNumber][AttributeName];
    } else {
      Attribute = Element[AttributeName]
    }
    return Attribute;
  }
  return false;
}

function setContent (Mode, Identifier, ElementNumber, Text) {
  var Element = getElement(Mode, Identifier, ElementNumber);
  if (!Element) {
    return false;
  }
  if (DOM && Element.firstChild) {
    Element.firstChild.nodeValue = Text;
    return true;
  }
  if (MSIE4) {
    Element.innerText = Text;
    return true;
  }
  if (NS4) {
    Element.document.open();
    Element.document.write(Text);
    Element.document.close();
    return true;
  } return false;
};

/* Navigation */


var mausposition=0;
var zeigemenue=0;
var NavLinksPos=0;
var HLMenue=1;
var f = "";
var fb = "";
var menueModus=1;

 if(top != self){
 if(top.hlmenue){ 
 f=top.document.getElementById("aufteilung");
 fb = f.cols.split(",");
 menueModus=fb[0]>=30?5:1;}};

function wMenue(){
 fb = f.cols.split(","); if(MSIE5 && fb[0] >= 1000){fb[0]=fb[0] / 100;};
 HLMenue=(fb[0]<=33)?0:1;
 menueModus=fb[0]>=35?5:1;
};

 if(top != self){
    if(top.hlmenue){wMenue();}};

function zeigeMenue(dauer) {
 if(!dauer){dauer=500;};
 wMenue();
 menueModus=fb[0]>=35?5:1;
 zeigemenue=1;
 if(menueModus != 5){
 menueModus=4;
 handleMove;
 window.setTimeout("zeigemenue=0",dauer);}
 top.gezeigt = 1;
};

function zeigeHLMenue() {
 wMenue();
 if(fb[0]<=35){
 menueModus=0;
 noMenue();
 menueModus=5;
 f.setAttribute("cols", "200, *");
}else{
 menueModus=3;
 f.setAttribute("cols", "27, *");
 window.setTimeout("zeigemenue=0",500);
}};


function Menue() {
  wMenue();
  if(!HLMenue){
    if(modusNeu == 1 || modusNeu == 3)
     {getElement("id", "Nav").style.top = (document.documentElement.scrollTop + 70)+"px";}
   else if(modusNeu >= 2)
     {getElement("id", "Nav").style.top = (window.pageYOffset + 70)+"px";}

   else if (typeof window.pageYOffset == "number") {
    if (NS4) {
      getElement("id", "Nav").top = window.pageYOffset + 70;
    } else {
      getElement("id", "Nav").style.top = window.pageYOffset + 70;
    }
  } else {
    if (typeof document.body.scrollTop == "number")
      getElement("id", "Nav").style.top = document.body.scrollTop + 70;
  }
  if (OP && !DOM)
    getElement("id", "NavLinks").style.pixelTop = NavLinksPos;
  if (NS4) {
    getElement("id", "Nav").visibility = "show";
  } else {
    getElement("id", "Nav").style.visibility = "visible";
  }
}};

function noMenue () {
 
 if (menueModus <= 2 || HLMenue){
 if (NS4) {
    getElement("id", "Nav").visibility = "hide";
  } else {
    getElement("id", "Nav").style.visibility = "hidden";
  }};
}

function handleMove (ev) {
  if (!ev){ev = window.event;};
  mausposition = (ev.pageX)? ev.pageX : ev.clientX; 
  if (mausposition <= 120 || zeigemenue == 1) { 
      Menue(); if(menueModus==4){menueModus=3;};
  } else {
    if (mausposition > 250) {
      noMenue();
      if(menueModus == 3){menueModus=2;};
    }
  }
}

function Event_init () {
  if (document.addEventListener) {
    document.addEventListener("mousemove", handleMove, true);
  } else {
    if (NS4) {
      document.captureEvents(Event.MOUSEMOVE);
      document.onmousemove = handleMove;
    } else {
      document.body.onmousemove = handleMove;
    }
  }
  if (OP && !DOM) {
    NavLinksPos = 70; // Position des Bereiches NavLinks
    getElement("id", "NavLinks").style.pixelTop = NavLinksPos;
  }
};


/* Bewegungen */


function gotoPageTop() {
 window.scrollTo(0,0);
};

function getBrowserType(){
var version = Number(navigator.appVersion.substr(0,1));

 if(version >= 4){
   ie4 = ( navigator.appName.indexOf ( "Microsoft" ) >= 0 );
   ns4 = ( navigator.appName.indexOf  ( "Netscape" ) >= 0 );}

   ff1 = ( navigator.userAgent.indexOf  ( "Firefox" ) >= 0 );
   B_NS6 = ( navigator.userAgent.indexOf  ( "Netscape6" ) >= 0 );

B_IE4 = (navigator.appVersion.indexOf ( "MSIE 4.0" ) >= 0 );
B_IE5 = (navigator.appVersion.indexOf ( "MSIE 5.5" ) >= 0 );
B_IE6 = (navigator.appVersion.indexOf ( "MSIE 6.0" ) >= 0 );
B_IE7 = (navigator.appVersion.indexOf ( "MSIE 7.0" ) >= 0 );

var IE = null;
if (window.navigator.appName == "Microsoft Internet Explorer") {
   if (document.documentMode) {B_IE8=1;
      // Internet Exploter 8
      B_IE = document.documentMode;}};


 if ( ns4 && (version == 4)){nn4="1";}

 if (ns4) {B_NS = 1};
 if(ns4 && version <= 4){B_NS4 = 1};

};

getBrowserType();

var eventX=0; var eventY=0;
var Xy=0;
var units = 2, dist, dx, dy, x = 10, y;
var timerID = 0, endX, endY, oldX, oldY;
var version = "0";
var buttonX, buttonY, wegX = 0, wegY = 0, breitX = 0, hochY = 0;
var wegXX = 0, wegYY = 0, obenXX = 0, obenYY = 0;
var flyer = "", suffix = "";
var vorspann = ""; var prefix="";
var rRand = 0;

if(modusNeu >=1){vorspann = document.documentElement;};
rRand=(modusNeu==1)? 80:(modusNeu==2)? 104:97;

 
function setupFly() {
if(document.getElementById) {
   flyer = document.getElementById('clickme');
 
if(LINEAL==1){ 
   Linie = document.getElementById('hLinie');
   Linie.style.position="absolute";
   Linie.style.top="100px";
   Linie.style.width="100px";
   Linie.style.left=(document.body.scrollLeft+70)+"px";
   Linie.style.visibility="hidden";
};

if(modusNeu==5) {eventX = 'e.clientX'; eventY = 'e.clientY';}else{
if(document.captureEvents) {eventX = 'e.pageX'; eventY = 'e.pageY';}else{
 eventX = 'event.clientX'; eventY = 'event.clientY';}};

buttonX = 'flyer.style.left'; buttonY = 'flyer.style.top';

if(modusNeu>=1) {suffix = 'document.documentElement.';
  }else{if(document.body){suffix = "document.body.";}};

   wegX = suffix+'scrollLeft'; wegY = suffix+'scrollTop';

if(modusNeu==1) {suffix = 'document.documentElement.';
  }else{if(document.body){suffix = "document.body.";}};

   breitX = suffix.offsetWidth;
   hochY =  suffix.offsetHeight;
   
document.onmousemove = trackMouse;
document.body.onscroll=trackMouse; 

}};

function trackMouse(e) { 
var YY=0;

nachX = eval(eventX); nachY = eval(eventY);

if(LINEAL==1){
   YY = (modusNeu==1||modusNeu==5)? eval(wegY) + nachY:nachY;
   Linie.style.top = (YY-10) + "px";
  
breite=window.innerWidth?window.innerWidth-rRand:document.body.clientWidth-rRand;
  Linie.style.width=(breite-10)+"px";

  var YYY=(LINEAL==1)?406:404; // AB 352 oder 472 mit Hinweis von oben
                                  if(modusNeu==1 && LINEAL==1){YYY=YYY-13;};

 if(YY > YYY && mitLineal==1){Linie.style.visibility="visible";}else{Linie.style.visibility="hidden";}

 };

{if (nachX > 90 )
{wegXX=eval(wegX);  endX = nachX + wegXX - 60;}
else {endX = 40}};

{if (nachY > 55 )
{wegYY=eval(wegY);
if(modusNeu==2 || modusAlt==2 || OP) {wegYY=0;};

endY = nachY + wegYY - 10;}
else {endY = 45}};
if( endX != oldX || endY != oldY )
 {oldX = endX; oldY = endY;
  if( timerID != 0 )
  {window.clearInterval(timerID);
  timerID = 0;}
  else {
  x = eval(buttonX);
  x = parseInt(x);
  
  y = eval(buttonY);
  y = parseInt(y);
  dx = endX - x;
  dy = endY - y;
dist = Math.sqrt( dx*dx + dy*dy );
  dx = units * dx / dist;
  dy = units * dy / dist;
timerID = window.setInterval("startMoving()",1000);}
}
};

function startMoving() { 
window.clearInterval(timerID);
 timerID = window.setInterval ("moveButton()",40);
};

function moveButton() {
if( dist < units )
{window.clearInterval(timerID);
timerID = 0;	}
  else if(x > 0)
{  dist -= units;
  x += dx; y += dy;
if(modusNeu >=1){
  flyer.style.left = x + "px";
  flyer.style.top  = y + "px";
}else{
  eval( buttonX + "=" + x );
  eval( buttonY + "=" + y );}} 
};

function BrowserAktuell() {
   {if (DOM && MSIE4) {document.write ('Dies ist die Anzeige für den Internet Explorer!')}};
   {if (NS4) {document.write ('<p id="hl5b">Dies ist die modifizierte Anzeige für den Netscape Navigator 4!</p>')}};
   {if (DOM && !MSIE4) 
     {document.write ('Dies ist die Anzeige für den Netscape Navigator 6!')}};
   {if (!DOM) {if (!NS4)
    {document.write ('Browser wurde nicht identifiziert.<br>Dies ist die Anzeige für den Internet Explorer!');}}}
};


var L = LEER = " www.hermannslauf.de";
var H = " www.hermannslauf.de";
var S = " Eine weitere Seite von www.hermannslauf.de";
var A = " www.anmeldung.hermannslauf.de";
var W = " Wir unterstützen den Hermannslauf.";
var WOHIN = " Vorwärts blättern zur Hermannslauf-Seite: ";
var WOHER = " Zurück blättern zur Hermannslauf-Seite: ";


function farbW(feld,aktion) { var newColor, newbgColor;
 if (aktion == "d"||aktion == 1) {newColor = '#ffffff';newbgColor = '#0000ff';}
 if (aktion == "r"||aktion == 2) {newColor = '#000000';newbgColor = '#ffffff';}
 if (aktion == "u"||aktion == 3) {newColor = '#ffffff';newbgColor = '#ff0000';}
 if (aktion == "c"||aktion == 4) {newColor = '#ffffff';newbgColor = '#00ff00';}
 if (aktion == "f"||aktion == 5) {newColor = '#000000';newbgColor = 'yellow';}
 if (aktion ==  9) {feld=document.formular.Startnr; newColor = '#000000'; newbgColor = 'yellow';};
 if (aktion == 10) {feld=document.formular.Nachname; newColor = '#000000'; newbgColor = 'yellow';};

 feld.style.color = newColor;
 feld.style.backgroundColor = newbgColor;
};

var hljahr = "";
var jahreswahl = "";
var zeilenot = "";

function GovM(x) {
 var auswahl=document.hlmenue.elements;
 var x1 = (auswahl[x].options[auswahl[x].options.selectedIndex].value);

 if (x1 != "not" && auswahl[x].options.selectedIndex >=1) {
   if (x <= 2) {this.location.href = x1; document.hlmenue.reset(); 
   
 };
 
if (x == 3 || x == 4){
var xx = 0;
var anhang = "";
var seite = "";
var zeilenot = document.hlmenue.elements[4];
jahreswahl = document.hlmenue.elements[4];

if (x == 4) {xx=x-1;};
if (x == 3) {xx=x+1;};

var x2 = (auswahl[xx].options[auswahl[xx].options.selectedIndex].value);


if (x == 4) {hljahr = x2; anhang = x1;};
if (x == 3) {hljahr = x1; anhang = x2; goGrau();};

 wahlj=document.hlmenue.auswahl3.options.selectedIndex;
 wahls=document.hlmenue.auswahl4.options.selectedIndex;

if(wahls >=3 && wahlj <=2){wahlj=3; hljahr ="08";};

if(parent.hlrand){top.wahlj=wahlj; top.wahls=wahls;}

if(hljahr >= 06 && zeilenot.selectedIndex == 13){anhang = "ps1nw.htm";};
if((hljahr==99 || hljahr=="2k" || hljahr=="01" || hljahr=="02" ) && zeilenot.selectedIndex==12)
   {anhang = "tn01.htm";};

seite = "../"+hljahr+"/hl"+hljahr+anhang;
if(hljahr == "not" && anhang == "not"){seite = "../a/hlbildde.htm";};
if(zeilenot.selectedIndex == 15) {seite = anhang+hljahr;};

if(jahreswahl.options[jahreswahl.options.selectedIndex].style.color == "silver") 
  {alert("Diese Seite gibt es \nfür das gewählte Jahr nicht.");};

if(document.hlmenue.auswahl4.options.selectedIndex >= 3){

if(anhang != "not" && jahreswahl.options[jahreswahl.options.selectedIndex].style.color != "silver") 
  {this.location.href = seite;};
   }else{menueModus=4;};

}else{if(parent.hlrand){top.wahlj=0; top.wahls=0;}
};

 if(x1 != "not"){
   if (x == 5) 
      {if (x1 == "../a/hldb.htm"){this.location.href = x1; document.hlmenue.reset(); }
       else
      {neuesFenster = window.open("/hl-biblio/pdf/liste/"+x1+"el.pdf","pdf","locationbar=no,width=650,height=520,resizable=yes"); 
       document.hlmenue.reset(); neuesFenster.focus(); }}

   if (x == 6) {this.location.href = "../splitter/"+x1+"sp.htm"; document.hlmenue.reset(); }
     
   if (x == 7) {neuesFenster = window.open(x1,"tsve");
       document.hlmenue.reset(); neuesFenster.focus(); }
   }
  }else{
    document.hlmenue.reset(); document.hlmenue.elements[x].blur(); }


};

function goGrau() {
var opnot = document.hlmenue.elements[4].options;
hljahr = (document.hlmenue.elements[3].options[document.hlmenue.elements[3].options.selectedIndex].value);

if(hljahr == "not"){hljahr ="08";};

if(hljahr >= 01 && hljahr <= 04)
  {opnot[4].removeAttribute("disabled"); opnot[4].style.color = "green";} else 
  {opnot[4].setAttribute("disabled","disabled"); opnot[4].style.color = "silver";};
if(hljahr >= 04 && hljahr <= 20)
  {opnot[11].removeAttribute("disabled"); opnot[11].style.color = "green";} else 
  {opnot[11].setAttribute("disabled","disabled"); opnot[11].style.color = "silver";};
if(hljahr == 98)
  {opnot[12].setAttribute("disabled","disabled"); opnot[12].style.color = "silver";
   opnot[13].setAttribute("disabled","disabled"); opnot[13].style.color = "silver";} else 
  {opnot[12].removeAttribute("disabled"); opnot[12].style.color = "green";
   opnot[13].removeAttribute("disabled"); opnot[13].style.color = "green";};

};


function pdfFenster(xx) {

 pdfWindow = window.open(xx,"pdf","locationbar=no,resizable=yes,width=650,height=520,left=32,top=0");
 pdfWindow.focus();
};
 
 
function WelcherRand() {if (parent.frames) {

if(TEST == "test") {if (parent.frames[0].name != "testrand")
  {parent.frames[0].location.href = "../rand/testrand.htm"; parent.frames[0].name = "testrand";}}
   else
  {if (parent.frames[0].name != "hlrand")
  {parent.frames[0].location.href = "../rand/hlrand.htm"; parent.frames[0].name = "hlrand";}}
}};   


function setup() {
 eigenFrame();
 setupFly();
 show(L);
 HLWerbung();

 if(top != self){
    if (parent.frames[1].name != "menue") {Event_init();}};
};

function ns4hinweis() {
if (NS4 == 1){
 document.write('<table border="0" id="hl3" align="center"><tr><td id="hl3">');
 document.write('Hinweis für die Besucher, die immer noch mit dem Netscape-4-Browser<br />');
 document.write('unterwegs sind: Formatierung bei diesem Browser nicht ordentlich.<br />');
 document.write('Warum installieren Sie keinen aktuellen kostenlosen Browser ???');
 document.write('<br /></td></tr></table><br /><br />');
}};

function Anmeldestop(jahr) {
 document.write('<div style="height:80px; padding:20px 50px;"><div style="width:400px; border-width:6px; border-style:solid; border-color:red; margin:0 auto;">');
 document.write('<img name="ampel" src="../x/ampelrot.gif" align="left" hspace="10" vspace="5" width="33" height="49" alt="Ampel auf STOP">');
 document.write('<span id="hla"> Anmeldestop <span id="hlr">!!!</span></span>');
 document.write('<div style="display:block; width:330px; margin:-6px 2px 0 0; text-align:right;">');
 document.write(' . . .&#160; '+ jahr +' Teilnehmerhöchstgrenze erreicht.<br /></div></div></div>');
};

function Hinweisstop() {
 document.write('<div style="height:80px; padding-left:50px;"><div style="display:block; width:320px; border-width:6px; border-style:solid; border-color:red; margin:20px auto; padding:4px;">');
 document.write('<img name="ampel" src="../x/ampel.gif" align="left" style="padding-left:10px; padding-top:3px;" width="33" height="49" alt="Ampel auf GELB">');
 document.write('<span id="hla">&#160;Hinweis <span id="hlr"> !!!</span></span>');
 document.write('<div id="hl6" style="display:block; width:200px; margin-top:-10px; float:right; text-align:right;"> . . . Anmeldestop steht vor der Tür. &#160;<br /></div>');
 document.write('<img src="/hl2000/x/nix.gif" width="320" height="1"></div></div>');
};

function Ankuendigung() {
 document.write('<div><div style="display:block; width:400px; margin:10px auto; height:60px; border:6px solid green;"> ');
 document.write('<img src="/hl2000/x/bg42.gif" alt="" width="80" height="60" align="left">');
 document.write('<div id="hl2" style="padding:5px;">Online-Anmeldung möglich<br />seit 6. Dezember ( Nikolaus )</div></div></div>');
};

function Mitteilungen(Jahr,Art) {
if(Art=="stop"){Anmeldestop(Jahr);};
if(Art=="ank") {Ankuendigung(Jahr);};
if(Art=="hinweis") {Hinweisstop();};
};


var sponsoren = new Array (
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm",
  "../../verein/a/tsve.htm", 
  "../../verein/a/tsve.htm", 
  "../../verein/a/tsve.htm");

function HLWerbung() {var textwahl = 0; var advent=1259449200000; // 29.Nov.2009
//if(textwahl <= 5){textwahl = 5;}else{textwahl = 0;};

var jetzt=new Date();
var Zeit = jetzt.getTime();
var zaehler = 1;

 while (advent < Zeit && zaehler <= 4) 
       {advent=advent+604800000; zaehler++;};
 
 //var Zahl = Math.random() * 300; Zahl=Math.round(Zahl);
 
 if(window.document.werbung){

 window.document.werbung.style.backgroundPosition = "60px 90px";
 window.document.werbung.style.backgroundRepeat = "no-repeat";
 window.document.werbung.style.backgroundImage = "url(../x/sponsoren/logo370pt.png)";
 
 var aktiv = window.setTimeout("TSVElogo()", 500);

 document.links[0].href= sponsoren[zaehler];};
};

var XX=90;
function TSVElogo () {
  XX = XX - 1; 
  window.document.werbung.style.backgroundPosition = "60px " + XX + "px";
 if(XX <=-380) {XX=90};
 var aktiv = window.setTimeout("TSVElogo()", 30);
};


function Taste(A,B) {

var farbe=(B==1)? 'red': (B==2)? 'green':'yellow';
var hinweis=(B==1)? 'größere Schrift': (B==2)? 'L':'L';
A.style.backgroundColor=farbe;
if(parent.rechts){parent.rechts.focus();};
};


function newsFenster(hoehe,breite) {if(breite==0){breite=460;}; if(hoehe==0){hoehe=280;};
 var Fenster=window.open('',"NewsFenster","width="+breite+",height="+hoehe+",dependent=yes");
 Fenster.focus(); HinweisFenster=1;
};

function tastenHover() {

	var tasten = document.getElementsByTagName('input');
	for ( var i = 0; i < tasten.length; i++ ) {
		if ( 'taste'  != tasten[i].className && 
		     'tasteb' != tasten[i].className && 
		     'menue'  != tasten[i].className) {continue;}
		    if ( navigator.appName == 'Microsoft Internet Explorer' || 'Netscape') {
	        // but only for IE, other browsers are handled by :hover in css

			tasten[i].onmouseover = function() {
			    this.className += ' hover'; }
			tasten[i].onmouseout = function() {
			    this.className = this.className.replace(' hover','');}
}
			tasten[i].onmousedown = function() {
			    this.className += ' down';}
}};



function Schrift(ART,Z) {
 document.write('<div style="float:right; width:10px; margin-top:-34px; margin-right:20px;"><a href="javascript:setSchrift('+ART+',1);" style="padding:0px; width:10px;" onmouseover="show(\'Schriftgröße ändern\')" onmouseout="show(L);"'+
  '><img src="../x/lupe.gif" id="lupe" alt="größere Schrift" title="größere Schrift" style="border:2px solid black; width:15px; float:right; margin-right:8px; background-color:green;" '+
  ' onmouseover="Taste(this,1)" onmouseout="Taste(this,2)" onmousedown="Taste(this,3)" /></a></div>');
};


function setSchrift(ART,Z) {
 if(top && Z==2){schriftnr=top.schriftnr;}else
   {if(schriftnr<=4){schriftnr++;}else{schriftnr=1;}};

header =gross[schriftnr]+"px";
schrift=groesse[schriftnr]+"px";

 if(ART==4) {document.getElementById("dbabfrage").style.fontSize = schrift;};
 if(ART==3) {document.getElementById("pressetext").style.fontSize = schrift;};
 if(ART==2 || ART==21) {
    if(document.getElementById("titel")){document.getElementById("titel").style.fontSize = header;};
    document.getElementById("zoomText").style.fontSize = schrift;
    if(document.getElementById("textEnde")){document.getElementById("textEnde").style.fontSize = header;};
	     };
 if(ART==1 || ART==21) {if(document.getElementById("daten")){
    var zeile = document.getElementById("daten").getElementsByTagName("tr");
    for (var i = 0; i < zeile.length; i++) {zeile[i].style.fontSize = schrift; }}};
 
 if(top.schriftnr){top.schriftnr = schriftnr;};
};


function mitLinie(X){
   Linie = document.getElementById('hLinie');
if(Linie){
   if(X==1){Linie.style.visibility="visible"; LINEAL=1;}
   else {Linie.style.visibility="hidden"; LINEAL=0;}}
};


function setFramesetCols (cols) {
  if (document.all || document.getElementById) { // DOM support
    document.body.cols = cols;
    document.body.rows = '';
}};

// Stand: 15.08.2010 Hans-Joachim Pech
