/////////////////////////////////////////////////////////
// World Markets Analysis & Commentary Link
// Implemented: April 2007 //
// Pages: /wm/index.html | /wm/company-information/news-room.html //
// Desc: Displays most recent Analysis & Commentary Link //
////////////////////////////////////////////////////////

var url = 'http://micro.newswire.ca/release.cgi?rkey=1802265024&view=92835-0&Start=0&htm=0';
var headline = 'More manufacturing jobs ahead but gains may be shortlived: CIBC World Markets Inc.';
var subheadline = ''; //leave as '' if there is no sub-headline
var contact = 'Benjamin Tal';
var contitle = 'Senior Economist, CIBC World Markets Inc.';
 
//var contact2 = '';
//var contitle2 = '';

//////////////////////////////////////////////////////////
// World Markets Newsfeed Listing  //
// Implemented: March 15, 2007 //
// Pages: /wm/index.html | /wm/company-information/news-room.html //
// Desc: Displays recent news items with links //
/////////////////////////////////////////////////////////

var y = 4; //y = total number of news stories displayed, standard number is 3

function create() {this.date = ''; this.headline = ''; this.url = '';}
z = new Array();

for(var i=1; i<=y; i++) { z[i] = new create(); }

/* News Item
	z[1].date = 'MMM DD, YYYY';    //example: JAN 1, 2007
	z[1].headline = '  ';
	z[1].url = '  ';
*/

// z[1] is the MOST RECENT news item, displayed at the top of news feed list
	z[1].date = 'Feb. 11';
	z[1].headline = 'Europe\'s sovereign debt crisis could drive more investors to \'safe harbour\' Canada: CIBC World Markets Inc.';
	z[1].url = 'http://micro.newswire.ca/release.cgi?rkey=1802118841&view=92835-0&Start=0&htm=0';

	z[2].date = 'Feb. 8';
	z[2].headline = 'Canadians returning to RRSP investments following recession: CIBC World Markets Inc.';
	z[2].url = 'http://micro.newswire.ca/release.cgi?rkey=1802087166&view=92835-0&Start=0&htm=0';

	z[3].date = 'Jan 28';
	z[3].headline = 'Ontario economy to grow faster than national average for the first time in eight years: CIBC World Markets Inc.';
	z[3].url = 'http://micro.newswire.ca/release.cgi?rkey=1801284653&view=92835-0&Start=0&htm=0';

	z[4].date = 'Jan 25';
	z[4].headline = 'Earnings recession over: CIBC World Markets Inc.';
	z[4].url = 'http://micro.newswire.ca/release.cgi?rkey=1801253512&view=92835-0&Start=0&htm=0';



/*
	z[4].date = 'Jan 14';
	z[4].headline = 'Canadian economy will start 2010 like a lion but exit like a lamb: CIBC World Markets Inc.';
	z[4].url = 'http://micro.newswire.ca/release.cgi?rkey=1801148528&view=92835-0&Start=0&htm=0';

	z[4].date = 'Dec 1';    //example: JAN 1, 2007
	z[4].headline = 'Recession officially over but Canadian cities still hurting: CIBC World Markets Inc.';
	z[4].url = 'http://micro.newswire.ca/release.cgi?rkey=1712016070&view=92835-0&Start=0&htm=0';

*/

function feedDate(num)
{return (z[num].date)}

function feedLink(num)
{return ('<a href="javascript:newCustomWindow(\''+z[num].url+'\', \'638\', \'480\');">'+z[num].headline+'</a>')}

//////////////////////////////////////////////////////////