function YBFStoryObj(title, url){
	this.title=title;
	this.url=url;
}

var YBFStoriesSet = new Array();
YBFStoriesSet[YBFStoriesSet.length] = new YBFStoryObj('Not a climate treaty, but political deal possible', '/yb/gs/article.aspx?story_id=137818267');
YBFStoriesSet[YBFStoriesSet.length] = new YBFStoryObj('New Greenpeace chief has fought apartheid, poverty', '/yb/gs/article.aspx?story_id=137815952');
YBFStoriesSet[YBFStoriesSet.length] = new YBFStoryObj('Obama prods China to take global role on climate', '/yb/gs/article.aspx?story_id=137815779');
YBFStoriesSet[YBFStoriesSet.length] = new YBFStoryObj('Phoenix announced as new home of Chinese solar biz', '/yb/gs/article.aspx?story_id=137806787');
YBFStoriesSet[YBFStoriesSet.length] = new YBFStoryObj('Denmark: summit must set deadline for binding deal', '/yb/gs/article.aspx?story_id=137804539');

if (typeof YBFStoriesSet != "undefined" && YBFStoriesSet.length > 0) {
	var numberOfStories = YBFStoriesSet.length;
	
	document.open();
	document.write("<ul id='newsHeadlines'>");	
    
	for (var i=0; i<numberOfStories ; i++) {
		document.write("<li><a href='" + YBFStoriesSet[i].url + "'>");
		document.write(YBFStoriesSet[i].title + "</a></li>");
	}
	
	document.write("</ul>");
	document.close();
}