function showPanel(id) {
	$(".rotatorPanel").stop(true, true);
	$(".rotatorPanel:visible").stop(true, true).fadeOut("200", function() {
		$("#"+id).fadeIn();
	});
	
	$(".selectedNav").removeClass("selectedNav");
	$("#"+id+"Nav").addClass("selectedNav");
	
	
}
function nextPanel() {
	if ($(".rotatorPanel:visible").attr("id") == "diagnosis") {
		showPanel("awareness");
	} else {
		showPanel($(".rotatorPanel:visible").next().attr("id"));
	}
}
var interval = setInterval(function() {nextPanel()}, 10000);


	$(".rotatorPanel").hide();
	$("#awareness").show();
	$("#awarenessNav").addClass("selectedNav");



$("#awarenessNav").mouseover(function() {showPanel("awareness"); clearInterval(interval);});
$("#preventionNav").mouseover(function() {showPanel("prevention"); clearInterval(interval);});
$("#protectionNav").mouseover(function() {showPanel("protection"); clearInterval(interval);});
$("#detectionNav").mouseover(function() {showPanel("detection"); clearInterval(interval);});
$("#diagnosisNav").mouseover(function() {showPanel("diagnosis"); clearInterval(interval);});
