/*J$(document).ready(function()
{
	var timeout;
	
	function showSuggestion(leftPos, topPos, target)
	{
		var searchText = "Searching ...";
		hideSuggestion();
		var dropdown = J$('<div></div>').addClass('search-dropdown').css({left: leftPos, top: topPos});
		
		J$('<div class="search-dropdown-left"><div class="search-dropdown-right"><div class="search-dropdown-content">' + searchText + '</div></div></div>').appendTo(dropdown);
		J$('<div class="search-dropdown-bottom">&nbsp;</div>').appendTo(dropdown);
		
		dropdown.css({opacity: 0});
		
		dropdown.appendTo('#container');
		
		dropdown.animate({opacity: 0.9}, {duration: 200});
		
		function sendAjax()
		{
			ajax = J$.ajax({
				type: "GET",
				url: "http://www.tabletest.net/web/suggest-" + target + ".php",  
				data: "startsWith=" + J$('#search-' + target).val(),
				cache: false,
				success: function(html)
				{
					J$(".search-dropdown-content").html(html);
					
					J$('.suggested-' + target).click(function(i)
					{
						J$('#search-' + target).val(J$(this).html());
						
						return false;
					});
				}
			});
		}
		
		sendAjax();
	}
	
	function hideSuggestion()
	{
		J$('.search-dropdown').css({overflow: 'hidden'});
		J$('.search-dropdown').animate({opacity: 0}, {duration: 200, complete: function()
			{
				J$(this).remove();
			}
		});
	}
	
	J$('#search-keyword').keyup(function()
	{
		if (timeout !== null)
		{
			clearTimeout(timeout);
		}
		
		var that = this;
		
		timeout = setTimeout(function()
		{
			if (that.value.length == 0)
			{
				hideSuggestion();
			}
			else
			{
				showSuggestion(277, 79, "keyword");
			}
		}, 500);
	});
	
	J$('#search-location').keyup(function()
	{
		if (timeout !== null)
		{
			clearTimeout(timeout);
		}
		
		var that = this;
		
		timeout = setTimeout(function()
		{
			if (that.value.length == 0)
			{
				hideSuggestion();
			}
			else
			{
				showSuggestion(574, 79, "location");
			}
		}, 500);
	});
	
	J$('#search-keyword, #search-location').blur(function()
	{
		hideSuggestion();
	});
});*/