
//Loading Status Indicators
//Author: Solano County GIS Central
function SetLoadingStatus(Message, IconSrc) {

	var HTML = new StringBuilder();
	HTML.append("<center><table border=0 width=400 bordercolor=#cccccc ");
	HTML.append("style=\"border-color:#666666;border-width:1px;border-style:solid;\" ");
	HTML.append("cellpadding=5 cellspacing=0>");
	HTML.append("<tr><td align=center background=images/loadback.jpg>");
	HTML.append("<img src=\"images/ajax-loader.gif\" border=\"0\"></img>");
	HTML.append("<table border=0 cellpadding=2 cellspacing=0><tr><td>");
	HTML.append("<font face=arial size=3 color=#666666><b>" + Message + "</b></font>");
	HTML.append("</td></tr></table></td></tr></table></center>");

	document.getElementById("loadlabel").innerHTML = HTML.toString();
	document.getElementById("loadlabel").style.display = "";
	document.getElementById("loadlabelback").style.display = "";

}

//Clear loading label w/fade
function ClearLoadingStatus() {
	document.getElementById("loadlabel").style.display = "none";
	document.getElementById("loadlabelback").style.display = "none";
}

//Status indicators
function StatusIndicators() {
	var D;

	//Loading blocker
	if (!document.getElementById("loadlabelback")) {
		D = document.createElement("div");
		D.setAttribute("id", "loadlabelback");
		D.style.filter = "alpha(opacity=0)";
		D.style.opacity = ".0";
		D.style.width = "100%";
		D.style.height = "100%";
		D.style.zIndex = "10000";
		D.style.position = "absolute";
		D.style.left = "0px";
		D.style.top = "0px";
		//D.style.backgroundColor = "#ffffff";
		D.style.backgroundColor = "#336699";
		D.style.display = "none";
		document.body.appendChild(D);
	}
	
	//Loading label
	if (!document.getElementById("loadlabel")) {
		D = document.createElement("div");
		D.setAttribute("id", "loadlabel");
		D.style.filter = "alpha(opacity=90)";
		D.style.opacity = ".9";
		D.style.left = "50%";
		D.style.top = "70px";
		D.style.marginLeft = "-200px";
		D.style.zIndex = "10000";
		D.style.position = "absolute";
		D.style.backgroundColor = "#ffffff";
		D.style.display = "none";
		document.body.appendChild(D);
	}
}


