function bildschirm()
 {
   var win;

   var Hoehe;
   var Breite;
   var Pixeltiefe;
   var Farbtiefe;
   var verfuegbare_Hoehe;
   var verfuegbare_Breite;
   var innere_Hoehe, innere_Breite;
   var aeussere_Hoehe, aeussere_Breite;
   var Breite2, Hoehe2;

   var name_des_browsers;
   
   win=window.open("","Bildschirm","width=250,height=300,screenX=300,screenY=100,resizable=no,scrollbars=no,status=no,menubar=no");

   Hoehe=screen.height;
   Breite=screen.width;
   Pixeltiefe=screen.pixelDepth;
   Farbtiefe=screen.colorDepth;
   verfuegbare_Hoehe=screen.availHeight;
   verfuegbare_Breite=screen.availWidth;
   name_des_browsers=navigator.appName;
   innere_Hoehe=window.innerHeight;
   innere_Breite=window.innerWidth;
   aeussere_Hoehe=window.outerHeight;
   aeussere_Breite=window.outerWidth;
   if (name_des_browsers=="Microsoft Internet Explorer")
     {
       Pixeltiefe=Farbtiefe;
     }
   if (Farbtiefe==Pixeltiefe)
     {
       Farbtiefe=Math.pow(2,Farbtiefe);
     }
	 
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
   win.document.write("<body>");
   win.document.write("<h2><center>Dein Bildschirm</center></h2>");
   win.document.write("<p>H&ouml;he: " + Hoehe + " Pixel<br>");
   win.document.write("Breite: " + Breite + " Pixel</p>");
   win.document.write("<p>Pixeltiefe: " + Pixeltiefe + "<br>");
   win.document.write("Farbtiefe: " + Farbtiefe + "</p>");
   win.document.write("<p>Verf&uuml;gbare H&ouml;he: " + verfuegbare_Hoehe + " Pixel<br>");
   win.document.write("Verf&uuml;gbare Breite: " + verfuegbare_Breite + " Pixel</p>");
   win.document.write("<p>Innere H&ouml;he: " + innere_Hoehe + " Pixel<br>");
   win.document.write("Innere Breite: " + innere_Breite + " Pixel<br>");
   win.document.write("&Auml;u&szlig;ere H&ouml;he: " + aeussere_Hoehe + " Pixel<br>");
   win.document.write("&Auml;u&szlig;ere Breite: " + aeussere_Breite + " Pixel</p>");
   win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
   win.document.write("</body>");
}
 
function plugin()
 {
   var Anzahl_der_Plugins=navigator.plugins.length;
   win=window.open("","Plugin","width=250,height=300,screenX=300,screenY=100,resizable=yes,scrollbars=no,status=no,menubar=no");
   var i=-1;
  
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
   win.document.write("<body>");
   win.document.write("<h2><center>Deine Plugins</center></h2>");
   win.document.write("<p>Plug-Ins: " + Anzahl_der_Plugins + "</p>");
   while (i<Anzahl_der_Plugins-1)
     {
       i++;
       win.document.write("<p>"+navigator.plugins[i].name+"</p>");
     }
   win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
   win.document.write("</body>");
 }
 
 function kalender()
 {
   var Anzahl_der_Plugins=navigator.plugins.length;
   win=window.open("","Kalender","width=220,height=270,screenX=300,screenY=100,resizable=no,scrollbars=no,status=no,menubar=no");
  
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"css/datepicker.css\">");
   win.document.write("<script type=\"text/javascript\" src=\"js/datepicker.js\"></script>");
   win.document.write("<body>");
   win.document.write("<h2><center>Kalender</center></h2>");
   win.document.write("<script type=\"text/javascript\">");
   win.document.write("var d = new Date();");
   win.document.write("var dp = new DatePicker(d);");
   win.document.write("document.body.appendChild(dp.create());");
   win.document.write("</script>");

   win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
   win.document.write("</body>");
 }
 
 function about()
 {
   win=window.open("","About","width=450,height=330,screenX=300,screenY=100,resizable=no,scrollbars=no,status=no,menubar=no");
  
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
   win.document.write("<body>");
   win.document.write("<div id='webfx-title-background'></div>");
   win.document.write("<h1 id='webfx-title'>SR Homepage</h1>");	
   win.document.write("<h2><center>About</center></h2>");
   win.document.write("<p><center>Stefan R&ouml;thlisberger's Site");	
   win.document.write("<br>&copy; by Stefan R&ouml;thlisberger 1994-2005</center></p>");	
   win.document.write("<hr>");
   win.document.write("<p>&nbsp;</p>");
   win.document.write("<p><font size=\"-2\">Juli 2005: Updated; www.r&ouml;thlisberger.ch aufgeschaltet");	
   win.document.write("<br>Aug 2002: New Page without Framesets");	
   win.document.write("<br>Dez 2000: Change to Domain www.s-roethlisberger.ch");	
   win.document.write("<br>Jul 1998: Upload new Page with Framsets etc.");	
   win.document.write("<br>Jan 1998: Change to Domain www.hta-bi.bfh.ch/~roths1");	
   win.document.write("<br>Dez 1994: First Page www.isbe.ch/~roethli</font></p>");	

   win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
   win.document.write("</body>");
 }
 
  function search()
 {
   win=window.open("","About","width=350,height=200,screenX=300,screenY=100,resizable=yes,scrollbars=yes");
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
   win.document.write("<body>");
   win.document.write("<h2><center>Search</center></h2>");
   win.document.write("<p><center>\"SUCHBEGRIFF\" ersetzen..</center></p>");
   win.document.write("<p><FORM method=GET action=\"http://www.google.com/search\">");
   win.document.write("<TABLE><tr><td>");	
   win.document.write("<INPUT TYPE=text name=q size=31 maxlength=255 value=\"SUCHBEGRIFF site:www.s-roethlisberger.ch\">");	
   win.document.write("<INPUT TYPE=hidden name=hl value=de>");	
   win.document.write("<INPUT type=submit name=btnG VALUE=\"Search\">");	
   win.document.write("</td></tr></TABLE></FORM></p>");	
   win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
   win.document.write("</body>");
 }
 
  function checkbrowser()
 {
   var name_des_browsers;
   var version_des_browsers;
   name_des_browsers=navigator.appName;
   version_des_browsers=navigator.appVersion;

    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();
    // *** BROWSER VERSION ***
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    // Note: Opera and WebTV spoof Navigator.  We do strict client detection.
    // If you want to allow spoofing, take out the tests for opera and webtv.
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));
    var is_nav4 = (is_nav && (is_major == 4));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    var is_nav6 = (is_nav && (is_major == 5));
    var is_nav6up = (is_nav && (is_major >= 5));
    var is_gecko = (agt.indexOf('gecko') != -1);

    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
    // or if this is the first browser window opened.  Thus the
    // variables is_aol, is_aol3, and is_aol4 aren't 100% reliable.
    var is_aol   = (agt.indexOf("aol") != -1);
    var is_aol3  = (is_aol && is_ie3);
    var is_aol4  = (is_aol && is_ie4);
    var is_aol5  = (agt.indexOf("aol 5") != -1);
    var is_aol6  = (agt.indexOf("aol 6") != -1);

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);

    var is_webtv = (agt.indexOf("webtv") != -1); 

    var is_TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
    var is_AOLTV = is_TVNavigator;

    var is_hotjava = (agt.indexOf("hotjava") != -1);
    var is_hotjava3 = (is_hotjava && (is_major == 3));
    var is_hotjava3up = (is_hotjava && (is_major >= 3));

    var is_vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));

if ((name_des_browsers != "Microsoft Internet Explorer") || (is_ie5_5up != true) || (name_des_browsers != "Netscape")) {
   win=window.open("","notIE","width=600,height=260,screenX=100,screenY=100,resizable=no,scrollbars=no,status=no,menubar=no");
  
   win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
   win.document.write("<body>");
   win.document.write("<h2><center>Browser</center></h2>");
   win.document.write("<p><center>Du benutzt nicht den Internet Explorer oder eine alte Version davon! (< 5.5)<br>");	
   win.document.write("Es k&ouml;nnte sein, dass diese Seite nicht richtig dargestellt wird...</center></p>");	
   win.document.write("<h3>Dein Browser:</h3>");	
   win.document.write("<p>" + name_des_browsers + " " + version_des_browsers + "</p><hr>");	
   win.document.write("<p><center><a href=\"ie6setup.exe\">Hier</a> klicken um den neuesten Internet Explorer downzuloaden.<br>...Ist fr&uuml;her oder sp&auml;ter sowieso notwendig...</center></p>");	

   win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
   win.document.write("</body>");
}
 }
 
 var detect = navigator.userAgent.toLowerCase();
 var OS,browser,version,total,thestring, browser_name;
 
 function browsercheck()
 {
 if (checkIt('konqueror'))
 {
 	browser = "Konqueror";
 	OS = "Linux";
 }
 else if (checkIt('safari')) browser = "Safari"
 else if (checkIt('omniweb')) browser = "OmniWeb"
 else if (checkIt('opera')) browser = "Opera"
 else if (checkIt('webtv')) browser = "WebTV";
 else if (checkIt('icab')) browser = "iCab"
 else if (checkIt('msie')) browser = "Internet Explorer"
 else if (!checkIt('compatible'))
 {
 	browser = "Netscape Navigator"
 	version = detect.charAt(8);
 }
 else browser = "An unknown browser";
 
 if (!version) version = detect.charAt(place + thestring.length);
 
 if (!OS)
 {
 	if (checkIt('linux')) OS = "Linux";
 	else if (checkIt('x11')) OS = "Unix";
 	else if (checkIt('mac')) OS = "Mac"
 	else if (checkIt('win')) OS = "Windows"
 	else OS = "an unknown operating system";
 }
 
 browser_name = navigator.vendor;
 if (browser_name == undefined) browser_name = "";
 
  if ((browser != "Netscape Navigator") || (version < 5)) {
    win=window.open("","notFirefox","width=600,height=270,screenX=100,screenY=100,resizable=no,scrollbars=no,status=no,menubar=no");
   
    win.document.write("<link type=\"text/css\" rel=\"StyleSheet\" href=\"webfxlayout.css\">");
    win.document.write("<body>");
    win.document.write("<h2><center>Browser</center></h2>");
    win.document.write("<p><center>Du benutzt nicht den \"Mozilla Firefox\" oder eine alte Version davon! (< 5)<br>");	
    win.document.write("Es k&ouml;nnte sein, dass diese Seite nicht richtig dargestellt wird...</center></p>");	
    win.document.write("<h3>Dein Browser:</h3>");	
    win.document.write("<p>" + browser + " " + browser_name + " " + version + "</p><hr>");	
    win.document.write("<p><center><a href=\"http://www.firefox-browser.de/\" target=\"_blank\">Hier</a> klicken um den neuesten \"Firefox\" downzuloaden.<br>...Ist fr&uuml;her oder sp&auml;ter sowieso notwendig :-)...</center></p>");	
 
    win.document.write("<p><center><input Type=\"submit\" Value=\"Close\" onclick=\"window.close()\"></center></p>");
    win.document.write("</body>");
 }

}

function checkIt(string)
{
 	place = detect.indexOf(string) + 1;
 	thestring = string;
 	return place;
}

