
		if(typeof(netaffexpand) == 'undefined') {

		netaffexpand = 1;

		function expandBanner(url, src_petite_image, src_grande_image, transition, sens, target) {

			this.id_base = 'netaffiliationExpendBan';
			this.target = (typeof(target) == 'string') ? target : '_blank';

			this.zindex = 10000;

			this.url = url;
			this.src_petite_image = src_petite_image;
			this.src_grande_image = src_grande_image;
			this.transition = transition;

			this.sens = sens;
			this.sens_init = null; // backup du sens initial en cas de changement

			this.img_base = null;
			this.img_expand = null;
			this.div_expand = null;

			// Chargement
			this.load = function() {

				if (!document.createElement || !document.getElementById) { return; }

				document.write('<a id="'+this.id_base+'"></a>');

				var lien_base = document.getElementById(this.id_base);
				lien_base.id = '';
				lien_base.href = this.url;
				lien_base.target = this.target;

				var img_base = document.createElement('img');
				img_base.src = this.src_petite_image;
				img_base.border = 0;
				img_base.onmouseover = this._myBind(this, this.afficheExpand);
				this.img_base = img_base;

				lien_base.appendChild(img_base);

				img_expand = new Image;
				img_expand.src = this.src_grande_image;

				img_base = null; lien_base = null; img_expand = null;
				delete(img_base); delete(lien_base); delete(img_expand);

				return this;
			},

			// Affichage de l'expand Ban
			this.afficheExpand = function(event) {

				/* Désactivation onmouseover pour eviter le basculement infini entre onmouseover/onmouseout */
				this.img_base.onmouseover = null;

				/* Création de la div qui contiendra l'image */
				var div_expand = document.createElement('div');
				div_expand.style.position = 'absolute';
				div_expand.style.zIndex = this.zindex;
				this.div_expand = div_expand;

				document.body.appendChild(div_expand);

				/* Creation du lien qui contiendra l'image expand */
				var lien_expand = document.createElement('a');
				lien_expand.href = this.url;
				lien_expand.target = this.target;

				/* Creation de l'image expand */
				var img_expand = document.createElement('img');
				img_expand.src = this.src_grande_image;
				img_expand.border = 0;
				img_expand.onmouseout = this._myBind(this, this.masqueExpand);
				this.img_expand = img_expand;

				lien_expand.appendChild(img_expand);
				div_expand.appendChild(lien_expand);

				event = event?event:window.event; /* Compatibilité */
				this._verifieOuverture(event);

				var positionOuverture = this._positionReferente();
				div_expand.style.top = positionOuverture.top;
				div_expand.style.left = positionOuverture.left;

				switch(this.transition) {
					case(1) :
						this.transitionDeroule();
						break;
					case(2) :
						this.transitionOpacite(0, 1);
						break;
				}

				img_expand = null; lien_expand = null; div_expand = null;
				delete(img_expand); delete(lien_expand); delete(div_expand);
			},


			// Suppression de l'expand Banner
			this.masqueExpand = function(event) {
				try {
					event = event?event:window.event; /* Compatibilité */
					if(this._zoneMouseOut(event)) {
						document.body.removeChild(this.div_expand);
						this.div_expand = null; // Permet de tuer les setTimeout
						if(this.sens_init != null) this.sens = this.sens_init; this.sens_init = null; // On remet le sens provisoir à null
						this.img_base.onmouseover = this._myBind(this, this.afficheExpand);
					}
				}
				catch(ex) { }
			},


			this.transitionDeroule = function() {

				/* On ajoute la fermeture de l'expand sur l'image de base au cas ou on sort avant que le déroulé soit recouvert */
				this.img_base.onmouseout = this._myBind(this, this.masqueExpand);
				this.div_expand.style.overflow = 'hidden';
				this.img_expand.style.display = 'none';

				if(this.sens == 'haut' || this.sens == 'bas') {	this.changeHeight(0);	}
				else if (this.sens == 'droite' || this.sens == 'gauche') { this.changeWidth(0);	}
			},


			this.changeHeight = function(height) {

				if(this.div_expand == null) return;
				if(height > this.img_expand.height) height = this.img_expand.height;

				this.div_expand.style.height = height;

				// Bricolage pour eviter 1ere apparition compléte sous ie avant l'ouverture
				if(height > 0) this.img_expand.style.display = 'block';

				this.div_expand.style.top = this._positionElement(this.img_base, 'top');
				this.div_expand.style.left = this._positionElement(this.img_base, 'left');

				if(this.sens == 'haut') {	this.div_expand.style.top = this._positionReferente().top+this.img_expand.height-height; }

				if(this.div_expand != null && height < this.img_expand.height) {
					obj = this;
					height = height + 15;
					setTimeout("obj.changeHeight("+height+");", 1);
				}
			},

			this.changeWidth = function(width) {

				if(this.div_expand == null) return;
				if(width > this.img_expand.width) width = this.img_expand.width;

				this.div_expand.style.width = width;

				// Bricolage pour eviter 1ere apparition compléte sous ie avant l'ouverture
				if(width > 0) this.img_expand.style.display = 'block';

				this.div_expand.style.top = this._positionElement(this.img_base, 'top');
				this.div_expand.style.left = this._positionElement(this.img_base, 'left');

				if(this.sens == 'gauche') {	this.div_expand.style.left = this._positionReferente().left+this.img_expand.width-width; }

				if(this.div_expand != null && width < this.img_expand.width) {
					obj = this;
					width = width+15;
					setTimeout("obj.changeWidth("+width+");", 1);
				}
			},


			this.transitionOpacite = function(opacite, timer) {

				if(this.div_expand == null) return;
				this.div_expand.style.opacity = (opacite/100);
			  this.div_expand.style.MozOpacity = (opacite/100);
			  this.div_expand.style.KhtmlOpacity = (opacite/100);
			  this.div_expand.style.filter = "alpha(opacity="+opacite+")";

			  if(opacite <= 100) {
			  	opacite = opacite + 7;
			  	timer++;
			  	var speed = 3;
					obj = this;
					setTimeout("obj.transitionOpacite("+opacite+", "+timer+")", timer);
				}
			},


			this._positionReferente = function() {

				var result = new Array;

				switch(this.sens) {
					case('haut') :
						result['top'] = (this._positionElement(this.img_base, 'top') + parseInt(this.img_base.height)) - parseInt(this.img_expand.height);
						result['left'] = this._positionElement(this.img_base, 'left');
						break;
					case('gauche') :
						result['top'] = this._positionElement(this.img_base, 'top');
						result['left'] = this._positionElement(this.img_base, 'left') + parseInt(this.img_base.width) - parseInt(this.img_expand.width);
						break;
					default :
						result['top'] = this._positionElement(this.img_base, 'top');
						result['left'] = this._positionElement(this.img_base, 'left');
						break;
				}

				return result;
			},

			this._positionElement = function(elem, type) {
				var x = 0;
				while(elem){
					var offset = (type === 'top') ? elem.offsetTop : elem.offsetLeft;
					x+= parseInt(offset);
					elem = elem.offsetParent;
				}
				return x;
			},

			this._verifieOuverture = function(e) {

				// Position max top ou left de l'image étendue
				var positionOuverture = this._positionReferente();
				var ImgMaxLeft = (positionOuverture.left+this.img_expand.width)-document.body.scrollLeft;
				var ImgMaxTop = (positionOuverture.top+this.img_expand.height)-document.body.scrollTop;

				// Dimension X, Y de la page
				var x, y;
				if(self.innerHeight) { x = self.innerWidth;	y = self.innerHeight; }
				else if(document.documentElement && document.documentElement.clientHeight) {
					x = document.documentElement.clientWidth;	y = document.documentElement.clientHeight;
				}
				else if(document.body) { x = document.body.clientWidth; y = document.body.clientHeight; }

				if(this.sens == 'bas' && ImgMaxTop > y && y > this.img_expand.height) { this.sens_init = this.sens; this.sens = 'haut'; }
				else if(this.sens == 'haut' && ImgMaxTop < this.img_expand.height && y > this.img_expand.height) { this.sens_init = this.sens; this.sens = 'bas'; }
				else if(this.sens == 'droite' && ImgMaxLeft > x && x > this.img_expand.width) { this.sens_init = this.sens; this.sens = 'gauche'; }
				else if(this.sens == 'gauche' && ImgMaxLeft < this.img_expand.width && x > this.img_expand.width) { this.sens_init = this.sens; this.sens = 'droite'; }

				positionOuverture = null; ImgMaxLeft = null; ImgMaxTop = null; x = null; y = null;
				delete(positionOuverture); delete(ImgMaxLeft); delete(ImgMaxTop); delete(x); delete(y);
			},


			this._zoneMouseOut = function(e) {

				if(this.transition === 1) {

					posX = 0; posY = 0;

					// pageX et pageY non reconnu par ie
					if(document.all) { posX = e.clientX - 1 + document.body.scrollLeft; posY = e.clientY - 1 + document.body.scrollTop; }
					else { posX = e.pageX;	posY = e.pageY;	}

					g = this._positionElement(this.img_base, 'left');
					d = g + this.img_base.width;
					h = this._positionElement(this.img_base, 'top');
					b = h + this.img_base.height;

					if((posX > g && posX < d) && (posY > h && posY < b)) { return false; }
					else { return true; }
				}
				else { return true; }
			},



			this._myBind = function(objet, methode) {
				return function() {
					return methode.apply(objet, arguments);
				}
			}
		};

	}
		var netaff_eb_17_1 = new expandBanner('http://www.netaffiliation.com/direct.php?mclic=S2B24BC702111', 'http://img.netaffiliation.com/9/178/eb_17_1_s.gif', 'http://www.netaffiliation.com/direct.php?maff=S2B24BC702111', 0, 'bas', '_blank').load();