 
function interrogate(what) { 
    var output = 'Req: '; 
    for (var i in what) 
        output += i+ ' -   - '; 
    alert(output); 
} 
 
var browserName = navigator.appName;  
var browserVer = parseInt(navigator.appVersion);  
var ns = (browserName == "Netscape" && browserVer <6); 
var ie4 = (browserName == "Microsoft Internet Explorer") && navigator.appVersion.indexOf('MSIE 4')>0; 
var ie5 = (browserName == "Microsoft Internet Explorer") && navigator.appVersion.indexOf('MSIE 5')>0; 
var ie = (browserName == "Microsoft Internet Explorer"); 
 
function ObjPreload(ImgOn, ImgOff){ 
	this.ImgOn = new Image(); 
	this.ImgOff = new Image();	 
	this.ImgOn.src = ImgOn; 
	this.ImgOff.src = ImgOff; 
} 
 
function ObjImg(LayerName, ImgName, ObjPreload){ 
	this.ImgName = ImgName; 
	this.RollOn = RollOn;	 
	this.RollOff = RollOff;	 
	if (LayerName !== null){ 
		if (ns){ 
			this.LayerRoll = document.layers[LayerName]; 
			this.RollOn = RollOnN; 
			this.RollOff = RollOffN; 
		} 
	} 
	this.ObjPreload = ObjPreload; 
} 
 
function RollOnN(){ 
     this.LayerRoll.document[this.ImgName].src = this.ObjPreload.ImgOn.src; 
} 
 
function RollOn(){ 
     document[this.ImgName].src = this.ObjPreload.ImgOn.src; 
} 
 
function RollOffN(){ 
     this.LayerRoll.document[this.ImgName].src = this.ObjPreload.ImgOff.src; 
} 
 
function RollOff(){ 
     document[this.ImgName].src = this.ObjPreload.ImgOff.src; 
} 
 
//Permet de creer un objet Layer 
function CreateLayer(id, Nested){ 
// Properties 
	if(ns){ 
		this.LeLayer = (Nested!==null)? document.layers[Nested].document.layers[id] : document.layers[id]; 
		this.doc = this.LeLayer.document; 
	}else if (ie){ 
		this.LeLayer = document.all[id].style; 
		this.doc = document.all[id] 
	} 
		this.id = id; 
		this.x = this.LeLayer.left; 
		this.y = this.LeLayer.top; 
		this.EtatVisibility = this.LeLayer.visibility; 
		this.Obj = "Layer"+id; 
		this.cibleY = 0; 
		this.vitesseY = 0; 
		this.cibleX = 0; 
		this.vitesseX = 0; 
		this.SlideActive = false; 
// Methods 
		this.Show = ShowLayer; 
		this.Hide = HideLayer; 
		this.Write = WriteinLayer; 
		this.Slide = SetSlideActive; 
		this.SlideStart = SlideStart; 
		this.SlideStop = SlideStop; 
		this.Move = MoveLayer; 
		this.InfoBulle = AffBulle; 
		this.SlideFinished = SlideStop; 
		this.SetPosSlide = SetPosSlide; 
} 
 
//Permet d'avoir un bandeau deroulant qui gere son retour 
function CreateBandeau(Children, positionX1, positionX2, vitesseX, positionY1, positionY2, vitesseY){ 
		this.Children = Children; 
		this.PosArrayX = new Array(); 
		this.PosArrayX[-1] = positionX1; 
		this.PosArrayX[1]  = positionX2; 
		this.PosArrayY = new Array(); 
		this.PosArrayY[-1] = positionY1; 
		this.PosArrayY[1]  = positionY2; 
		this.Flag = 1; 
		this.positionY1 = positionY1; 
		this.positionY2 = positionY2; 
		this.vitesseX = vitesseX; 
		this.vitesseY = vitesseY; 
		this.Children.cibleX = this.PosArrayX[1]; 
		this.Children.cibleY = this.PosArrayY[1]; 
		this.Children.vitesseX = this.vitesseX; 
		this.Children.vitesseY = this.vitesseY; 
		this.Children.SlideFinished = SlideBack; 
		this.Children.Parent = this; 
		this.SlideBandeau = SlideBandeau; 
} 
 
//Show method 
function ShowLayer(){ 
	this.LeLayer.visibility = "visible"; 
} 
 
//Hide method 
function HideLayer(){ 
	this.LeLayer.visibility = "hidden"; 
} 
 
//Write method 
function WriteinLayer(text) { 
 if (ns) { 
  this.doc.open() 
  this.doc.write(text) 
  this.doc.close() 
 } 
 else if (ie) this.doc.innerHTML = text 
} 
 
var Time; 
//Move method 
function MoveLayer(positionX,vitesseX,positionY,vitesseY){ 
this.ypos = parseInt(this.LeLayer.top); 
this.xpos = parseInt(this.LeLayer.left); 
  if (this.SlideActive){ 
      if ((this.xpos * vitesseX) <= (positionX * vitesseX) && (this.ypos * vitesseY) <= (positionY * vitesseY)) { 
		this.ypos += vitesseY; 
		this.LeLayer.top = this.ypos; 
		this.xpos += vitesseX; 
		this.LeLayer.left = this.xpos; 
		this.Time = setTimeout(this.Obj+'.SlideStart()',30); 
  	  }else{ 
	    clearTimeout(this.Time); 
		this.SlideFinished(); 
	  } 
  } 
}  
 
function SlideStop(){ 
	this.SlideActive = false; 
} 
 
function SetSlideActive(){ 
	this.SlideActive = true; 
	this.SlideStart(); 
} 
 
function SlideStart(){ 
	this.Move(this.cibleX,this.vitesseX,this.cibleY,this.vitesseY); 
} 
 
function SlideBandeau(){ 
	this.Children.Slide(); 
} 
 
function SlideBack(){ 
		this.Parent.Flag = -1 * this.Parent.Flag; 
		var Flag = this.Parent.Flag; 
	  	this.cibleX = this.Parent.PosArrayX[Flag]; 
		this.cibleY = this.Parent.PosArrayY[Flag]; 
		this.vitesseX = -1 * this.vitesseX; 
		this.vitesseY = -1 * this.vitesseY; 
		this.Slide(); 
} 
//Update Slide properties and Slide 
function SetPosSlide(cibleX,vitesseX,cibleY,vitesseY){ 
	this.cibleY = cibleY; 
	this.cibleX = cibleX; 
	this.vitesseY = vitesseY; 
	this.vitesseX = vitesseX; 
	this.Slide(); 
} 
 
//InfoBulle method 
if (ns){ 
	var nsx; 
	var nsy; 
	window.captureEvents(Event.MOUSEMOVE); 
	window.onMouseMove=MousePosition; 
} 
function AffBulle(texte) { 
contenu="<TABLE border=0 cellspacing=0 cellpadding=1><TR bgcolor=#000000><TD><TABLE border=0 cellpadding=2 cellspacing=0 bgcolor=#FFFFCC><TR><TD><FONT size='-1' face='arial' color=#000000>"+texte+"</FONT></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE>"; 
 
	if (ns) { 
		this.LeLayer.top=nsy+10; 
		this.LeLayer.left=nsx-10; 
	} 
	else if (ie) { 
		var f=window.event; 
		if (ie5 && mac){ 
		    this.LeLayer.top=f.y+10; 
		}else{ 
		    this.LeLayer.top=f.offsetY+10; 
		 
		} 
	        this.LeLayer.left=f.x-10; 
	} 
    this.Write(contenu); 
    this.Show(); 
} 
 
function MousePosition(e) { 
	nsx=e.x;nsy=e.y; 
} 
 
/***fonction pour ouvrir les popups***/ 
function popupWindow(FileName,WindowName,WindowWidth,WindowHeight,PositionLeft,PositionTop,scroll){ 
  window.open(FileName,WindowName,'resizable=no,scrollbars='+scroll+',toolbar=no,menubar=no,personalbar=no,status=no,screenX='+PositionLeft+',screenY='+PositionTop+',top='+PositionTop+',left='+PositionLeft+',width='+WindowWidth+',height='+WindowHeight); 
} 
 
/***permet d'imprimer une page ***/ 
var da = (document.all) ? 1 : 0; 
var pr = (window.print) ? 1 : 0; 
var mac = (navigator.userAgent.indexOf("Mac") != -1);  
 
function PrintPage(){ 
  if (pr && !mac){ 
	  window.print(); 
	} 
  else if ( browserName == "Microsoft Internet Explorer" && browserVer <= 4 && !mac ){ 
	  vbPrintPage(); 
	} 
  else if (mac){ 
      if (da){ 
	    alert("Pour imprimer cette page,\n veuillez utiliser le menu fichier - imprimer\n de votre navigateur."); 
      }else{ 
            window.print(); 
      } 
	} 
} 
 
if (da && !pr && !mac) with (document) { 
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'); 
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">'); 
  writeln('Sub window_onunload'); 
  writeln('  On Error Resume Next'); 
  writeln('  Set WB = nothing'); 
  writeln('End Sub'); 
  writeln('Sub vbPrintPage'); 
  writeln('  OLECMDID_PRINT = 6'); 
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2'); 
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1'); 
  writeln('  On Error Resume Next'); 
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER'); 
  writeln('End Sub'); 
  writeln('<' + '/SCRIPT>'); 
} 
