/*
Function: dropShadow
	An object that adds a drop shadow to a target element.  Assumes the drop shadow graphics are 4px wide.

Parameters:
	target - the ID of the target element around which to add a drop shadow

Dependencies:
	<wrapOrStuff>;

Returns:
	NA

Bugs:
	None known

To do:
	None

Change Log:
	2006.07.07	ALP	- Inital Version
*/
function dropShadow(target) {
	this.target = target;
	this.dsBorder = 'dsBorder'+target; // Create a unique id for dsBorder
	this.dsOpacity = 'dsOpacity'+target; // Create a unique id for dsOpacity
	this.dsClose = 'dsClose'+target; // Create a unique id for dsClose
	this.init = function() {
		if (typeof $(this.dsOpacity) != "object" ) {
			this.add();
		} else {		
			// Don't add it again
		}
	}
	this.add = function() {
		add = new wrapOrStuff(this.target,'stuff',4,'div','class=dsBottom,class=dsRight,class=dsCorner,class=dsBorder&id='+this.dsBorder).init();			
		add2 = new wrapOrStuff(this.dsClose,'wrap',1,'div','class=dsBanner').init();
		opacDiv = document.createElement("div");
		opacDiv.id = this.dsOpacity;
		opacDiv.className = "dsOpacity";
		var hgt = $(this.dsBorder).getHeight();
		opacDiv.style.height = hgt+"px";
		var wid = $(this.dsBorder).offsetWidth;
		opacDiv.style.width = wid+"px";
		$(this.dsBorder).parentNode.insertBefore(opacDiv,$(this.dsBorder));
	}
	this.remove = function() {
		$(this.dsOpacity).parentNode.removeChild($(this.dsOpacity));
		del = new wrapOrStuff().remove(this.dsClose,'wrap',1);
		del2 = new wrapOrStuff().remove(target,'stuff',4);
	}
}