$.fn.switcher = function(options) {
		
		$.each($(this).children("a"),function(){
			var t = $(this);
			
			var n = $('#'+t.attr('name')+':checked').length;
			if (n > 0)
			{
				t.addClass('switch_selected');
			}
			
			
			t.click(function() {
				$('#'+t.attr('name')).attr('checked','checked');
				$('.switch_selected').removeClass('switch_selected');
				var n = $('#'+t.attr('name')+':checked').length;
				if (n > 0)
				{
					$(this).addClass('switch_selected');
				}
				t.blur();
			});
			$('.switch').change(function(){
				var n = $('#'+$(this).attr('id')+':checked').length;
				if (n > 0)
				{
					$('.'+$(this).attr('id')).removeClass('switch_selected');
				}
				else
				{
					$('.'+$(this).attr('id')).addClass('switch_selected');
				}
			})
		});		
		return this;
	};
	$.fn.numberInput = function() {
		return this.each(function() {
			$(this).keydown(function(event){
				return KEYS_ALLOWED[event.keyCode] ? true : false;
			});
		});
	};
	var KEYS_ALLOWED = {
		   8 : 'BACKSPACE'
		, 13 : 'ENTER'
		, 37 : 'LEFT_ARROW'
		, 39 : 'RIGHT_ARROW'
		, 46 : 'DELETE'
		, 48 : 'ZERO'
		, 49 : 'ONE'
		, 50 : 'TWO'
		, 51 : 'THREE'
		, 52 : 'FOUR'
		, 53 : 'FIVE'
		, 54 : 'SIX'
		, 55 : 'SEVEN'
		, 56 : 'EIGHT'
		, 57 : 'NINE'
		, 96 : 'NINE'
		, 97 : 'NINE'
		, 98 : 'NINE'
		, 99 : 'NINE'
		, 100 : 'NINE'
		, 101 : 'NINE'
		, 102 : 'NINE'
		, 103 : 'NINE'
		, 104 : 'NINE'
		, 105 : 'NINE'
		, 9 : 'NINE'
	};
