//menu.js

/*
* This script is used by every page to create the navigation bar (the left column), 
* the title row (the top row with project tittle), two horizontal divide lines, and 
* the bottom row with the copyright info line.
*/

//This function is used to create navigation bar
function navigation(category){
	document.writeln('	<table width="125" border="0" cellpadding="0" cellspacing="0" >');
	if (category=="Home"){
		document.writeln('		<tr><td><a href="default.htm" class="mainlevel" id="active_menu" >Home</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="default.htm" class="mainlevel" >Home</a></td></tr>');
	}
	
	if (category=="Introduction"){
		document.writeln('		<tr><td><a href="introduction.htm" class="mainlevel" id="active_menu" >Introduction</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="introduction.htm" class="mainlevel">Introduction</a></td></tr>');
	}
	
	if (category=="People"){
		document.writeln('		<tr><td><a href="people.htm" class="mainlevel" id="active_menu" >People</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="people.htm" class="mainlevel" >People</a></td></tr>');
	}
	
	if (category=="Publication"){
		document.writeln('		<tr><td><a href="publication.htm" class="mainlevel" id="active_menu" >Publication</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="publication.htm" class="mainlevel">Publication</a></td></tr>');
	}
	
	if (category=="Demo"){
		document.writeln('		<tr><td><a href="demo.htm" class="mainlevel" id="active_menu" >Demo</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="demo.htm" class="mainlevel">Demo</a></td></tr>');
	}
	if (category=="Download"){
		document.writeln('		<tr><td><a href="download.htm" class="mainlevel" id="active_menu" >Download</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="download.htm" class="mainlevel">Download</a></td></tr>');
	}
	
	if (category=="Bibliography"){
		document.writeln('		<tr><td><a href="bibliography.htm" class="mainlevel" id="active_menu" >Bibliography</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="bibliography.htm" class="mainlevel" >Bibliography</a></td></tr>');
	}
	
	if (category=="Links"){
		document.writeln('		<tr><td><a href="links.htm" class="mainlevel" id="active_menu" >Links</a></td></tr>');
	}
	else {
		document.writeln('	  <tr><td><a href="links.htm" class="mainlevel">Links</a></td></tr>');
	}
	
	document.writeln('		<tr>');
	document.writeln('		<td height="2" bgcolor="aaaaaa"></td>');
	document.writeln('		</tr>');
	document.writeln('	</table>');
	
}


//This function creates the top row with the title line and background
function titletext(){
	document.writeln('	<tr><td colspan ="3" height="120" valign="center" background="icons/headerbg.jpg" bgcolor="E9FCC5">');
	document.writeln('	<p align="center"><b><font size="5">Towards a GIS-based Analytical Time-geographic Framework<br> for Physical and Virtual Activities </font></b>');
	document.writeln('	<p align="center"><font face="Arial" size="2" color=#3333cc><strong>Sponsored by the U.S. National Science Foundation (Award # BCS-0616724)</strong></font></td></tr>');
}

//This function creates the divide line
function divideline(){
	document.writeln('	<tr><td height="4" bgcolor = #3333cc colspan ="3"></td></tr>');
}

//This function create the bottom row with copyright info line
function bottomlinetext(){
	document.writeln('	<tr><td colspan ="3" height="30" align="center"><font size="2" face="Arial"> Copyright @2006-2007 | Contact Webmaster: <a href="mailto:lyin@utk.edu">lyin@utk.edu </a></font></td></tr>');
}