function show_ad(query, template)
{
	$.get('/ad.php', {'q': query, 'uri':document.URL, 'template':template }, function(data){
			$('#ad').html(data);
		});
}
