// JavaScript Document
var gFooterNav = null;

function FooterNav(parentNodeName) {
  this.currentPage = this.getFilenameFromPathname(document.location.pathname);	
	this.parentNodeName = parentNodeName;
	this.parentNode = window.document.getElementById(this.parentNodeName);
}

FooterNav.prototype.IS_CURRENT_PAGE = true;

FooterNav.prototype.getCurrentPage = function() {
	return this.currentPage;
}

FooterNav.prototype.getFilenameFromPathname = function(pathname) {
  if (typeof pathname == "undefined" || pathname == null) return "";
	return pathname.substring(pathname.lastIndexOf('/')+1); 
}

FooterNav.prototype.buildDom = function() {
	var s = "";
	s += "<a href='http://www.oycf.org/'>OYCF</a> 2008" + "\n";
	this.parentNode.innerHTML = s;
}

function initFooterNav() {
	gFooterNav = new FooterNav("footer");
	gFooterNav.buildDom();
}

addEvent(window, 'load', initFooterNav);