// mouseoverBoxUpAndDown(id)
//   - This function takes a tag id as a parameter, and fades the background color from #626262 to #fff, back to #626262
function mouseoverBoxUpAndDown(id) {
	var t;
	var increment = 20;
	var str = "document.getElementById('" + id + "').style.borderColor = ";

	t = setTimeout(str + "'#888'",increment*1);
	t = setTimeout(str + "'#999'",increment*2);
	t = setTimeout(str + "'#aaa'",increment*3);
	t = setTimeout(str + "'#bbb'",increment*4);
	t = setTimeout(str + "'#ccc'",increment*5);
	t = setTimeout(str + "'#ddd'",increment*6);
	t = setTimeout(str + "'#eee'",increment*7);
	t = setTimeout(str + "'#fff'",increment*8);
	t = setTimeout(str + "'#eee'",increment*9);
	t = setTimeout(str + "'#ddd'",increment*10);
	t = setTimeout(str + "'#ccc'",increment*11);
	t = setTimeout(str + "'#bbb'",increment*12);
	t = setTimeout(str + "'#aaa'",increment*13);
	t = setTimeout(str + "'#999'",increment*14);
	t = setTimeout(str + "'#626262'",increment*15);
}

// mouseoverBox(id)
//   - This function takes a tag id as a parameter, and fades the background color from #626262 to #fff
function mouseoverBox(id) {
	var t;
	var increment = 20;
	var str = "document.getElementById('" + id + "').style.borderColor = ";

	t = setTimeout(str + "'#888'",increment*1);
	t = setTimeout(str + "'#999'",increment*2);
	t = setTimeout(str + "'#aaa'",increment*3);
	t = setTimeout(str + "'#bbb'",increment*4);
	t = setTimeout(str + "'#ccc'",increment*5);
	t = setTimeout(str + "'#ddd'",increment*6);
	t = setTimeout(str + "'#eee'",increment*7);
	t = setTimeout(str + "'#fff'",increment*8);
}

// mouseoutBox(id)
//   - This function takes a tag id as a parameter, and fades the background color from #fff to #626262
function mouseoutBox(id) {
	var t;
	var increment = 20;
	var str = "document.getElementById('" + id + "').style.borderColor = ";

	t = setTimeout(str + "'#fff'",increment*1);
	t = setTimeout(str + "'#eee'",increment*2);
	t = setTimeout(str + "'#ddd'",increment*3);
	t = setTimeout(str + "'#ccc'",increment*4);
	t = setTimeout(str + "'#bbb'",increment*5);
	t = setTimeout(str + "'#aaa'",increment*6);
	t = setTimeout(str + "'#999'",increment*7);
	t = setTimeout(str + "'#626262'",increment*8);
}
