// JavaScript Document

//image file names need to match the page names in WordPress.

var url = window.location.toString();
var address = 'http://blog.richmond.edu/as/archive/';
var issue = url.substring(address.length);

if( (issue.indexOf('/') != issue.length)&&(issue.indexOf('/') != -1) ){
	issue = issue.substring(0,issue.indexOf('/'));	
}
else issue = 'default';  //set this as a default image for the blog page
var head = document.getElementById('header');
var bkgd = "http://as.richmond.edu/resources/policies/communications/e-newsletter/headers/" + issue + ".jpg";
head.style.background = "transparent url("+ bkgd +") no-repeat scroll 0%";
