<!--
var options = {}; //Don't edit this line
options.fadeColor = "#000000"; //The color of the fade background, default is #000000 which is black
options.fadeAmount = 80; //The transparency ratio (0-100) you want to fade to
options.boxColor = "#ffffff"; //The color of the foreground box
options.enabled = 0; //Turns on (1) or off (0) this script

////////////DO NOT EDIT BELOW THIS LINE////////////
var loadBox = function() {
	var a = document.createElement("div");
	a.style.backgroundColor = options.fadeColor;
	a.style.position = "absolute";
	a.style.left = a.style.top = 0;
	a.style.width = "100%";
	a.style.height = document.body.clientHeight + "px";
	a.style.zIndex = 9998;

	a.style.opacity = a.style.MozOpacity = a.style.KhtmlOpacity = 0;
	a.style.filter = "alpha(opacity=0)";

	document.body.appendChild(a);

	var b = document.createElement("div");
	b.style.position = "absolute";
	b.style.top = b.style.left = "50%";
	b.style.width = "500px";
	b.style.height = "400px";
	b.style.backgroundColor = options.boxColor;
	b.style.margin = "-220px 0 0 -250px";
	b.style.zIndex = 9999;

	document.body.appendChild(b);

	a.opacity = 0, a.fadeSpeed = 1;

	if (navigator.userAgent.toLowerCase().indexOf('trident') > -1 || navigator.userAgent.toLowerCase().indexOf('msie') > -1) a.fadeSpeed = 3;

	setTimeout(function fadeBox() {
		a.style.opacity = a.style.MozOpacity = a.style.KhtmlOpacity = (a.opacity / 100);
		a.style.filter = "alpha(opacity=" + a.opacity + ")";
		a.opacity+=a.fadeSpeed;

		if (a.opacity < options.fadeAmount) setTimeout(fadeBox, 1);
	}, 1);
}

if (options.enabled) {
	if (!window.onload) window.onload = loadBox;
	else loadBox();
}
// -->