<!--

var PAGE_HOME = 0;
var PAGE_BIO = "Biography"; //1;
var PAGE_WRITING = "Bibliography"; // 2
var PAGE_ART = "Art Gallery"; // 3;
var PAGE_PICTURES = "Pictures"; // 4;
var PAGE_OLD_STORE = "Old Bookstore"; //5;
var PAGE_OLD_STORE_PICTURES = 6;
var PAGE_CONTACT = "Contact"; // 7;
//var PAGE_LOG = "log"; // 7;

var PAGE_LINKS = "Links"; // 8
var PAGE_LINKS_FUN = "Fun Links";
var PAGE_LINKS_SCIFI = "Speculative Links";
var PAGE_LINKS_LIT = "Literature & Arts Links";
var PAGE_LINKS_POLITICS = "Political Links";

var PAGE_BLOG = "Journal"; // 12;
var PAGE_BLOG_CATS = 13;
var PAGE_BLOG_ARCHIVES = 14;
var PAGE_BLOG_SEARCH = 15;

var LOG_SUBS = 0;
var LOG_CRITS = 1;
var LOG_IN_PROGRESS = 2;


//var SITE_ROOT = "http://69.89.31.241/~indigoc2/jenn/";
//var SITE_ROOT = "file:///C:/Users/Jenn/Websites/jenn/";

var SITE_ROOT = "http://www.jennbrissett.com/";
var BLOG_ROOT = "http://www.jennbrissett.com/journal";
var BLOG = "http://www.booksellerstale.com/";
var STORE = "http://www.indigocafe.com/";

var COPYRIGHT_YEAR = "2008-2010"; // create 2008
var LEGAL_NAME = "Jennifer Brissett"; 
var AUTHOR_NAME = "Jennifer Marie Brissett"; 

//===============================================================
// page header and navigator
//===============================================================
function header(pPage)
{
	// page titles
	if (pPage == PAGE_HOME)
	{ document.write ("<title>"+ AUTHOR_NAME +"</title>"); }
	else if (pPage == PAGE_BLOG) 
  { /* The blog figures out the title */}
	else
	{ document.write ("<title>"+ AUTHOR_NAME +" :: "+ pPage +"</title>"); }

	document.write ("<link href='"+ SITE_ROOT +"img/icon.gif' rel='shortcut icon'/>");
	document.write ("<link href='"+ SITE_ROOT +"img/icon.gif' rel='shortcut DD660icon'/>");
	document.write ("<link rel=\"stylesheet\" type=\"text/css\" href=\""+ SITE_ROOT +"lib/layout.css\">");
	document.write ("<body>");

	// Header
	document.write ("<table border=0 cellspacing=0 cellpadding=0 align=center>");
	document.write ("<tr><td>");
	document.write ("<img src=\""+ SITE_ROOT +"img/site-title-jmb.jpg\" border=0 ismap usemap=\"#map2\">");
	document.write ("</td></tr>");


	document.write ("<map name=\"map2\">");
	document.write ("<area coords=\"31,21,455,66\" href=\""+ SITE_ROOT +"\">");
//	document.write ("<area coords=\"318,35,470,53\" href=\""+ BLOG +"\" target=_blank>");
//	document.write ("<area coords=\"497,37,663,54\" href=\""+ STORE +"\" target=_blank>");
	document.write ("</map>");


// Navigator Menu
	menu(pPage);

	// Content
	format_content(pPage);

	if (pPage == PAGE_BLOG) { blogMenu(); }

	if ((pPage == PAGE_BLOG_CATS) || (pPage == PAGE_BLOG_ARCHIVES) || (pPage == PAGE_BLOG_SEARCH))
		{ blogMenu(pPage); }

	if ((pPage == PAGE_LINKS_FUN) || (pPage == PAGE_LINKS_SCIFI) || (pPage == PAGE_LINKS_POLITICS)
	 || (pPage == PAGE_LINKS_LIT))
		{ linksMenu(pPage); }

}

//===============================================================
// menu item 
//===============================================================
function format_content(pPage)
{
	if ((pPage == PAGE_HOME) || (pPage == PAGE_PICTURES) || (pPage == PAGE_OLD_STORE_PICTURES))
	{ document.write ("<tr><td class=\"picture-content\">"); }
	else
	{ document.write ("<tr><td class=\"content\">"); }
}

//===============================================================
// Navigator Menu
//===============================================================
function menu(pPage)
{
	if (pPage == PAGE_OLD_STORE_PICTURES) { pPage = PAGE_OLD_STORE; }
//	if (pPage == PAGE_LOG) { pPage = PAGE_WRITING; }

	document.write ("<tr><td id=\"navcontainer\">");
	document.write ("<ul>");

	menuItem(pPage, PAGE_BLOG, "journal/");
	menuItem(pPage, PAGE_BIO, "bio.php");
	menuItem(pPage, PAGE_WRITING, "writing/");
	menuItem(pPage, PAGE_ART, "art/");
	menuItem(pPage, PAGE_OLD_STORE, "oldstore.php");
	menuItem(pPage, PAGE_PICTURES, "Albums/");
	menuItem(pPage, PAGE_LINKS, "links/");
	menuItem(pPage, PAGE_CONTACT, "contact/");

	document.write ("</ul>");
	document.write ("</td></tr>");
}

//===============================================================
// menu item 
//===============================================================
function menuItem(pPage, pItem, pLink)
{
	if ((pPage == PAGE_LINKS_FUN) || (pPage == PAGE_LINKS_SCIFI) || (pPage == PAGE_LINKS_POLITICS))
	{ pPage = PAGE_LINKS; }

	if ((pPage == PAGE_BLOG_CATS) || (pPage == PAGE_BLOG_ARCHIVES) || (pPage == PAGE_BLOG_SEARCH))
	{ pPage = PAGE_BLOG; }

	if (pPage == pItem) { nSelected = 1; } else { nSelected = 0; } 

	if (nSelected == 1)
	{	document.write ("<li id=\"active\" align=\"center\">");  }
	else
	{ document.write ("<li align=\"center\">"); }

	document.write ("<a href=\""+ SITE_ROOT + pLink +"\">"+ pItem +"</a>");
	document.write ("</li>\n"); 
}

//===============================================================
// submenu for the blog  
//===============================================================
function blogMenu(pPage)
{
	document.write ("<div id=\"sub-menu\">");

	if (pPage == PAGE_BLOG_SEARCH) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ BLOG_ROOT +"/index.php/search/\" "+ UNDERLINE +">Search</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");
	
	if (pPage == PAGE_BLOG_CATS) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ BLOG_ROOT +"/index.php/site/categories/\" "+ UNDERLINE +">Categories</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");
	
	if (pPage == PAGE_BLOG_ARCHIVES) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ BLOG_ROOT +"/index.php/site/monthly_archives/\" "+ UNDERLINE +">Archives</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");

	if (pPage == LOG_SUBS) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ SITE_ROOT +"writing/logs/\">Log</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");

	document.write ("<a href=\""+ BLOG_ROOT +"/index.php/site/rss_2.0/\">RSS</a>");
	document.write ("</div>");
}


//===============================================================
// submenu for the links  
//===============================================================
function linksMenu(pPage)
{
	document.write ("<div id=\"sub-menu\">");

/*
	if (pPage == PAGE_LINKS_SCIFI) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ SITE_ROOT +"links/speculative.php\" "+ UNDERLINE +">Speculative Links</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");
*/

	if (pPage == PAGE_LINKS_POLITICS) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ SITE_ROOT +"links/politics.php\" "+ UNDERLINE +">Politics Links</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");

	if (pPage == PAGE_LINKS_LIT) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ SITE_ROOT +"links/lit.php\" "+ UNDERLINE +">Literature & Arts Links</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");

	if (pPage == PAGE_LINKS_FUN) { UNDERLINE = "style = \"text-decoration: underline;\""; } else { UNDERLINE = ""; }
	document.write ("<a href=\""+ SITE_ROOT +"links/fun.php\" "+ UNDERLINE +">Fun Links</a>");

	document.write ("</div>");
}

//===============================================================
// footer
//===============================================================
function footer()
{
	// Close content "div"
	document.write ("</div>");

	// Close content "div"
	document.write ("</td></tr>");
	document.write ("</table>");

	document.write ("<div align=center  style=\"margin: 15pt;\" class=copyright>");
	document.write ("Copyright &copy; "+ COPYRIGHT_YEAR +" "+ LEGAL_NAME +". All Rights Reserved.");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");
	document.write ("<a href=\""+ SITE_ROOT +"journal/eesys/\">Login</a>");
	document.write ("&nbsp;&nbsp;|&nbsp;&nbsp;");
	document.write ("<a href=\""+ SITE_ROOT +"writing/logs/\">Logs</a>");
	document.write ("</div>");

	document.write ("</center>");
	document.write ("</body>");
}

-->