public static void nextSlide(){

	// Test whether there is a slide show
	if (SafetyNet.slideShow != null){
			// Retrieve the next slide ID if one is specified.
			if ((0 < SafetyNet.slideShow.getTree().elementAt(currentSlideID).getNext())
					&& (SafetyNet.slideShow.getTree().size() >= SafetyNet.slideShow.getTree().elementAt(currentSlideID).getNext() + 1)) {
				// Add the next slide to the history.
				currentSlideID = SafetyNet.slideShow.getTree().elementAt(currentSlideID).getNext();
				if (Debug.engine) System.out.println("ID entered onto stack : " + currentSlideID);

				// Update the section navigation bar with the new current slide.
				Gui.getSectionNav().updateCurrent(currentSlideID);

				// Render the next slide.
				playSlideshow();
			}
			else{
				if (Debug.engine) System.out.println("Engine -> nextSlide -> No next slide is specified in the data structure.");
			}
		}
	}