function roundedImages() {
//
//alert('Rounder');

var content = document.getElementById('left');

var imgs = content.getElementsByTagName('img');
var imgs = document.getElementsByClassName("rounded_right")
var imgs = imgs.concat(document.getElementsByClassName("rounded_left"))

for (var i = 0; i < imgs.length; i++) {         // start loop

	var original = imgs[i];                       // take the next image  
	var floatclass = original.className.substring(8,original.className.length); // Get the float from classname (_left or _right)
	
	var wrapper = document.createElement('div');  // Create the outer-most div (wrapper)
	wrapper.className = 'roundwrapper '+floatclass;                // Give it a classname - wrapper
	wrapper.style.width = imgs[i].width+'px';     // give wrapper the same width as the current img
  
	
   /* Swap out the original img with our wrapper div (we'll put it back later) */
	//alert(original.parentNode.tagName);
	if(original.parentNode.tagName.toUpperCase()=='A') original = original.parentNode; // if you link the image this will help the script find the right parent wrapper
	original.className = "";
	original.parentNode.replaceChild(wrapper, original);
   // IE crash fix - c/o Joshua Paine - http://fairsky.us/home


   /* Create the four other inner nodes and give them classnames */
   var tl = document.createElement('div');
   tl.className = 'tl';
   var br = document.createElement('div');
   br.className = 'br';
   var tr = document.createElement('div');
   tr.className = 'tr';
   var bl = document.createElement('div');
   bl.className = 'bl';
   wrapper.appendChild(original);
   /* Glue the nodes back inside the wrapper */
   wrapper.appendChild(tl);
   wrapper.appendChild(tr);
   wrapper.appendChild(bl);
   wrapper.appendChild(br);
   /* And glue the img back in after the DIVs */
   
 }
}
