var BoxShow = new Class({
	
	initialize: function(container){
		this.container = container;
		this.box = this.container.getElements('div')[1];
		if (this.box){
			this.boxFx = new Fx.Style(this.box, 'opacity', { duration: 1000, wait: true });
			this.status = 1;
			this.opacityToggle.periodical(10000, this);
		}
	},

  opacityToggle: function(){
		if (this.status){
			this.boxFx.start(0);
			this.status = 0;
		} else {
			this.boxFx.start(1);
			this.status = 1;
		}
	}
});

window.addEvent('domready', function(){
	if ($$('.boxshow')){
		$$('.boxshow').each(function(element, index){
		  (function(){ new BoxShow(element); }).delay(index*0);
		});
	}
});	
