$(document).ready(function(){

        $(".accordion h3:first").addClass("active");
        $(".accordion p:not(:first)").hide();

        $(".accordion h3").click(function(){
                $(this).next("p").slideToggle("slow")
                .siblings("p:visible").slideUp("slow");;
                $(this).toggleClass("active");
                $(this).siblings("h3").removeClass("active");
        });

});

$(document).ready(function(){

        $(".thumbs1 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen1").attr({ src: largePath });

                return false;
        });

});

$(document).ready(function(){

        $(".thumbs2 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen2").attr({ src: largePath });

                return false;
        });

});

$(document).ready(function(){

        $(".thumbshochkant3 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen3").attr({ src: largePath });

                return false;
        });

});

$(document).ready(function(){

        $(".thumbshochkant4 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen4").attr({ src: largePath });

                return false;
        });

});

$(document).ready(function(){

        $(".thumbshochkant5 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen5").attr({ src: largePath });

                return false;
        });

});

$(document).ready(function(){

        $(".thumbshochkant6 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen6").attr({ src: largePath });

                return false;
        });

});

$(document).ready(function(){

        $(".thumbs7 img").mouseover(function(){

                var largePath = $(this).attr("id");

                $("#screen7").attr({ src: largePath });

                return false;
        });

});

    function chkForm()
  {
   if(document.Formular.reply_to.value == "")
    {
     alert("Für eine Antwort benötigen wir Ihre Mailadresse.");
     document.Formular.reply_to.focus();
     return false;
    }
       if(document.Formular.name.value == "")
    {
     alert("Für eine Antwort benötigen wir Ihren Namen.");
     document.Formular.reply_to.focus();
     return false;
    }
      if(document.Formular.message.value == "")
    {
     alert("Bitte füllen Sie das Nachrichtenfeld aus.");
     document.Formular.reply_to.focus();
     return false;
    }
    if(document.Formular.reply_to.value.indexOf('@') == -1)
    {
     alert("Ihre Mailadresse enthält kein @-Zeichen.");
     document.Formular.reply_to.focus();
     return false;
    }

    alert('Vielen Dank für Ihre E-Mail. Wir werden uns umgehend mit Ihnen in Verbindung setzen.')

  }

function highlight1()
{
document.getElementById("highlight1").style.background = 'url(images/viel_back.png)';
document.getElementById("highlight2").style.background = 'none';
document.getElementById("highlight3").style.background = 'none';
document.getElementById("highlight4").style.background = 'none';
}

function highlight2()
{
document.getElementById("highlight2").style.background = 'url(images/viel_back.png)';
document.getElementById("highlight1").style.background = 'none';
document.getElementById("highlight3").style.background = 'none';
document.getElementById("highlight4").style.background = 'none';
}

function highlight3()
{
document.getElementById("highlight3").style.background = 'url(images/viel_back.png)';
document.getElementById("highlight1").style.background = 'none';
document.getElementById("highlight2").style.background = 'none';
document.getElementById("highlight4").style.background = 'none';
}

function highlight4()
{
document.getElementById("highlight4").style.background = 'url(images/viel_back.png)';
document.getElementById("highlight1").style.background = 'none';
document.getElementById("highlight2").style.background = 'none';
document.getElementById("highlight3").style.background = 'none';
}


function clearhighlight()
{
document.getElementById("highlight1").style.background = 'none';
document.getElementById("highlight2").style.background = 'none';
document.getElementById("highlight3").style.background = 'none';
document.getElementById("highlight4").style.background = 'none';
}

function kunst1()
{
$('#kunst2').fadeOut(10, function() {
             $('#kunst1').fadeIn(10);
           });

}

function kunst2()
{
$('#kunst1').fadeOut(10, function() {
             $('#kunst2').fadeIn(10);
           });

}

function on()
{
    document.getElementById("shadow").style.visibility = 'visible';
    $("#shadow").css("height", $(document).height()).show();
    document.getElementById("impressum").style.visibility = 'visible';
    document.getElementById("close").style.visibility = 'visible';
}

function off()
{
    $("#shadow").css("height", $(document).height()).hide();
    document.getElementById("impressum").style.visibility = 'hidden';
    document.getElementById("close").style.visibility = 'hidden';
}

function scrollmail()
{
 $(document).scrollTo('100%', 850);
 }

function scrollmail2()
{
 $(document).scrollTo('1%', 550);
 }

 function safari1()
{
 $(".scroll").scrollTo("#leitmotiv", 850);
 }

 function safari2()
{
 $(".scroll").scrollTo("#vielfalt", 850);
 }

  function safari3()
{
 $(".scroll").scrollTo("#personal", 850);
 }

  function safari4()
{
 $(".scroll").scrollTo("#teamwork", 850);
 }

  function safari5()
{
 $(".scroll").scrollTo("#referenzen", 850);
 }

  function safari6()
{
 $(".scroll").scrollTo("#kontakt", 850);
 }

  function safari7()
{
 $(".scroll").scrollTo("#start", 850);
 }

   function safari8()
{
 $(".scroll").scrollTo("#sebastian", 850);
 }

   function safari9()
{
 $(".scroll").scrollTo("#christian", 850);
 }
