
/***********************************************
* 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=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]="&ldquo;Time and time again I’ve peeked back at my Birkman profile...it seems to be the gift that keeps on giving. Hopefully that doesn’t sound over-the-top...it has genuinely been a very helpful tool... I would love to have my wife compete the questionnaire.&rdquo; <br><br><b>bryce zurowski</b> partner, chief operating officer<br>dossiercreative<br>vancouver, toronto";
fcontent[1]="&ldquo;At a recent point in my career when I felt torn in a few directions, Dave Phillips and the Birkman assessment brought clarity about what would best suit me in my future career choices. After spending 7 years as the CEO of a Fortune 500 company, I was not sure whether I should pursue another CEO role, do board work or coach management teams. The Birkman tool and, more importantly, Dave’s insights were instrumental in helping me see my choices clearly and to help me understand what would be most likely to make me happy. Sure enough, having followed the advice I got and applying the insights I learned in the process, I am probably the happiest I’ve ever been vocationally. I can’t say enough to recommend that everyone should invest the time with Dave to learn about themselves and to ensure that their choices in life are purposeful and enable their happiness.&rdquo; <br><br><b>Michael Brown</b><br>Chairman of Line 6 and former Chairman/CEO of Quantum Corporation";
fcontent[2]="&ldquo;At first I was skeptical. I am a practical and somewhat impatient person and I thought this really wasn't for me. I was proven wrong within 5 minutes of scanning over my first Birkman report. Uncanny results. More importantly, the information provided clarity and feedback that helped me recognize what I had in my \"toolbox\" and how to focus and use those \"tools\" to create and build my dream life (career and relationships). It sounds corny, but it was truly a life defining experience. On another VERY important note, Dave Philips is thoughtful, knowledgeable, experienced and generous with his time, energy and attention. Working with Dave made me comfortable and confident.&rdquo; <br><br><b>Jenn Wesanko </b>";
fcontent[3]="&ldquo;The Birkman was helpful in many ways, especially in regards to the issue of stress. My son is still struggling as to what to take at university and where to attend. I am still in shock as to how the questionnaire so clearly defined who he is. I am hoping my husband will take the opportunity to take it as well.&rdquo; <br><br><b>Mother of University Student</b><br>Central Canada";
closetag='</div>';

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

