function project_auto_changer()
{
timerID = setTimeout("project_to_next()",(5000));
}

function project_to_next()
{
next_project = current_project+1;
if(next_project>=all_projects) next_project = 1;

document.getElementById('project_'+current_project).style.display='none';
document.getElementById('project_'+next_project).style.display='block';
current_project=next_project;

project_auto_changer();	
}

function project_select(next_project)
{
clearTimeout(timerID);

document.getElementById('project_'+current_project).style.display='none';
document.getElementById('project_'+next_project).style.display='block';
current_project=next_project;

project_auto_changer();
	
}