function openLoading() {
	var obj = document.getElementById("body_DIV");

	if (document.getElementById("awLoading_DIV")) {
		obj.removeChild(document.getElementById("awLoading_DIV"));
		obj.style.position = "static";
		if (String(window.location.href).indexOf("pl.asp") == -1) {
			hideSwf("block");
		}
	} else {
		if (String(window.location.href).indexOf("pl.asp") == -1) {
			hideSwf("none");
		}
		var div = document.createElement("div");
		var img = document.createElement("img");

		div.setAttribute("id", "awLoading_DIV")
		div.style.position = "fixed";
		div.style.left = "0px";
		div.style.top = "0px";
		div.style.textAlign = "left";
		div.style.backgroundImage = "url(/images/template/traspWhite95.png)";
		div.style.width = String(document.documentElement.clientWidth + "px");
		div.style.height = String(document.documentElement.clientHeight + "px");
		div.style.zIndex = 30000;

		img.setAttribute("border", "0");
		img.setAttribute("align", "absmiddle");
		img.setAttribute("width", "980");
		img.setAttribute("height", "170");
		//img.setAttribute("src", "/images/template/loadingFlowerBig.gif");
		img.setAttribute("src", "/images/template/loadingNewLogoBig.gif");
		img.style.position = "fixed";
		img.style.width = "980px";
		img.style.height = "170px";
		img.style.top = String(parseInt((document.documentElement.clientHeight/2)-85) + "px");
		img.style.left = String(parseInt((document.documentElement.clientWidth/2)-490) + "px");

		div.appendChild(img);
		obj.appendChild(div);

		window.onunload = function() {
			div.removeChild(img);
		}
	}
}

openLoading();

