function processLinks() {

	var liens = document.getElementsByTagName('a');
	for (var i = 0 ; i < liens.length ; ++i) {
		if (liens[i].className == 'blank') {
			liens[i].title = 'Ouvrir une nouvelle page';
			liens[i].onclick = function() {
				window.open(this.href);
				return false;
			};
		}
		else if (liens[i].className == 'popup') {
			liens[i].title = 'Ouvrir un popup';
			liens[i].onclick = function() {
				window.open(this.href, '', 'width=900, height=500, resizable=yes, scrollbars=yes');
				return false;
			};
		}
	}
}


function openVideo(hrf) {
	window.open(hrf, 'video', 'width=700, height=650, resizable=yes, scrollbars=no');
}

function autoScroll() {
	if (Math.abs(actualPosition) < (scrollHeight+scrollPause))
		scrollBox.style.top = parseInt(scrollBox.style.top)+scrollSpeed+'px';
	else {
		actualPosition = 0;
		scrollBox.style.top = (scrollSpeed > 0) ? -scrollPause+'px' : scrollPause+'px';
	}
	actualPosition += scrollSpeed;
}


function startAutoScroll(bId, bSpeed, bHeight, sPause) {

	scrollBox = document.getElementById(bId);
	scrollSpeed = bSpeed;
	scrollHeight = bHeight;
	scrollPause = sPause;
	actualPosition = 0;
	scrollPauseTimer = 0;
	scrollBox.style.top = (scrollSpeed > 0) ? -scrollPause+'px' : scrollPause+'px';

	setInterval('autoScroll()', 100);
}



/*



*/

/*
function autoScroll() {
	if (Math.abs(actualPosition) < (scrollHeight+scrollPause))
		scrollBox.style.left = parseInt(scrollBox.style.left)+scrollSpeed+'px';
	else {
		actualPosition = 0;
		scrollBox.style.left = (scrollSpeed > 0) ? -240+'px' : 240+'px';
	}

		actualPosition += scrollSpeed;
	
}


function startAutoScroll(bId, bSpeed, bHeight, sPause) {

	scrollBox = document.getElementById(bId);
	scrollSpeed = bSpeed;
	scrollHeight = bHeight;
	scrollPause = sPause;
	actualPosition = 0;
	scrollPauseTimer = 0;
	scrollBox.style.left = (scrollSpeed > 0) ? -scrollPause+'px' : scrollPause+'px';

	setInterval('autoScroll()', 100);
}
*/