function MM_openBrWindow(theURL,winName,features) { //v1.2

  window.open(theURL,winName,features);

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function selectImage(source)
	{
	src_bouton = new Array ("bo-participants-part","bo-participants-empl","bo-participants-se")
	src_bg_menu = new Array("bg-menu-se","bg-menu-empl", "bg-menu-part");
	
	
	}

function handlerMM(e){
	x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX;
	y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY;
	flag=1;
};
function makesnake() {
	if (flag==1 && document.all) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step;
			ypos[i]=ypos[i-1];
    	}
		xpos[0]=x+step;
		ypos[0]=y;
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("span"+(i)+".style");
    		thisspan.posLeft=xpos[i];
			thisspan.posTop=ypos[i];
    	}
	}
	else if (flag==1 && document.layers) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step;
			ypos[i]=ypos[i-1];
    	}
		xpos[0]=x+step;
		ypos[0]=y;
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("document.span"+i);
    		thisspan.left=xpos[i];
			thisspan.top=ypos[i];
    	}
	}
		var timer=setTimeout("makesnake()",30);
};


function doDisplay() {
	clearTimeout(oTimer)
	if (sSource!="") {
		if (document.images.slideShow.filters) {
			document.images.slideShow.filters[0].Stop()
			document.images.slideShow.filters[0].Apply()
			document.images.slideShow.filters.revealTrans.transition=23
		}
  		document.images.slideShow.src = sSource
		if (document.images.slideShow.filters)
			document.images.slideShow.filters[0].Play()
	}

}

function doReadyImage() {
	sSource = this.src
	if (oTimer==null) doDisplay()
}

function doErrorDisplay() {
	clearTimeout(oTimer)
	doLoad()
}

function doLoad() {
	clearTimeout(oTimer)
	var img = new Image()
	img.onload = doReadyImage
	img.onerror = doErrorDisplay
	sSource = ""
	iCurrent++
	if (iCurrent==aImages.length) iCurrent=0
	oTimer = setTimeout("oTimer=null;doDisplay()",iDisplay)
	img.src = aImages[iCurrent]
}

function quickNextLoad() {
	clearTimeout(oTimer)
	oTimer=null
	var img = new Image()
	img.onload = doReadyImage
	img.onerror = doErrorDisplay
	img.src = aImages[iCurrent]
}

function quickPrevLoad() {
	clearTimeout(oTimer)
	oTimer=null
	var img = new Image()
	img.onload = doReadyImage
	img.onerror = doErrorDisplay
	iCurrent-=1
	if (iCurrent<0) iCurrent=aImages.length-1
	iCurrent-=1
	if (iCurrent<0) iCurrent=aImages.length-1
	img.src = aImages[iCurrent]
}
var shadowDirection = 0;

function start() 
{
   window.setInterval( "runDemo()", 500 );
}

function runDemo() 
{
            
   shadowText.filters( "shadow" ).direction = 
       ( shadowDirection % 360 );
         shadowDirection += 45;
}



