function GetTweets(tcontainer,query,limit,tclass)
{
	$.getJSON("/includes/twitter.php", {q: query, l: 0}, function(data){
			for(var t=0;t<data.length;t++)				
			{
				if(limit != 0 && t>limit)
					text = '<div class="twitter-result'+tclass+' hide">';
				else	
					text = '<div class="twitter-result'+tclass+'">';
				if (data[t]['profile_image_url']) {
					text+='<a href="http://twitter.com/'+data[t]['from_user']+'" title="from '+data[t]['from_user']+'" target="_blank"><img src="'+data[t]['profile_image_url']+'"/></a>';				
				}
				text += '<p>'+data[t]['text']+'</p>';
				text+='</div>';
				$("#"+tcontainer).append(text);
			}
			if(limit != 0 && data.length>limit){				
				$("#"+tcontainer).append('<br/><p><a href="#" onclick="$(\'.twitter-result'+tclass+'\').show(); $(this).hide(); return false;"><b>Show more Tweets...</b></a></p>');
			}
		
		$("#loading-"+tcontainer).hide();		
	});
	
	return false;
}
