
function setInfoImg(replacement) {
 document.getElementById('infoimg').src=replacement;
}

function popup(url){
  popwin = window.open(url,'winName','height=370,width=370,scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=300,top=100');
}


function vtinit() {
  var tourdiv   = document.getElementById('vtdiv');
  var tourlinks = tourdiv.getElementsByTagName('a');
  for (var i=0; i<tourlinks.length; i++) {
    tourlinks[i].onclick      = function () { popup(this.href);return false; }
    tourlinks[i].onmouseout   = function () { document.getElementById('infoimg').src='images/space.gif'; }
    tourlinks[i].onmouseover  = function () { setInfoImg(this.rel); }
  }
}


addEvent(window, 'load', rollinit);
addEvent(window, 'load', vtinit);

