
function simBegins() {

	document.getElementById( "runSim" ).value = "...calculating...";
	
	victory = getElementsByClass( "victory" );
	for ( i=0; i<victory.length; i++ ) {
		victory[i].style.backgroundColor = "cyan";
	}
}

function simEnds() {

	for ( i=0; i<victory.length; i++ ) {
		victory[i].style.backgroundColor = "lightblue";
	}

	document.getElementById( "runSim" ).value = "Run Sim";
}

// put these in here because android image needs to be somewhere else

function clearTechMarks() {
	var tech = getElementsByClass( "tech" );
	for ( i=0; i<tech.length; i++ ) {
		tech[i].innerHTML = "<BR>";
	}
}

function setTechMark( set, t ) {
	if ( set ) {
		var d = document.getElementById( t );
		if ( d ) 
			d.innerHTML = "<img width=16 height=16 src='images/bluesphere.32.png'>";
		else
			alert( t + " not found!" );
	}
}
