/*
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
*/



/*
###############################################################################
BELOW IS THE CODE FOR RECONSTRUCTING EMAIL ADDRESSES TO INHIBIT ADDRESS HARVESTING. 
THE CONVENSION FOR THIS WITHIN THE HTML CODE IS AS FOLLOWS:
<a href="javascript:sendMailTo('username','indiana','edu')">username [at] indiana [dot] edu</a> 
###############################################################################
*/

function sendMailTo(username, domain, extension){
	var mailtostring = 'mai' + 'lto:' + username + '@' + domain + '.' + extension;
	window.location.replace(mailtostring);
}

/*
###############################################################################
BELOW IS THE CODE TO DISPLAY WHEN THE PAGE WAS LAST UPDATED.
###############################################################################
*/

function lastModified_old(){
	document.write("<i>Last Modified</i>: " + document.lastModified);
}

function lastModified(){
  var modDate = new Date(document.lastModified);
  var modMonth = modDate.getMonth()+1;
  var modYear = modDate.getYear();
  var modDay = modDate.getDate();
  if(modDay<10) modDay = "0" + modDay;
  if(modMonth<10) modMonth= "0" + modMonth ;
  if(modYear<1000) modYear+=1900;
       
  document.write("<i>Last Updated: " + modMonth + "/" + modDay + "/" + modYear +"</i>");
}

/*
###############################################################################
BELOW IS THE CODE TO DISPLAY THE COPYRIGHT DISCLAIMER WITH THE CURRENT YEAR 
IN THE FOOTER OF EACH HTML DOCUMENT.
###############################################################################
*/

function displayCopyrightInfo(){
	var dateObj = new Date();
	var year = dateObj.getYear();
	if (year < 2000){
		year = year + 1900; // Y2K Fix, Isaac Powell - http://onyx.idbsu.edu/~ipowell
	}
	document.write("<a href=\"http://www.indiana.edu/comments/copyright.shtml\" target=\"_blank\">Copyright</a>, " + year + "&copy; Trustees of <a href=\"http://www.indiana.edu\" target=\"_blank\">Indiana University</a>");
}