window.addEvent('domready', function(){
	//First Example
	var boundles= new Array();
	
	//boundles = document.getElementsByName("boundles");
	var totboundle = document.getElementById('totboundle').value;
	
	
	for (i=0; i<=totboundle;i++ ){
		// We are setting the opacity of the element to 0.5 and adding two events
		$('boundle_'+i).set('opacity', 0.5).addEvents({
			mouseenter: function(){	
				// This morphes the opacity and backgroundColor
				this.morph({
					'opacity': 1
				});
			},
			mouseleave: function(){
				// Morphes back to the original style
				this.morph({
					'opacity': 0.5
				});
			}
		});
		
	}
});