if (fact_desc[0]=="") f_desc = new Array();

if (fact_desc.length>0) {
document.write('<table width="90%" border="0" cellspacing="0" cellpadding="0">');
ic = fact_desc.length;
choices = new Array(ic);
for (ii=0;ii<ic;ii++) choices[ii]=true;
MaxItems=4;  // This line may be taken out of this file

if (typeof(MAX_Facts)!='undefined') MaxItems = MAX_Facts;

if (ic>MaxItems) toLoop=MaxItems;
else toLoop=ic;
for (;toLoop>0;toLoop--) {

	newsItem = pickRandom(ic);
	ic--;
	ptr=-1;
	jj=-1;
	do {
		ptr++;
		while ( choices[ptr]==false ) {ptr++;}  // find the available article
		jj++;
	} while (jj<newsItem);
	choices[ptr] = false;
	document.writeln('<tr>');
	document.writeln('<td height="22" valign="top"><a href="'+fact_href[ptr]+'" class="newsText">');
	document.writeln((fact_desc[ptr]));
	document.writeln('</a></td>');
	document.writeln('</tr>');
	document.writeln('<tr>');
	document.writeln('<td height="12" valign="top"><img src="http://www.sfu.ca/hp/images/white.gif" alt="" width="9" height="12"></td>');
	document.writeln('</tr>');
}

document.write('</table>');
}
