function bildschirmaufloesung(id) {
  //Bildschirmauflösung feststellen  und Anpassungen durchführen
  //http://aktuell.de.selfhtml.org/artikel/javascript/aufloesungsweiche/
  var Faktor=0;

  if (navigator.userAgent.indexOf("Firefox") > 0){
       if (anzAudio_files==0)
         document.getElementById("profile_layout_03").style.clear="both";  //nur bei Audio akivieren
                                                                          //sonst Probleme mit Copyrighttext
       else
         document.getElementById("profile_layout_03").style.cssFloat="left"; //bei Audioanzeige für Copyrighttext notwendig
  }
 //  alert(anzAudio_files);
 
  if (Faktor==0){
    //Aufl="1280 X 800";      // bei Test auch im preload_media.js ändern
    //Aufl= "1024 X 768"
    //alert(screen.width+" benuetzbar: "+screen.availWidth);
    if (Aufl=="1280 X 1024"||screen.width>"1280"){ // 17" Bildschirm
       Faktor=100;
       
       document.getElementById("layout_03_menu").style.width="50.0em";
       document.getElementById("show_text").style.display="none";
       document.getElementById("misza_szatine").style.display="none";
       document.getElementById("catteries").style.display="none";
       
       document.getElementById("profile_layout_03").style.paddingTop="0.9em"; //Version, Copyright
       
       if (navigator.userAgent.indexOf("Firefox") > 0)
          document.getElementById("layout_03_menu").style.marginLeft="12.5em";
       
       //=========== Platzhalter für lademeldung =================
       document.getElementById("show_all").style.height="88%";
       document.getElementById("show_all").style.width="100%";
       // =========================================================

       document.getElementsByTagName("body")[0].style.width="100%";
       document.getElementsByTagName("body")[0].style.height="100%";

       if (datenbankLesenFehlerText!="")
           return;

       if (anzThu_bilder>0 && option[12] == "J"){  //option[12]=J Layout_03 für für THU-Steuerung  laden
          document.getElementById("show_top").style.height="100px";
          document.getElementById("show_text").style.overflow="hidden"; //wegen FF kein Scroll - ev. Probleme TEXT wird abgeschnitten
       }
       else
           document.getElementById("show_top").style.overflow="hidden";



       if (anzThu_bilder>0 && anzBig_bilder==0 && anzOrg_bilder==0 && projekttext==true){ //mit Text u. nur THU-Foto
          document.getElementById("show_media").style.display="none";
       }
       document.getElementById("show_media").style.width="100%";
       document.getElementById("show_media").style.height="100%";
       
       if (anzThu_bilder==0 && anzBig_bilder==0 && anzOrg_bilder==0){   //nur Texttausgabe
           document.getElementById("show_text").style.height="98.7%";
           document.getElementById("show_all").style.width="100%";
           document.getElementById("misza_szatine").style.display="block";
           document.getElementById("catteries").style.display="block";
       }

      // alert(document.body.clientWidth+" / "+document.body.clientHeight);
       //window.status="IE-BS 17\": 1280*1024; verfügbare Fläche:"+screen.availWidth+"*"+screen.availHeight;
       if (navigator.userAgent.indexOf("Firefox") > 0)
           //window.status="Firefox-BS: 1280 X 1024; verfügbare Fläche:"+screen.availWidth+"*"+screen.availHeight;
           window.status="Firefox-BS: 1280 X 1024; verfügbare Fläche:"+window.innerWidth+"*"+window.innerHeight;
       else //IE
          //window.status="IE-BS 17\": 1280*1024; verfügbare Fläche:"+screen.availWidth+"*"+screen.availHeight;
          window.status="IE-BS 17\": 1280*1024; verfügbare Fläche:"+document.body.offsetWidth+"*"+document.body.offsetHeight;
    }
    //=======================================================================
    //=======================================================================
    if (Aufl=="1280 X 800"){ // 17" Bildschirm
       Faktor=100;

       document.getElementById("layout_03_menu").style.width="50em";
       
       document.getElementById("layout_03_menu").style.marginTop="2px";
       document.getElementById("layout_03_menu").style.marginBottom="3px";


       document.getElementById("misza_szatine").style.width="175px";
       document.getElementById("misza_szatine").style.paddingTop="0.0em";

       document.getElementById("catteries").style.width="175px";
       document.getElementById("catteries").style.paddingTop="0.0em";

       if (navigator.userAgent.indexOf("Firefox") > 0)
          document.getElementById("layout_03_menu").style.marginLeft="11.5em";
       else
          document.getElementById("layout_03_menu").style.marginLeft="13.5em";
       
      //=========== Platzhalter für lademeldung =================

       document.getElementById("show_all").style.height="84%";
       document.getElementById("show_all").style.width="100%";
       // =========================================================

       document.getElementsByTagName("body")[0].style.width="100%";
       document.getElementsByTagName("body")[0].style.height="100%";

       document.getElementById("show_all").style.borderBottom="0px";

       if (datenbankLesenFehlerText!="")
           return;

       if (anzThu_bilder>0 && option[12] == "J"){  //option[12]=J Layout_03 für für THU-Steuerung  laden
          document.getElementById("misza_szatine").style.display="none";
          document.getElementById("catteries").style.display="none";
          document.getElementById("layout_03_menu").style.paddingTop="0.2em";
          document.getElementById("layout_03_menu").style.paddingBottom="0.5em";
          document.getElementById("show_all").style.height="84%";
          document.getElementById("show_top").style.height="90px";
          document.getElementById("show_text").style.overflow="hidden"; //wegen FF kein Scroll - ev. Probleme TEXT wird abgeschnitten
       }
       else {
           document.getElementById("show_top").style.overflow="hidden";
           document.getElementById("misza_szatine").style.display="block";
           document.getElementById("catteries").style.display="block";
           document.getElementById("profile_layout_03").style.paddingTop="0.6em"; //Version, Copyright
       }

        if (anzThu_bilder==0 && anzBig_bilder==0 && anzOrg_bilder==0 && projekttext==true){
           //nur Text
          document.getElementById("table_layout_03").style.width="92%";
          document.getElementById("table_layout_03").style.padding="0.2em";
          document.getElementById("show_text").style.height="98.7%";
          document.getElementById("show_all").style.width="100%";
       }

       document.getElementById("show_media").style.width="100%";  //Scroll-Layout vertikal
       document.getElementById("show_media").style.height="100%";
       
       if (navigator.userAgent.indexOf("Firefox") > 0)
             window.status="Firefox-BS: 1280 X 1024; verfügbare Fläche:"+window.innerWidth+"*"+window.innerHeight;
       else //IE
          window.status="IE-BS 17\": 1280*1024; verfügbare Fläche:"+document.body.offsetWidth+"*"+document.body.offsetHeight;
    }
    //=====================================================================
    //=====================================================================
    if (Aufl=="1024 X 768"||screen.width<"1000"){ // 15" Bildschirm
       Faktor=100;

       document.getElementById("layout_03_menu").style.width="50em";
       document.getElementById("layout_03_menu").style.margin="0.0em";
      
       document.getElementById("layout_03_menu").style.marginLeft="5.5em";
       
       document.getElementById("show_top").style.paddingTop="0.4em";

       document.getElementById("misza_szatine").style.width="145px";
       document.getElementById("misza_szatine").style.paddingTop="0.0em";

       document.getElementById("catteries").style.width="145px";
       document.getElementById("catteries").style.paddingTop="0.0em";

       //=========== Platzhalter für lademeldung =================
       document.getElementById("show_all").style.height="84%";
       document.getElementById("show_all").style.width="100%";
       // =========================================================

       document.getElementsByTagName("body")[0].style.width="100%";
       document.getElementsByTagName("body")[0].style.height="100%";

       document.getElementById("show_all").style.borderBottom="0px";

       if (datenbankLesenFehlerText!="")
           return;

       if (anzThu_bilder>0 && option[12] == "J"){  //option[12]=J Layout_03 für für THU-Steuerung  laden
          document.getElementById("layout_03_menu").style.paddingTop="0.2em";
          document.getElementById("layout_03_menu").style.paddingBottom="0.5em";
          document.getElementById("profile_layout_03").style.display="none"; //Version, Copyright
          document.getElementById("misza_szatine").style.display="none";
          document.getElementById("catteries").style.display="none";
          document.getElementById("show_all").style.height="84%";
          document.getElementById("show_top").style.height="90px";
          document.getElementById("show_text").style.overflow="hidden"; //wegen FF kein Scroll - ev. Probleme TEXT wird abgeschnitten
       }
       else {
           document.getElementById("layout_03_menu").style.paddingTop="0.6em";
           document.getElementById("layout_03_menu").style.paddingBottom="0.9em";

           document.getElementById("profile_layout_03").style.display="block"; //Version, Copyright
           document.getElementById("profile_layout_03").style.paddingTop="0.6em"; //Version, Copyright


           document.getElementById("show_top").style.overflow="hidden";
           document.getElementById("misza_szatine").style.display="block";
           document.getElementById("catteries").style.display="block";
       }
       
       if (anzThu_bilder==0 && anzBig_bilder==0 && anzOrg_bilder==0 && projekttext==true){
           //nur Text
          document.getElementById("table_layout_03").style.width="92%";
          document.getElementById("table_layout_03").style.padding="0.2em";
          document.getElementById("show_text").style.height="98.7%";
          document.getElementById("show_all").style.width="100%";
       }

       document.getElementById("show_media").style.height="99.5%";
       document.getElementById("show_media").style.width="100%";

      if (navigator.userAgent.indexOf("Firefox") > 0)
             window.status="Firefox-BS: 1024 X 768; verfügbare Fläche:"+window.innerWidth+"*"+window.innerHeight;
       else //IE
          window.status="IE-BS 15\": 1024*768; verfügbare Fläche:"+document.body.offsetWidth+"*"+document.body.offsetHeight;

    }
    // =====================================================================
    if (Aufl=="800 X 600") Faktor=75;    // 14" Bildschirm
    if (Aufl=="720 X 576") Faktor=72;
    if (Aufl=="720 X 480") Faktor=70;
    if (Aufl=="640 X 480") Faktor=65;    // 12" Bildschirm
 }
 if (Faktor==0){

    //Achtung BODY: wegen BUG bei DL, DT Anwendung unter IE wird im BSauflösung_media.js
    //              width und height fix gesetzt
    document.getElementsByTagName("body")[0].style.width="1024px";
    document.getElementsByTagName("body")[0].style.height="690px";
    document.getElementById("show_logo").style.height="40px";
    window.status="IE-BS 15\": 1024*768";
    window.status="Auflösung Standard 1024 X 768 genommen";

    if (navigator.userAgent.indexOf("Firefox") > 0) {
       //document.getElementById("horz_vert").style.marginTop="20px";
       window.status="Firefox-BS: 1024*768; marginTOP: + 20px";
    }
    if (screen.width < 640)
        Faktor=50;
    else
        Faktor=100;
  }
  

}//end-function
