

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/02/2012','15:23','DMP','Announcement - lapsing of share options','4239359','','','');
headlines[1] = new headline('16/11/2011','12:08','DMP','Appendix 3B','4237350','','','');
headlines[2] = new headline('09/11/2011','13:40','DMP','Appendix 3B','4237121','','','');
headlines[3] = new headline('04/11/2011','17:32','DMP','Managing Director - Contract Renewal','4236994','','','');
headlines[4] = new headline('04/11/2011','17:26','DMP','Change of Director`s Interest Notice','4236993','','','');
headlines[5] = new headline('04/11/2011','17:25','DMP','Appendix 3B','4236992','','','');
headlines[6] = new headline('02/11/2011','15:50','DMP','2011 AGM Presentation and Speech Notes','4236903','','','');
headlines[7] = new headline('02/11/2011','15:49','DMP','2011 AGM Media Release','4236902','','','');
headlines[8] = new headline('02/11/2011','15:46','DMP','2011 AGM Resolution','4236904','','','');
headlines[9] = new headline('19/10/2011','12:03','DMP','Appendix 3B','4236160','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/Dominos/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";

		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td>" + h.time + "</td>");
		document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/Dominos/article.asp?view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}

