/**
*	@description Function to change two big images and change the thumb's state to active when user uses zoom button
*	@param string ImageID The medium Image
*	@param string NewImage The new medium Image
*	@param string BigImageID The big Image
*	@param string NewBigImage The new big Image
*	@param string ActiveThumb The active thumbnail
*	@author Rudi Bieller
*	@copyright four for business AG <www.4fb.de>
*/
function changeImage(ImageID, NewImage, BigImageID, NewBigImage, ActiveThumb)
{
	var myBigImage = document.getElementById(BigImageID);
	var myMainImage = document.getElementById(ImageID);
	var myActiveThumb = document.getElementById(ActiveThumb);
	var allThumbs = new Array('thumb1', 'thumb2', 'thumb3', 'thumb4', 'thumb5', 'thumb6', 'thumb7', 'thumb8');
	// change main image
	myMainImage.src=NewImage;
	myBigImage.src=NewBigImage;
	// set clicked thumb to active (all others must be deselected)
	for (i=0;i<allThumbs.length; i++) {
		currentThumb = document.getElementById(allThumbs[i]);
		if (currentThumb) { currentThumb.className = "inactive" };
	}
	myActiveThumb.className = "active";
	return false;
}
