var Ajax = {

	get: function (url, target, options) {

		target = $(target);

		

		options = $merge({

			offset_y: 10,

			offset_x: 0,

			method: 'get'

		}, options || {});



		new Element('div', {

			'class': 'ajax-loader',

			'styles': {

				'width': Window.getWidth() ,

				'height': Window.getHeight() - options.offset_y,

				'opacity': '0.4',

				'z-index': '150',

				'position': 'absolute',

				'left': 0,

				'top': options.offset_y,

				'-moz-border-radius-topleft': '18px',

				'-moz-border-radius-bottomleft': '18px'

			}

		}).inject(target);

		

		new Request({ url: url, method: options.method,

			 onSuccess: function (data) {

				target.set('html', data);

				if ($defined(options.callback)) options.callback();

				//setRegistrationFormEvents();

			 }

		 }).send();

		

		return false;

	} 

};


