/***
* in Verbindung mit hover Effect das Bild vergrößern und wieder verkleinern
****/

function einblenden(elem) {
	$(elem).css({'z-index' : '110'}); /*Add a higher z-index value so this image stays on top*/ 
	$(elem).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
		.animate({
			marginTop: '-5px', /* The next 4 lines will vertically align this image */ 
			marginLeft: '-5px',
			top: '2%',
			left: '2%',
			width: '50px', /* Set new width */
			height: '40px', /* Set new height */
			padding: '5px'
		}, 400); /* this value of "200" is the speed of how fast/slow this hover animates */							
}		
function ausblenden(elem, force) {
	if (force || !$(elem).hasClass('activeSlide')){ /* force = funktion erzwingen, Aktives Element nicht verkleinern */
		$(elem).css({'z-index' : '100'}); /* Set z-index back to 0 */
		$(elem).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
			.animate({
				marginTop: '0', /* Set alignment back to default */
				marginLeft: '0',
				top: '0',
				left: '0',
				width: '40px', /* Set width back to default */
				height: '30px', /* Set height back to default */
				padding: '5px'
			}, 600);
	}		
}
