(function($){
	$.fn.move = function(options){
		var defaults = {
			coordXMax: 			'250',
			coordYMax:			'300',
			MaxTimer:			'700',
			MinTimer:			'300'
		};
		
		var opts = $.extend(defaults, options);
		
		function nb_aleat(nb)
		{
			var NewCoord = Math.floor(Math.random() * nb)+1;
			return NewCoord;
		}
		
		
		function nb_aleat2(nb,mini)
		{
			var NewCoord = Math.floor(Math.random() * nb) + 350;
			return NewCoord;
		}
		

		function Animate()
		{
			var coordX = nb_aleat(opts.coordXMax);
			var coordY = nb_aleat(opts.coordYMax);
			var timer = nb_aleat2(opts.MaxTimer,opts.MinTimer);
			$("div.home_bonus p").animate({marginTop:coordY,marginLeft:coordX},timer);
			setTimeout(function(){Animate()}, timer);
		
		}
		
		$(this).each(Animate);
		
	};
	
}) (jQuery);
