function openx(id){
  div=document.getElementById(id);
  if (div.style.display=="block") div.style.display="none";
  else  div.style.display="block";
}

$.noConflict();

jQuery(document).ready(function() {
  jQuery('a[rel^=fading]').each(function (index) {
    var urlOrigin = jQuery('img', this).attr('src');
    var urlNew = jQuery(this).attr('rel').substr(7);
    
    urlNew = urlNew.substr(0, urlNew.length - 1);
    
    jQuery(this).mouseover(function () { 
      jQuery('img', this).fadeTo(200,0.1,function(){      
        jQuery(this).attr('src', urlNew);
      }).fadeTo(200, 1);
    });
    jQuery(this).mouseout(function () {       
      jQuery('img', this).fadeTo(200,0.1,function(){      
        jQuery(this).attr('src', urlOrigin);
      }).fadeTo(200, 1);     
    });
  });
});
