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);



   document.theTimer.theTime.value = "" 

                                   + tDate.getMinutes() + ":" 

                                   + tDate.getSeconds();

   

   timerID = setTimeout("UpdateTimer()", 1000);

}



function Start() {

   tStart   = new Date();



   document.theTimer.theTime.value = "00:00";



   timerID  = setTimeout("UpdateTimer()", 1000);

}



function Stop() {

   if(timerID) {

      clearTimeout(timerID);

      timerID  = 0;

   }



   tStart = null;

}



function Reset() {

   tStart = null;



   document.theTimer.theTime.value = "00:00";

}




function sw(object, object2){

	if(document.getElementById(object).style.display=='none'){

		document.getElementById(object).style.display='block';

		document.getElementById(object2).src="/images/b_up.gif";

	} else {

		document.getElementById(object).style.display='none';

		document.getElementById(object2).src="/images/b_down.gif";		

	} 

}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-132659-12']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();




