	  
var actusCount;
var actusImgCount;
var currentActuPosition;
var actusList;
var actusImgList;
var withImg;


function initialiserActus(withImageBool)
{
	withImg = withImageBool;
	actusCount = 0;
	currentActuPosition = 0;
	var actu = document.getElementById("actu");
	var tmpList = actu.getElementsByTagName("div");
	actusList = new Array();
	for (i=0; i<tmpList.length; i++)
	{
		if(tmpList[i].className == "abstract")
		{
			actusList[actusCount] = tmpList[i];
			actusCount++;
		}
	}
	
	tmpList = actu.getElementsByTagName("p");
	actusImgList = new Array();
	actusImgCount = 0;
	if(withImageBool)
	{
		for (i=0; i<tmpList.length; i++)
		{
			if(tmpList[i].className == "newsImage")
			{
				actusImgList[actusImgCount] = tmpList[i];
				actusImgList[actusImgCount].childNodes[0].src = actusImgList[actusImgCount].childNodes[0].alt;
				actusImgCount++;
			}
		}
	}
	
	if(actusCount > 0)
	{
		actusList[0].style.display = "block";		
	}
	if(actusImgCount > 0 && withImg)
	{
		actusImgList[0].style.display = "block";		
	}
	checkActusList();
}

function nextActu()
{
	if(currentActuPosition < actusCount - 1)
	{
		actusList[currentActuPosition].style.display = "none";
		if(actusImgCount > 0 && withImg)
		{
			actusImgList[currentActuPosition].style.display = "none";		
		}		
		currentActuPosition += 1;
		actusList[currentActuPosition].style.display = "block";
		if(actusImgCount > 0 && withImg)
		{
			actusImgList[currentActuPosition].style.display = "block";		
		}
		checkActusList();
	}
}

function prevActu()
{
	if(currentActuPosition > 0)
	{
		actusList[currentActuPosition].style.display = "none";
		if(actusImgCount > 0 && withImg)
		{
			actusImgList[currentActuPosition].style.display = "none";		
		}		
		currentActuPosition -= 1;
		actusList[currentActuPosition].style.display = "block";
		if(actusImgCount > 0 && withImg)
		{
			actusImgList[currentActuPosition].style.display = "block";		
		}		
		checkActusList();
	}			
}

function checkActusList()
{
		if(currentActuPosition == actusCount -1)
		{
			document.getElementById("nextImg").src = "img/pct_actu_nextOff.gif";
		}
		else 
		{
			document.getElementById("nextImg").src = "img/pct_actu_nextOn.gif";
		}
		
		if(currentActuPosition == 0)
		{
			document.getElementById("prevImg").src = "img/pct_actu_prevOff.gif";
		}
		else 
		{
			document.getElementById("prevImg").src = "img/pct_actu_prevOn.gif";
		}				
}