var DrDivOpacity = new Class({
						initialize: function(tab, id) {
							
							this.tab = tab;
							this.id = id;
							this.pointer = 0;
							this.delaiAnimation = 3000;//sans pause
							this.pause = 1800;//tps ou la photo reste en 100% visible
							
							if($('DrDivOpacityCss') == null)
								new Asset.css('DrDivOpacity.css', {'id':'DrDivOpacityCss'});
							
							
							window.addEvent('domready', this.effet.bind(this));
						},
						createDiv : function(){
							objet = this.tab[this.pointer];
							div = new Element('div');
							div.setOpacity(0);
							for (var prop in objet)
							{
								element = new Element(prop);
								tmp = new Array();
								for(var propriete in eval("objet." +prop))
								{
									if(propriete != 'text')
										element.setAttribute(propriete, eval("objet." + prop + '.' + propriete));
									else
										element.appendText(eval("objet." + prop + '.' + propriete));
								}
								div.adopt(element);
							}
							$(this.id).adopt(div);
							this.div = div;
						},
						destroyDiv:function(){
							this.div.remove(); 
						},
						apparitionDiv:function(){
							this.div.effect('opacity', {duration : this.delaiAnimation / 2}).start(1, 0).chain(function(){
								this.destroyDiv.bind(this)();
								this.effet.bind(this)();
							}.bind(this));
						},
						effet: function(){
							this.createDiv();
							if(this.pointer<this.tab.length - 1)
								this.pointer++;
							else
								this.pointer = 0;
							this.div.effect('opacity', {duration : this.delaiAnimation / 2 }).start(0, 1).chain(function(){
								this.apparitionDiv.bind(this).delay(this.pause);
							}.bind(this));
						}
					});
