

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('03/07/2009','16:46','UOG','UOG Becoming a substantial holder for IRM','6451917','','','');
headlines[1] = new headline('03/07/2009','16:37','UOG','App 3Y Change of Director`s Interest Notice','6451912','','','');
headlines[2] = new headline('29/06/2009','18:39','UOG','Change of Director`s Interest Notice','6451216','','','');
headlines[3] = new headline('29/06/2009','15:29','UOG','TMX: IRM Takeover Bid Fails','6451164','','','');
headlines[4] = new headline('18/06/2009','16:26','UOG','UOG Ceasing to be a substantial holder for TMX','6450205','','','');
headlines[5] = new headline('16/06/2009','8:28','UOG','Change in UOG substantial holding for TMX','6449864','','','');
headlines[6] = new headline('30/04/2009','15:37','UOG','Quarterly Cashflow Report','6445291','','','');
headlines[7] = new headline('23/04/2009','17:47','UOG','Quarterly Activities Report','6444241','','','');
headlines[8] = new headline('13/03/2009','17:45','UOG','Half Yearly Accounts','6440829','','','');
headlines[9] = new headline('30/01/2009','14:07','UOG','Quarterly Cashflow Report','6436466','','','');


///// 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>")
}
