

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('Feb 02, 2012','10:03','CMW','Half Year 2012 Results Announcement Date','4239318','','','');
headlines[1] = new headline('Feb 02, 2012','9:47','CMW','Trading Halt','4239316','','','');
headlines[2] = new headline('Feb 01, 2012','18:09','CMW','Settlement of Bundall Corporate Centre, Gold Coast','4239312','','','');
headlines[3] = new headline('Jan 30, 2012','19:54','CMW','DRP Price for Distribution','4239181','','','');
headlines[4] = new headline('Jan 25, 2012','18:32','CMW','Cromwell Property Group Performance Rights','4239112','','','');
headlines[5] = new headline('Jan 25, 2012','18:30','CMW','Cromwell Property Group Announces Extension of On-Market Buy','4239111','','','');
headlines[6] = new headline('Jan 05, 2012','14:32','CMW','Change of Director`s Interest Notice','4238755','','','');
headlines[7] = new headline('Dec 23, 2011','16:02','CMW','Cromwell Re-acquires Bundall Corporate Centre','4238661','','','');
headlines[8] = new headline('Dec 22, 2011','14:32','CMW','Settlement of HQ North Tower, Fortitude Valley','4238614','','','');
headlines[9] = new headline('Dec 21, 2011','16:27','CMW','Cromwell Property Group Performance Rights Plan','4238578','','','');
headlines[10] = new headline('Dec 21, 2011','16:27','CMW','Cleansing Notice','4238579','','','');
headlines[11] = new headline('Dec 21, 2011','14:01','CMW','Change of Director`s Interest Notice','4238572','','','');
headlines[12] = new headline('Dec 20, 2011','17:12','CMW','Change of Director`s Interest Notice','4238537','','','');
headlines[13] = new headline('Dec 20, 2011','17:10','CMW','Change of Director`s Interest Notice','4238536','','','');
headlines[14] = new headline('Dec 20, 2011','17:06','CMW','Change of Director`s Interest Notice','4238535','','','');
headlines[15] = new headline('Dec 20, 2011','16:06','CMW','Launch of New $93 million Property Trust','4238527','','','');
headlines[16] = new headline('Dec 20, 2011','13:09','CMW','Change in substantial holding','4238520','','','');
headlines[17] = new headline('Dec 20, 2011','11:44','CMW','Despatch of Holding Statements','4238516','','','');
headlines[18] = new headline('Dec 19, 2011','14:46','CMW','December Quarter 2011 Distibution','4238490','','','');
headlines[19] = new headline('Dec 16, 2011','17:36','CMW','Cleansing Notice','4238462','','','');
headlines[20] = new headline('Dec 16, 2011','17:35','CMW','Completion of Entitlement Offer','4238461','','','');
headlines[21] = new headline('Dec 16, 2011','11:51','CMW','Change of Director`s Interest Notice','4238437','','','');
headlines[22] = new headline('Dec 15, 2011','16:01','CMW','Changes to Entitlement Offer Timetable','4238401','','','');
headlines[23] = new headline('Dec 01, 2011','18:47','CMW','Cromwell Property Group - Entitlement Offer opens today','4238032','','','');
headlines[24] = new headline('Nov 22, 2011','16:36','CMW','Leighton announces Brisbane`s HQ North Tower $186m sale','4237560','','','');
headlines[25] = new headline('Nov 22, 2011','10:37','CMW','Constitutional Amendment Cromwell Diversified Property Trust','4237534','','','');
headlines[26] = new headline('Nov 22, 2011','10:28','CMW','Cleansing Notice Entitlement Offer','4237532','','','');
headlines[27] = new headline('Nov 22, 2011','10:28','CMW','Cleansing Notice Placement','4237533','','','');
headlines[28] = new headline('Nov 22, 2011','10:27','CMW','Entitlement Offer Documentation','4237529','','','');
headlines[29] = new headline('Nov 22, 2011','10:27','CMW','Acquisition and Equity Raising Presentation','4237528','','','');


///// Render functions /////
// (you can use your own if you like)

function viewArticle(articleID) {
	var urlStr = 'http://clients.weblink.com.au/clients/cromwell/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 goP(page) {
				window.location = '?PageNumber=' + (page);
			}


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 = 'CMW';
		if (h.symbol == '') continue;

		document.write("	<tr class='" + cls + "'>");
		document.write("		<td align=left><font color='#967b3c'>"  + h.date +"</font><br/><b>"+ h.headline + "  "+ "</b><a target='_blank' href='http://clients.weblink.com.au/clients/cromwell/article.asp?asx="+ asxcode +"&view=" + h.id + "'>More</a>"+ "</td>");
		document.write("	</tr>");

	}
	document.write("	</tbody>")
	document.write("</table>")

 
    document.write("<table class ='pageTable'  border=0>")
    document.write("<tr>")
    
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	 document.write("   <font size='+0'><b>1</b></font>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(2);'>2</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(3);'>3</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(4);'>4</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(5);'>5</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(6);'>6</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(7);'>7</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(8);'>8</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(9);'>9</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(10);'>10</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(11);'>11</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(12);'>12</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(13);'>13</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(14);'>14</a>")
	
	document.write("<td align='center'>")
	document.write("				<font size='-1' face='arial'>")
	
	document.write("			<a href='javascript:goP(15);'>15</a>")
	
    document.write("                 </font>")
	document.write("			</td>")

	 
	document.write("<td>")
	document.write("				<a href='javascript:goP(2);'><img src='http://clients.weblink.com.au/clients/cromwell/next_icon.gif' alt='Next page' border='0' /></a>")
	document.write("			</td>")
	
	document.write("		</tr>")
    document.write("</table>")
 
}

