

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('23/12/2008','14:39','PPD','Letter to Shareholders','6433909','','','');
headlines[1] = new headline('22/12/2008','9:37','PPD','Appendix 3B','6433697','','','');
headlines[2] = new headline('22/12/2008','9:31','PPD','Non- Renounceable Issue - Offer Document','6433694','','','');
headlines[3] = new headline('22/12/2008','9:28','PPD','Non-Renounceable Issue','6433693','','','');
headlines[4] = new headline('11/12/2008','17:06','PPD','Appendix 3B','6432859','','','');
headlines[5] = new headline('28/11/2008','16:24','PPD','Results of Meeting','6431594','','','');
headlines[6] = new headline('31/10/2008','10:48','PPD','Quarterly Activities and Cash Flow Report','6427695','','','');
headlines[7] = new headline('21/10/2008','16:29','PPD','Annual Report to shareholders','6425520','','','');
headlines[8] = new headline('21/10/2008','16:27','PPD','Notice of Annual General Meeting/Proxy Form','6425514','','','');
headlines[9] = new headline('15/10/2008','12:03','PPD','Annual General Meeting','6424715','','','');
headlines[10] = new headline('01/10/2008','16:50','PPD','Final Director`s Interest Notice','6423234','','','');
headlines[11] = new headline('01/10/2008','16:48','PPD','Resignation of Director','6423233','','','');
headlines[12] = new headline('25/09/2008','13:04','PPD','Full Year Statutory Accounts','6422133','','','');
headlines[13] = new headline('01/09/2008','17:12','PPD','Final Director`s Interest Notice','6419472','','','');
headlines[14] = new headline('01/09/2008','17:09','PPD','Resignation of Director','6419471','','','');
headlines[15] = new headline('31/07/2008','13:08','PPD','Initial Director`s Interest Notice','6415920','','','');
headlines[16] = new headline('31/07/2008','11:26','PPD','Quarterly Activities and Cash Flow Report','6415835','','','');
headlines[17] = new headline('30/07/2008','17:29','PPD','Results of Meeting','6415675','','','');
headlines[18] = new headline('30/07/2008','8:26','PPD','Appointment of Chairman','6415424','','','');
headlines[19] = new headline('24/06/2008','18:12','PPD','Notice of General Meeting/Proxy Form','6411325','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/SDG/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>Date</th>");
	document.write("			<th>Time</th>");
	document.write("			<th>Document</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";
        var asxcode = 'PPD';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td align= left><a target='_blank' href='http://clients.weblink.com.au/clients/SDG/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
