/*
 * fix hover problem for IE 6
 */

function hoverFunc() {
  //  alert(this.className); // OK
  this.style.background = "url('images/ribbon_light.gif')";
}
function normalFunc() {
  this.style.background = "url('images/ribbon_dark.gif')";
}

function init() {
  var ribbons = document.getElementById('ribbons').getElementsByTagName('div');
  //  alert("found " +ribbons.length +" elements."); return;
  for (i=0; i<ribbons.length; i++){
    ribbons[i].onmouseover = hoverFunc;
    ribbons[i].onmouseout  = normalFunc;
    ribbons[i].onclick = normalFunc;    //  so we dont return to a brightened ribbon
  }
}
window.onload = init;
