// http://www.rulx.net/2007/05/15/sencillo-rollover/
function iniciarRollOver () {
  $$("img.rollover").forEach (function(el) {
    el.addEvent("mouseenter", function() {
      var imgPath    = this.getProperty("src");
      var imgPath_on = imgPath.replace(/_off/g,"_on")
      this.setProperty("src", imgPath_on );
    });

    el.addEvent("mouseleave", function() {
      var imgPath    = this.getProperty("src");
      var imgPath_off = imgPath.replace(/_on/g,"_off")
      this.setProperty("src", imgPath_off );
    });
  });
}

//window.addEvent( "domready", iniciarRollOver );

Window.onDomReady(function() {
  var ac = new Fx.Accordion($$('.trigger'), $$('.slider'));

  iniciarRollOver();
});