var pubxImg = new Image();
pubxImg.src = '/en_GX/gx/forest-paper-packaging/assets/transform-ina.jpg';
var pubsImg = new Image();
pubsImg.src = '/en_GX/gx/forest-paper-packaging/assets/fp-q-june09.jpg';
var pubmImg = new Image();
pubmImg.src = '/en_GX/gx/forest-paper-packaging/assets/gfs-09.jpg';
var pubbImg = new Image();
pubbImg.src = '/en_GX/gx/forest-paper-packaging/assets/fpp-deals.jpg';


function makeSpotlight(t,c,l,f,i){
	this.title = t;
	this.copy = c;
	this.link = l;
	this.follow = f;
	this.img = i;
	this.write = writeSpotlight;
}

function writeSpotlight(){
	var str = '';
	str += '<a href="' + this.link + '">';
	str += '<img align="left" hspace="10" border="0" src="' + this.img.src + '"' + 'alt="' + this.title + '"></a>';
	str += '<b>' + this.title + '</b>' + '&nbsp;' + '<br><br>'
	str += this.copy + '&nbsp;';
    str += 'See&nbsp;' + '<a href="' + this.link + '">' + this.follow + '</a>' + '.';
	return str;
}


var newsArray = new Array();
newsArray[0] = new makeSpotlight("Transformation through innovation: leveraging the forest energy opportunity","FPP players around the world can no longer take wood fibre availability for granted, facing increasing demand from energy providers who see forest biomass as an important renewable energy source. This is both a significant challenge and business opportunity for the established players in the fibre value chain.",'/en_GX/gx/forest-paper-packaging/transformation/transformation-innovation.jhtml',"more",pubxImg).write();//Transformation through innovation: leveraging the forest energy opportunity

newsArray[1] = new makeSpotlight("Global Forest and Paper Industry: Net Earnings Summary - Three months ended June 30th, 2009","The second quarter of 2009 was characterized by continued weakness in commodity product pricing and low demand as the industry continued to weather the effects of the global economic downturn.",'/en_GX/gx/forest-paper-packaging/net-earnings2q2009/index.jhtml',"more", pubsImg).write();//Global Forest and Paper Industry: Net Earnings Summary - Three months ended June 30th, 2009

newsArray[2] = new makeSpotlight("Global Annual Forest, Paper & Packaging Industry survey - 2009 edition","The goal of the Survey, now in its 12th year, is to provide insight into the major companies and an overview of the issues and events shaping the industry.",'/en_GX/gx/forest-paper-packaging/2009-fpp-survey/index.jhtml',"more", pubmImg).write();//Global Annual Forest, Paper & Packaging Industry survey - 2009 edition

newsArray[3] = new makeSpotlight("Forest, paper and packaging deals: 2008 Annual Review","FPP Deals reviews in detail 2008 deal activity in the forestry, paper and fibre packaging sectors, and examines several related themes.",'/gx/en/forest-paper-packaging/deals2008/index.jhtml',"more", pubbImg).write();//Forest, paper and packaging deals: 2008 Annual Review



var nIndex = 0;
var timerID = null;
function rotateSpotlight(){
	var len = newsArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('spotlight').innerHTML = newsArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateSpotlight()',6500);
}
function pauseSpotlight() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playSpotlight() {
	if (timerID == null) {
		timerID = setTimeout('rotateSpotlight()',650);
	}
}
