$.fn.placeholder=function() {
	return $(this).each(function () {
		if (this.tagName=='INPUT') {
			$this=$(this);
			if (($this.attr('placeholder') && !$this.val()) || ($this.attr('placeholder') && $this.attr('placeholder')==$this.val())) {
				$this.val($this.attr('placeholder'));
				$this.addClass('placeholder');
				
				$this.bind('focus',function () {
					$(this).removeClass('placeholder');
					$(this).val('');
					
				});
				$this.bind('blur',function () {
					if (!$(this).val()) {
						$(this).addClass('placeholder');
						$(this).val($(this).attr('placeholder'))
					}
					
				});
			}
		
		}
		return $this;
	});
	
}