/* Get twitter list */

function ajaxManagerTwitter(){
		var args = ajaxManagerTwitter.arguments;
		switch (args[0]){
			case "load_page":
				if (document.getElementById) {
					var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
				}
				if (x) {
					x.onreadystatechange = function() {
						el = document.getElementById('twitter');
						if (x.readyState == 4 && x.status == 200){
							el.innerHTML = x.responseText;
						} else {
						    el.innerHTML = '';
						}
					}
				// Do not use GET request as EI caches the page - which stops it refreshing
				// x.open("GET", args[1], true);
				x.open("POST", args[1], true);
				x.send(args[5]);
				}
				break;
			default:
				ajaxManagerTwitter('load_page', args[0], args[1]);
				break;
		}		
}	
    
// Once the window has loaded, init the jobnumbers  
//window.onload = function () {
//	ajaxManagerTwitter('load_page', '/twitter.php?tweets=' + tweets);            
//	MochiKit.Visual.appear('twitter',null);		
//};