

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('30/01/2012','14:38','UOG','Quarterly Activities and Cashflow Report','6575633','','','');
headlines[1] = new headline('16/12/2011','12:30','UOG','Company Secretary Appointment/Resignation','6571695','','','');
headlines[2] = new headline('18/11/2011','20:18','UOG','Initial Director`s Interest Notice','6567438','','','');
headlines[3] = new headline('18/11/2011','20:15','UOG','Results of Meeting','6567437','','','');
headlines[4] = new headline('18/11/2011','13:13','UOG','Annual General Meeting Presentation','6567315','','','');
headlines[5] = new headline('09/11/2011','12:59','UOG','Change of Director`s Interest Notice','6565960','','','');
headlines[6] = new headline('09/11/2011','12:59','UOG','Change of Director`s Interest Notice','6565961','','','');
headlines[7] = new headline('03/11/2011','16:58','UOG','Change of Director`s Interest Notice','6565353','','','');
headlines[8] = new headline('03/11/2011','16:56','UOG','Change of Director`s Interest Notice','6565351','','','');
headlines[9] = new headline('26/10/2011','19:50','UOG','Quarterly Activities and Cashflow Report','6563336','','','');


///// 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>")
}

