// JavaScript Document


<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com
var timerID = 0;
var tStart  = null;
//


function UpdateTimer() {
   if(timerID) {
      clearTimeout(timerID);
      clockID  = 0;
   }

   if(!tStart)
      tStart   = new Date();

   var   tDate = new Date();
   var   tDiff = tDate.getTime() - tStart.getTime();

   tDate.setTime(tDiff);

   
   
   
   // alert('UpdateTimer'+var_id);
   //ajax_impl1.next_slide('1');
   if(var_id == 1){
	   
	   ajax_impl1.next_slide('1');
   }else if(var_id == 2){
	   
	   ajax_impl2.next_slide('2');
   }else if(var_id == 3){
	   
	   ajax_impl3.next_slide('3');
   }else if(var_id == 4){
	   
	   ajax_impl4.next_slide('4');
   }else if(var_id == 5){
	   
	   ajax_impl5.next_slide('5');
   }
   timerID = setTimeout("UpdateTimer()", 5000);
}

function Start() {
   tStart   = new Date();
 // alert('Start'+var_id);
 
   timerID  = setTimeout("UpdateTimer()", 5000);
   
}

function Stop() {
   if(timerID) {
      clearTimeout(timerID);
      timerID  = 0;
   }

   tStart = null;
}

function Reset() {
   tStart = null;

  
}

//-->

