zaehl=0;hochkant=new Array();c=new Array();c[0]=1;zz="";ii=0;offen=0;auf=0;Brillen="";Imp="";offen=0;auf=0;Foto="";Angebot="";Bild="";Mail="";Fenster="";Achtung="";Adresse="";zeigen="";
bild1= new Image();
bild1.src= "../allgem/bild1.jpg";
bild2= new Image();
bild2.src= "../allgem/bild2.jpg";
bild3= new Image();
bild3.src= "../allgem/bild3.jpg";
bild4= new Image();
bild4.src= "../allgem/bild4.jpg";
bild5= new Image();
bild5.src= "../allgem/bild5.jpg";
bild6= new Image();
bild6.src= "../allgem/bild6.jpg";
bild7= new Image();
bild7.src= "../allgem/bild7.jpg";
bild8= new Image();
bild8.src= "../allgem/bild8.jpg";
bild9= new Image();
bild9.src= "../allgem/bild9.jpg";

function pruef(a)
{
if(a==2){a=1;zz="../";}
if(a==0)
{
if(!opener)window.location=zz+"index.html";
}
if(a==1)
{
if(top.frames.length==0)window.location=zz+"index.html";
}
}


function imp()
{
Imp=window.open('../impressum.htm','daten','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=750,height=420');
Imp.moveTo(50,50);
}

function piloten(a)
{
if(a==1){aa="piloten.html";w=600;}
if(a==2){aa="namen1.html";w=735;}
if(a==3){aa="brillen.html";w=700;}
if(a==4){aa="pilotenscheine.htm";w=740;}
if(a==5){aa="objekte.html";w=700;}
if(a==6){aa="../bibliographie.htm";w=780;}
if(a==7){aa="Boelckeoswald.html";w=780;}
if(a==8){aa="ImmelmannMax.html";w=780;}
if(a==9){aa="RichthovenManfred.html";w=780;}


Pilot=window.open(aa,'luftfahrer','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+w+',height=480');
Pilot.moveTo(10,19);
}

function oeffne(a)
{
a=a+".htm";

Angebot=window.open(a,'fenster','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=950,height=800');
Angebot.moveTo(50,10);
}

function wechsel()
{
window.setTimeout("neu()",2000);
}

function neu()
{
zaehl++;if(zaehl==10)zaehl=1;
wechselbild="bild"+String(zaehl)+".src";
eval("document.images.banner.src="+wechselbild);
eval("document.images.banner.value="+wechselbild);
wechsel();
}

function weiter()
{
if(zaehl>0)
{
b=document.images.banner.value;
c=b.split("bild");c[1]=c=c[1].split(".");
}
if(c[0]==1)window.location.href="http://www.profilm.de";
if(c[0]==2)window.location.href="../index.html";
if(c[0]==3)window.location.href="../auto/zauto.html";
if(c[0]==4)window.location.href="../mauto/mauto.html";
if(c[0]==5)window.location.href="../traktor/traktor.html";
if(c[0]==6)window.location.href="../krad/motorrad.html";
if(c[0]==7)window.location.href="../fahrrad/fahrrad.html";
if(c[0]==8)window.location.href="../flugzeug/flugz.html";
if(c[0]==9)window.location.href="../luftschiff/luftschiff.html";
}

function show(b) 
{ 
if(b==0)
{
if(document.getElementById) document.getElementById("Fenster1").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster2").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster3").style.visibility = "hidden"; 

c=0;
}

if(b==1)
{
if(document.getElementById) document.getElementById("Fenster3").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster2").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster1").style.visibility = "visible"; 
}

if(b==2)
{
if(document.getElementById) document.getElementById("Fenster3").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster1").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster2").style.visibility = "visible"; 
}

if(b==3)
{
if(document.getElementById) document.getElementById("Fenster2").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster1").style.visibility = "hidden"; 
if(document.getElementById) document.getElementById("Fenster3").style.visibility = "visible"; 
}

if(b != 0){document.getElementById("inhalt").style.visibility = "hidden";document.getElementById("bild").style.visibility = "hidden";}
else {document.getElementById("inhalt").style.visibility = "visible";document.getElementById("bild").style.visibility = "visible";}
}

function zeig(c)
{
fenster(1,c)
}
function zeigpil(c)
{
fenster(2,c)
}
function zeigluft(c)
{
fenster(3,c)
}

function fenster(v,c)
{
w=400;h=285;ws=350;hs=280;
hochkant=c.split(".");
if(hochkant[1] == "jpgh"){c=hochkant[0]+".jpg";w=310;h=400;ws=320;hs=220;}
if(hochkant[1] == "gifh"){c=hochkant[0]+".gif";w=285;h=400;ws=320;hs=220;}
Bilder=window.open("../leer.htm",'fotos','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,copyhistory=yes,left='+ws+',top='+hs+',width=1,height=1');
if(w==400)Bilder.moveTo(210,200);
else Bilder.moveTo(210,80);
Bilder.resizeTo(w,h);
Bilder.document.writeln("<html><head>\n<style type=\"text/css\">\n<!--");
Bilder.document.writeln("body\{margin-top:0px;margin-left:0px;text-align:center;vertical-align:middle;\}\n//-->\n</style>\n");

Bilder.document.writeln("<script language=\"javaScript\"><!--\n");

Bilder.document.writeln("function schliessen()\n{window.close();}");
Bilder.document.writeln("--></script></head><body  onBlur=\"schliessen();\">");
if(v==1)verz="flugbilder/";if(v==2)verz="pilotbilder/";if(v==3)verz="../luftschiff/luftbilder/";
Bilder.document.write("<center><img src="+verz+c+"></center>");
Bilder.document.write("</body></html>");
Bilder.focus();
}

function zeige(c,d)
{
if(d==0)pfad="";
if(d==1)pfad="../../profilm.de/show/";

if(d==2)pfad="../../profilm.de/fundus/";
if(d==5)pfad="../../profilm.de/aerohistory/";


if(d==1)pfad="http://www.profilm.de/show/";
if(d==2)pfad="http://www.profilm.de/fundus/";
if(d==3)pfad="dokumente/";
if(d==4)pfad="flugzeug/fremde/";
if(d==5)pfad="http://www.profilm.de/aerohistory/";
if(d==6)pfad="fremde/";


w=400;h=300;ws=350;hs=280;
hochkant=c.split(".");
if(hochkant[1] == "jpgh"){c=hochkant[0]+".jpg";w=300;h=420;}
Bilder=window.open("leer.htm",'fotos','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes,copyhistory=yes,left='+ws+',top='+hs+',width=1,height=1');
if(w==400)Bilder.moveTo(210,160);
else Bilder.moveTo(210,40);
Bilder.resizeTo(w,h);
Bilder.document.writeln("<html><head>\n<style type=\"text/css\">\n");
Bilder.document.writeln("body\{margin-top:0px;margin-left:0px;\}\n</style>\n");
Bilder.document.writeln("<script language=\"javascript\">\nfunction nichtsgeht()\{\n");
Bilder.document.writeln("if (event.button==2)\n\{alert(\"Text und Bilder unterliegen dem Urheberrecht von profilm.de\");\}\}\n</script>\n");

Bilder.document.writeln("</head><body onmousedown=\"nichtsgeht();\">");
Bilder.document.write("<center><img src="+pfad+c+"></center><br>");
Bilder.document.write("</body></html>");
Bilder.focus();
}


function schliesse()
{
if(Bilder)Bilder.close();
}

function los()
{
if(document.all)
{
if(ii>200 && ii<400)eval('document.all["balloon"].style.left=99+ii');


eval('document.all["balloon"].style.top=460-ii');
}
fahren();
}

function fahren()
{
ii++;
if(460-ii>-160)
window.setTimeout("los()",50);
}

function foto(nr,format,st)
{

stueck=Number(String(st).substr(0,1));
groesse=Number(String(st).substr(1,1));if(stueck>1 && groesse==1)groesse=2;

art="width";if(st.substr(2,1) =="h")art="height";

if(offen>0){if(Brillen.closed==false)Brillen.close();}

if(groesse=="1")
{
Brillen=window.open("leer.htm", 'brillen', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=190,height=220');
Brillen.moveTo(250,100);
Brillen.focus();
br="150px";
}
if(groesse=="2")
{
Brillen=window.open("leer.htm", 'brillen','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=350,height=460');
Brillen.moveTo(150,50);
Brillen.focus();
br="300px";
}
if(groesse=="3")
{
Brillen=window.open("leer.htm", 'brillen','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=450,height=450');Brillen.moveTo(100,0);
Brillen.focus();
br="400px";
}

/*hier Einzelbild*/
if(stueck=="1")
{
abbildung=nr+"."+format;offen++;

Brillen.document.writeln("<html><body onBlur=\"window.close();\">");

info="<br><br><center><img src=\"../../profilm.de/fundus/"+abbildung+"\"  "+art+"="+br+" valign=\"bottom\"></center>";
info="<br><br><center><img src=\"http://www.profilm.de/fundus/"+abbildung+"\"  "+art+"="+br+" valign=\"bottom\"></center>";

Brillen.document.writeln("<center><form><input type=\"button\" value=\"schließen\/close\" onClick=\"window.close();\" >");

Brillen.document.writeln(info);
Brillen.document.writeln("<\/center>");
Brillen.document.writeln("<\/body><\/html>");
}
/*ende Einzelbild*/

/*Diashow*/

if(stueck > "1")
{
offen++;
Brillen.document.writeln("<html><head>");
Brillen.document.writeln("<script language=\"javascript\">\n<\!--\nzahl=0;");
Brillen.document.writeln("Anzahl= new Array(\"\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\");");
Brillen.document.writeln("function weiter(nr,format,stueck)\n{");
Brillen.document.writeln("zahl++;if(zahl>stueck-1)zahl=0;\n");
Brillen.document.writeln("abbildung=\"http://www.profilm.de/fundus\/\"+nr+Anzahl[zahl]+\".\"+format;\n");
Brillen.document.writeln("document.images[0].src=abbildung;\n");
abbildung=nr+"."+format;
info="<center><img src=\"http://www.profilm.de/fundus/"+abbildung+"\" "+art+"="+br+" valign=\"bottom\" name=\"foto\">";
Brillen.document.writeln("<body><center><form><nobr><h4><input type=\"button\" value=\"schließen\/close\" onClick=\"window.close();\">");
Brillen.document.write("<input type=\"button\" value=\"Bildergalerie\" onClick=\"weiter(");
Brillen.document.write(nr+",'"+format+"',"+stueck);
Brillen.document.writeln(");\">\n</h4></nobr></form>\n");
Brillen.document.writeln(info);
Brillen.document.writeln("<\/center>");
Brillen.document.writeln("<\/body><\/html>");

}
/*ende  diashow*/



}
/*ende funktion fotos*/


function pay(nr,st)
{
stueck=st.charCodeAt(0)-87;if(stueck<0)stueck=st.substr(0,1);
art=st.substr(1,1);leer="leer.htm";
if(String(st).search( /t/) != -1){leer="../leer.htm";}

Brillen=window.open(leer,'bilder','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=750,height=480');
Brillen.moveTo(5,5);
Brillen.focus();

if(art=="b" || art=="d"){artikel=" ein größeres Bild ";if (stueck>1)artikel=" "+stueck+" größere Bilder ";artikel=artikel+"anzusehen und mit Hilfe der rechten Maustaste zu kopieren."}
if(art=="c"){artikel=" ein großes Bild + Downloaddatei ";if (stueck>1)artikel=" "+stueck+" größere Bilder + Downloaddatei";artikel=artikel+" anzusehen, zu kopieren oder downzuladen."}
if(art=="d"){artikel=" ein einseitiges Dokument  ";if (stueck>1)artikel=" eine Gruppe von "+stueck+" Bild- und/oder Textdokumenten";artikel=artikel+" einzusehen und zu kopieren (rechte Maustaste)";}

preis=stueck*35;summe=preis+" Cent";
if(preis>100)
{
summe=String(preis/100);
if(Math.floor(summe)==summe){cent="00"}
else{teil=summe.split(".");cent=teil[1]+"00";cent=cent.substr(0,2);summe=teil[0];}
summe=summe+","+cent+" Euro";
}

Brillen.document.writeln("<body bgcolor=\"#e4f3f5\">");

Brillen.document.writeln("<font color=blue><h3>profilm.de, &#72;&#111;&#114;&#115;&#116; &#68;&#101;&#99;&#107;&#101;&#114;, &#75;&#105;&#114;&#99;&#104;&#98;&#101;&#114;&#103;&#115;&#116;&#114;.&#51;&#55;, &#54;&#51;&#54;&#57;&#49; &#82;&#97;&#110;&#115;&#116;&#97;&#100;&#116;, DE-2258749 = &#85;&#83;&#116;.-Nr. &#68;&#69; - &#50;&#50;&#53;&#56;&#55;&#52;&#57; </h3></font>");
Brillen.document.writeln("<h2>Hier haben Sie die Möglichkeit "+artikel+"</h2>");
Brillen.document.writeln("<h2>Für diesen Service berechnen wir  demnächst <font color=\"red\"><u>"+summe+".</u></font></h2>");
Brillen.document.writeln("<br><center><table border=\"1\"><tr><td><h3><font color=\"blue\"><br>Durch die höhere Auflösung der Bilder und des größeren Formats kann es teilweise bis zu einer Minute und mehr dauern, bis das Bild zu sehen ist.</font></td></tr></table><br>");

Brillen.document.writeln("<font color=\"red\"><br>Diese Funktion befindet sich in der Testphase und ist, so lange dieser Hinweis erscheint, ohne die oben angeführte Kostenberechnung.</font></h3></td></tr></table></center>");
Brillen.document.writeln("<br><br><form><h3>Ich bin mit den Bedingungen einverstanden &nbsp; &nbsp; <input type=\"button\" value=\" go \" onClick=\"zahlbereit('"+nr+"',"+stueck+",'"+art+"',"+preis+");window.close();\"></h3>");
Brillen.document.writeln("<h3>Ich möchte den Vorgang abbrechen &nbsp; &nbsp &nbsp; &nbsp; <input type=\"button\" value=\"Abbruch\" onClick=\"window.close();\"></h3></form>");
pfad="notzeit.js";
Brillen.document.writeln("<script language=\"javascript\" src=\"flugzeug.js\" type=\"text/javascript\"></script>");

Brillen.document.writeln("</body>");
return;
}
/*ende funktion pay*/


function zahlbereit(nr,stueck, art, preis)
{
pfad="http://www.profilm.de/";
/*pfad="../profilm.de/";*/

scans="zeig"+nr;
Paybild=window.open("leer.htm",'scans', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=1,height=1');
Paybild.moveTo(5,5);
Paybild.resizeTo(700,600);
Paybild.focus();

Paybild.document.writeln("<html><head>\n<style type=\"text/css\">\n<!--\n.bild\n{\nmargin-top:200px;\ntext-align:center;\ncolor:red;\nfont-size:20px;\nvisibility:visible;\n}\n//-->\n</style>\n");
Paybild.document.writeln("<script language=\"javascript\">\n<!--\n");
Paybild.document.writeln("function weg()\n{\ndocument.all.bild.style.visibility=\"hidden\";\n}\n");

if(stueck=="1")
{
Paybild.document.writeln("//--></script>\n</head>\n");
Paybild.document.writeln("<body><div class=\"bild\" id=\"bild\" name=\"bild\">Einen Moment,<br>das Bild wird geladen. <br>Je nach Bildgr&ouml;&szlig;e<br>kann dies l&auml;nger dauern.</div>");
abbildung=pfad+"show/"+nr+".jpg";
Paybild.document.writeln("<div style=\"position:absolute;top:5px;\"><center>");
info="<center><img src="+abbildung+" valign=\"bottom\" onLoad=\"weg();\"></center>";
Paybild.document.writeln("<form><input type=\"button\" value=\"schlie&szlig;en\/close\" onClick=\"window.close();\" >");
Paybild.document.writeln("<\/form></center>");
Paybild.document.writeln(info+"\n</div>");
Paybild.document.writeln("<\/body><\/html>");
}
/*ende Einzelbild*/

/*Diashow*/
if(stueck > 1)
{
Paybild.document.writeln("\nzahl=0;");
Paybild.document.writeln("function weiter(nr,stueck,a)\n{\n");
Paybild.document.writeln("Anzahl= new Array(\"\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\");");

Paybild.document.writeln("pfad=\""+pfad+"\";\n");
Paybild.document.writeln("if(a==1)zahl--;if(zahl <0)zahl=0;\n");
Paybild.document.writeln("if(a==2)zahl++;if(zahl>=stueck )zahl=0;\n");
Paybild.document.writeln("abbildung=\""+pfad+"show/"+nr+"\"+Anzahl[zahl]+\""+".jpg\";\n");
Paybild.document.writeln("document.images[0].src=abbildung;\n");
Paybild.document.writeln("}\n\/\/-->\n<\/script>\n</head>\n");


Paybild.document.writeln("<body><div class=\"bild\" id=\"bild\" name=\"bild\">Einen Moment,<br>das Bild wird geladen. <br>Je nach Bildgr&ouml;&szlig;e<br>kann dies l&auml;nger dauern.</div>");
Paybild.document.writeln("<div style=\"position:absolute;top:5px;\"><center>");
info="<br><img src=\""+pfad+"show/"+nr+".jpg\"  valign=\"bottom\" name=\"foto\" onLoad=\"weg();\">";
Paybild.document.write("<form><h4><nobr>\n<input type=\"button\" value=\"< Bildergalerie\" onClick=\"weiter(");
Paybild.document.write(nr+","+stueck+",1");
Paybild.document.writeln(");zahl=zahl-2;\">\n");
Paybild.document.writeln("<input type=\"button\" value=\"schlie&szlig;en\/close\" onClick=\"window.close();\">");
Paybild.document.write("<input type=\"button\" value=\"Bildergalerie >\" onClick=\"weiter(");
Paybild.document.write(nr+","+stueck+",2");
Paybild.document.writeln(");\">\n</nobr></h4></form>\n");
Paybild.document.writeln(info);
Paybild.document.writeln("</center>");
Paybild.document.writeln("</div></body></html>");

}
/*ende  diashow*/
}



function schliesse()
{
if(Brillen)Brillen.close();
}
