	var lastdivShow;
	var lastdivHide;
	var animationDone = true;
	
	function showDiv(divShow, divHide) {
		if ((lastdivShow != '') && (lastdivShow != divShow)) {
			//Hide lastdivShow:
			jQuery("#" + lastdivShow).slideUp(200, showDiv2(lastdivHide));
			//jQuery("#" + lastdivHide).show();
			lastdivShow = divShow;
			lastdivHide = divHide;

			jQuery("#" + divShow).slideDown(400, hideDiv(divHide));
			//jQuery("#" + divHide).hide();
			
		}
	}
	
	function hideDiv(divHide) {
		jQuery("#" + divHide).hide();
	}
	function showDiv2(divShow) {
		jQuery("#" + divShow).show();
	}

	function toggleDiv2(divHide) {
		jQuery("#" + divHide).toggle();
	}
	
	function toggleDiv(divShow, divHide, imgButton) {
		var imgButton = document.getElementById(imgButton);
		var theShow = document.getElementById(divShow);
	
		if (theShow.style.display == 'none') {
			imgButton.src = 'interface/slide_up_small.png';
		} else {
			imgButton.src = 'interface/slide_down_small.png';
		}
		jQuery("#" + divShow).slideToggle(300, toggleDiv2(divHide));
	}

	function animateThumb(imgAnimate, thumbwidth) {
		jQuery("#" + imgAnimate).animate({marginRight: -(thumbwidth - 44) + "px", width: thumbwidth + "px"}, 200);
		
	}

	function toggleDivSimple(divShow, imgButton, speed) {
		var imgButton = document.getElementById(imgButton);
		var theShow = document.getElementById(divShow);
	
		if (theShow.style.display == 'none') {
			imgButton.src = 'interface/slide_up_small.png';
		} else {
			imgButton.src = 'interface/slide_down_small.png';
		}
		jQuery("#" + divShow).slideToggle(speed);
	}

