

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('12/05/2008','14:11','WWM','Change in Directors Interest','3298272','','','');
headlines[1] = new headline('02/05/2008','12:03','WWM','Change in Directors Interest','3297751','','','');
headlines[2] = new headline('02/05/2008','10:42','WWM','Response to an ASX 4C Query','3297736','','','');
headlines[3] = new headline('30/04/2008','16:22','WWM','Appendix 4C Mar 2008','3297579','','','');
headlines[4] = new headline('15/04/2008','12:49','WWM','Change in Directors Interest','3296489','','','');
headlines[5] = new headline('11/04/2008','11:39','WWM','Change in Directors Interest','3296320','','','');
headlines[6] = new headline('03/04/2008','16:18','WWM','Change in Directors Interest','3295750','','','');
headlines[7] = new headline('02/04/2008','10:30','WWM','Appendix 3B','3295620','','','');
headlines[8] = new headline('25/03/2008','11:43','WWM','Change in Directors Interest','3295140','','','');
headlines[9] = new headline('14/03/2008','11:44','WWM','Change in Directors Interest','3294702','','','');
headlines[10] = new headline('07/03/2008','14:47','WWM','Change in Directors Interest','3294289','','','');
headlines[11] = new headline('06/03/2008','14:37','WWM','Change in Directors Interest','3294206','','','');
headlines[12] = new headline('29/02/2008','12:15','WWM','Media Release Decemeber 2007 Results','3293784','','','');
headlines[13] = new headline('29/02/2008','12:14','WWM','Half Year Results December 2007','3293785','','','');
headlines[14] = new headline('26/02/2008','14:14','WWM','Change in Directors Interest','3293413','','','');
headlines[15] = new headline('21/02/2008','14:02','WWM','Change in Directors Interest','3293111','','','');
headlines[16] = new headline('11/02/2008','12:34','WWM','Change in Directors Interest','3292437','','','');
headlines[17] = new headline('01/02/2008','8:37','WWM','Appendix 4C Dec 07 QTR','3291985','','','');
headlines[18] = new headline('31/01/2008','12:30','WWM','Company Update','3291893','','','');
headlines[19] = new headline('22/01/2008','14:24','WWM','Change in Directors Interest','3291466','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/wentworth/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' width=230 >");
	document.write("	<thead>");
	document.write("		<tr>");
	document.write("			<th>Date</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" : "even";
        var asxcode = 'WWM';
       var buffer;
       buffer=" " 
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td>" + h.date + "</td>");
		document.write("		<td><a target='_blank' href='http://clients.weblink.com.au/clients/wentworth/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");
		if (cls="even")
		{
		    cls="odd"
		}
		else
		{
		    cls="even"
		}
		document.write("	<tr class='" + cls + "'>");
		document.write("		<td><div style='color:white'>test</div></td>");
		document.write("		<td></td>");
		document.write("	</tr>");
		
	}
	document.write("	</tbody>")
	document.write("</table>")
}
