//Rotates Project Profiles.

 

var interval = 15000;
reasonText = new Array(); 

function randNum(x, y) {
	var range = y - x + 1;
	return Math.floor(Math.random() * range) + x;
} 

reasonNum = randNum(0,1); 

function getNextReason() {        
	if ( reasonNum >= 1 ){    
		reasonNum = 0;
	}              
	 else { 
		reasonNum ++;
	}                

}

function switchReason(place) {

	var new_reason = getNextReason();
	document.getElementById('topProfiles').innerHTML = reasonText[reasonNum];

	var recur_call = "switchReason('"+place+"')";
	timerID = setTimeout(recur_call, interval);
}









/*Oil and Hazardous Materials*/
reasonText[0] = '<strong>OIL &amp;HAZARDOUS MATERIALS </strong><br />GEC provided Emergency Response oversight services when tons of cement dust spewed over a five-acre parking lot covering hundreds of school buses and their drivers, many of whom were rushed to neighborhood hospitals.<br /><a href="./project_ohm.htm"><em><span class="redarrow">&raquo;</span> View Full Project Profile</em></a>';



/*MCP LSP Services*/
reasonText[1] = '<strong>MCP/LSP SERVICES</strong><br />GEC filed a Downgradient Property Status (DPS) for a client.  In filing the DPS we demonstrated that though on-site fuel oil contamination existed, a petroleum-based solvent plume emanated from an abutter<br /><a href="./project_mcp.htm"><em><span class="redarrow">&raquo;</span> View Full Project Profile</em></a>';




