var ButtonClass = new Class({ 
	initialize : function(eles){
		
		var self = this;
		
		eles.each(function(element){
			
		    element.addEvent('mousedown',function(){
		    	var link = this.getFirst('a');
				var gotolink = link.getProperty('href');
               	gotoUrl(gotolink);
            });
             
		});
	}
});
