av=navigator.appVersion;
dl=document.location.href.toLowerCase();
dr=document.referrer;
ua=window.navigator.userAgent;
sh=480;
sw=640;
ch=348;
cw=640;
su='http://cgi.pege.org/cgi-bin/cgiwrap/all/service.pl';
csu=su;
sp='';
php="";
mt=new Array();mt[0]='';
dss=0;
printt=new Array();
printhl="l";
bzz=1;
ldm=0;
ldy=0;
lds=0;
/* begin domain specific part */
try{document.domain='pege.org'}catch(e){}
url__root="http://www.energieprojekte.com";
work__site_tr = "energieprojekte.com";
work__site="energieprojekte.com";
work__folder = "root";
work__file = "index";
work__language="g";
page__service = "";
rel__href = 0;
rel__src = 0;
rel__url = "../../";
vlx=0;
vly=10;
slx=0;
sly=10;
xlx=15;
xly=15;
ilx=0;
ily=0;
sdm="";
csu="http://www.beingfound.com/cgi-bin/cgiwrap/beingfound/service.pl";
cona="Kontakt (inaktiv)";
cont="Impressum, Kontakformular und Email Adresse";
subl="http://www.pege.org/index_g.htm";
suba="Abonnieren";
subt="News abonnieren - RSS feeds, RDF, Email, Google";
helpl="http://www.pege.org/hilfe/";
helpa="Hilfe, Tipps+Tricks";
helpt="Hilfe um PEGE.org optimal zu nützen";
aidl="http://www.pege.org/unterstuetzung/";
aida="Unterstützung + Spenden";
aidt="Spenden Sie oder unterstützen Sie PEGE";
/* end domain specific part */
var pl;
var cl;
if(!work__site_tr){work__site_tr=work__site}
r=0;
if(dl.substr(0,7)!="http://"){r=1}
function init()
{
if(dl.indexOf("/cgi-bin/")<0&document.title.indexOf("ERROR 404")<0)
{
if(work__folder=="root"){url__root="."}
else{url__root=".."}
}
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)}
init_button(button)
}
if(location.href.indexOf("q=cache")>0){vly+=270;sly+=240;xly+=210}
if (ua.indexOf("MSIE 5.0; Mac")>0)
{
vly+=50;sly+=50;xly+=50;tly+=50;
document.write("<h1>Please update to a newer browser for apple Mac</h1>");
}
pl="u";
var lc=dl.indexOf("layout=");
if(lc>=0)	{pl=dl.substr(lc+7,1)}
cl=pl;
}
function init_button(button)
{
document.write("\n<scr"+"ipt>");
if(!button){return}
equal=button.indexOf("=");
name=button.substr(0,equal);
url=button.substr(equal+1);
dw='';
if(name.substr(0,3)=="pre")
{
if(r==0){dw="\nvar "+name+"=new Image();"+name+".src=\""+url+"\";"}
}
else
{dw="\nvar "+name+"=new Image();"+name+".src=\""+url__root+"/pic/button"+url+"\";"}
document.write( dw );
document.write("\n</script>");
}
var block=0;
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-32}
l="v";
if(cw>=775){l="s"}
if(cw>=985){l="x"}
return l;
}
var bnt=new Array();
var bvt=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(block==0){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(!io){io="visible"}
if(!sw){sw=vw;sh=vh;xw=vw;xh=vh;tw=vw;th=vh;iw=vw;ih=vh}
bnt[block]=n;
mp(n,'vx',vx,vlx);
mp(n,'vy',vy,vly);
mp(n,'vw',vw,0);
mp(n,'vh',vh,0);
mp(n,'vo',vo,'');
mp(n,'sx',sx,slx);
mp(n,'sy',sy,sly);
mp(n,'sw',sw,0);
mp(n,'sh',sh,0);
mp(n,'so',so,'');
mp(n,'xx',xx,xlx);
mp(n,'xy',xy,xly);
mp(n,'xw',xw,0);
mp(n,'xh',xh,0);
mp(n,'xo',xo,'');
mp(n,'ix',ix,ilx);
mp(n,'iy',iy,ily);
mp(n,'iw',iw,0);
mp(n,'ih',ih,0);
mp(n,'io',io,'');
bs(n,cl);
block++;
}
function mp(bn,pn,p,b)
{
bvt[bn+'-'+pn]=p;
bvt[bn+'-'+pn+'b']=b;
}
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"};
if(o=="af"){o="auto";if(ua.indexOf("Gecko")<0){document.getElementById(n).focus()}}
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 bs(n,cl)
{
x=bf(n+'-'+cl+'x')+bf(n+'-'+cl+'xb');
y=bf(n+'-'+cl+'y')+bf(n+'-'+cl+'yb');
w=bf(n+'-'+cl+'w');
h=bf(n+'-'+cl+'h');
o=bf(n+'-'+cl+'o');
bm(n,x,y,w,h,o);
}
function bf(k)
{
v=bvt[k];
if((v+"").indexOf("%")>0){return v}
try{return eval(v)}catch(e){return v}
}
function bc(l){ll=cl;cl=l;var i;for(i=0;i<block;i++){bs(bnt[i],l)}}
function br()
{
if(pl=="i"){return}
l=init_screen();
bc(l);
}
function bz(z) 
{ 
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 dwif(){}
function menu(m){sete("dirmain","dir"+m)}
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)
{
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 gete(e){try{x=document.getElementById(e).innerHTML;mt[e]=x;return x}catch(e){}}
function sete(e,h){try{document.getElementById(e).innerHTML=mt[h]}catch(e){}}
function rep(s,o,n)
{
try
{
t=new Array();
t=s.split(o);
return t.join(n);
}
catch(e){return''}
}
function bp(n,v,u)
{
document.getElementById(n).src=eval(n+v+".src");
try{document.getElementById("copy"+n).src=eval(n+v+".src")}catch(e){};
if(u){tn(u)}
}
function ddc(p)
{
if(p==1)
{
try
{
mt['dirdrop']=dirdrop();
}
catch(e){mt['dirdrop']=''}
sete('dirdrop','dirdrop');
}
if(p==0){sete('dirdrop',0)}
}
tncu="";
tnec = 0;
function tn(u)
{
t=200;
if(!tncu){t=5}
tncu=u;
c='tnt("'+tncu+'")';
setTimeout(c,t);
}
function tnt(u)
{
if(u==tncu){tnc(u)}
}
function tnc(u)
{
e='navtop';
if(!mt[e]){return}
if(u=='n'){sete(e,e);tnr(e);return}
if(r==1){u=relocate_url(u)}
mi=" onMouseOver=tnr()"; 
mo=" onMouseOut=tnc('n')";
s="<img src="+u+" height=80 border=0 id=logo>";
t=15000;
mt[9]=s;
sete(e,9);
document.getElementById(e).scrollTop=0;
tnec++;
setTimeout('tne('+tnec+')',t);
}
function tnr()
{
tnec++;
tncu="";
}
function tne(c)
{
if(tnec!=c){return}
e='navtop';
sete(e,e);
tnr(e);
}
var url__internet;
function load_service ()
{
sp='?by='+work__site+'/'+work__folder+'/'+work__file+'/'+work__language;
/*load_service_contact('','');
load_service_contact('',1);
load_service_contact('',2);
load_service_contact('gif','');
load_service_contact('gif',1);
load_service_contact('gif',2);
load_service_contact('png','');
load_service_contact('jpg',''); */
try
{
            	h='<a href='+subl+' target=_blank ref=nofollow title="'+subt+'">&nbsp;'+suba+'&nbsp;</a>';
mt['forsubscribe']=h;
sete('forsubscribe','forsubscribe');
}
catch(e){} 
try
{
h='<a href='+helpl+' target=_blank ref=nofollow title="'+helpt+'">&nbsp;'+helpa+'&nbsp;</a>';
mt['forhelp']=h;
sete('forhelp','forhelp');
}
catch(e){} 
try
{
h="<a href=http://www.addthis.com/bookmark.php onclick=";
h+='"'+"return addthis_click();"+'"';
h+=" target=_blank><img src="+url__root+"/pic/button/bookmark.png width=125 height=16 border=0 alt='Bookmark and Share'></a>";
mt['forbook']=h;
sete('forbook','forbook');
}
catch(e){} 
try
{
h='<a href='+aidl+' target=_blank ref=nofollow title="'+aidt+'">&nbsp;'+aida+'&nbsp;</a>';
mt['foraid']=h;
sete('foraid','foraid');
}
catch(e){} 
pu=csu+sp+'&print&modus=prepare&theme=folder-'+work__folder;
pt='Kapitel ausdrucken';
try
{
ih=gete('forprint');
if(ih==''){ih=' '+pt+' '}
            	h='<a href='+pu+' target=_blank ref=nofollow>'+ih+'</a>';
mt['forprint']=h;
sete('forprint','forprint');
}
catch(e){} 
if(r)
{
for (i=0;i<rel__href;i++)
{
try
{
document.getElementById("relh"+i).href=relocate_url(document.getElementById("relh"+i).href);
}
catch(e){}
}
for (i=0;i<rel__src;i++)
{
try
{
document.getElementById("rels"+i).src=relocate_url(document.getElementById("rels"+i).src);
}
catch(e){}
}
for(var p in printt)
{
printt[p]=relocate_url(printt[p]);
}
if(php)
{
php=relocate_url(php);
}
}
gete("dirmain");gete("diryear");gete("dirsub");gete("navtop");
i=dl.indexOf("pic=");if(i>0){img_print(dl.substr(i+4,1))}
w='';
m="<span class=dirup onMouseOver=menu_over(this) onMouseOut=menu_out(this) onClick=";
s=">&nbsp;";
z= "&nbsp;</span><br>";
mb1='';
try
{
mb1=mt['forsubscribe']+'<br>';
}
catch(e){}
mb2='';
try
{
mb2=mt['forhelp']+'<br>';
}
catch(e){}
mb3='';
try
{
mb3=mt['forbook']+'<br>';
}
catch(e){}
mb4='';
try
{
mb4=mt['foraid']+'<br>';
}
catch(e){}
if(printt["pic"]||printt["rels0"])
{
h=m+"img_print(\"w\")"+s+"Bilder in hoher Auflösung"+z;
w+=h;
}
if(php) 
{ 
h=m+"new_window(php,0)"+s+"Panorama, h. Auflösung"+z; 
w+=h;
}
h=mt['forcontact'];
if(h){w+=h+'<br>'}
mt['dirup']=w+m+"menu('main')"+s+"Exit +menu"+z;
h='<a href='+pu+' target=_blank'+s+pt+'&nbsp;</a><br>';
w+=h;
mt['dirbottom']=mb1+mb2+mb3+mb4+w;
gete('bbuttons');
mt['buttoncopy']=rep(mt['bbuttons'],'id=','id=copy');
sete('buttoncopy','buttoncopy');
if(cl=="i"){return}
if(dss>0){document.getElementById('dirsub').scrollTop=dss*16}
if(dss>0){document.getElementById('dirsub').scrollTop=dss*16}
if(page__service.indexOf("&service=no")>=0){return} 
i=dl.indexOf ( "www." + work__site_tr);
if(i<0){ i=dl.indexOf ( work__site_tr); }
if(i<0){ url__internet="http:/" }
else { url__internet=dl.substr ( 0, i-1 ); }
sete('dirbottom','dirbottom');
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;
return url__internet + "/cgi.pege.org/cgi-bin/cgiwrap/all/service.pl" + info + page__service;
}
/*function load_service_contact (type,rec)
{
h='<a href='+csu+sp+'&formmail&modus=contact target=_blank ref=nofollow';
id='forcontact'+type+rec;
try{ih=document.getElementById(id).innerHTML}catch(e){return}
if(type=='')
{
h+=' title="'+cont+'">';
if(ih){h+=ih}
else{h+='&nbsp;'+cona+'&nbsp;</a>'}
}
else
{
h+='><img src='+url__root;
h+='/pic/button/rec'+rec+'_a.'+type+' OnMouseOver=bp("rec'+rec+'","c") OnMouseOut=bp("rec'+rec+'","a") border=0 id=rec'+rec;
h+=' alt="'+cont+'"></a>';
init_button('rec'+rec+'a=/rec'+rec+'_a.'+type);
init_button('rec'+rec+'c=/rec'+rec+'_c.'+type);
}
mt[id]=h;
sete(id,id);
} */
function relocate_url (u)
{
if(r==0){return u}
if(u.substr(0,7)=='http://')
{
u=u.substr(7);
if(u.substr(0,4)=="www."){u=u.substr(4)}
u=rel__url+u;
}
if (u.substr(u.length-1,1)=='/')
{
u+='index.htm';
}
return u;
}
function addthis_click()
{
var aturl ='http://www.addthis.com/bookmark.php';
aturl+='?v=10';
aturl+='&pub='+'pegefounder';
aturl+='&url='+encodeURIComponent(location.href);
aturl+='&title='+encodeURIComponent(document.title);
window.open(aturl,'addthis','scrollbars=yes,menubar=no,width=620,height=620,resizable=yes,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100'); 
return false;
}
