// JavaScript Document

	var slideShowSpeed = 10000;
	var crossFadeDuration = 5;
	var imgSRC = new Array(); 
	var imgLink = new Array(); 
	var banner = new Array(); 




imgSRC[1]="images/1a.jpg";
imgLink[1]="advantage.php";
imgSRC[2]="images/2a.jpg";
imgLink[2]="whyOT.php";
imgSRC[3]="images/3a.jpg";
imgLink[3]="capabilities.php";

	var time;
	var index = 1;
	var size = imgSRC.length;
		
		
	function runSlideShow(){
	   if (document.all){
		  document.images.SlideShow.style.filter="blendTrans(duration=2)";
		  document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		  document.images.SlideShow.filters.blendTrans.Apply();      
	   }
	    document.images.SlideShow.src = imgSRC[index];
		document.getElementById('imglink').href =imgLink[index];


		
				
	   if (document.all){
		  document.images.SlideShow.filters.blendTrans.Play();
	   }
	   index = index + 1;
	   if (index > (size-1)) index = 1;
	   time = setTimeout('runSlideShow()', slideShowSpeed);
	}
function switchImage(index){
	document.images.SlideShow.src = imgSRC[index];
		document.getElementById('imglink').href =imgLink[index];
}
