	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/page_49.html'><span class='news_scroller_item_title'>£3.5m THUNDERBIRD HOUSE A FAB SHOWCASE FOR KNAUF DRYWALL</span><br><br><span class='news_scroller_item_text'>A futuristic luxury home in Poole provides a stylish new setting for suspended ceilings featuring products and systems from Knauf Drywall.</a>";
fcontent[1]="<a href='/news/page_51.html'><span class='news_scroller_item_title'>KNAUF DRYWALL PROVIDES ‘SOUND’ ROOMS FOR STUDENTS</span><br><br><span class='news_scroller_item_text'>A sound night’s sleep awaits students moving into a new development in <br />the heart of Cardiff’s vibrant city centre, thanks to the installation of Knauf Drywall’s Soundshield throughout this large com...</a>";
fcontent[2]="<a href='/news/page_52.html'><span class='news_scroller_item_title'>APERTURA STRIKES A CHORD AT WALES MILLENNIUM CENTRE</span><br><br><span class='news_scroller_item_text'>Knauf Drywall’s Apertura perforated plasterboard was given a key role at the Wales Millennium Centre after architects, Capita Percy Thomas selected it as the ceiling finish in the principal public are...</a>";
fcontent[3]="<a href='/news/page_50.html'><span class='news_scroller_item_title'>KNAUF AQUAPANEL ‘POUNDS’ ITS WAY TO CENTRE OF COMMUNITY</span><br><br><span class='news_scroller_item_text'>A major new complex is set to be completed this year, offering a wide range of community resources for local residents in Portsmouth.  Knauf Aquapanel and other products and systems from Knauf Drywall...</a>";
fcontent[4]="<a href='/news/page_53.html'><span class='news_scroller_item_title'>KNAUF AQUAPANEL IN THE SWIM AT KENT LEISURE CENTRES</span><br><br><span class='news_scroller_item_text'>Water and moisture-resistance were two prime considerations when specifying Knauf Drywall’s Aquapanel as the poolside wall material for the re-development of the swimming pools at the Crook Log and Er...</a>";
fcontent[5]="<a href='/news/page_54.html'><span class='news_scroller_item_title'>APERTURA DRIVES TO AUDIBLE SUCCESS AT AUDI SHOWROOMS</span><br><br><span class='news_scroller_item_text'>Knauf Drywall’s Apertura perforated plasterboard has become a ceiling of choice as part of the specification for Audi’s most recent world-wide corporate identity. Knauf Apertura is now featured in 40 ...</a>";
fcontent[6]="<a href='/news/page_55.html'><span class='news_scroller_item_title'>KNAUF AQUAPANEL PROVIDES DOUBLE SOLUTION AT SAGE HQ</span><br><br><span class='news_scroller_item_text'>Tyneside’s Landmark of the Year – new headquarters of computer software company Sage Group plc – incorporates an innovative two-way application for Aquapanel, the water resistant glass fibre reinforce...</a>";
fcontent[7]="<a href='/news/page_56.html'><span class='news_scroller_item_title'>SPECIFIERS SAVE HOURS WITH KNAUF DRYWALL’S ONLINE SELECTOR</span><br><br><span class='news_scroller_item_text'>The latest addition to Knauf Drywall’s award-winning Online Manual (www.knaufdrywall.co.uk/themanual) is the novel Partition Selector tool. This innovation helps specifiers by instantly picking the be...</a>";
fcontent[8]="<a href='/news/page_57.html'><span class='news_scroller_item_title'>STATE-OF-THE-ART HOSPITAL FEATURES KNAUF DRYWALL</span><br><br><span class='news_scroller_item_text'>Shaftwall and a range of other products and systems from Knauf Drywall feature in the £50 million Manor Hospital in Oxford, recently completed by Kendall Kingscott and main contractor Shepherd Constru...</a>";
fcontent[9]="<a href='/news/page_58.html'><span class='news_scroller_item_title'>KNAUF DRYWALL EXPANDS PRODUCTION</span><br><br><span class='news_scroller_item_text'>Plasterboard manufacturer Knauf Drywall is investing £24 million to increase capacity at its Immingham factory.</a>";
fcontent[10]="<a href='/news/page_129.html'><span class='news_scroller_item_title'>KNAUF AQUAPANEL AT INTERBUILD 2006</span><br><br><span class='news_scroller_item_text'>Aquapanel from Knauf Drywall is the perfect tile-backer for all ‘wet’ rooms, from compact domestic showers to large public facilities. By minimising the risk of tile failures, Knauf Aquapanel avoids p...</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

