
// Home-Startseite-Button
	home_startseite_inactive = new Image();
	home_startseite_inactive.src = "img/home_startseite_inactive.jpg";   /* inaktive Grafik */
	home_startseite_active = new Image();
	home_startseite_active.src = "img/home_startseite_active.jpg";      /* aktive Grafik */	


/* Bilderwechsel */
	
function imageChange(Bildid,Tauschbildname){
	
	document.images[Bildid].src = "img/" + Tauschbildname + ".jpg";
}	

/* Senden-Button */

senden_inactive = new Image();
senden_inactive.src = "img/senden_inactive.jpg";   /* inaktive Grafik */
senden_active = new Image();
senden_active.src = "img/senden_active.jpg";      /* aktive Grafik */	

function inputImageChange(Tauschbildname){
	
	document.getElementById("senden").src = eval(Tauschbildname + ".src");
}	

	
// ******** Portfolio Seitenweise blättern **********/

	function changePortfolioZurueck(portfolioId){
		id = portfolioId - 1;
		if (id < 1){
			id = 12;
		}
		changePage(id);
	}

	function changePortfolioVor(portfolioId){
		id = portfolioId + 1;
		if (id > 12){
			id = 1;
		}
		changePage(id);
	}

	function changePage(id){
	
		if (id == '1') { url = "portfolio_autouni.php";	}
		if (id == '2') { url = "portfolio_banson.php";	}
		if (id == '3') { url = "portfolio_curioso.php";	}
		if (id == '4') { url = "portfolio_eon.php";	}
		if (id == '5') { url = "portfolio_jacobkempert.php";	}
		if (id == '6') { url = "portfolio_kinderkram.php";	}
		if (id == '7') { url = "portfolio_landniedersachsen.php";	}
		if (id == '8') { url = "portfolio_lufthansa.php";	}
		if (id == '9') { url = "portfolio_netzlink.php";	}
		if (id == '10') { url = "portfolio_steckerumzuege.php"; }
		if (id == '11') { url = "portfolio_volkswagenairportservice.php"; }
		if (id == '12') { url = "portfolio_volkswagencoaching.php"; }
		
		window.location.href = url;
		return false;

	}


// ******* Portfolio: Thumbnails ins große Bild laden und Text austauschen ****************/

function swap(BildURL,TextCatNum){

	/* Bild austauschen */
	$('bigimage').hide();
	document.images['bigimage'].src = BildURL + ".jpg";
	fadeIn('bigimage');
	
	/* Text austauschen */
	if(document.getElementById('textCat')){
		var entry = document.getElementById('textCat').getElementsByTagName('p').length;
		for (i = 1; i <= entry; i++) {
			$('textCat'+i).setStyle({display: 'none'});
			$(TextCatNum).setStyle({display: 'block'});
		}
	}
}


//******* Image langsam einblenden ****************/

function fadeIn(id){
	$(id).setOpacity(0);
	$(id).setStyle({display: 'block'});

	new Effect.Opacity(
		   id, { 
		      from: 0.0, 
		      to: 1.0,
		      duration: 1.0
		   });
}

/*function appear(id){
new Effect.Appear(id, { duration: 3.0 });
}
*/



