// intéressant:  http://www.boogiejack.com/scrolling_background.html
// http://www.boogiejack.com/scrolling_background.html
var x=0;
var running = 0;
var steps = 1; // smoothness
var speed = 20; //20
var thebox = null;

function run() {
	x -= steps;
	if (x < -759)
		x = 0;
	thebox.style.backgroundPosition=""+x+"px 0px";
}
function start_bande() {

	var IE6 = (document.all && parseFloat(navigator.appVersion.split("MSIE")[1])>=6)? true : false;

	/* désactiver cette sombre merde :(
	 * http://www.fivesevensix.com/studies/ie6flicker/
	 * http://www.alistapart.com/discuss/slidingdoors2/3/#c5309
	 * http://archivist.incutio.com/viewlist/css-discuss/30707
	 * http://archivist.incutio.com/viewlist/css-discuss/41853
	 */
	if (IE6) return true;

	// pour faire un peu moins de flickering sur le curseur (ie6...)
	if (IE6) speed = 50;

	if (document.getElementById) {
		thebox = document.getElementById("bande");
		running = window.setInterval("run()", speed);
		}
 	return true;
}
function stop_bande() {
	if(running) {
		clearTimeout(running);
		running = 0;
	}
}
