// JavaScript Document

$(document).ready(function () {
	$("input:text[placeholder]").placeholder();
});

$(document).ready(function () {
	$("input:password[placeholder]").placeholder();
});

(function($) {
$.fn.placeholder = function (text)
{
	var text = text || null;
	return $(this).each(function () {
		
		var value = (text) ? text : $(this).attr("placeholder");
		
		$(this).addClass("active-placeholder").val(value);
		
		$(this).focus(function () {
			if ($(this).val() == value)
				$(this).removeClass("active-placeholder").val("");
		});
		
		$(this).blur(function () {
			if ($(this).val() == "")
				$(this).addClass("active-placeholder").val(value);
		});
	});
}

})(jQuery);
