// JavaScript Document

var theImages1 = new Array();
theImages1[0] = 'images/01.gif'
theImages1[1] = 'images/02.gif'
theImages1[2] = 'images/03.gif'
theImages1[3] = 'images/04.gif'


function showImage()
{
var p1 = theImages1.length;
var img1=Math.floor(Math.random(p1) * p1);
var img2=Math.floor(Math.random(p1-1) * (p1-1));

//document.write(img2);

if(img2<=p1)
{
	if(theImages1[img1]==theImages1[img2])
	{
	showImage();
	}

	else
	{
	
	document.write('<table><tr><td><a href=index.php?option=com_content&task=view&id=16&Itemid=31.html><img src="'+theImages1[img1]+'"></a></td>');
	document.write('<td width=5>&nbsp;</td>');
	document.write('<td><a href=index.php?option=com_content&task=view&id=16&Itemid=31.html><img src="'+theImages1[img2]+'"></a></td></tr></table>');		
	}
}
else
{
showImage();

}
}	