
function logosmall () {
  addImage('logosmall', 'img/logosmall.gif');
  removeElement('siteName', 'letterV');
}

function addImage(replace, src) {
  var ni = document.getElementById(replace);
  var newimg = document.createElement('img');
  newimg.setAttribute('src', src);
  ni.appendChild(newimg);
}

function removeElement(divName, imgName) {
  var d = document.getElementById(divName);
  var olddiv = document.getElementById(imgName);
  d.removeChild(olddiv);
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

