//
// mouseover.js
// (C) Copyright 8/2002 Joerg Noack (jno@isno.de)
//

but_name = new Array(
  "but-dasbuch", "but-derwettbewerb", "but-diehotels", "but-links", "but-kontakt", "but-empfehlung", "but-startseite");
var typ = "gif";

but_off_pic = new Array();
but_on_pic  = new Array();

for (i in but_name) {
  but_off_pic[but_name[i]] = new Image;
  but_off_pic[but_name[i]].src = imgprefix+"images/"+but_name[i]+"-0."+typ;
  but_on_pic[but_name[i]] = new Image;
  but_on_pic[but_name[i]].src = imgprefix+"images/"+but_name[i]+"-1."+typ;
}

if (selected != "") on(selected);

function on(but) {
  self.document.images[but].src = but_on_pic[but].src;
}

function off(but) {
  if (but != selected) self.document.images[but].src = but_off_pic[but].src;
}

function select(but) {
  if ((selected != "") && (selected != but)) 
// macht bei nicht-frame-aufbau keinen sinn und führt zu programmabbruch
//    self.document.images[selected].src = but_off_pic[selected].src;
  selected = but;
}
