<!--

var cache = "";
var caches = new Array();
var load_counter = 0;
var load_flag = 0;
var print_line = 0;
var load_line_sec = 400;

function pageScroll(){
	scrollBy(0,1000);
	setTimeout("pageScroll()",200);
}
function loadrss(){
	if(caches.length > print_line){
		document.getElementById("wrapper").innerHTML += caches[print_line] + "<br />";
		print_line++;
		setTimeout("loadrss()",load_line_sec);
	}
	else {
		load_counter++;
		load_flag = 1;
		postQuery();
	}
}
function print(){
	
}
function postQuery(){
	var query = load_counter;
	load_flag = 1;
	httpObj = createXMLHttpRequest();
	httpObj.onreadystatechange = getQuery;
	httpObj.open("GET","rss/?"+encodeURI(query),true);
	httpObj.send(null);
	return false;
}
function getQuery(){
	if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
		cache = decodeURI(httpObj.responseText);
		print_line = 0;
		document.getElementById("wrapper").innerHTML += "<br />";
		caches = cache.split("<br />");
		setTimeout("loadrss()",load_line_sec);
	}
	else{
		if(load_flag){
			document.getElementById("wrapper").innerHTML += "now loading";
			load_flag = 0;
		}
		else {
			document.getElementById("wrapper").innerHTML += ".";
		}
	}
}
function createXMLHttp() {
	try {
		return new ActiveXObject ("Microsoft.XMLHTTP");
	}catch(e){
		try {
			return new XMLHttpRequest();
		}catch(e) {
			return null;
		}
	}
	return null;
}
function createXMLHttpRequest(){
	var XMLhttpObject = null;
	try{
		XMLhttpObject = new XMLHttpRequest();
	}
	catch(e){
		try{
			XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e){
			try{
				XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				return null;
			}
		}
	}
	return XMLhttpObject;
}

window.onload = function(){
	setTimeout("pageScroll()",200);
	postQuery();
}
//-->