var i=0;
var t;
var direction = 0;

var colours = new Array(35);
colours[0] = "#333333";
colours[1] = "#343434";
colours[2] = "#353535";
colours[3] = "#363636";
colours[4] = "#373737";
colours[5] = "#383838";
colours[6] = "#393939";
colours[7] = "#3a3a3a";
colours[8] = "#3b3b3b";
colours[9] = "#3c3c3c";
colours[10] = "#3d3d3d";
colours[11] = "#3e3e3e";
colours[12] = "#3f3f3f";
colours[13] = "#404040";
colours[14] = "#414141";
colours[15] = "#424242";
colours[16] = "#434343";
colours[17] = "#444444";
colours[18] = "#454545";
colours[19] = "#464646";
colours[20] = "#474747";
colours[21] = "#484848";
colours[22] = "#494949";
colours[23] = "#4a4a4a";
colours[24] = "#4b4b4b";
colours[25] = "#4c4c4c";
colours[26] = "#4d4d4d";
colours[27] = "#4e4e4e";
colours[28] = "#4f4f4f";
colours[29] = "#505050";
colours[30] = "#515151";
colours[31] = "#525252";
colours[32] = "#535353";
colours[33] = "#545454";
colours[34] = "#555555";

var limit = colours.length - 1;
	
function timedCount() {

	if (document.getElementById('info-req-wrap0a') && document.getElementById('info-req-wrap0b') && document.getElementById('info-req-wrap0c')) {
		document.getElementById('info-req-wrap0a').style.background = colours[i];
		document.getElementById('info-req-wrap0b').style.background = colours[i];
		document.getElementById('info-req-wrap0c').style.background = colours[i];
	}
	
	if ((direction == 0) && (i < limit)) {
		i++;
	}
	else if ((direction == 0) && (i == limit)) {
		direction = 1;
		i--;
	}
	else if ((direction == 1) && (i > 0)) {
		i--;
	}
	else if ((direction == 1) && (i == 0)) {
		direction = 0;
		i++;
	}
	
	t=setTimeout("timedCount()",100);

}