currentID = 1;
techID = 1;

function showseco(num) {
	timeitems();
	currentID = num;
	document.getElementById("seco" + num).style.visibility = "visible";
}

function resetseco() {
	setTimeout("timeitems();",500);
}

function timeitems() {
	document.getElementById("seco" + currentID).style.visibility = "hidden";
}

function showDetail(num) {
	resetdetail();
	document.getElementById("detail" + num).style.visibility = "visible";
}

function showPic(imgname,imgsrc) {
	document.images[imgname].src = imgsrc;
}

function showTech(num) {
	resetTech();
	techID = num;
	document.getElementById("tech" + num).style.visibility = "visible";
}

function resetTech() {
	document.getElementById("tech" + techID).style.visibility = "hidden";
}

var movieName = "flashmovie";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }	else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}


function playmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).Play();
  }
}

function stopmovie() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).StopPlay();
  }
}


function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(theFrame);
  }
}

function golabel() {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/","redframe");
  }
}
