/***********************************************
* 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 = 8500; //set delay between message change (in miliseconds)
var maxsteps=30; // 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(243,245,247); // start color (red, green, blue)
var endcolor=new Array(51,51,51); // end color (red, green, blue)

var fcontent=new Array();
begintag='<p><img src=images/bg/quote-left.jpg />'; //set opening tag, such as font declarations
fcontent[0]="Hi Anthony,<br />I just wanted to say a big thank you to you and FRESH for performing at my wedding at Flemington on Sept 20th. <br />I had the best night and have received so many fantastic comments on how excellent you all performed and a great time everyone had. The music was out of this world!!<br /><br />I had the best night and thank you so much for making it extra special.<img src=images/bg/quote-right.jpg /></p><p>Michelle Rendina";
fcontent[1]="The performance delivered by Fresh on Friday evening was outstanding. Although you had some obvious hurdles to overcome with dance floor positioning etc, the entire band ensured they engaged the crowd at all times. In fact, I would have to say that it was probably the fullest I have seen the dance floor at these events for some time!<br />The end to end experience of dealing with Fresh, in particular, yourself, was first-rate.Thanks AJ, I look forward to working with you again in the future.<img src=images/bg/quote-right.jpg /></p><p>Trish McBurnie<em> (Event Co-ordinator)</em><br /><strong>DWS ADVANCED BUSINESS SOLUTIONS</strong>";
fcontent[2]="On behalf of the MEA Victoria functions committee, I would like to sincerely thank you and FRESH for providing such fabulous entertainment at the annual awards dinner held at Central Pier. The functions committee is constantly striving to deliver unique and exciting events to our members, and you certainly assisted us in accomplishing that very goal. We are thrilled that you were able to work with us on this prestigious event providing fabulous background music over dinner, and of course awesome dance music which had our members dancing well into the night. We have had nothing but positive feedback so thanks again for your assistance and support A.J.<img src=images/bg/quote-right.jpg /></p><p>Alison Johnston <em>(Manager)</em><br /><strong>MEA Victoria</strong>";
fcontent[3]="FRESH as a band, are not just musicians; they are performers! I have been so impressed by the professionalism displayed by all their group. Joey’s voice is just to die for and Michelle’s personality lights up the stage. The vibe and the energy that the guys have contributed to my functions, has remained in the guests memories long after the music stops. FRESH turns every party into a major event!!!!<img src=images/bg/quote-right.jpg /></p><p>Dr. Chantel Thornton<br /><em>The Alfred Foundation</em><br /><strong>ALFRED HOSPITAL</strong>";
fcontent[4]="Through the creativity of his talented musicians, many performances have been tailored to suit the style of the functions I have hosted. A.J’s attention to detail as an organizer really sets him and his team apart from his competitors. FRESH always exceeded my expectations creating a vibrant atmosphere every time! Their ability to involve and entertain audiences of different ages through their wide repertoire has always amazed me!<img src=images/bg/quote-right.jpg /></p><p>Mr. Srecko Lorbek<br /><em>Ferrari Club of Australia (Victoria - Committee Member)</em><br /><strong>LORBEK LUXURY CARS</strong>";
fcontent[5]="Joey & Michelle are awesome together and the FRESH crew absolutely fabulous! We just love their vibe and energy they give to every single one of our events. It is great to find a professional band that is so passionate about performing and so easy to work with and we know when A.J. & his crew are on board... We are in for a fabulous night.<img src=images/bg/quote-right.jpg /></p><p>Trish Olsan<br /><em>Director</em><br /><strong>INTERNATIONAL CUSTOMER SERVICE PROFESSIONALS</strong>";
fcontent[6]="Thanks so much Anthony for another wonderful evening of entertainment. Michelle and the guys are just awesome. We’ve loved <br />having you guys perform at our fund raising dinners the last couple of years, and am sure we’ll see you on the slopes again this<br /> time next year!<img src=images/bg/quote-right.jpg /></p><p>John Huchins<br /><em>Ski Club Committee</em><br /><strong>MOUNT BULLA SKI CLUB</strong>";
fcontent[7]="&ldquo;FRESH&rdquo; were just brilliant! They were decent, accommodating and a wonderful part of our evening. Thank you so much guys.<img src=images/bg/quote-right.jpg /></p><p>Julius Colman<br /><em>The birthday boy himself</em><br /><strong>BIRTHDAY PARTY</strong>";
fcontent[8]="Thank you so much for the great effort of Fresh at our September conference. Everyone really enjoyed your music. It was actually quite a relief to be sitting with the CEO of the company at the dinner table and watch him rocking along to you guys<img src=images/bg/quote-right.jpg /></p><p>Bianca Drieberg<br /><em>Marketing Project Manager</em><br /><strong>FERNWOOD WOMEN&rsquo;S HEALTH CLUBS</strong>";
closetag='</p>';
fcontent[9]="Hi AJ, When we met a month ago I mentioned to you that people only remember two things about a wedding that define a great night…the food and the band!! Well I thought I’d tell you that everybody raved about the band so I guess it was a huge success. Thanks for all your efforts – we had a great night!!<img src=images/bg/quote-right.jpg /></p><p><strong>Mena & Terry </strong>";
fcontent[10]="Thank you for the best night of our lives AJ – You, Joey and Michelle just rocked; we had the best time ever and I will <br />never forget it...Ever!!<img src=images/bg/quote-right.jpg /></p><p><strong>Kate & Julian </strong>";
closetag='</p>';

var fwidth='745px'; //set scroller width
var fheight=''; //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; 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
