// JavaScript Document

function clip() {

 	// width of the banner container
	// Calcul de la longueur totale du bandeau:
	// Nombre d'images à prendre en compte: images du bandeau de départ + images intermédiares :
	// dans cet exemple: 12 + 12 = 24 images.
	// largeur image + espace de 4 pixels: (70 + 4) x 24 = 1776 px.
 	var contWidth = 4004 ; 

	// largeur du bandeau affiché (voir css): 900 px.
 	var displayWidth = 900 ; 

 	// height of the banner container
 	var contHeight = 70;

 	var id1 = document.getElementById('slideA');

 	id1.style.left = parseInt(id1.style.left)-1 + 'px';

//	document.getElementById('slideCont').style.width = contWidth + "px";
	document.getElementById('slideCont').style.width = displayWidth + 'px';

 	document.getElementById('slideCont').style.clip = 'rect(auto,'+ contWidth +'px,' + contHeight +'px,auto)';

 	if(parseFloat(id1.style.left) == -(contWidth)) 	{

 	id1.style.left = '0px'; 
 	}

 	setTimeout(clip,25)

}



// Multiple onload function created by: Simon Willison

// http://simonwillison.net/2004/May/26/addLoadEvent/

function addLoadEvent(func) {

  var oldonload = window.onload;

  if (typeof window.onload != 'function') {

    window.onload = func;

  } else {

    window.onload = function() {

      if (oldonload) {

        oldonload();

      }

      func();

    }

  }

}



addLoadEvent(function() {

  clip();

});

