

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('08/02/2012','18:39','DVN','Investor Presentation December 2011 Half - Year','4239449','','','');
headlines[1] = new headline('08/02/2012','18:29','DVN','Directors Comments December 2011 Half - Year','4239448','','','');
headlines[2] = new headline('08/02/2012','18:28','DVN','Appendix 4D December 2011 Half - Year','4239447','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/devine2/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("	<tbody>")

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";
        var asxcode = 'DVN';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td class='hDate'>" + h.date + "</td>");
		document.write("		<td class='hTime'>" + h.time + "</td>");
		document.write("		<td class='hHeadline'>" + h.headline + "</td>");
		document.write("		<td class='hPDF'><a target='_blank' href='http://clients.weblink.com.au/clients/devine2/article.asp?asx="+ asxcode +"&view=" + h.id + "'><img class='pdfImg'src='pdf.gif'/></a> (pdf)</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}

