// This JavaScript Document 
// Created By Will Morrison
// 7-18-06
// Updated
// 8-3-06



var strHeader;
var strFooter;
var httpsecure;
var thedate = new Date();
var thisyear = thedate.getFullYear();

function getHttpSecure()
{	
	var myURL = location.href;
	
	if (myURL.indexOf("https") > 0)
	{
		httpsecure = "https";
	}
	else
	{
		httpsecure = "http";
	}
}

function getHeader()
{	
	getHttpSecure();
	strHeader = "<div id='logo'><a href='http://www.tricity.wsu.edu/'><IMG SRC='" + httpsecure + "://www.wsu.edu/navigatewsu/gen2/LogoTricitiesTrans.gif' alt='WSU Logo'/></a></div>"
		+		"<div id='globalnav'>"
		+			"<ul>"
		+				"<li><a href='http://www.tricity.wsu.edu/ProspectiveTC.html'>Admissions</a></li>"
		+				"<li><a href='http://www.tricity.wsu.edu/JustForTC.html'>Students</a></li>"
		+ 				"<li><a href='http://www.tricity.wsu.edu/'>TC Home</a></li>"
		+				"<li><a href='http://www.wsu.edu/WSUStatewide.html'>Campuses</a></li>"
		+ 				"<li><a href='http://www.my.wsu.edu/'>myWSU</a></li>"
		+			"</ul>"
		+		"</div>";
	return strHeader;
}


function getFooter()
{
	getHttpSecure();
	strFooter = "<div id='wsufooter'>"
		+			"Copyright © 2007 Board of Regents, <a href='http://www.tricity.wsu.edu'>Washington State University</a> | "
		+				"<a href='http://www.scs.wsu.edu/atc/'>Accessibility</a> | "		
		+				"<a href='http://www.wsu.edu/policies.html'>Policies</a> | "
		+				"<a href='http://www.wsu.edu/copyright.html'>Copyright</a>"	
		+		"</div>";
	return strFooter;
}
