
var timerInterval = 12000; //msec
var imageindex = 1;
var countdown = 0;
var elv;



function showslide1() {
//alert('hello');
document.getElementById("slideshow").src = Images[1].src;
document.getElementById("banner_link").style.cursor='pointer';
document.getElementById('div1').style.display="block";
document.getElementById('div2').style.display="none";
document.getElementById('div3').style.display="none";
document.getElementById("banner_link").onclick = new Function('StopAnimation();');

}
function showslide2() {
//alert('hello');
document.getElementById("slideshow").src = Images[2].src;
document.getElementById("banner_link").onclick = new Function('StopAnimation();');
document.getElementById("banner_link").style.cursor="pointer";
document.getElementById('div1').style.display="none";
document.getElementById('div2').style.display="block";
document.getElementById('div3').style.display="none";
}
function showslide3() {
//alert('hello');
document.getElementById("slideshow").src = Images[3].src;
document.getElementById("banner_link").onclick = new Function('StopAnimation();');
document.getElementById("banner_link").style.cursor='pointer';
document.getElementById('div1').style.display="none";
document.getElementById('div2').style.display="none";
document.getElementById('div3').style.display="block";
}
var Timer;
var c = 1;
function disp_img()
   {
     ///var img_src = "a" + c + ".jpg";
     //document.ani.src = img_src;
	  //function_name = "showslide"+c ;
	  //alert(function_name);
	  if(c==1)
	   showslide2();
	 if(c==2)  
	   showslide3();
	 if(c==3)  
	   showslide1();
	  

   c++;
   
   	  if (c == 4)
      {
      c = 1;
      }

   }


function Animate()
{
      Timer = setInterval("disp_img()", timerInterval);
}
function StopAnimation()
{
	clearInterval(Timer);
}