

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('31 January 2012','15:47','AGD','Quarterly Activities Report','6576198','','','');
headlines[1] = new headline('31 January 2012','15:47','AGD','Second Quarter Cashflow Report','6576199','','','');
headlines[2] = new headline('23 January 2012','15:59','AGD','CAP Cancellation: incorrect ASX code should be ASB','6574857','','','');
headlines[3] = new headline('20 January 2012','16:43','AGD','Change in substantial holding','6574688','','','');
headlines[4] = new headline('21 December 2011','13:05','AGD','Change of Director`s Interest Notice','6572248','','','');
headlines[5] = new headline('2 December 2011','11:20','AGD','AGD Constitution - AGM 30 November 2011','6570006','','','');
headlines[6] = new headline('30 November 2011','18:48','AGD','Results of Meeting','6569654','','','');
headlines[7] = new headline('30 November 2011','13:16','AGD','Chairman`s Address - AGM (with Accompanying Slides)','6569420','','','');
headlines[8] = new headline('30 November 2011','13:12','AGD','Chairman`s Address - AGM','6569418','','','');
headlines[9] = new headline('30 November 2011','11:10','AGD','AGD Investor Presentation November 2011','6569366','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/australgold/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("	</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>");
			document.write('		<img src ="showcat.gif" align="bottom"  alt="Pointer">');
			document.write("		</td>");
			document.write("		<td class='title'>");
			document.write("		<a target='_blank' href='http://clients.weblink.com.au/clients/australgold/article.asp?view=" + h.id + "'>" + h.date +" - " + h.headline );
			document.write("		</td>");
			document.write("	</tr>");

		}
		document.write("	</tbody>")
	document.write("</table>")
}

