var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

if (document.images) {
  var aboutimg = document.createElement('aboutimg');
  aboutimg.src = "images/Sub_About.gif";
  var progimg = document.createElement('progimg');
  progimg.src = "images/Sub_Programs.gif";
  var pubimg = document.createElement('pubimg');
  pubimg.src = "images/Sub_Publicity.gif";
  var suppimg = document.createElement('suppimg');
  suppimg.src = "images/Sub_Support.gif";
  var storeimg = document.createElement('storeimg');
  storeimg.src = "images/Sub_Store.gif";
  var contactimg = document.createElement('contactimg');
  contactimg.src = "images/Sub_Contact.gif";
  var blankimg = document.createElement('blankimg');
  blankimg.src = "images/blank.gif";
}

function displayPageTitle() {
	  switch(sPage) {
	      case "about.html" :
			theImg = document.getElementById("pageTitle")
			theImg.src = aboutimg.src
			break
		  case "programs.html" :
			theImg = document.getElementById("pageTitle")
			theImg.src = progimg.src
			break
		  case "publicity.html" :
			theImg = document.getElementById("pageTitle")
			theImg.src = pubimg.src
			break
		  case "support.html" :
			theImg = document.getElementById("pageTitle")
			theImg.src = suppimg.src
			break
		  case "store.html" :
			theImg = document.getElementById("pageTitle")
			theImg.src = storeimg.src
			break
		  case "contact.html" :
			theImg = document.getElementById("pageTitle")
			theImg.src = contactimg.src
			break
		  default :
			theImg = document.getElementById("pageTitle")
			theImg.src = blankimg.src
		} // end switch
}  // end displayPageTitle function
