window.addEvent('load',function(){
var rollinappendage = '_o';
// jay johnston mootool auto-rollover for all classes called "over"
$$('.over').forEach(function(item,i) {
  // preload it!
  var newsrc = item.getProperty('src').substr(0,item.getProperty('src').indexOf('.jpg'))+rollinappendage+'.jpg';
  var preload = new Image(); preload.src=newsrc; 
  // sweet!  if the title doesn't exist, doulbe the alt :)
  // switch it to -o
  item.addEvent('mouseover',function() {
    var newsrc = item.getProperty('src').substr(0,item.getProperty('src').indexOf('.jpg'))+rollinappendage+'.jpg';
    if (newsrc!=rollinappendage+'.jpg') item.setProperty('src',newsrc); 
  });
  // switch it back to (not) -o
  item.addEvent('mouseout',function() {
    var newsrc = item.getProperty('src').substr(0,item.getProperty('src').indexOf(rollinappendage))+'.jpg';;
    if (newsrc!='.jpg') item.setProperty('src',newsrc);
  });
});
$$('img').forEach(function(item,i) {
  item.setProperty('title',item.getProperty('alt'));
});
});

