// 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 = '/nav/';

function preload() {
	 
	 // Fashion section navigation	
	  picture["fash1a"]	= new button(themePath + "fash1a.gif", themePath + "fash1b.gif")
	  picture["fash2a"]	= new button(themePath + "fash2a.gif", themePath + "fash2b.gif")
	  picture["fash3a"]	= new button(themePath + "fash3a.gif", themePath + "fash3b.gif")
	  picture["fash4a"]	= new button(themePath + "fash4a.gif", themePath + "fash4b.gif")
	  picture["fash-clientsa"]	= new button(themePath + "fash-clientsa.gif", themePath + "fash-clientsb.gif")
	  picture["fash-abouta"]	= new button(themePath + "fash-abouta.gif", themePath + "fash-aboutb.gif")
	  picture["fash-contacta"]	= new button(themePath + "fash-contacta.gif", themePath + "fash-contactb.gif")
	  
// Portrait section navigation	
	  picture["pt1a"]	= new button(themePath + "pt1a.gif", themePath + "pt1b.gif")
	  picture["pt2a"]	= new button(themePath + "pt2a.gif", themePath + "pt2b.gif")
	  picture["pt3a"]	= new button(themePath + "pt3a.gif", themePath + "pt3b.gif")
	  picture["pt4a"]	= new button(themePath + "pt4a.gif", themePath + "pt4b.gif")
	  picture["pt-clientsa"]	= new button(themePath + "pt-clientsa.gif", themePath + "pt-clientsb.gif")
	  picture["pt-abouta"]	= new button(themePath + "pt-abouta.gif", themePath + "pt-aboutb.gif")
	  picture["pt-contacta"]	= new button(themePath + "pt-contacta.gif", themePath + "pt-contactb.gif")
	  
 // Fine Art section navigation	
	  picture["fa1a"]	= new button(themePath + "fa1a.gif", themePath + "fa1b.gif")
	  picture["fa2a"]	= new button(themePath + "fa2a.gif", themePath + "fa2b.gif")
	  picture["fa3a"]	= new button(themePath + "fa3a.gif", themePath + "fa3b.gif")
	  picture["fa4a"]	= new button(themePath + "fa4a.gif", themePath + "fa4b.gif")
	  picture["fa-showsa"]	= new button(themePath + "fa-showsa.gif", themePath + "fa-showsb.gif")
	  picture["fa-abouta"]	= new button(themePath + "fa-abouta.gif", themePath + "fa-aboutb.gif")
	  picture["fa-contacta"]	= new button(themePath + "fa-contacta.gif", themePath + "fa-contactb.gif")
	  
 // Architecture section navigation	
	  picture["arch1a"]	= new button(themePath + "arch1a.gif", themePath + "arch1b.gif")
	  picture["arch2a"]	= new button(themePath + "arch2a.gif", themePath + "arch2b.gif")
	  picture["arch3a"]	= new button(themePath + "arch3a.gif", themePath + "arch3b.gif")
	  picture["arch4a"]	= new button(themePath + "arch4a.gif", themePath + "arch4b.gif")
	  picture["arch5a"]	= new button(themePath + "arch5a.gif", themePath + "arch5b.gif")
	  picture["arch-clientsa"]	= new button(themePath + "arch-clientsa.gif", themePath + "arch-clientsb.gif")
	  picture["arch-abouta"]	= new button(themePath + "arch-abouta.gif", themePath + "arch-aboutb.gif")
	  picture["arch-contacta"]	= new button(themePath + "arch-contacta.gif", themePath + "arch-contactb.gif")
	    
 // Section navigation	
	  picture["section-fasha"]	= new button(themePath + "section-fasha.gif", themePath + "section-fashb.gif")
	  picture["section-pta"]	= new button(themePath + "section-pta.gif", themePath + "section-ptb.gif")
	  picture["section-fineaa"]	= new button(themePath + "section-fineaa.gif", themePath + "section-fineab.gif")
	  picture["section-archa"]	= new button(themePath + "section-archa.gif", themePath + "section-archb.gif")
 }
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
	  }
}
