document.oncontextmenu = document.ondragstart = document.onselectstart = function() { return false };
if (!Safari) { document.onmousedown = function() { return false }; document.onclick = function() { return true }; }
/* usage<body><div id="slideCont" style="position:relative;z-index:1;width:140px;left:0px;overflow:hidden;">	<div id="slideA" style="position:absolute;z-index:1;top:0px;left:0px;width:140px;overflow:hidden;">		<div id="slideB" style="position:relative;z-index:1;top:0px;left:0px;width:140px;overflow:hiden;">		your banners (images inside anchor tags)			your banners (images inside anchor tags)		</div>	</div></div></body>In order the have the script working in FireFox as well you need a proper "DTD" to prevent the browser's "quirksmode".Please see http://www.quirksmode.nl/ for more details.Or in case you experience problems, copy and paste next line on top of your webpage:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">OLD :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
*/var Id_Timer =null;
//--------------
function Start1(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("avance(1)",100);
}
//-------------
function Stop(){
  clearInterval( Id_Timer);
}//--------------
function Start2(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("avance(20)",50);
}
function Start3(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("recule(1)",50);
}
function Start4(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("recule(20)",50);
}
//--------------
function Start5(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("avancetexte(20)",50);
}
//--------------
function Start6(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("avancetexte(1)",50);
}
//--------------
function Start7(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("reculetexte(10)",50);
}
//--------------
function Start8(){
  //-- IMPORTANT clear avant
  clearInterval( Id_Timer);
  Id_Timer = setInterval("reculetexte(1)",50);
}
function avance(nbr) { 	// width of the banner container 	var contWidth = 537; 	// height of the banner container 	var contHeight = 518; 	var id1 = document.getElementById('slideA'); 	var width = id1.offsetWidth; 	id1.style.left = parseInt(id1.style.left) - nbr + 'px';		// on donne aux deux divs les trucs quivants :
 	document.getElementById('slideCont').style.height = contHeight + "px";
	//document.getElementById('slideCont').style.width = contWidth + "px";
 	document.getElementById('slideCont').style.avance = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)';
	// si l'objet est trop à gauche, on l met à droite !
 	if(parseFloat(id1.style.left) <= (-(width-contWidth))) {
  		id1.style.left = (-(width-contWidth))+'px';
 	}}function recule(nbr) { 	// width of the banner container 	var contWidth = 537; 	// height of the banner container 	var contHeight = 518; 	var id1 = document.getElementById('slideA'); 	var width = id1.offsetWidth; 	id1.style.left = parseInt(id1.style.left) + nbr + 'px';		// on donne aux deux divs les trucs quivants :
 	document.getElementById('slideCont').style.height = contHeight + "px";
	//document.getElementById('slideCont').style.width = contWidth + "px";
 	document.getElementById('slideCont').style.avance = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)';
	// si l'objet est trop à gauche, on l met à droite !
 	if(parseFloat(id1.style.left) >= 0) {
		//le -20 est l'espacement entre les images
  		id1.style.left = '0px';
 	}		}function avancetexte(nbr) { 	// width of the banner container 	var contWidth = 350; 	// height of the banner container 	var contHeight = document.getElementById('liste_editos').offsetHeight; 	var id1 = document.getElementById('slideC'); 	var height = id1.offsetHeight; 	id1.style.top = parseInt(id1.style.top)-nbr + 'px'; 	document.getElementById('liste_editos').style.height = contHeight + "px"; 	document.getElementById('liste_editos').style.clip = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)'; 	if(parseFloat(id1.style.top) <= (-height+512)) {  		id1.style.top = (-height+512)+ 'px';
 	}}function reculetexte(nbr) { 	// width of the banner container 	var contWidth = 350; 	// height of the banner container 	var contHeight = document.getElementById('liste_editos').offsetHeight; 	var id1 = document.getElementById('slideC'); 	var height = id1.offsetHeight; 	id1.style.top = parseInt(id1.style.top)+nbr + 'px'; 	document.getElementById('liste_editos').style.height = contHeight + "px"; 	document.getElementById('liste_editos').style.clip = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)';  	if(parseFloat(id1.style.top) >= 0) {  		id1.style.top = '0px'; 	}}function deselect(idDuPlusGrosEdito) {	// on mets tous les liens en normal	for (i=0; i <= idDuPlusGrosEdito; i++) {		var lien = document.getElementById('lienedito'+i);		if (lien) {
			lien.className= "edito";
		}	}} function gras(nom) {	// on met le lien courant en gras	var lienselected = document.getElementById(nom);
	lienselected.className= "editoSelected";} function flashGetHref() { return location.href; }
function flashPutHref(href) { location.href = href; }
function flashGetTitle() { return document.title; }
function flashPutTitle(title) { document.title = title; }

function hiddenOthersEditos(num){
	for (i=0; i <= num; i++) {
         document.getElementById("lienedito"+i).style.visibility="visible";
         document.getElementById("lienedito"+i).style.display="block";
         document.getElementById("lieneditoselect"+i).style.visibility="hidden";
		 document.getElementById("lieneditoselect"+i).style.display="none";
	}
}
	
function changeVisibility(num){
      if(document.getElementById("lienedito"+num).style.visibility!="hidden"){
         document.getElementById("lienedito"+num).style.visibility="hidden";
         document.getElementById("lienedito"+num).style.display="none";
         document.getElementById("lieneditoselect"+num).style.visibility="visible";
		 document.getElementById("lieneditoselect"+num).style.display="block";
      }
  }
