var Link1, Link2, Link3, Link4, Link5, Link6, Link7, Link8;
var Geschw = 0.35;
var X = 440, Y = 275;
var Radiusx = 250, Radiusy = 105;
var Link1Grad = 360;
var Link2Grad = 315;
var Link3Grad = 270;
var Link4Grad = 225;
var Link5Grad = 180;
var Link6Grad = 135;
var Link7Grad = 90;
var Link8Grad = 45;

function halt() {
    Geschw = 0;
}

function weiter() {
    Geschw = 0.35;
}

function Init () {  
  Link1 = document.getElementById("Link1");
  Link1.style.position = "absolute";
  Link2 = document.getElementById("Link2");
  Link2.style.position = "absolute";
  Link3 = document.getElementById("Link3");
  Link3.style.position = "absolute";
  Link4 = document.getElementById("Link4");
  Link4.style.position = "absolute";
  Link5 = document.getElementById("Link5");
  Link5.style.position = "absolute";
  Link6 = document.getElementById("Link6");
  Link6.style.position = "absolute";
  Link7 = document.getElementById("Link7");
  Link7.style.position = "absolute";
  Link8 = document.getElementById("Link8");
  Link8.style.position = "absolute";
  Kreis();
}

function Kreis () {
    Link1Grad += Geschw;
    Link2Grad += Geschw;
    Link3Grad += Geschw;
    Link4Grad += Geschw;
    Link5Grad += Geschw;
    Link6Grad += Geschw;
    Link7Grad += Geschw;
    Link8Grad += Geschw;
    
    if (Link1Grad > 359.9)  
    Link1Grad = 0;
    if (Link1Grad > 70) 
    this.Link1.style.zIndex="1";
    if (Link1Grad > 108) 
    this.Link1.style.zIndex="2";
    if (Link1Grad > 250)
    this.Link1.style.zIndex="1";
    if (Link1Grad > 290)
    this.Link1.style.zIndex="0";

    if (Link2Grad > 359.9)
    Link2Grad = 0;
    if (Link2Grad > 70)
    this.Link2.style.zIndex="1";
    if (Link2Grad > 108)
    this.Link2.style.zIndex="2";
    if (Link2Grad > 250)
    this.Link2.style.zIndex="1";
    if (Link2Grad > 290)
    this.Link2.style.zIndex="0";

    if (Link3Grad > 359.9)
    Link3Grad = 0;
    if (Link3Grad > 70)
    this.Link3.style.zIndex="1";
    if (Link3Grad > 108)
    this.Link3.style.zIndex="2";
    if (Link3Grad > 250)
    this.Link3.style.zIndex="1";
    if (Link3Grad > 290)
    this.Link3.style.zIndex="0";

    if (Link4Grad > 359.9)
    Link4Grad = 0;
    if (Link4Grad > 70)
    this.Link4.style.zIndex="1";
    if (Link4Grad > 108)
    this.Link4.style.zIndex="2";
    if (Link4Grad > 250)
    this.Link4.style.zIndex="1";
    if (Link4Grad > 290)
    this.Link4.style.zIndex="0";

    if (Link5Grad > 359.9)
    Link5Grad = 0;
    if (Link5Grad > 70)
    this.Link5.style.zIndex="1";
    if (Link5Grad > 108)
    this.Link5.style.zIndex="2";
    if (Link5Grad > 250)
    this.Link5.style.zIndex="1";
    if (Link5Grad > 290)
    this.Link5.style.zIndex="0";

    if (Link6Grad > 359.9)
    Link6Grad = 0;
    if (Link6Grad > 70)
    this.Link6.style.zIndex="1";
    if (Link6Grad > 108)
    this.Link6.style.zIndex="2";
    if (Link6Grad > 250)
    this.Link6.style.zIndex="1";
    if (Link6Grad > 290)
    this.Link6.style.zIndex="0";

    if (Link7Grad > 359.9)
    Link7Grad = 0;
    if (Link7Grad > 70)
    this.Link7.style.zIndex="1";
    if (Link7Grad > 108)
    this.Link7.style.zIndex="2";
    if (Link7Grad > 250)
    this.Link7.style.zIndex="1";
    if (Link7Grad > 290)
    this.Link7.style.zIndex="0";

    if (Link8Grad > 359.9)
    Link8Grad = 0;
    if (Link8Grad > 70)
    this.Link8.style.zIndex="1";
    if (Link8Grad > 108)
    this.Link8.style.zIndex="2";
    if (Link8Grad > 250)
    this.Link8.style.zIndex="1";
    if (Link8Grad > 290)
    this.Link8.style.zIndex="0";

    Link1.style.top = Math.round(Y - (Radiusy * Math.cos(Link1Grad/(180/Math.PI)))) + "px";
    Link1.style.left = Math.round(X + (Radiusx * Math.sin(Link1Grad/(180/Math.PI)))) + "px";
    Link2.style.top = Math.round(Y - (Radiusy * Math.cos(Link2Grad/(180/Math.PI)))) + "px";
    Link2.style.left = Math.round(X + (Radiusx * Math.sin(Link2Grad/(180/Math.PI)))) + "px";
    Link3.style.top = Math.round(Y - (Radiusy * Math.cos(Link3Grad/(180/Math.PI)))) + "px";
    Link3.style.left = Math.round(X + (Radiusx * Math.sin(Link3Grad/(180/Math.PI)))) + "px";
    Link4.style.top = Math.round(Y - (Radiusy * Math.cos(Link4Grad/(180/Math.PI)))) + "px";
    Link4.style.left = Math.round(X + (Radiusx * Math.sin(Link4Grad/(180/Math.PI)))) + "px";
    Link5.style.top = Math.round(Y - (Radiusy * Math.cos(Link5Grad/(180/Math.PI)))) + "px";
    Link5.style.left = Math.round(X + (Radiusx * Math.sin(Link5Grad/(180/Math.PI)))) + "px";
    Link6.style.top = Math.round(Y - (Radiusy * Math.cos(Link6Grad/(180/Math.PI)))) + "px";
    Link6.style.left = Math.round(X + (Radiusx * Math.sin(Link6Grad/(180/Math.PI)))) + "px";
    Link7.style.top = Math.round(Y - (Radiusy * Math.cos(Link7Grad/(180/Math.PI)))) + "px";
    Link7.style.left = Math.round(X + (Radiusx * Math.sin(Link7Grad/(180/Math.PI)))) + "px";
    Link8.style.top = Math.round(Y - (Radiusy * Math.cos(Link8Grad/(180/Math.PI)))) + "px";
    Link8.style.left = Math.round(X + (Radiusx * Math.sin(Link8Grad/(180/Math.PI)))) + "px";
    document.getElementById("Link1").style.visibility = "visible";
    document.getElementById("Link2").style.visibility = "visible";
    document.getElementById("Link3").style.visibility = "visible";
    document.getElementById("Link4").style.visibility = "visible";
    document.getElementById("Link5").style.visibility = "visible";
    document.getElementById("Link6").style.visibility = "visible";
    document.getElementById("Link7").style.visibility = "visible";
    document.getElementById("Link8").style.visibility = "visible";
    window.setTimeout("Kreis()", 0.2 );
}
function verweis(ziel) {
    switch(ziel) {
    case 1:
    location.href="http://www.lsz-nssv.de/LSZ/Willkommen/Willkommen.html";
    break;
    case 2:
    location.href="http://www.kssvneustadt.de/";
    break;
    case 3:
    location.href="privat/fotoshow/html/fotoshow.html";
    break;
    case 4:
    location.href="http://www.nssv-hannover.de/";
    break;
    case 5:
    location.href="#Test";
    break;
    case 6:
    location.href="privat/kochen/html/kochen.html";
    break;
    case 7:
    location.href="privat/Gedichte/html/gedichte.html";
    break;
    case 8:
    location.href="privat/impressum/impressum.html";
    break;
default:
    location.href="#Test";
break;}}
