//Rotates Project Profiles.
 
var interval = 15000;
var reasonNum = 1;
reasonText = new Array();


function randNum(x, y) {
	var range = y - x + 1;
	return Math.floor(Math.random() * range) + x;
}

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);
}

/*First*/
reasonText[0] = '<strong>CONTAMINATED PROPERTY REDEVELOPMENT</strong><br /><span class="caption">Residential Property Construction</span><br />Most developers can tell you that sometimes their projects hit unanticipated snags. The question is what happens to the project when adverse conditions are encountered?<br /><a href="documents/projects/OxbowJobDescpt.pdf" target="_blank"><em><span class="redarrow">&raquo;</span> Full Project Profile (PDF)</em></a>';


/*Second*/
reasonText[1] = '<strong>WASTEWATER SERVICES</strong><br /><span class="caption">Apartment Complex, Weston MA</span><br />GEC was retained to evaluate the compliance status of an existing septic system located at an apartment complex in Weston, MA. The evaluation included the inspection of each of the system’s 22 septic tanks, the soil absorption system (SAS) and conveyance system, including pump station and force mains, to determine compliance with Title 5 regulations (inspected by one of GEC’s licensed Title 5 inspectors).<br /><a href="documents/projects/wastewaterservices.pdf" target="_blank"><em><span class="redarrow">&raquo;</span> Full Project Profile (PDF)</em></a>';







