/* news */
function morphNewsPhot() {
  this.style.width = '200';
}

/* 

1.
window.addEvent('domready', function() {
2.
$$('img.mo').each(function(img) {
3.
var src = img.getProperty('src');
4.
var extension = src.substring(src.lastIndexOf('.'),src.length)
5.
img.addEvent('mouseenter', function() { img.setProperty('src',src.replace(extension,'-mo' + extension)); });
6.
img.addEvent('mouseleave', function() { img.setProperty('src',src); });
7.
});
8.
});

*/

window.addEvent('domready', function() {
  $$('.newsPhotoThumb img').each(function(img) {
    var src = img.getProperty('src');
    img.addEvent('mouseenter',function() { 
      img.setProperty('src',src.replace('.sq',''));
      var daddy = img.getParent();
      var fadeIn = new Fx.Morph(daddy,{duration: 1000}).start('width',500);
    });
  });
});

