// thanks to jonathan wilson for the random image rotator script
// http://forum.oscr.arizona.edu/showthread.php?t=810
function advert() {
  var length = 3;
  var ran_num = Math.round((length-1)*Math.random());
  ran_num=ran_num+1;
  var source = "images/features/"+ran_num+".jpg";
  document.images['feature'].src = source;
}

function quote() {
  var length = 4;
  var ran_num = Math.round((length-1)*Math.random());
  ran_num=ran_num+1;
  var source = "images/quotes/"+ran_num+".jpg";
  document.images['quote'].src = source;
}