$(document).ready(function() {
	$("#searchinput").attr("value", "SEARCH");

	var text = "SEARCH";

	$("#searchinput").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});

	$("#searchinput").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
});
