$(function(){
	$("#category").focus(function(){
		if (this.value == "Category Search")
			this.value = "";
		$(this).addClass("active");
	});
	
	$("#category").keyup(function(){
		//console.log(this.value);
		var term = this.value.toLowerCase();

		$("#categories a").each(function(){
			if ($(this).text().toLowerCase().indexOf(term) > -1)
			{
				$(this).parent().show();
			}
			else
			{
				$(this).parent().hide();
			}
		})
	})
})