
var delay =6000;
var maxsteps=30; 
var stepdelay=120; 

var startcolor= new Array(171,171,171,171,171,171,171,171,171,171,171,171);
var endcolor=new Array(255,255,255,255,255,255,255,255,255,255,255,255); 

var fcontent=new Array();
begintag='<div style="font: normal 14px Arial; padding: 20px; color:ffffff; text-align:left; padding-left:30px;">';

fcontent[0]="<h3><U>Article happened in yatra</U></h3><br>Chairman MR. SenthilKumar Govindharajulu Interviewed by Deccan Chronicle reporter." 

fcontent[1]="<h3><U>Counselling Skills</U></h3><br>Counselling should empower girls and boys to participate fully in,and benefit from,the economic and social development of the nation." 

fcontent[2]="<h3><U>Helikx Open School and ThinkLabs{initiative of IIT Mumbai</U></h3><br>Helikx Open School is the first school in salem to setup Robolab for innovative way to teach physics concept and thinking to students.";
fcontent[3]="<h3><U>Achievement and Recognition by Tamilnadu Government</U></h3><br>Helikx open school is selected as one of the resource trainer to train chief minister dream project training the special educator and government teachers to understand and remediate learning disability children. ";
fcontent[4]="<h3><U>National Level Seminar</U></h3><br>National Level Seminar on 8th and 9th December in PSGCAS Coimbatore"
fcontent[5]="<h3><U>Congratulations</U></h3><br>Chairman MR. SenthilKumar Govindharajulu on being selected for Tata Jagariti Yatra as Mentor."
fcontent[6]="<h3><U>Seriously Different</U></h3><br>97 years of cumulative experience in training and development<br>1,04,000 man hours in training<br>Excellent and growing track of more than 52,000 benefitted participants<br>Helikx aims at the overall development of individuals through experiential learning methods";
fcontent[7]="<h3><U>Every Child Matters</U></h3><br>Helikx Special Learning School traces its origin from the Helikx Trust. The activities spring around imparting of academic skills in particular to children with specific learning disabilities.";
fcontent[8]="<h3><U>Initiatives for Corporate  & SME's</U></h3><br>Helikx addresses the variety of reasons for corporate right from focusing on company's critical needs to empowering employees to take control of their responsibilities to help improve business performance."
fcontent[9]="<h3><U>Psychometric Test</U></h3><br>Psychometric tests aim to measure attributes like intelligence, aptitude and personality.<br>Information technology companies, financial institutions, management consultancies, local authorities, the civil service, police forces, fire services and the armed forces all make extensive use of use psychometric testing."
fcontent[10]="<h3><U> Teacher's Workshop Enjoy & Educate</U></h3><br>This programme is to develop teacher's competency in creating environment for students with additional learning needs.<br>Tomake schools and teachers becoming more inclusive and more responsive to the diversity of learner's acadamic,social and personal learning needs."
fcontent[11]="<h3><U>10 days Certification Course on Learning Disability</U></h3><br>To enable the students to understand the Basic concepts of Learning Disabilities and historical aspects of Learning Disabilities."


closetag='</div>';

var fwidth='260px'; 
var fheight='200px'; 

var fadelinks=1; 

var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


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(9);
  for(var i=0;i<9;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

