	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_1258.html'><span class='news_scroller_item_title'>LEISURE CENTRE TO BE CONSTRUCTED TO SUPPORT OLYMPIC HOPEFULS</span><br><br><span class='news_scroller_item_text'>Budding swimmers looking for a training facility ahead of attempting to qualify for the London Olympics in 2012 may be able to use a new leisure ...</a>";
;
fcontent[1]="<a href='/news/newsfeeds//article_1255.html'><span class='news_scroller_item_title'>WORK ON COLLEGE LEADS TO CONSTRUCTION JOBS</span><br><br><span class='news_scroller_item_text'>Construction work seems set to be available in Mansfield as the green light has been given for work to commence at West Notts College.The Mansfield ...</a>";
;
fcontent[2]="<a href='/news/page_200.html'><span class='news_scroller_item_title'>KNAUF BRIO DRY FLOOR SCREED IS DEVELOPER’S HOT FAVOURITE</span><br><br><span class='news_scroller_item_text'>Excellent performance under test has encouraged a prominent Dorset property developer to make thermally transparent Brio Dry Screed Board from Knauf ...</a>";
;
fcontent[3]="<a href='/news/newsfeeds//article_1253.html'><span class='news_scroller_item_title'>NOT ALL DOOM AND GLOOM FOR ALL CONSTRUCTION COMPANIES</span><br><br><span class='news_scroller_item_text'>The downturn in construction work has had little bearing on one Merseyside company, which continues to secure strong contracts, reports the Liverpool ...</a>";
;
fcontent[4]="<a href='/news/newsfeeds//article_1252.html'><span class='news_scroller_item_title'>SCHOOL'S CONSTRUCTION 'ON TRACK'</span><br><br><span class='news_scroller_item_text'>The construction of a school in Wiltshire is said to be &quot;on track&quot; to be completed by 2010, reports the Wiltshire Times.Some 1,150 pupils ...</a>";
;
fcontent[5]="<a href='/news/page_199.html'><span class='news_scroller_item_title'>KNAUF AND CARILLION GIVE JOBSEEKERS A DRYWALL OPPORTUNITY</span><br><br><span class='news_scroller_item_text'>Looking beyond the current dip in housebuilding and general construction, a major contractor and a leading drywall manufacturer have teamed up to ...</a>";
;
fcontent[6]="<a href='/news/newsfeeds//article_1249.html'><span class='news_scroller_item_title'>2008 A STRONG YEAR FOR ONE CONSTRUCTION FIRM</span><br><br><span class='news_scroller_item_text'>It's not been doom and gloom for everyone in the construction industry this year, as a company in Dorset has taken on seven new members of staff and ...</a>";
;
fcontent[7]="<a href='/news/newsfeeds//article_1250.html'><span class='news_scroller_item_title'>PAYMENTS SPED UP FOR OLYMPIC CONSTRUCTION FIRMS</span><br><br><span class='news_scroller_item_text'>Construction companies heavily involved in the development work at the Olympic Park ahead of the London Games in 2012 are to receive faster payments ...</a>";
;
fcontent[8]="<a href='/news/page_198.html'><span class='news_scroller_item_title'>KNAUF DRYWALL BOOSTS CEILINGS WITH AQUAPANEL EXTERIOR</span><br><br><span class='news_scroller_item_text'>Outdoor ceilings get the indoor look with new Aquapanel Exterior, the versatile cement-based building panel used with timber or steel framing to ...</a>";
;
fcontent[9]="<a href='/news/newsfeeds//article_1251.html'><span class='news_scroller_item_title'>ARCHITECTS CONSIDERING CONSTRUCTION IMPACT ON ENVIRONMENT</span><br><br><span class='news_scroller_item_text'>Over eight in ten architects in the UK are to begin to take more personal responsibility in affecting the construction industry's impact on the ...</a>";
;
fcontent[10]="<a href='/news/newsfeeds//article_1247.html'><span class='news_scroller_item_title'>SAFETY SUCCESS IN OLYMPIC PARK</span><br><br><span class='news_scroller_item_text'>The safety of the construction staff working at the Olympic Park ahead of the London Games in 2012 has been impeccable, the Olympic Delivery ...</a>";
;
fcontent[11]="<a href='/news/page_197.html'><span class='news_scroller_item_title'>KNAUF RECYCLE SQUARES UP TO BOOST CARILLION SUSTAINABILITY</span><br><br><span class='news_scroller_item_text'>Sheffield’s Office 1 – the first of four commercial buildings proposed in Phase 2 of major city centre development The Square – marks the start of a ...</a>";
;
fcontent[12]="<a href='/news/newsfeeds//article_1244.html'><span class='news_scroller_item_title'>ARCHITECT IDEA COULD LEAD TO CONSTRUCTION INDUSTRY BOOST</span><br><br><span class='news_scroller_item_text'>The construction industry could receive a boost thanks to a simple idea from a firm of architects in Derby, reports This is Derbyshire.Matthew ...</a>";
;
fcontent[13]="<a href='/news/newsfeeds//article_1245.html'><span class='news_scroller_item_title'>1,000 CONSTRUCTION JOBS SECURED AS FIRM GETS THREE CONTRACTS</span><br><br><span class='news_scroller_item_text'>More than 1,000 jobs in the construction industry have been made safe in Northampton as a result of one firm securing work on three big ...</a>";
;
fcontent[14]="<a href='/news/page_196.html'><span class='news_scroller_item_title'>KNAUF THERMAL LAMINATES BOOST HOUSE EFFICIENCY</span><br><br><span class='news_scroller_item_text'>Real energy savings and reduced carbon emissions depend on bringing the UK’s vast stock of inefficient old buildings up to modern thermal performance ...</a>";
;
fcontent[15]="<a href='/news/newsfeeds//article_1241.html'><span class='news_scroller_item_title'>MORE GREEN HOMES COULD BRING CONSTRUCTION JOBS</span><br><br><span class='news_scroller_item_text'>New construction jobs could be created if there is a legislation concerning the development of more environmentally-friendly homes, it has been ...</a>";
;
fcontent[16]="<a href='/news/newsfeeds//article_1240.html'><span class='news_scroller_item_title'>TWO NEW SCHOOLS TO BOOST CONSTRUCTION IN DERRY</span><br><br><span class='news_scroller_item_text'>Derry's flagging construction sector seems set to receive a major boost as two new secondary schools are to be built in the city.Mark Durkan, a ...</a>";
;
fcontent[17]="<a href='/news/page_195.html'><span class='news_scroller_item_title'>KNAUF SOUNDSHIELD ADDS TO ‘VERY GOOD’ RATING BESIDE CANAL</span><br><br><span class='news_scroller_item_text'>Separating drywalls delivering acoustic performance more than 5dB better than Building Regulations helped an attractive new London development ...</a>";
;
fcontent[18]="<a href='/news/newsfeeds//article_1242.html'><span class='news_scroller_item_title'>HSE MAKES CONSTRUCTION APPOINTMENT</span><br><br><span class='news_scroller_item_text'>A new chief inspector of construction has been appointed by the Health and Safety Executive (HSE).Philip White will move from his current position in ...</a>";
;
fcontent[19]="<a href='/news/newsfeeds//article_1238.html'><span class='news_scroller_item_title'>HUNTINGDON TO BUILD AFFORDABLE, ECO-FRIENDLY HOMES</span><br><br><span class='news_scroller_item_text'>Some 29 affordable eco-homes are set to be built in Hartford as Huntingdon District Council takes advantage of money it has been given by the ...</a>";
;
fcontent[20]="<a href='/news/page_194.html'><span class='news_scroller_item_title'>KNAUF BRIO HELPS CONVERT COWSHED INTO GREEN DREAM HOME</span><br><br><span class='news_scroller_item_text'>An imaginative self-build barn conversion at the foot of the South Downs uses an innovative flooring solution to enhance its environmental ...</a>";
;
fcontent[21]="<a href='/news/newsfeeds//article_1239.html'><span class='news_scroller_item_title'>AQUATICS CENTRE ROOF TAKES SHAPE</span><br><br><span class='news_scroller_item_text'>Construction work on the Aquatics Centre for the London Olympics in 2012 is really beginning to take shape thanks to the completion of work on a roof ...</a>";
;
fcontent[22]="<a href='/news/newsfeeds//article_1236.html'><span class='news_scroller_item_title'>GOVERNMENT PROVIDES FUNDS FOR HOUSING PROJECTS</span><br><br><span class='news_scroller_item_text'>A boost has been announced for the construction industry in Blackpool as the government has handed the seaside town over &#163;5 million to be spent ...</a>";
;
fcontent[23]="<a href='/news/page_193.html'><span class='news_scroller_item_title'>KNAUF DRYWALL SEES BRIGHT FUTURE FOR MACHINE PLASTER</span><br><br><span class='news_scroller_item_text'>Building trades have to do better to meet the challenge of lower costs and higher standards, says Knauf Drywall Marketing Manager, Bob Stark. In a ...</a>";
;
fcontent[24]="<a href='/news/newsfeeds//article_1237.html'><span class='news_scroller_item_title'>CARLISLE SCHOOL TO UNDERGO DEVELOPMENT</span><br><br><span class='news_scroller_item_text'>A school in Carlisle is set to undergo a &#163;20 million makeover over the next two years to link new technologies with existing architecture, ...</a>";
;
fcontent[25]="<a href='/news/newsfeeds//article_1231.html'><span class='news_scroller_item_title'>VELOPARK CONSTRUCTION WORK ALMOST READY TO BEGIN</span><br><br><span class='news_scroller_item_text'>Construction work is not far away at the London VeloPark, which will host cycling and BMX at the London Olympics in 2012.Excavation work has begun on ...</a>";
;
fcontent[26]="<a href='/news/page_192.html'><span class='news_scroller_item_title'>KNAUF DRYWALL RECYCLING IS RIGHT TREATMENT FOR HOSPITAL</span><br><br><span class='news_scroller_item_text'>Good drywall design and practice – coupled with Knauf Drywall’s plasterboard recycling service – helped contractor Kier Eastern achieve award-winning ...</a>";
;
fcontent[27]="<a href='/news/newsfeeds//article_1232.html'><span class='news_scroller_item_title'>WIND TURBINES COULD BENEFIT CONSTRUCTION INDUSTRY</span><br><br><span class='news_scroller_item_text'>The construction sector could benefit from the introduction of more wind turbine projects as they are among the more cost-effective ways of allowing ...</a>";
;
fcontent[28]="<a href='/news/newsfeeds//article_1233.html'><span class='news_scroller_item_title'>MIGRANT WORKERS MAY BE NEEDED TO COMPLETE OLYMPIC CONSTRUCTION JOBS</span><br><br><span class='news_scroller_item_text'>A shortage of sufficiently trained building staff may lead to the need for foreign construction workers to have to be brought in to complete work on ...</a>";
;
fcontent[29]="<a href='/news/page_191.html'><span class='news_scroller_item_title'>KNAUF'S DRY SCREED REDUCES LOAD AND BOOSTS HEATING OPTIONS</span><br><br><span class='news_scroller_item_text'>Gypsum fibreboard flooring teams up with underfloor heating to offer attractive new solutions in tall buildings. Knauf Drywall Marketing Manager Bob ...</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

