

function headline(date, time, symbol, headline, id)
{
	// Represents a headline object
	this.date = date;
	this.time = time;
	this.symbol = symbol;
	this.headline = headline;
	this.id = id;
}

///// Data values /////
var headlines = new Array();

headlines[0] = new headline('15/03/2010','12:04','UOG','Half Year Accounts','6483899','','','');
headlines[1] = new headline('29/01/2010','16:59','UOG','Quarterly Cashflow Report','6478696','','','');
headlines[2] = new headline('29/01/2010','12:16','UOG','Quarterly Activities Report','6478371','','','');
headlines[3] = new headline('19/11/2009','15:46','UOG','Results of Annual General Meeting','6469953','','','');
headlines[4] = new headline('30/10/2009','13:59','UOG','Quarterly Activities and Cashflow Reports','6467102','','','');
headlines[5] = new headline('22/10/2009','19:41','UOG','2009 Annual Report to shareholders','6465272','','','');
headlines[6] = new headline('22/10/2009','19:40','UOG','Letter to shareholders re AGM and Annual Report','6465271','','','');
headlines[7] = new headline('22/10/2009','19:35','UOG','Notice of Annual General Meeting','6465264','','','');
headlines[8] = new headline('22/10/2009','19:22','UOG','2009 Financial Report - Competent Person`s Statement','6465255','','','');
headlines[9] = new headline('01/10/2009','8:19','UOG','2009 Full Year Audited Statutory Accounts','6462263','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/uranium/article.asp?view=' + articleID;
	var PopupWin = window.open(urlStr,"viewNews","scrollbars=yes,toolbar=no,directories=no,status=yes,menubar=no,resizable=yes,width=630,height=450")
	PopupWin.focus();
}

function renderHeadlinesList()
{
	document.write("<table class='wlNewsTable'>");
		document.write("	<thead>");
		document.write("		<tr>");
		document.write("			<th>Announcements</th>");
		document.write("			<th></th>");
		document.write("			<th></th>");
		document.write("		</tr>");
		document.write("	</thead>")
		document.write("	<tbody>")

		for (var i=0; i<headlines.length; i++) {
			var h = headlines[i];
			var cls = (i%2 == 0) ? "even" : "odd";

			if (h.symbol == '') continue;

			document.write("	<tr class='" + cls + "'>");

			document.write("		<td><br>");
			document.write(h.date);
			document.write("		<br>");
			document.write("		<a target='_blank' href='http://clients.weblink.com.au/clients/uranium/article.asp?view=" + h.id + "'>" + h.headline );
			document.write("		</td>");
			document.write("	</tr>");

		}
		document.write("	</tbody>")
	document.write("</table>")
}
