// JavaScript Document
first = 1; 
            last = 5; 
            current = 1; 
			var timer = setTimeout("nextPicture()",6000);
             timer
            function nextPicture() { 
                // Hide current picture 
                object = document.getElementById('slide' + current); 
                object.style.display = 'none'; 
                 
                // Show next picture, if last, loop back to front 
                if (current == last) { current = 1; } 
                else { current++ } 
                object = document.getElementById('slide' + current); 
                object.style.display = 'block'; 
				timer = setTimeout("nextPicture()",6000);
            } 
 
            function previousPicture() { 
                // Hide current picture 
                object = document.getElementById('slide' + current); 
                object.style.display = 'none'; 
                 
                if (current == first) { current = last; } 
                else { current--; } 
                object = document.getElementById('slide' + current); 
                object.style.display = 'block'; 
				timer = setTimeout("nextPicture()",6000);
            } 
			function currentPicture(pic) { 
                // Hide current picture 
                object = document.getElementById('slide' + current); 
                object.style.display = 'none'; 
                 
                current = pic;
                object = document.getElementById('slide' + current); 
                object.style.display = 'block'; 
				clearTimeout(timer)
				timer = setTimeout("nextPicture()",6000);
            } 
            //]]> 
            // -->

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->
