function apply_shadow_old(document){
		el_ = document.getElementsByClassName("shadow");
				
		for(i=0;i<el_.length;i++){
		var img_ = el_[i];
					
		// create the wrapper divs
		var os1 = document.createElement('div');
		var os2 = document.createElement('div');
		var os3 = document.createElement('div');
		os1.className = 'os1';
		os2.className = 'os2';
		os3.className = 'os3';
			
		// duplicate the image to be shadowed
		var newElement = img_.cloneNode(true);
			
		// nest the new image and wrapper divs
		os3.appendChild(newElement);
		os2.appendChild(os3);
		os1.appendChild(os2);
		var shadowedElement = os1;
			
		// replace the old image with the new div-wrapped version
		img_.parentNode.replaceChild(shadowedElement,img_);
		}
	}
	
function apply_shadow(document){
		el_ = document.getElementsByClassName("shadow");
				
		for(i=0;i<el_.length;i++){
		var img_ = el_[i];
					
		// create the wrapper divs
		var os1 = document.createElement('div');
		if (img_.align=='right')
		  os1.className = 'os2';
		else
		  os1.className = 'os1';
		img_.style.margin = '0 0 5px 0';
		img_.align='';
			
		// duplicate the image to be shadowed
		var newElement = img_.cloneNode(true);
			
		// nest the new image and wrapper divs
		os1.appendChild(newElement);
		var shadowedElement = os1;
			
		// replace the old image with the new div-wrapped version
		img_.parentNode.replaceChild(shadowedElement,img_);
		}
	}