
$(document).ready(function(){
   $("#navpos1").hide(); 
   $("#navpos2").hide(); 
   $("#navpos3").hide(); 
   $("#navpos4").hide(); 
   $("#navpos5").hide(); 
   
   
   $("#mapnavpos1").mouseover(function() { $("#navpos1").show(500); });
   $("#mapnavpos2").mouseover(function() { $("#navpos2").show(500); });
   $("#mapnavpos3").mouseover(function() { $("#navpos3").show(500); });
   $("#mapnavpos4").mouseover(function() { $("#navpos4").show(500); });
   $("#mapnavpos5").mouseover(function() { $("#navpos5").show(500); });

   //$("#mapnavpos1").mouseleave(function(){ $("#navpos1").stop(true, true).hide(); });
  
   
   $("#links2").hide(); 
   $("#links3").hide(); 
   $("#links4").hide(); 
   $("#links5").hide(); 
   
   $("#ddm2").mouseover(function() { $("#links3").stop(true, true).hide();
                                     $("#links4").stop(true, true).hide();
                                     $("#links5").stop(true, true).hide();$("#links2").show(700); });
   $("#ddm2").mouseleave(function(){ $("#links2").stop(true, true).hide(); });
   
   $("#ddm3").mouseover(function() { $("#links2").stop(true, true).hide();
                                     $("#links4").stop(true, true).hide();
                                     $("#links5").stop(true, true).hide();$("#links3").show(700); });
   $("#ddm3").mouseleave(function(){ $("#links3").stop(true, true).hide(); });
   
   $("#ddm4").mouseover(function() { $("#links2").stop(true, true).hide();
                                     $("#links3").stop(true, true).hide();
                                     $("#links5").stop(true, true).hide();$("#links4").show(700); });
   $("#ddm4").mouseleave(function(){ $("#links4").stop(true, true).hide(); });

   $("#ddm5").mouseover(function() { $("#links2").stop(true, true).hide();
                                     $("#links3").stop(true, true).hide();
                                     $("#links4").stop(true, true).hide();$("#links5").show(700); });
   $("#ddm5").mouseleave(function(){ $("#links5").stop(true, true).hide(); });
   
   
   
  // function handleSliderChange(e, ui) {
  //   //var maxScroll = $("#content-scroll").attr('scrollWidth') - $("#content-scroll").width();
  //   var maxScroll = $("#content-scroll").attr('scrollHeight') - $("#content-scroll").height();
  //   //$("#content-scroll").animate({scrollLeft: ui.value * (maxScroll / 100) }, 1000);
  //   var sT = Math.abs(ui.value);
  //   $("#content-scroll").animate({scrollTop:sT * (maxScroll / 100) }, 1000);
  // }
  // 
  // function handleSliderSlide(e, ui)
  // {
  //   //var maxScroll = $("#content-scroll").attr("scrollWidth") - $("#content-scroll").width();
  //   var maxScroll = $("#content-scroll").attr("scrollHeight") - $("#content-scroll").height();
  //   var sT = Math.abs(ui.value);
  //   $("#content-scroll").attr({scrollLeft: sT * (maxScroll / 100) });
  // }
  //    
  // 
  //$("#content-slider").slider({
  //  animate: true,
  //  orientation:"vertical",
  //  min:-100,
  //  max:0,
  //  change: handleSliderChange,
  //  slide: handleSliderSlide
  //});   
   
});

var timeoffset = 50;
var ypos=590;
var xpos=220;
var xoffset=1;
var yoffset=1;

window.setTimeout("fliegerpos()", 2000);
window.setTimeout("startshowall()", 8000);

function startshowall() {
   $("#navpos1").show(1500);
   $("#navpos2").show(1500);
   $("#navpos3").show(1500);
   $("#navpos4").show(1500);
   $("#navpos5").show(1500);
}

function fliegerpos() {
    //document.getElementById('flieger').style.top = '540px';
    xpos=xpos+((xoffset/8) *(xoffset/8));
    xoffset++;
    ypos=ypos-((yoffset/16)*(yoffset/16));
    yoffset++;
    
    $("#flieger").attr('style','position:absolute;top:'+ypos+'px;left:'+xpos+'px;');
    if(xpos < 1500 && ypos < 1000 && xpos>0 && ypos>0)
        window.setTimeout("fliegerpos()", timeoffset);
    else
        $("#flieger").attr('style','position:absolute;top:650px;left:710px;');

}


