	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_2180.html'><span class='news_scroller_item_title'>HBF BACKS GOVT HOUSING STRATEGY</span><br><br><span class='news_scroller_item_text'>The Home Builders Federation (HBF) has backed new proposals that aim to increase the number of homes being built across the UK.Steve Turner, head of ...</a>";
;
fcontent[1]="<a href='/news/newsfeeds//article_2179.html'><span class='news_scroller_item_title'>HOMEOWNERS 'HAVE GREATER FOCUS ON KITCHEN DESIGN'</span><br><br><span class='news_scroller_item_text'>Kitchen design has become increasingly important for UK property owners over recent years, as this room has become more of the hub of the home than ...</a>";
;
fcontent[2]="<a href='/news/page_270.html'><span class='news_scroller_item_title'>KNAUF BRIO DRY SCREED 'THE BEST WITH UNDERFLOOR HEATING'</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[3]="<a href='/news/newsfeeds//article_2177.html'><span class='news_scroller_item_title'>OLYMPICS 'A CATALYST FOR NEW HOUSE BUILDING'</span><br><br><span class='news_scroller_item_text'>The upcoming London 2012 Olympic and Paralympic Games are acting as a catalyst driving house building projects across the capital, particularly in ...</a>";
;
fcontent[4]="<a href='/news/newsfeeds//article_2178.html'><span class='news_scroller_item_title'>GLOBAL CONSTRUCTION SECTOR IS 'CAUTIOUSLY OPTIMISTIC'</span><br><br><span class='news_scroller_item_text'>The worldwide construction sector has been predicted to grow during the course of 2012, with a new report from KPMG being cautiously optimistic that ...</a>";
;
fcontent[5]="<a href='/news/page_269.html'><span class='news_scroller_item_title'>KNAUF DRYWALL DELIVERS A USEFUL LESSON FOR BSF PROJECTS</span><br><br><span class='news_scroller_item_text'>Knauf Drywall’s Performer system of optimised education sector partition solutions, combined with streamlined specifications and inventory for most ...</a>";
;
fcontent[6]="<a href='/news/newsfeeds//article_2175.html'><span class='news_scroller_item_title'>HOTEL REVAMP TO REINVIGORATE SAUNDERSFOOT</span><br><br><span class='news_scroller_item_text'>Construction work to restore a listed hotel in Saundersfoot back to its former glory has been praised.A new &pound;7.5 million initiative for the ...</a>";
;
fcontent[7]="<a href='/news/newsfeeds//article_2176.html'><span class='news_scroller_item_title'>UNIVERSITY OF EXETER BUILD WON BY MORGAN SINDALL</span><br><br><span class='news_scroller_item_text'>A new &pound;16 million contract with the University of Exeter for the construction of a new accommodation block has been secured by developer Morgan ...</a>";
;
fcontent[8]="<a href='/news/page_268.html'><span class='news_scroller_item_title'>KNAUF HIGHLIGHTS READYMIX OPPORTUNITY FOR DECORATORS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[9]="<a href='/news/newsfeeds//article_2174.html'><span class='news_scroller_item_title'>LONDON COMMERCIAL PROPERTY 'TO RECOVER SLOWLY'</span><br><br><span class='news_scroller_item_text'>The London commercial property sector is unlikely to see significant improvements over the coming months but is likely to end the year on a ...</a>";
;
fcontent[10]="<a href='/news/newsfeeds//article_2172.html'><span class='news_scroller_item_title'>REPORT PREDICTS MIDLANDS CONSTRUCTION SHRINKAGE</span><br><br><span class='news_scroller_item_text'>Construction activity in the West Midlands has been forecast to diminish by 1.1 per cent year between now and 2016.According to the Birmingham Post, ...</a>";
;
fcontent[11]="<a href='/news/page_267.html'><span class='news_scroller_item_title'>BUILDING PRODUCTS MAGAZINE ON THE TABLE - INNOVATION REVIEW</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[12]="<a href='/news/newsfeeds//article_2173.html'><span class='news_scroller_item_title'>OLYMPICS 'COULD BE A BLESSING OR A CURSE' FOR EAST LONDON PROPERTY</span><br><br><span class='news_scroller_item_text'>The upcoming London 2012 Olympic and Paralympic Games could have one of two outcomes for the London property sector this year, with the event either ...</a>";
;
fcontent[13]="<a href='/news/newsfeeds//article_2171.html'><span class='news_scroller_item_title'>WATES TO CARRY OUT LONDON OFFICE BUILD</span><br><br><span class='news_scroller_item_text'>Wates Construction has secured a new contract for the delivery of a new office building in Hammersmith, London.The company has been awarded the ...</a>";
;
fcontent[14]="<a href='/news/page_266.html'><span class='news_scroller_item_title'>KNAUF DRYWALL REPEATS SUCCESS IN NEW BRADFORD SCHOOLS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[15]="<a href='/news/newsfeeds//article_2169.html'><span class='news_scroller_item_title'>NEW Â£10M CARE HOME FOR EDINBURGH ELDERLY</span><br><br><span class='news_scroller_item_text'>The construction of a new care home in Edinburgh has been announced that will help to improve the standard of care for elderly individuals in the ...</a>";
;
fcontent[16]="<a href='/news/newsfeeds//article_2170.html'><span class='news_scroller_item_title'>BAM WINS Â£20M CONSTRUCTION CONTRACT</span><br><br><span class='news_scroller_item_text'>UK developer BAM Construction has secured a &pound;20 million school building contract in Hampshire.As part of the Improvement and Efficiency South ...</a>";
;
fcontent[17]="<a href='/news/page_265.html'><span class='news_scroller_item_title'>KNAUF MP75 PROJECTION PLASTER SAVES TIME IN THE NICK</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[18]="<a href='/news/newsfeeds//article_2168.html'><span class='news_scroller_item_title'>BRITS 'RENOVATING RATHER THAN SAVING'</span><br><br><span class='news_scroller_item_text'>Property owners across the UK have become fed up with the low returns they are receiving on their savings at present and many are deciding now is a ...</a>";
;
fcontent[19]="<a href='/news/newsfeeds//article_2167.html'><span class='news_scroller_item_title'>'NOT ENOUGH NEW HOMES' BEING BUILT</span><br><br><span class='news_scroller_item_text'>The National House-Building Council (NHBC) has claimed not enough houses are being constructed across the UK top meet the growing needs of the ...</a>";
;
fcontent[20]="<a href='/news/page_264.html'><span class='news_scroller_item_title'>KNAUF READYMIX REVIVES VICTORIAN WALLS AT ST PANCRAS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[21]="<a href='/news/newsfeeds//article_2166.html'><span class='news_scroller_item_title'>UK WITNESSES POSITIVE HOUSING SIGNS</span><br><br><span class='news_scroller_item_text'>The UK property market has seen an increase in activity over recent weeks and this bodes well for the rest of the year, it has been claimed.Selwyn ...</a>";
;
fcontent[22]="<a href='/news/newsfeeds//article_2165.html'><span class='news_scroller_item_title'>EUROPEAN CONSTRUCTION SEES DOUBLE-DIGIT GROWTH</span><br><br><span class='news_scroller_item_text'>Double-digit growth in construction output in a number of EU member states has served to push up overall building levels in the eurozone.Figures from ...</a>";
;
fcontent[23]="<a href='/news/page_261.html'><span class='news_scroller_item_title'>READY FOR NEW RULES ON PARTY WALLS?</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[24]="<a href='/news/newsfeeds//article_2164.html'><span class='news_scroller_item_title'>DELAYS IN HOME IMPROVEMENTS 'COULD LEAD TO HIGHER COSTS'</span><br><br><span class='news_scroller_item_text'>UK property owners have been advised that putting off home improvements aimed at delivering fuel and energy consumption reductions could in fact cost ...</a>";
;
fcontent[25]="<a href='/news/newsfeeds//article_2163.html'><span class='news_scroller_item_title'>HSE CALLS FOR SAFETY IMPROVEMENTS IN CONSTRUCTION</span><br><br><span class='news_scroller_item_text'>The Health and Safety Executive (HSE) has called on the UK&#39;s construction sector to take action to improve safety.As a result, the organisation ...</a>";
;
fcontent[26]="<a href='/news/page_260.html'><span class='news_scroller_item_title'>KNAUF DRYWALL'S NEW SYSTEM HAS BIG SAVINGS FOR HOSPITALS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[27]="<a href='/news/newsfeeds//article_2162.html'><span class='news_scroller_item_title'>UK GREEN INITIATIVE SUCCESS 'IS IMPORTANT'</span><br><br><span class='news_scroller_item_text'>The importance of success for upcoming green initiatives across the UK cannot be underestimated in terms of economic recovery and benefits for the ...</a>";
;
fcontent[28]="<a href='/news/newsfeeds//article_2161.html'><span class='news_scroller_item_title'>HOUSE BUILDING IMPROVEMENT 'NOT LIKELY UNTIL AUTUMN'</span><br><br><span class='news_scroller_item_text'>UK house building figures are unlikely to improve until at least the autumn of this year, one sector expert has stated.Brian Berry, director of ...</a>";
;
fcontent[29]="<a href='/news/page_259.html'><span class='news_scroller_item_title'>INACCURACIES IN BUILDING FORENSICS REPORT</span><br><br><span class='news_scroller_item_text'>There are a number of serious inaccuracies in a Building Forensics’ report as it relates to the UK and European plasterboard markets, and in ...</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


