// Bildtausch
// Button anlegen
function button(imgPath_out, imgPath_over) {
	  this.over	= new Image()
	  this.over.src	= imgPath_over
	  this.out	= new Image()
	  this.out.src	= imgPath_out
}

// Vorausladen der Bilder
var	picture	= new Array()
var themePath = '/objects/nav/';
var themePath2 = '/objects/photoillu/';
var themePath3 = '/objects/retouching/';
function preload() {
// Front page navigation	
	  picture["00"]	= new button("/objects/logosquare.gif")
	  picture["01"]	= new button("/objects/bg-px.gif")
	  picture["fn-01"]	= new button(themePath + "fn-01.jpg", themePath + "fn-01-o.jpg")
	  picture["fn-02"]	= new button(themePath + "fn-02.jpg", themePath + "fn-02-o.jpg")
	  picture["fn-03"]	= new button(themePath + "fn-03.jpg", themePath + "fn-03-o.jpg")
	  picture["fn-04"]	= new button(themePath + "fn-04.jpg", themePath + "fn-04-o.jpg")
	  picture["fn-05"]	= new button(themePath + "fn-05.jpg", themePath + "fn-05-o.jpg")
		
// Main navigation sidebar
	  picture["mn-01"]	= new button(themePath + "mn-01.jpg", themePath + "mn-01-o.jpg")
	  picture["mn-02"]	= new button(themePath + "mn-02.jpg", themePath + "mn-02-o.jpg")
	  picture["mn-03"]	= new button(themePath + "mn-03.jpg", themePath + "mn-03-o.jpg")
	  picture["mn-04"]	= new button(themePath + "mn-04.jpg", themePath + "mn-04-o.jpg")
	  picture["mn-05"]	= new button(themePath + "mn-05.jpg", themePath + "mn-05-o.jpg")
	  picture["mn-06"]	= new button(themePath + "mn-06.jpg", themePath + "mn-06-o.jpg")
	  picture["mn-07"]	= new button(themePath + "mn-07.jpg", themePath + "mn-07-o.jpg")
	  picture["mn-08"]	= new button(themePath + "mn-08.jpg", themePath + "mn-08-o.jpg")
	  picture["mn-09"]	= new button(themePath + "mn-09.jpg", themePath + "mn-09-o.jpg")
	  picture["mn-10"]	= new button(themePath + "mn-10.jpg", themePath + "mn-10-o.jpg")
	  picture["mn-11"]	= new button(themePath + "mn-11.jpg", themePath + "mn-11-o.jpg")
	  picture["mn-12"]	= new button(themePath + "mn-12.jpg", themePath + "mn-12-o.jpg")
	  picture["mn-13"]	= new button(themePath + "mn-13.jpg", themePath + "mn-13-o.jpg")
	  picture["mn-14"]	= new button(themePath + "mn-14.jpg", themePath + "mn-14-o.jpg")

// Sub navigation
	  picture["vis-a"]	= new button(themePath + "vis-a.jpg", themePath + "vis-a-o.jpg")
	  picture["txt-about1"] = new button(themePath + "txt-about1.jpg", themePath + "txt-about1-o.jpg")
	  picture["txt-about2"] = new button(themePath + "txt-about2.jpg", themePath + "txt-about2-o.jpg")
	  picture["txt-press1"]	= new button(themePath + "txt-press1.jpg", themePath + "txt-press1-o.jpg")
	  picture["txt-press2"]	= new button(themePath + "txt-press2.jpg", themePath + "txt-press2-o.jpg")

// Thumbnails photo illustration		
	  picture["th-pi-1.1"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.1-o.jpg")
	  picture["th-pi-1.2"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.2-o.jpg")
	  picture["th-pi-1.3"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.3-o.jpg")
	  picture["th-pi-1.4"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.4-o.jpg")
	  picture["th-pi-1.5"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.5-o.jpg")
	  picture["th-pi-1.6"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.6-o.jpg")
	  picture["th-pi-1.7"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.7-o.jpg")
	  picture["th-pi-1.8"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.8-o.jpg")
	  picture["th-pi-1.9"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.9-o.jpg")
	  picture["th-pi-1.10"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.10-o.jpg")
	  picture["th-pi-1.11"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-1.11-o.jpg")
	  picture["th-pi-2.1"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.1-o.jpg")
	  picture["th-pi-2.2"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.2-o.jpg")
	  picture["th-pi-2.3"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.3-o.jpg")
	  picture["th-pi-2.4"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.4-o.jpg")
	  picture["th-pi-2.5"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.5-o.jpg")
	  picture["th-pi-2.6"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.6-o.jpg")
	  picture["th-pi-2.7"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.7-o.jpg")
	  picture["th-pi-2.8"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.8-o.jpg")
	  picture["th-pi-2.9"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.9-o.jpg")
	  picture["th-pi-2.10"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.10-o.jpg")
	  picture["th-pi-2.11"]	= new button("/objects/thumb.jpg", themePath2 + "th-pi-2.11-o.jpg")
	  picture["th-pw-1.1"]	= new button("/objects/thumb.jpg", themePath2 + "th-pw-1.1-o.jpg")
	  picture["th-pw-1.2"]	= new button("/objects/thumb.jpg", themePath2 + "th-pw-1.2-o.jpg")
	  picture["th-pw-1.3"]	= new button("/objects/thumb.jpg", themePath2 + "th-pw-1.3-o.jpg")
	  picture["th-pw-1.4"]	= new button("/objects/thumb.jpg", themePath2 + "th-pw-1.4-o.jpg")
	  picture["th-pw-1.5"]	= new button("/objects/thumb.jpg", themePath2 + "th-pw-1.5-o.jpg")
		
// Thumbnails retouching
	  picture["th-rt-01"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-01-o.jpg")
	  picture["th-rt-02"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-02-o.jpg")
	  picture["th-rt-03"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-03-o.jpg")
	  picture["th-rt-04"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-04-o.jpg")
	  picture["th-rt-05"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-05-o.jpg")
	  picture["th-rt-06"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-06-o.jpg")
	  picture["th-rt-07"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-07-o.jpg")
	  picture["th-rt-08"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-08-o.jpg")
	  picture["th-rt-09"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-09-o.jpg")
	  picture["th-rt-21"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-21-o.jpg")
	  picture["th-rt-22"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-22-o.jpg")
	  picture["th-rt-23"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-23-o.jpg")
	  picture["th-rt-24"]	= new button("/objects/thumb.jpg", themePath3 + "th-rt-24-o.jpg")
	  
// Thumbnails case studies
	  picture["th-cs-01"]	= new button("/objects/thumb.jpg", themePath3 + "th-cs-01-o.jpg")
	  picture["th-cs-02"]	= new button("/objects/thumb.jpg", themePath3 + "th-cs-02-o.jpg")
	  picture["th-cs-03"]	= new button("/objects/thumb.jpg", themePath3 + "th-cs-03-o.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
	  }
}
