zaehl=0;hochkant=new Array();c=new Array();c[0]=1;zz="";ii=0;
offen=0;auf=0;Foto="";
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==3){a=0;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 oeffne(a)
{
if(a==1){aa="angebote.htm";}
if(a==2){aa="f-lampen.htm";}
if(a==3){aa="fa-objekte.html";}

Angebot=window.open(aa,'fenster','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=950,height=700');
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 show1(b) 
{ 

if(b==1)
{
document.getElementById("inhalt").style.visibility = "hidden";
document.getElementById("bild").style.visibility = "hidden";
document.getElementById("weg").style.visibility = "hidden";

document.getElementById("Fenster1").style.visibility = "visible"; 
document.getElementById("Fenster2").style.visibility = "hidden"; 
}
if(b == 0)
{
document.getElementById("Fenster1").style.visibility = "hidden"; 
document.getElementById("bild").style.visibility = "visible";
document.getElementById("inhalt").style.visibility = "visible";
document.getElementById("weg").style.visibility = "visible";
c=0;
}
}

function show2(b) 
{ 

if(b==1)
{
document.getElementById("inhalt").style.visibility = "hidden";
document.getElementById("bild").style.visibility = "hidden";
document.getElementById("weg").style.visibility = "hidden";
document.getElementById("Fenster2").style.visibility = "visible"; 
document.getElementById("Fenster1").style.visibility = "hidden"; 
}
if(b == 0)
{
document.getElementById("Fenster2").style.visibility = "hidden"; 
document.getElementById("bild").style.visibility = "visible";
document.getElementById("inhalt").style.visibility = "visible";
document.getElementById("weg").style.visibility = "visible";
c=0;
}
}

function zeig(c)
{
w=400;h=300;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();\">");
Bilder.document.write("<center><img src=fahrbilder/"+c+"></center>");
Bilder.document.write("</body></html>");
Bilder.focus();
}



function schliessen()
{
if(Bilder)Bilder.close();
}


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(groesse=="1")
{
Foto=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');
Foto.moveTo(250,100);
Foto.focus();
br="150";
}
if(groesse=="2")
{
Foto=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');
Foto.moveTo(150,50);
Foto.focus();
br="300";
}
if(groesse=="3")
{
Foto=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');Foto.moveTo(100,0);
Foto.focus();
br="400";
}

/*hier Einzelbild*/
if(stueck=="1")
{
abbildung=nr+"."+format;offen++;

Foto.document.writeln("<html><body onBlur=\"window.close();\">");
Foto.document.writeln("<\/form>");
info="<br><br><center><img src=fahrbilder/"+abbildung+" art="+br+" valign=\"bottom\" name=\"foto\">";

Foto.document.writeln("<center><form><input type=\"button\" value=\"schließen\/close\" onClick=\"window.close();\" >");

Foto.document.writeln(info);
Foto.document.writeln("<\/center>");
Foto.document.writeln("<\/body><\/html>");
}
/*ende Einzelbild*/
/*Diashow*/

if(stueck > "1")
{
offen++;
Foto.document.writeln("<html><head>");
Foto.document.writeln("<script language=\"javascript\">\n<\!--\nzahl=0;");
Foto.document.writeln("Anzahl= new Array(\"\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\");");
Foto.document.writeln("function weiter(nr,format,stueck)\n{");
Foto.document.writeln("zahl++;if(zahl>stueck-1)zahl=0;\n");
Foto.document.writeln("abbildung=\"fahrbilder\/\"+nr+Anzahl[zahl]+\".\"+format;\n");
Foto.document.writeln("document.images[0].src=abbildung;\n");
Foto.document.writeln("}\n\/\/-->\n<\/script><\/head>");
abbildung=nr+"."+format;
info="<center><img src=fahrbilder/"+abbildung+" art="+br+" valign=\"bottom\" name=\"foto\">";
Foto.document.writeln("<body><center><form><nobr><h4><input type=\"button\" value=\"schließen\/close\" onClick=\"window.close();\">");
Foto.document.write("<input type=\"button\" value=\"Bildergalerie\" onClick=\"weiter(");
Foto.document.write(nr+",'"+format+"',"+stueck);
Foto.document.writeln(");\">\n</h4></nobr></form>\n");
Foto.document.writeln(info);
Foto.document.writeln("<\/center>");
Foto.document.writeln("<\/body><\/html>");
}
/*ende  diashow*/

}
/*ende funktion fotos*/


function bild(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(auf>0){if(Abb.closed==false)Abb.close();}

if(groesse=="1")
{
Abb=window.open("leer.htm", 'abbild', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=190,height=220');
Abb.moveTo(250,100);
Abb.focus();
br="150px";
}
if(groesse=="2")
{
Abb=window.open("leer.htm", 'abbild','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=350,height=460');
Abb.moveTo(150,50);
Abb.focus();
br="300px";
}
if(groesse=="3")
{
Abb=window.open("leer.htm", 'abbild','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=450,height=450');Foto.moveTo(100,0);
Abb.focus();
br="400px";
}

/*hier Einzelbild*/
if(stueck=="1")
{
abbildung=nr+"."+format;offen++;

Abb.document.writeln("<html><body onBlur=\"window.close();\">");
Abb.document.writeln("<\/form>");
info="<br><br><center><img src=http://www.profilm.de/fundus/"+abbildung+" art="+br+" valign=\"bottom\" name=\"foto\">";

Abb.document.writeln("<center><form><input type=\"button\" value=\"schließen\/close\" onClick=\"window.close();\" >");
Abb.document.writeln(info);
Abb.document.writeln("<\/center>");
Abb.document.writeln("<\/body><\/html>");
}
/*ende Einzelbild*/
/*Diashow*/

if(stueck > "1")
{
offen++;
Abb.document.writeln("<html><head>");
Abb.document.writeln("<script language=\"javascript\">\n<\!--\nzahl=0;");
Abb.document.writeln("Anzahl= new Array(\"\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\");");
Abb.document.writeln("function weiter(nr,format,stueck)\n{");
Abb.document.writeln("zahl++;if(zahl>stueck-1)zahl=0;\n");
Abb.document.writeln("abbildung=\"http://www.profilm.de/fundus\/\"+nr+Anzahl[zahl]+\".\"+format;\n");
Abb.document.writeln("document.images[0].src=abbildung;\n");
Abb.document.writeln("}\n\/\/-->\n<\/script><\/head>");
abbildung=nr+"."+format;
info="<center><img src=http://www.profilm.de/fundus/"+abbildung+" art="+br+" valign=\"bottom\" name=\"foto\">";
Abb.document.writeln("<body><center><form><nobr><h4><input type=\"button\" value=\"schließen\/close\" onClick=\"window.close();\">");
Abb.document.write("<input type=\"button\" value=\"Bildergalerie\" onClick=\"weiter(");
Abb.document.write(nr+",'"+format+"',"+stueck);
Abb.document.writeln(");\">\n</h4></nobr></form>\n");
Abb.document.writeln(info);
Abb.document.writeln("<\/center>");
Abb.document.writeln("<\/body><\/html>");
}
/*ende  diashow*/

}
/*ende funktion fotos*/



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(Foto)Foto.close();
}
