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(96,87,31); 
var endcolor=new Array(96,87,31); 

var fcontent=new Array();
begintag='<div style="">';
//starttestimonial@@
fcontent[0]='<div class="testimonialContent">"There was a high degree of excitement among all the Vice Presidents after attending the workshop. It created a lot of energy and the participants had internalized the profound insights that they experienced ..."</div><div class="clientSpeakName"><b>Manjit Singh <br>V.P- Human Resources,<br>Bank of America.</b></div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[1]='<div class="testimonialContent">"The intervention opened participant\'s mind to new ideas, modes of communication & interactions. I personally got feedback of its impact."</div><div class="clientSpeakName"> Gourish Hosangady<br>CEO, SAS Institute India.</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[2]='<div class="testimonialContent">"Sanjay shares powerful human technology, delivered in the most lucid manner. Participants are influenced positively and finally leave with abundant energy, passion and desire to excel."</div><div class="clientSpeakName"> Bimal Rath,<br>Ex Dir-HR, <br>BT Manufacturing Ltd.</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[3]='<div class="testimonialContent">"All our people have been through Sanjay\'s seminars. I am yet to meet a person who would say that it has not made an impact on his personal and professional life."</div><div class="clientSpeakName"> Rakesh Sharma,  <br>Ex Dir HRD,<br>Amway India.</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[4]='<div class="testimonialContent">"Our employees from across the country have attended Sanjay\'s program and they have all come back with great deal of enthusiasm and positive charge. His inputs have helped them redefine their relationships with internal as well as external customers."</div><div class="clientSpeakName"> Sandeep Kohli,<br> Chief Manager HRD,<br>Siemens Information Systems Limited (SISL)</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[5]='<div class="testimonialContent">"All of us felt that this has been the best training program that we have ever attended in our lives. We strongly believe that this will do us great in our professional and personal lives."</div><div class="clientSpeakName"> Mukesh Magoon,  <br>Regional Info.head,<br> S.Asia Region, World Bank</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[6]='<div class="testimonialContent">"Sanjay Salooja is an excellent, brilliant teacher of skills in the areas of self actualization and team building. He has great ability to help people do deep introspection of what he or she wants to be and then jointly develop and implement a " Self Improvement Plan"..."</div><div class="clientSpeakName"> Sudershan Banerjee ,  <br>Ex CEO,<br>Vodafone  Services</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[7]='<div class="testimonialContent">"An outstanding program delivering more than expected and delighting participants. Some positive effects are really long term, without additional reinforcements. Very powerful delivery, charging us with unflagging energy..."</div><div class="clientSpeakName"> Gopi Nambiar ,  <br>V.P Human Resources,<br> Seagram Manufacturing Ltd.</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[8]='<div class="testimonialContent">"Thank you for the great job you did with the my senior managers. You have a \'UNIQUE\' ability to communicate with and teach others. Indeed, a very \'Rare\' talent.The feedback from everyone was outstanding."</div><div class="clientSpeakName"> William S. Pinckney,<br>MD&CEO,<br> Amway India</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[9]='<div class="testimonialContent">"This program was quite different in a positive way as it spanned over a long period of time.The 13 weeks collation of evidences evidences though were a strenuous exercise but really helped me in judging where I lacked in those behaviours and helped me to..."</div><div class="clientSpeakName">Subashis Mitra,<br>UBS US Cash Equities Operations<br> WIPRO - BPO </div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[10]='<div class="testimonialContent">"Sanjay brings abundant energy and passion to what he does. All those who attend his workshop are bound to walk out with a profound and a long lasting impact. His work is unique and a must for all."</div><div class="clientSpeakName"> D.K Bakshi,  <br>Dir - HR,<br> Luxor Writing Instruments</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
fcontent[11]='<div class="testimonialContent">"WASP is a true example of effective, easily understood and relevant material for addressing attitudinal challenges in this changing environment backed by excellent real life examples and outstanding interactive presentation skills of Sanjay Salooja."</div><div class="clientSpeakName"> Sanjiv Sethi,  <br>VP-Sales and Marketing, Fritolay India Ltd.</div><div class="more"><a href="testimonial.html" class="moreLink">more...</a></div>';
//endtestimonial@@
closetag='</div>';

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


//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++
}


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);
  }
}

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);
	
  }   
}

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:0 solid black;width:140;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



//Open page in same window
function link(pageName)
{
window.location.href=pageName;
}
