function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3))
{
window.external.AddFavorite("http://www.owl-infoliner.de"," die Informationsplattform für OstWestfalen-Lippe!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;


var ver=0;
var ns=navigator.userAgent;

if (ns.indexOf("Mozilla") != -1) {
 if (ns.indexOf("3.",2)!=-1 ||
     ns.indexOf("4.",2)!=-1 ||
     ns.indexOf("5.",2)!=-1) {
  ver=1;
 }
}

if (ver==1) {
  max = 4;
  var b_an  = new Array(max);
  var b_aus = new Array(max);
  var bild  = new Array(max);
  var mbild=0;

  for (i=1;i<max;i++) {
    b_an[i]  = new Image();
    b_an[i].src = "images/e_b" + i + "_on.gif";
    b_aus[i] = new Image();
    b_aus[i].src = "images/e_b" + i + "_off.gif";
    bild[i]  = 0;
  }

}


function an(i){
        if (ver==1) {
        document.images["b"+i].src=b_an[i].src;
        }
        return true;
}

function aus(i){
        if ((ver==0) || (bild[i] == 1)) {
          return true;
        }
        document.images["b"+i].src=b_aus[i].src;
        return true;
}

function dies(idx) {
  if(idx==mbild){return true;}
  mbild=idx;
  for (i=1; i< max;i++) {
    if (bild[i] == 1) {
      bild[i] = 0;
      document.images["b"+i].src=b_aus[i].src;
    }
  }
  bild[idx] = 1;

  return true;
}