

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('02/09/2010','13:46','WDS','Open Briefing','2604578','','','');
headlines[1] = new headline('30/08/2010','13:46','WDS','Change of Director`s Interest Notice','2603879','','','');
headlines[2] = new headline('27/08/2010','15:45','WDS','Appendix 3Y x 3','2603698','','','');
headlines[3] = new headline('24/08/2010','18:25','WDS','ear Result Presentation 2010','2603074','','','');
headlines[4] = new headline('24/08/2010','18:02','WDS','Appendix 4E and 2010 Consolidated Financial Report','2603073','','','');
headlines[5] = new headline('12/07/2010','12:11','WDS','Mining Division Awarded Dendrobium Umbrella Contract','2598413','','','');
headlines[6] = new headline('09/07/2010','14:42','WDS','Initial Director`s Interest Notice','2598313','','','');
headlines[7] = new headline('07/07/2010','17:26','WDS','Initial Director`s Interest Notice','2598085','','','');
headlines[8] = new headline('07/07/2010','17:25','WDS','Appoints New CEO and Director with CEO Remuneration details','2598084','','','');
headlines[9] = new headline('01/07/2010','17:21','WDS','Lapse of Unlisted Options','2597545','','','');
headlines[10] = new headline('03/06/2010','16:52','WDS','Response to IMF Announcement','2594791','','','');
headlines[11] = new headline('03/06/2010','13:09','WDS','Awarded Pipeline Contract','2594767','','','');
headlines[12] = new headline('02/06/2010','12:32','WDS','Mining contract extended by Vale Australia','2594585','','','');
headlines[13] = new headline('28/05/2010','12:35','WDS','Presentation','2594161','','','');
headlines[14] = new headline('27/04/2010','17:20','WDS','Open Briefing','2590621','','','');
headlines[15] = new headline('27/04/2010','9:46','WDS','Trading Update','2590532','','','');
headlines[16] = new headline('22/04/2010','9:45','WDS','Trading Halt','2590262','','','');
headlines[17] = new headline('30/03/2010','17:55','WDS','Ceasing to be a substantial holder','2588208','','','');
headlines[18] = new headline('29/03/2010','11:09','WDS','Change of Director`s Interest Notice','2587976','','','');
headlines[19] = new headline('24/03/2010','17:22','WDS','Change in substantial holding','2587587','','','');
headlines[20] = new headline('22/03/2010','17:08','WDS','Ceasing to be a substantial holder','2587325','','','');
headlines[21] = new headline('19/03/2010','19:36','WDS','Change in substantial holding','2587182','','','');
headlines[22] = new headline('05/03/2010','9:32','WDS','SandP Announces March SP/ASX Index Rebalance','2585485','','','');
headlines[23] = new headline('26/02/2010','9:35','WDS','Appendix 4D and Interim Financial Report','2584458','','','');
headlines[24] = new headline('24/02/2010','11:22','WDS','Change in substantial holding','2583992','','','');
headlines[25] = new headline('24/02/2010','10:21','WDS','Change in substantial holding','2583967','','','');
headlines[26] = new headline('19/02/2010','16:59','WDS','Extension of GE Facility','2583412','','','');
headlines[27] = new headline('18/02/2010','11:34','WDS','Final Director`s Interest Notice','2583115','','','');
headlines[28] = new headline('16/02/2010','17:02','WDS','Resignation of Group Managing Director and Business Update','2582791','','','');
headlines[29] = new headline('15/02/2010','9:55','WDS','Trading Halt','2582565','','','');
headlines[30] = new headline('09/02/2010','9:08','WDS','Change in substantial holding','2581938','','','');
headlines[31] = new headline('08/02/2010','18:41','WDS','Becoming a substantial holder','2581894','','','');
headlines[32] = new headline('05/02/2010','12:47','WDS','Change of Director`s Interest Notice','2581686','','','');
headlines[33] = new headline('03/02/2010','16:49','WDS','Ceasing to be a substantial holder from PPT','2581439','','','');
headlines[34] = new headline('02/02/2010','8:57','WDS','Market Update','2581199','','','');
headlines[35] = new headline('01/02/2010','11:16','WDS','Trading Halt','2581109','','','');
headlines[36] = new headline('22/01/2010','15:38','WDS','Change of Director`s Interest Notice','2580302','','','');
headlines[37] = new headline('04/01/2010','11:42','WDS','Option Plan (2006 and 2007 Award) - Appendix 3B','2578743','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/wdslimited/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 renderDivHeadlinesList()
{

	for (var i=0; i<headlines.length; i++) {
		var h = headlines[i];
		var cls = (i%2 == 0) ? "even" : "odd";
        var asxcode = 'WDS';
		if (h.symbol == '') continue;

		document.write("		<div id='divDate"+i+"'>" + h.date + "</div>");
		document.write("		<div id='divTime"+i+"'>" + h.time + "</div>");
		document.write("		<div id='divHeadline"+i+"'><a target='_blank' href='http://clients.weblink.com.au/clients/wdslimited/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</a></div>");

		
	}
}
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 = 'WDS';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td class='wlNewsDate'>" + h.date + "</td>");
		document.write("		<td  class='wlNewsTime'>" + h.time + "</td>");
		document.write("		<td align=left  class='wlNewsTitle'><a target='_blank' href='http://clients.weblink.com.au/clients/wdslimited/article.asp?asx="+ asxcode +"&view=" + h.id + "'>" + h.headline + "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")
}
