var IE = navigator.appName.indexOf("Microsoft") != -1;
var _selected = false;


if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	//document.write('<script language="VBScript" src="cycle-dynamics.vb"></script>\n');

// this is a temporary fix that should fix the issue with the server not allowing vb scripts to be downloaded
// sferrino@jarg.org Jan 12, 2006
	document.write('<script language="VBSccript">\n');
	document.write('	Sub MainView_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call MainView_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</script>\n');
	
}

	
function playMovie() {
var flashMovie=getFlashMovieObject("cycleMovie");

	if (flashMovie.PercentLoaded() != 100) {
		setTimeout("playMovie()", 100);
	}
	if (_selected) {
		flashMovie.Play();
	} else {
			flashMovie.GotoFrame(33);
	}
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}