function openVert() {
 if (!document.getElementsByTagName) return false;
 var links = document.getElementsByTagName("a");
 for (var i=0; i < links.length; i++) {
  if (links[i].className.match('vert')) {
   links[i].onclick =
    function() {
     window.open(this.href,'vert','width=300,height=300,resizable,scrollbars');
     return false;
    }
    links[i].title = "(opens in a new window)";
    var img = document.createElement("img");
    img.setAttribute("src", "/i/new-win-icon.gif");
    img.setAttribute("alt", "(opens in a new window)");
    links[i].appendChild(img);
  }
 }
}

function openHoriz() {
 if (!document.getElementsByTagName) return false;
 var links = document.getElementsByTagName("a");
 for (var i=0; i < links.length; i++) {
  if (links[i].className.match('horiz')) {
   links[i].onclick =
    function() {
     window.open(this.href,'horiz','width=861,height=75,resizable,scrollbars');
     return false;
    }
    links[i].title = "(opens in a new window)";
    var img = document.createElement("img");
    img.setAttribute("src", "/i/new-win-icon.gif");
    img.setAttribute("alt", "(opens in a new window)");
    links[i].appendChild(img);
  }
 }
}

addLoadEvent(openVert);
addLoadEvent(openHoriz);
