var currentInterviewPage = 1;

function loadSlidePage(fileName, element) {
	$(".menulink").css("color", "white");
	$(element).css("color", "#F40000");

	var newHeight;
	$.ajax({
		url: "./php/ajax/"+fileName+".php",
		type: "POST",
		success: function(data) {
			$("#content").html(data);
			$("#contentwrapper").animate({
				height: $("#content").height() <= "92" ? newHeight = "120" : newHeight = $("#content").height() + 38
			}, 1500);
		}
	});	
}

function loadNewsletter(fileName) {
	$.ajax({
		url: "./php/ajax/"+fileName+".php",
		type: "POST",
		success: function(data) {
			$("#videoOverlay").html(data);
		}
	});	
}

function showInterviewPage(pageNumber) {
	$(".question-page").hide();
	$("#question"+pageNumber).show();	
	currentInterviewPage = pageNumber;
}

function interviewPageBack() {
	if(currentInterviewPage > 1) {
		currentInterviewPage--;
		$(".question-page").hide();
		$("#question"+currentInterviewPage).show();		
	}	
}

function interviewPageForward() {
	if(currentInterviewPage < 10) {
		currentInterviewPage++;
		$(".question-page").hide();
		$("#question"+currentInterviewPage).show();		
	}	
}

function showEditionDiv(divId) {
	$(".edition-div").hide();
	$("#"+divId).show();
}

function setEditionTabActive(tabDivId) {
	$(".edition-tab").css("color", "#FFFFFF");
	$("#"+tabDivId).css("color", "#F40000");
}
