	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_1846.html'><span class='news_scroller_item_title'>Â£7M MILTON KEYNES SCHOOL COMPLETED</span><br><br><span class='news_scroller_item_text'>The construction of a &pound;7 million school, which comes with an array of environmentally-friendly features, has been completed in Milton Keynes on ...</a>";
;
fcontent[1]="<a href='/news/newsfeeds//article_1845.html'><span class='news_scroller_item_title'>BRUNTWOOD AND MSP WIN MANCHESTER ROYAL EYE HOSPITAL CONTRACT</span><br><br><span class='news_scroller_item_text'>Corridor Manchester has announced that Bruntwood and Manchester Science Parks (msp) have been chosen as the preferred developers for a &pound;21 ...</a>";
;
fcontent[2]="<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[3]="<a href='/news/newsfeeds//article_1844.html'><span class='news_scroller_item_title'>DRYWALL TO BE USED IN Â£3.8M HOUSING DEVELOPMENT?</span><br><br><span class='news_scroller_item_text'>Drywall may be used in the construction of the 38 new abodes, which will be created for rent, shared ownership or outright sale.Work on the ...</a>";
;
fcontent[4]="<a href='/news/newsfeeds//article_1843.html'><span class='news_scroller_item_title'>SELF-DRILLING 'CAN ENSURE SCREWING IN DRYWALL ANCHORS IS EASIER'</span><br><br><span class='news_scroller_item_text'>Those having issues when screwing their drywall anchors into the wall might like to take heed of one writer&#39;s advice.In a piece for Indy Star, ...</a>";
;
fcontent[5]="<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[6]="<a href='/news/newsfeeds//article_1842.html'><span class='news_scroller_item_title'>BARRATT WINS Â£30M DEVELOPMENT CONTRACT</span><br><br><span class='news_scroller_item_text'>Barratt Development has been awarded a &pound;30 million development contract for the first phase of regeneration in the North Prospect area of ...</a>";
;
fcontent[7]="<a href='/news/newsfeeds//article_1841.html'><span class='news_scroller_item_title'>DRYWALL ANCHORS COULD BE IDEAL WHEN INSTALLING DIRECT MOUNT SYSTEMS</span><br><br><span class='news_scroller_item_text'>Those who are keen on carrying out <a href='http://www.knaufinsulation.co.uk/products/space_insulation.aspx'>DIY in the home may like to make sure ...</a>";
;
fcontent[8]="<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>";
;
fcontent[9]="<a href='/news/newsfeeds//article_1840.html'><span class='news_scroller_item_title'>SECURE WAY TO HANG SHELVES 'IS TO ATTACH TO STUDS BEHIND DRYWALL'</span><br><br><span class='news_scroller_item_text'><a href='http://www.knaufinsulation.co.uk/products/space_insulation.aspx'>DIY enthusiasts might be interested to take heed of one writer&#39;s advice ...</a>";
;
fcontent[10]="<a href='/news/newsfeeds//article_1836.html'><span class='news_scroller_item_title'>PARK OPENS AFTER Â£3.2M REFURBISHMENT</span><br><br><span class='news_scroller_item_text'>A park in Cheshire has opened after a &pound;3.2 million refurbishment, which includes a restored conservatory and Synagogue Well.The Castle Park ...</a>";
;
fcontent[11]="<a href='/news/page_258.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[12]="<a href='/news/newsfeeds//article_1837.html'><span class='news_scroller_item_title'>Â£12BN SHOULD BE USED FOR CONSTRUCTION JOBS AND NEW HOMES</span><br><br><span class='news_scroller_item_text'>A &pound;12 billion windfall that was not forecast at the time of the budget should be used to increase construction jobs and build new homes.This is ...</a>";
;
fcontent[13]="<a href='/news/newsfeeds//article_1838.html'><span class='news_scroller_item_title'>Â£5M CONSTRUCTION WORK COMPLETED ON SCHOOL</span><br><br><span class='news_scroller_item_text'>Work on a &pound;5 million primary school has been completed in County Down.The building consists of 15 classrooms, four resource rooms and a ...</a>";
;
fcontent[14]="<a href='/news/page_257.html'><span class='news_scroller_item_title'>AIS SPRAY PLASTERS : KNAUF MP75 DEMO PROMPTS SPEC CHANGE AND BIG SAVINGS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[15]="<a href='/news/newsfeeds//article_1839.html'><span class='news_scroller_item_title'>3 NOT OUT IN LORD'S REDEVELOPMENT RACE</span><br><br><span class='news_scroller_item_text'>There are three construction contenders remaining in the race to win the contract to redevelop Lord&#39;s cricket ground.But two previously ...</a>";
;
fcontent[16]="<a href='/news/newsfeeds//article_1835.html'><span class='news_scroller_item_title'>BALFOUR BEATTY GETS BACKING FOR SCHOOLS PROGRAMME</span><br><br><span class='news_scroller_item_text'>Backing has been given to Balfour Beatty by Hertfordshire County Council, which named the firm as its preferred bidder for a school building ...</a>";
;
fcontent[17]="<a href='/news/page_256.html'><span class='news_scroller_item_title'>KNAUF'S NEW BRIO SCREED BOARD SIMPLY FLOORS THEM!</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[18]="<a href='/news/newsfeeds//article_1834.html'><span class='news_scroller_item_title'>CONSTRUCTION OF SHEFFIELD'S HIGHEST STRUCTURE COMPLETE</span><br><br><span class='news_scroller_item_text'>The construction of Sheffield&#39;s tallest building, St Pauls&#39; City Loft Apartments, has been finished.York-based contractor Shepherd ...</a>";
;
fcontent[19]="<a href='/news/newsfeeds//article_1833.html'><span class='news_scroller_item_title'>POST-OLYMPIC PLANS FOR ATHLETES' VILLAGE REVEALED</span><br><br><span class='news_scroller_item_text'>The Olympic Delivery Authority (ODA) has unveiled plans for the development of the Athletes&#39; Village, including more than 2,000 new homes being ...</a>";
;
fcontent[20]="<a href='/news/page_255.html'><span class='news_scroller_item_title'>KNAUF AQUAPANEL PROVIDES FIVE STAR LUXURY INTERIOR</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[21]="<a href='/news/newsfeeds//article_1832.html'><span class='news_scroller_item_title'>CONSTRUCTION ALLIANCE AIMING TO PLAN OFFSHORE WIND FARMS</span><br><br><span class='news_scroller_item_text'>Costain and Hochtief and Arup are hoping to join the government&#39;s efforts to curb carbon emissions in favour of renewable energy, by winning a ...</a>";
;
fcontent[22]="<a href='/news/newsfeeds//article_1830.html'><span class='news_scroller_item_title'>OLYMPIC DELIVERY AUTHORITY INVITES STADIUM BIDS</span><br><br><span class='news_scroller_item_text'>Bidding for the tenancy of the Olympic stadium after 2012 has opened, with interested parties given six weeks to submit their proposals.The ...</a>";
;
fcontent[23]="<a href='/news/page_254.html'><span class='news_scroller_item_title'>KNAUF DRYWALL SAYS PLASTERBOARD IS TOP OF ITS CLASS</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[24]="<a href='/news/newsfeeds//article_1831.html'><span class='news_scroller_item_title'>GREEN LIGHT GIVEN FOR FIRST GEOTHERMAL PLANT IN UK</span><br><br><span class='news_scroller_item_text'>Plans to construct the UK&#39;s first commercial geothermal power station have been given the go-ahead by Cornwall Council.Permission has been ...</a>";
;
fcontent[25]="<a href='/news/newsfeeds//article_1829.html'><span class='news_scroller_item_title'>BALFOUR BEATTY WINS Â£460 MILLION HEATHROW CONTRACT</span><br><br><span class='news_scroller_item_text'>Balfour Beatty has won a contract worth &pound;460 million to provide construction, engineering, mechanical and electrical services in the second ...</a>";
;
fcontent[26]="<a href='/news/page_253.html'><span class='news_scroller_item_title'> KNAUF DRYWALL GOES OUTDOORS WITH NEW AQUAPANEL EXTERIOR</span><br><br><span class='news_scroller_item_text'></a>";
;
fcontent[27]="<a href='/news/newsfeeds//article_1828.html'><span class='news_scroller_item_title'>GYM REFURBISHMENT 'WAS A HERCULEAN EFFORT'</span><br><br><span class='news_scroller_item_text'>A gym recently undergoing refurbishments in Colchester, Essex, is nearing completion, thanks to the combined efforts of a local businessman, ...</a>";
;
fcontent[28]="<a href='/news/newsfeeds//article_1827.html'><span class='news_scroller_item_title'>Â£1.2M REFURBISHMENT PAYS DIVIDENDS AT HIGHCLIFFE CASTLE</span><br><br><span class='news_scroller_item_text'>Refurbishing Highcliffe Castle near Bournemouth at a cost of Â£1.2 million has paid dividends for Christchurch Borough Council, as a recent financial ...</a>";
;
fcontent[29]="<a href='/news/page_252.html'><span class='news_scroller_item_title'>KNAUF PLASTER SPRAYS FINE FINISH ON UNI'S WALLS OF RESIDENCE</span><br><br><span class='news_scroller_item_text'></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

