var bhoehe;
var aufloesung;
aufloesung = screen.height;
bhoehe = screen.height;
if(bhoehe > 1000 && bhoehe < 1100){aufloesung = 1024};
stil = aufloesung + window.name;
umleit = navigator.appVersion.substring(0,1) + navigator.appName;
var exotic = 0
var umleitung = 1;
zieladresse = "hinweis.htm";
if(umleit == "5Netscape"){umleitung = 2;}
if(umleit == "4Microsoft Internet Explorer"){umleitung = 2;}
if(umleit == "5Opera"){umleitung = 2;}
if(navigator.appVersion.substring(0,1) > 5) {umleitung = 2;}
if(umleitung != 2){window.location.href = zieladresse;}
popneu="b"
var popmenu;
if(popsprache == "English"){popmenu = "d";}
else
{popmenu = "e";}
varaufl = (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) ? "op": (navigator.userAgent.indexOf("Konqueror")!=-1 && document.getElementById) ? "ko" : (document.all) ? "ie" : (document.layers) ? "nn" : (!document.all && document.getElementById) ? "mo" : "";
if (varaufl=="op"){kox = -7;koy = -8;}
else
if (varaufl=="nn"){kox = 0;koy = 0;}
else
if (varaufl=="mo"){kox = 2;koy = 10;}
else
if (varaufl=="ko"){kox = 0;koy = 0;}
else
if (varaufl=="ie"){kox = 0;koy = 0;}
myvar = (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) ? "op": (navigator.userAgent.indexOf("Konqueror")!=-1 && document.getElementById) ? "ko" : (document.all) ? "ie" : (document.layers) ? "nn" : (!document.all && document.getElementById) ? "mo" : "";
var mychild;
var mybrowser;
mychild = myvar+window.name
if(mychild == "ie"){mybrowser = 2;}
if(mychild == "iechild"){mybrowser = 3;}
if(mychild == "mo"){mybrowser = 2;}
if(mychild == "mochild"){mybrowser = 3;}
if(mychild == "op" && navigator.appVersion.substring(0,1)>5){mybrowser = 2;}
if(mychild == "opchild" && navigator.appVersion.substring(0,1)>5){mybrowser = 3;}
yy=screen.availWidth;
xx=screen.availHeight;
var datei;
var zeit = new Date();
var tag = zeit.getDate();
var monat = zeit.getMonth() + 1;
var jahr = zeit.getYear();
var stunden = zeit.getHours();
var minuten = zeit.getMinutes();
var zeitform = ((minuten < 10) ? ":0" : ":");
if(myvar!="ie"&&jahr<2000){jahr = jahr+1900; }
if(stil=="480child"){popneu="x";exotic = 1;bgmenuw = 604;bgmenuh = 385;datei = "sty480iv.css";poX=20+kox;poY=50+koy;}
if(stil=="480"){popneu="x";exotic = 1;bgmenuw = 604;bgmenuh = 312;datei="sty480i.css";poX=10+kox;poY=18+koy;}
if(stil=="600child"){popneu="a";exotic = 1;bgmenuw = 736;bgmenuh = 420;datei = "sty600iv.css";poX=30+kox;poY=75+koy;}
if(stil=="600"){popneu="a";exotic = 1;bgmenuw = 732;bgmenuh = 385;datei="sty600i.css";poX=30+kox;poY=25+koy;}
if(stil=="768child"){popneu="b";exotic = 1;bgmenuw = 960;bgmenuh = 505;datei = "sty768iv.css";poX=92+kox;poY=140+koy;}
if(stil=="768"){exotic = 1;bgmenuw = 960;bgmenuh = 505;datei="sty768i.css";poX=92+kox;poY=40+koy;}
if(stil=="864child"){popneu="b";exotic = 1;bgmenuw = 964;bgmenuh = 550;datei = "sty864iv.css";poX=92+kox;poY=101+koy;}
if(stil=="864"){popneu="b";exotic = 1;bgmenuw = 964;bgmenuh = 550;datei="sty864i.css";poX=92+kox;poY=72+koy;}
if(stil=="960child"){popneu="b";exotic = 1;bgmenuw = 1100;bgmenuh = 600;datei="sty1024iv.css";poX=142+kox;poY=141+koy;}
if(stil=="960"){popneu="b";exotic = 1;bgmenuw = 1100;bgmenuh = 600;datei="sty1024i.css";poX=151+kox;poY=140+koy;}
if(stil=="1024child"){popneu="b";exotic = 1;bgmenuw = 1100;bgmenuh = 600;datei="sty1024iv.css";poX=142+kox;poY=141+koy;}
if(stil=="1024"){popneu="b";exotic = 1;bgmenuw = 1100;bgmenuh = 600;datei="sty1024i.css";poX=151+kox;poY=140+koy;}
if(stil=="1080child"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1080iv.css";poX=32;poY=148;}
if(stil=="1080"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1080i.css";poX=32;poY=32;}
if(stil=="1200child"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei = "sty1200iv.css";poX=32;poY=148;}
if(stil=="1200"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1200i.css";poX=32;poY=32;}
if(stil=="1280child"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei = "sty1280iv.css";poX=32;poY=148;}
if(stil=="1280"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1280i.css";poX=32;poY=32;}
if(stil=="1392child"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1392iv.css";poX=32;poY=148;}
if(stil=="1392"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1392i.css";poX=32;poY=32;}
if(stil=="1440child"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei = "sty1440iv.css";poX=32;poY=148;}
if(stil=="1440"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1440i.css";poX=32;poY=32;}
if(stil=="1536child"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei = "sty1536iv.css";poX=32;poY=148;}
if(stil=="1536"){popneu="c";exotic = 1;bgmenuw = 740;bgmenuh = 450;datei="sty1536i.css";poX=32;poY=32;}
if(screen.height*screen.width == 983040){exotic = 0;}
if(screen.height*screen.width == 407040 && stil=="480"){datei = "sty48ai.css";bgmenuw = 778;bgmenuh = 312;popneu="x";exotic = 1;hoch=200;poX=20+kox;poY=18+koy;}
if(screen.height*screen.width == 407040 && stil=="480child"){datei = "sty48aiv.css";bgmenuw = 810;bgmenuh = 422;popneu="x";exotic = 1;hoch=200;poX=20+kox;poY=20+koy;}
if(exotic == 0){popneu="x";datei = "stysondi.css";exotic = 0;poX = 35+kox;poY = 40+koy;alert(tag+"."+monat+"."+jahr+", "+stunden+zeitform+minuten+"\n"+navigator.userAgent+"\n\nDie Auflösung "+screen.width+" x " +screen.height+" wird vom Atlas nicht unterstützt! Ich versuche Sondergröße.\nThe atlas doesn´t support this resolution ("+ screen.width+" x "+screen.height+"). I try another one.\n\nDiese Auflösungen können Sie verwenden:\nThese resolutions you can use:\n| 640 x 480 | 800 x 600 | 848 x 480 | 1024 x 768 |\n| 1152 x 864 | 1280 x 960 | 1280 x 1024 |\n\nPDAs werden nicht unterstützt. Sollten Sie eine Auflösung unbedingt benötigen,\nschreiben Sie an: endoskop@endoskopischer-atlas.de\nPDAs are not supported. If you need a file for another resolution\nwrite to endoskop@endoskopischer-atlas.de\n\nAchtung: In einigen Fällen erkennt der Internet Explorer die richtige Auflösung nicht\nund zeigt diese Fehlermeldung. Starten Sie den Explorer neu und der Fehler ist behoben!\n\nPlease note: Sometimes the Internet Explorer doesn´t recognize the correct resolution.\nIn this case please close and restart your browser!");}
document.writeln('<link rel=stylesheet type="text/css" href="' + datei + '">');
myexplorer = screen.availWidth-16;
if(screen.height > 1200){yy = 1600;xx = 1200;}
function vollbild(){fenster = window.open(popupdatei,"child", "fullscreen=yes,scrollbars=no");}
z=window.outerHeight;
function hoehe(){if(z != window.outerHeight)document.write(location.href=neufenster());}
function neufenster(){
if(window.name == "")
{fenster = window.open(popupdatei,"","outerHeight="+screen.availHeight+",outerWidth="+screen.availWidth+",top=0,left=0,resizable,scrollbars,menubar,toolbar,location,personalbar,status")
parent.close();}
else
if(window.name == "child")
{alert("Laden Sie zuerst das Hauptfenster neu, um mit der geänderten Auflösung zu arbeiten");
parent.close();}}
if (myvar=="ie"){window.moveTo(0,0);window.resizeTo(yy,xx);hoehe();}
if (myvar=="mo"){window.moveTo(0,0);window.resizeTo(yy,xx);hoehe();}

