$(function () {
		/*-------------------- Search label replacement---- */
		$("label.text-input").each(function()
		{
		var inputId = $(this).attr("for");
		var inputField = document.getElementById(inputId);
		var tempValue = this.innerHTML;
		$(inputField).each(function()
		{
			if(this.type == "password")
			{	
				var pwField = this;
				$(pwField).after('<input type="text" class="tempPW" value="' + tempValue + '" id="' + this.id + '" />');
				$(".tempPW").addClass(this.className);
				$(pwField).hide();
				$(".tempPW").focus(function()
				{	
					$(".tempPW").hide();
					$(pwField).show();
					$(pwField).focus();
				});
				$(pwField).blur(function()
				{	
					if(pwField.value == "")
					{
						$(pwField).hide();
						$(".tempPW").show();
					}
				});
			}	
		});
		inputField.value = tempValue;
		$(inputField).focus(function()
		{
		   if(this.value==tempValue)
		   {
		      this.value = "";
		   }
		});
		$(inputField).blur(function()
		{	   
		   if(this.value=="")
		   {
		      this.value = tempValue;
		   }
		});
		$(this).hide();
		});

		$('ul li:last-child').addClass('last');

});