function ScaleWin(){
 if (document.all){
  corY=0;
  corX=0;}
 else{
  corY=150;
  corX=10;}
 if (screen.heigh<=700){
  top.resizeTo(800-corX,screen.height-corY);
  top.moveTo(Math.round(screen.width/2)-400,0);}
 else{
  top.resizeTo(800-corX,700-corY);
  top.moveTo(Math.round(screen.width/2)-400,Math.round(screen.height/2)-350);}
}

function SetHighL(name,type){
    file=eval('document.'+name+'.src');
 	file=file.substr(0,file.length-5)+type+file.substr(file.length-4,4);
 	eval('document.'+name+'.src=file');
}

function HighL(i){
 file=eval('document.'+i+'.src');
 switch (file.substr(file.length-5,1)){
  	case '0':	SetHighL(i,'1');break;
  	case '1':	SetHighL(i,'0');break;
  	case '2':	break;}
}

function NavAct(j){
 for(i=1;i<=5;i++){
    SetHighL('b'+i,'0')
 	file='b_.gif';
 	eval('document.sb'+i+'.src=file');}
 SetHighL(j,'2')
 file='b_FFFFFF.gif';
 eval('document.s'+j+'.src=file');
}

function OpenWindow(url){
 fname = window.open(url,'iclip','width=500,height=600,innerWidth=400,innerHeight=600,resizable=no,scrollbars=yes');
}

function OpenBildHoch(url){
 hbild = window.open('../b.html','hbild','width=300,height=420,innerWidth=290,innerHeight=300,resizable=no,scrollbars=no,screenX=70,screenY=70');
 hbild.document.open();
 hbild.document.write('<img src="'+url+'" border=0>');
 hbild.document.close();
 hbild.focus();

}

function OpenBildQuer(url){
 qbild = window.open('../b.html','qbild','width=480,height=350,innerWidth=480,innerHeight=350,resizable=no,scrollbars=no,screenX=50,screenY=50');
 qbild.document.open();
 qbild.document.write('<img src="'+url+'" border=0>');
 qbild.document.close();
 qbild.focus();
}

function GotoSite(kap,nr){
 parent.nav.location.href='site'+kap+'_nav'+nr+'.html';
 parent.sit.location.href='site'+kap+'_site'+nr+'.html';
 parent.pri.location.href='site'+kap+'_print'+nr+'.html';
}