/* 

automaticWidth: for setting auto width and when the windows is reduce in size, the elements don't change theis position

 */ 

;(function($) {

	$.fn.automaticWidth = function( options ) {		
	
		// default configuration properties
		var defaults = {
			debug: false
		};  
		 
		var options = $.extend(defaults, options);
		
		var $obj = $(this);
		
		return $obj.each(function (){
				var $div=$(this), num_pixels_text = 400, num_pixels_img = 0;
				
				
				$('div[class="content-img"]', $div).each (function () {
													$img = $(this);
													
													num_pixels_img = num_pixels_img + $img.width() + 15;
													
													});
				
				ancho = num_pixels_text + num_pixels_img;
				
				$div.width(ancho);
				});
	}

})(jQuery);
