/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
window.addEvent('domready', function() {

	Bloc = new Class({
		initialize: function(IDObjet) {
			// Récupération des infos et stockage dans la classe
			this.ID=IDObjet;
            this.h1=this.ID.getElement('a').getElement('h1');
			// Activation des evènements
			this.ID.addEvent('mouseenter', function(){
				this.ID.setStyle('background-image','url(/assets/templates/1.2/images/Angle-hover.jpg)');
                this.h1.setStyle('color','#780000');
			}.bind(this));
			this.ID.addEvent('mouseleave', function(){
				this.ID.setStyle('background-image','url(/assets/templates/1.2/images/Angle.jpg)');
                this.h1.setStyle('color','#eeb326');
			}.bind(this));
		}
	});


	ID_Objets = $$('.EcodesignCategorie');
	for (I=0; I<ID_Objets.length; I++) {
		new Bloc(ID_Objets[I]);
	}
    if ($('Flash')) {
        new Bloc($('Flash'));
    }

});