/***********************************************
* 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 = 10000; //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(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div>'; //set opening tag, such as font declarations
fcontent[0]="<p>&quot;I just took a read through of the blog posts. I think they are fantastic. I'm amazed on how you've turned the original content into something that provides so much more, portrays the picture and captures the heart. Very well written!&quot;</p><p><b>Neelima Pratap</b><br>Co-founder<br><a href='http://www.GraceEducationalFoundation.org/' target='new'>www.GraceEducationalFoundation.org</a><br><a href='http://www.GraceEducationalTrust.com/' target='new'>www.GraceEducationalTrust.com</a>"
fcontent[1]="<p>&quot;Verna is excellent to work with and showed initiative in presenting ideas that would further our project along! She is helping me with a marketing project and worked independently, freeing me up to focus on networking. I will recommend her and Pepper Virtual Assistants to my clients.&quot;</p><p><b>Constance Drew</b><br>Business Advisor, Speaker & Writer<br>Founder, Global Visionary Startups, LLC.<br><a href='http://www.visionarystartups.com/' target='new'>http://www.visionarystartups.com/</a>"
fcontent[2]="<p>&quot;I'm amazed how much work I've completed with Pepper's help! I had so many projects I was working on ranging from book writing, executive coaching, speaking engagements, social networking, to fine art sales. I was becoming overwhelmed until Pepper found me on Twitter. Initially I was a bit skeptical how a VA would save me time. I had the impression that it would take me longer to explain something to someone then actually doing it myself. As it turns out my VA has helped me wrap up so many projects that my life was suddenly much more enjoyable! I was no longer dreading the things I did not want to do. My VA took care of all the details quickly and seamlessly so I have more time to do the things I do best! The whole process was so smooth and I am so glad I took this leap of faith! Thank you Pepper!&quot;</p><p><b>Flo Li</b><br>Atomic Flow<br><a href='http://www.FloLi.com' target='new'>http://www.FloLi.com</a>"
fcontent[3]="<p>&quot;I appreciate everything you have done.  Blue is a tremendous asset to your organization and represents you extremely well. Blue is great!&quot;</p><p><b>Jeffrey Nunley</b><br>Evergreen Pacific Mortgage, Inc.<br><a href='http://www.jeffnunley.com/' target='new'>http://www.jeffnunley.com/</a></p>";
fcontent[4]="<p>&quot;Having the possibility of delegating my tasks to someone with such a high degree of professionalism and reliability is a huge enhancement in life quality and gives a real boost to my productivity - I love going out knowing that at the same time someone I trust is taking care of my business ! I'm sure I'll keep coming back to Pepper!&quot;</p><p><b>Fabio Corigliano</b><br>Apapun - live, soon<br><a href='http://www.apapun.it' target='new'>http://www.apapun.it</a></p>";
fcontent[5]="<p>&quot;Absolutely phenomenal work! (And that's an adjective I rarely use!) Your work is excellent and much better quality than I would have done – and I didn't even have the time to get started. In short, thank you so much Paula!&quot;</p><p><b>Dane Johnson</b><br>Chief Boozehound<br>Melbourne Nightlife<br><a href='http://www.MelbourneNightlife.com' target='new'>http://www.MelbourneNightlife.com</a></p>";
fcontent[6]="<p>&quot;Very positive first experience. Looking forward to working with you all again in the future...&quot;</p><p><b>Brody Dorland</b><br />Founder and Creative Director<br />Something Creative, Inc.<br /><a href='http://www.somethingcreativeinc.com' target='new'>www.somethingcreativeinc.com</a></p>";
fcontent[7]="<p>&quot;I discovered Pepper at a time when I needed additional support for my growing coach training school. I decided to try out Pepper's offer of a free trial virtual assistant and entered the Peppered Customer of the Year contest. My first week with Blue Mercado was excellent. She was able to do almost everything I requested and it was done promptly and professionally. What a relief! I can't think of anything better than winning a free year with Blue as my assistant, as far as helping the growth of my business is concerned. And for the first time in a few months, I feel like I have my life back!&quot;</p><p><b>Julia Stewart</b><br>President, School of Coaching Mastery<br><a href='http://www.mondaymorningva.com' target='new'>www.SchoolofCoachingMastery.com</a></p>";
fcontent[8]="<p>&quot;I just wanted to take a few seconds to let you know how things are going so far. Mejie is absolutely wonderful. Even my husband, when I told him the progress she's been able to make thus far, was impressed. I never would have been able to complete this project on time without you and Mejie.&quot;</p><p><b>Dawn Martinello</b><br>Owner/VA of Monday Morning VA<br><a href='http://www.mondaymorningva.com' target='new'>www.mondaymorningva.com</a></p>";
fcontent[9]="<p>&quot;I would def use you guys again, if only my business would pick up so that i had  something for you to do!<br> Paula  was great....I think the biz card project worked out really well.&quot;</p> <p><b>Nikki Striefler</b><br> Marketing and Brand Consultant</p>";
fcontent[10]="<p>&quot;Mejie helped me with several projects  involving internet research and database compilation.  The work was thorough and saved me so much  time!&quot;</p> <p><b>Dawn Martinello</b><br> Owner/VA of  Monday Morning VA<br> <a href='http://www.mondaymorningva.com' target='new'>www.mondaymorningva.com</a></p>";
fcontent[11]="<p>&quot;Nikki is one of the most trustworthy and reliable people I have ever worked with. If you get  a chance to work with her under any context, don't hesitate.&quot;</p> <p><b>Mark Joyner</b> <br> #1 Bestselling Author of &quot;Integration Marketing&quot;<br> <a href='http://www.integrationmarketing.com/' target='new'>www.IntegrationMarketing.com</a></p>";
fcontent[12]="<p>&quot;Working with a virtual assistant was new for me. I tried two services and was already having trouble with the other one when I found Pepper. I did not have any problems with Pepper, in fact, they exceeded my expectations! Everything was handled nicely and timely. I know I will have more work for Pepper in the near future!&quot;</p><p><b>Kip Ferguson</b><BR>Michigan   Advertising<BR><a href='http://www.michiganadvertising.com/' target='new'>michiganadvertising.com</a></p>";
closetag='</div>';

var fwidth='100%'; //set scroller width
var fheight='100%'; //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 black;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