/**
 * Turns the slideshow on.
 * @param delay
 *	The number of milliseconds the slide should show.
 * @param midfix
 *	Any additional URL string data that needs to be place in the hyperlink so it will link correctly.
 */
function initSlideshow(delay, midfix) {
	var isClean = ((window.location.href).indexOf("=") < 0);
	// Set a timer to do it every so often.
	setInterval(function() {
		$.get("?q=pr/billboard", {}, function(data, textStatus) {
			$(".billboard").empty();
			slide = document.createElement("img");
			data = data.split("|");
			slide.src = data[0];
			slide.alt = "Image";
			slide.title = "Image";
			slide = $(slide);
			link = document.createElement("a");
			link.href = "http://" + window.location.host + "/" + midfix + "/";
			if (!isClean) {
				link.href += "?q=";
			}
			link.href += "pr/" + data[1];
			link = $(link);
			link.append(slide);
			$(".billboard").append(link);
		}, "text");
	}, delay);
}