// Bildtausch
// Button anlegen
function button(imgPath_out, imgPath_over) {
	  this.over	= new Image()
	  this.out	= new Image()
	  this.over.src	= imgPath_over
	  this.out.src	= imgPath_out
}
// Vorausladen der Bilder
var	picture	= new Array()
var themePath = '/butts/';
function preload() {
picture["butt1a"]		= new button(themePath + "butt1a.jpg", themePath + "butt1b.jpg")
picture["butt2a"]		= new button(themePath + "butt2a.jpg", themePath + "butt2b.jpg")
picture["butt3a"]		= new button(themePath + "butt3a.jpg", themePath + "butt3b.jpg")
picture["butt4a"]		= new button(themePath + "butt4a.jpg", themePath + "butt4b.jpg")
picture["butt5a"]		= new button(themePath + "butt5a.jpg", themePath + "butt5b.jpg")
}
preload();

// img-Bild tauschen
function changeImg(Id,Event) {
	  if (Event == 'over') {
		  document.images[Id].src	= picture[Id].over.src
	  }
	  if (Event == 'out') {
		  document.images[Id].src	= picture[Id].out.src
	  }
}

