function Aufloesung(height, width){

  if (width == 1024 && height == 768) {
    document.write('<style type="text/css"> body { background-image: url(1024.jpg); } < </style>');
  }
  else {
    if (width == 1280 && height == 1024) {
      document.write('<style type="text/css"> body { background-image: url(1280.jpg); } < </style>');
    }
    else {
      if (width == 1280 && height == 800) {
        document.write('<style type="text/css"> body { background-image: url(1280.jpg); } < </style>');
      }
      else {
        if (width == 1440 && height == 900) {
          document.write('<style type="text/css"> body { background-image: url(1600.jpg); } < </style>');
        }
        else {
          if (width == 1680 && height == 1050) {
            document.write('<style type="text/css"> body { background-image: url(1600.jpg); } < </style>');
          }
          else {
            if (width == 1152 && height == 864) {
              document.write('<style type="text/css"> body { background-image: url(1280.jpg); } < </style>');
            }
            else {
              if (width == 1280 && height == 768) {
                document.write('<style type="text/css"> body { background-image: url(1280.jpg); } < </style>');
                  }
                  else {
                    if (width == 1400 && height == 1050) {
                      document.write('<style type="text/css"> body { background-image: url(1600.jpg); } < </style>');
                    }
                    else {
                      if (width == 1600 && height == 1200) {
                        document.write('<style type="text/css"> body { background-image: url(1600.jpg); } < </style>');
                      }
                      else {
                        if (width == 819 && height == 614) {
                          document.write('<style type="text/css"> body { background-image: url(1024.jpg); } < </style>');
                        }
                        else {
                          if (width == 1360 && height == 768) {
                            document.write('<style type="text/css"> body { background-image: url(1280.jpg); } < </style>');
                          }
                          else {
                            if (width == 1280 && height == 720) {
                              document.write('<style type="text/css"> body { background-image: url(1280.jpg); } < </style>');
                            }
                              else {
                                document.write('<style type="text/css"> body { background-image: url(1600.jpg); } < </style>'); // Wenn keine Auflösung passt
                              }  
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    
  }

}



Aufloesung(screen.height, screen.width);