// JavaScript Document

var timerid;

//Could be more elegant, but works for 4 images.
function Show1() {
   document.getElementById("informationinset").className = "insetconnect";
   document.getElementById("insettitle").innerHTML = "Set Up...";
   timerid = setTimeout("Show2()", 5000); }
function Show2() {
   document.getElementById("informationinset").className = "insetbrowse";
   document.getElementById("insettitle").innerHTML = "Select...";
   timerid = setTimeout("Show3()", 5000); }
function Show3() {
   document.getElementById("informationinset").className = "insetedit";
   document.getElementById("insettitle").innerHTML = "Play...";
   timerid = setTimeout("Show4()", 10000); }
function Show4() {
   document.getElementById("informationinset").className = "insetwin";
   document.getElementById("insettitle").innerHTML = "Win!";
   timerid = setTimeout("Show1()", 10000); }
   
function stopShow1() {
   clearTimeout (timerid);
	document.getElementById("informationinset").className = "insetconnect";
	document.getElementById("insettitle").innerHTML = "Set Up."; }
function stopShow2() {
   clearTimeout (timerid);
   document.getElementById("informationinset").className = "insetbrowse";
   document.getElementById("insettitle").innerHTML = "Select."; }
function stopShow3() {
   clearTimeout (timerid);
   document.getElementById("informationinset").className = "insetedit";
   document.getElementById("insettitle").innerHTML = "Play."; }
function stopShow4() {
   clearTimeout (timerid);
   document.getElementById("informationinset").className = "insetwin";
   document.getElementById("insettitle").innerHTML = "Win!"; }

  

//Clicking something that should stop them.
function StopTimer() {
   clearTimeout (timerid);
}

//Start it...
Show1();