
jQuery(document).ready(function()
{
	var J = jQuery.noConflict();
	// Safely inject CSS3 and give the search results a shadow
	var cssObj = { 'box-shadow' : '#888 5px 10px 10px', // Added when CSS3 is standard
		'-webkit-box-shadow' : '#888 5px 10px 10px', // Safari
		'-moz-box-shadow' : '#888 5px 10px 10px'}; // Firefox 3.5+
	J("#suggestions").css(cssObj);
	// Fade out the suggestions box when not active
	 J("input").blur(function(){
	 	J('#suggestions').fadeOut();
	 });
});
function lookup(inputString) {
	//alert("hello");
	var J = jQuery.noConflict();
	if(inputString.length == 0) {
		J('#suggestions').fadeOut(); // Hide the suggestions box
	} else {
		J.post("search_rpc.php", {queryString: ""+inputString+""}, function(data) { // Do an AJAX call
			J('#suggestions').fadeIn(); // Show the suggestions box
			J('#suggestions').html(data); // Fill the suggestions box
	});
	}
}

