(function($) {
  $.fn.shadowTable = function(options) {
	// build main options before element iteration
	var opts = $.extend({}, $.fn.shadowTable.defaults, options);
	
	return this.each(function() {
		//get element
		var $this = $(this);
		// build element specific options
		var o = $.meta ? $.extend({}, opts, $this.data()) : opts;
		var width = o.width;

		 $this.wrap("<div id='shadow-container' style='width:"+width+"px'><div class='shadow1'><div class='shadow2'><div class='shadow3'><div class='container'></div></div></div></div></div>");
		 

		 $this.css({
			borderColor:'#cccccc',
			borderWidth:'0 0 1px 1px',
			borderStyle:'solid',
			fontSize: 16,
			borderCollapse:'collapse',
			width:'100%'
   		});
		 $('td', $this).css({
				margin:0,
				border: 1, 
				borderColor:'#cccccc',
				borderWidth:'1px 1px 0 0',
				borderStyle:'solid'
			});
	});

  };
  $.fn.shadowTable.defaults = {
	width:740
  };
})(jQuery);