jQuery.fn.shadedborder = function(p_opts) 
{
  // Get the base item background color, and set it to transparent
  var v_bg_color = this.css("background-color");
  this.css({"background-color":"transparent"});
  
  // Wrap the base item with a span, and set it the background-color.
  this.wrap('<span></span>');     
  v_wraps = this.parent(); 
  v_wraps.css({"display":"block",
               "margin":"0",
               "padding":"0",
               "background-color":v_bg_color,
               "height":"100%"}); // For IE
              
  // Apply the round borders
  v_border = RUZEE.ShadedBorder.create(p_opts);
  v_border.render(v_wraps); 
  
  // Set the background-color        
  v_wraps.find(".sb-inner").css({"background-color":v_bg_color});     
};