function initRandUsers()
{   
	setTimeout( function(){
	 new randUsers();
	 initRandUsers();
	}, 4000 );
}

function randUsers()
{
	if ( document.getElementById )
		this.init();
};

randUsers.prototype.init = function()
{
	this._rpc = '/rpc.php';
	this._init = false;
	
	this._command = "randomusers";

	this._busyclass = "ajaxprogress";
	this._loading = false;

	
	// load initial list
	this._load();
	
	this._init = true;
	
	return true;
};

randUsers.prototype._load = function()
{
	this._loading = true;
	
	var oXML = new klib3.xml();
	oXML._parent = this;
	
	oVariable = new Object();
	oVariable.command = this._command;
	oVariable._format = "xml";

	oXML.onload  = function()
	{
		this._parent._onLoad( this );
	}	
	oXML.post( this._rpc, true, oVariable );
	
	return false;
};

randUsers.prototype._onLoad = function( oXML )
{
	var oStatus = new Status( oXML );	
	var oDiv = document.getElementById("randomprofiles");
	
	if ( oStatus.status != "ERROR"){
		// nieuwe html erin zetten
		//var oDiv = document.getElementById("singleprofile");
		//if ( oDiv )
			oDiv.innerHTML = oStatus.content["data"];		
	}
	this._loading = false;
};