function $(id) {
    return document.getElementById(id);
}

window.onload = function() {
    $('link1').onclick = function() {
       getHttpRequest();
       return false;
    }
    $('link2').onclick = function() {
       getHttpRequest2();
       return false;
    }
    $('link3').onclick = function() {
       getHttpRequest3();
       return false;
    }
    $('link4').onclick = function() {
       getHttpRequest4();
       return false;
    }
    $('link5').onclick = function() {
       getHttpRequest5();
       return false;
    }
    $('link6').onclick = function() {
       getHttpRequest6();
       return false;
    }
    $('link7').onclick = function() {
       getHttpRequest7();
       return false;
    }
    $('link8').onclick = function() {
       getHttpRequest8();
       return false;
    }
    $('link9').onclick = function() {
       getHttpRequest9();
       return false;
    }
    $('link10').onclick = function() {
       getHttpRequest10();
       return false;
    }
    $('link11').onclick = function() {
       getHttpRequest11();
       return false;
    }
}

function getHttpRequest() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'sonntag.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
}

function getHttpRequest2() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'montag.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest3() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'dienstag.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest4() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'mittwoch.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest5() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'donnerstag.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest6() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'freitag.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest7() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'samstag.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest8() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'gallerie.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
}
function getHttpRequest9() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'links.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest10() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'impressum.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
} 

function getHttpRequest11() {
   
    var xmlhttp = null;
    // Mozilla
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
   
    xmlhttp.open("GET", 'ueberuns.html', true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState != 4) {
            $('fenster').innerHTML = 'Seite wird geladen ...';
        }
        if(xmlhttp.readyState == 4) {
            $('fenster').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    
}

	Normal0 = new Image();
	Normal0.src = "button0.gif";
        Highlight0 = new Image();
        Highlight0.src = "button0h.gif";
        Normal1 = new Image();
        Normal1.src = "button1.gif";
        Highlight1 = new Image();
        Highlight1.src = "button1h.gif";
        Normal2 = new Image();
        Normal2.src = "button2.gif";
        Highlight2 = new Image();
        Highlight2.src = "button2h.gif";
        Normal3 = new Image();
        Normal3.src = "button3.gif";
        Highlight3 = new Image();
        Highlight3.src = "button3h.gif";
        Normal4 = new Image();
        Normal4.src = "button4.gif";
        Highlight4 = new Image();
        Highlight4.src = "button4h.gif";
        Normal5 = new Image();
        Normal5.src = "button5.gif";
        Highlight5 = new Image();
        Highlight5.src = "button5h.gif";
        Normal6 = new Image();
        Normal6.src = "button6.gif";
        Highlight6 = new Image();
        Highlight6.src = "button6h.gif";
        Normal7 = new Image();
        Normal7.src = "button7.gif";
        Highlight7 = new Image();
        Highlight7.src = "button7h.gif";
        
        Normal8 = new Image();
        Normal8.src = "buttonseite1.gif";
        Highlight8 = new Image();
        Highlight8.src = "buttonseite1h.gif";
        
        Normal9 = new Image();
        Normal9.src = "buttonseite2.gif";
        Highlight9 = new Image();
        Highlight9.src = "buttonseite2h.gif";
        Normal10 = new Image();
        Normal10.src = "dumb.gif";
        Highlight10 = new Image();
        Highlight10.src = "ausklapp1.jpg";
        Normal11 = new Image();
        Normal11.src = "buttonseite3.gif";
        Highlight11 = new Image();
        Highlight11.src = "buttonseite3h.gif";
        Normal12 = new Image();
        Normal12.src = "buttonseite4.gif";
        Highlight12 = new Image();
        Highlight12.src = "buttonseite4h.gif";
        Normal13 = new Image();
        Normal13.src = "dumb.gif";
        Highlight13 = new Image();
        Highlight13.src = "ausklapp2.jpg";
        Normal14 = new Image();
        Normal14.src = "dumb.gif";
        Highlight14 = new Image();
        Highlight14.src = "ausklapp3.jpg";
        Normal15 = new Image();
        Normal15.src = "dumb.gif";
        Highlight15 = new Image();
        Highlight15.src = "ausklapp4.jpg";
        

        Banner = new Image();
        Banner.src ="stylishteil.jpg";
        Banner2 = new Image();
        Banner2.src = "stylishteil2.jpg";
        
     
      
        function Bildwechsel (Bildnr, Bildobjekt) {
        window.document.images[Bildnr].src = Bildobjekt.src;
        }  
