//<![CDATA[

/***********************************************
* Fading Scroller- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 6000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=100; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(189,183,107); // start color (red, green, blue)
var endcolor=new Array(255,255,255); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="padding-top: 0px; padding-bottom: 0px; border-top: 0px solid #000000; border-bottom: 0px solid #000000; font-weight: bold;">'; //set opening tag, such as font declarations

fcontent[0]='&rdquo;.. Kathryn made us weep in church and sing and dance at the reception .. took all music genres in her stride and helped make a wonderful day perfect. I would recommend her wholeheartedly to anyone..&ldquo;<i> Mr Thompson - his daughter&#39;s wedding - August 2011</i>';

fcontent[1]='&rdquo;.. has added both atmosphere and profit to the hotel .. extremely professional performer .. adapts easily to our customers needs .. I couldn&#39;t recommend Kathryn highly enough&ldquo;<i> Mike Evans, General Manager, The Cambridge Belfry Hotel - Oct 2011 </i>';

fcontent[2]='&rdquo;... Versatile, adaptable, great sound and good entertainment. Would not hesitate to book them again ...&ldquo;<i> Lofty Bunyon, Carnival Chairman, Tonbridge Lions Club - June 2011 </i>';


fcontent[3]='&rdquo;... You were fantastic last night, we all had a great time, shame we couldn&#39;t stay for an after show party!! ...&ldquo;<i> Nicola F, Tonbridge Party on the Lawn Concert 12 June 2011 </i>';

fcontent[4]='&rdquo;... My favourite singers are Justin Bieber, Katy Perry and Kathryn Buck – maybe JLS, maybe not ...&ldquo;<i> Emily, aged 8 </i>';


fcontent[5]='&rdquo;... Fantastic performance of iconic songs from across the decades and a great charismatic presence on the stage ...Thank you for an unforgettable evening ... &ldquo;<i> Svenda S, Tonbridge Party on the Lawn Concert - June 2011 </i>';


fcontent[6]='&rdquo;... Kathryn recently performed at a client evening ... a huge success ... I&#39;m looking forward to inviting Kathryn back at the next available chance! ...&ldquo;<i> Kelly Whitehouse, Sales Manager, QHotels, The Cambridge Belfry</i>';


fcontent[7]='&rdquo;... Thank you for adding some sparkle to our deck... &ldquo;<i> Mike Walker, The Swan - June 2011 </i>';

fcontent[8]='&rdquo;... really fantastic .. the songs you chose were perfect for the occasion ... your singing created a lovely atmosphere ... we will certainly recommend you ...&ldquo;<i> Hotel Felix, Cambridge</i>';

fcontent[9]='&rdquo;... Kathryn&#39;s charm, versatility and rare talent will enhance your special occasion both on the day and in your memory bank for years to come... &ldquo;';

fcontent[10]='&rdquo;...I can honestly say I was amazed and blown away the first time I heard her sing.. &ldquo;';
fcontent[11]='&rdquo;... When Kathryn sang Ave Maria the hairs stood up on the back of my neck, we were both stopped in our tracks ... &ldquo;';

fcontent[12]='&rdquo;...Kathryn breathes life into the songs, whatever the genre.... &ldquo;';


fcontent[13]='&rdquo;... such a wide ranging repertoire, with a voice to match... &ldquo;';
fcontent[14]='&rdquo;... Kathryn is a great singer with a formidable range, both in genre and vocally ... &ldquo;';

fcontent[15]='&rdquo;... I couldn&#39;t recommend anyone more highly ... &ldquo;';
fcontent[16]='&rdquo;... Kathryn&#39;s voice is truly amazing ... &ldquo;';
fcontent[17]='&rdquo;... a wonderful quality combining an unforced purity as well as being truly melodious ... &ldquo;';
fcontent[18]='&rdquo;... Kathryn is at home with Handel&#39;s Messiah or Gershwin&#39;s Porgy and Bess, such is her ability and charm ... &ldquo;';
fcontent[19]='&rdquo;... Kathryn has a powerful, beautiful voice .. &ldquo;';
fcontent[20]='&rdquo;...such a voice - such a passion for singing - such expression of the song ... &ldquo;';

fcontent[21]='&rdquo;... I have found her voice to have a wonderful quality combining an unforced purity as well as being truly melodious... &ldquo;';
fcontent[22]='&rdquo;... Her vocal range is impressive, and her voice is beautifully clear ... &ldquo;';
fcontent[23]='&rdquo;... It is always a very special pleasure to hear Kathryn sing ... &ldquo;';

fcontent[24]='&rdquo;...The beauty of her voice is its versatility .. &ldquo;';

closetag='<\/div>';

var fwidth='275px'; //set scroller width
var fheight='70px'; //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="padding: 5px; 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

//]]>
