// Ajax-Zeug

function get_tweets()
{
	var http = null;
	var g = '/media/get_tweets.php';

	if (window.XMLHttpRequest)
	{
	   http = new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
	   http = new ActiveXObject("Microsoft.XMLHTTP");
	}

	if (http != null)
	{
	   http.open("GET", g, true);
	   http.onreadystatechange = ausgeben;
	   http.send(null);
	}

	function ausgeben()
	{
	   if (http.readyState == 4)
	   {
		  document.getElementById('twitter').innerHTML = http.responseText;
	   }
	}
}

get_tweets();
