<!--dhtml.js (Bibliothek)-->

<!--hier die popups-->

function oeffnen(a){
window.open(a,'neu','width=540,height=500,scrollbars=yes')
}

<!--hier die Bildwechsel für das Hauptmenu-->
function bildwechsel (a,b) {
document.images[a].src='../../bilder/'+b;
return
}

var high='';
function setnav(a){
high_name='main'+a;
high_bild='main0'+a+'_h.gif';
bildwechsel(high_name,high_bild);
high=a;
}

function set_nav_off(){
for (i=1; i<8; i++ ) {
bildwechsel('main'+i,'main0'+i+'.gif');
}
}

function over(a){
set_nav_off();
bildwechsel('main'+a,'main0'+a+'_h.gif');
}

function out(){
bildwechsel('main'+high,'main0'+high+'_h.gif');
}

<!--Farbwechsel für die Submenus-->

function farbwechsel (a,b) {
if(ns) {
document.layers[a].backgroundColor=b;
}
if(ns6) {
document.getElementById(a).style.backgroundColor=b;
}
if(ie){
document.all[a].style.backgroundColor=b;
}
return
}

<!--hier die Bildwechsel für die Submenus-->

var high1='';
function setnav1(a,b){
if(a==1){
highfarbe="#FBBC54";
}
if(a==2){
highfarbe="#F172AC";
}
if(a==3){
highfarbe="#6B933E";
}
if(a==4){
highfarbe="#2C8AD6";
}
if(a==5){
highfarbe="#5AAA8C";
}
if(a==6){
highfarbe="#A8A9AD";
}
if(a==7){
highfarbe="#ADBFD2";
}

high_name1='sub'+b;
high_back1='back'+b;
high_bild1='subnav'+a+'_'+b+'h.gif';
bildwechsel(high_name1,high_bild1);
farbwechsel(high_back1,highfarbe);
high1=b;
}

function set_nav_off1(a,b){
if(b==1){
farbe="#FDE4BB";
}
if(b==2){
farbe="#F9C7DE";
}
if(b==3){
farbe="#C4D4B2";
}
if(b==4){
farbe="#ABD0EF";
}
if(b==5){
farbe="#BDDDD1";
}
if(b==6){
farbe="#D8DDD3";
}
if(b==7){
farbe="#D9E2EA";
}

for (i=1; i<=a; i++ ) {
bildwechsel('sub'+i,'subnav'+b+'_'+i+'.gif');
farbwechsel('back'+i,farbe);
}
}

function over1(a,b,c){
set_nav_off1(c,a);
bildwechsel('sub'+b,'subnav'+a+'_'+b+'h.gif');
farbwechsel('back'+b,highfarbe);
}

function out1(a,b,c){
set_nav_off1(c,b);
if(high1!=''){
bildwechsel('sub'+high1,'subnav'+b+'_'+high1+'h.gif');
farbwechsel('back'+high1,highfarbe);
}
}



<!--hier die Funktionen für Ein- und Ausblenden der Submenüs-->

if(navigator.appName=='Netscape' && !document.layers){
ns6=1;ie=0;ns=0;
}
else{
if(document.layers){
ns=1;ns6=0;ie=0;
}
else{
ie=1;ns6=0;ns=0;
}
}

function zeige_umen_over (a) {
if(ns) {
document.layers[a].visibility="show";
}
if(ns6) {
document.getElementById(a).style.visibility="visible";
}
if(ie){
document.all[a].style.visibility="visible";
}
}

function zeige_umen_out (a) {
if(ns) {
document.layers[a].visibility="hidden";
}
if(ns6) {
document.getElementById(a).style.visibility="hidden";
}
if(ie){
document.all[a].style.visibility="hidden";
}
}

function hideall(){
for (i=1; i<7; i++ ) {
zeige_umen_out('subnavi'+i);
}
}

function hideall_arrows(){
for (i=1; i<8; i++ ) {
zeige_umen_out('pfeil'+i);
}
}

<!--weitere Funktionen-->

vorgeladeneBilder=new Array();
function Bilderladen () {
  for (i=0; i<arguments.length ; i++ ) {
     Bild=new Image();
     Bild.src=arguments[i];
     vorgeladeneBilder[i]=Bild;
     }
return
}


var N4=false;
var IE=false;
var W3C=false;
// browserbestimmung
function checkBrowser () {

   if (document.layers)
    N4=true;
  else if (document.all)
    IE=true;
  else if (document.getElementById)
    W3C=true;
}


function dhtml_DivImage (url,name,id) {       //erwartet Bildquelle,Bildname,DivId
 if (N4)
document.layers[id].document.images[name].src=url
 else {
  if (IE)
  document.images[name].src=url
  else {
   if (W3C)
   document.getElementById(name).src=url
  }
 }
 return
}



function dhtml_obj(id) {
  if (N4)
    return document.layers[id];
  else if (IE)
    return document.all[id];
  else if (W3C)
    return document.getElementById(id);
}

function dhtml_style(id) {
  if (N4)
    return dhtml_obj(id);
  else if (IE || W3C)
    return dhtml_obj(id).style;
}

function dhtml_hide(id) {
        dhtml_style(id).visibility = "hidden";
    return
}

function dhtml_show(id) {
          dhtml_style(id).visibility = "visible";
    return
}

function dhtml_bcol(id,farbe) {
if (N4)
   dhtml_obj(id).bgColor=farbe;
  else if (IE || W3C)
   dhtml_obj(id).style.backgroundColor=farbe;
 return
}

function dhtml_bimg(id,url) {
if (N4)
   dhtml_obj(id).background.src=url;
  else if (IE || W3C)
   dhtml_obj(id).style.backgroundImage = 'url(' + url+ ')';
 return
}

function dhtml_write(id,text) {
if (N4)
   with (dhtml_obj(id)){
    document.write (text);
    document.close();
    }
  else if (IE || W3C)
   dhtml_obj(id).innerHTML = text;
 return
}

function dhtml_getX(id) {
    if (N4 || W3C)
      return parseInt(dhtml_style(id).left);
    else if (IE)
      return dhtml_style(id).posLeft;
}

function dhtml_getY(id) {
    if (N4 || W3C)
      return parseInt(dhtml_style(id).top);
    else if(IE)
      return dhtml_style(id).posTop;
}

function dhtml_setX(id, n) {
    if (N4)
      dhtml_style(id).left = n;
    else if (IE)
      dhtml_style(id).posLeft = n;
    else if (W3C)
      dhtml_style(id).left = n + "px";
}
function dhtml_setY(id, n) {
    if (N4)
      dhtml_style(id).top = n;
    else if (IE)
      dhtml_style(id).posTop = n;
    else if (W3C)
      dhtml_style(id).top = n + "px";
}

function dhtml_moveTo(id, x, y) {
    dhtml_setX(id, x);
    dhtml_setY(id, y);
}

function dhtml_moveBy(id, deltaX, deltaY) {
    var x = parseInt(dhtml_getX(id));
    var y = parseInt(dhtml_getY(id));
    x += deltaX;
    y += deltaY;
    dhtml_setX(id, x);
    dhtml_setY(id, y);
}
function dhtml_w_breite() {
  if (window.innerWidth)  //N4
    return window.innerWidth;
  else if (document.body) //IE-W3C
    return document.body.clientWidth;
}
function dhtml_w_hoehe() {
  if (window.innerHeight)
    return window.innerHeight;
  else if (document.body)
    return document.body.clientHeight;
}
function dhtml_div_breite(id) {
  if (N4)
    return dhtml_obj(id).document.width;
  else if (IE || W3C)
    return dhtml_obj(id).offsetWidth;
}
function dhtml_div_hoehe(id) {
  if (N4)
    return dhtml_obj(id).document.height;
  else if (IE || W3C)
    return dhtml_obj(id).offsetHeight;
}

function dhtml_zIndex (id,z) {
    dhtml_style(id).zIndex=z;
return
}
function dhtml_clip (id,newY1,newX1,newX2,newY2) {

obj=dhtml_style(id);
if(N4) {
     obj.clip.top =newY1;
     obj.clip.right =newX2;
     obj.clip.bottom =newY2;
     obj.clip.left =newX1;
    }
   if(IE||W3C) //W3C Dom
     {
      obj.clip='rect('+ newY1 + 'px '+ newX2 + 'px '+ newY2 +'px '+ newX1 +'px)';
     }

return
}
