av=navigator.appVersion;
dl=document.location.href.toLowerCase();
dr=document.referrer;
sh=480;
sw=640;
ch=348;
cw=640;
printt=new Array();
printhl="l";
bzz=1;
php="";
mt=new Array();
ua=window.navigator.userAgent;
/* begin domain specific part */
url__root = "http://neue-energie-technik.net";
work__site="neue-energie-technik.net";
work__folder = "root";
work__file = "index";
work__language="e";
page__service = "";
rel__href = 0;
rel__src = 0;
rel__url = "../../";
vlx=8;
vly=10;
slx=8;
sly=10;
xlx=25;
xly=20;
tlx=25;
tly=25;
ilx=0;
ily=0;
pt="";
pp="1";
/* end domain specific part */
var pl;
var cl;
if(!document.getElementById)
{
var d="<table><tr><td width=620></td><td><a href=http://cgi.pege.org/cgi-bin/cgiwrap/all/service.pl?browser=upgrade>";
d+="<img src=http://cgi.pege.org/pic/upgrade.gif></a></td></tr></table>";
document.write(d);
}
function init()
{
document.write("\n<scr"+"ipt>");
if(dl.indexOf("/cgi-bin/")<0&document.title.indexOf("ERROR 404")<0)
{
if(work__folder=="root"){url__root="."}
else{url__root=".."}
}
if(dl.substr(0,16)=="http://internet/"){url__root="http://internet/"+work__site}
bl=button__list;
while(bl)
{
var comma=bl.indexOf(",");
var button;
if(comma<0){button=bl;bl=""}
else{button=bl.substr(0,comma);bl=bl.substr(comma+1)}
if(button)
{
equal=button.indexOf("=");
name=button.substr(0,equal); 
url=button.substr (equal+1);
dw="\nvar "+name+"=new Image();"+name+".src=\""+url__root+"/pic/button"+url+"\";"	
document.write( dw ); 
}
}
document.write("\n</script>");
if(location.href.indexOf("q=cache")>0){vly+=270;sly+=240;xly+=210;tly+=210}
if (ua.indexOf ( "MSIE 5.0; Mac" ) > 0 )
{
vly+=50;sly+=50;xly+=50;tly+=50;
document.write("<h1>Please update to the latest MSIE Version for Apple Mac</h1>");
}
pl="u";
var lc=dl.indexOf("layout=");
if(lc>=0)	{pl=dl.substr(lc+7,1)}
else		{if(parent.dwif_use.indexOf(work__site+"/"+work__folder+"/"+work__file+"/"+work__language)>0){pl="i"}}
cl=pl;
}
function gete(e)
{
ee=document.getElementById(e);
if(ee==undefined){mt[e]="";return""}
if(ee)
{
mt[e]=ee.innerHTML;
}
}
function sete(e,h){if(document.getElementById(e)){m=mt[h];if(m){document.getElementById(e).innerHTML=m;}}}
function init_screen ()
{
document.body.onresize=br;
document.body.onbeforeprint=print_init;
document.body.onafterprint=print_exit;
sh=screen.availHeight;
sw=screen.availWidth;
ch=document.body.clientHeight;
cw=document.body.clientWidth;
if(!cw){ch=sh-132;cw=sw-8}
l="v";
if(cw>=770){l="s"}
if(cw>=965){l="x"}
if(cw>=1475){l="t"}
return l;
}
var url__internet;
function load_service ()
{
if(document.getElementById)
{
r=0;
if(dl.substr(0,7)!="http://"){r=1}
if(dl.substr(0,16)=="http://internet/"){r=1;rel__url="http://internet/"}
if(r)
{
for (i=0;i<rel__href;i++)
{
if(document.getElementById("relh"+i))
{
u=document.getElementById("relh"+i).href.substr(7);
if(u.substr(0,4)=="www."){u=u.substr(4)}
if(u.substr(0,44)=="cgi.pege.org/cgi-bin/cgiwrap/all/service.pl?")
{document.getElementById("relh"+i).href=rel__url+"cgi.pege.org/cgi-bin/service.pl?lm=INTRA&"+u.substr(44)}
else{document.getElementById("relh"+i).href=rel__url+u}
}
}
for (i=0;i<rel__src;i++)
{
u=document.getElementById("rels"+i).src.substr(7);
if(u.substr(0,4)=="www."){u=u.substr(4)}
document.getElementById("rels"+i).src=rel__url+u;
}
for(var p in printt)
{
u=printt[p]
if(u.substr(0,7)=="http://")
{
u=u.substr(7);
if(u.substr(0,4)=="www."){u=u.substr(4)}
printt[p]=rel__url+u;
}
}
if(php)
{
u=php.substr(7);
if(u.substr(0,4)=="www."){u=u.substr(4)}
php=rel__url+u;
}
if(document.getElementById("search"))
{
if(rel__url=="http://internet/"){document.getElementById("search").action=rel__url+"cgi.pege.org/cgi-bin/service.pl";}
}
}
i=dl.indexOf("pic=");if(i>0){img_print(dl.substr(i+4,1))}
gete("dirup");gete("dirmain");gete("dirsub");m=0;while(gete("dir"+m)){m++}
w="";
m="<span class=dirup onMouseOver=menu_over(this) onMouseOut=menu_out(this) onClick=";
s=">&nbsp;";
z= "&nbsp;</span><br>";
if(printt["pic"]||printt["rels0"])
{
w+=m+"img_print(\"w\")"+s
w+=ls("High res pictures","Bilder in hoher Auflösung")+z;
}
if(php) 
{ 
w+=m+"new_window(php,0)"+s;
w+=ls("High res panorama pic","Panorama, h. Auflösung")+z; 
}
b="http://cgi.pege.org/cgi-bin/cgiwrap/all/service.pl?formmail=&modus=contact&by="+work__site+"/"+work__folder+"/";
b+=work__file+"/"+work__language+"/plusmenu";
w+=m+"new_window(b,0)"+s+ls("Email - Contact","Email - Kontakt")+z;
w+=m+"new_window(\"http://web-design-suite.com/"+ls("help","hilfe")+"/index.htm\",0)"+s+ls("Help","Hilfe")+z;
w+=m+"menu('main','sub')"+s+"Exit +menu"+z;
mt["dirup"]+=w;
if(cl=="i"){return}
}
if(page__service.indexOf("&service=no")>=0){return} 
i=dl.indexOf ( "www." + work__site);
if(i<0){ i=dl.indexOf ( work__site); }
if(i<0){ url__internet="http:/" }
else { url__internet=dl.substr ( 0, i-1 ); }
url=load_service_url ();
document.write ( "<script src=" + url + "></script>" );
}
function load_service_url ()
{
if ( url__internet.substr ( 0, 4 )=="file" ) { return url__internet + "/cgi.pege.org/pic/offline.js" }
var info= "?dr="+escape(dr)+"&av="+escape(av)+"&sh="+sh+"&sw="+sw+"&ch="+ch+"&cw="+cw;
info += "&by="+work__site+"/"+work__folder+"/"+work__file+"/"+work__language;
if ( url__internet=="http:/" )
{ return url__internet + "/cgi.pege.org/cgi-bin/cgiwrap/all/service.pl" + info + page__service }
return url__internet + "/cgi.pege.org/cgi-bin/service.pl" + info + page__service;
}
function bp(n,v){document.getElementById(n).src=eval(n+v+".src")}
var block=0;
var bnt=new Array();
var xt=new Array();
var yt=new Array();
var wt=new Array();
var ht=new Array();
var ot=new Array();
function mb(n,vx,vy,sx,sy,xx,xy,tx,ty,ix,iy,vw,vh,vo,so,xo,to,io,sw,sh,xw,xh,tw,th,iw,ih)
{
if(!document.getElementById){return}
if(block==0){document.write ("<div>&nbsp;</div>");l=init_screen()}
if(pl=="u"){pl=l}
if(cl=="u"){cl=pl}
if(!vo){vo="visible"}if(!so){so="visible"}if(!xo){xo="visible"}if(!to){to="visible"}if(!io){io="visible"}
if(!sw){sw=vw;sh=vh;xw=vw;xh=vh;tw=vw;th=vh;iw=vw;ih=vh}
bnt[block]=n;
vx=vlx+mp(vx);		xt[n+"v"]=vx;
vy=vly+mp(vy);		yt[n+"v"]=vy;
vw=mp(vw);			wt[n+"v"]=vw;
vh=mp(vh);			ht[n+"v"]=vh;	ot[n+"v"]=vo;
sx=slx+mp(sx);		xt[n+"s"]=sx;
sy=sly+mp(sy);		yt[n+"s"]=sy;
sw=mp(sw);			wt[n+"s"]=sw;
sh=mp(sh);			ht[n+"s"]=sh;	ot[n+"s"]=so;
xx=xlx+mp(xx);		xt[n+"x"]=xx;
xy=xly+mp(xy);		yt[n+"x"]=xy;
xw=mp(xw);			wt[n+"x"]=xw;
xh=mp(xh);			ht[n+"x"]=xh;	ot[n+"x"]=xo;
tx=tlx+mp(tx);			xt[n+"t"]=tx;
ty=tly+mp(ty);			yt[n+"t"]=ty;
tw=mp(tw);			wt[n+"t"]=tw;
th=mp(th);			ht[n+"t"]=th;	ot[n+"t"]=to;
ix=ilx+mp(ix);			xt[n+"i"]=ix;
iy=ily+mp(iy);			yt[n+"i"]=iy;
iw=mp(iw);			wt[n+"i"]=iw;
ih=mp(ih);			ht[n+"i"]=ih;	ot[n+"i"]=io;
y=yt[n+cl];
if(n.substr(0,4)=="menu" ){y=-80000}
bm(n,xt[n+cl],y,wt[n+cl],ht[n+cl],ot[n+cl]);
block++;
}
function mp(p)
{
if((p+"").indexOf("%")){return p}
return eval(p);
}
function bm(n,x,y,w,h,o)
{
if(o>0)
{
if(y+h+eval(o)+4<ch)
{
h=ch-y-o;
o="auto";
if(document.all){if(ua.indexOf("Opera")<0&ua.indexOf("Mac")<0){document.body.style.overflow="auto";}}
}
else
{
o="visible";
if(w==625){w=600}
if(document.all){if(ua.indexOf("Opera")<0&ua.indexOf("Mac")<0){document.body.style.overflow="";}}
}
}
if(!o){o="visible"};
document.getElementById(n).style.overflow	=o;
document.getElementById(n).style.left	=x;
document.getElementById(n).style.top	=y;
z=1;if (y<0){z=-1};document.getElementById(n).style.zIndex=z;
document.getElementById(n).style.width	=w;
document.getElementById(n).style.height	=h;
if(cl!="i"){if(o=="auto"&n=="content"){document.getElementById(n).focus()}}
}
function bc(l){ll=cl;cl=l;var i;for(i=0;i<block;i++){bs(bnt[i],l)}}
function br()
{
if(!document.getElementById){return}
if(pl=="i"){return}
l=init_screen();
bc(l);
}
function bz(z) 
{ 
if(!document.getElementById){return}
if(z=="-"){z=bzz-0.01}
if(z=="+"){z=bzz+0.01}
if(z==0){z=1}
bzz=z;
document.body.style.zoom=z;
}
function bs(n,cl){bm(n,xt[n+cl],yt[n+cl],wt[n+cl],ht[n+cl],ot[n+cl]);}
function bh(bn) {document.getElementById(bn).style.top=-80000;}
function bsh(sh_list)
{
while(sh_list)
{
var comma=sh_list.indexOf(",");
var sh;
if(comma<0){sh=sh_list;sh_list="";}
else { sh=sh_list.substr ( 0, comma ); sh_list=sh_list.substr ( comma + 1 ) }
var a=sh.substr ( 0, 1 );
var b=sh.substr ( 2 );
if ( a=="s" ) { bs ( b, cl ); }
if ( a=="h" ) { bh ( b ); }
}
}
var dwif_use="";
function dwif(l,s,p)
{
if(!document.getElementById){return}
if(l.indexOf(pl)<0){return}
if(parent.location!=location){return}
document.write("<iframe width=100% height=100% scrolling=no frameborder=0 src="+s+"></iframe>");
dwif_use+=","+p;
}
function menu(m,s){sete("dirmain","dir"+m);sete("dirsub","dir"+s)}
function menu_over(obj){obj.className="diruphover"}
function menu_out(obj){obj.className="dirup"}
function print_init(){if(cl!="i"){bc("v");}}
function print_exit(){if(cl!="i"){bc(ll);}}
function new_window (html,win)
{
if(win==0){win="location=yes menubar=yes resizable=yes scrollbars=yes status=yes toolbar=yes"}
var nw=window.open("","_blank",win);
nw.document.open();
if(html.substr(0,4)=="http"|html.substr(0,3)=="../"){nw.document.location=html}
else{nw.document.write(html);}
nw.document.close();
nw.focus();
}
function img_print(hl)
{
if(pp==0)
{
var l="http://cgi.pege.org/cgi-bin/cgiwrap/all/service.pl?img_print&modus=accredit";
l+="&by="+work__site+"/"+work__folder+"/"+work__file+"/"+work__language;
document.location=l;
return;
}
for(var p in printt)
{
var u=printt[p];
var t=u.substr(u.length-3);
if(hl=="l"|(hl=="p"&t=="jpg")){var l=u.length;u=u.substr(0,l-10)+u.substr(l-4)}
if(hl=="w"){window.open(u,"_blank","")}
else{document.getElementById(p).src=u;}
}
}
function ls(e,g)
{
if(work__language=="g"){return g}
return e;
}
function status(o,on)
{
var e="<html><head><title>Status for Object "+on+"</title></head><body>";
for(var p in o){e+=on+"."+p+"="+o[p]+"\n<br>";}
new_window(e,"scrollbars=yes width=640 height=480");
}
