	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_1726.html'><span class='news_scroller_item_title'>NEW HOME CONSTRUCTION FUNDING ANNOUNCED</span><br><br><span class='news_scroller_item_text'>The construction of 5,700 new affordable homes is to be kickstarted by new funding announced by housing minister John Healey on Monday (March 8th). A ...</a>";
;
fcontent[1]="<a href='/news/newsfeeds//article_1725.html'><span class='news_scroller_item_title'>OLYMPIC STADIUM CONSTRUCTION 'REACHES NEW LANDMARK'</span><br><br><span class='news_scroller_item_text'>The Olympic stadium for the 2012 Games in London has reached its full height of 60 metres above the field of play. The construction of the stadium is ...</a>";
;
fcontent[2]="<a href='/news/page_241.html'><span class='news_scroller_item_title'>KNAUF'S NEW SAFEBOARD TAKES THE LEAD IN X-RAY PROTECTION</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[3]="<a href='/news/newsfeeds//article_1724.html'><span class='news_scroller_item_title'>AFFORDABLE HOUSING 'MUST BE BUILT IN THE COUNTRYSIDE'</span><br><br><span class='news_scroller_item_text'>More affordable housing needs to be built in rural areas to stop the trend of younger people moving away because they cannot afford to buy property, ...</a>";
;
fcontent[4]="<a href='/news/newsfeeds//article_1723.html'><span class='news_scroller_item_title'>BALFOUR BEATTY REVEALS STRONG YEAR IN CONSTRUCTION SERVICES</span><br><br><span class='news_scroller_item_text'>UK construction firm Balfour Beatty has stated it had a strong year in construction services. Business in the US was particularly good, the company ...</a>";
;
fcontent[5]="<a href='/news/page_239.html'><span class='news_scroller_item_title'>KNAUF PUTS LESS 'WET' INTO GREENER DRYWALL</span><br><br><span class='news_scroller_item_text'>Knauf puts less 'wet' into greener drywall</a>";
;
fcontent[6]="<a href='/news/newsfeeds//article_1722.html'><span class='news_scroller_item_title'>NEWS FOR DRYWALL FITTERS: HSE LAUNCHES INTENSIVE CONSTRUCTION SITE INSPECTION</span><br><br><span class='news_scroller_item_text'>Drywall fitters may be interested in news that the Health and Safety Executive (HSE) is launching a crackdown on dangerous practices on building ...</a>";
;
fcontent[7]="<a href='/news/newsfeeds//article_1721.html'><span class='news_scroller_item_title'>NEW PLANNING REGIME 'WILL CUT DECISION MAKING TIME BY YEARS'</span><br><br><span class='news_scroller_item_text'>A new planning regime for major infrastructure is to be put in place, cutting the time taken to make decisions from up to seven years to under one ...</a>";
;
fcontent[8]="<a href='/news/page_238.html'><span class='news_scroller_item_title'>KNAUF PROVIDES OPTIMUM SOLUTION FOR NAILSEA BSF DRYWALLS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[9]="<a href='/news/newsfeeds//article_1720.html'><span class='news_scroller_item_title'>HOUSING INVESTMENT 'IS ESSENTIAL TO MAINTAIN CONSTRUCTION SKILLS'</span><br><br><span class='news_scroller_item_text'>Investment in housing is crucial during an economic downturn, according to the head programme for the UK housing policy and practice at the Building ...</a>";
;
fcontent[10]="<a href='/news/newsfeeds//article_1719.html'><span class='news_scroller_item_title'>'NEW BUILD HOME DEMAND IS ON THE RISE'</span><br><br><span class='news_scroller_item_text'>Demand is increasing for new build homes, the chief executive of a supplier to the self-build market has stated.Raymond Connor, chief executive of ...</a>";
;
fcontent[11]="<a href='/news/page_237.html'><span class='news_scroller_item_title'>KNAUF DRYWALL'S REFRESHED DATA IS JUST A CLICK AWAY</span><br><br><span class='news_scroller_item_text'>Knauf Drywall's refreshed data is just a click away</a>";
;
fcontent[12]="<a href='/news/newsfeeds//article_1717.html'><span class='news_scroller_item_title'>CONSERVATIVES' PLANNING SYSTEM PROPOSALS 'STILL LEAVE QUESTIONS'</span><br><br><span class='news_scroller_item_text'>It is unclear whether the Conservative Party planning proposals for the construction industry will work or how they will be funded, according to the ...</a>";
;
fcontent[13]="<a href='/news/newsfeeds//article_1718.html'><span class='news_scroller_item_title'>NEWS FOR DRYWALL FITTERS: ROOFER FINED FOR INADEQUATE SAFETY EQUIPMENT WHEN WORKING FROM HEIGHT.</span><br><br><span class='news_scroller_item_text'>Drywall fitters may be interested in news that a roofer has been fined &#163;4,950 for allowing roof work to take place without adequate safety ...</a>";
;
fcontent[14]="<a href='/news/page_236.html'><span class='news_scroller_item_title'>KNAUF BRIO BOOSTS ECO-RATINGS AS VICTORIAN CHURCH IS REBORN</span><br><br><span class='news_scroller_item_text'>Apartments in the shell of a former North London church have an innovative flooring solution to optimise sustainability...</a>";
;
fcontent[15]="<a href='/news/newsfeeds//article_1716.html'><span class='news_scroller_item_title'>'LUXURY HOUSING DEVELOPMENT FEATURES UNDER-FLOOR HEATING'</span><br><br><span class='news_scroller_item_text'>A new housing development featuring under-floor heating has defied the credit crunch by seeing its value increase considerably since it was started ...</a>";
;
fcontent[16]="<a href='/news/newsfeeds//article_1715.html'><span class='news_scroller_item_title'>MANY SCHOOLS 'DO NOT MANAGE ASBESTOS PRESENCE EFFECTIVELY'</span><br><br><span class='news_scroller_item_text'>Many schools across the country are failing to manage the presence of asbestos effectively, a new report released today has stated. According to the ...</a>";
;
fcontent[17]="<a href='/news/page_235.html'><span class='news_scroller_item_title'>KNAUF MAKES DRYWALL SPECIFICATION EVEN SIMPLER</span><br><br><span class='news_scroller_item_text'>Drywall specification becomes even more simple with the new partition system selector from Knauf Drywall...</a>";
;
fcontent[18]="<a href='/news/newsfeeds//article_1714.html'><span class='news_scroller_item_title'>DIY 'HAS BEEN AFFECTED BY POOR WEATHER'</span><br><br><span class='news_scroller_item_text'>The poor weather has had in impact on <a href='http://www.knaufinsulation.co.uk/products/space_insulation.aspx' target='_self'>DIY and building works ...</a>";
;
fcontent[19]="<a href='/news/newsfeeds//article_1713.html'><span class='news_scroller_item_title'>NEWS FOR DRYWALL FIRMS: EMPLOYERS MUST MANAGE RISKS OF WORKING FROM HEIGHT, SAYS HSE</span><br><br><span class='news_scroller_item_text'>Employers are being urged to manage the risks of working from height, drywall firms may be interested to hear. The Health and Safety Executive (HSE) ...</a>";
;
fcontent[20]="<a href='/news/page_232.html'><span class='news_scroller_item_title'>KNAUF MP75 VAULTS TO NEW HEIGHTS AT TYNE METRO SHOWPIECE</span><br><br><span class='news_scroller_item_text'>Multiple curves in the vaulted ceilings of Newcastle’s rebuilt Haymarket Metro station provided a tough new challenge for Knauf MP75 machine-applied ...</a>";
;
fcontent[21]="<a href='/news/newsfeeds//article_1712.html'><span class='news_scroller_item_title'>'NEW HOUSE CONSTRUCTION WILL BE LIMITED BY MORTGAGE AVAILABILITY'</span><br><br><span class='news_scroller_item_text'>The construction of new housing is unlikely to increase significantly until there is a rise in mortgage availability, a trade association that ...</a>";
;
fcontent[22]="<a href='/news/newsfeeds//article_1711.html'><span class='news_scroller_item_title'>'NEW SCHOOL HALL FITTED WITH UNDER-FLOOR HEATING'</span><br><br><span class='news_scroller_item_text'>A new school hall featuring under-floor heating has been opened in Wiltshire, according to a report. Shaw primary school is to benefit from the new ...</a>";
;
fcontent[23]="<a href='/news/page_231.html'><span class='news_scroller_item_title'>KNAUF DRYWALL GETS A PLACE IN PIONEERING SCHOOL TOILET</span><br><br><span class='news_scroller_item_text'>High performance plasterboard from Knauf Drywall lines the interior walls of an innovative factory-built toilet block, newly installed at Brittons ...</a>";
;
fcontent[24]="<a href='/news/newsfeeds//article_1710.html'><span class='news_scroller_item_title'>NEW SOLUTIONS 'MUST BE FOUND TO KICK-START THE HOUSING MARKET'</span><br><br><span class='news_scroller_item_text'>The government needs to come up with new ways to kick-start the housing market as the construction industry is facing yet more job losses, according ...</a>";
;
fcontent[25]="<a href='/news/newsfeeds//article_1709.html'><span class='news_scroller_item_title'>'PEOPLE WANT TO MAKE IMPROVEMENTS FROM SCRATCH WHEN DOING DIY'</span><br><br><span class='news_scroller_item_text'>There is a growing <a href='http://www.knaufinsulation.co.uk/products/space_insulation.aspx' target='_self'>DIY trend for people to make home ...</a>";
;
fcontent[26]="<a href='/news/page_230.html'><span class='news_scroller_item_title'>KNAUF’S UPDATED MANUAL IS DRYWALL SPECIFIERS’ NEW BIBLE</span><br><br><span class='news_scroller_item_text'>A new edition of The Complete Drywall Manual - Knauf Drywall's free 'bible' for drywall specifiers - is now available.</a>";
;
fcontent[27]="<a href='/news/newsfeeds//article_1708.html'><span class='news_scroller_item_title'>DRYWALL FIRMS REMINDED TO CHECK HEALTH AND SAFETY PROCEDURES</span><br><br><span class='news_scroller_item_text'>Drywall firms may want to ensure they have correct health and safety procedures in place, following news a London-based property company and ...</a>";
;
fcontent[28]="<a href='/news/newsfeeds//article_1707.html'><span class='news_scroller_item_title'>DIY MARKET SAW GROWTH IN 2009</span><br><br><span class='news_scroller_item_text'>The <a href='http://www.knaufinsulation.co.uk/products/space_insulation.aspx' target='_self'>DIY market returned to growth slightly in 2009 after a ...</a>";
;
fcontent[29]="<a href='/news/page_229.html'><span class='news_scroller_item_title'>KNAUF BRIO BOOSTS GREEN CREDENTIALS AT SUSTAINABLE SCHOOL</span><br><br><span class='news_scroller_item_text'>An innovative dry floor screed from Knauf Drywall boosts the green credentials of new and highly sustainable primary school buildings under ...</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

