(function($){

	var settings = {};
	
	var methods = {
		init : function(options){
			
			var ref = this;
			var originalValue;
			
			return this.each(function() {
							  
				if(options) $.extend(settings, options);
				
				var $this = $(this);
				originalValue = $this.attr('value');
				$this.focus(function(){
					if($this.attr('value') == originalValue){
						$this.attr('value','');
					}
				}).blur(function(){
					if($this.attr('value') == ''){
						$this.attr('value',originalValue);
					}
				});
				
			});
		}
		
	};
	
	$.fn.inputToggle = function(method){
		
		if(methods[method]){
			return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
		}
		else if(typeof method === 'object' || !method){
			return methods.init.apply(this, arguments);
		}
		else{
			$.error( 'Method ' +  method + ' does not exist on jQuery.inputtoggle' );
		}    
	
	};

})(jQuery);

