		var Sliders=new Array();
		var TailleFenetre = 0;
		var LargeurFenetre = 0;
		 if(!document.all && document.getElementById)
		 {
		         HauteurFenetre = parseInt(window.innerHeight);
		         LargeurFenetre = parseInt(window.innerWidth);
		 }
		 else
		 {
		         HauteurFenetre = parseInt(document.body.clientHeight);
		         LargeurFenetre = parseInt(document.body.clientWidth);
		 }

		function Slider(tmpHauteur,tmpLargeur,tmpPosX,tmpPosY,tmpSensDefile,tmpVitesseDefile,tmpVitesseAffiche,tmpOpaque,tmpContenu)
		{
		//Définit et initialise les vaiables passées en paramètre
			this.isOpaque = false;
			this.Hauteur = 200;
			this.Largeur = 200;
			this.Contenu = "";
			this.Direction = "TOP";
			this.TimeDefile = 10;
			this.TimeAffiche = 2000;
			this.TailleBandeau = 20
	  		this.TimerDefile = null;
			this.Direction = "RIGHT";
			this.PosX = "LEFT";
			this.PosY = "BOTTOM";
			this.PosLeftArrivee = 0;
			this.PosTopArrivee = 200;
			this.PosLeftDepart = this.PosLeftArrivee;
			this.PosTopDepart = this.PosTopArrivee;
			this.tmpTop = null;
			this.tmpLeft = null;
			this.isOpen = false;


	  		if(tmpOpaque)
	  		{
	  			this.isOpaque = tmpOpaque;
	  		}
	  		if(tmpPosX)
	  		{
	  			this.PosX = tmpPosX;
	  		}
	  		if(tmpPosY)
	  		{
	  			this.PosY = tmpPosY;
	  		}
	  		if(tmpSensDefile)
	  		{
	  			this.Direction = tmpSensDefile;
	  		}
	  		if(tmpVitesseAffiche)
	  		{
	  			this.TimeAffiche = parseInt(tmpVitesseAffiche);
	  		}
	  		if(tmpVitesseDefile)
	  		{
	  			this.TimeDefile = parseInt(tmpVitesseDefile);
	  		}
	  		if(tmpHauteur)
	  		{
	  			this.Hauteur = parseInt(tmpHauteur);
	  		}
	  		if(tmpLargeur)
	  		{
	  			this.Largeur = parseInt(tmpLargeur);
	  		}
	  		if(tmpContenu)
	  		{
	  			this.Contenu = tmpContenu;
	  		}
	  	//Vérifie qu'il n'ya pas eu d'erreurs de saisie !
	  		if ((this.Direction.toUpperCase() == this.PosX.toUpperCase() ) ||(this.Direction.toUpperCase() == this.PosY.toUpperCase() ))
	  		{
	  			alert("Conflit possible entre le positionnement du slider et la direction de défilement");
				this.Direction = "RIGHT";
				this.PosX = "LEFT";
				this.PosY = "BOTTOM";
	  		}
		//Détermine le nouveau numéro d'index de l'objet
			this.Index=Sliders.length;
		//Insère l'objet en cours dans le tableau des objets
			Sliders[this.Index]=this;
//Fonction qui lance le défilement
			this.Start = function ()
			{
			//Affiche le slider
		 		document.getElementById("Div_Slider"+this.Index).style.display="";
		  		if(this.PosX == "LEFT")
					this.PosLeftArrivee = 0;
		  		else if(this.PosX == "CENTER")
					this.PosLeftArrivee = ((LargeurFenetre - this.Largeur )/2);
			  	else
					this.PosLeftArrivee = (LargeurFenetre - this.Largeur );

		  		if(this.PosY == "TOP")
					this.PosTopArrivee = 0;
		  		else if(this.PosY == "CENTER")
					this.PosTopArrivee = ((HauteurFenetre - this.Hauteur )/2);
			  	else
					this.PosTopArrivee = (HauteurFenetre - this.Hauteur );
	
				this.PosLeftDepart = this.PosLeftArrivee;
				this.PosTopDepart = this.PosTopArrivee;
	
		  		if(this.Direction == "TOP")
			//s'affiche du bas vers le haut
					this.PosTopDepart = HauteurFenetre-this.TailleBandeau ;
		  		else if(this.Direction == "BOTTOM")
			//s'affiche du bas vers le haut
					this.PosTopDepart = this.TailleBandeau- this.Hauteur;
		  		else if(this.Direction == "LEFT")
			//s'affiche du bas vers le haut
					this.PosLeftDepart = LargeurFenetre-this.TailleBandeau;
		  		else if(this.Direction == "RIGHT")
			//s'affiche du bas vers le haut
					this.PosLeftDepart = this.TailleBandeau- this.Largeur;

				var tmpAller = true;
			//Si on est au début ou si on déroule ...
				if((this.tmpLeft == this.PosLeftDepart && this.tmpTop == this.PosTopDepart ) || (this.tmpLeft == null && this.tmpTop == null))
				{
					this.tmpTop = this.PosTopDepart;
					this.tmpLeft = this.PosLeftDepart;
				}
			//Sinon, si on enroule
				else
				{
					this.tmpTop = this.PosTopArrivee;
					this.tmpLeft = this.PosLeftArrivee;
				//On inverse juste le départ et l'arrivée
					this.PosTopArrivee = this.PosTopDepart;
					this.PosLeftArrivee = this.PosLeftDepart;
					this.PosTopDepart = this.tmpTop;
					this.PosLeftDepart = this.tmpLeft;
				}

			//Panneau fermé
				if(this.isOpen ==false)
				{
					switch(this.Direction)
					{
						case "LEFT" :
							tmpX = -10;
							tmpY = 0;
							break;
						case "RIGHT" :
							tmpX = 10;
							tmpY = 0;
							break;
						case "TOP" :
							tmpX = 0;
							tmpY = -10;
							break;
						case "BOTTOM" :
							tmpX = 0;
							tmpY = 10;
							break;
						
					}
				}
			//Panneau ouvert
				else
				{
					switch(this.Direction)
					{
						case "LEFT" :
							tmpX = 10;
							tmpY = 0;
							break;
						case "RIGHT" :
							tmpX = -10;
							tmpY = 0;
							break;
						case "TOP" :
							tmpX = 0;
							tmpY = 10;
							break;
						case "BOTTOM" :
							tmpX = 0;
							tmpY = -10;
							break;
						
					}
				}
				eval('Sliders[' + this.Index + '].Move('+tmpX+','+tmpY+')');
			}
//Fonciton qui va calculer les coordonnées de déplacement et faire bouger le DIV
			this.Move = function(tmpPasX,tmpPasY)
			{
				if(this.tmpLeft == this.PosLeftArrivee && this.tmpTop == this.PosTopArrivee)
				{
					this.isOpen = !this.isOpen
				//On a affiché le slider, on attends un peu , et on le masque
//					clearTimeout(this.TimerDefile);
//					this.TimerDefile=null;
				//Si le slider est ouvert, on planifie la fermeture
					if(this.isOpen ==true)
					{
						this.TimerDefile = window.setTimeout("Sliders[" + this.Index + "].Start()",this.TimeAffiche)
					}
				//Si le slider est fermé ou arrive en fermeture
					else
					{
						clearTimeout(this.TimerDefile);
						this.TimerDefile=null;
					}
				}
				else
				{
					this.tmpLeft += tmpPasX;
					this.tmpTop += tmpPasY;
					this.TimerDefile = window.setTimeout("Sliders[" + this.Index + "].Move("+tmpPasX+","+tmpPasY+")",this.TimeDefile)
				}
			//Applique les changements
		 		document.getElementById("Div_Slider"+this.Index).style.left=this.tmpLeft+"px";
		 		document.getElementById("Div_Slider"+this.Index).style.top=this.tmpTop+"px";
			}
//Demande d'ouverture
			this.Ouvre = function()
			{
			//Si le panneau est fermé
				if(this.isOpen == false)
				{
					clearTimeout(this.TimerDefile);
					this.TimerDefile=null;
					eval('Sliders[' + this.Index + '].Start()');
				}
			}
//Demande de fermeture
			this.Ferme = function()
			{
			//Si le panneau est ouver
				if(this.isOpen == true)
				{
					clearTimeout(this.TimerDefile);
					this.TimerDefile=null;
					eval('Sliders[' + this.Index + '].Start()');
				}
			}
//Ferme l'objet
			this.Close = function()
			{
		 		document.getElementById("Div_Slider"+this.Index).style.display="none";
				clearTimeout(this.TimerDefile);
				this.TimerDefile=null;
			}
		
		//déssine le bandeau vertical avec la croix et les flêches
			tmpBanniereV = "<TABLE width='100%' height='100%' cellspacing=0 cellpadding=0 border=0>";
			tmpBanniereV += "<TR height='1px' nowrap valign=top>";
			tmpBanniereV += "<TD align=center width="+this.TailleBandeau+" nowrap><A href='javascript:Sliders[" + this.Index + "].Ouvre();'><img src='http://www.starnet-france.com/slide/G.gif' border=0></A></TD>";
			tmpBanniereV += "</TR>";
			tmpBanniereV += "<TR height='1px' nowrap  valign=top>";
			tmpBanniereV += "<TD align=center width="+this.TailleBandeau+" nowrap><A href='javascript:Sliders[" + this.Index + "].Ferme();'><img src='http://www.starnet-france.com/slide/D.gif' border=0></A></TD>";
			tmpBanniereV += "</TR>";
			tmpBanniereV += "<TR  valign=top>";
			tmpBanniereV += "<TD align=center width="+this.TailleBandeau+" nowrap><A href='javascript:Sliders[" + this.Index + "].Close();' style='text-decoration:none;font-weight:bold;font-size:15px;'><img src='http://www.starnet-france.com/slide/X.gif' border=0></A></TD>";
			tmpBanniereV += "</TR>";
			tmpBanniereV += "</TABLE>";
		//déssine le bandeau horizontal droite avec la croix et les flêches
			tmpBanniereH_LEFT = "<TABLE width='100%' height='100%' cellspacing=0 cellpadding=0 border=0>";
			tmpBanniereH_LEFT += "<TR width="+this.TailleBandeau+" nowrap  valign=top>";
			tmpBanniereH_LEFT += "<TD align=right><A href='javascript:Sliders[" + this.Index + "].Ouvre();'><img src='http://www.starnet-france.com/slide/B.gif' border=0></A></TD>";
			tmpBanniereH_LEFT += "<TD align=right width='1px' nowrap><A href='javascript:Sliders[" + this.Index + "].Ferme();'><img src='http://www.starnet-france.com/slide/H.gif' border=0></A></TD>";
			tmpBanniereH_LEFT += "<TD align=right width='1px' nowrap><A href='javascript:Sliders[" + this.Index + "].Close();' style='text-decoration:none;font-weight:bold;font-size:15px;'><img src='http://www.starnet-france.com/slide/X.gif' border=0></A></TD>";
			tmpBanniereH_LEFT += "</TR>";
			tmpBanniereH_LEFT += "</TABLE>";
		//déssine le bandeau horizontal gauche avec la croix et les flêches
			tmpBanniereH_RIGHT = "<TABLE width='100%' height='100%' cellspacing=0 cellpadding=0 border=0>";
			tmpBanniereH_RIGHT += "<TR width="+this.TailleBandeau+" nowrap  valign=top>";
			tmpBanniereH_RIGHT += "<TD align=center width='1px' nowrap><A href='javascript:Sliders[" + this.Index + "].Ouvre();'><img src='http://www.starnet-france.com/slide/B.gif' border=0></A></TD>";
			tmpBanniereH_RIGHT += "<TD align=center width='1px' nowrap><A href='javascript:Sliders[" + this.Index + "].Ferme();'><img src='http://www.starnet-france.com/slide/H.gif' border=0></A></TD>";
			tmpBanniereH_RIGHT += "<TD align=left><A href='javascript:Sliders[" + this.Index + "].Close();' style='text-decoration:none;font-weight:bold;font-size:15px;'><img src='http://www.starnet-france.com/slide/X.gif' border=0></A></TD>";
			tmpBanniereH_RIGHT += "</TR>";
			tmpBanniereH_RIGHT += "</TABLE>";
//Déssine l'objet
			tmpString = "<DIV id='Div_Slider"+this.Index+"' style='display:none;border:1px solid black;position:absolute;left:"+this.PosLeftDepart+";top:"+this.PosTopDepart+";width:"+this.Largeur+"px;height:"+this.Hauteur+"px;z-index:1000;"
			if(this.isOpaque == true)
			{
				tmpString += "background-color:#FFFFFF"
			}
			tmpString += "'>";
			tmpString += "<TABLE width='100%' height='100%' cellspacing=0 cellpadding=0 border=0>";
			if (this.Direction =="TOP")
			{
				tmpString += "<TR valign=middle height="+this.TailleBandeau+" nowrap>";
				tmpString += "<TD align=center>";
				if (this.PosX =="RIGHT")
					tmpString += tmpBanniereH_RIGHT;
				else
					tmpString += tmpBanniereH_LEFT;
				tmpString += "</TD>";
				tmpString += "</TR>";
			}
			tmpString += "<TR valign=middle>";
			if (this.Direction =="LEFT")
			{
				tmpString += "<TD align=center width="+this.TailleBandeau+" nowrap>";
				tmpString += tmpBanniereV;
				tmpString += "</TD>";
			}
			tmpString += "<TD align=center>";
			tmpString += this.Contenu;
			tmpString += "</TD>";
			if (this.Direction =="RIGHT")
			{
				tmpString += "<TD align=center width="+this.TailleBandeau+" nowrap>";
				tmpString += tmpBanniereV;
				tmpString += "</TD>";
			}
			tmpString += "</TR>";
			if (this.Direction =="BOTTOM")
			{
				tmpString += "<TR valign=middle height="+this.TailleBandeau+" nowrap>";
				tmpString += "<TD align=center>";
				if (this.PosX =="RIGHT")
					tmpString += tmpBanniereH_RIGHT;
				else
					tmpString += tmpBanniereH_LEFT;
				tmpString += "</TD>";
				tmpString += "</TR>";
			}
			tmpString += "</TABLE>";
			tmpString += "</DIV>";
  			document.write(tmpString);
		}
