MenuWidth=110;           
MenuFont='Arial,Verdana';
MenuFontSize=2;           
MenuFontColor='#333399';
MenuBgColor='#cce2e2';
HighLight='#ccffff';
Separater=2;
Topoff=92;
Centre=true;
Test='#ff0000';



n4=(document.layers);
n6=(document.getElementById&&!document.all);
ie=(document.all);
h=(ie)?document.body.clientHeight:window.innerHeight;
w=(ie)?document.body.clientWidth:window.innerWidth;

algn1=(Centre)?'<center>':'';
algn2=(Centre)?'</center>':'';

function colour2(c){(n4)?c.bgColor=HighLight:c.style.background=HighLight}//
function colour1(c){(n4)?c.bgColor=MenuBgColor:c.style.background=MenuBgColor}//

var OLy=(n4)?"<br><layer height=100% width=100% onMouseOver='colour2(this)'; onMouseOut='colour1(this)'>"+algn1:"<div style='height:auto;width:100%' onMouseOver='colour2(this)'; onMouseOut='colour1(this)'><font face="+MenuFont+" size="+MenuFontSize+" color="+MenuFontColor+">";
var CLy=(n4)?algn2+"</layer>":"</font></div>";

var vs=(n4)?"<font face='Wingdings' color="+MenuBgColor+">n</font>":OLy+"&nbsp;"+CLy+"<font color="+MenuBgColor+">"+String.fromCharCode(9660)+"</font>";

Titles=new Array();
Links=new Array();


Titles[0]="PPL Ausbildung";
Titles[1]="UL Ausbildung";
Titles[2]="Scheininhaber";
Titles[3]="Rundflüge";
Titles[4]="Anreise";
Titles[5]="Flpl.Leutkirch";
Titles[6]="aktuelles";
Titles[7]="Kontakt";

OLy=OLy+"<a href='";
var Lyc="')' class='x'>";
CLy="</a>"+CLy;

Links[0]=vs
+OLy+"ausbildung_ppl.html"+Lyc+"Ausbildung"+CLy
+OLy+"pplallgemein.html"+Lyc+"Allgemeines"+CLy
+OLy+"pplvoraussetzungen.html"+Lyc+"Voraussetzung"+CLy
+OLy+"motorflug.html"+Lyc+"Motorflug"+CLy
+OLy+"motorsegler.html"+Lyc+"Motorsegler"+CLy
+OLy+"scheininhaberverlangerung.html"+Lyc+"Umschulungen"+CLy
+OLy+"anmeldung.html"+Lyc+"Anmeldung"+CLy
+OLy+"termine.html"+Lyc+"Termine"+CLy
+OLy+"sonstiges.html"+Lyc+"Sonstiges"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[1]=vs
+OLy+"ausbildung_ul.html"+Lyc+"Ausbildung"+CLy
+OLy+"ulallgemein.html"+Lyc+"Allgemeines"+CLy
+OLy+"ulvorausetzungen.html"+Lyc+"Voraussetzung"+CLy
+OLy+"ultraleicht.html"+Lyc+"Ultraleicht"+CLy
+OLy+"umschulungul.html"+Lyc+"Umschulungen"+CLy
+OLy+"anmeldung.html"+Lyc+"Anmeldung"+CLy
+OLy+"termine.html"+Lyc+"Termine"+CLy
+OLy+"sonstiges.html"+Lyc+"Sonstiges"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[2]=vs
+OLy+"scheininhabercharter.html"+Lyc+"Allgemein"+CLy
+OLy+"preis_charter.html"+Lyc+"Charter"+CLy
+OLy+"schein_verl_.html"+Lyc+"Scheinverlängerung"+CLy
+OLy+"scheininhaberalpen-nvfr.html"+Lyc+"Alpeneinweisung"+CLy
+OLy+"pa18.html"+Lyc+"PA18 / Spornrad"+CLy
+OLy+"cvfr.html"+Lyc+"CVFR"+CLy
+OLy+"nachtflug.html"+Lyc+"Nachtflug"+CLy
+OLy+"ratingsep.html"+Lyc+"Rating SEP"+CLy
+OLy+"ratingtmg.html"+Lyc+"Rating TMG"+CLy
+OLy+"scheininhaberverlangerung.html"+Lyc+"Umschulungen"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[3]=vs
+OLy+"rundfluge_neu.html"+Lyc+"Alpenrundflug"+CLy
+OLy+"kv_rund_1pers.html"+Lyc+"Preise 1 Pers."+CLy
+OLy+"kv_rund_2pers.html"+Lyc+"Preise 2 / 3 Pers."+CLy
+OLy+"gutschein.html"+Lyc+"Gutscheine"+CLy
+OLy+"faqs.html"+Lyc+"FAQ-Antworten"+CLy
+OLy+"bestellform.php"+Lyc+"Bestellung"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[4]=vs
+OLy+"der_flugplatz_kempten.html"+Lyc+"Flugplatz"+CLy
+OLy+"anflug.html"+Lyc+"Anflug"+CLy
+OLy+"anreise.html"+Lyc+"Anfahrt"+CLy
+OLy+"icao_karte.html"+Lyc+"Platzrunde"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[5]=vs
+OLy+"leutkirch.html"+Lyc+"Aussenstelle"+CLy
+OLy+"ltk_ausbildung.html"+Lyc+"Ausbildung"+CLy
+OLy+"ltk_rundflug.html"+Lyc+"Rundflüge"+CLy
+OLy+"ednl_charter.html"+Lyc+"Charter"+CLy
+OLy+"scheininhaberverlangerung.html"+Lyc+"Umschulungen"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[6]=vs
+OLy+"info.html"+Lyc+"aktuelle Info"+CLy
+OLy+"wetter.html"+Lyc+"Wetter"+CLy
+OLy+"meteogramm.html"+Lyc+"Meteogramm"+CLy
+OLy+"termine.html"+Lyc+"Termine"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;

Links[7]=vs
+OLy+"impressum.html"+Lyc+"Impressum"+CLy
+OLy+"sonstiges.html"+Lyc+"Sonstiges"+CLy
+OLy+"javascript:void(\"\")' class='x'>&nbsp;"+CLy;


w1=(MenuWidth+Separater)*Titles.length;
w2=w/2;
i1=w2-MenuWidth-Separater-w1/2;
i2=w2-MenuWidth-Separater-w1/2;
s1=MenuWidth+Separater;
s2=MenuWidth+Separater;
if (w1 > w2*2){i1=-MenuWidth;i2=-MenuWidth}
vy=(n4)?'show':'visible';
vn=(n4)?'hide':'hidden';


if (n4){
for (i=0; i < Titles.length; i++){
document.write("<layer name='lnks"+i+"' top=0 left="+(i2+=s2)+" "
+" width="+MenuWidth+" bgcolor="+HighLight+" visibility=hide"
+" onMouseOver='this.visibility=vy; var cd=this.id.length-1; var ab=this.id.charAt(cd); H(ab)' "
+" onMouseOut='this.visibility=vn; var ef=this.id.length-1; var gh=this.id.charAt(ef); B(gh)'>"
+algn1+"<font face="+MenuFont+" size="+MenuFontSize+">"
+"&nbsp;<br>"+Links[i]+"</font>"+algn2+"</layer>");
document.write("<layer name='ttls"+i+"' top=0 left="+(i1+=s1)+" height=0 " 
+"width="+MenuWidth+" bgcolor="+MenuBgColor+" "
+"onMouseOver=\"this.bgColor=HighLight; var e=this.id.length-1; var d=this.id.charAt(e); On(d)\" "
+"onMouseOut=\"this.bgColor=MenuBgColor; var e=this.id.length-1; var d=this.id.charAt(e); Off(d)\">"
+algn1+"<font face="+MenuFont+" size="+MenuFontSize+" color="+MenuFontColor+">"
+Titles[i]+"</font>"+algn2+"</layer>");                                       
}
function On(x){for (i=0; i < Titles.length; i++)document.layers['lnks'+x].visibility=vy}
function Off(x){for (i=0; i < Titles.length; i++)document.layers['lnks'+x].visibility=vn}
function B(y){for (i=0; i < Titles.length; i++)document.layers['ttls'+y].bgColor=MenuBgColor}
function H(y){for (i=0; i < Titles.length; i++)document.layers['ttls'+y].bgColor=HighLight}
}
if (!n4){
for (i=0; i < Titles.length; i++){
document.write("<div id='lnks"+i+"' style='position:absolute; border-width:1px; border-style:solid;border-color:blue;"
+"top:0px;left:"+(i2+=s2)+"px;width:"+MenuWidth+"px;"
+"background:"+MenuBgColor+";visibility:hidden'" 
+" onMouseOver='this.style.visibility=vy; document.getElementById(\"ttls"+i+"\").style.background=MenuBgColor';"
+" onMouseOut='this.style.visibility=vn ; document.getElementById(\"ttls"+i+"\").style.background=MenuBgColor'>"
+algn1+Links[i]+algn2+"</div>");
document.write("<div id='ttls"+i+"' style='position:absolute; border-width:1px; border-style:solid;border-color:blue;top:0px;left:"+(i1+=s1)+"px;height:auto;width:"+MenuWidth+"px;"
+"background:"+MenuBgColor+";cursor:default'"
+" onMouseOver='document.getElementById(\"lnks"+i+"\").style.visibility=vy;this.style.background=HighLight;'" 
+" onMouseOut='document.getElementById(\"lnks"+i+"\").style.visibility=vn;this.style.background=MenuBgColor'>"
+algn1+"<font face="+MenuFont+" size="+MenuFontSize+" color="+MenuFontColor+">"+Titles[i]+"</font>"+algn2+"</div>");
}
}
function Scroll(){
sy=(ie)?document.body.scrollTop:window.pageYOffset;
for (i=0; i < Titles.length; i++){
if (n4){
 if (sy<=120){
  document.layers['ttls'+i].top=Separater+Topoff;
  document.layers['lnks'+i].top=Separater+Topoff;
  }
 else{
  document.layers['ttls'+i].top=Separater+sy;
  document.layers['lnks'+i].top=Separater+sy;
  }
 }
else{
 if (sy<=120){
  document.getElementById("ttls"+i).style.top=Separater+Topoff;
  document.getElementById("lnks"+i).style.top=Separater+Topoff;
  }
 else{
  document.getElementById("ttls"+i).style.top=Separater+sy;
  document.getElementById("lnks"+i).style.top=Separater+sy;
  }
 }
}
setTimeout('Scroll()',150)
}
Scroll();
window.onresize=new Function("window.location.reload()");


if (!n4){
for (i=0; i < document.links.length; i++){
 if (document.links[i].href == this.window.location.href)
  {
  document.links[i].style.color=Test;
  document.links[i].style.cursor='crosshair';
  //document.links[i].innerHTML+=' -';
  //alert(i+' '+document.links[i].href);
  break;
  }
 }
}
