// Bildtausch
// Button anlegen
function buttonStep(imgPath_out, imgPath_over, imgPath_step) {
	  this.over	= new Image()
	  this.over.src	= imgPath_over
	  this.out	= new Image()
	  this.out.src	= imgPath_out
	  this.step	= new Image()
	  this.step.src	= imgPath_step
}
// Vorausladen der Bilder
var	step	= new Array()
var themePath3 = '/objects/retouching/';
function preloadSteps() {
// Retouching phase buttons
	  step["step-rt-01-01"]	= new buttonStep(themePath3 + "step-rt-01-01.jpg", themePath3 + "step-rt-01-01-o.jpg", themePath3 + "main1-step1.jpg")
	  step["step-rt-01-02"]	= new buttonStep(themePath3 + "step-rt-01-02.jpg", themePath3 + "step-rt-01-02-o.jpg", themePath3 + "main1-step2.jpg")
	  step["step-rt-01-03"]	= new buttonStep(themePath3 + "step-rt-01-03.jpg", themePath3 + "step-rt-01-03-o.jpg", themePath3 + "main1-step3.jpg")
	  
	  step["step-rt-02-01"]	= new buttonStep(themePath3 + "step-rt-02-01.jpg", themePath3 + "step-rt-02-01-o.jpg", themePath3 + "main2-step1.jpg")
	  step["step-rt-02-02"]	= new buttonStep(themePath3 + "step-rt-02-02.jpg", themePath3 + "step-rt-02-02-o.jpg", themePath3 + "main2-step2.jpg")
	  step["step-rt-02-03"]	= new buttonStep(themePath3 + "step-rt-02-03.jpg", themePath3 + "step-rt-02-03-o.jpg", themePath3 + "main2-step3.jpg")
	  step["step-rt-02-04"]	= new buttonStep(themePath3 + "step-rt-02-04.jpg", themePath3 + "step-rt-02-04-o.jpg", themePath3 + "main2-step4.jpg")
	  step["step-rt-02-05"]	= new buttonStep(themePath3 + "step-rt-02-05.jpg", themePath3 + "step-rt-02-05-o.jpg", themePath3 + "main2-step5.jpg")
	  
	  step["step-rt-03-01"]	= new buttonStep(themePath3 + "step-rt-03-01.jpg", themePath3 + "step-rt-03-01-o.jpg", themePath3 + "main3-step1.jpg")
	  step["step-rt-03-02"]	= new buttonStep(themePath3 + "step-rt-03-02.jpg", themePath3 + "step-rt-03-02-o.jpg", themePath3 + "main3-step2.jpg")
	  
	  step["step-rt-04-01"]	= new buttonStep(themePath3 + "step-rt-04-01.jpg", themePath3 + "step-rt-04-01-o.jpg", themePath3 + "main4-step1.jpg")
	  step["step-rt-04-02"]	= new buttonStep(themePath3 + "step-rt-04-02.jpg", themePath3 + "step-rt-04-02-o.jpg", themePath3 + "main4-step2.jpg")
	  step["step-rt-04-03"]	= new buttonStep(themePath3 + "step-rt-04-03.jpg", themePath3 + "step-rt-04-03-o.jpg", themePath3 + "main4-step3.jpg")
	  step["step-rt-04-04"]	= new buttonStep(themePath3 + "step-rt-04-04.jpg", themePath3 + "step-rt-04-04-o.jpg", themePath3 + "main4-step4.jpg")
	  step["step-rt-04-05"]	= new buttonStep(themePath3 + "step-rt-04-05.jpg", themePath3 + "step-rt-04-05-o.jpg", themePath3 + "main4-step5.jpg")
	  
	  step["step-rt-05-01"]	= new buttonStep(themePath3 + "step-rt-05-01.jpg", themePath3 + "step-rt-05-01-o.jpg", themePath3 + "main5-step1.jpg")
	  step["step-rt-05-02"]	= new buttonStep(themePath3 + "step-rt-05-02.jpg", themePath3 + "step-rt-05-02-o.jpg", themePath3 + "main5-step2.jpg")
	  
	  step["step-rt-06-01"]	= new buttonStep(themePath3 + "step-rt-06-01.jpg", themePath3 + "step-rt-06-01-o.jpg", themePath3 + "main6-step1.jpg")
	  step["step-rt-06-02"]	= new buttonStep(themePath3 + "step-rt-06-02.jpg", themePath3 + "step-rt-06-02-o.jpg", themePath3 + "main6-step2.jpg")
	  step["step-rt-06-03"]	= new buttonStep(themePath3 + "step-rt-06-03.jpg", themePath3 + "step-rt-06-03-o.jpg", themePath3 + "main6-step3.jpg")
	  step["step-rt-06-04"]	= new buttonStep(themePath3 + "step-rt-06-04.jpg", themePath3 + "step-rt-06-04-o.jpg", themePath3 + "main6-step4.jpg")
	  
	  step["step-rt-07-01"]	= new buttonStep(themePath3 + "step-rt-07-01.jpg", themePath3 + "step-rt-07-01-o.jpg", themePath3 + "main7-step1.jpg")
	  step["step-rt-07-02"]	= new buttonStep(themePath3 + "step-rt-07-02.jpg", themePath3 + "step-rt-07-02-o.jpg", themePath3 + "main7-step2.jpg")
	  
	  step["step-rt-08-01"]	= new buttonStep(themePath3 + "step-rt-08-01.jpg", themePath3 + "step-rt-08-01-o.jpg", themePath3 + "main8-step1.jpg")
	  step["step-rt-08-02"]	= new buttonStep(themePath3 + "step-rt-08-02.jpg", themePath3 + "step-rt-08-02-o.jpg", themePath3 + "main8-step2.jpg")
	  step["step-rt-08-03"]	= new buttonStep(themePath3 + "step-rt-08-03.jpg", themePath3 + "step-rt-08-03-o.jpg", themePath3 + "main8-step3.jpg")
	  
	  step["step-rt-09-01"]	= new buttonStep(themePath3 + "step-rt-09-01.jpg", themePath3 + "step-rt-09-01-o.jpg", themePath3 + "main9-step1.jpg")
	  step["step-rt-09-02"]	= new buttonStep(themePath3 + "step-rt-09-02.jpg", themePath3 + "step-rt-09-02-o.jpg", themePath3 + "main9-step2.jpg")
	  
	  step["step-rt-21-01"]	= new buttonStep(themePath3 + "step-rt-21-01.jpg", themePath3 + "step-rt-21-01-o.jpg", themePath3 + "main21-step1.jpg")
	  step["step-rt-21-02"]	= new buttonStep(themePath3 + "step-rt-21-02.jpg", themePath3 + "step-rt-21-02-o.jpg", themePath3 + "main21-step2.jpg")
	  step["step-rt-22-01"]	= new buttonStep(themePath3 + "step-rt-22-01.jpg", themePath3 + "step-rt-22-01-o.jpg", themePath3 + "main22-step1.jpg")
	  step["step-rt-22-02"]	= new buttonStep(themePath3 + "step-rt-22-02.jpg", themePath3 + "step-rt-22-02-o.jpg", themePath3 + "main22-step2.jpg")
	  step["step-rt-23-01"]	= new buttonStep(themePath3 + "step-rt-23-01.jpg", themePath3 + "step-rt-23-01-o.jpg", themePath3 + "main23-step1.jpg")
	  step["step-rt-23-02"]	= new buttonStep(themePath3 + "step-rt-23-02.jpg", themePath3 + "step-rt-23-02-o.jpg", themePath3 + "main23-step2.jpg")
	  step["step-rt-24-01"]	= new buttonStep(themePath3 + "step-rt-24-01.jpg", themePath3 + "step-rt-24-01-o.jpg", themePath3 + "main24-step1.jpg")
	  step["step-rt-24-02"]	= new buttonStep(themePath3 + "step-rt-24-02.jpg", themePath3 + "step-rt-24-02-o.jpg", themePath3 + "main24-step2.jpg")	
}
preloadSteps();

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