function popup2(url, titre, parametres) {
	window.open(theURL,winName,features);
}

function popup(photo, titre, largeur, hauteur)	{

	var contenu="<html><head><title>"+titre+"</title></head><body topmargin='0' leftmargin='0'><p><a href='javascript:self.close()'><img border='0' src='"+photo+"'></a><div id='Layer1' style='position:absolute; z-index:1; left: 2; top: 2'><i><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>Cliquez sur l\'image pour fermer.</font></i></div></p></body></html>";

	var fenetre=open("","","title="+titre+",resizable=no,width="+largeur+", height="+hauteur+"");
	
	fenetre.document.write(contenu);
	}
	
function video(fichier, titre) {

var contenu="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//FR\">\n<html>\n<head>\n<title>"+titre+"</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n</head>\n<body topmargin='0' leftmargin='0' bgcolor='#006666'>\n<DIV align=\"center\">\n<table CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" HEIGHT=\"162\"><tr><td WIDTH=\"4\" HEIGHT=\"162\" ROWSPAN=\"3\" VALIGN=\"TOP\"><img SRC=\"travail/video/tv_tvA.gif\" WIDTH=\"4\" HEIGHT=\"162\"></td><td WIDTH=\"170\" HEIGHT=\"17\" VALIGN=\"TOP\"><img SRC=\"travail/video/tv_tvB.gif\" WIDTH=\"170\" HEIGHT=\"17\"></td><td WIDTH=\"13\" HEIGHT=\"162\" ROWSPAN=\"3\" VALIGN=\"TOP\"><img SRC=\"travail/video/tv_tvC.gif\" WIDTH=\"13\" HEIGHT=\"162\"></td></tr><tr><td WIDTH=\"170\" HEIGHT=\"128\" VALIGN=\"middle\" bgcolor=\"#000000\"><div align=\"center\"><embed src=\""+fichier+"\" width=\"160\" height=\"112\" autostart=\"true\" loop=\"1\" showcontrols=\"false\" menu=\"false\" autoload=\"true\" ></embed></div></td>\n</tr>\n<tr>\n<td WIDTH=\"170\" HEIGHT=\"17\" VALIGN=\"TOP\"><img SRC=\"travail/video/tv_tvD.gif\" WIDTH=\"170\" HEIGHT=\"17\">\n</td>\n</tr>\n</table>\n</DIV>\n</body>\n</html>";

var fenetre=open("","","title="+titre+",resizable=yes,width=187, height=162");

fenetre.document.write(contenu);

}

function setTransition(){
   if (document.all){
      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
      bannerADrotator.filters.revealTrans.apply();
   }
}

function playTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.play()
}

function nextAd(){
   if(adNum<bannerAD.length-1)adNum++ ;
      else adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", 4000);
}

function jump2url(){
   jumpUrl=bannerADlink[adNum];
   jumpTarget='';
   if (jumpUrl != ''){
      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
      else location.href=jumpUrl;
   }
}

function displayStatusMsg() { 
   status=bannerADlink[adNum];
   document.returnValue = true;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

/*
var DrapX=10
var DrapY=-20
var Deb='<Font face=Arial size=2 color="#C9C927"><B>'
var Texte='Domaine Laurens !'
var Espace=5
var Vitesse=50
var Fin='</B></FONT>'
var Ok=0;var x,y;txt=Texte.split("")
var Chaine=Texte.length-1;var t=0;
xp= new Array();yp= new Array()
for (i=0;i<Chaine;i++){xp[i]=-50;yp[i]=-50;
if (navigator.appName == "Netscape") {
document.write('<LAYER NAME="ly'+i+'" top=-50>'+Deb+txt[i]
+Fin+'</font></LAYER>');t=1;}else{
document.write('<span ID="ly'+i+'" STYLE="Position:relative; top:-50; z-index: 100;">'
+Deb+txt[i]+Fin+'</font></span>');t=0};}
function Capte(ev){Ok=1
if (t){x=ev.pageX+DrapX; y=ev.pageY+DrapY}
else {x=event.clientX+DrapX;
y=event.clientY+DrapY+document.body.scrollTop};}
function Bouge(){if (Ok){
for (a=Chaine;a>0;a--){
xp[a]=xp[a-1]+Espace
yp[a]=yp[a-1];}
xp[0]=x+Espace;yp[0]=y
if (t){for (a=0;a<Chaine;a++){
with(eval("document.ly"+a)){
left=xp[a];top=yp[a];};};}else{
for (a=0;a<Chaine;a++){
with(eval("document.all.ly"+a+".style")){
posLeft=xp[a];posTop=yp[a];};};};}
setTimeout("Bouge()",Vitesse);}
if(t) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = Capte;
Bouge() */

