var totalarrow = 7;
var arrowcount = 1;
var timeoutcount = 5000;

function showarrow(){
	var theselected = document.getElementById('a' + arrowcount);
	if((arrowcount - 1) != 0){
		var theoldselected = document.getElementById('a' + (arrowcount - 1));
		theoldselected.style.display = 'none';
	} else {
		var theoldselected = document.getElementById('a' + totalarrow);
		theoldselected.style.display = 'none';
	}
	theselected.style.display = 'block';
	
	
	//setTimeout(newarrow,timeoutcount);
}
function newarrow(){
	if(arrowcount != totalarrow){
		arrowcount ++;
		showarrow();
	} else {
		arrowcount = 1;
		showarrow();
	}
}





/***********************************
		SWITCH THE FEATURED PROJECT STUFF
***********************************/

function switchfeatured(which){
	var thediv = document.getElementById(which.id);
	if(thediv.className != 'featuredproject_on'){
		thediv.className = 'featuredproject_on';
	} else {
		thediv.className = 'featuredproject_off';
	}
}




function openClose(which){
	var theDiv = document.getElementById(which);
	if(theDiv.style.display != 'block'){
		theDiv.style.display = 'block';
	} else {
		theDiv.style.display = 'none';
	}
}