(function($) {
	
	$.fn.bigshadow = function(options) {
		
		var o = $.extend({}, $.fn.bigshadow.defaults, options);
		
		return this.each(function() {
			
			var $this    = $(this);
			var w_width  = parseInt($this.width());
			var w_height = parseInt($this.height());
									
			var new_shadow = $("#bigshadow").clone();
			var margin_top = Math.round((o.alpha_frame_top / o.alpha_shadow_height) * w_height + 7);
			
			new_shadow.css('margin', '-' + margin_top + 'px 0px 0px -25px');
			
			new_shadow.width(w_width + 48);
			new_shadow.height(w_height + (margin_top * 2) - 6);
			
			$this.prepend(new_shadow.show());
		});
	}
	
	$.fn.bigshadow.defaults = {
		
		alpha_shadow_height: 750,
		alpha_frame_top    : 23,
		alpha_frame_bottom : 23
	}
	
	$.fn.adshadow = function(options) {
		return this.each(function() {
			var $this    = $(this);
			var w_width  = parseInt($this.width());
			var w_height = parseInt($this.height());
			var new_shadow = $("#adshadow").clone();
			new_shadow.css('margin-top', w_height - 20);
			$this.prepend(new_shadow.show());
		});
	}

})(jQuery);



