// Kribas Hannes
// V 0.99
// 18-06-2006

/*
 *
 * Väljastab random pildi
 *
 */
 /* N2ide:
 	head:
		<script src="Cookie.js" type="text/javascript"></script>
		<script src="BrowserCheck.js" type="text/javascript"></script>

	body: 
	<script type="text/javascript">
	pilt = new ShowRandomImage ("minu_pildid");
	pilt.add_image("img/3.jpg");
	pilt.add_image("img/4.jpg");
	pilt.init();
	</script>
	
	
 */ 
function JustWriteRandomStuff ()
{
	this.arrText = new Array();

	this.add_text = add_text;
	this.init = init;
}

function init ()
{
	var intRandom = Math.floor(Math.random() * ( this.arrText.length  ));
	document.write (this.arrText[intRandom]);
}

function add_text (strText)
{
	this.arrText[this.arrText.length] = strText;	
}
