addShadow = function() {
	var shadowContainer = document.getElementById("shadow");
	var shadowHeight = shadowContainer.offsetHeight;
	var shadowWidth = shadowContainer.offsetWidth;

	var topDiv = document.createElement("DIV");
	var rightDiv = document.createElement("DIV");
	var bottomDiv = document.createElement("DIV");
	var leftDiv = document.createElement("DIV");

	topDiv.id = "shadowTop";
	rightDiv.id = "shadowRight";
	bottomDiv.id = "shadowBottom";
	leftDiv.id = "shadowLeft";

	shadowContainer.appendChild(topDiv);
	shadowContainer.appendChild(rightDiv);
	shadowContainer.appendChild(bottomDiv);
	shadowContainer.appendChild(leftDiv);

	document.getElementById("shadowLeft").style.height = shadowHeight - 16;
	document.getElementById("shadowRight").style.height = shadowHeight - 16;

	document.getElementById("shadowTop").style.width = shadowWidth - 16;
	document.getElementById("shadowBottom").style.width = shadowWidth - 16;
}

window.onload = function() {
	addShadow();
}