
var flashels = new Array();

function flash_init()
{
	var flashparentel = document.getElementById('flash');
	if (!flashparentel) return;
	flashels = flashparentel.getElementsByTagName('LI');
	// setup
	for (var i = 0; i < flashels.length; i++) {
		if (isIE) {
			flashels[i].style['filter'] = 'alpha(opacity=0)';
			flashels[i].style.zoom = 1; // wtf? hasLayout does it again!
		} else {
			flashels[i].style.opacity = 0;
		}
	}
	window.setTimeout("flash(flashels, 0, 1)", 10);
}

function flash(arr, index, level)
{
	if (isIE) {
		arr[index].style['filter'] = 'alpha(opacity=' + level + ')';
	} else {
		arr[index].style.opacity = level/100;
	}
	if (level == 100) {
		index++;
		if (!flashels[index]) {
			return window.setTimeout("flash_init()", 3000);
		}
		level = 1;
	} else {
		level += 1;
	}
	window.setTimeout("flash(flashels, " + index + ", " + level + ")", 10);
}


