var delay2 = 8000; //set delay2 between message change (in miliseconds)
var maxsteps2=30; // number of steps to take to change from start color to endcolor
var stepdelay2=40; // time in miliseconds of a single step
//**Note: maxsteps2*stepdelay2 will be total time in miliseconds of fading effect
var startcolor2= new Array(255,255,255); // start color (red, green, blue)
var endcolor2=new Array(0,0,0); // end color (red, green, blue)

var fcontent2=new Array();
begintag2='<div style="font: normal size:8px ; Arial; padding: 0;">'; //set opening tag, such as font declarations
//starttestimonial@@
fcontent2[0]='<div style="font: normal 12px Arial;"><p>"Everyone who has viewed demo has been highly pleased with the quality.  I\'ve gotten responses like &quot;Wow, this is amazing&quot; along with a lot of enthusiasm to share materials with broader audience.  I will definitely recommend your services for other initiatives who need this type of product."</p><b>One of the world\'s largest IT companies</b>';
fcontent2[1]='<div style="font: normal 12px Arial;"><p>"Great work, very crisp and clean. The team was also very cooperative about making changes. A+ artist. Thanks for all the extra work." </p><b>Robert Freeman, Maintenance Pro & National Landscaping</b>';
fcontent2[2]='<div style="font: normal 12px Arial;"><p>"The graphics and animation are wonderful."</p><b>An Automobile major</b>';
fcontent2[3]='<div style="font: normal 12px Arial;"><p>"The work with your team and InfoPro at large has been delightful. Their attention to detail, their patience with our feedback, the effective management of our expectations, the clarity and timeliness of communication. All these elements combined with the outstanding outputs delivered to us have been greatly and gladly received."</p><b>A leading Consulting and Training Services company</b>';
fcontent2[4]='<div style="font: normal 12px Arial;"><p>"The training is fantastic. From my viewpoint, this training will rank as one of the top training sessions. The training gave me the confidence to have additional conversations with the clients I interact with on a daily basis.<br>The training is interactive and engaging."</p><b>A leading Learning and Performance Consulting service company</b>';
fcontent2[5]='<div style="font: normal 12px Arial;"><p>"We have the course reviewed and installed and it works beautifully. I want to thank you for all your hard work over the past year on the various projects that I have had the opportunity to work with you."</p><b>A government Fire Rescue Services agency</b>';
fcontent2[6]='<div style="font: normal 12px Arial;"><p>"Overall, I really like this format you’re using to build the web courses. Very eye catching!</p><b>An IT major</b>';
fcontent2[7]='<div style="font: normal 12px Arial;"><p>"Our employee curriculum is technically flawless with superb graphics and excellent navigation."</p><b>A Telecom major </b>';
fcontent2[8]='<div style="font: normal 12px Arial;"><p>"I would like to especially compliment the team working on these projects. It is a fact that the instructions are rather cryptic and that too on technical subjects and the guys have been putting in extra efforts to still create these within the agreed upon time frame. Their dedication is complimentary.</p><p>I am sure we will keep up the same levels of quality for all future projects as well.</p><b>A leading Performance Consulting and Training Services company</b>';
fcontent2[9]='<div style="font: normal 12px Arial;"><p>"It looks like we are about a month ahead of schedule! That is great news. So far, I am extremely pleased. I am SOOOO excited to get this launched and to start thinking of phase 2. Thank you for your continued interest and I look forward to our future relationship. Please also thank the team you have assigned to this project they must be a special group of people.</p><b>Terry Jones, Interactive Dynamics</b>';
fcontent2[10]='<div style="font: normal 12px Arial;"><p>"I wanted to let you know that Strategic Imperatives Series has received very positive feedback to-date. We very much appreciate the level of effort that went into this project on part of you and your team. Great work!"</p><b>A Telecom major</b>';

fcontent2[11]='<div style="font: normal 12px Arial;"><p>"This looks very, very good! This is really great. A few small adjustments and I think we’ll have something we can proudly show to our subject matter experts."</p><b>A leading provider of Research Technologies</b>';
fcontent2[12]='<div style="font: normal 12px Arial;"><p>InfoPro supplies me with a timeline schedule for each product. When I respond timely they hit every date every time. This allows me to schedule demos with my clients and keep to those scheduled dates. It has improved my cashflow as well as I can spend time on invoicing.</p><b>Don Mousseau, President, Digital Media Design, Inc.</b>';
fcontent2[13]='<div style="font: normal 12px Arial;"><p>Please thank the team for their creative and excellent work on these five Engineering Services courses. These are breakthrough courses for CP. Also thank you and the team for your patience. I realize that the response from the CP side is slow and that the delays could have adversely affect the project. Fortunately the team has risen above the difficulties to produce courses CP is very proud to present.</p><b>Ingrid Stammer, Canadian Pacific Railways</b>';
fcontent2[14]='<div style="font: normal 12px Arial;"><p>WOW!!!!  Your team rocks! Thank you SO much for all of the work to help us with this backlog of courses!  Please let the team know how much we appreciate this effort!</p><b>Lindsay Bennett, Laureate Education, Inc.</b>';
fcontent2[15]='<div style="font: normal 12px Arial;"><p>We\'re very pleased with the course and I thank you so very much for consistently meeting our needs, so often going above and beyond what was asked.</p><b>A Telecom major</b>';
fcontent2[16]='<div style="font: normal 12px Arial;"><p>"You\'re great I don\'t know if anyone ever tells you this, but you\'re brilliant at what you do. I\'ve worked many years in commercial e-learning and your graphics and animations etc output is the best I\'ve seen. Excellent stuff, and a real pleasure to see a brief come to life".</p><b> Meryl Thomas, Instructional Designer, e-Learning for Healthcare</b>';
fcontent2[17]='<div style="font: normal 12px Arial;"><p>I wanted you to receive some glowing feedback firsthand on the wonderful experience that our company has had in working with the team from InfoPro.</p><p>The work with your team, and InfoPro at large has been delightful. Their attention to detail, their patience with our feedback, the effective management of our expectations, the clarity and timeliness of communication. All these elements combined with the outstanding outputs delivered to us have been gratefully and gladly received.</p><b>A consulting and training services company</b>';
fcontent2[18]='<div style="font: normal 12px Arial;"><p>The working relationship with InfoPro has gradually strengthened over the last 6 months. Their continuing effort to provide us the team that is both communicative and has got a superb standard of work (performance) is something that our company is appreciating more and more.</p><b>Lex, Men@Work</b>';
fcontent2[19]='<div style="font: normal 12px Arial;"><p>First, I would like to let you and your team know that we think you have done a great job working on this e-learning. We think that this product is at a level that is at par with some of the best e-learning available in the market.  Well done!</p><b>World’s largest shipping line</b>';
fcontent2[20]='<div style="font: normal 12px Arial;"><p>I like working with InfoPro. They have an eye for professional resources and let me communicate with them directly, which is very important to me to prevent any noise. The flexibility they show, gives me the headroom needed to expand when time is there. I would recommend InfoPro as a partner.</p><b>Jacco van den Berg - CEO Bureau Berg B.V. Amsterdam, The Netherlands</b>';
fcontent2[21]='<div style="font: normal 12px Arial;"><p>"I\'ve worked with several organizations in the past, but InfoPro stood out from the rest. They took the pains to engage with us and understand our requirements, and then followed it up with a solution that matched our requirements perfectly."</p><b>An Avionics major</b>';
//endtestimonial@@
closetag2='</div>';

var fwidth2='180px'; //set scroller width
var fheight2='auto'; //set scroller height

var fadelinks2=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 faderdelay2=0;
var index2=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent2(){
  if (index2>=fcontent2.length)
    index2=0
  if (DOM2){
    document.getElementById("fscroller2").style.color="rgb("+startcolor2[0]+", "+startcolor2[1]+", "+startcolor2[2]+")"
    document.getElementById("fscroller2").innerHTML=begintag2+fcontent2[random(fcontent2.length)]+closetag2
    if (fadelinks2)
      linkcolorchange2(1);
    colorfade2(1, 15);
  }
  else if (ie4)
    document.all.fscroller2.innerHTML=begintag2+fcontent2[index2]+closetag2;
  index2++
}

// colorfade2() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange2(step){
  var obj=document.getElementById("fscroller2").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor2(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade2(step) {
  if(step<=maxsteps2) {	
    document.getElementById("fscroller2").style.color=getstepcolor2(step);
    if (fadelinks2)
      linkcolorchange2(step);
    step++;
    fadecounter=setTimeout("colorfade2("+step+")",stepdelay2);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller2").style.color="rgb("+endcolor2[0]+", "+endcolor2[1]+", "+endcolor2[2]+")";
    setTimeout("changecontent2()", delay2);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor2(step) {
  var diff
  var newcolor2=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor2[i]-endcolor2[i]);
    if(diff > 0) {
      newcolor2[i] = startcolor2[i]-(Math.round((diff/maxsteps2))*step);
    } else {
      newcolor2[i] = startcolor2[i]+(Math.round((Math.abs(diff)/maxsteps2))*step);
    }
  }
  return ("rgb(" + newcolor2[0] + ", " + newcolor2[1] + ", " + newcolor2[2] + ")");
}

if (ie4||DOM2){
  document.write('<div id="fscroller2" style="border:0 solid black;width:'+fwidth2+';height:'+fheight2+'"></div>');
    document.write('<div id="fscroller2" style="border:0 solid black;width:'+fwidth2+';height:'+fheight2+'"></div>');

}

/*if (window.addEventListener)
window.addEventListener("load", changecontent2, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent2)
else if (document.getElementById)
window.onload=changecontent2*/


