//elementary script for highlighting navigation - JCC
 
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}
	else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

  

page=document.location.href
base=document.location.hostname
homepage=document.location.pathname

djclpphome="/journals/djclpp/"
thepage=document.location.search

addLoadEvent(function() {
  if (page == "http://"+base+homepage || page == "http://"+base+homepage+"?action=indexonline") {
  document.getElementById('home').className = "on";
  }
  if (thepage == "?action=archive" || thepage == "?action=archivesidebar") {
  document.getElementById('issues').className = "on";
  }
  if (thepage == "?action=showblurb&id=reprints") {
  document.getElementById('subscriptions').className = "on";
  }  
  if (thepage == "?action=showblurb&id=sponsors") {
  document.getElementById('sponsors').className = "on";
  }
  if (thepage == "?action=showblurb&id=about") {
  document.getElementById('about').className = "on";
  }
  if (thepage == "?action=showblurb&id=contact") {
  document.getElementById('contact').className = "on";
  }
  if (thepage == "?action=showblurb&id=search") {
  document.getElementById('search').className = "on";
  }
})

//end navigation script


