	var delay = 4000; //set delay between message change (in miliseconds)
	var maxsteps=60; // number of steps to take to change from start color to endcolor
	var stepdelay=40; // time in miliseconds of a single step
	//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
	var startcolor= new Array(255,255,255); // start color (red, green, blue)
	var endcolor=new Array(102,102,102); // end color (red, green, blue)
	
	var fcontent=new Array();
	begintag='<div id="news_scroller_text">'; //set opening tag, such as font declarations

fcontent[0]="<a href='/news/newsfeeds//article_1041.html'><span class='news_scroller_item_title'>INSULATION ADVISED AHEAD OF EPC DEADLINE</span><br><br><span class='news_scroller_item_text'>Advice to landlords has been offered ahead of the October deadline to acquire energy performance certificates (EPC) by one industry body.The National ...</a>";
;
fcontent[1]="<a href='/news/newsfeeds//article_1020.html'><span class='news_scroller_item_title'>ASBESTOS HALTS CONSTRUCTION AT OLYMPIC STADIUM</span><br><br><span class='news_scroller_item_text'>Construction on one section of the Olympic Stadium in London has been halted after asbestos-containing materials were discovered on the site, it has ...</a>";
;
fcontent[2]="<a href='/news/page_188.html'><span class='news_scroller_item_title'>KNAUF DRYWALL GETS 'BOARD' APPOINTMENT AT TOP HOSPITALS</span><br><br><span class='news_scroller_item_text'>Plasterboard from Knauf Drywall is playing both functional and decorative roles in the redevelopment of Barts and The London hospitals, currently ...</a>";
;
fcontent[3]="<a href='/news/newsfeeds//article_1019.html'><span class='news_scroller_item_title'>PUBLIC SECTOR CONSTRUCTION WORK IN IRELAND 'MUST BE BROUGHT FORWARD'</span><br><br><span class='news_scroller_item_text'>Work on public sector construction projects in Northern Ireland must be started soon to address the construction industry's slowdown, the BBC has ...</a>";
;
fcontent[4]="<a href='/news/newsfeeds//article_1014.html'><span class='news_scroller_item_title'>Â£1BN OLYMPIC VILLAGE COULD BE FUNDED BY PUBLIC</span><br><br><span class='news_scroller_item_text'>The &#163;1 billion 2012 Olympic village could be backed entirely by public money after the original contractor failed to attract enough funding.The ...</a>";
;
fcontent[5]="<a href='/news/page_187.html'><span class='news_scroller_item_title'>KNAUF DRYWALL ‘MENU’ ON WALL AT FLAGSHIP STEIN RESTAURANT</span><br><br><span class='news_scroller_item_text'>Padstow Riverside landmark The Seafood Restaurant has emerged from a £2.5million refit with more seats, a centrepiece seafood bar – and Knauf Drywall ...</a>";
;
fcontent[6]="<a href='/news/newsfeeds//article_1015.html'><span class='news_scroller_item_title'>LIVERPOOL'S STADIUM PLANS IN JEOPARDY</span><br><br><span class='news_scroller_item_text'>The head of the North West Development Agency (NWDA) has refused to hand over a &#163;9 million grant for Liverpool FC's new stadium project.Doubt ...</a>";
;
fcontent[7]="<a href='/news/newsfeeds//article_1012.html'><span class='news_scroller_item_title'>OLYMPIC STADIUM COSTS 'ON TARGET'</span><br><br><span class='news_scroller_item_text'>The head of the Olympic Delivery Authority (ODA) has insisted that costs remain on target for the new stadium and other venues being prepared for the ...</a>";
;
fcontent[8]="<a href='/news/page_186.html'><span class='news_scroller_item_title'>KNAUF DRYWALL GOES OUTDOORS WITH NEW AQUAPANEL EXTERIOR</span><br><br><span class='news_scroller_item_text'>Drywall technology goes outdoors with new Knauf Aquapanel Exterior – a robust, water and weather resistant board that sets new standards for the ...</a>";
;
fcontent[9]="<a href='/news/newsfeeds//article_1011.html'><span class='news_scroller_item_title'>WEMBLEY REGENERATION 'ON HOLD'</span><br><br><span class='news_scroller_item_text'>A large part of the &#163;2.5 billion Wembley regeneration scheme has been put on hold, according to building.co.uk.Builders Quintain Estates has ...</a>";
;
fcontent[10]="<a href='/news/newsfeeds//article_1008.html'><span class='news_scroller_item_title'>REGENERATION 'BIGGEST IMPACT OF OLYMPICS'</span><br><br><span class='news_scroller_item_text'>Regeneration will be the biggest impact of the Olympics, according to a study into the 'muted' impact of the Games.The Financial Times has reported ...</a>";
;
fcontent[11]="<a href='/news/page_183.html'><span class='news_scroller_item_title'>GREAT START FOR KNAUF DRYWALL’S TWICE-AS-FAST MPFINISH</span><br><br><span class='news_scroller_item_text'>New MPFinish from Knauf Drywall makes the spray application of finishing plasters possible. Specially formulated for machine application and ...</a>";
;
fcontent[12]="<a href='/news/newsfeeds//article_1007.html'><span class='news_scroller_item_title'>WORK BEGINS ON NEW LIVERPOOL STADIUM</span><br><br><span class='news_scroller_item_text'>The new Liverpool stadium is now under construction, it has been revealed.Some 60,000 fans are to be housed by the venue, with planning permission ...</a>";
;
fcontent[13]="<a href='/news/newsfeeds//article_1004.html'><span class='news_scroller_item_title'>NEW STADIUM PROPOSAL FOR PORTSMOUTH FC</span><br><br><span class='news_scroller_item_text'>A new 36,000-seater stadium could be established by Portsmouth Football Club, it has emerged.Proposals for the new ground, which would replace ...</a>";
;
fcontent[14]="<a href='/news/page_182.html'><span class='news_scroller_item_title'>KNAUF DRYWALL GIVES SPECIFIERS ANOTHER BIG TIME SAVER</span><br><br><span class='news_scroller_item_text'>The latest powerful online tool from Knauf Drywall gives drywall specifiers and contractors the ability to produce accurate procurement schedules ...</a>";
;
fcontent[15]="<a href='/news/newsfeeds//article_996.html'><span class='news_scroller_item_title'>YORK RECOGNISED FOR GREEN BUILDING</span><br><br><span class='news_scroller_item_text'>A skills centre in York has been recognised for its environmentally-friendly building credentials.The International Green Apple Awards 2008 for the ...</a>";
;
fcontent[16]="<a href='/news/newsfeeds//article_940.html'><span class='news_scroller_item_title'>DRY WALL REPLACEMENT 'MAY BE ESSENTIAL IN BATHROOM RENOVATION'</span><br><br><span class='news_scroller_item_text'>When renovating a bathroom, replacing the dry wall may be a necessity, according to one publication.In tips from across the Atlantic on revamping the ...</a>";
;
fcontent[17]="<a href='/news/page_181.html'><span class='news_scroller_item_title'>KNAUF DRYWALL ANTI-WASTE INITIATIVES GENERATE BIG SAVINGS</span><br><br><span class='news_scroller_item_text'>Innovative design detailing and improved plasterboard waste management combine to generate significant building site savings and environmental ...</a>";
;
fcontent[18]="<a href='/news/newsfeeds//article_921.html'><span class='news_scroller_item_title'>'MORE NEEDS TO BE DONE ON CONSTRUCTION SAFETY'</span><br><br><span class='news_scroller_item_text'>The construction industry needs to do more to improve its safety record, according to one expert.Writing in the Journal, John Nielsen of CK21 ...</a>";
;
fcontent[19]="<a href='/news/newsfeeds//article_919.html'><span class='news_scroller_item_title'>CONSTRUCTION FIRMS TARGETED BY OFT</span><br><br><span class='news_scroller_item_text'>A statement of objections has been issued against 112 construction companies by the Office of Fair Trading (OFT).The construction companies were ...</a>";
;
fcontent[20]="<a href='/news/page_180.html'><span class='news_scroller_item_title'>KNAUF DRYWALL PLAYS FORWARD ROLE IN VALE REDEVELOPMENT</span><br><br><span class='news_scroller_item_text'>Partition and lining systems from Knauf Drywall provide the acoustic, thermal and fire resistance performance for a major redevelopment in the Vale ...</a>";
;
fcontent[21]="<a href='/news/newsfeeds//article_916.html'><span class='news_scroller_item_title'>WORKERS CAUTIONED OVER LIVE CABLES</span><br><br><span class='news_scroller_item_text'>People working in the construction industry have been warned against the hazard of leaving live electrical cables exposed, it has emerged.The Health ...</a>";
;
fcontent[22]="<a href='/news/newsfeeds//article_913.html'><span class='news_scroller_item_title'>HSE CALLS FOR MORE ACTION TO PREVENT CONSTRUCTION DEATHS</span><br><br><span class='news_scroller_item_text'>The Health and Safety Executive (HSE) has urged the construction industry to make more of an effort in preventing workplace fatalities.These calls ...</a>";
;
fcontent[23]="<a href='/news/page_179.html'><span class='news_scroller_item_title'>‘GREEN’ PLASTERBOARD HAS BRIGHT FUTURE, SAYS KNAUF DRYWALL</span><br><br><span class='news_scroller_item_text'>‘Green’ plasterboard has a bright future in UK construction, says Bob Stark, Marketing Manager at Knauf Drywall. And merchants will play a key role ...</a>";
;
fcontent[24]="<a href='/news/newsfeeds//article_909.html'><span class='news_scroller_item_title'>FREE INSULATION OFFERED TO LONDON BY GREEN PARTY</span><br><br><span class='news_scroller_item_text'>The Green Party has announced that London should be made greener by offering free insulation to the capital's homes.The party is to launch its London ...</a>";
;
fcontent[25]="<a href='/news/newsfeeds//article_910.html'><span class='news_scroller_item_title'>WALES 'IS A FUEL POOR NATION'</span><br><br><span class='news_scroller_item_text'>Many Welsh households have been classified as 'fuel poor', according to a new report.A study conducted by Energywatch Wales found that energy bills ...</a>";
;
fcontent[26]="<a href='/news/page_178.html'><span class='news_scroller_item_title'>PATCHWALL 45 – ESSENTIAL ‘FIRST AID’ IN MAINTENANCE VANS</span><br><br><span class='news_scroller_item_text'>Patchwall 45 from Knauf Drywall is emerging as the number one choice for repairs to plastered and rendered walls – especially for making good after ...</a>";
;
fcontent[27]="<a href='/news/newsfeeds//article_906.html'><span class='news_scroller_item_title'>ODA SETS UP CONSTRUCTION DISPUTES PANEL</span><br><br><span class='news_scroller_item_text'>The Olympic Delivery Authority (ODA) has set up a dispute panel for contractors and workers ahead of the construction of a number of Olympic venues. ...</a>";
;
fcontent[28]="<a href='/news/newsfeeds//article_904.html'><span class='news_scroller_item_title'>CORPORATE MANSLAUGHTER LAW COMES INTO FORCE</span><br><br><span class='news_scroller_item_text'>New legislation designed to encourage better health and safety practices in the workplace by bringing companies to account over employee deaths have ...</a>";
;
fcontent[29]="<a href='/news/page_177.html'><span class='news_scroller_item_title'>KNAUF PUTTY PADS – A ROBUST DRYWALL TIME SAVER FOR PART E</span><br><br><span class='news_scroller_item_text'>High on the list of time saving specialist products from Knauf Drywall are Knauf Putty Pads – the easy answer for reliable acoustic and fire ...</a>";
;
	closetag='</div>';
	
	var fwidth='210px'; //set scroller width
	var fheight='150px'; //set scroller height
	
	var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.
	
	///No need to edit below this line/////////////////
	
	
	var ie4=document.all&&!document.getElementById;
	var DOM2=document.getElementById;
	var faderdelay=0;
	var index=0;
	
	
	/*Rafael Raposo edited function*/
	//function to change content
	function changecontent(){
	  if (index>=fcontent.length)
		index=0
	  if (DOM2){
		document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
		document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
		if (fadelinks)
		  linkcolorchange(1);
		colorfade(1, 15);
	  }
	  else if (ie4)
		document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
	  index++
	}
	
	// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
	// Modified by Dynamicdrive.com
	
	function linkcolorchange(step){
	  var obj=document.getElementById("fscroller").getElementsByTagName("A");
	  if (obj.length>0){
		for (i=0;i<obj.length;i++)
		  obj[i].style.color=getstepcolor(step);
	  }
	}
	
	/*Rafael Raposo edited function*/
	var fadecounter;
	function colorfade(step) {
	  if(step<=maxsteps) {	
		document.getElementById("fscroller").style.color=getstepcolor(step);
		if (fadelinks)
		  linkcolorchange(step);
		step++;
		fadecounter=setTimeout("colorfade("+step+")",stepdelay);
	  }else{
		clearTimeout(fadecounter);
		document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
		setTimeout("changecontent()", delay);
		
	  }   
	}
	
	/*Rafael Raposo's new function*/
	function getstepcolor(step) {
	  var diff
	  var newcolor=new Array(3);
	  for(var i=0;i<3;i++) {
		diff = (startcolor[i]-endcolor[i]);
		if(diff > 0) {
		  newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
		} else {
		  newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
		}
	  }
	  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
	}
	
	if (ie4||DOM2)
	  document.write('<div id="fscroller" style="border:0px solid white;width:'+fwidth+';height:'+fheight+'"></div>');
	
	if (window.addEventListener)
	window.addEventListener("load", changecontent, false)
	else if (window.attachEvent)
	window.attachEvent("onload", changecontent)
	else if (document.getElementById)
	window.onload=changecontent

