(function() {

	SL.ui.DatePicker = Class.create(SL.ui.Panel, {

		init : function($super) {
			this.config.setDefault('overlay', true);
			this.e.up().setStyle({
				position : 'relative'
			});
			this.input = $(this.config.get('input_id'));
			$super();
		},

		setDateString : function(text) {
			this.input.value = text;
			this.hide();
		}

	});

})();
