function MM_findObj(n, d) { //v4.01
			  	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 && d.getElementById) x=d.getElementById(n); return x;
			}
	var i=1; var timer = null;
	var total=0;
	var duree=10000; var isstopped=false;
	function donotdisplay(menu){
                    		var k=1;
                    		var hideobj = MM_findObj(menu+''+k);
                    		while(hideobj!=null){
                   			hideobj.style.display='none';
                   			k++;
                    			hideobj = MM_findObj(menu+''+k);
                    		}
                    	}
        function donotdisplayfirst(menu){
                    		var k=2;
                    		var hideobj = MM_findObj(menu+''+k);
                    		while(hideobj!=null){
                   			hideobj.style.display='none';
                   			k++;
                    			hideobj = MM_findObj(menu+''+k);
                    			if(menu=='une-') total=total+1;
                    		}
                    	}
        function chgmenunext(nextorprevious){
				var oldi = i;
				
                   		var oldobjdesc = MM_findObj('une-'+i);
                   		oldobjdesc.style.display='none';
                   		//new Effect.Puff(oldobjdesc)
                   		
                   		if(nextorprevious=='next') i++;
                   		else if(nextorprevious=='previous') i--;
                   		else if(nextorprevious=='first') i=1;
                   		
					
				var objdesc = MM_findObj('une-'+i);
				if(objdesc == null) {
					if(i<1){
						i=total+1;
						var objdesc = MM_findObj('une-'+i);
						new Effect.Appear(objdesc);
						//objdesc.style.display='block';
					}else {
						i=1;
						var objdesc = MM_findObj('une-'+i);
						new Effect.Appear(objdesc);
						//objdesc.style.display='block';
					}
				}else {
					new Effect.Appear(objdesc);
					//objdesc.style.display='block';
				}				
				
				return objdesc;
                    	}
        
        function chgtimer(){
      				var chger = chgmenunext('next');
                    		if(chger==null) chgmenunext('first');
        }
        function chgmenunexttimerleft(nextorprevious){
        			if(isstopped) setPause();
        			clearInterval(timer);
        			chgmenunext(nextorprevious);
		  		timer = setInterval("chgtimer()", duree);
        }
        function launch(){
        			var objLien = MM_findObj('pause-sys');
        			isstopped = false;
		  		timer = setInterval("chgtimer()", duree);
        			objLien.className='pause';
        			var hideobj = MM_findObj('indicateur-lecteur');
                    		hideobj.style.display='none';
        }
        function setPause(){
        			if(isstopped) launch();
        			else {
        				var objLien = MM_findObj('pause-sys');
        				isstopped = true;
        				clearInterval(timer);
        				objLien.className='paused';
        				
        				var showobj = MM_findObj('indicateur-lecteur');
                    			showobj.style.display='block';
        			}
        }
        
                    	