function goToPage(page) {
	if (page.value.indexOf('http://') != -1) {
		window.location = (page.value);
	} else {
		window.location = ('http://www.jennifersuniverse.com/' + page.value);
	}
}

function outputTopBar() {
	document.write("	<div id=\"top-bar\">");
	document.write("		<a href=\"/\" target=\"_top\"><img src=\"/images/title/g7502382.gif\" alt=\"Jennifer's Universe\" height=\"30\" border=\"0\" align=\"right\" /></a>");

	outputFormTop();
	outputGoToSiteBox();
	document.write("		&nbsp;");
	outputGoToPicturesBox();
	outputFormBottom();

	document.write("	</div>");
	document.write("	<div id=\"content\">");
}

function outputBottomBar() {
	document.write("	</div>");
	document.write("	<div id=\"bottom-bar\">");
	document.write("		<a href=\"/\" target=\"_top\"><img src=\"/images/title/g7502382.gif\" alt=\"Jennifer's Universe\" height=\"30\" border=\"0\" align=\"right\" /></a>");

	outputFormTop();
	outputGoToSiteBox();
	document.write("		&nbsp;");
	outputGoToPicturesBox();
	document.write("		<a class=\"email\" href=\"mailto:jgerman@post.harvard.edu\">E-mail Jennifer</a> &nbsp; ");
	outputFormBottom();

	document.write("	</div>");
}

function outputWritingsBar() {
	document.write("	</div>");
	document.write("	<div id=\"writings-bar\">");
	document.write("		<a href=\"/\" target=\"_top\"><img src=\"/images/title/g7502382.gif\" alt=\"Jennifer's Universe\" height=\"30\" border=\"0\" align=\"right\" /></a>");

	outputFormTop();
	outputGoToStoriesBox();
	document.write("		&nbsp;");
	outputGoToCharactersBox();
	document.write("		<a class=\"email\" href=\"mailto:jgerman@post.harvard.edu\">E-mail Jennifer Michelle</a> &nbsp; ");
	outputFormBottom();

	document.write("	</div>");
}

function outputBottomWritingsBar() {
	document.write("	</div>");
	document.write("	<div id=\"bottom-bar\">");
	document.write("		<a href=\"/\" target=\"_top\"><img src=\"/images/title/g7502382.gif\" alt=\"Jennifer's Universe\" height=\"30\" border=\"0\" align=\"right\" /></a>");

	outputFormTop();
	outputGoToStoriesBox();
	document.write("		&nbsp;");
	outputGoToCharactersBox();
	document.write("		<a class=\"email\" href=\"mailto:jgerman@post.harvard.edu\">E-mail Jennifer Michelle</a> &nbsp; ");
	outputFormBottom();

	document.write("	</div>");
}

function outputFormTop() {
	document.write("		<form name=\"goto\" method=\"post\" action=\"\">");
	document.write("			<span id=\"go-tos\">");
}

function outputFormBottom() {
	document.write("			</span>");
	document.write("		</form>");
}

function outputGoToSiteBox() {
	document.write("			<span id=\"go-to-site\">Go To Site:");
	document.write("			<select name=\"gotosite\" onchange=\"goToPage(this)\">");
	document.write("				<option value=\"index.html\">--- Choose ---</option>");
	document.write("				<option value=\"index.html\">Home</option>");
	document.write("				<option value=\"Me/asiliveandlearn.html\">As I Live and Learn</option>");
	document.write("				<option value=\"worlds/stories.html\">Stories To Be</option>");
	document.write("				<option value=\"http://threadsofbeing.blogspot.com/\">Threads of Being</option>");
	document.write("				<option value=\"bio2.html\">Biosphere 2</option>");
	document.write("				<option value=\"st/\">Computer Core</option>");
	document.write("				<option value=\"DeepSpace15/\">Deep Space 15</option>");
	document.write("				<option value=\"dragon.html\">Dragon's Hall</option>");
	document.write("				<option value=\"e2page.html\">Earth 2</option>");
	document.write("				<option value=\"farie.html\">Farie Ring</option>");
	document.write("				<option value=\"ggma.html\">GGma's 100th B-day</option>");
	document.write("				<option value=\"Griffin/\">U.S.S. Griffin</option>");
	document.write("				<option value=\"nasa.html\">Nasa Incidents</option>");
	document.write("				<option value=\"pecanhouse.html\">The Pecan Clan</option>");
	document.write("			</select>");
	document.write("			</span>");
}

function outputGoToPicturesBox() {
	document.write("			<span id=\"go-to-picture\">Go To Pictures Of:");
	document.write("			<select name=\"gotopicturepage\" onchange=\"goToPage(this)\">");
	document.write("				<option value=\"index.html\">--- Choose ---</option>");
	document.write("				<option value=\"Christmases/image_listing.php\">Christmases</option>");
	document.write("				<option value=\"Me/image_listing.php\">Me</option>");
	document.write("				<option value=\"apartment/\">My Apartment</option>");
	document.write("				<option value=\"condo/\">My First Condo</option>");
	document.write("				<option value=\"friends/TN/\">Tennessee Visit</option>");
	document.write("			</select>");
	document.write("			</span>");
}

function outputGoToStoriesBox() {
	document.write("			<span id=\"go-to-story\">Go To Story:");
	document.write("			<select name=\"gotopicturepage\" onchange=\"goToPage(this)\">");
	document.write("				<option value=\"worlds/stories.html\">--- Choose ---</option>");
	document.write("				<option value=\"worlds/stories.html\">Stories Home</option>");
	document.write("				<option value=\"worlds/stories/end.html\">End, The</option>");
	document.write("				<option value=\"worlds/stories/Faith.html\">Faith Winterfields</option>");
	document.write("				<option value=\"worlds/stories/flight.html\">Flight</option>");
	document.write("				<option value=\"worlds/characters/Gaia/gaia.html\">Gaia - Amanda Harper</option>");
	document.write("				<option value=\"worlds/stories/project.html\">Project, The</option>");
	document.write("				<option value=\"worlds/stories/Troia.html\">The New Troia</option>");
	document.write("			</select>");
	document.write("			</span>");
}

function outputGoToCharactersBox() {
	document.write("			<span id=\"go-to-character\">Go To Character History:");
	document.write("			<select name=\"gotopicturepage\" onchange=\"goToPage(this)\">");
	document.write("				<option value=\"index.html\">--- Choose ---</option>");
	document.write("				<option value=\"writings.html\">Characters Home</option>");
	document.write("				<option value=\"worlds/characters/Angel.html\">Angel of Death</option>");
	document.write("				<option value=\"worlds/stories/Angel.html\">Angel Marie Christan</option>");
	document.write("				<option value=\"worlds/characters/jadzia.html\">Jadzia</option>");
	document.write("				<option value=\"worlds/characters/Piper.html\">Piper</option>");
	document.write("				<option value=\"worlds/characters/QC.html\">Qikerre's Child</option>");
	document.write("				<option value=\"worlds/characters/Rosemary.html\">Rosemary Delacourt</option>");
	document.write("				<option value=\"worlds/characters/solace.html\">Solace</option>");
	document.write("				<option value=\"worlds/characters/TaoNashi.html\">TaoNashi Toroga</option>");
	document.write("			</select>");
	document.write("			</span>");
}
