
// jmmindex.js  CALLED BY INDEX imbedding in the page might lead to frustration..............

function flipp(numb){	
var currentday="day"+numb;

var days=new Array();
days[0]="day0";//these have to be in quotes
days[1]="day1";
days[2]="day2";
days[3]="day3"; 
days[4]="day4";

for (i=0 ; i<days.length ; i++) {
		var thisdayname = days[i];
		var thisdaydiv = document.getElementById(thisdayname);
		var thisdaystyle = thisdaydiv.style;
		var currentdiv = document.getElementById(currentday);
		var currentdivstyle = currentdiv.style;
		if (thisdaydiv == currentdiv){
			thisdaystyle.backgroundColor="#99ccff";
			}
		else {
			thisdaystyle.backgroundColor="#e4edfc";
			}
		}// for loop
}// end of flipp

