var mess=new Array();
var time=new Array();
var fade=new Array();
var link=new Array();

				
mess[0]="'...the food is scrumptious'  <br>- SM Worcester";
link[0]="0";
time[0]=4000;  //milliseconds
fade[0]=500; //milliseconds

mess[1]="'The food, surroundings, service, and the total concept of The Quay makes for a truly pleasant experience'  <br>- JC Worcester";
link[1]="0";
time[1]=4000;
fade[1]=500;

mess[2]="'Well cooked, sensible portions and failsafe flavours'  <br>- Birmingham Post";
link[2]="0";
time[2]=4000;
fade[2]=500;

mess[3]="'A perfect night out in a picturesque setting...well worth a visit'  <br>- Worcester Evening News";
link[3]="0";
time[3]=4000;
fade[3]=500;

mess[4]="'This unique and unusual dessert went down a treat, and finished off a delightful meal on a high'  <br>- Limited Edition";
link[4]="0";
time[4]=4000;
fade[4]=500;

colors=new Array()
colors[0]='#000066'
colors[1]='#1c1c77'
colors[2]='#3d3d8b'
colors[3]='#5c5c9d'
colors[4]='#7f7fb2'
colors[5]='#bfbfd9'
colors[6]='#FFFFFF'

var fadespeed=150;

var fadeout=1;

var path="lillehand.gif"

var count=0;var newsno=0;var pause=0;var progress=0;var first=0;var pic;
(path!="")?pic= "<br><IMG border='0'>": pic="";

function fade_in()
{first=1;	if(link[newsno]==0)document.all("txtNews").innerHTML="<FONT color='"+colors[count]+"'>"+mess[newsno].substring(0,mess[newsno].length)+"</FONT>";
	else document.all("txtNews").innerHTML="<A href='../%22%2Blink%5Bnewsno%5D%2B%22' target='idokument' style='text-decoration: none'><FONT color='"+colors[count]+"'>"+mess[newsno].substring(0,mess[newsno].length)+"</FONT></A>"+pic;  //width='20' height='26'
	count++;if(count!=colors.length){progress=0;pause=fadespeed;} else{if(fadeout==0){	pause=time[newsno];progress=0;count=0;newsno++;}
	else{progress=1;pause=time[newsno];}if(newsno>=mess.length){newsno=0;}}watchit();
}

function fade_out()
{document.all("txtNews").innerHTML="<FONT color='"+colors[count]+"'>"+mess[newsno].substring(0,mess[newsno].length)+"</FONT>";
	count--;if(count!=-1){progress=1;pause=fadespeed;}
	else{pause=fade[newsno];progress=0;count=0;first=0;newsno++;
	if(newsno>=mess.length){newsno=0;}}watchit();
}

function watchit()
{if(progress==0){if((fadeout==2)&&(first==0))count=mess.length-1;if(count<=colors.length)aktiv=setTimeout("fade_in()",pause);}
if((progress==1)&&(fadeout>=1)){clearTimeout(aktiv);if(count>=colors.length)count=colors.length-1;if(count!=-1)aktiv=setTimeout("fade_out()",pause);}
}


