CARE2.dropShadow = function(t) {
	_self = this;
	var obj = {};
	obj.targ = t;

	obj.show = function() {
		obj.leftshadow = document.createElement("div");
		obj.leftshadow.style.cssText = CARE2.backgroundPNG('http://dingo.care2.com/drop_shadow_left.png');
		obj.leftshadow.style.width = "10px";
		obj.leftshadow.style.position = "absolute";
		obj.leftshadow.style.opacity = 0.6;
		document.body.appendChild(obj.leftshadow);
		obj.leftcorner = document.createElement("div");
		obj.leftcorner.style.cssText = CARE2.backgroundPNG('http://dingo.care2.com/drop_shadow_left_corner.png');
		obj.leftcorner.style.width = "10px";
		obj.leftcorner.style.height = "14px";
		obj.leftcorner.style.position = "absolute";
		obj.leftcorner.style.opacity = 0.6;
		document.body.appendChild(obj.leftcorner);
		obj.bottomshadow = document.createElement("div");
		obj.bottomshadow.style.cssText = CARE2.backgroundPNG('http://dingo.care2.com/drop_shadow_bottom.png');
		obj.bottomshadow.style.height = "11px";
		obj.bottomshadow.style.position = "absolute";
		obj.bottomshadow.style.opacity = 0.6;
		document.body.appendChild(obj.bottomshadow);
		obj.bottomcorner = document.createElement("div");
		obj.bottomcorner.style.cssText = CARE2.backgroundPNG('http://dingo.care2.com/drop_shadow_bottom_corner.png');
		obj.bottomcorner.style.width = "14px";
		obj.bottomcorner.style.height = "11px";
		obj.bottomcorner.style.position = "absolute";
		obj.bottomcorner.style.opacity = 0.6;
		document.body.appendChild(obj.bottomcorner);

		obj.resize();
	}

	obj.resize = function() {
		obj.boxParams = {
			height: ((obj.targ.style.height.indexOf('px')>=0) ? parseFloat(obj.targ.style.height) : obj.targ.offsetHeight - (parseFloat(_self.getStyle(obj.targ,'border-top-width')) + parseFloat(_self.getStyle(obj.targ,'border-bottom-width')))),
			width: ((obj.targ.style.width.indexOf('px')>=0) ? parseFloat(obj.targ.style.width) : obj.targ.offsetWidth - (parseFloat(_self.getStyle(obj.targ,'border-left-width')) + parseFloat(_self.getStyle(obj.targ,'border-right-width')))),
			top: _self.getElementPosition(obj.targ).top,
			left: _self.getElementPosition(obj.targ).left
		}

		obj.leftshadow.style.height = (obj.boxParams.height - 12) + "px";
		obj.leftshadow.style.top = (obj.boxParams.top + 10) + "px";
		obj.leftshadow.style.left = (obj.boxParams.left - 10) + "px";
		obj.leftcorner.style.top = (parseFloat(obj.leftshadow.style.top) + parseFloat(obj.leftshadow.style.height)) + "px";
		obj.leftcorner.style.left = obj.leftshadow.style.left;
		obj.bottomshadow.style.width = (obj.boxParams.width - 22) + "px";
		obj.bottomshadow.style.top = (obj.boxParams.top + obj.boxParams.height + 2) + "px";
		obj.bottomshadow.style.left = obj.boxParams.left + "px";
		obj.bottomcorner.style.top = (obj.boxParams.top + obj.boxParams.height + 2) + "px";
		obj.bottomcorner.style.left = (obj.boxParams.left + parseFloat(obj.bottomshadow.style.width)) + "px";
	}

	obj.hide = function() {
		if(obj.leftshadow) { document.body.removeChild(obj.leftshadow); obj.leftshadow = false; }
		if(obj.leftcorner) { document.body.removeChild(obj.leftcorner); obj.leftcorner = false; }
		if(obj.bottomshadow) { document.body.removeChild(obj.bottomshadow); obj.bottomshadow = false; }
		if(obj.bottomcorner) { document.body.removeChild(obj.bottomcorner); obj.bottomcorner = false; }
	}

	return obj;
}

