Intro
Leaks.
function init() { createLinks(); var x = document.getElementsByTagName('a'); for (var i=0;i<x.length;i+=2) { treatOneLink(x[i]); } } function treatOneLink(obj) { if (!obj.nextSibling) return; obj.relatedElement = obj.nextSibling; obj.nextSibling.relatedElement = obj; }