/**
 * Product listing.
 *
 * Requires Prototype 1.6.
 */

function bindZoomOnProductThumbs() {
  var links = $$('.productBlock .photo');
  if (!links) return;
  links.each(function(link) {
    var hover = link.down('.hover');
    if (hover) {
      link.observe('mouseover', function(e) { hover.show(); });
      link.observe('mouseout', function(e) { hover.hide(); });
    }
  });
} // bindZoomOnProductThumbs

document.observe('dom:loaded', function() {
  Prototype.Browser.IE6 && bindZoomOnProductThumbs();
});
