﻿var button = new Class({	
    options: 
	{	
	},  
    initialize:function(options)
    {
        this.setOptions(options);        
        var buttons = $$('.' + this.options.cssClass);
        buttons.each
        (
            function(button,index)
            {
                var fx = new Fx.Style(button,'opacity');
                button.addEvent('mouseover',function(event){
                    
                    fx.start(1,0.5).chain(function(){
                    fx.start(0.5,1)
                    }); 
                });                              
            },this        
        )                                        
		if (this.options.initialize) 
		{
		    this.options.initialize.call(this);
		}		                
    }    
       
});
button.implement(new Options);  