// This JavaScript Document 
// Created By Will Morrison
// 7-18-06
// 4-20-09 - updated with templates v.3, changed logo image path
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://www.tricity.wsu.edu/AlphabeticalIndex.html'>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>"
		+ "<div id='logo'><a href='http://www.tricity.wsu.edu'><img src='" + httpsecure + "://images.wsu.edu/global/bg-logo-tricities3.jpg' alt='Washington State University - World Class Face to Face' height='105' width='185'/></a></div><div></div>"
		;    
	return strHeader;
}


function getFooter()
{
	getHttpSecure();
	strFooter = ""
	    +		"<div id='wsufooter'>"
	    +           "<a href='http://publishing.wsu.edu/copyright/WSU.html'>&copy; " + thedate.getFullYear() + "</a> "
		+			"<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;
}
