// 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='globalnav'>"
		+			"<ul>"
		+				"<li><a href='http://index.wsu.edu/'>A-Z Index</a></li>"
		+				"<li><a href='http://www.about.wsu.edu/statewide/'>Campuses</a></li>"
		+				"<li><a href='https://my.wsu.edu/'>myWSU</a></li>"
		+ 				"<li><a href='http://search.wsu.edu/'>WSU Search</a></li>"
		+ 				"<li><a href='http://www.wsu.edu/'>WSU Home</a></li>"
		+			"</ul>"
		+		"</div>";    
	return strHeader;
}


function getFooter()
{
	getHttpSecure();
	strFooter = "<div id='wsufooter'>"
		+			"Copyright &copy; " + thedate.getFullYear() + " Board of Regents, "
		+			"<a href='http://www.wsu.edu'>Washington State University</a>"
		+			" | <a href='http://access.wsu.edu/'>Accessibility</a> | <a href='http://policies.wsu.edu/'>Policies</a> | <a href='http://publishing.wsu.edu/copyright/WSU.html'>Copyright</a>"
		+		"</div>";
	return strFooter;
}
