// clignotement des news de moins de 10 jours
function clignotement(){
    if (document.getElementById("blink").style.visibility=="visible")
       document.getElementById("blink").style.visibility="hidden";
    else
        document.getElementById("blink").style.visibility="visible";
}
// mise en place de l appel rˇgulier de la fonction toutes les 0.5 secondes
setInterval("clignotement()", 500);

// popup window
    <!--
	function popup(img,w,h) { 
     window.open(img,'Photo','width=' + w + ',height=' + h + ',toolbar=no,scrollbars=no,resizable=yes');
     //return false;
	}
    //-->
    
 
// Page partenaire, rollOver
window.addEvent('domready', function() { 
    // Rollover script
    $$('img.roll', 'input.roll').each(function(el){    	
        el.addEvent('mouseover',function(){
            this.setAttribute('src',this.src.replace('partners', 'partners_h'));
            this.setAttribute('src',this.src.replace('.png', '_h.png'));
        });
        el.addEvent('mouseout',function(){
            this.setAttribute('src',this.src.replace('partners_h', 'partners'));
            this.setAttribute('src',this.src.replace('_h.png', '.png'));
        });
    });
});
// Page partenaire, preload
function loadImage(location) {
   if (location instanceof Array) { 
      for (var i=0; i<location.length; i++) {
          loadImage(location[i]);
      }
   }
   var img = new Image();
   img.src=location;
}
 
// defilement des news
var pos;
var speed = 0.7;
var pos_initial;

function startAnim() {
	var e = document.getElementById('newsbox');
	pos_initial = e.clientHeight - 70;
	pos = pos_initial;
	setInterval('anim()', 25);
}
function anim() {
	var e = document.getElementById('newslist');
	e.style.visibility = 'visible';
	e.style.top = Math.floor(pos) + 'px';
	pos = pos - speed;
	if(pos < -e.clientHeight) pos = pos_initial+20;
}
window.onload = function() {
  var e = document.getElementById('newsbox');
  e.onmouseover = function() { speed = 0; };
  e.onmouseout = function() { speed = 0.7; };
  startAnim()
};