for (var i=0; i<cnt; i++) {
n = (n+1)%cnt;
// check also if the link is visible
if (l[n].accessKey==key && l[n].scrollWidth) {
_hotkeys.focus = n;
// The timeout is needed to prevent unpredictable behaviour on IE.
for (var i=0; i<cnt; i++) {
n = (n+1)%cnt;
// check also if the link is visible
if (l[n].accessKey==key && l[n].scrollWidth) {
_hotkeys.focus = n;
// The timeout is needed to prevent unpredictable behaviour on IE.