    var buttonflag=-1;

    B1 = new Image(); 
    B1.src = "buttons/intro/home1.jpg"; 
    HB1 = new Image(); 
    HB1.src = "buttons/intro/home2.jpg"; 

    B2 = new Image(); 
    B2.src = "buttons/intro/ueber1.jpg"; 
    HB2 = new Image(); 
    HB2.src = "buttons/intro/ueber2.jpg"; 

    B3 = new Image(); 
    B3.src = "buttons/intro/agb1.jpg"; 
    HB3 = new Image(); 
    HB3.src = "buttons/intro/agb2.jpg"; 

    B4 = new Image(); 
    B4.src = "buttons/intro/kontakt1.jpg"; 
    HB4 = new Image(); 
    HB4.src = "buttons/intro/kontakt2.jpg"; 

    B5 = new Image(); 
    B5.src = "buttons/intro/galerie1.jpg"; 
    HB5 = new Image(); 
    HB5.src = "buttons/intro/galerie2.jpg"; 

    B6 = new Image(); 
    B6.src = "buttons/intro/impress1.jpg"; 
    HB6 = new Image(); 
    HB6.src = "buttons/intro/impress2.jpg"; 


    function setsrc(buttonnr)
    {
     buttonflag = buttonnr;
     switch (buttonnr)
     {
      case 1:

        window.document.Button1.src = HB1.src;
        window.document.Button2.src = B2.src;
        window.document.Button3.src = B3.src;
        window.document.Button4.src = B4.src;
        window.document.Button5.src = B5.src;
        window.document.Button6.src = B6.src;
       break;
      case 2:
        window.document.Button1.src = B1.src;
        window.document.Button2.src = HB2.src;
        window.document.Button3.src = B3.src;
        window.document.Button4.src = B4.src;
        window.document.Button5.src = B5.src;
        window.document.Button6.src = B6.src;
       break;
      case 3:
        window.document.Button1.src = B1.src;
        window.document.Button2.src = B2.src;
        window.document.Button3.src = HB3.src;
        window.document.Button4.src = B4.src;
        window.document.Button5.src = B5.src;
        window.document.Button6.src = B6.src;
       break;
      case 4:
        window.document.Button1.src = B1.src;
        window.document.Button2.src = B2.src;
        window.document.Button3.src = B3.src;
        window.document.Button4.src = HB4.src;
        window.document.Button5.src = B5.src;
        window.document.Button6.src = B6.src;
       break;
      case 5:
        window.document.Button1.src = B1.src;
        window.document.Button2.src = B2.src;
        window.document.Button3.src = B3.src;
        window.document.Button4.src = B4.src;
        window.document.Button5.src = HB5.src;
        window.document.Button6.src = B6.src;
       break;
      case 6:
        window.document.Button1.src = B1.src;
        window.document.Button2.src = B2.src;
        window.document.Button3.src = B3.src;
        window.document.Button4.src = B4.src;
        window.document.Button5.src = H5.src;
        window.document.Button6.src = HB6.src;
       break;

     }
    }


    function setfocus(buttonnr)
    {

     switch (buttonnr)
     {
      case 1:

        window.document.Button1.src = HB1.src;
       break;
      case 2:
        window.document.Button2.src = HB2.src;
       break;
      case 3:
        window.document.Button3.src = HB3.src;
       break;
     case 4:
        window.document.Button4.src = HB4.src;
       break;
     case 5:
        window.document.Button5.src = HB5.src;
       break;
     case 6:
        window.document.Button6.src = HB6.src;
       break;
     }

    }

 function dropfocus(buttonnr)
    {
     switch (buttonnr)
     {
      case 1:

        window.document.Button1.src = B1.src;
       break;
      case 2:
        window.document.Button2.src = B2.src;
       break;
      case 3:
        window.document.Button3.src = B3.src;
       break;
      case 4:
        window.document.Button4.src = B4.src;
       break;
      case 5:
        window.document.Button5.src = B5.src;
       break;
      case 6:
        window.document.Button6.src = B6.src;
       break;
     }
    }


function positionieren()
{
  var breite;
  var hoehe;
  var ButtonAnzahl=6;

  if (document.all)
  {
     breite=document.all.body.offsetWidth;
     if (breite>700)
     {
       document.all.lws.style.left = breite-320;
       
     } 
  }
  else
  {
    breite = window.innerWidth;
    if (breite>700)
    {
       document.lws.left = breite - 320;

    }
  }
}

function check_css()
{
  var checkflag;

  if(document.all)
  {
    if (document.all["hb1"].style)
      checkflag=1;
    else
       checkflag=0;
  }
  else
  {
   if(document.hb1)   
      checkflag=1;
   else 
      checkflag=0;
  }
  return checkflag;
}



