// Javascript Slide show For testimonials below

fadeStep=10; // Size of the fade "step". Must be a multiple of 100.

fadeInterval=40; // Amount of time in-between the increments of fading 

readingTime=3; // Amount of time the user has to see the image (seconds) 

images=new Array("<div class=\"content1\">Learn PLC programming using 3D simulation</div>","<div class=\"content2\">Interactive Electronics training with lab simulation</div>","<div class=\"content3\">Interactive Electro-<br />Mechanical learning material with lab simulation</div>");

/* Do not edit the following variables */ 
var currTransp=100; 
var currDir=0; 
var currNum=0; 

function nextSlide()
{ 
if (document.getElementById("scroller_holder") == null ) return;

currNum++;
if(currNum == images.length)
{ 
currNum=0;
} 
document.getElementById("scroller_holder").innerHTML=images[currNum];
} 

function prevSlide()
{ 
if (document.getElementById("scroller_holder") == null ) return;
	
currNum--; 
if(currNum == -1) 
{ 
currNum=images.length-1; 
} 
document.getElementById("scroller_holder").innerHTML=images[currNum]; 
} 

function fadeSlide() 
{ 

if (document.getElementById("scroller_holder") == null ) return;

john=window.setTimeout("fadeSlide()", fadeInterval); 

if(currTransp == 100 - fadeStep && currDir == 1) 
{ 
window.clearTimeout(john); 
} 

if(currTransp < 0) 
{ 
currTransp=0; 
} 

if(currTransp > 100) 
{ 
currTransp=100; 
} 

if(currDir==0 && currTransp > 0) 
{ 
currTransp=currTransp-fadeStep; 

if(navigator.appName=="Netscape") 
{ 
document.getElementById("scroller_holder").style.MozOpacity=currTransp/100; 
} 

if(navigator.appName=="Microsoft Internet Explorer") 
{ 
document.getElementById("scroller_holder").style.filter="alpha(opacity="+currTransp+")"; 
} 

} 


else if(currDir==1 && currTransp < 100) 
{ 
currTransp=currTransp+fadeStep; 

if(navigator.appName=="Netscape") 
{ 
document.getElementById("scroller_holder").style.MozOpacity=currTransp/100; 
} 

if(navigator.appName=="Microsoft Internet Explorer") 
{ 
document.getElementById("scroller_holder").style.filter="alpha(opacity="+currTransp+")"; 
} 

} 

else if(currDir==0 && currTransp == 0) 
{ 
currDir=1; 
nextSlide(); 
} 

if(currDir==1 && currTransp == 100) 

{ 
window.setTimeout("commencefade()", (readingTime * 1000)); 
} 

} 

function commencefade() 
{ 
currDir=0; 
fadeSlide(); 
} 

window.setTimeout("commencefade()", readingTime * 1000 );