﻿// JScript File

var Color= new Array();
Color[1] = "ff";
Color[2] = "ee";
Color[3] = "dd";
Color[4] = "cc";
Color[5] = "bb";
Color[6] = "aa";
Color[7] = "99";

function waittofade() {
	if (document.getElementById('Message')) {
    setTimeout("fadeIn(7)", 1);
	 }
}

function fadeIn(where) {
    if (where >= 1) {
        document.getElementById('Message').style.backgroundColor = "#ffff" + Color[where];
		  if (where > 1) {
			  where -= 1;
			  setTimeout("fadeIn("+where+")", 250);
			} else {
			  where -= 1;
			  setTimeout("fadeIn("+where+")", 250);
			  document.getElementById('Message').style.backgroundColor = "transparent";
			}

    }
}

function togglePannelStatus(content,chevron) {
        var expand = (content.style.display=="none");
        content.style.display = (expand ? "block" : "none");
        chevron.src = chevron.src
            .split(expand ? "expand.gif" : "collapse.gif")
            .join(expand ? "collapse.gif" : "expand.gif");
}

