function showNaviElement(element){
	element.className += "hover";
}

function hideNaviElement(element){
	element.className = element.className = "";
}

function moveGalleryPictures(direction) {
	if(direction == 'right') {		 
		if(slideShowActualIndex + 1 <= slideShowMaxIndex) {			
			slideShowActualIndex  = slideShowActualIndex + 1;			
			$('slideShowImage' + slideShowActualIndex).show();
			$('slideShowText' + slideShowActualIndex).show();
			actualIndex = slideShowActualIndex + 1;
			maxIndex = slideShowMaxIndex + 1;
			$('pageCounterText').innerHTML = actualIndex + "/" + maxIndex + " Bilder";
			displayGalleryButtons(slideShowActualIndex);		
			for(var i = 0; i <= slideShowMaxIndex; ++i) {
				if(i != slideShowActualIndex){
					$('slideShowImage' + i).hide();
					$('slideShowText' + i).hide();
				}			
			}	
		}
	
	}
	
	if(direction == 'left') {
		if(slideShowActualIndex - 1 >= 0) {			
			slideShowActualIndex  = slideShowActualIndex - 1;
			$('slideShowImage' + slideShowActualIndex).show();
			$('slideShowText' + slideShowActualIndex).show();
			actualIndex = slideShowActualIndex + 1;
			maxIndex = slideShowMaxIndex + 1;
			$('pageCounterText').innerHTML = actualIndex + "/" + maxIndex + " Bilder";
			displayGalleryButtons(slideShowActualIndex);		
			for(var i = 0; i <= slideShowMaxIndex; ++i) {
				if(i != slideShowActualIndex){
					$('slideShowImage' + i).hide();
					$('slideShowText' + i).hide();
				}			
			}	
		}
		
	}
	
}

function displayGalleryButtons(imageId) {
	if(imageId == slideShowMaxIndex) {
		$('right').hide();
	} else if(imageId == 0) {
		$('left').hide();
	} else {
		$('left').show();
		$('right').show();
	}
	if(imageId == 1 && slideShowMaxIndex == 1) {
		$('left').show();
	}
	if(imageId == 0 && slideShowMaxIndex == 1) {
		$('right').show();
	}
}


	
