function Weblink_UserInterface_StarterConfEdit(current,serviceValidator){
	var that = this;
	this.$ = $(this);
	
	this.init = function(){
		that.setUpUI();
		that.loading(true);
		$('body').scrollTo($('div.starter-conf-edit:eq(0)'), 1000, {axis:'y',offset:200});
	};
	this.kill = function(){
		that.loading(false);
		$('#weblink_updater > div.body  div.module-flash div.starter-conf-edit').html('An error occurred retrieving configuration for your module. Configuration options might not be available for your product and firmware versions.');
		//$('body').scrollTo(0, 1000);
		//$('#weblink_updater > div.body  div.module-flash div.starter-conf-edit').slideUp('normal',})	
	};
	this.getOptions = function(){
		var eeprom = current.starter.eeprom;
        var SI = new Weblink_ServerInterface();
        SI.$.one('dataLoaded',that.displayOptions);
        SI.getStarterFeatures(current.starter.get('Firmware'), eeprom);
	};
	this.displayOptions = function(evt,data){
		$('#weblink_updater > div.body div.starter-conf-edit div.starter-conf').html(data).hide().slideDown('fast',function(){
			that.loading(false);});
		$('#weblink_updater > div.body div.starter-conf-edit div.starter-conf select[featureid]').change(
				function(evt){
					var featureid = $(this).attr('featureid');
					var value = $(this).val();
					$(this).addClass('dirty');
					current.starter.eeprom.setState(featureid,value);
				}
		);
		$('#weblink_updater > div.body div.starter-conf-edit div.starter-conf input[adaptertag]').each(
				function()
					{
						var Adapter = $(this).attr('adaptertag');
						if(typeof(Weblink_Adapter[Adapter])!="undefined"){
							Adapter = new Weblink_Adapter[Adapter]();
							var jq = $(this);
							jq.blur(function(){
								if(Adapter.validate(jq.val())){
									jq.addClass('dirty');
								} else {
									jq.attr('value','');
									ErrorMessage(Adapter.message);
								}
							});
						} else {
							ErrorMessage('There is no adapter for this option.');
						}
					}
				);
		$('#weblink_updater > div.body div.starter-conf-edit img.confirm').click(
				function(){
					that.$.triggerHandler('starterFeaturesEdited');
					$('.dirty').removeClass('dirty');}
				);
	};
	
	this.loading = function(boo){
		if(boo){
			$('#weblink_updater > div.body div.starter-conf-edit').addClass('loading');
		} else {
			$('#weblink_updater > div.body div.starter-conf-edit').removeClass('loading');
		}
	};
	
	this.setUpUI = function(){
		if(current.starter){
			var starter = current.starter;
		} else {
			throw 'No starter is connected/detected';
		}
		if($('#weblink_updater > div.body div.module-flash div.starter-conf-edit').size() == 0){
			$('#weblink_updater > div.body div.module-flash ').append('<div class="starter-conf-edit"></div>');		
			$('#weblink_updater > div.body  div.module-flash div.starter-conf-edit')
				.append('<div class="starter-info"></div>')
				.append('<div class="starter-conf"></div>');
			var jq = $('#weblink_updater > div.body  div.module-flash div.starter-conf-edit div.starter-info');
			/*jq.append('<span class="name">'+starter.get('Manufacturer').RsuManufacturerName+'</span>');
			if(starter.get('Product') && starter.get('Product').RsuProductName) jq.append('<span class="description">'+starter.get('Product').RsuProductName+'</span>');
			if(starter.get('Firmware') && starter.get('Firmware').RsuFirmwareName) jq.append('<span class="description">'+starter.get('Firmware').RsuFirmwareName+'</span>');
			else jq.append('<span class="description">Firmware is not recognized. Please the button below to update to the latest version.</span>');*/
		}
	};
	
	
}