
	var pauseofferte = 5000;
	var incrementofferte = 5;
	var decrementofferte = 5;
	var recallofferte = 50;	
	
	var curindexofferte = 0;
	var curalphaofferte = 0;
	var timerofferte = null;
	var intervalofferte = null;
	var ocontofferte = new Array();
	
  function runboxofferte(){
    var otempcont = document.getElementsByTagName("div");
    	for (x=0; x<otempcont.length; x++){
  		  if (otempcont[x].className=="rbofferte"){
      		ocontofferte.push(otempcont[x]); 
  			}
  		}  
  	if (ocontofferte.length>0){
  		runofferte();
  	}
  }

	function runofferte(){
		ocontofferte[curindexofferte].style.display = "block";
	  if (curalphaofferte<=100){
  	  ocontofferte[curindexofferte].style.filter = "alpha(opacity=" + curalphaofferte + ")";
			ocontofferte[curindexofferte].style.MozOpacity = curalphaofferte/100;
			ocontofferte[curindexofferte].style.opacity = curalphaofferte/100;
			curalphaofferte = curalphaofferte + incrementofferte;
			timerofferte = window.setTimeout("runofferte()", recallofferte);  
		}
		else{
  		clearTimeout(timerofferte);
			curalphaofferte = 100; 
			intervalofferte = window.setTimeout("resetofferte(1)", pauseofferte);
		}
	}
	
	function runbackofferte(){
	  if (curalphaofferte>=0){
  	  ocontofferte[curindexofferte].style.filter = "alpha(opacity=" + curalphaofferte + ")";
			ocontofferte[curindexofferte].style.MozOpacity = curalphaofferte/100;
			ocontofferte[curindexofferte].style.opacity = curalphaofferte/100;
			curalphaofferte = curalphaofferte - decrementofferte;
			timerofferte = window.setTimeout("runbackofferte()", recallofferte);  
		}
		else{
  		clearTimeout(timerofferte); 
			ocontofferte[curindexofferte].style.display = "none";
    	curalphaofferte = 0;
    	curindexofferte++;
    	if (curindexofferte==ocontofferte.length){curindexofferte=0;}			
			resetofferte(0);
		}
	}	
	
	function resetofferte(ind){
		intervalofferte = null
		if (ind==0){runofferte();}else{runbackofferte();}
	}