function __stylepop()
{
	this.hideSelectBoxes = function () 
	{
		for(var i = 0; i < document.forms.length; i++) 
		{
			for(var e = 0; e < document.forms[i].length; e++)
			{
				if(document.forms[i].elements[e].tagName == "SELECT") 
				{
					document.forms[i].elements[e].style.visibility="hidden";
				}
			}
		}
	}


	this.displaySelectBoxes = function () 
	{
		for(var i = 0; i < document.forms.length; i++) 
		{
			for(var e = 0; e < document.forms[i].length; e++)
			{
				if(document.forms[i].elements[e].tagName == "SELECT") 
				{
					document.forms[i].elements[e].style.visibility="visible";
				}
			}
		}
	}
	
	this.__trans = function (me, start, end, inc)
	{
		if (!end)
		{
			me.style.filter = "alpha(opacity=" + start + ")";
			me.style.opacity = eval("." + start);
		}
	};
	
	this.rm = function ()
	{
		if (this.dohide == true) 
		{
			this.displaySelectBoxes();
		}
		document.getElementById("HD_popupwindow").innerHTML = "";
	};
	
	this.display = function (nw_src, nw_desc)
	{
		if (this.dohide == true) 
		{
			this.hideSelectBoxes();
		}
		this.hdp0 = document.createElement("div");
		this.hdp1 = document.createElement("div");
		this.hdp0.setAttribute("id", "HDPW0");
		this.hdp0.style.height = document.body.clientHeight+'px';
		this.hdp1.setAttribute("id", "HDPW1");
		this.hdp1.setAttribute("onmousedown", "javascript: HDStylePop.rm();")
		this.hdp1.innerHTML = '<table style="width:100%; height:100%;">' +
							  '<tr style="height:100%;">' +
							  '<td style="width:100%; height:100%; text-align:center ! important; vertical-align:top ! important;"><a href="javascript: HDStylePop.rm();">Close Window</a><div id="HDPWT"><br>'+ nw_desc +'</div><a href="javascript: HDStylePop.rm();"><img style="border-color:#FFFFFF;" src="' + nw_src + '" /></a><br /><br /><a href="javascript: HDStylePop.rm();">Close Window</a></td>' +
							  '</tr>' +
							  '</table>';
		document.getElementById("HD_popupwindow").appendChild(this.hdp0);
		document.getElementById("HD_popupwindow").appendChild(this.hdp1);
		window.scrollBy(0,-9999);

		this.__trans(this.hdp0, 80);
	}
	
	var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
	if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE") > -1) {
		this.dohide = true;
	}
}
var HDStylePop = new __stylepop();