/*
$(document).ready(function(){

	$("#searchstringheader").bind("click", function(){
		if ($(this).val() == ''){
			$("#product_list_holder div.subsuboption em.found").each(function(){
				$(this).replaceWith($(this).text());
			})

			$("#product_list_holder div.subsuboption").show();
			
		}
	});

	$("#searchstringheader").bind("keyup" , function(){
	
		$("#product_list_holder div.subsuboption em.found").each(function(){
		
			$(this).replaceWith($(this).text());
			
		})

		var sText = $(this).val().toLowerCase();
		
		var aText = sText.split(" ");

		var bLongEnough = false;
		
		for(var i = 0; i <= aText.length - 1; i++){
			if (aText[i] != ' ' && aText[i] != '')
				bLongEnough = bLongEnough || (aText[i].length >= 2);
		}

		if (bLongEnough){
		
			$("#product_list_holder div.subsuboption").each(function(){
			
				var sTitle = $(this).text().toLowerCase();

				var bMatch = true;
				
				for(var i = 0; i <= aText.length - 1; i++){
					if (aText[i].length >= 2 && aText[i] != ' ' && aText[i] != '')
						bMatch = bMatch && (sTitle.indexOf(aText[i]) != -1);
				}

				if (bMatch){
					var sHtml = this.innerHTML;
					var sNewHtml = sHtml;

					for(var i = 0; i <= aText.length - 1; i++){
					
						if (aText[i].length >= 2 && aText[i] != ' ' && aText[i] != '') {
						
							var rgxp = new RegExp (aText[i].toLowerCase(), "gi");

							do {
								sResult = rgxp.exec(sHtml);
								
								if (sResult != null) sNewHtml = sNewHtml.replace(new RegExp(sResult, "g"), "<em class='found'>" + sResult + "</em>");
								
							} while (sResult != null)
						}
					}

					$(this).html(sNewHtml).show();
					
				} else {
					$(this).hide();
				}
				
			});
		}

		
		if (sText == '' || !bLongEnough) $("#product_list_holder div.subsuboption").show();

	});
})
*/